blob: 7f539961abf25c229b0910e25c9475d7cf28f274 [file] [log] [blame]
fdt_addr=0x43000000
image=Image
script=boot.scr
mmc_root="PARTUUID=70672ec3-5eee-49ff-b3b1-eb1fbd406bf5"
sd_root="/dev/mmcblk1p2"
# Check boot device to decide which root partition to use
if test ${bootdev} = 1; then
setenv root ${sd_root}
else
setenv root ${mmc_root}
fi
if test ${baseboardid} = 1; then
setenv fdt_file fsl-imx8mq-phanbell.dtb
elif test ${baseboardid} = 2; then
setenv fdt_file fsl-imx8mq-yorktown.dtb
else
# EVT Boards have quirky baseboard ID resistors, so fall back
# to phanbell if we're unsure what the board is.
echo "Unknown baseboard revision, selecting phanbell dtb."
setenv fdt_file fsl-imx8mq-phanbell.dtb
fi
cmdline="console=ttymxc0,115200 console=tty0 earlycon=ec_imx6q,0x30860000,115200 root=${root} rootfstype=ext4 rw rootwait init=/sbin/init net.ifnames=0 pci=pcie_bus_perf"
ext2load mmc ${bootdev}:1 ${loadaddr} ${image}
ext2load mmc ${bootdev}:1 ${fdt_addr} ${fdt_file}
setenv bootargs ${cmdline}
booti ${loadaddr} - ${fdt_addr}