u-boot-brain/arch
Bernhard Nortmann 320e0570e6 sunxi: FEL - Add the ability to recognize and auto-import uEnv-style data
The patch converts one of the "reserved" fields in the sunxi SPL
header to a fel_uEnv_length entry. When booting over USB ("FEL
mode"), this enables the sunxi-fel utility to pass the string
length of uEnv.txt compatible data; at the same time requesting
that this data be imported into the U-Boot environment.

If parse_spl_header() in the sunxi board.c encounters a non-zero
value in this header field, it will therefore call himport_r() to
merge the string (lines) passed via FEL into the default settings.
Environment vars can be changed this way even before U-Boot will
attempt to autoboot - specifically, this also allows overriding
"bootcmd".

With fel_script_addr set and a zero fel_uEnv_length, U-Boot is
safe to assume that data in .scr format (a mkimage-type script)
was passed at fel_script_addr, and will handle it using the
existing mechanism ("bootcmd_fel").

Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
Acked-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2016-07-15 08:34:34 +02:00
..
arc arc: make global_data.h usable in assembly files 2016-07-04 11:43:41 +03:00
arm sunxi: FEL - Add the ability to recognize and auto-import uEnv-style data 2016-07-15 08:34:34 +02:00
avr32 avr32: Drop unused code in u-boot.h 2016-05-27 15:39:52 -04:00
blackfin configs: Re-sync almost all of cmd/Kconfig 2016-04-25 15:09:40 -04:00
m68k m68k: Drop unused code in u-boot.h 2016-05-27 15:39:53 -04:00
microblaze Remove unneeded remnants of bcopy(). 2016-06-06 13:39:18 -04:00
mips clk: convert API to match reset/mailbox style 2016-06-19 17:05:55 -06:00
nds32 Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
nios2 Delete tests of CONFIG_OF_LIBFDT when testing CONFIG_OF_BOARD_SETUP 2016-05-27 15:41:16 -04:00
openrisc openrisc: Drop the arch-specific board init 2016-05-27 15:39:50 -04:00
powerpc dm: gpio: MPC85XX GPIO platform data support 2016-07-11 14:06:44 -06:00
sandbox clk: convert API to match reset/mailbox style 2016-06-19 17:05:55 -06:00
sh Drop references to CONFIG_SYS_GENERIC_BOARD in config files 2016-05-27 15:39:54 -04:00
sparc Fix spelling of "transferred". 2016-03-22 12:16:16 -04:00
x86 Merge branch 'master' of git://git.denx.de/u-boot-x86 2016-07-12 08:15:17 -04:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig dm: sandbox: Convert to use CONFIG_CMD_MMC_OPS 2016-07-11 14:06:44 -06:00