Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can not find linux-headers for driver development

Featured Replies

While using ubuntu1604-kernel4.4-VAAPLI.img I took downloaded from the server, I came across the following problem.

While trying to develop device drivers for kernel space, I realized we dont have any linux headers in the said system.

I have tried looking up for the same at Rockchip's github as well as wiki site, but could not find one.

 

Can anyone point me to the correct linux headers ? I am using RK3288 development board, and current my version using "uname -r" is "4.4.55+"

 

  • Author

Thanks for the prompt response, really appreciate it. But the steps mentioned in the above link did not work for me. After installing the said package, I got the following errors on building my test driver

 

ubuntu@localhost:~/vishal/kernel_modules/wow_display_manager$ make
make -C /lib/modules/'4.4.71-rockchip'/build/ M=/home/ubuntu/vishal/kernel_modules/wow_display_manager modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.71-rockchip'
  CC [M]  /home/ubuntu/vishal/kernel_modules/wow_display_manager/wow-display-manager.o
gcc: error: unrecognized command line option ‘-mgeneral-regs-only’
scripts/Makefile.build:264: recipe for target '/home/ubuntu/vishal/kernel_modules/wow_display_manager/wow-display-manager.o' failed
make[2]: *** [/home/ubuntu/vishal/kernel_modules/wow_display_manager/wow-display-manager.o] Error 1
Makefile:1419: recipe for target '_module_/home/ubuntu/vishal/kernel_modules/wow_display_manager' failed
make[1]: *** [_module_/home/ubuntu/vishal/kernel_modules/wow_display_manager] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.71-rockchip'
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
ubuntu@localhost:~/vishal/kernel_modules/wow_display_manager$
 

We have a Rockchip RK3288 based development board with a bare minimum Ubuntu ported on top of the Kernel as mentioned here

https://github.com/rockchip-linux/kernel

The details of Ubuntu are mentioned here

http://opensource.rock-chips.com/wiki_Linux_user_guide

Is it possible to generate linux-headers from kernel? They are the prerequisites for building kernel level device drivers. Thanks in advance.

 

58 minutes ago, Vishal said:

But the steps mentioned in the above link did not work for me

 

That's because you do NOT use Armbian and therefore instructions for Armbian won't work. As expected. You might have your reasons to do everything complicated and manually though...

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.