Title: How to install Kernel development packages? [Print This Page] Author: Srikrishna Time: 8/8/2019 15:08 Title: How to install Kernel development packages? Last edited by Srikrishna In 8/8/2019 15:09 Editor
I am trying to install PCIe drivers which needs kernel development packages. Can anyone help me with in installing the kernel package for an Ubuntu RK3399-PC?Author: leungÏÈÉ Time: 8/12/2019 11:42 Last edited by leungÏÈÉ In 8/12/2019 11:52 Editor
1.Put kernel source code under this directory£º/usr/src/kernel
2.Install kernel package tool on the board£º
apt-get install kernel-package
3.Make package deb on the board£º
For example with firefly-rk3288:
make firefly-rk3288-linux_defconfig
make-kpkg kernel_headers --config menuconfigExecute second command will display the dialog of menuconfig, pls load .config then save .config , exit for auto complie . finally create: /usr/src/kernel/debian/linux-headers-3.10.0/ and /usr/src/linux-headers-3.10.0_3.10.0-10.00.Custom_armhf.deb
4.Install head-file:
dpkg -i /usr/src/linux-headers-3.10.0_3.10.0-10.00.Custom_armhf.deb
Will create file after install £º/usr/src/linux-headers-3.10.0
Then, if you want to complie kernel source code on the board , pls add patch below on Makefile£º
KERNELDR := /usr/src/linux-headers-3.10.0/
Welcome Firefly Open Source Community (https://bbs.t-firefly.com/)