Commit 76c9e43a authored by Angus Ainslie's avatar Angus Ainslie

boot-imx: arm64 needs to use booti to boot the linux kernel

parent ce61ddde
setenv initrd_high 0xffffffff
a_base=0x80000000
a_script=0x80800000
a_zImage=0x80800000
a_Image=0x80800000
a_fdt=0x83000000
a_ramdisk=0x83800000
a_initrd=0x83a00000
......@@ -9,23 +9,13 @@ a_reset_cause_marker=0x80000080
a_reset_cause=0x80000084
dtbname=##DTBNAME##
if itest.s x${console} == x ; then
console=ttymxc0
fi
if itest.s x${dtype} == x ; then
dtype=mmc
fi
if itest.s x${rfspart} == x ; then
rfspart=2
fi
console=ttymxc0
dtype=mmc
rfspart=2
disk=1
root=/dev/mmcblk${disk}p${rfspart}
if itest.s x${disk} == x ; then
disk=0
fi
if load ${dtype} ${disk}:1 ${a_script} uEnv.txt ; then
if ext2load ${dtype} ${disk}:1 ${a_script} uEnv.txt ; then
env import -t ${a_script} ${filesize}
fi
......@@ -38,7 +28,7 @@ if itest.s x${bootpart} == x ; then
fi
if load ${dtype} ${disk}:${bootpart} ${a_fdt} ${bootdir}dtbs/${dtbname} ; then
if ext2load ${dtype} ${disk}:${bootpart} ${a_fdt} ${bootdir}dtbs/${dtbname} ; then
fdt addr ${a_fdt}
setenv fdt_high 0xffffffff
else
......@@ -87,10 +77,6 @@ if itest.s "xoff" == "x$fb_lcd" ; then
setenv bootargs $bootargs video=VGA-1:d
fi
if itest.s x${rfspart} == x ; then
rfspart=2
fi
if itest.s "x" == "x${root}"; then
part uuid ${dtype} ${disk}:${rfspart} uuid
if itest.s "x" != "x${uuid}"; then
......@@ -130,7 +116,7 @@ if itest *${a_reset_cause_marker} == 12345678 ; then
setenv bootargs $bootargs reset_cause=0x${reset_cause}
fi
if load ${dtype} ${disk}:${bootpart} ${a_zImage} ${bootdir}zImage; then
bootz ${a_zImage} - ${a_fdt}
if ext2load ${dtype} ${disk}:${bootpart} ${a_Image} ${bootdir}Image; then
booti ${a_Image} - ${a_fdt}
fi
echo "Error loading kernel image"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment