1 # Determine root device
2 setexpr rootpart ${distro_bootpart} + 1
3 if test ${devtype} = mmc -a ${devnum} = 0; then
4 setenv rootdev /dev/mmcblk0p${rootpart}
5 elif test ${devtype} = scsi -a ${devnum} = 0; then
6 setenv rootdev /dev/sda${rootpart}
9 part uuid ${devtype} ${devnum}:${rootpart} uuid
10 setenv rootdev PARTUUID=${uuid}
12 setenv bootargs earlyprintk console=ttyS0,115200 root=${rootdev} rootfstype=auto rootwait
15 load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} @DTB@.dtb
16 load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} zImage
17 bootz ${kernel_addr_r} - ${fdt_addr_r}