mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2026-01-11 08:48:55 +01:00
Page:
How to compile DevTerm CM3 Kernel
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
9
How to compile DevTerm CM3 Kernel
GNU edited this page 2021-10-29 23:58:45 +08:00
Table of Contents
Env
VirtualBox with ubuntu 20.04
Toolchain
https://github.com/raspberrypi/tools/tree/master/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin
Get kernel
- git clone https://github.com/raspberrypi/linux.git
- cd linux
- git checkout remotes/origin/rpi-4.19.y
- git reset --hard cc39f1c9f82f6fe5a437836811d906c709e0661c
- git apply devterm-4.19_v0.1.patch
Compile
KERNEL=kernel7 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2709_defconfig
KERNEL=kernel7 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j3
export INSTALL_MOD_PATH=./modules
rm -rf $INSTALL_MOD_PATH
make modules_install
rm $INSTALL_MOD_PATH/lib/modules/*/build
rm $INSTALL_MOD_PATH/lib/modules/*/source
copy kernel to SD card
$1 is the sd card location (mount point)
export INSTALL_MOD_PATH=./modules
sudo cp -r $INSTALL_MOD_PATH/lib/modules $1/rootfs/lib/
cat config_a >> $1/boot/config.txt
cp arch/arm/boot/zImage $1/boot/kernel7.img
cp arch/arm/boot/dts/bcm2710-rpi-cm3.dtb $1/boot/bcm2710-rpi-cm3.dtb
cp arch/arm/boot/dts/overlays/*.dtbo $1/boot/overlays/
config_a
ignore_lcd=1
dtoverlay=vc4-kms-v3d,audio=0,cma-384
dtoverlay=devterm-pmu
dtoverlay=devterm-panel
dtoverlay=devterm-wifi
dtoverlay=devterm-bt
dtoverlay=devterm-misc
gpio=5=op,dh
gpio=9=op,dh
gpio=10=ip,np
gpio=11=op,dh
enable_uart=1