From e2196c4566e08f6a654cdd77278e8f83a5b877e9 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Tue, 6 Jan 2026 22:11:27 +0200 Subject: [PATCH] Run the LBA48 check only if the target has support for reading of SysCfg This fixes a regression introduced in ad6cc2f0 for the ipodnano4g bootloader. Change-Id: Iacf079adbfa85399b248a4c4ac35b93155a1d87b --- bootloader/ipod-s5l87xx.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bootloader/ipod-s5l87xx.c b/bootloader/ipod-s5l87xx.c index 44674c571a..3a53f612b0 100644 --- a/bootloader/ipod-s5l87xx.c +++ b/bootloader/ipod-s5l87xx.c @@ -888,6 +888,7 @@ void main(void) /* We wait until HDD spins up to check for hold button */ if (button_hold()) { +#ifdef SYSCFG_MAX_ENTRIES bool lba48 = false; struct SysCfg syscfg; const ssize_t result = syscfg_read(&syscfg); @@ -917,6 +918,13 @@ void main(void) fatal_error(ERR_LBA28); } } +#else + printf("Executing OF..."); +#if (CONFIG_STORAGE & STORAGE_ATA) + ata_sleepnow(); +#endif + rc = kernel_launch_onb(); +#endif /* SYSCFG_MAX_ENTRIES */ } }