diff options
author | Dipen Dudhat <dipen.dudhat@freescale.com> | 2010-11-10 14:52:50 -0500 |
---|---|---|
committer | Scott Sweeny <scott.sweeny@timesys.com> | 2010-11-10 14:52:50 -0500 |
commit | 768171389834ff03042b8ab89c94061bc85320a3 (patch) | |
tree | 2adcfaf533f1522538c3f10125a3fbe510c219e0 | |
parent | ec3403737731200cb7697fa7751a7d5a894f5e4c (diff) |
sdboot env variable to boot Linux from SD Card on P1 and P2 RDB Platforms
To boot from preformatted SD card this environment variable is added on P1 and P2 RDB
platforms.
Signed-off-by: Dipen Dudhat <dipen.dudhat@freescale.com>
-rw-r--r-- | include/configs/P1_P2_RDB.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/configs/P1_P2_RDB.h b/include/configs/P1_P2_RDB.h index ddec70d1fc..55a4faf2d4 100644 --- a/include/configs/P1_P2_RDB.h +++ b/include/configs/P1_P2_RDB.h @@ -713,7 +713,12 @@ extern unsigned long get_board_sys_clk(unsigned long dummy); "console=$consoledev,$baudrate $othbootargs;" \ "nand read 2000000 $nandbootaddr $nandimgsize;" \ "nand read 3000000 $nandfdtaddr $nandfdtsize;" \ - "bootm 2000000 - 3000000;\0" + "bootm 2000000 - 3000000;\0" \ + "sdboot=setenv bdev mmcblk0p2;setenv bootargs root=/dev/$bdev rw " \ + "rootdelay=30 console=$consoledev,$baudrate $othbootargs;mmcinfo;" \ + "ext2load mmc 0:2 $loadaddr /boot/$bootfile;" \ + "ext2load mmc 0:2 $fdtaddr /boot/$fdtfile;" \ + "bootm $loadaddr - $fdtaddr;\0" #define CONFIG_NFSBOOTCOMMAND \ "setenv bootargs root=/dev/nfs rw " \ |