summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSumit Garg <sumit.garg@linaro.org>2018-11-26 14:20:17 +0300
committerTom Rini <trini@konsulko.com>2018-12-12 20:14:21 +0300
commit03fb0958c9090eb3add089cb9f5a8a5ecb30ddf6 (patch)
tree3094c913aa257de5fa0dca1b2fb1b079b357eab5 /doc
parent5266db16eeba3318e2d0a6e27eb91c0b494d0de4 (diff)
downloadu-boot-03fb0958c9090eb3add089cb9f5a8a5ecb30ddf6.tar.xz
qemu-arm: Add persistent environment support
Currently on qemu-arm platforms environment is kept in RAM. Instead use pflash device 1 to provide persistent environment support across device reset. Also (optionally) provide support for persistent environment across qemu machine OFF/ON using following instructions: - Create envstore.img using qemu-img: qemu-img create -f raw envstore.img 64M - Add a pflash drive parameter to the command line: -drive if=pflash,format=raw,index=1,file=envstore.img Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/README.qemu-arm6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/README.qemu-arm b/doc/README.qemu-arm
index 260165638a..e67bc13f70 100644
--- a/doc/README.qemu-arm
+++ b/doc/README.qemu-arm
@@ -47,6 +47,12 @@ The minimal QEMU command line to get U-Boot up and running is:
Note that for some odd reason qemu-system-aarch64 needs to be explicitly
told to use a 64-bit CPU or it will boot in 32-bit mode.
+Additional persistent U-boot environment support can be added as follows:
+- Create envstore.img using qemu-img:
+ qemu-img create -f raw envstore.img 64M
+- Add a pflash drive parameter to the command line:
+ -drive if=pflash,format=raw,index=1,file=envstore.img
+
Additional peripherals that have been tested to work in both U-Boot and Linux
can be enabled with the following command line parameters: