Mediatek: add initial project with Genio device#10891
Mediatek: add initial project with Genio device#10891rpardini wants to merge 10 commits intoLibreELEC:masterfrom
Conversation
- Collabora's kernel + Armbian patches; on GitHub
- using a fake 'none' u-boot
- from Collabora's Debian 13 build, slightly adapted (path ref)
|
@rpardini I can see some minor nits in configs/files but overall it looks fairly complete for a first pass effort, well done. I'll see if Radxa can send me a Neo-12L board for experiments. As long as the image is usable with Kodi there's no objection to merging support. I'd perhaps see if the RPi ffmpeg sources that I use for Amlogic (https://github.com/chewitt/LibreELEC.tv/blob/amlogic/packages/multimedia/ffmpeg/package.mk#L19) are any better than the default ones; there are some general improvements for v4l2_m2m and includes some 'quirks' handing code in |
I'm pretty sure all is needed for playback is to plumb the MM21 (and its 10bit variants) into the ffmpeg fork and kodi GPU rendering path. Alternatively, implement MDP3 color conversion for GPU-less playback. |
|
Driver by comment, another thing to check, is that the scp firmware is installed and loaded properly. This is part of linux-firmware project, but yet, not everyone ship everything. |
While I was working on the Radxa NIO-12L in Armbian, @amazingfate asked for some tests which made me realize those Mediatek "Genio" boards have some staleless decoders [1]. I've no idea what that means but wondered what would happen if I tried to bring up LibreELEC on it.
These are the results of that effort; most of it is dubious at best. It is by no means usable in this state, but maybe it's enough for someone who knows what they're actually doing to get further ahead.
I've based most of the work on Collabora's, all credits on anything that actually works to them.
In short:
I've faked a
noneconfigured u-boot build, just to get dtb and extlinux.conf into the image.mtk-flash), and using an SD card for LibreELEC. u-boot env is in boot1 offset 0x200000, so, easy to switch Armbian on UFS <-> LE on SD.With this I hope to get feedback and learn. Who knows what can come of it.
[1] (on Armbian)
[2] (Mediatek vendor u-boot 22.10 + Collabora + Armbian fixes for SD-first booting + DRAM auto-detect) armbian/build#9159
[3] u-boot/u-boot@633e560
[4] I've started preparing https://github.com/armbian/mtkbin a-la rkbin / amlogic-fip, original blobs are available from vendor