diff --git a/README.md b/README.md new file mode 100644 index 0000000..dedbd2a --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +# dm9601-bug.patch +Instruction how to patch and build the kernel: + +Note: if the cloning step below cause a Kernel Panic, you can swap the sd card to a Pi with a good Ethernet connection and perform the steps on that one. + +``` +sudo rpi-update +sudo apt-get -y update +sudo apt-get -y install gcc make bc screen ncurses-dev +git clone --depth 1 git://github.com/raspberrypi/linux.git +git clone https://github.com/kmtaylor/rpi_patches.git +cd linux +patch -p1 < ../rpi_patches/dm9601-bug.patch +KERNEL_SRC=/home/pi/linux/ +make mrproper +sudo modprobe configs +zcat /proc/config.gz > .config +make oldconfig +make # This may take about 12 hours. +sudo make modules_install +sudo cp arch/arm/boot/zImage /boot/kernel.img +```