From b4e7c60c6d74e076fb731ea43e6a6826652468ca Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Fri, 28 Oct 2022 20:22:33 +0100 Subject: 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 --- bootloader/x1000/x1000bootloader.h | 5 +++-- 1 file 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 -- cgit v1.2.3