summaryrefslogtreecommitdiff
path: root/bootloader/x1000/recovery.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-03-05 14:28:57 +0000
committerAidan MacDonald <amachronic@protonmail.com>2022-03-24 23:40:07 +0000
commit90cb0b0ae541303b3efb5ddbdc2ff8adab26cb49 (patch)
tree02e2468f8b5da220aab97664481cd485b7e11b35 /bootloader/x1000/recovery.c
parent53a92f0ecce72ec92084a23a4f22679d2c01e22a (diff)
downloadrockbox-90cb0b0ae541303b3efb5ddbdc2ff8adab26cb49.tar.gz
rockbox-90cb0b0ae541303b3efb5ddbdc2ff8adab26cb49.zip
x1000: bootloader: add mainline Linux boot option
This adds a *very basic* Linux loader to the Rockbox bootloader, which allows running a mainline Linux kernel using the following file layout on the SD card: - /uImage - /linux_cmdline.txt The command line arguments are listed in linux_cmdline.txt, all lines are concatenated together and whitespace is converted into spaces. Comments aren't supported however. The loader doesn't support the modern devicetree boot protocol, so it can only pass command line arguments. It would be easy to support an appended dtb though. Change-Id: I373f465dbbdafe94738f619748cbb0278fc2c25f
Diffstat (limited to 'bootloader/x1000/recovery.c')
-rw-r--r--bootloader/x1000/recovery.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bootloader/x1000/recovery.c b/bootloader/x1000/recovery.c
index ffd6151858..de6b3961cd 100644
--- a/bootloader/x1000/recovery.c
+++ b/bootloader/x1000/recovery.c
@@ -47,6 +47,7 @@ static const struct menuitem recovery_items[] = {
47#ifdef OF_RECOVERY_NAME 47#ifdef OF_RECOVERY_NAME
48 {MENUITEM_ACTION, OF_RECOVERY_NAME, &boot_of_recovery}, 48 {MENUITEM_ACTION, OF_RECOVERY_NAME, &boot_of_recovery},
49#endif 49#endif
50 {MENUITEM_ACTION, "Linux", &boot_linux},
50 {MENUITEM_HEADING, "System", NULL}, 51 {MENUITEM_HEADING, "System", NULL},
51 {MENUITEM_ACTION, "USB mode", &usb_mode}, 52 {MENUITEM_ACTION, "USB mode", &usb_mode},
52 {MENUITEM_ACTION, "Shutdown", &shutdown}, 53 {MENUITEM_ACTION, "Shutdown", &shutdown},