From f80798122a726602a239ad7667164a89e98c8328 Mon Sep 17 00:00:00 2001 From: Roman Kovalivskyi Date: Tue, 26 Jan 2021 22:54:55 +0200 Subject: Revert "fastboot: Add default fastboot_set_reboot_flag implementation" This reverts commit 0ebf9842e56c5b8cb7cb1f990bb452cc14af6225. Current generic implementation of fastboot_set_reboot_flag is somewhat messy and requires some additional configuration option to be enabled besides CMD_BCB, so it reverts that implementtion in order to bring a new cleaner one. Next commit introduces new generic implementation of fastboot_set_reboot_flag. Signed-off-by: Roman Kovalivskyi --- include/fastboot.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'include') diff --git a/include/fastboot.h b/include/fastboot.h index 8e9ee80907d..b86b508e69f 100644 --- a/include/fastboot.h +++ b/include/fastboot.h @@ -52,15 +52,6 @@ enum fastboot_reboot_reason { FASTBOOT_REBOOT_REASONS_COUNT }; -/** - * BCB boot commands - */ -static const char * const fastboot_boot_cmds[] = { - [FASTBOOT_REBOOT_REASON_BOOTLOADER] = "bootonce-bootloader", - [FASTBOOT_REBOOT_REASON_FASTBOOTD] = "boot-fastboot", - [FASTBOOT_REBOOT_REASON_RECOVERY] = "boot-recovery" -}; - /** * fastboot_response() - Writes a response of the form "$tag$reason". * -- cgit v1.2.3 From b2f6b97b78b47362c74f2fbe59c1f4f390cb458f Mon Sep 17 00:00:00 2001 From: Patrick Delaunay Date: Wed, 27 Jan 2021 14:46:48 +0100 Subject: fastboot: add command to select the default emmc hwpart for boot Add fastboot command oem partconf which executes the command ``mmc partconf 0`` on the current mmc device to configure the eMMC boot partition with : boot_ack boot_partition, so the command is: $> fastboot oem partconf: The partition_access argument is forced to 0 (userdata) Signed-off-by: Patrick Delaunay [lukma - Kconfig adjustments after merging this patch] --- include/fastboot.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/fastboot.h b/include/fastboot.h index b86b508e69f..80dd8255aa2 100644 --- a/include/fastboot.h +++ b/include/fastboot.h @@ -38,6 +38,9 @@ enum { #if CONFIG_IS_ENABLED(FASTBOOT_CMD_OEM_FORMAT) FASTBOOT_COMMAND_OEM_FORMAT, #endif +#if CONFIG_IS_ENABLED(FASTBOOT_CMD_OEM_PARTCONF) + FASTBOOT_COMMAND_OEM_PARTCONF, +#endif FASTBOOT_COMMAND_COUNT }; -- cgit v1.2.3 From 0c0394b5026ed3271c92ab1c92a65ae67588d65d Mon Sep 17 00:00:00 2001 From: Patrick Delaunay Date: Wed, 27 Jan 2021 14:46:49 +0100 Subject: fastboot: add command to select the eMMC boot configuration Add command oem bootbus which executes the command ``mmc bootbus `` on the current fastboot mmc device ( = CONFIG_FASTBOOT_FLASH_MMC_DEV) to set the eMMC boot configuration on first update, with = boot_bus_width reset_boot_bus_width boot_mode $> fastboot oem bootbus: Signed-off-by: Patrick Delaunay --- include/fastboot.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/fastboot.h b/include/fastboot.h index 80dd8255aa2..797d7dfd529 100644 --- a/include/fastboot.h +++ b/include/fastboot.h @@ -41,6 +41,9 @@ enum { #if CONFIG_IS_ENABLED(FASTBOOT_CMD_OEM_PARTCONF) FASTBOOT_COMMAND_OEM_PARTCONF, #endif +#if CONFIG_IS_ENABLED(FASTBOOT_CMD_OEM_BOOTBUS) + FASTBOOT_COMMAND_OEM_BOOTBUS, +#endif FASTBOOT_COMMAND_COUNT }; -- cgit v1.2.3