Run the LBA48 check only if the target has support for reading of SysCfg
rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
| Newsgroups | gmane.comp.systems.archos.rockbox.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit e2196c4566e08f6a654cdd77278e8f83a5b877e9 Author: Vencislav Atanasov <[email protected]> Date: Tue Jan 6 22:11:27 2026 +0200 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 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 */ } } -- rockbox-cvs mailing list [email protected] https://lists.haxx.se/mailman/listinfo/rockbox-cvs