diff mbox

[U-Boot,v2,2/3] arm: am57xx: Set fastboot variables in environment

Message ID 20170522161642.13058-3-semen.protsenko@linaro.org
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Sam Protsenko May 22, 2017, 4:16 p.m. UTC
One can obtain those variables using next commands:

    $ fastboot getvar cpu
    $ fastboot getvar secure
    $ fastboot getvar board_rev
    $ fastboot getvar userdata_size

Those variables are needed for fastboot.sh script.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
---
Changes in v2: None

 board/ti/am57xx/board.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Tom Rini May 23, 2017, 1:18 a.m. UTC | #1
On Mon, May 22, 2017 at 07:16:41PM +0300, Sam Protsenko wrote:

> One can obtain those variables using next commands:
> 
>     $ fastboot getvar cpu
>     $ fastboot getvar secure
>     $ fastboot getvar board_rev
>     $ fastboot getvar userdata_size
> 
> Those variables are needed for fastboot.sh script.
> 
> Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>

Reviewed-by: Tom Rini <trini@konsulko.com>
Tom Rini June 12, 2017, 10:42 p.m. UTC | #2
On Mon, May 22, 2017 at 07:16:41PM +0300, Semen Protsenko wrote:

> One can obtain those variables using next commands:
> 
>     $ fastboot getvar cpu
>     $ fastboot getvar secure
>     $ fastboot getvar board_rev
>     $ fastboot getvar userdata_size
> 
> Those variables are needed for fastboot.sh script.
> 
> Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
> Reviewed-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c
index 3be697a6ea..c8ebcdbcc8 100644
--- a/board/ti/am57xx/board.c
+++ b/board/ti/am57xx/board.c
@@ -573,6 +573,7 @@  int board_late_init(void)
 			    val);
 
 	omap_die_id_serial();
+	omap_set_fastboot_vars();
 
 	am57x_idk_lcd_detect();