Add picocalc zero kernel compilation instructions

This commit is contained in:
cuu
2026-10-10 23:51:56 +08:00
parent f91519806d
commit 5b55038c9e
+23
View File
@@ -5,6 +5,29 @@ Git url: `https://github.com/raspberrypi/linux.git`
Branch: `rpi-6.1.y`
Patch commit hash:`0afb5e98488aed7017b9bf321b575d0177feb7ed`
## How to compile
```
git clone https://github.com/raspberrypi/linux
cd linux
git reset --hard 0afb5e98488aed7017b9bf321b575d0177feb7ed
wget https://raw.githubusercontent.com/clockworkpi/PicoCalc/refs/heads/master/Code/picocalc_zero/kernel.patch
git apply kernel.patch
make ARCH=arm KERNEL=kernel7 CROSS_COMPILE=arm-linux-gnueabihf- bcm2709_defconfig
./scripts/config -m CONFIG_KEYBOARD_PICOCALC
make ARCH=arm KERNEL=kernel7 CROSS_COMPILE=arm-linux-gnueabihf- olddefconfig
make ARCH=arm KERNEL=kernel7 CROSS_COMPILE=arm-linux-gnueabihf- -j2 zImage modules dtbs
```
## /boot/config.txt
```
dtparam=i2c_arm=on