Skip to content
Snippets Groups Projects
Commit 5c92d482 authored by Stephen Warren's avatar Stephen Warren Committed by Albert ARIBAUD
Browse files

ARM: rpi_b: load /uEnv.txt from MMC at startup


The Pi has no flash to store an environment in the usual fashion. However,
the user may wish to customize the environment. We know that the SD card
must be present, since that's where the boot ROM has loaded U-Boot from.
So, load uEnv.txt from there early during boot. This allows the user to
e.g. customize boot_targets, in order to automatically select network
boot.

Signed-off-by: default avatarStephen Warren <swarren@wwwdotorg.org>
parent 29235b73
No related branches found
No related tags found
No related merge requests found
...@@ -95,6 +95,11 @@ ...@@ -95,6 +95,11 @@
#define CONFIG_SYS_LOAD_ADDR 0x1000000 #define CONFIG_SYS_LOAD_ADDR 0x1000000
#define CONFIG_CONSOLE_MUX #define CONFIG_CONSOLE_MUX
#define CONFIG_SYS_CONSOLE_IS_IN_ENV #define CONFIG_SYS_CONSOLE_IS_IN_ENV
#define CONFIG_PREBOOT \
"if load mmc 0:1 ${loadaddr} /uEnv.txt; then " \
"env import -t ${loadaddr} ${filesize}; " \
"fi"
/* /*
* Memory layout for where various images get loaded by boot scripts: * Memory layout for where various images get loaded by boot scripts:
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment