Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] How to install Kernel development packages?

89

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
89

【Linux】 How to install Kernel development packages?

Posted at 8/8/2019 15:08:27      View:3223 | Replies:1        Print      Only Author   [Copy Link] 1#
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?
Reply

Use props Report

792

Credits

10

Prestige

10

Contribution

advanced

Rank: 4

Credits
792
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/
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list