calinb
I've built Ardopc from source and it runs on my Quadra. However, it is incompatible with the 5.15 kernel and  I don't think the ardopc developer will be able to fix it anytime soon. Ardopc is a staple for me for HF Winlink (pat) work. Pat is working too but the 5.15 kernel results in so many errors in ardopc that the combination is unusable. This is a known bug and it is well-covered by discussions on the ardopc groups.io list.

I tried to install a 5.10 .deb file but I only succeeded in bricking the system on my eMMC.

So it appears that I must build a new .deb file. I think I can recover my system and I'd very much prefer to just downgrade the kernel with a .deb file. From https://forum.inovato.com/post/building-armbian-from-source-12449428?pid=1333459893

Select what to build: Generally, you will want "Full OS Image for flashing". However, if you just want individual deb files to update portions of an existing installation, select "U-boot and kernel packages".

I don't get this option to select what to build. How should I proceed?

Thanks,

Cal (AD8Q)
Reply 0 0
Michael Burmeister-Brown inovato
I believe that option may have been removed but I would guess it will still put debs in output/debs.  Does it not?
Reply 0 0
Michael Burmeister-Brown inovato
FYI, I have never tried compiling a 5.10 kernel for the Quadra. The patches we have are for 5.15 so not sure what might break.  
Reply 0 0
calinb
Thanks for your very prompt reply, Michael!

I don't know if it will produce debs. The build tool keeps error-ing out over "slow" downloads. We have a pretty solid 3mbit / sec WISP Internet service here in rural Idaho. 🙁 I get many of these download errors ("Downloading speed: 335110 <= 512000(B/s)"). Yup--335110 B/sec is about 3 mbit/sec, which, a decade ago, wasn't considered to be slow! Even Gentoo can deal with it, though it takes a long time to do builds! Maybe Armbian is not a good OS for rural Idaho! See below for an example of the errors which kills the build, eventually.

I have both Quadra and HamPi SD cards. I recovered my HamPi image on eMMC from a backup. The HamPi /var/cache/apt/archives/  has a linux-image-5.10.0-19-rt-arm64_5.10.149-2_arm64.deb file in it so Dave must have been using it or experimenting with it.

"sudo dpkg -i linux-image-5.10.0-19-rt-arm64_5.10.149-2_arm64.deb"

I installed it but I could not get it boot. According to the Armbian forum, Armbian did not used to support having more than one kernel installed but now it does (though good luck figuring out how to do it). So I removed the old kernel and of course updated uboot with armbian-config and "bricked" the eMMC image, which I've now restored.

I should be able to take your kernel .config file and back apply it to 5.10 kernel source, but that will require the online tools to download and also amount to a big learning curve for me. Armbian builds are not anything like Slackware, Fedora, Gentoo, Manjaro, Debian, etc. I'm not sure that I have the time to devote to this project right now.

01/01 15:19:12 [ERROR] CUID#7 - Download aborted. URI=https://armbian.tnahosting.net/dl//_toolchain/gcc-linaro-arm-none-eabi-4.8-2014.04_linux.tar.xz
Exception: [AbstractCommand.cc:351] errorCode=5 URI=https://armbian.tnahosting.net/dl//_toolchain/gcc-linaro-arm-none-eabi-4.8-2014.04_linux.tar.xz
-> [DownloadCommand.cc:309] errorCode=5 Too slow Downloading speed: 335110 <= 512000(B/s), host:armbian.tnahosting.net


I have other machines with 5.10 and 4.9 kernels and they work great for ardopc and pat. My newer kernel machines (6.0 and 5.18)
do not (again, well known to the ardopc io.groups and the developer who has contacted kernel.org. I get the impression that problem is challenging (as can be Linus Torvalds himself)!

73
Cal (AD8Q)
Reply 0 0
calinb
I had to drive into town for faster Internet (100+Mib/sec instead of 3Mib/sec at home) and it worked the first try:
sudo ./compile.sh BOARD=aw-h6-tv BRANCH=current RELEASE=buster BUILD_MINIMAL=yes BUILD_DESKTOP=no BUILD_ONLY=kernel KERNEL_CONFIGURE=yes USE_CCACHE=no COMPRESS_OUTPUTIMAGE=sha,gpg,img


I don't know why these tools don't support 3Mib/sec. Every other tool and download ap does!

Now I need to figure out where to find 5.10 kernel sources (can't find them on Armbian mirrors) and try to get a build to work. This says it's just mainline or a 3rd party fork plus patches:
https://forum.armbian.com/topic/11254-sources-for-armbian-kernels/?do=findComment&comment=84417

So can I just download arm64 sources from a Debian repository?

73
Cal  (AD8Q)
Reply 0 0
Michael Burmeister-Brown inovato
I haven't tried it, but does this post on the Armbian Forum help?

https://forum.armbian.com/topic/9181-specific-kernel-version-with-armbian-build-tool/
Reply 0 0
calinb

Thanks for the link, Michael!
I was able to build with KERNELBRANCH="branch:linux-5.10.y" at home in the same sandbox as the standard build with no complaints about my "slow" Internet service. The workflow cleaned the build subdirectory as necessary, it seems.

I got the same three patching errors that the standard build produced:


1 out of 1 hunk FAILED -- saving rejects to file drivers/net/wireless/xradio/sdio.c.rej
....
....
[ FAILED ] For patches.armbian/0014-add-uwe-bsp-to-orangepi3-lts-dts-file.patch process exit [ 1 ]

The text leading up to this was:
--------------------------
|From 2b25d82f81c4eda2cfed56cd98e3178ccdb7d752 Mon Sep 17 00:00:00 2001
|From: afaulkner420 <afaulkner420@gmail.com>
|Date: Fri, 25 Mar 2022 23:26:02 +0000
|Subject: [PATCH] add uwe-bsp to OPi3-LTS dts file
|
|---
| .../boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts | 10 ++++++++++
| 1 file changed, 10 insertions(+)
|
|diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
|index cc5a73026..83fa87039 100644
|--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
|+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
[ done ] patches.armbian/arm64-dts-sun50i-h5-nanopi-r1s-h5-add-rtl8153-suppor.patch
[ FAILED ] For patches.armbian/999-rollback-rsb.patch process exit [ 1 ]

The text leading up to this was:
--------------------------
|From 409dfdd8ad3dfc0f69ca1abbfad3d955b00f6a01 Mon Sep 17 00:00:00 2001
|From: Ukhellfire <afaulkner420@gmail.com>
|Date: Fri, 1 Apr 2022 09:44:19 +0100
|Subject: [PATCH] Rollback to r_i2c
|
|---
| .../dts/allwinner/sun50i-h6-orangepi-3-lts.dts | 16 +++-------------
| 1 file changed, 3 insertions(+), 13 deletions(-)
|
|diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
|index 83fa87039..0b07f8ca2 100644
|--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
|+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
--------------------------
No file to patch. Skipping patch.[/code]

Now I have to figure out how to install the kernel and perhaps the associated debs too. I've build custom Manjaro kernels for my Pinebook Pro (arm64) and installation was easy.  The pacman package manager handles everything with the installation of only one package!

The filenames have not changed from the default current build but the 5.10 kernel shows up in the logs.

I have the following .debs now:
linux-libc-dev_23.02.0-trunk_arm64.deb
linux-image-current-sunxi64_23.02.0-trunk_arm64.deb
linux-headers-current-sunxi64_23.02.0-trunk_arm64.deb
linux-dtb-current-sunxi64_23.02.0-trunk_arm64.deb
linux-source-current-sunxi64_23.02.0-trunk_all.deb

73

Cal  (AD8Q)
Reply 0 0
Michael Burmeister-Brown inovato

dpkg -I <deb-name> should install them.  Certainly the one with ‘image’ in the name.  Probably the one with ‘dtb’ also   

Usually when changing kernel releases patches don’t work. So good luck!  Our patches are for Ethernet and Wi-Fi.  If you use our dongle, that should still work, though.  

Reply 0 0
Michael Burmeister-Brown inovato
But a question:  I thought raspberry pi 4 runs this.  But it is kernel 5.15. Where am I wrong?
Reply 0 0
calinb
But a question:  I thought raspberry pi 4 runs this.  But it is kernel 5.15. Where am I wrong?

I think there are a couple of problems with the 64-bit RPi and ardopc/piardopc. In fact, Dave's HamPi piardopc installation didn't even run at all for me on the Quadra. piardopc only runs on 32-bit machines, IIRC. I had to build from source for both my HamPi system and my arm64 Pinephone and Manjaro Pinebook Pro (which can share the binary). The Hampi system required its own build, due to libc6 differences.

Others and I have found no platform that runs ardopc well with the newer kernels--it only functions at all on a very good day and is very slow because it's plagued by decode errors and retries. I'm not sure where the exact cutoff is, but 5.15 does not work on Hampi or Quadra. I have Debian-based MX-Linux x86-64 systems running 5.10 and 4.19 that function very well.

Pi/ardopc is mentioned at ~ 20:25 to a minute or so later but, unlike the reviewer on the video, I've found it to be an easy build from source in all cases:
https://www.youtube.com/watch?v=Is67xwIsP-E
It's a good Quadra review, if you've not seen it.

Several kernel problem threads here:
https://ardop.groups.io/g/users/topics

The good news is I built and booted a new kernel. The bad news is it wasn't the one I wanted (KERNELBRANCH="branch:linux-5.10.y didn't work). On HamPi, I went from
Linux hampi 5.15.63-sunxi64 #trunk SMP PREEMPT Sat Sep 3 17:13:20 PDT 2022 aarch64 GNU/Linux
to
Linux hampi 5.15.85-sunxi64 #trunk SMP PREEMPT Mon Jan 2 19:22:31 PST 2023 aarch64 GNU/Linux

At least the build functioned and ran the desktop, nomachine server, etc.

I'd start over with a fresh build environment, but Armbian is not compatible with my Internet service at home and I rarely have time to play with the Internet when I'm in town.

Cal
Reply 0 0
calinb
This post came in very handy too, but you have to be a forum member to download and read the .txt howto:
https://forum.armbian.com/topic/13478-building-and-installing-custom-kernels/

I did not remove any prior linux-image packages, mentioned as sometimes necessary. The kernel that I build actually worked (booted and ran a desktop and tested okay with a few aps) after just a simple dpkg -i and a reboot, just like Manjaro and other OSes.

Cal
Reply 0 0
calinb
Update: I used git to install the mainline linux.org 5.10 kernel to the armbian build environment. (Git put the 5.10 subdirectory right next to the current 5.15 subdirectory in build/cache/sources/linux-mainline/.) However, no matter what I do, I cannot get compile.sh to use anything but the current source--either when executing it with all options on the command line or when executing it in primitive cli "gui" wizard mode.

My experiences here are consistent with what I've experienced during the last 2+ years of attempted Pine64 Armbian usage. The Armbian tools are a poorly documented mismash of legacies and random forum posts with no explicit and comprehensive howtos available. The tools are fundamentally difficult to use too, so I've mostly used Mobian (mobile Debian until assimilated upstream by Debian) and Manjaro on my Pine64 products. Arch tools and wiki are excellent and largely applicable to Manjaro. If I had faster Internet, I'd use the leader in tools, wiki, faqs, guides and manuals, as I have in the past when I had faster Internet. That's Gentoo!
Reply 0 0
calinb
Update:

I've never spent so much time trying to build a legacy kernel for a GNU/Linux OS and not succeeded. ARDOP is my main digital protocol but I have too many other projects and I already have x86-64 and Atom machines that support ardopc on 5.10 and 4.9x kernels providing me with excellent performance. I just really wanted the small footprint and single all-things-ham platform of HamPi on the Quadra. Unfortunately, lacking easily installable legacy kernels, it's missing a very big thing for me.

I'll get back to building a legacy kernel for my Quadra someday. I did make some progress using some other compile.sh command line options. In some cases, it even tried to build a 5.10 kernel but I think the manual patching learning curve is considerable too (after and/or during climbing the compile.sh learning curve)!

See. https://forum.armbian.com/topic/24180-build-user-configuration-libconf/#comment-152361

It appears that making a KERNELBRANCH="branch:linux-5.10.y" entry in the lib.config file currently does nothing. The trick is using it on the command line (but I kept it in lib.config too).

I tried many options. Some of the following resulted in an attempt to build 5.10:


517 sudo ./compile.sh EXPERT=yes CREATE_PATCHES=yes BOARD=aw-h6-tv BRANCH=edge RELEASE=bullseye BUILD_MINIMAL=yes BUILD_DESKTOP=no BUILD_ONLY=kernel KERNEL_CONFIGURE=yes USE_CCACHE=no COMPRESS_OUTPUTIMAGE=sha,gpg,img KERNELBRANCH="branch:linux-5.10.y"
518 history |grep compile.sh
519 sudo ./compile.sh EXPERT=yes CREATE_PATCHES=no BOARD=aw-h6-tv BRANCH=edge RELEASE=bullseye BUILD_MINIMAL=yes BUILD_DESKTOP=no BUILD_ONLY=kernel KERNEL_CONFIGURE=no USE_CCACHE=no COMPRESS_OUTPUTIMAGE=sha,gpg,img KERNELBRANCH="branch:linux-5.10.y"
520 sudo ./compile.sh EXPERT=yes CREATE_PATCHES=no BOARD=aw-h6-tv BRANCH=current RELEASE=buster BUILD_MINIMAL=yes BUILD_DESKTOP=no BUILD_ONLY=kernel KERNEL_CONFIGURE=no USE_CCACHE=no COMPRESS_OUTPUTIMAGE=sha,gpg,img KERNELBRANCH="branch:linux-5.10.y"
521 sudo ./compile.sh EXPERT=yes CREATE_PATCHES=no BOARD=aw-h6-tv BRANCH=edge RELEASE=buster BUILD_MINIMAL=yes BUILD_DESKTOP=no BUILD_ONLY=kernel KERNEL_CONFIGURE=no USE_CCACHE=no COMPRESS_OUTPUTIMAGE=sha,gpg,img KERNELBRANCH="branch:linux-5.10.y


If anyone gets a legacy kernel build working, I'd sure appreciate a howto post here!

For anyone looking for a GNU/Linux OS that handily supports legacy kernels (even point and click GUI installation), I recommend MX-Linux or antiX. The MX Package Installer program makes it really easy on MX and antiX offer a less fancy CLI-based "GUI" that takes care of kernel installations. They also feature the most diverse and powerful "live" USB persistence modes of any OS that I've ever used, but fully understanding setting-up and managing persistence does impose a learning curve. Still, it's nothing like Armbian and the members of the MX and antiX forums are super knowledgeable and responsive too!

73
Cal  (AD8Q)
Reply 0 0
calinb
I solved my ARDOP problem another way. Even though I spent days working on this problem, along with others on the ardop and ARQ groups.io boards, this solution was still easier than trying to crack the challenging Armbian build tools nut!

https://ardop.groups.io/g/users/topic/ardop_not_working_with_linux/95790391?p=,,,20,0,0,0::recentpostdate/sticky,,,20,2,0,95790391,previd%3D1674406444678188147,nextid%3D1652198639825768367&previd=1674406444678188147&nextid=1652198639825768367

I love my Quadra, but for anyone who desires a custom (or downgraded) Linux kernel, I advise looking elsewhere.

I'd really like to learn how to use the Armbian build tools though. This is the first time that I've given up on a kernel build in my many years of GNU/Linux experience with a wide variety of GNU/Linux distros and Intel (even the obscure "N10" / i860), ARM, and PowerPC architectures!

Michael, obviously someone built the Quadra OS image using Armbian. I'd sure appreciate a guide. I've never had any luck with the Armbian tools on my Pinebook Pro either, so don't take it personally. 😉 I really appreciate what you're doing in this GNU/Linux market niche!

Cal (AD8Q)
Reply 0 0
Michael Burmeister-Brown inovato
I built the Quadra image and Quadra-specific patches.  The only quide I know of is the one I wrote here:

https://forum.inovato.com/post/building-armbian-from-source-12449428?pid=1334249277

But that doesn't cover anything more than the standard build process (and associated kernel selection).  We do hope Armbian will officially support the Quadra in the future so you can just install Armbian and select the Quadra without needed external patches.  But that will likely happen on a 6.1 or later kernel as significant work remains to get that all functioning as much has changed between 5.15 and 6.1.

The issue with changing kernel versions in Armbian is that the patches are very specific for a given board and kernel version.  When you change kernels, the base patch set changes to match that kernel and so our patches likely break, especially for kernels that pre-dated us and that we have never developed patches for.
Reply 0 0
Reply