Adjust the 'nandload' command on M28EVK so it can correctly load the kernel
from UBIFS instead of reading it from raw NAND .

Signed-off-by: Marek Vasut <[email protected]>
Cc: Wolfgang Denk <[email protected]>
---
 .../m28evk/0003-ARM-m28evk-Update-default-environment.patch    | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git 
a/meta-eldk/recipes-bsp/uboot/u-boot/m28evk/0003-ARM-m28evk-Update-default-environment.patch
 
b/meta-eldk/recipes-bsp/uboot/u-boot/m28evk/0003-ARM-m28evk-Update-default-environment.patch
index aa997d8..6824dd7 100644
--- 
a/meta-eldk/recipes-bsp/uboot/u-boot/m28evk/0003-ARM-m28evk-Update-default-environment.patch
+++ 
b/meta-eldk/recipes-bsp/uboot/u-boot/m28evk/0003-ARM-m28evk-Update-default-environment.patch
@@ -6,8 +6,8 @@ Subject: [PATCH 3/3] ARM: m28evk: Update default environment
 Signed-off-by: Marek Vasut <[email protected]>
 Signed-off-by: Lothar Rubusch <[email protected]>
 ---
- include/configs/m28evk.h | 85 ++++++++++++++++++++++++++++++++++++++++++++++--
- 1 file changed, 82 insertions(+), 3 deletions(-)
+ include/configs/m28evk.h | 87 ++++++++++++++++++++++++++++++++++++++++++++++--
+ 1 file changed, 84 insertions(+), 3 deletions(-)
 
 diff --git a/include/configs/m28evk.h b/include/configs/m28evk.h
 index e44344b..92e0afa 100644
@@ -53,7 +53,7 @@ index e44344b..92e0afa 100644
                "setexpr update_off ${loadaddr} + ${update_nand_fcb} ; " \
                "setexpr update_sz ${filesize} - ${update_nand_fcb} ; " \
                "nand write ${update_off} ${update_nand_fcb} ${update_sz} ; " \
-@@ -203,6 +217,71 @@
+@@ -203,6 +217,73 @@
                "setexpr fw_sz ${fw_sz} + 1 ; "                         \
                "mmc write ${loadaddr} 0x800 ${fw_sz} ; "               \
                "fi ; "                                                 \
@@ -78,7 +78,9 @@ index e44344b..92e0afa 100644
 +      "mmcload="                                                      \
 +              "mmc rescan ; "                                         \
 +              "ext4load mmc 0:2 ${kernel_addr_r} ${bootfile}\0"       \
-+      "nandload=nand read ${kernel_addr_r} kernel\0"                  \
++      "nandload="                                                     \
++              "ubi part UBI ; ubifsmount ubi0:rootfs ; "              \
++              "ubifsload ${kernel_addr_r} /boot/${bootfile}\0"        \
 +      "netload="                                                      \
 +              "tftp ${kernel_addr_r} ${hostname}/${bootfile}\0"       \
 +      "miscargs=nohlt panic=1\0"                                      \
-- 
1.8.5.2

_______________________________________________
eldk mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/eldk

Reply via email to