socfpga_xxx.h: update socfpga configs to match mmc spl parition change
PATCH 1/1 socfpga_xxx.h: update socfpga configs to match mmc spl parition change
Commit 61520ac4d5545cc8d2e1792092e46ab8043d5f36 changed the default SPL partition to p1, which moved the bootimage and rootfs partitions. This patch updates the various socfpga_xxx.h config files to match that partition layout when booting from mmc.
--- include/configs/socfpga_arria5_socdk.h | 6 +++--- include/configs/socfpga_cyclone5_socdk.h | 6 +++--- include/configs/socfpga_de0_nano_soc.h | 6 +++--- include/configs/socfpga_sockit.h | 6 +++--- include/configs/socfpga_socrates.h | 6 +++--- include/configs/socfpga_sr1500.h | 6 +++--- 6 files changed, 18 insertions(+), 18 deletions(-)
include/configs/socfpga_arria5_socdk.h +3 -3
@@ -46,13 +46,13 @@"fdt_addr=100\0" \"fdtimage=socfpga.dtb\0" \"bootm ${loadaddr} - ${fdt_addr}\0" \ -"mmcroot=/dev/mmcblk0p2\0" \ +"mmcroot=/dev/mmcblk0p3\0" \"mmcboot=setenv bootargs " CONFIG_BOOTARGS \" root=${mmcroot} rw rootwait;" \"bootz ${loadaddr} - ${fdt_addr}\0" \"mmcload=mmc rescan;" \ -"load mmc 0:1 ${loadaddr} ${bootimage};" \ -"load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \ +"load mmc 0:2 ${loadaddr} ${bootimage};" \ +"load mmc 0:2 ${fdt_addr} ${fdtimage}\0" \"qspiload=sf probe && mtdparts default && run ubiload\0" \"qspiboot=setenv bootargs " CONFIG_BOOTARGS \" ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;" \
include/configs/socfpga_cyclone5_socdk.h +3 -3
@@ -46,13 +46,13 @@"fdt_addr=100\0" \"fdtimage=socfpga.dtb\0" \"bootm ${loadaddr} - ${fdt_addr}\0" \ -"mmcroot=/dev/mmcblk0p2\0" \ +"mmcroot=/dev/mmcblk0p3\0" \"mmcboot=setenv bootargs " CONFIG_BOOTARGS \" root=${mmcroot} rw rootwait;" \"bootz ${loadaddr} - ${fdt_addr}\0" \"mmcload=mmc rescan;" \ -"load mmc 0:1 ${loadaddr} ${bootimage};" \ -"load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \ +"load mmc 0:2 ${loadaddr} ${bootimage};" \ +"load mmc 0:2 ${fdt_addr} ${fdtimage}\0" \"qspiload=sf probe && mtdparts default && run ubiload\0" \"qspiboot=setenv bootargs " CONFIG_BOOTARGS \" ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;" \
include/configs/socfpga_de0_nano_soc.h +3 -3
@@ -41,13 +41,13 @@"fdt_addr=100\0" \"fdtimage=socfpga.dtb\0" \"bootm ${loadaddr} - ${fdt_addr}\0" \ -"mmcroot=/dev/mmcblk0p2\0" \ +"mmcroot=/dev/mmcblk0p3\0" \"mmcboot=setenv bootargs " CONFIG_BOOTARGS \" root=${mmcroot} rw rootwait;" \"bootz ${loadaddr} - ${fdt_addr}\0" \"mmcload=mmc rescan;" \ -"load mmc 0:1 ${loadaddr} ${bootimage};" \ -"load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \ +"load mmc 0:2 ${loadaddr} ${bootimage};" \ +"load mmc 0:2 ${fdt_addr} ${fdtimage}\0" \ /* The rest of the configuration is shared */#include <configs/socfpga_common.h>
include/configs/socfpga_sockit.h +3 -3
@@ -42,13 +42,13 @@"fdt_addr=100\0" \"fdtimage=socfpga.dtb\0" \"bootm ${loadaddr} - ${fdt_addr}\0" \ -"mmcroot=/dev/mmcblk0p2\0" \ +"mmcroot=/dev/mmcblk0p3\0" \"mmcboot=setenv bootargs " CONFIG_BOOTARGS \" root=${mmcroot} rw rootwait;" \"bootz ${loadaddr} - ${fdt_addr}\0" \"mmcload=mmc rescan;" \ -"load mmc 0:1 ${loadaddr} ${bootimage};" \ -"load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \ +"load mmc 0:2 ${loadaddr} ${bootimage};" \ +"load mmc 0:2 ${fdt_addr} ${fdtimage}\0" \"qspiload=sf probe && mtdparts default && run ubiload\0" \"qspiboot=setenv bootargs " CONFIG_BOOTARGS \" ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;" \
include/configs/socfpga_socrates.h +3 -3
@@ -42,13 +42,13 @@"fdt_addr=100\0" \"fdtimage=socfpga.dtb\0" \"bootm ${loadaddr} - ${fdt_addr}\0" \ -"mmcroot=/dev/mmcblk0p2\0" \ +"mmcroot=/dev/mmcblk0p3\0" \"mmcboot=setenv bootargs " CONFIG_BOOTARGS \" root=${mmcroot} rw rootwait;" \"bootz ${loadaddr} - ${fdt_addr}\0" \"mmcload=mmc rescan;" \ -"load mmc 0:1 ${loadaddr} ${bootimage};" \ -"load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \ +"load mmc 0:2 ${loadaddr} ${bootimage};" \ +"load mmc 0:2 ${fdt_addr} ${fdtimage}\0" \"qspiroot=/dev/mtdblock0\0" \"qspirootfstype=jffs2\0" \"qspiboot=setenv bootargs " CONFIG_BOOTARGS \
include/configs/socfpga_sr1500.h +3 -3
@@ -42,13 +42,13 @@"fdtimage=socfpga.dtb\0" \"fsloadcmd=ext2load\0" \"bootm ${loadaddr} - ${fdt_addr}\0" \ -"mmcroot=/dev/mmcblk0p2\0" \ +"mmcroot=/dev/mmcblk0p3\0" \"mmcboot=setenv bootargs " CONFIG_BOOTARGS \" root=${mmcroot} rw rootwait;" \"bootz ${loadaddr} - ${fdt_addr}\0" \"mmcload=mmc rescan;" \ -"load mmc 0:1 ${loadaddr} ${bootimage};" \ -"load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \ +"load mmc 0:2 ${loadaddr} ${bootimage};" \ +"load mmc 0:2 ${fdt_addr} ${fdtimage}\0" \"qspiload=sf probe && mtdparts default && run ubiload\0" \"qspiboot=setenv bootargs " CONFIG_BOOTARGS \" ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;" \
Signature · 1 line
2.7.4
PATCH 1/1 socfpga_xxx.h: update socfpga configs to match mmc spl parition change
Quoted 4 lines · Bill Randle
Commit
61520ac4d5545cc8d2e1792092e46ab8043d5f36changed the default SPL partition to p1, which moved the bootimage and rootfs partitions. This patch updates the varioussocfpga_xxx.hconfig files to match that partition layout when booting from mmc.
The tags should be ARM: socfpga:
I think it'd make more sense to extract this common env to socfpga_common.h instead and then do the necessary changes (that is, 2-patch series). Keep in mind that not all boards use the common env though.
Quoted 138 lines
Signed-off-by Bill Randle <[email protected]>Cc Marek Vasut <[email protected]>--- include/configs/socfpga_arria5_socdk.h | 6 +++--- include/configs/socfpga_cyclone5_socdk.h | 6 +++--- include/configs/socfpga_de0_nano_soc.h | 6 +++--- include/configs/socfpga_sockit.h | 6 +++--- include/configs/socfpga_socrates.h | 6 +++--- include/configs/socfpga_sr1500.h | 6 +++--- 6 files changed, 18 insertions(+), 18 deletions(-)include/configs/socfpga_arria5_socdk.h +3
-3@@ -46,13 +46,13 @@"fdt_addr=100\0" \"fdtimage=socfpga.dtb\0" \"bootm ${loadaddr} - ${fdt_addr}\0" \ -"mmcroot=/dev/mmcblk0p2\0" \ +"mmcroot=/dev/mmcblk0p3\0" \"mmcboot=setenv bootargs " CONFIG_BOOTARGS \" root=${mmcroot} rw rootwait;" \"bootz ${loadaddr} - ${fdt_addr}\0" \"mmcload=mmc rescan;" \ -"load mmc 0:1 ${loadaddr} ${bootimage};" \ -"load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \ +"load mmc 0:2 ${loadaddr} ${bootimage};" \ +"load mmc 0:2 ${fdt_addr} ${fdtimage}\0" \"qspiload=sf probe && mtdparts default && run ubiload\0" \"qspiboot=setenv bootargs " CONFIG_BOOTARGS \" ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;" \include/configs/socfpga_cyclone5_socdk.h +3
-3@@ -46,13 +46,13 @@"fdt_addr=100\0" \"fdtimage=socfpga.dtb\0" \"bootm ${loadaddr} - ${fdt_addr}\0" \ -"mmcroot=/dev/mmcblk0p2\0" \ +"mmcroot=/dev/mmcblk0p3\0" \"mmcboot=setenv bootargs " CONFIG_BOOTARGS \" root=${mmcroot} rw rootwait;" \"bootz ${loadaddr} - ${fdt_addr}\0" \"mmcload=mmc rescan;" \ -"load mmc 0:1 ${loadaddr} ${bootimage};" \ -"load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \ +"load mmc 0:2 ${loadaddr} ${bootimage};" \ +"load mmc 0:2 ${fdt_addr} ${fdtimage}\0" \"qspiload=sf probe && mtdparts default && run ubiload\0" \"qspiboot=setenv bootargs " CONFIG_BOOTARGS \" ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;" \include/configs/socfpga_de0_nano_soc.h +3
-3@@ -41,13 +41,13 @@"fdt_addr=100\0" \"fdtimage=socfpga.dtb\0" \"bootm ${loadaddr} - ${fdt_addr}\0" \ -"mmcroot=/dev/mmcblk0p2\0" \ +"mmcroot=/dev/mmcblk0p3\0" \"mmcboot=setenv bootargs " CONFIG_BOOTARGS \" root=${mmcroot} rw rootwait;" \"bootz ${loadaddr} - ${fdt_addr}\0" \"mmcload=mmc rescan;" \ -"load mmc 0:1 ${loadaddr} ${bootimage};" \ -"load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \ +"load mmc 0:2 ${loadaddr} ${bootimage};" \ +"load mmc 0:2 ${fdt_addr} ${fdtimage}\0" \ /* The rest of the configuration is shared */#include <configs/socfpga_common.h> include/configs/socfpga_sockit.h +3
-3@@ -42,13 +42,13 @@"fdt_addr=100\0" \"fdtimage=socfpga.dtb\0" \"bootm ${loadaddr} - ${fdt_addr}\0" \ -"mmcroot=/dev/mmcblk0p2\0" \ +"mmcroot=/dev/mmcblk0p3\0" \"mmcboot=setenv bootargs " CONFIG_BOOTARGS \" root=${mmcroot} rw rootwait;" \"bootz ${loadaddr} - ${fdt_addr}\0" \"mmcload=mmc rescan;" \ -"load mmc 0:1 ${loadaddr} ${bootimage};" \ -"load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \ +"load mmc 0:2 ${loadaddr} ${bootimage};" \ +"load mmc 0:2 ${fdt_addr} ${fdtimage}\0" \"qspiload=sf probe && mtdparts default && run ubiload\0" \"qspiboot=setenv bootargs " CONFIG_BOOTARGS \" ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;" \include/configs/socfpga_socrates.h +3
-3@@ -42,13 +42,13 @@"fdt_addr=100\0" \"fdtimage=socfpga.dtb\0" \"bootm ${loadaddr} - ${fdt_addr}\0" \ -"mmcroot=/dev/mmcblk0p2\0" \ +"mmcroot=/dev/mmcblk0p3\0" \"mmcboot=setenv bootargs " CONFIG_BOOTARGS \" root=${mmcroot} rw rootwait;" \"bootz ${loadaddr} - ${fdt_addr}\0" \"mmcload=mmc rescan;" \ -"load mmc 0:1 ${loadaddr} ${bootimage};" \ -"load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \ +"load mmc 0:2 ${loadaddr} ${bootimage};" \ +"load mmc 0:2 ${fdt_addr} ${fdtimage}\0" \"qspiroot=/dev/mtdblock0\0" \"qspirootfstype=jffs2\0" \"qspiboot=setenv bootargs " CONFIG_BOOTARGS \include/configs/socfpga_sr1500.h +3
-3@@ -42,13 +42,13 @@"fdtimage=socfpga.dtb\0" \"fsloadcmd=ext2load\0" \"bootm ${loadaddr} - ${fdt_addr}\0" \ -"mmcroot=/dev/mmcblk0p2\0" \ +"mmcroot=/dev/mmcblk0p3\0" \"mmcboot=setenv bootargs " CONFIG_BOOTARGS \" root=${mmcroot} rw rootwait;" \"bootz ${loadaddr} - ${fdt_addr}\0" \"mmcload=mmc rescan;" \ -"load mmc 0:1 ${loadaddr} ${bootimage};" \ -"load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \ +"load mmc 0:2 ${loadaddr} ${bootimage};" \ +"load mmc 0:2 ${fdt_addr} ${fdtimage}\0" \"qspiload=sf probe && mtdparts default && run ubiload\0" \"qspiboot=setenv bootargs " CONFIG_BOOTARGS \" ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;" \
Signature · 2 lines
Best regards, Marek Vasut
PATCH 1/1 socfpga_xxx.h: update socfpga configs to match mmc spl parition change
Quoted 6 lines · Marek Vasut
Quoted 4 lines · Bill Randle
Commit
61520ac4d5545cc8d2e1792092e46ab8043d5f36changed the default SPL partition to p1, which moved the bootimage and rootfs partitions. This patch updates the varioussocfpga_xxx.hconfig files to match that partition layout when booting from mmc.
Quoted 7 lines
The tags should be ARM: socfpga:
I think it'd make more sense to extract this common env to
socfpga_common.hinstead and then do the necessary changes (that is, 2-patch series). Keep in mind that not all boards use the common env though.
Thanks for the comments and suggestions. I'll make a v2 and resubmit.
-Bill