summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-10-28 20:22:33 +0100
committerAidan MacDonald <amachronic@protonmail.com>2022-10-29 12:51:05 +0100
commitb4e7c60c6d74e076fb731ea43e6a6826652468ca (patch)
treeff6b88a50ddd9942304b6515f499d9b6b0c55609
parenta5b08d0af76801094194cfeab3af852c638e8f06 (diff)
downloadrockbox-b4e7c60c6d.tar.gz
rockbox-b4e7c60c6d.zip
Shanling Q1: Disable recovery kernel boot option
The Q1 handles firmware updates by unpacking the firmware image from the player app, then rebooting into the recovery kernel. The recovery kernel reflashes the player kernel and rootfs with the unpacked update files on the SD card. Booting the recovery kernel directly is therefore not useful to the vast majority of users; remove the option from the recovery menu and remove the key combo. Change-Id: I6cebfb6a3514ff2ae7d6f3904ac93b481773799b
-rw-r--r--bootloader/x1000/x1000bootloader.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/bootloader/x1000/x1000bootloader.h b/bootloader/x1000/x1000bootloader.h
index ba2baa33b5..7118017a23 100644
--- a/bootloader/x1000/x1000bootloader.h
+++ b/bootloader/x1000/x1000bootloader.h
@@ -80,12 +80,13 @@ struct uimage_header;
# define OF_PLAYER_ARGS OF_RECOVERY_ARGS \
" init=/linuxrc ubi.mtd=5 root=ubi0:rootfs ubi.mtd=6 rootfstype=ubifs rw"
# define OF_PLAYER_BTN BUTTON_PREV
-# define OF_RECOVERY_NAME "Shanling recovery"
+/* Hide recovery kernel, it needs the OF player to initiate the update. */
+//# define OF_RECOVERY_NAME "Shanling recovery"
# define OF_RECOVERY_ADDR 0x940000
# define OF_RECOVERY_LENGTH (10 * 1024 * 1024)
# define OF_RECOVERY_ARGS \
"mem=64M@0x0 no_console_suspend console=ttyS2,115200n8 lpj=5009408 ip=off"
-# define OF_RECOVERY_BTN (BUTTON_PREV|BUTTON_NEXT)
+//# define OF_RECOVERY_BTN (BUTTON_PREV|BUTTON_NEXT)
#elif defined(EROS_QN)
# define BL_RECOVERY BUTTON_VOL_UP
# define BL_UP BUTTON_SCROLL_BACK