diff options
| author | Heiko Schocher <[email protected]> | 2023-01-24 18:06:53 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-02-06 13:04:53 -0500 |
| commit | 2e9eea4ebdbdcca123f658ac5d9d659040b3f15f (patch) | |
| tree | 0acc786810c5f6410cdc8a03cd30a99b41e96554 /include | |
| parent | 73038dd6fdaf4c7d11df1b5c163f28ed67b40c28 (diff) | |
powerpc/mpc85xx: socrates: add MTD partitioning support
setup MTD partitioning through mtdparts variable
and set it to:
mtdparts=fe0000000.nor:13312k(system1),13312k(system2),5120k(data),128k(env),128k(env-red),768k(u-boot)
and pass this to linux per kernel commandline.
Signed-off-by: Heiko Schocher <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/configs/socrates.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/include/configs/socrates.h b/include/configs/socrates.h index 2b35be83ec6..67ff370e05c 100644 --- a/include/configs/socrates.h +++ b/include/configs/socrates.h @@ -110,6 +110,10 @@ */ #define CFG_SYS_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */ +#define SOCRATES_ENV_MTD \ + "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \ + "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \ + "addmtd=setenv bootargs ${bootargs} ${mtdparts}\0" #define CFG_EXTRA_ENV_SETTINGS \ "netdev=eth0\0" \ @@ -118,7 +122,7 @@ "bootfile=/home/tftp/syscon3/uImage\0" \ "fdt_file=/home/tftp/syscon3/socrates.dtb\0" \ "initrd_file=/home/tftp/syscon3/uinitrd.gz\0" \ - "uboot_addr=FFF60000\0" \ + "uboot_addr=FFF40000\0" \ "kernel_addr=FE000000\0" \ "fdt_addr=FE1E0000\0" \ "ramdisk_addr=FE200000\0" \ @@ -134,16 +138,16 @@ "addip=setenv bootargs $bootargs " \ "ip=$ipaddr:$serverip:$gatewayip:$netmask" \ ":$hostname:$netdev:off panic=1\0" \ - "boot_nor=run ramargs addcons;" \ + "boot_nor=run ramargs addcons addmtd;" \ "bootm ${kernel_addr} ${ramdisk_addr} ${fdt_addr}\0" \ "net_nfs=tftp ${kernel_addr_r} ${bootfile}; " \ "tftp ${fdt_addr_r} ${fdt_file}; " \ - "run nfsargs addip addcons;" \ + "run nfsargs addip addcons addmtd;" \ "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \ "update_uboot=tftp 100000 ${uboot_file};" \ - "protect off fff60000 ffffffff;" \ - "era fff60000 ffffffff;" \ - "cp.b 100000 fff60000 ${filesize};" \ + "protect off ${uboot_addr} ffffffff;" \ + "era ${uboot_addr} ffffffff;" \ + "cp.b 100000 ${uboot_addr} ${filesize};" \ "setenv filesize;saveenv\0" \ "update_kernel=tftp 100000 ${bootfile};" \ "era fe000000 fe1dffff;" \ @@ -164,6 +168,7 @@ "boot_usb=run load_usb usbargs addcons;" \ "bootm ${kernel_addr_r} - ${fdt_addr};" \ "bootm ${kernel_addr} ${ramdisk_addr} ${fdt_addr}\0" \ + SOCRATES_ENV_MTD \ "" /* pass open firmware flat tree */ |
