build/config/bootscripts/boot-qemu-arm64.cmd

22 lines
906 B
Batchfile

# do the virtio dance
${devtype} scan
${devtype} info
ls ${devtype} ${devnum}:${distro_bootpart} /boot
# higher load address; the default causes the initrd to be overwritten when the bzImage is unpacked....
#setenv ramdisk_addr_r 0x8000000
echo "KERNEL LOAD ADDRESS: kernel_addr_r : ${kernel_addr_r}"
echo "INITRD LOAD ADDRESS: ramdisk_addr_r: ${ramdisk_addr_r}"
echo "FDT LOAD ADDRESS : fdt_addr : ${fdt_addr}"
# /vmlinuz and /initrd.img are standard Debian symlinks to the "latest installed kernel"
load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} /vmlinuz
# Attention, this is uInitrd for uboot/ARM; there's a symlink put there by Armbian hooks
load ${devtype} ${devnum}:${distro_bootpart} ${ramdisk_addr_r} ${prefix}uInitrd
# boot params
# @TODO: armbianEnv.txt, etc.
setenv bootargs root=LABEL=armbi_root ro console=ttyAMA0
booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr}