aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2018-06-18 14:36:45 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2018-06-19 07:50:50 +0000
commite8239a22217649f892f5dab5e70f0047e94deb6a (patch)
tree76fc492c24f10038874c5c995318ea71b75c97ed /scripts
parented42835662421a72dbc1c47397a2805306203860 (diff)
downloadaports-e8239a22217649f892f5dab5e70f0047e94deb6a.tar.bz2
aports-e8239a22217649f892f5dab5e70f0047e94deb6a.tar.xz
scripts: add aarch64 support to rpi profile
- removed serial from cmdline. rpi3 has a limited serial interface (used for bluetooth now) and when enabled (enable_uart=1) it will lock the cpu speed to 250Mhz.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mkimg.arm.sh71
1 files changed, 47 insertions, 24 deletions
diff --git a/scripts/mkimg.arm.sh b/scripts/mkimg.arm.sh
index da47f81270..d9d8993b70 100755
--- a/scripts/mkimg.arm.sh
+++ b/scripts/mkimg.arm.sh
@@ -11,26 +11,45 @@ rpi_gen_cmdline() {
}
rpi_gen_config() {
- cat <<EOF
-disable_splash=1
-boot_delay=0
-gpu_mem=256
-gpu_mem_256=64
-[pi0]
-kernel=boot/vmlinuz-rpi
-initramfs boot/initramfs-rpi
-[pi1]
-kernel=boot/vmlinuz-rpi
-initramfs boot/initramfs-rpi
-[pi2]
-kernel=boot/vmlinuz-rpi2
-initramfs boot/initramfs-rpi2
-[pi3]
-kernel=boot/vmlinuz-rpi2
-initramfs boot/initramfs-rpi2
-[all]
-include usercfg.txt
-EOF
+ case "$ARCH" in
+ armhf)
+ cat <<-EOF
+ disable_splash=1
+ boot_delay=0
+ gpu_mem=256
+ gpu_mem_256=64
+ [pi0]
+ kernel=boot/vmlinuz-rpi
+ initramfs boot/initramfs-rpi
+ [pi1]
+ kernel=boot/vmlinuz-rpi
+ initramfs boot/initramfs-rpi
+ [pi2]
+ kernel=boot/vmlinuz-rpi2
+ initramfs boot/initramfs-rpi2
+ [pi3]
+ kernel=boot/vmlinuz-rpi2
+ initramfs boot/initramfs-rpi2
+ [pi3+]
+ kernel=boot/vmlinuz-rpi2
+ initramfs boot/initramfs-rpi2
+ [all]
+ include usercfg.txt
+ EOF
+ ;;
+ aarch64)
+ cat <<-EOF
+ disable_splash=1
+ boot_delay=0
+ arm_control=0x200
+ kernel=boot/vmlinuz-rpi
+ initramfs boot/initramfs-rpi
+ # uncomment line to enable serial on ttyS0 on rpi3
+ # NOTE: This fixes the core_freq to 250Mhz
+ # enable_uart=1
+ EOF
+ ;;
+ esac
}
build_rpi_config() {
@@ -52,14 +71,18 @@ profile_rpi() {
And much more..."
image_ext="tar.gz"
arch="armhf"
- # for 4.14 kernel: https://github.com/raspberrypi/firmware/tree/next
- rpi_firmware_commit="4c9ff4884879c4114796eafb297a5c1ac04cba9a"
+ # check commit log for matching commit with current rpi kernel version at:
+ # https://github.com/raspberrypi/firmware/tree/master
+ rpi_firmware_commit="eeaaf5e2b5aee29f31e989c0dddd186fb68b2144"
kernel_flavors="rpi rpi2"
- kernel_cmdline="dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1"
+ kernel_cmdline="dwc_otg.lpm_enable=0 console=tty1"
initrd_features="base bootchart squashfs ext4 f2fs kms mmc raid scsi usb"
apkovl="genapkovl-dhcp.sh"
hostname="rpi"
- image_ext="tar.gz"
+ if [ "$ARCH" = "aarch64" ]; then
+ arch="aarch64"
+ kernel_flavors="rpi"
+ fi
}
build_uboot() {