summaryrefslogtreecommitdiff
path: root/configs/qemu_arm_defconfig
diff options
context:
space:
mode:
authorSumit Garg <sumit.garg@linaro.org>2018-11-26 16:50:17 +0530
committerTom Rini <trini@konsulko.com>2018-12-12 12:14:21 -0500
commit03fb0958c9090eb3add089cb9f5a8a5ecb30ddf6 (patch)
tree3094c913aa257de5fa0dca1b2fb1b079b357eab5 /configs/qemu_arm_defconfig
parent5266db16eeba3318e2d0a6e27eb91c0b494d0de4 (diff)
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 'configs/qemu_arm_defconfig')
-rw-r--r--configs/qemu_arm_defconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/configs/qemu_arm_defconfig b/configs/qemu_arm_defconfig
index acebdc5a4e..b75363e305 100644
--- a/configs/qemu_arm_defconfig
+++ b/configs/qemu_arm_defconfig
@@ -29,3 +29,10 @@ CONFIG_USB=y
CONFIG_DM_USB=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_PCI=y
+CONFIG_ENV_IS_IN_FLASH=y
+CONFIG_MTD=y
+CONFIG_MTD_NOR_FLASH=y
+CONFIG_FLASH_CFI_DRIVER=y
+CONFIG_CFI_FLASH=y
+CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y
+CONFIG_SYS_FLASH_CFI=y