Linux headers for rockchip64


Recommended Posts

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?

Link to post
Share on other sites
Armbian is a community driven open source project. Do you like to contribute your code?

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.

Link to post
Share on other sites

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

Link to post
Share on other sites

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

Link to post
Share on other sites
  • Werner changed the title to Linux headers for rockchip64

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

Link to post
Share on other sites

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

Link to post
Share on other sites

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.

Link to post
Share on other sites

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/ 

Link to post
Share on other sites
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" ... 

Link to post
Share on other sites

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

 

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...