How to build image to use a newer kernel e.g. 6.16?

Dear community,

I’m looking to build an image for duo256m that uses a newer kernel. I understand that not everything functions on the new kernel, but I still want to try the latest support as documented here: Home · sophgo/linux Wiki · GitHub .

Eventually I would try to build a ubuntu distro with a newer kernel. My limited understanding is that I should tell the duo-buildroot-sdk v2 to use a newer kernel source when compiling the kernel. I would really appreciate anyone’s guidance on this step.

Thank you very much.

2 Likes

Correct
All depended modules (kernel or userspace) from from the boards will not compile, without heavy rework (and should be disabled)

  • all camera and display support, aka MIPI DSI/CSI interface
  • pinmux configuration utility cvi-pinmux/dua-pinmux
  • the whole video layer

The above list is not complete

Why Ubuntu ?

There is a buildroot inside, maybe Ubuntu will work, but this is BIG

And this is the REAL showstopper.

“limited understanding”, sorry about that

You have to fiddle/work with git, Kconfig, maybe also dts file, because they are only basic/minimal support for pinmux.

The files are spread all over the repostory

It’s possible to use a newer kernel, but ..

2 Likes

We actually do have Debian for SG2000 and SG2002.

1 Like

I’ve used Debian 13 on NFS root for testing, and OpenWRT on mainline Linux kernel (6.6 and 6.12). It makes development much quicker to load kernel and root filesystem over NFS, not SD. This is especially true when experimenting with customer kernels.

2 Likes

I’ve gotten mainline to boot but only with the device tree from the buildroot sdk v2 and it doesnt find the SD card. Separately I have gotten a bootstrapped debian booted using the 2.0.1 FIT image with the 5.10 kernel. It required adding CONFIG_CGROUPS=y and CONFIG_AUTOFS4_FS=y to the kernel compile options but I believe that should also cover the Ubuntu use case as it is built on Debian.

2 Likes

Thank you all for the inputs! Seems that a newer kernel is possible but I should definitely get a deeper understanding of the migration work remaining.
Also indeed, I don’t need to use Ubuntu, debian is perfectly fine.

1 Like

So you need this configuration and with newer kernel and proper dts

Ubuntu uses Debian as “backup plan”

v6.16 (vanilla) compiles and proper dts are needed/replaced/worked on ..

2 Likes