2 mmcrootfstype=ext4 rootwait
3 finduuid=part uuid ${boot} ${bootpart} uuid
4 args_mmc=run finduuid;setenv bootargs console=${console}
6 root=PARTUUID=${uuid} rw
7 rootfstype=${mmcrootfstype}
8 loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr
9 bootscript=echo Running bootscript from mmc${mmcdev} ...;
12 importbootenv=echo Importing environment from mmc${mmcdev} ...;
13 env import -t ${loadaddr} ${filesize}
14 loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenvfile}
15 loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
16 loadfdt=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/dtb/${fdtfile}
17 get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/dtb/${name_fdt}
18 envboot=mmc dev ${mmcdev};
20 echo SD/MMC found on device ${mmcdev};
21 if run loadbootscript; then
24 if run loadbootenv; then
25 echo Loaded env from ${bootenvfile};
28 if test -n $uenvcmd; then
29 echo Running uenvcmd ...;
35 if test ${boot_fdt} = yes || test ${boot_fdt} = try; then
36 if run get_fdt_mmc; then
37 bootz ${loadaddr} - ${fdtaddr};
39 if test ${boot_fdt} = try; then
42 echo WARN: Cannot load the DT;
48 mmcboot=mmc dev ${mmcdev};
52 echo SD/MMC found on device ${mmcdev};
53 if run loadimage; then
55 if test ${boot_fit} -eq 1; then
63 init_mmc=run args_all args_mmc
65 fdt address ${fdtaddr};
67 for overlay in $name_overlays;
69 load mmc ${bootpart} ${dtboaddr} ${bootdir}/dtb/${overlay} &&
70 fdt apply ${dtboaddr};
72 get_kern_mmc=load mmc ${bootpart} ${loadaddr}
73 ${bootdir}/${name_kern}
74 get_fit_mmc=load mmc ${bootpart} ${addr_fit}
75 ${bootdir}/${name_fit}
76 partitions=name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}