Skip to contentSkip to conversation

riscv: qemu-riscv environment size

RFC PATCH New Karsten Merker 3 participants 4 messages May 5, 2019 – Jun 4, 2019 1 message not in the archive RISC-V

lore
Share & tools
lore
#0 lore raw

cover riscv: qemu-riscv environment size

Hello,

currently the environment size for the qemu-riscv platform is set to only 4kB. The default environment (with distro_bootcmd support) has already nearly 4kB, so defining additional environment variables very quickly exceeds the allocated space. Is there a specific reason to use only 4kB for the environment? If not, I would like to propose to increase the environment size to 128kB similar to what we have on a number of other platforms.

Regards,
Karsten

Karsten Merker (1):
riscv: increase the environment size for the qemu-riscv platform to

    128kB
 include/configs/qemu-riscv.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.20.1
#1 lore raw

RFC PATCH 1/1 riscv: increase the environment size for the qemu-riscv platform to 128kB

The existing default size of 4kB is too small as the default environment has already nearly that size and defining a single additional environment variable can exceed the available space.

---
 include/configs/qemu-riscv.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/qemu-riscv.h +1 -1
index 2588c5a0b2..3d9208bab2 100644
@@ -20,7 +20,7 @@
 #define CONFIG_STANDALONE_LOAD_ADDR	0x80200000
 
 /* Environment options */
-#define CONFIG_ENV_SIZE			SZ_4K
+#define CONFIG_ENV_SIZE			SZ_128K
 
 #define BOOT_TARGET_DEVICES(func) \
 	func(QEMU, qemu, na) \
Signature · 1 line
2.20.1
#2 lore raw

RFC PATCH 1/1 riscv: increase the environment size for the qemu-riscv platform to 128kB

Quoted 10 lines · Karsten Merker

The existing default size of 4kB is too small as the default environment has already nearly that size and defining a single additional environment variable can exceed the available space.

---
 include/configs/qemu-riscv.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

RFC PATCH 1/1 riscv: increase the environment size for the qemu-riscv platform to 128kB

Quoted 13 lines

From: U-Boot [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Bin Meng
Sent: Wednesday, May 08, 2019 9:39 PM
To: Karsten Merker
Cc: U-Boot Mailing List
Subject: Re: [U-Boot] [RFC PATCH 1/1] riscv: increase the environment size for the qemu-riscv platform to 128kB

Quoted 5 lines · Karsten Merker

The existing default size of 4kB is too small as the default environment has already nearly that size and defining a single additional environment variable can exceed the available space.

Quoted 7 lines
Quoted 5 lines
---
 include/configs/qemu-riscv.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to u-boot-riscv/master, thanks!

Quoted 4 lines

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot