Mainline kernel and mainline uboot

Talking about OS and emulation core development
Post Reply
macc24
Posts: 5
Joined: Sun Sep 20, 2020 11:31 pm
languages_spoken: english polish
ODROIDs: Go Advance BE
Has thanked: 0
Been thanked: 6 times
Contact:

Mainline kernel and mainline uboot

Post by macc24 »

I saw no forum post tracking both of these issues, so here I am making it to share knowledge.

I have made a proof-of-concept: https://github.com/Maccraft123/deb-to-go/
Login is root, and password is empty
Console is on internal UART header with 115200 speed.

Mainline kernel part:
- I couldn't get USB to recognize devices after booting, it has to be investigated UPDATE: it works now
- DRM driver for display works well enough to display framebuffer console
- 3D acceleration should work on OpenGL 2.1 level with open-source Panfrost driver
- For wifi, SDIO support is needed, it looks like @valadaa48 has experimented with that. https://github.com/al177/esp8089/issues/44

Mainline u-boot:
- Display isn't supported
- USB isn't supported
- Enough to boot Linux kernel
- Needs "recovery" button to be pressed to not launch uboot from spi flash chip

If anyone wants to talk, I'm on #go2-mainline Freenode IRC channel
These users thanked the author macc24 for the post (total 3):
odroid (Mon Oct 05, 2020 9:32 am) • notime2d8 (Mon Oct 05, 2020 9:35 am) • escalade (Mon Oct 05, 2020 9:48 pm)

macc24
Posts: 5
Joined: Sun Sep 20, 2020 11:31 pm
languages_spoken: english polish
ODROIDs: Go Advance BE
Has thanked: 0
Been thanked: 6 times
Contact:

Re: Mainline kernel and mainline uboot

Post by macc24 »

UPDATE:
Now working in kernel:
USB - both peripheral and host modes working
3D acceleration - OpenGL 2.1 works, but it's unstable with mesa compiled using https://github.com/Maccraft123/armhf-to ... build-mesa and user needs write access to /dev/dri/*
WiFi - still nothing...
Speaker/Headphone jack - not working?
Buttons - tested and working fine
Joystick - not tested
These users thanked the author macc24 for the post:
odroid (Mon Oct 12, 2020 11:01 am)

valadaa48
Posts: 191
Joined: Mon Feb 17, 2020 1:35 pm
languages_spoken: english
ODROIDs: odroid go advance
Has thanked: 8 times
Been thanked: 46 times
Contact:

Re: Mainline kernel and mainline uboot

Post by valadaa48 »

Hey macc24. I've been playing around with the kernels posted on the android thread. I can post some of my unorganized notes/thoughts here:

4.19 would be nice and maybe easier but I agree there is much more to be gained from 5.x.

On 5.9, I had the same experience as you, mainly that USB worked but I could not get wifi to work at all (none of my usb wifi dongles or internal esp8089 for that matter). drm/kms worked, but I forget if I tried an app with it or not. I did upstream a patch for retroarch that fixed a race condition in the plain_drm driver so that should be testable now. I think I tried librga but I believe I ran into issues there, I haven't looked into it.

Sound works but none of the sound controls (volume, headphone, etc..) were seen in alsamixer, probably a wiring issue somewhere.

I got panfrost working in wayland but at least retroarch was horribly slow in 2D (I didn't try 3D) so I didn't pursue that any further (it's also too difficult iterating without ssh).

My userland is void linux and as such, all libraries and apps are pretty much latest (including mesa).

If panfrost indeed proves to be a no-go (too slow), there is a chance the r16 version of the bifrost proprietary drivers might help. We're using r6 I think. I don't know what the differences are but I was able to boot r16 on kernel 5.9 and it appeared to work except for rainbow colored textures as in the outline of what should be displayed was there but everything was colored in rainbows. I don't know a thing about opengl/egl, etc.. so that's the best I can describe it.

For the r16 drivers, Shanti found https://github.com/LibreELEC/libmali/bl ... 6p0-gbm.so (there are 64bit versions as well) and also https://github.com/batocera-linux/mali-bifrost. The kernel driver can also be downloaded from ARM directly.

Since I personally don't use the 3D capabilities of this device, I would be happy to have a 5.9 setup using just kms/drm + rga with wifi, sound working. OpenDingux folks reported a single to low double-digit increase in performance on their new 5.9 kernel. I don't have specific details but they also mentioned huge pages helped (which I think is also available in kernel 3.x, but not sure).

Post Reply

Return to “Platform development”

Who is online

Users browsing this forum: No registered users and 0 guests