diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-12-22 20:31:06 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2024-03-31 16:57:19 +0100 |
commit | dc9d354ed22b4c6230c6bfe885e8a3d2519b1285 (patch) | |
tree | ae7e82354a3599bf3bb24cc25b341ba94d235375 /apps | |
parent | 6ffd42548bf10cda13a01555ff4fa56d4213cdf2 (diff) | |
download | rockbox-dc9d354ed22b4c6230c6bfe885e8a3d2519b1285.tar.gz rockbox-dc9d354ed22b4c6230c6bfe885e8a3d2519b1285.zip |
multiboot: Add v1 boot protocol
v1 passes the drive and partition number of the boot volume
instead of using the volume number. The volume number isn't
reliable because the same filesystem might get a different
volume number once the firmware is loaded, which will cause
the firmware to use the wrong root volume and fail to locate
the correct .rockbox directory.
Using drive and partition numbers avoids this issue because
drive numbering is fixed and determined by the target.
Change-Id: I7e68b892d9424a1f686197a6122e139b438e5f7e
Diffstat (limited to 'apps')
-rw-r--r-- | apps/debug_menu.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 5e2451e41b..36927dd890 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -2546,7 +2546,16 @@ static bool dbg_boot_data(void) | |||
2546 | { | 2546 | { |
2547 | simplelist_addline("Boot data valid"); | 2547 | simplelist_addline("Boot data valid"); |
2548 | simplelist_addline("Version: %d", (int)boot_data.version); | 2548 | simplelist_addline("Version: %d", (int)boot_data.version); |
2549 | simplelist_addline("Boot volume: %d", (int)boot_data.boot_volume); | 2549 | |
2550 | if (boot_data.version == 0) | ||
2551 | { | ||
2552 | simplelist_addline("Boot volume: %d", (int)boot_data._boot_volume); | ||
2553 | } | ||
2554 | else if (boot_data.version == 1) | ||
2555 | { | ||
2556 | simplelist_addline("Boot drive: %d", (int)boot_data.boot_drive); | ||
2557 | simplelist_addline("Boot partition: %d", (int)boot_data.boot_partition); | ||
2558 | } | ||
2550 | } | 2559 | } |
2551 | 2560 | ||
2552 | simplelist_addline("Bootdata RAW:"); | 2561 | simplelist_addline("Bootdata RAW:"); |