|
Posted at 8/12/2019 11:42:12
Only Author
2#
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/
|
|