Samstag, 2. Februar 2013

Raspberry Pi - Howto recompile raspbian kernel

At first, i use Fedora. You can download Fedora here and start the .iso in a vmware or virtualbox. In fedora you need following packages

yum install gcc.x86_64 gcc-arm-linux-gnu.x86_64 git.x86_64 ncurses-devel.x86_64 

Then you have to download the raspberry pi 3.2.27 sources vom github:

 https://github.com/raspberrypi/linux/archive/rpi-3.2.27.zip 

 extract the zip file and go into the linux archive.
1. cp arch/arm/configs/bcmrpi_cutdown_defconfig .config 
2. make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- menuconfig
Then the menuconfig will pop up and you have to select the device drivers under:
[Device Drivers] / [Input device support] / [Event interface] 
[Device Drivers] / [Input device support] / [Miscellaneous devices]/ [User level driver support] 
[Device Drivers] / [HID Devices] / [/dev/hidraw raw HID device support]
Next steps: compiling the kernel and copy it to the sdcard:
1. make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnu- -k
2. mkdir ~/linux/modules
3. make ARCH=arm modules_install INSTALL_MOD_PATH=~/linux/modules
4. cp ~/linux/modules /[here comes the path to the sdcard]/lib/modules
5. cp ~/linux/arch/arm/boot/Image /[here comes the path to the sdcard]/boot/kernel.img
Reboot the rasberry pi and have fun. I will upload my .iso in the next few days. (this howto is based on the howto by Thomas Grziwa. Thanks a lot!

1 Kommentar:

  1. Thanx for the howto's!
    The touscreen calibration seems off. Can this be fixed (easily)? Keep up the work.

    AntwortenLöschen