From 53a92f0ecce72ec92084a23a4f22679d2c01e22a Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sat, 5 Mar 2022 13:52:11 +0000 Subject: 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 --- bootloader/x1000/recovery.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bootloader/x1000/recovery.c') 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 { /* Defines the recovery menu contents */ static const struct menuitem recovery_items[] = { + {MENUITEM_HEADING, "Boot select", NULL}, + {MENUITEM_ACTION, "Rockbox", &boot_rockbox}, +#ifdef OF_PLAYER_NAME + {MENUITEM_ACTION, OF_PLAYER_NAME, &boot_of_player}, +#endif +#ifdef OF_RECOVERY_NAME + {MENUITEM_ACTION, OF_RECOVERY_NAME, &boot_of_recovery}, +#endif {MENUITEM_HEADING, "System", NULL}, - {MENUITEM_ACTION, "Start Rockbox", &boot_rockbox}, {MENUITEM_ACTION, "USB mode", &usb_mode}, {MENUITEM_ACTION, "Shutdown", &shutdown}, {MENUITEM_ACTION, "Reboot", &reboot}, -- cgit v1.2.3