Skip to contentSkip to conversation

arm: socfpga: Enable ubiload console command

PATCH New Chin Liang See 2 participants 3 messages Dec 21, 2015 – Dec 22, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: socfpga: Enable ubiload console command

Enabling ubiload command to load kernel image and device tree from mtd part labeled "UBI". ubiload command will search the file from folder /boot.

Cc Dinh Nguyen <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Pavel Machek <[email protected]>
Cc Marek Vasut <[email protected]>
Cc Stefan Roese <[email protected]>
---
 include/configs/socfpga_cyclone5_socdk.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
include/configs/socfpga_cyclone5_socdk.h +4 -1
index 3c2e2ae..21b35d8 100644
@@ -74,7 +74,10 @@
 	"qspirootfstype=jffs2\0" \
 	"qspiboot=setenv bootargs " CONFIG_BOOTARGS \
 		" root=${qspiroot} rw rootfstype=${qspirootfstype};"\
-		"bootm ${loadaddr} - ${fdt_addr}\0"
+		"bootm ${loadaddr} - ${fdt_addr}\0" \
+	"ubiload=ubi part UBI; ubifsmount ubi0;" \
+		"ubifsload ${loadaddr} /boot/${bootimage};" \
+		"ubifsload ${fdt_addr} /boot/${fdtimage}\0"
 
 /* The rest of the configuration is shared */
 #include <configs/socfpga_common.h>
Signature · 1 line
1.9.2.468.g3f0c02a
#1 lore raw

PATCH 1/1 arm: socfpga: Enable ubiload console command

Quoted 3 lines · Chin Liang See

Enabling ubiload command to load kernel image and device tree from mtd part labeled "UBI". ubiload command will search the file from folder /boot.

... directory ... this is not windows.

Quoted 15 lines
Cc Dinh Nguyen <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Pavel Machek <[email protected]>
Cc Marek Vasut <[email protected]>
Cc Stefan Roese <[email protected]>
---
 include/configs/socfpga_cyclone5_socdk.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/include/configs/socfpga_cyclone5_socdk.h index 3c2e2ae..21b35d8 100644

include/configs/socfpga_cyclone5_socdk.h line 79

Quoted 7 lines
include/configs/socfpga_cyclone5_socdk.h +3 -1
@@ -74,7 +74,10 @@
 	"qspirootfstype=jffs2\0" \
 	"qspiboot=setenv bootargs " CONFIG_BOOTARGS \
 		" root=${qspiroot} rw rootfstype=${qspirootfstype};"\
-		"bootm ${loadaddr} - ${fdt_addr}\0"
+		"bootm ${loadaddr} - ${fdt_addr}\0" \
+	"ubiload=ubi part UBI; ubifsmount ubi0;" \
+		"ubifsload ${loadaddr} /boot/${bootimage};" \

Use && instead of ;, so the loading won't continue in case of failure.

include/configs/socfpga_cyclone5_socdk.h line 83

Quoted 4 lines
include/configs/socfpga_cyclone5_socdk.h +1 -0
+		"ubifsload ${fdt_addr} /boot/${fdtimage}\0"
 
 /* The rest of the configuration is shared */
 #include <configs/socfpga_common.h>

Best regards,
Marek Vasut

#2 lore raw

PATCH 1/1 arm: socfpga: Enable ubiload console command

Quoted 6 lines · Marek Vasut
Quoted 3 lines · Chin Liang See

Enabling ubiload command to load kernel image and device tree from mtd part labeled "UBI". ubiload command will search the file from folder /boot.

... directory ... this is not windows.

haha let me rephrase this :)

Quoted 20 lines
Quoted 20 lines
Cc Dinh Nguyen <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Pavel Machek <[email protected]>
Cc Marek Vasut <[email protected]>
Cc Stefan Roese <[email protected]>
---
 include/configs/socfpga_cyclone5_socdk.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/include/configs/socfpga_cyclone5_socdk.h index 3c2e2ae..21b35d8 100644

include/configs/socfpga_cyclone5_socdk.h +0 -0
@@ -74,7 +74,10 @@
 	"qspirootfstype=jffs2\0" \
 	"qspiboot=setenv bootargs " CONFIG_BOOTARGS \
 		" root=${qspiroot} rw
Quoted 8 lines

include/configs/socfpga_cyclone5_socdk.h line 79

Quoted 5 lines
include/configs/socfpga_cyclone5_socdk.h +3 -1
 rootfstype=${qspirootfstype};"\
-		"bootm ${loadaddr} - ${fdt_addr}\0"
+		"bootm ${loadaddr} - ${fdt_addr}\0" \
+	"ubiload=ubi part UBI; ubifsmount ubi0;" \
+		"ubifsload ${loadaddr} /boot/${bootimage};" \

Use && instead of ;, so the loading won't continue in case of failure.

This sound good. Let me update this

Thanks
Chin Liang

Quoted 8 lines
Quoted 5 lines
include/configs/socfpga_cyclone5_socdk.h +1 -0
+		"ubifsload ${fdt_addr} /boot/${fdtimage}\0"
 
 /* The rest of the configuration is shared */

#include <configs/socfpga_common.h>

Best regards,
Marek Vasut