BSP latest kernel support for Rock5A/B?

Hi, I was pleased that it was quite feasible to upgrade CM3 to almost latest kernel using Radxa bsp tool and the latest target. The compilation involved patching vanilla kernel which is perfect.

Please does the same path work for RK3588-based boards too? Will ‘./bsp linux latest’ generate deb suitable for the RK3588? I kind of do not understand how the same kernel package would work on widely different boards if no target board were specified.

The competing RPi5 has patched 6.6 in their kernel repo, but RK3588 is a more advanced technology…

Thanks a lot,

Pavel.

It will still be aligned with the Android LTS I guess.
Has some great Ubuntu images but also does an experimental mainline.


Mainline support is sort of getting to that 80/20 rule where for most its all supported.

Gpu at a guess is still a few releases away

Should be interesting though as according to the above they have code to test…

Currently people are stuck with a headless server but already past the 80/20 ratio of done, but the HDMI & GPU is an issue to many, but looking like ‘Soon’?

Thanks. IMO the bsp latest would be built from vanilla + patches https://github.com/radxa-repo/bsp/blob/main/linux/latest/fork.conf

BSP_GIT="https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux.git"
BSP_TAG="v6.5.5"

Actually IIUC the generated deb contains DTS files for all boards, and specific DTSes are chosen at rbuild by the board parameter.

I dunno Android changed its numbering system but think the last LTS was 5.10

The ‘latest’ option of bsp will compile the specified kernel (6.5.5 in that case), I tested that on CM3, but the question is if all patches are there to make some RK3588 board working upon building the image with rbuild.

That might be the latest option if working or complete I dunno, most still seem to be on 5.10

Thanks a lot. I am looking at options for using the latest kernel which allows using latest upstream patches and creating/submitting to upstream whatever patches necessary to parts like dwc3, f_uac2 etc which will highly likely be necessary for my intended project. All these parts keep receiving a steady flow of critical patches. Running ancient and heavily modified 5.10 is of zero use for this purpose.

But I would assume Radxa cares about upstream and does not want to be stuck with 5.10 android kernel.

Rockchip has a lot of Android aimed Socs so likely they will continue as the BSP Board Support Package follows the Android port to Linux kernel of same version. Likely the next LTS will be avail for the BSP but I am sort of confused at which LTS Android is on and think its still 5.10 based.
6.5.5 is a stable mainline Linux kernel with 6.5.7 of that stable version being the latest, but for Radxa its what they get given than what they wish for as much is Rockchip with the Linux LTS being 6.1.57 and Android lags behind that.

If you want bleeding edge then the above with Joshua Rieks’s Experimental Mainline.
Boris Brezillon:
Oct 04, 2023 at 08:26 AM

A second version of the kernel driver has been posted a couple month back and we are about to post a v3. Development branches can be found here and here if you want to play with it.

So you can test the GPU but the HDMI is still WiP but that is between Collabora, Rockchip & Arm.
Presuming Radxa will offer both a Android based LTS BSP and Mainline LTS when given.

Problem with mainstream is that functionalities are developed and ported slowly while HW sales wants that all / most of HW specific features works while this is sadly only possible Android sh* way … Mainline process takes years and from business perspective, to not close down their sales business, its best to wait that end users applies as much pressure to community developers and business subjects to steal or pay for this work as they are tired of their useless BSP kernel.

Mainstream development, support and maintainace is not with particular vendor reach. Mainstream is hard and expensive also because its never ending story, has to be done outside this small egocentric world, and things needs constant maintenance which is nobody willing to admit. And because of constant present piracy. It is very hard for open source developers to get paid for what they do. Some are trying to maximize profits by supporting open source projects that are focused in stealing from developers. There are always people that are willing to play dirty.

To better understand business paths behind attitude towards open source and upstream: even Armbian (or some other group of open source developers) ported most of the functions to mainline for some particular boards on their own and fully on their private expense, because users wanted and asked for, Radxa rather choose to pay(!) pirated TwisterOS project to intensify pressure. Twister is just some small amateur project which did some wallpaper changer application and were driving one of many distros for Rpi, that didn’t do anything valuable. They just did what anyone can do. They downloaded Armbian and start selling it as their own work without any shame and with full Radxa support and even small sponsorship. This is how this “business” works. Sponsoring FOSS pirates is just business optimization. This venture eventually fall apart since it was executed in amateur fashion and because actors soon realized into what they were lured. This attempt failed after couple of months with a big loss for the care you are asking and assuming.

That was several years ago. Today, Radxa is still doing the same, just with different corruption willing partner [1] and not that obvious. Its all about ego and control? They rather put efforts to crush community software and compete against community development efforts instead of helping them helping you.

Armbian (and its forks), community, provides / sponsors ARM single board computers buyers with well maintained and by all means better quality, open, reviewed, mainline based (maintained by more then one person) Debian / Ubuntu images with better framework for past 10 years. Builds are available at once when basic features works. It would be in users interest to contribute to upstream or at least to mid-stream (Armbian). But they don’t accept that.

Business paths are almost never logical, but perhaps this explains some aspects.

I think @balbes-150 Armbian images already have working HDMI, but all this is still not for end users. I do run two Rock5 as a build runner for about a month without any issues. With 5.10.y it was crashing constantly.

Joshua runs this as his private project but shares everything back to Armbian common efforts. He is one of those rare people / projects that doesn’t care just for his / their own benefit.

For that Android kernel is not worth wasting words, but also what will come out here will be heavily modified around probably 6.1.y which is not in best shape in general. Quality of maintaince is questionable from the concept, but I will skip from commenting.

There is not much they can do but to wait and hope. Investing into upstream is not in their business interest and there is a problem that hardware is obsolete before it reaches solid upstream support. Hardware is not hot forever and new variants are constantly coming out …

@RadxaYuntian If patch header is absent, open a ticket and ask politely for patch changing service. Solving this way is not right way. Remember that we have no budget to work with you, so it can take a while. This is the only reason why you have to wait.

We use git am to apply patches which expects well-formatted patches. I’ll create issues when I encounter them again.

@Pavel_Hofman bsp latest profile is mostly used for internal development instead of a real usable kernel. I use it to check the build infrastructure, while Naoki uses it sometimes to test maillist patches.

You could change fork.conf with following settings to build against trunk:

BSP_GIT="https://github.com/torvalds/linux.git"
BSP_BRANCH="master"
# Remove BSP_TAG

We have engine to check for defects and reformat patches on the fly.

Perhaps I was not clear enough: please fix this one way or another as it is unacceptable that you are using your header with our work. If you don’t have time to do it right, perhaps just remove patches? This is quick and painless.

Then what exactly should I do? Right now this patch is still missing header, so I can’t use it as-is.

Gentlemen, thanks a lot for important info, now I understand the principles behind a bit more.

That Collabora enablement page shows that 6.4-6.6 received lots of RK3588-related patches , I will try the upstream main branch and see how far I can get.

Your problem. We never developed this for you, but for users. Patch is incomplete, but nobody can complain to us because its incomplete. If you don’t have interest to finance this (and everything else) work and to its completion

delete (problematic) patches?

Or open a ticket. I am aware they are not completed, I know what has to be done, but this is just a one problem on the list with 1000+ others and will take years to fix. Which is your fault too. All this time conflict will exists, unless you remove all problematic patches now.

Things are looking very good with the RK3588 as the maninline submissions have come thick and fast for a SoC that was heavily delayed due to fab queues and covid.

I would check the news & bloggs page https://www.collabora.com/news-and-blog/ and https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/log/?h=next-20231013&qt=grep&q=rk3588

@igorp If you stopped spamming support and maintainace sales speak and maybe contributed in any form of reply a simple ‘please donate’ or link would likely suffice.


I did and his rk3588(s) images and work is well appreciated as some of us can only afford a beer but do donate.
I would start with This project aims to provide a default Ubuntu 22.04 experience for Rockchip RK3588 devices as all is totally concentric to the RK3588(s) and makes much sense than partition to vendor board resources…

3 Likes

Thanks for the mainline ubuntu link, I could start with that, even rebuilding kernel may be easier with that. I do not care about GPU performance (for now), only SSH->CLI work anyway.

Thank you for your optimism, your support for the developer and for providing the link to the image. I just looked at it and my first impression was very good. I’ll keep testing but this image is already on top of the list for now of all tested images.

maybe find different hobby?

Commits on Oct 14, 2023

  1. Remove remaining rockchip64 bits from the system

@igorpecovnik

igorpecovnik committed 33 minutes ago

f174e0f

  1. config: boards: rockchip: Remove unusupported legacy kernel configs.

@igorpecovnik

Emmanuil Chatzipetru authored and igorpecovnik committed 33 minutes ago

98208b3

  1. thinkpad-x13s: bump to 6.6-rcX; support trixie/sid/mantis userspace s…

@rpardini@igorpecovnik

rpardini authored and igorpecovnik committed 34 minutes ago

4d9cae0

  1. partitioning: efi: introduce UEFI_MOUNT_POINT_SKIP_FSTAB , if set to…

@rpardini@igorpecovnik

rpardini authored and igorpecovnik committed 34 minutes ago

bba856b

  1. khadas-vim3l: bump to u-boot v2023.10; boot-usb-first patch now only …

@rpardini@igorpecovnik

rpardini authored and igorpecovnik committed 34 minutes ago

027de20

  1. khadas-vim3: bump to u-boot v2023.10; boot-usb-first patch now only i…

@rpardini@igorpecovnik

rpardini authored and igorpecovnik committed 34 minutes ago

7abc1a0

  1. khadas-vim3/vim3l: back to single-FIP for both SD/eMMC and SPI u-boots

@rpardini@igorpecovnik

rpardini authored and igorpecovnik committed 34 minutes ago

bd28147

  1. odroidn2l: bump to u-boot v2023.10; boot-usb-first patch now only in …

@rpardini@igorpecovnik

rpardini authored and igorpecovnik committed 34 minutes ago

6e45fb7

  1. Set gdm3 for gnome based DE, sddm for KDE and leave the rest with lig…

@igorpecovnik

igorpecovnik committed 36 minutes ago

c2fb705

  1. armbian-desktop: remove “Conflicts: gdm3”

@rpardini@igorpecovnik

rpardini authored and igorpecovnik committed 36 minutes ago

daf65b3

  1. armbian-firstlogin: better dm detection + add simple no-op sddm suppo…

@rpardini@igorpecovnik

rpardini authored and igorpecovnik committed 36 minutes ago

5365d62

  1. armbian-firstlogin: shellfmt, no changes

@rpardini@igorpecovnik

rpardini authored and igorpecovnik committed 36 minutes ago

d4b5aa5

  1. rootfs-desktop: disable sddm as well as lightdm and gdm3 in `de…

@rpardini@igorpecovnik

rpardini authored and igorpecovnik committed 36 minutes ago

0cb41b2

Commits on Oct 13, 2023

  1. pipeline: don’t bomb when logging int value’s length (GHA outputs)

@rpardini@igorpecovnik

rpardini authored and igorpecovnik committed 3 hours ago

568ed3a

  1. pipeline: add hard 17*30 limit to number of total matrix jobs

@rpardini@igorpecovnik

rpardini authored and igorpecovnik committed 4 hours ago

ed39cb0

  1. pipeline: disable GHA output of non-chunked version in bash

@rpardini@igorpecovnik

rpardini authored and igorpecovnik committed 5 hours ago

fed7bf6

  1. dpkg-deb: rename fakeroot_dpkg_deb_build -> dpkg_deb_build

@rpardini@igorpecovnik

rpardini authored and igorpecovnik committed 6 hours ago

0047f8e

  1. dpkg-deb: don’t use fakeroot, we’re already root; don’t add fakeroot …

@rpardini@igorpecovnik

rpardini authored and igorpecovnik committed 6 hours ago

5ed338f

  1. patching: accept a sha1 in BASE_GIT_TAG (as well as branch or tag)

@rpardini@igorpecovnik

rpardini authored and igorpecovnik committed 6 hours ago

3b54d17

  1. mixtile-blade3: enable pci3x4 nvme boot (requires u.2 -> m.2 adapter …

@rpardini@igorpecovnik

rpardini authored and igorpecovnik committed 6 hours ago

d6fca17

  1. rockchip-rk3588: add -Wno-error=enum-int-mismatch to u-boot CFLAGS …

@rpardini@igorpecovnik

rpardini authored and igorpecovnik committed 6 hours ago

57c8f40

  1. grub + grub-with-dtb: add back functions removed from mkconfig_lib in…

@rpardini@igorpecovnik

rpardini authored and igorpecovnik committed 6 hours ago

6219927

  1. mekotronics-r58x-pro.wip: add new board Mekotronics R58X-Pro

@rpardini@igorpecovnik

rpardini authored and igorpecovnik committed 6 hours ago

8e9ef4b

  1. rk322x: fix NEC/NECX/NEC32 protocol handling for rockchip-ir driver

@paolosabatino

paolosabatino committed 7 hours ago

022183e

  1. rk322x: add IR driver for remote controller wakeup

@paolosabatino

paolosabatino committed 7 hours ago

c2b148a

Commits on Oct 12, 2023

  1. v2: arch: arm64: dts: amlogic: meson-g12b-waveshare-cm4-io-base-b

@igorpecovnik

Patrick Yavitz authored and igorpecovnik committed yesterday

595e1fd

  1. hwmon: emc2305: fixups for driver

@igorpecovnik

Patrick Yavitz authored and igorpecovnik committed yesterday

67af958

  1. v2: arch: arm64: dts: amlogic: meson-g12b-waveshare-cm4-io-base-b

@igorpecovnik

Patrick Yavitz authored and igorpecovnik committed yesterday

f1cf0cd

  1. Allwinner: Bump kernels

@viraniac

viraniac committed 2 days ago

a262f07

Commits on Oct 11, 2023

  1. JetHome: update jethub family config

@adeepn@igorpecovnik

adeepn authored and igorpecovnik committed 2 days ago

b51f55f

  1. JetHome: update u-boot patchset. Add emmc clock RFT patches.

@adeepn@igorpecovnik

adeepn authored and igorpecovnik committed 2 days ago

da5e6ec

  1. patch: misc: rtw88: update TX power along with regulations

@igorpecovnik

Patrick Yavitz authored and igorpecovnik committed 3 days ago

bf7a249

  1. patch: misc: rtw88: 6.1: wireless-next 2023-10-06

@igorpecovnik

Patrick Yavitz authored and igorpecovnik committed 3 days ago

44eb3e2

  1. thead: update linux to 6.6-rc5, update opensbi binary

@chainsx@igorpecovnik

chainsx authored and igorpecovnik committed 3 days ago

3098c2f

  1. meson-s4t7: add systemd service to enable fan in automatic mode

@viraniac@igorpecovnik

viraniac authored and igorpecovnik committed 3 days ago

c0e2bb9

NewerOlder

@igorp: Igor, IMO by “contributed” @stuartiannaylor did not mean your contributions to (not only) the armbian project (why would anyone question that?), but posting (contributing) to this thread - that a link to “donate” may do a better job :slight_smile:

3 Likes

Taking 1 USD but making 1000 USD of costs is not the best survival strategy for non profit organisations. I wish you all the best by trying to run something similar in a hostile environment as this.