From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sam Protsenko Date: Thu, 25 Jul 2019 16:22:48 +0300 Subject: [U-Boot] [PATCH] board: ti: am57xx: Correct the fastboot product var Message-ID: <20190725132248.14315-1-semen.protsenko@linaro.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de "fastboot flashall" expects "fastboot getvar product" to be "beagle_x15board". Instead, "am57xx" is returned, as it's set in $board env var from SYS_BOARD in board/ti/am57xx/Kconfig file. Override fastboot product variable and set it to correct value, to fix "fastboot flashall". Signed-off-by: Sam Protsenko --- board/ti/am57xx/board.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c index 1a903f13a6..c8eac4edde 100644 --- a/board/ti/am57xx/board.c +++ b/board/ti/am57xx/board.c @@ -685,6 +685,11 @@ static int device_okay(const char *path) } #endif +static void am57x_set_fastboot_vars(void) +{ + env_set("fastboot.product", "beagle_x15board"); +} + int board_late_init(void) { setup_board_eeprom_env(); @@ -717,6 +722,7 @@ int board_late_init(void) omap_die_id_serial(); omap_set_fastboot_vars(); + am57x_set_fastboot_vars(); am57x_idk_lcd_detect(); -- 2.20.1