From 90cb0b0ae541303b3efb5ddbdc2ff8adab26cb49 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sat, 5 Mar 2022 14:28:57 +0000 Subject: 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 --- bootloader/x1000/recovery.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bootloader/x1000/recovery.c') 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[] = { #ifdef OF_RECOVERY_NAME {MENUITEM_ACTION, OF_RECOVERY_NAME, &boot_of_recovery}, #endif + {MENUITEM_ACTION, "Linux", &boot_linux}, {MENUITEM_HEADING, "System", NULL}, {MENUITEM_ACTION, "USB mode", &usb_mode}, {MENUITEM_ACTION, "Shutdown", &shutdown}, -- cgit v1.2.3