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.

Linux headers for rockchip64

Featured Replies

In the newest image "Armbian_21.02.1_Rockpro64_focal_current_5.10.12_desktop.img" I downloaded the "Armbian config" the Source download choice box does not have the version "5.10.12" as a choice. The "headers" option does download the proper version. How do I get the source for it?

apt install linux-source-5.10.12-current-rockchip64

headers seem missing....

 

Edit: Just lacking a bit behind. Update kernel and get matchin headers for it:

apt update && apt upgrade -y && linux-headers-current-rockchip64

 

Should give you 5.10.17 plus headers at this date.

  • Author

root@rockpro64-sys1:/home/dwinz# apt update && apt upgrade -y && linux-headers-current-rockchip64
Hit:2 http://ports.ubuntu.com focal InRelease
Hit:3 http://ports.ubuntu.com focal-security InRelease
Hit:4 http://ports.ubuntu.com focal-updates InRelease    
Hit:5 http://ports.ubuntu.com focal-backports InRelease                 
Hit:1 https://minio.k-space.ee/armbian/apt focal InRelease              
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
bash: linux-headers-current-rockchip64: command not found

maybe adding apt install before linux-headers-current-rockchip64 helps :P

  • Werner changed the title to Linux headers for rockchip64
  • Author

Had done it previously but again...

 

apt install linux-headers-current-rockchip64
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-current-rockchip64 is already the newest version (21.02.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

 

And again the other;

 

apt update && apt upgrade -y && linux-headers-current-rockchip64
Hit:2 http://ports.ubuntu.com focal InRelease
Get:3 http://ports.ubuntu.com focal-security InRelease [109 kB]
Get:4 http://ports.ubuntu.com focal-updates InRelease [114 kB]                 
Hit:1 https://minio.k-space.ee/armbian/apt focal InRelease
Get:5 http://ports.ubuntu.com focal-backports InRelease [101 kB]
Fetched 324 kB in 3s (93.9 kB/s)  
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
bash: linux-headers-current-rockchip64: command not found

 

And finally;

ls -l /linux-headers-current-rockchip64
ls: cannot access '/linux-headers-current-rockchip64': No such file or directory

  • Author

apt update && apt upgrade -y && apt install linux-headers-current-rockchip64
Hit:2 http://ports.ubuntu.com focal InRelease
Hit:3 http://ports.ubuntu.com focal-security InRelease
Hit:4 http://ports.ubuntu.com focal-updates InRelease                          
Hit:5 http://ports.ubuntu.com focal-backports InRelease                        
Hit:1 https://minio.k-space.ee/armbian/apt focal InRelease             
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-current-rockchip64 is already the newest version (21.02.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

 

and still no results (the tar file i got from the linux sources);

ls -l /usr/src
total 995584
drwxrwxr-x  8 root  root        4096 Aug  7  2019 libgpiod-1.4.1
-rw-rw-r--  1 dwinz dwinz 1019463680 Feb 22 14:12 linux-5.10.17.tar
drwxr-xr-x 23 root  root        4096 Feb 22 06:28 linux-headers-5.10.16-rockchip

  • Author

You changed the title to headers but really trying to use the Armbian_config tool to load the source for the running version....

Trying to port things over to this version and specifically trying to get the gpiod stuff and spidev working and easier to just look

and see if I have the source for what is running. gpiod was just easy and simply an apt away and spi was twiddling with the

dtb/dts file and etc. to get the devices.... but to write drivers and etc. need the source. Used Armbian_config on other versions

and it just downloads and installs the source.

Kernel headers are tied to the kernel, while source package you can select. I didn't have any troubles by getting a correct version by using armbian-config but on nightly builds, which are installed on our test devices. Try to remove both packages and install them again or move to nightly builds, where I just came to:
 

root@rockpi-4b:~# ls -l /usr/src/
total 8
drwxr-xr-x 23 root root 4096 feb 23 08:45 linux-headers-5.10.17-rockchip64
drwxrwxr-x 26 root root 4096 jan 16 12:24 linux-source-5.10.7-rockchip64

 

1 hour ago, dwinz said:

but really trying to use the Armbian_config tool to load the source for the running version

 

We really struggle to pay for the costs "customers" create on support https://forum.armbian.com/subscriptions/ 

  • Author

Not sure of how to get to "nightly" builds as not a option that I find?

  • Author

So why don't the stock methods work? Why should I go to the supposedly "unstable" version?

50 minutes ago, dwinz said:

So why don't the stock methods work?

 

I am not sure that it doesn't work - I only tested on my build which runs nightly and same kernel family / similar board. And also if it doesn't, we need someone that will donate his/her time to fix that. Until then, nothing will happen. https://github.com/armbian/build#support

 

50 minutes ago, dwinz said:

Why should I go to the supposedly "unstable" version?

 

Its as stable / unstable as ArchLinux.

 

This is not professional technical support. It's a community forum and I am giving you hints and shed some light on the problem, since I have no time to dive into the problem with you. "try this", "try that" ... 

  • Author

Seriously confused now so tried to start from the beginning..... new sd... booted, update. upgrade, Armbian_config to the non-stable version (even have the red screen background) then did the download of headers and source... the result;

 

uname -a
Linux rockpro64 5.10.17-rockchip64 #trunk.125 SMP PREEMPT Wed Feb 17 12:29:35 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

 

Then when I do Armbian_config I show only the source for 5.10.6

 

 

  • Author

Yes rebooted after the upodate/upograde, made sure it was in "attached to beta repository", my only choices to download the source are

5.10.6 -9 and 5.9.16

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.