qemu-arm: Add persistent environment support
authorSumit Garg <sumit.garg@linaro.org>
Mon, 26 Nov 2018 11:20:17 +0000 (16:50 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 12 Dec 2018 17:14:21 +0000 (12:14 -0500)
commit03fb0958c9090eb3add089cb9f5a8a5ecb30ddf6
tree3094c913aa257de5fa0dca1b2fb1b079b357eab5
parent5266db16eeba3318e2d0a6e27eb91c0b494d0de4
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>
configs/qemu_arm64_defconfig
configs/qemu_arm_defconfig
doc/README.qemu-arm
include/configs/qemu-arm.h