From f6b9e923dc6b2601e9e6190fd887d5b5277b2b59 Mon Sep 17 00:00:00 2001 From: Dana Conrad Date: Wed, 21 Aug 2024 00:01:49 +0000 Subject: ErosQNative: Re-enable OF recovery This is needed to be able to do updates to the OF due to the fact that the OF reboots when you select "update firmware". By default, most OF update images do not update the bootloader, but it is easy to modify them to do so, and they already contain a uboot.bin binary. I tested using the Aigo Recovery from our native bootloader and it sure seems to work fine. If we patch the OF update images to load our own native bootloader, this will be doubly necessary for uninstallation. Change-Id: Id69b0321e293331b3936c3f3e7e012d5f00b479a --- bootloader/x1000/x1000bootloader.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bootloader/x1000/x1000bootloader.h b/bootloader/x1000/x1000bootloader.h index 7118017a23..0b5b02969d 100644 --- a/bootloader/x1000/x1000bootloader.h +++ b/bootloader/x1000/x1000bootloader.h @@ -107,10 +107,9 @@ struct uimage_header; " init=/linuxrc ubi.mtd=4 root=ubi0:rootfs ubi.mtd=5 rootfstype=ubifs \ sn_no=00000000000000000000000000000000 bt_mac=xxxxxxxxxxxx wifi_mac=xxxxxxxxxxxx rw" # define OF_PLAYER_BTN BUTTON_PLAY -/* Note: OF Recovery boots, but is otherwise untested. */ -//# define OF_RECOVERY_NAME "Aigo Recovery" -//# define OF_RECOVERY_ADDR 0x900000 -//# define OF_RECOVERY_LENGTH (7 * 1024 * 1024) +# define OF_RECOVERY_NAME "Aigo Recovery" +# define OF_RECOVERY_ADDR 0x900000 +# define OF_RECOVERY_LENGTH (7 * 1024 * 1024) # define OF_RECOVERY_ARGS \ "console=ttyS2,115200n8 mem=32M@0x0 no_console_suspend lpj=5009408 ip=off" #else -- cgit v1.2.3