diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-10-28 20:22:33 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-10-29 12:51:05 +0100 |
commit | b4e7c60c6d74e076fb731ea43e6a6826652468ca (patch) | |
tree | ff6b88a50ddd9942304b6515f499d9b6b0c55609 | |
parent | a5b08d0af76801094194cfeab3af852c638e8f06 (diff) | |
download | rockbox-b4e7c60c6d74e076fb731ea43e6a6826652468ca.tar.gz rockbox-b4e7c60c6d74e076fb731ea43e6a6826652468ca.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.h | 5 |
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; | |||
80 | # define OF_PLAYER_ARGS OF_RECOVERY_ARGS \ | 80 | # define OF_PLAYER_ARGS OF_RECOVERY_ARGS \ |
81 | " init=/linuxrc ubi.mtd=5 root=ubi0:rootfs ubi.mtd=6 rootfstype=ubifs rw" | 81 | " init=/linuxrc ubi.mtd=5 root=ubi0:rootfs ubi.mtd=6 rootfstype=ubifs rw" |
82 | # define OF_PLAYER_BTN BUTTON_PREV | 82 | # define OF_PLAYER_BTN BUTTON_PREV |
83 | # define OF_RECOVERY_NAME "Shanling recovery" | 83 | /* Hide recovery kernel, it needs the OF player to initiate the update. */ |
84 | //# define OF_RECOVERY_NAME "Shanling recovery" | ||
84 | # define OF_RECOVERY_ADDR 0x940000 | 85 | # define OF_RECOVERY_ADDR 0x940000 |
85 | # define OF_RECOVERY_LENGTH (10 * 1024 * 1024) | 86 | # define OF_RECOVERY_LENGTH (10 * 1024 * 1024) |
86 | # define OF_RECOVERY_ARGS \ | 87 | # define OF_RECOVERY_ARGS \ |
87 | "mem=64M@0x0 no_console_suspend console=ttyS2,115200n8 lpj=5009408 ip=off" | 88 | "mem=64M@0x0 no_console_suspend console=ttyS2,115200n8 lpj=5009408 ip=off" |
88 | # define OF_RECOVERY_BTN (BUTTON_PREV|BUTTON_NEXT) | 89 | //# define OF_RECOVERY_BTN (BUTTON_PREV|BUTTON_NEXT) |
89 | #elif defined(EROS_QN) | 90 | #elif defined(EROS_QN) |
90 | # define BL_RECOVERY BUTTON_VOL_UP | 91 | # define BL_RECOVERY BUTTON_VOL_UP |
91 | # define BL_UP BUTTON_SCROLL_BACK | 92 | # define BL_UP BUTTON_SCROLL_BACK |