List of patches to use when compiling linux kernel mainline
Copy the patch inside the kernel source root
- git apply xxx.patch
- cp ./arch/arm/configs/clockworkpi_cpi3_defconfig .config
- make menuconfig
- make -j4
- mkimage -A arm -O linux -T kernel -C none -a 0x40008000 -e 0x40008000 -n "Linux kernel" -d arch/arm/boot/zImage uImage
- chmod +x uImage
- sudo mount /dev/mmcblk0p1 /boot
- sudo mv /boot/uImage /boot/uImage.bak
- sudo mv /boot/sun8i-r16-clockworkpi-cpi3.dtb /boot/sun8i-r16-clockworkpi-cpi3.dtb.bak
- sudo mv /boot/sun8i-r16-clockworkpi-cpi3-hdmi.dtb /boot/sun8i-r16-clockworkpi-cpi3-hdmi.dtb.bak
- sudo mv uImage /boot
- sudo mv arch/arm/boot/dts/sun8i-r16-clockworkpi-cpi3.dtb /boot
- sudo mv arch/arm/boot/dts/sun8i-r16-clockworkpi-cpi3-hdmi.dtb /boot