Skip to contentSkip to conversation

configs:pm9g45_defconfig:Fix boot arguments and boot command

PATCH In review Ilko Iliev 2 participants 3 messages Feb 20, 2023 – Feb 28, 2023

lore
Share & tools
lore

Ilko Iliev

author
#0 lore raw

PATCH 1/2 configs:pm9g45_defconfig:Fix boot arguments and boot command

This patch modify boot arguments and boot command to load 512KB DTB and 8MB Linux Kernel

---
 configs/pm9g45_defconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
configs/pm9g45_defconfig +3 -3
index e7b4d967f2..9b22d4aa9b 100644
@@ -14,15 +14,15 @@ CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_DEBUG_UART_BASE=0xffffee00
 CONFIG_DEBUG_UART_CLOCK=132000000
 CONFIG_ENV_OFFSET_REDUND=0x100000
-CONFIG_SYS_LOAD_ADDR=0x22000000
+CONFIG_SYS_LOAD_ADDR=0x70000000
 CONFIG_DEBUG_UART=y
 CONFIG_SYS_MONITOR_LEN=524288
 CONFIG_NAND_BOOT=y
 CONFIG_BOOTDELAY=3
 CONFIG_USE_BOOTARGS=y
-CONFIG_BOOTARGS="fbcon=rotate:3 console=tty0 console=ttyS0,115200 root=/dev/mtdblock4 mtdparts=atmel_nand:128k(bootstrap)ro,256k(uboot)ro,1664k(env),2M(linux)ro,-(root) rw rootfstype=jffs2"
+CONFIG_BOOTARGS="console=ttyS0,115200 mtdparts=atmel_nand:128k(bootstrap)ro,640k(uboot)ro,256k(env),256k(env_redundant),256k(spare),512k(dtb),8M(kernel)ro,-(rootfs) root=/dev/mtdblock7 rw rootfstype=jffs2"
 CONFIG_USE_BOOTCOMMAND=y
-CONFIG_BOOTCOMMAND="nand read 0x70000000 0x200000 0x300000;bootm 0x70000000"
+CONFIG_BOOTCOMMAND="nand read 0x70000000 0x180000 0x880000; nand read 0x70080000 0x200000 0x800000; bootz 0x70080000 - 0x70000000"
 CONFIG_SYS_CONSOLE_IS_IN_ENV=y
 # CONFIG_DISPLAY_BOARDINFO is not set
 CONFIG_RESET_PHY_R=y
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH 2/2 configs:pm9g45_deconfig:Modify to use standard ECC layout

This patch removes CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT because the board uses standard ECC layout

---
 configs/pm9g45_defconfig | 1 -
 1 file changed, 1 deletion(-)
configs/pm9g45_defconfig +0 -1
index 9b22d4aa9b..0afdd0abcf 100644
@@ -53,7 +53,6 @@ CONFIG_CLK_AT91=y
 CONFIG_AT91_GPIO=y
 CONFIG_GENERIC_ATMEL_MCI=y
 CONFIG_MTD=y
-CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT=y
 # CONFIG_SYS_NAND_USE_FLASH_BBT is not set
 CONFIG_NAND_ATMEL=y
 CONFIG_MACB=y
Signature · 1 line
2.34.1