Adjust the 'nandload' command on M53EVK 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]>
---
 .../m53evk/0003-ARM-m53evk-Update-default-environment.patch    | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git 
a/meta-eldk/recipes-bsp/uboot/u-boot/m53evk/0003-ARM-m53evk-Update-default-environment.patch
 
b/meta-eldk/recipes-bsp/uboot/u-boot/m53evk/0003-ARM-m53evk-Update-default-environment.patch
index 2b0e305..dcd6b8f 100644
--- 
a/meta-eldk/recipes-bsp/uboot/u-boot/m53evk/0003-ARM-m53evk-Update-default-environment.patch
+++ 
b/meta-eldk/recipes-bsp/uboot/u-boot/m53evk/0003-ARM-m53evk-Update-default-environment.patch
@@ -7,8 +7,8 @@ Signed-off-by: Marek Vasut <[email protected]>
 Signed-off-by: Lothar Rubusch <[email protected]>
 Signed-off-by: Wolfgang Denk <[email protected]>
 ---
- include/configs/m53evk.h | 85 +++++++++++++++++++++++++++++++++++++++++++++++-
- 1 file changed, 84 insertions(+), 1 deletion(-)
+ include/configs/m53evk.h | 87 +++++++++++++++++++++++++++++++++++++++++++++++-
+ 1 file changed, 86 insertions(+), 1 deletion(-)
 
 diff --git a/include/configs/m53evk.h b/include/configs/m53evk.h
 index 7f33b8e..169baf0 100644
@@ -34,7 +34,7 @@ index 7f33b8e..169baf0 100644
  #define CONFIG_SYS_LOAD_ADDR  CONFIG_LOADADDR
  #define CONFIG_OF_LIBFDT
  
-@@ -268,4 +270,85 @@
+@@ -268,4 +270,87 @@
  #define CONFIG_SYS_NAND_SIZE          (256 * 1024 * 1024)
  #define CONFIG_SYS_NAND_BAD_BLOCK_POS 0
  
@@ -73,7 +73,9 @@ index 7f33b8e..169baf0 100644
 +      "mmcload="                                                      \
 +              "mmc rescan ; "                                         \
 +              "ext4load mmc 0:1 ${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