mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2025-12-24 16:18:49 +01:00
Page:
Compile lineage os 19.1 kernel for rpi4(cm4)
Pages
7110 dev board note
Compile Devterm CM4 kernel
Compile and run devterm printer
Compile andriod kernel for cm4
Compile keyboard bootloader and firmware
Compile lineage os 19.1 kernel for rpi4(cm4)
Compile the widescreen version of Cave Story from the source code
Create DevTerm A04 OS image from scratch
Create DevTerm A06 OS image from scratch
Create DevTerm CM3 OS image from scratch
Create DevTerm CM4 OS image from scratch
Create DevTerm R01 OS image from scratch
DevTerm A06 Install ibus input method
Devterm CM3 rpi os image
Devterm CM3 ubuntu server image
Devterm CM4 GPIO map
Guide To Setup thermal printer from source code
Home
How to Compile cool retro term for DevTerm
How to compile DevTerm CM3 Kernel
Keyboard with FPC 60pin 0.5mm
nmcli with gsm
Clone
Table of Contents
Prepare
mkdir -p ~/data/andriod
mkdir -p ~/data/github/lineage-rpi
cd ~/data/github/lineage-rpi
git clone https://github.com/lineage-rpi/android_kernel_brcm_rpi -b lineage-19.1
git clone https://github.com/lineage-rpi/proprietary_vendor_brcm -b lineage-19.1
cd ~/data/andriod
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9 -b pie-release
Fix firmware path
edit ~/data/github/lineage-rpi/android_kernel_brcm_rpi/arch/arm64/configs/lineageos_rpi4_defconfig line 1537
to be
CONFIG_EXTRA_FIRMWARE_DIR="/home/cpi/data/github/lineage-rpi/proprietary_vendor_brcm/rpi4/proprietary/vendor/firmware"
Compile
cd ~/data/github/lineage-rpi/android_kernel_brcm_rpi
create m.sh with content like:
#!/bin/bash
export PATH=/home/cpi/data/andriod/aarch64-linux-android-4.9/bin:$PATH
ARCH=arm64 CROSS_COMPILE=aarch64-linux-androidkernel- make lineageos_rpi4_defconfig
ARCH=arm64 CROSS_COMPILE=aarch64-linux-androidkernel- make Image dtbs -j1
chmod +x m.sh
./m.sh # start kernel compile
Replace files
copy
- bcm2711-rpi-400.dtb
- bcm2711-rpi-4-b.dtb
- bcm2711-rpi-cm4.dtb
- bcm2711-rpi-cm4s.dtb
from ~/data/github/lineage-rpi/android_kernel_brcm_rpi/arch/arm64/boot/dts/broadcom/ to lineage os image boot partition
copy ~/data/github/lineage-rpi/android_kernel_brcm_rpi/arch/arm64/boot/Image to to lineage os image boot partition
copy ~/data/github/lineage-rpi/android_kernel_brcm_rpi/arch/arm64/boot/dts/overlays/vc4-kms-v3d.dtbo to to lineage os image boot partition/overlays
Kernel config
https://gist.github.com/cuu/92bfa28a9b6de421834e5f9f408a12a4