Compiling custom kernel for the VisionFive 2?

I’ve been struggling with building a custom kernel for my VisionFive 2.

At the very least, I’d like to enable the RT2800USB driver as a module, as I have an old one lying around here that I can use for my board. Ideally, I’d like to get StarFive’s firmware (rgx.fw.36.50.54.182 and rgx.sh.36.50.54.182) compiled into the kernel to test out vulkan on here as well - since the Rogue driver is compiled into the kernel rather than as a module, it doesn’t seem likely it can load the firmware at boot time, given that root has yet to be mounted.

Unfortunately, the latest released kernel for this board is 6.1.97, while the build tree @MichaIng mentions in How are the kernels made for the visionfive2, where did the source come from for 6.1.59? has 6.1.103. I can’t seem to get .103 to boot on this board - while I can build a package using the build script referenced in the aforementioned thread, the kernel hangs early in boot.

I assume .103 isn’t ready for release on this board yet, given my inability to get it to boot. What are my options for getting the source for dietpi’s .97 kernel for this board?

@MichaIng - can you provide any assistance here?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.