Skip to content

Commit

Permalink
Added arm64 configuration for the Raspberry Pi 4.
Browse files Browse the repository at this point in the history
  • Loading branch information
lueschem committed Dec 26, 2019
1 parent 7d0c584 commit 80f1b3e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions template/boot.cmd.rpi4.arm64
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# reuse the device tree that got loaded and modified by the raspberry pi bootloader
fdt addr ${fdt_addr}
fdt get value bootargs /chosen bootargs
# adjust the root partition
setexpr bootargs gsub /dev/edi_root_device /dev/mmcblk0p2 "${bootargs}"

ext4load mmc 0:2 ${kernel_addr_r} /boot/vmlinuz-__KERNEL_PACKAGE_VERSION__
ext4load mmc 0:2 ${ramdisk_addr_r} /boot/initrd.img-__KERNEL_PACKAGE_VERSION__

booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr}
10 changes: 10 additions & 0 deletions template/boot.cmd.rpi4.arm64.multiboot
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# reuse the device tree that got loaded and modified by the raspberry pi bootloader
fdt addr ${fdt_addr}
fdt get value bootargs /chosen bootargs
# adjust the root partition
setexpr bootargs gsub /dev/edi_root_device "${edi_root_device}" "${bootargs}"

ext4load mmc ${edi_mmc_device} ${kernel_addr_r} /boot/vmlinuz-__KERNEL_PACKAGE_VERSION__
ext4load mmc ${edi_mmc_device} ${ramdisk_addr_r} /boot/initrd.img-__KERNEL_PACKAGE_VERSION__

booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr}

0 comments on commit 80f1b3e

Please sign in to comment.