Linux mainline support

We will try to send basic DTS support to upstream next month, you know that we don’t have much experience about this, but we will try…

2 Likes

@numbqq Well you should gain more experience in the Mainline stuff. A lot of Brends did not success as they should because of lack of Mainline support.

You could contact some Linux mainline developers and contribute them a device, but they will of course need you and all information of what that device can == Specification like in link @balbes150 posted.

2 Likes

@numbqq You gain experience from doing. Mailing lists are nowhere near as simple as sending a PR on github, but if I can figure out how to send changes upstream it’s not impossible! :slight_smile:

4 Likes

Mainline linux support for Edge will be merged to mianline kernel in linux 5.3.

https://patchwork.kernel.org/patch/10984227/

https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git/commit/arch/arm64/boot/dts/rockchip?h=v5.3-armsoc/dts64&id=c2aacceedc86af87428d998e23a1aca24fd8aa2e

I will try to send u-boot patches to upstream…

8 Likes

Great work, thanks for making the effort to upstream this! Upstream kernel support makes development, ongoing maintenance and support of systems built on the Edge series so much easier. :+1:

I’ll try to give that branch (or -next or mainline if it’s made it that far by then) as thorough a test & check as I can for you when the Edge board I bought for testing arrives.

Does Edge V have gpu & hw acc drivers for mainline Linux?

https://github.com/LibreELEC?utf8=%E2%9C%93&q=mali&type=&language=

^ those git repos should have everything you need for supporting current RK devices with ARM blobs on mainline kernels. Also check our main repo for build-system pacakges of the same name; look at the the systemd scripts to see how we support multiple libs in a single distro image with runtime linking of the correct libs (used with Amlogic more than Rockchip, but that will change once our RK images switch up to mainline kernels).

3 Likes

@numbqq Great work.

Keep us informed about mainline support (u-boot, kernel etc) .

My Edge-V Pro arrived today, so I have something to play with.

1 Like

@chewitt thank you for your work on LibreELEC image, you mean the rockchip branch

I see in this link that there are some images for devices but no for edge-v. I know that edge-v is like edge just form factor of VIM, so i guess that is same image to use on both edge and edge-v?

Sorry, n=o idea. I’m far from being expert on RK things.

Mainline u-boot merged to the master branch

Build and install with:

2 Likes

@numbqq this seems still not merged, no active discussion anymore there. Is this going to be accepted and merged?

Already merged.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi?h=v5.3-rc6&id=c2aacceedc86af87428d998e23a1aca24fd8aa2e

not everthing was merged, the kernel defconfig files etc?

https://patchwork.kernel.org/patch/10998053/

Has anyone managed to boot a mainline image on the edge using the khadas fenix script? none of the images I’ve built will boot.

Hello @blueberryberret

Seems the mainline kernel for Edge is broken, I will fix this…

1 Like

I have updated the repo, please update your repo and try again.

1 Like

That’s great, thanks! I’ll give it a shot over the weekend.

@numbqq what is the state of this patch? https://patchwork.kernel.org/patch/10998053/
was there new revision, did it got merged? is anything else needed to boot mainline kernel on edge-v (max).

Merged long time ago.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi?h=v5.7-rc7

1 Like