arm-sdk

os build toolkit for various embedded devices
git clone https://git.parazyd.org/arm-sdk
Log | Files | Refs | Submodules | README | LICENSE

commit d23729ddfa3528e6dd1de4b8201fcea2c6012527
parent 8db5c9397b33b9644a6f92ac8091631f9973837b
Author: parazyd <parazyd@dyne.org>
Date:   Wed, 10 Feb 2021 20:17:42 +0100

pocophone-f1: Build tweaks and add to $board_map.

Diffstat:
Mboards/pocophone-f1.sh | 21+++++++++++++++------
Msdk | 3++-
2 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/boards/pocophone-f1.sh b/boards/pocophone-f1.sh @@ -22,7 +22,7 @@ arrs+=(custmodules) device_name="pocophone-f1" arch="arm64" size=1891 -inittab=("T0:23:respawn:/sbin/agetty -L ttyAMA0 115200 vt100") +inittab=("T0:23:respawn:/sbin/agetty -L ttyMSM0 115200n8 vt100") parted_type="dos" bootfs="vfat" @@ -55,8 +55,11 @@ postbuild() { pushd "$R/tmp/kernels/$device_name/${device_name}-linux" - cat Image.gz dts/qcom/sdm845-xiaomi-beryllium-ebbg.dtb > Image.gz-dtb || { zerr; return 1; } - + cat arch/arm64/boot/Image.gz \ + arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-ebbg.dtb \ + > Image.gz-dtb || { zerr; return 1; } + + mkdir -p "$R/dist" mkbootimg \ --kernel Image.gz-dtb \ --base 0x00000000 \ @@ -65,11 +68,10 @@ postbuild() { --ramdisk_offset 0x01000000 \ --tags_offset 0x00000100 \ --pagesize 4096 \ - --cmdline "root=LABEL=ALARM rw audit=0" \ - -o $R/boot/boot.img || { zerr; return 1; } + --cmdline "root=/dev/mmcblk0p2 rootfstype=$rootfs rootwait rw audit=0" \ + -o $R/dist/pocophone-f1-boot.img || { zerr; return 1; } popd - } build_kernel_arm64() { @@ -96,6 +98,13 @@ build_kernel_arm64() { CROSS_COMPILE=$compiler \ Image.gz modules qcom/sdm845-xiaomi-beryllium-ebbg.dtb || { zerr; return 1; } + make \ + $MAKEOPTS \ + ARCH=arm64 \ + CROSS_COMPILE=$compiler \ + INSTALL_MOD_PATH="$strapdir" \ + modules_install || { zerr; return 1; } + popd postbuild || { zerr; return 1; } diff --git a/sdk b/sdk @@ -1,5 +1,5 @@ #!/usr/bin/env zsh -# Copyright (c) 2016-2020 Ivan J. <parazyd@dyne.org> +# Copyright (c) 2016-2021 Ivan J. <parazyd@dyne.org> # This file is part of arm-sdk # # This source code is free software: you can redistribute it and/or modify @@ -74,6 +74,7 @@ load() { "odroidxu" "$R/boards/odroid-xu.sh" "odroidxu4" "$R/boards/odroid-xu4.sh" "ouya" "$R/boards/ouya.sh" + "pocophone-f1" "$R/boards/pocophone-f1.sh" "raspi1" "$R/boards/raspberry-pi1.sh" "raspi2" "$R/boards/raspberry-pi2.sh" "raspi3" "$R/boards/raspberry-pi3.sh"