Need kernel headers for kernel module development

2 9286
At least kernel-headers are needed for 3.4.90 in order to develop kernel modules.
Please provide the kernel headers and some instruction how to prepare the BnanaPi Lubuntu for kernel development. eg. installing make, gcc and other needed packages

This is an old thread but useful title since requests for kernel headers pop up occasionally.  If you build your own kernel, you can get your kernel headers by following the post of user db260179 ... =1&authorid=822 .  Look at the section
# Flat kernel and modules
towards the end
make -j2 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_HDR_PATH=/usr/src headers_install - if you want to install
.  If you are using Debian or Ubuntu, it would be cleaner for installation and updating, or removing, if you build the deb packages shown in the section
# Build Deb packages
export ARCH=arm
export DEB_HOST_ARCH=armhf
export CONCURRENCY_LEVEL=`grep -m1 cpu\ cores /proc/cpuinfo | cut -d : -f 2`
make -j2 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- KBUILD_DEBARCH=armhf KBUILD_IMAGE=uImage deb-pkg

Then you can just use dpkg -i.

You have to log in before you can reply Login | Sign Up

Points Rules