mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
qemu-uboot-arm64/qemu-uboot-x86: split more x86/arm64 differences, add some docs, bump to u-boot 23.04 +update-patches; add arm64 bootscript
This commit is contained in:
committed by
igorpecovnik
parent
5ad3caefee
commit
d9f2ec3255
21
config/bootscripts/boot-qemu-arm64.cmd
Normal file
21
config/bootscripts/boot-qemu-arm64.cmd
Normal file
@@ -0,0 +1,21 @@
|
||||
# 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}
|
||||
@@ -1,18 +1,20 @@
|
||||
# do the virtio dance
|
||||
${devtype} scan
|
||||
${devtype} info
|
||||
ls virtio ${devnum}:${distro_bootpart} /boot
|
||||
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}
|
||||
|
||||
load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} /boot/vmlinuz
|
||||
# /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 the raw initrd.img, NOT uInitrd for uboot/ARM
|
||||
load ${devtype} ${devnum}:${distro_bootpart} ${ramdisk_addr_r} /boot/initrd.img
|
||||
load ${devtype} ${devnum}:${distro_bootpart} ${ramdisk_addr_r} /initrd.img
|
||||
|
||||
# boot params
|
||||
# @TODO: armbianEnv.txt, etc.
|
||||
setenv bootargs root=LABEL=armbi_root ro console=ttyS0
|
||||
|
||||
# zboot knows how to handle bzImage...
|
||||
|
||||
Reference in New Issue
Block a user