Commit b4ccd696 authored by Martin Michlmayr's avatar Martin Michlmayr

Add uboot-generic boot script for ARM64

Add uboot-generic boot script for ARM64 based on the armhf version.
It uses booti instead of bootz.  bootz refers to the zImage which
is only an ARM image type.  ARM64 uses booti.

I also removed some code which is specific to an armhf platform.

Discussion for the record:
parent e25b77c3
# Bootscript using the new unified bootcmd handling
# Expects to be called with the following environment variables set:
# devtype e.g. mmc/scsi etc
# devnum The device number of the given type
# bootpart The partition containing the boot files
# distro_bootpart The partition containing the boot files
# (introduced in u-boot mainline 2016.01)
# prefix Prefix within the boot partiion to the boot files
# kernel_addr_r Address to load the kernel to
# fdt_addr_r Address to load the FDT to
# ramdisk_addr_r Address to load the initrd to.
# The uboot must support the booti and generic filesystem load commands.
if test -n "${console}"; then
setenv bootargs "${bootargs} console=${console}"
if test -z "${fk_kvers}"; then
setenv fk_kvers '@@KERNEL_VERSION@@'
# These two blocks should be the same apart from the use of
# ${fk_kvers} in the first, the syntax supported by u-boot does not
# lend itself to removing this duplication.
if test -n "${fdtfile}"; then
setenv fdtpath dtbs/${fk_kvers}/${fdtfile}
setenv fdtpath dtb-${fk_kvers}
if test -z "${distro_bootpart}"; then
setenv partition ${bootpart}
setenv partition ${distro_bootpart}
load ${devtype} ${devnum}:${partition} ${kernel_addr_r} ${prefix}vmlinuz-${fk_kvers} \
&& load ${devtype} ${devnum}:${partition} ${fdt_addr_r} ${prefix}${fdtpath} \
&& load ${devtype} ${devnum}:${partition} ${ramdisk_addr_r} ${prefix}initrd.img-${fk_kvers} \
&& echo "Booting Debian ${fk_kvers} from ${devtype} ${devnum}:${partition}..." \
&& booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}
load ${devtype} ${devnum}:${partition} ${kernel_addr_r} ${prefix}vmlinuz \
&& load ${devtype} ${devnum}:${partition} ${fdt_addr_r} ${prefix}dtb \
&& load ${devtype} ${devnum}:${partition} ${ramdisk_addr_r} ${prefix}initrd.img \
&& echo "Booting Debian from ${devtype} ${devnum}:${partition}..." \
&& booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}
......@@ -14,6 +14,8 @@ flash-kernel (3.68) UNRELEASED; urgency=medium
[ Martin Michlmayr ]
* Handle DTBs in vendor subdirectories (as found on arm64 kernels).
* Add uboot-generic boot script for arm64: based on the armhf version
but with booti.
-- Karsten Merker <> Tue, 05 Jul 2016 15:07:14 +0200
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment