dwinz Posted February 22, 2021 Posted February 22, 2021 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?
Werner Posted February 22, 2021 Posted February 22, 2021 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.
dwinz Posted February 23, 2021 Author Posted February 23, 2021 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
Werner Posted February 23, 2021 Posted February 23, 2021 maybe adding apt install before linux-headers-current-rockchip64 helps
dwinz Posted February 23, 2021 Author Posted February 23, 2021 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
dwinz Posted February 23, 2021 Author Posted February 23, 2021 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
dwinz Posted February 23, 2021 Author Posted February 23, 2021 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.
Igor Posted February 23, 2021 Posted February 23, 2021 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/
dwinz Posted February 23, 2021 Author Posted February 23, 2021 Not sure of how to get to "nightly" builds as not a option that I find?
Igor Posted February 23, 2021 Posted February 23, 2021 36 minutes ago, dwinz said: Not sure of how to get to "nightly" builds as not a option that I find? armbian-config -> system
dwinz Posted February 23, 2021 Author Posted February 23, 2021 So why don't the stock methods work? Why should I go to the supposedly "unstable" version?
Igor Posted February 23, 2021 Posted February 23, 2021 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" ...
dwinz Posted February 23, 2021 Author Posted February 23, 2021 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
Igor Posted February 23, 2021 Posted February 23, 2021 Did you reboot after upgrade? And then select for sources?
Igor Posted February 23, 2021 Posted February 23, 2021 You still can do everything manually: https://imola.armbian.com/apt/pool/main/l/ download packages you need and install them. Why would you need some menu driven luxury?
dwinz Posted February 23, 2021 Author Posted February 23, 2021 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
Igor Posted February 23, 2021 Posted February 23, 2021 18 minutes ago, dwinz said: my only choices to download the source are 5.10.6 -9 and 5.9.16 Now I also could recreate on one machine - its a bug ... either in this code https://github.com/armbian/config/blob/master/debian-config-jobs#L191-L274 or repository management. It can be solved addressed in a couple of weeks - months fastests.
Recommended Posts