[ELDK] [PATCH 2/3] META-ELDK: u-boot: Adjust loading of Linux kernel from UBIFS on M53EVK

Marek Vasut marex at denx.de
Tue Mar 18 01:39:39 CET 2014


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 <marex at denx.de>
Cc: Wolfgang Denk <wd at denx.de>
---
 .../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 <marex at denx.de>
 Signed-off-by: Lothar Rubusch <lothar at denx.de>
 Signed-off-by: Wolfgang Denk <wd at denx.de>
 ---
- 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



More information about the eldk mailing list