mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2025-12-15 11:48:50 +01:00
Page:
Compile andriod kernel for 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
2
Compile andriod kernel for cm4
GNU edited this page 2022-07-18 18:32:13 +08:00
Table of Contents
Download kernel source for andriod of rpi4
sync-andriod-kernel.sh
#!/bin/bash
BIN_DIR=$HOME/bin
REPO_PATH=$BIN_DIR/repo
if [ ! -d $BIN_DIR ]
then
mkdir $BIN_DIR
add_path_env $BIN_DIR
curl https://storage.googleapis.com/git-repo-downloads/repo > $REPO_PATH
chmod a+x $REPO_PATH
else
echo "folder already exits. $BIN_DIR"
fi
export PATH=$PATH:$BIN_DIR
cd /data/andriod-kernel
repo init -u https://github.com/android-rpi/kernel_manifest -b arpi-5.10
repo sync
Compile
cd /data/andriod-kernel/
./build/build.sh
Replace files
sudo losetup --show -f -P lineage-19.1-20220511-UNOFFICIAL-KonstaKANG-rpi4.img # assume /dev/loop0
sudo mount /dev/loop0p1 /mnt/p1
# Copy kernel binaries to boot partition
cp -rf /data/andriod-kernel/out/arpi-5.10/dist/Image to /mnt/p1
cp -rf /data/andriod-kernel/out/arpi-5.10/dist/bcm2711-rpi-*.dtb /mnt/p1
cp -rf /data/andriod-kernel/out/arpi-5.10/dist/vc4-kms-v3d-pi4.dtbo to /mnt/p1/overlays/
sudo umount /mnt/p1
sudo losetup -D /dev/loop0