Commit e868e54dc9955eb7265e9da992ce23fb9299c8ee
1 parent
15b498bbdf
Exists in
v2015.07-smarct4x
and in
3 other branches
ARM: k2g: env: Add mmc load support
Update env to load images from mmc. Reported-by: Nishanth Menon <nm@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Showing 1 changed file with 11 additions and 0 deletions Side-by-side Diff
include/configs/k2g_evm.h
... | ... | @@ -16,6 +16,10 @@ |
16 | 16 | |
17 | 17 | /* U-Boot general configuration */ |
18 | 18 | #define CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS \ |
19 | + "bootpart=0:2\0" \ | |
20 | + "bootdir=/boot\0" \ | |
21 | + "mmcroot=/dev/mmcblk0p2 rw\0" \ | |
22 | + "mmcrootfstype=ext4 rootwait\0" \ | |
19 | 23 | "addr_mon=0x0c040000\0" \ |
20 | 24 | "args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs " \ |
21 | 25 | "root=ubi0:rootfs rootflags=sync rw ubi.mtd=ubifs,2048\0" \ |
... | ... | @@ -23,6 +27,13 @@ |
23 | 27 | "name_mon=skern-k2g.bin\0" \ |
24 | 28 | "name_ubi=k2g-evm-ubifs.ubi\0" \ |
25 | 29 | "name_uboot=u-boot-spi-k2g-evm.gph\0" \ |
30 | + "init_mmc=run args_all args_mmc\0" \ | |
31 | + "get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}\0"\ | |
32 | + "get_kern_mmc=load mmc ${bootpart} ${loadaddr} " \ | |
33 | + "${bootdir}/${name_kern}\0" \ | |
34 | + "get_mon_mmc=load mmc ${bootpart} ${addr_mon} ${bootdir}/${name_mon}\0"\ | |
35 | + "args_mmc=setenv bootargs ${bootargs} root=${mmcroot} " \ | |
36 | + "rootfstype=${mmcrootfstype}\0" \ | |
26 | 37 | |
27 | 38 | #include <configs/ti_armv7_keystone2.h> |
28 | 39 |