Skip to contentSkip to conversation

rockchip: rk3399-puma: Increase environment size to 16 kiB.

PATCH New Christoph Muellner 2 participants 2 messages Feb 19, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rockchip: rk3399-puma: Increase environment size to 16 kiB.

On Puma we have the environment at an offset of 16 kiB.
On the eMMC this gives us 16 kiB for the environment before the SPL starts. On the SPI NOR we also have 16 kiB until end of flash.
So let's increase the environment size from 8 kiB to its maximum of 16 kiB for both MMC and SPI NOR.

---

 board/theobroma-systems/puma_rk3399/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/theobroma-systems/puma_rk3399/Kconfig +1 -1
index e82623a1701..21946d984da 100644
@@ -13,7 +13,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
 	def_bool y
 
 config ENV_SIZE
-	default 0x2000
+	default 0x4000
 
 config ENV_OFFSET
 	default 0x3fc000 if ENV_IS_IN_SPI_FLASH
Signature · 1 line
2.29.2
#1 lore raw

PATCH 1/1 rockchip: rk3399-puma: Increase environment size to 16 kiB.

Am Freitag, 19. Februar 2021, 01:30:02 CET schrieb Christoph Muellner:

Quoted 7 lines

On Puma we have the environment at an offset of 16 kiB.
On the eMMC this gives us 16 kiB for the environment before the SPL starts. On the SPI NOR we also have 16 kiB until end of flash.
So let's increase the environment size from 8 kiB to its maximum of 16 kiB for both MMC and SPI NOR.

as that area would otherwise be simply wasted, this looks like a nice addition

Quoted 19 lines

---

 board/theobroma-systems/puma_rk3399/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/theobroma-systems/puma_rk3399/Kconfig +1 -1
index e82623a1701..21946d984da 100644
@@ -13,7 +13,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
 	def_bool y
 
 config ENV_SIZE
-	default 0x2000
+	default 0x4000
 
 config ENV_OFFSET
 	default 0x3fc000 if ENV_IS_IN_SPI_FLASH