summaryrefslogtreecommitdiff
path: root/bootloader/x1000/recovery.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-03-05 13:52:11 +0000
committerAidan MacDonald <amachronic@protonmail.com>2022-03-24 23:40:07 +0000
commit53a92f0ecce72ec92084a23a4f22679d2c01e22a (patch)
treee235961945c6eb329f2f176384e74b969c2be64a /bootloader/x1000/recovery.c
parent9bde653410e83d5e97729aef212341f3cde790bc (diff)
downloadrockbox-53a92f0ecce72ec92084a23a4f22679d2c01e22a.tar.gz
rockbox-53a92f0ecce72ec92084a23a4f22679d2c01e22a.zip
x1000: bootloader: add original firmware boot capability
Adds the ability to boot the OF's player or recovery kernels from the bootloader. Works on Shanling Q1 but broken on the FiiO M3K (kernel hang) so leave it disabled for the M3K. Change-Id: I26b973fba1c22afb906a78865963a96dd2107932
Diffstat (limited to 'bootloader/x1000/recovery.c')
-rw-r--r--bootloader/x1000/recovery.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/bootloader/x1000/recovery.c b/bootloader/x1000/recovery.c
index 3d6a079af8..ffd6151858 100644
--- a/bootloader/x1000/recovery.c
+++ b/bootloader/x1000/recovery.c
@@ -39,8 +39,15 @@ struct menuitem {
39 39
40/* Defines the recovery menu contents */ 40/* Defines the recovery menu contents */
41static const struct menuitem recovery_items[] = { 41static const struct menuitem recovery_items[] = {
42 {MENUITEM_HEADING, "Boot select", NULL},
43 {MENUITEM_ACTION, "Rockbox", &boot_rockbox},
44#ifdef OF_PLAYER_NAME
45 {MENUITEM_ACTION, OF_PLAYER_NAME, &boot_of_player},
46#endif
47#ifdef OF_RECOVERY_NAME
48 {MENUITEM_ACTION, OF_RECOVERY_NAME, &boot_of_recovery},
49#endif
42 {MENUITEM_HEADING, "System", NULL}, 50 {MENUITEM_HEADING, "System", NULL},
43 {MENUITEM_ACTION, "Start Rockbox", &boot_rockbox},
44 {MENUITEM_ACTION, "USB mode", &usb_mode}, 51 {MENUITEM_ACTION, "USB mode", &usb_mode},
45 {MENUITEM_ACTION, "Shutdown", &shutdown}, 52 {MENUITEM_ACTION, "Shutdown", &shutdown},
46 {MENUITEM_ACTION, "Reboot", &reboot}, 53 {MENUITEM_ACTION, "Reboot", &reboot},