Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

Commit 97f9e08

Browse files
committed
PartitionTableUpdate: ignore retry count if developer mode is enabled
When actively working on the kernel it can happen, that the device does not reach userspace far enough to mark the boot slots as bootable. To prevent manually needed to reset the retry counter, ignore the retry count when developer mode is enabled. Change-Id: I8c8ee261e122bd85c949ef7b08d4fd41fea68855 Co-developed-by: Caleb Connolly <[email protected]> Signed-off-by: Alexander Martinz <[email protected]>
1 parent 0352391 commit 97f9e08

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

QcomModulePkg/Library/BootLib/PartitionTableUpdate.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
*/
2929
#include "PartitionTableUpdate.h"
3030
#include "AutoGen.h"
31+
#include <DeviceInfo.h>
3132
#include <Library/Board.h>
3233
#include <Library/BootLinux.h>
3334
#include <Library/LinuxLoaderLib.h>
@@ -1653,7 +1654,10 @@ FindBootableSlot (Slot *BootableSlot)
16531654
(BootEntry->PartEntry.Attributes & PART_ATT_MAX_RETRY_COUNT_VAL) >>
16541655
PART_ATT_MAX_RETRY_CNT_BIT;
16551656

1656-
if (Unbootable == 0 && BootSuccess == 1) {
1657+
if (IsDeveloperModeEnabled ()) {
1658+
DEBUG ((EFI_D_VERBOSE, "Developer mode is enabled, not checking, "
1659+
"if slot %s is bootable\n", BootableSlot->Suffix));
1660+
} else if (Unbootable == 0 && BootSuccess == 1) {
16571661
DEBUG (
16581662
(EFI_D_VERBOSE, "Active Slot %s is bootable\n", BootableSlot->Suffix));
16591663
} else if (Unbootable == 0 && BootSuccess == 0 && RetryCount > 0) {

0 commit comments

Comments
 (0)