Use our common environment file to implement MMC boot.
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
#include <env/ti/k3_dfu.env>
+#include <env/phytec/k3_mmc.env>
fdtaddr=0x88000000
loadaddr=0x82000000
mmcpart=1
console=ttyS2,115200n8
earlycon=ns16550a,mmio32,0x02800000
-mmcargs=setenv bootargs console=${console} earlycon=${earlycon}
- root=/dev/mmcblk${mmcdev}p${mmcroot} rootwait rw
-loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} Image
-loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdtaddr} ${fdtfile}
-mmcboot=run mmcargs;
- mmc dev ${mmcdev};
- mmc rescan;
- run loadimage;
- run loadfdt;
- booti ${loadaddr} - ${fdtaddr}