Home > AMLogic, Linux, Linux 4.x, Video > Mainline Linux on Amlogic S905/S905X/S912 SoCs – 2018 Status Update

Mainline Linux on Amlogic S905/S905X/S912 SoCs – 2018 Status Update

BayLibre is working on mainline Linux for Amlogic SoC, and in February of last year, Neil Armstrong gave a presentation entitled “Mainline Linux on AmLogic SoCs” at the Embedded Linux Conference 2017.

Neil has recently (actually yesterday) given another presentation about the status of mainline Linux on Amlogic processor at linux.conf.au 2018, so we have some updated information now. He goes through the whole history of upstreaming Linux for Amlogic SoCs, but I’ll provided summary of the new features, and if you have time you can watch the video (25 minutes) embed below, or the slides.

Early last year, Linux 4.10 already supported general I/Os, USB host (for S905), Gigabit Ethernet, eMMC/SD/SDIO, PSCI for SMP, and SCPI for DVFS for Amlogic processor, and BayLibre was said to be working on HDMI display support, Mali (as external module), audio input/output, and high-speed eMMC modes.

Based on the slide above, with Linux 4.14, the (e)MMC driver now support HS200 @ 50 MHz, the DRM driver for composite (CVBS) and HDMI video output is working, further work for the USB driver for GXBB (S905) has been done, as well as for I2C, SPI, PWM, Ethernet, and others. HDMI CEC is also supported in Linux 4.14 using the CEC Framework, and a Fix for Gigabit Ethernet stability & reliability has also been pushed for Linux 4.16.

He also talked about Arm Mali-450MP integration, and they currently have out of tree support for GXBB (S905) and GXL (S905X), but more work is needed for GXM (S912) using an Arm Mali-820MP GPU. The user-space library is closed source, must be updated by Amlogic, and they have support for the three versions: fb (framebuffer), X11, and Wayland. LIMA has also be resurrected by another developer (mesa-lima), there’s basic support for Arm Mali-450 GPU, and it has successfully been tested by Baylibre.

Amlogic DRM Display Driver Status – Outlined = Done, Otherwise = To do.

Going forward, there’s still lots of work on the video display driver including cursor plane, overlay planes, OSD scaling, overlay scaling, and MIPI DSI output.Vide hardware acceleration will also be challenging as Amlogic is currently using a custom software implementation, and it will have to be supported through V4L2 in mainline, so it will take some time. Some Audio features have yet to be implemented including S/PDIF input and output, I2S input, PCM input and output, and the embedded stereo DAC in S905X and S912.

At the end of the presentation he also covers the community involvement, and development boards such as ODROID-C2, and the more recent Khadas VIM or Libre Computer boards.

You may also want to check out the slides.

  1. bantoto masabo sigola
    January 24th, 2018 at 18:07 | #1

    So they are trying to opensource everypart of the soc ?

    if so it could be competitive against the imx 8m socs ,or am i wrong ?

  2. theguyuk
    January 24th, 2018 at 18:08 | #2

    Thank you CNX that was interesting.

  3. Tornado
    January 24th, 2018 at 19:23 | #3

    It’s amazing that the first man on the moon is able to turn his hand to linux development like that. Thanks Neil!

  4. January 24th, 2018 at 21:04 | #4

    Baylibre guys have just posted more details on their blog @ http://baylibre.com/improved-amlogic-support-mainline-linux/

  5. crashoverride
    January 24th, 2018 at 22:40 | #5

    I hope this is not also being faked by Hollywood!

  6. Shimon
    January 24th, 2018 at 22:56 | #6

    Any news on the previous generation of Amlogic SoC’s? (e.g. S805)

  7. geokon
    January 24th, 2018 at 23:02 | #7

    They are partnering and working with AmLogic and yet user-space drivers have to be reverse engineered by someone else? Is it b/c of contractual issues with ARM that AmLogic has that it can’t release code? I never understood how that works

    Khadas Vim has an experimental build for 4.14.11

    I think the libMali.so they use is from 4.9 so … it works.. but you get 8FPS

  8. m][sko
    January 25th, 2018 at 00:57 | #8

    They still missing one simple stuff
    working v-sync on DRM driver
    I did report this problem mouth ago on IRC and nothing 🙂

  9. blu
    January 25th, 2018 at 01:57 | #9

    Always nice to hear about steady development on a popular SoC lineup. Keep it up, BayLibre!

  10. Sander
    January 25th, 2018 at 03:15 | #10

    Sheet 13 says “BayLibre develops and maintains the AmLogic kernel upstream”.
    The BayLibre site says “It was a match made in heaven: two years ago AmLogic and BayLibre joined forces to bring top-notch support for AmLogic SoCs into the mainline Linux kernel.”
    So I assume AmLogic pays BayLibre for their work?

  11. theguyuk
    January 25th, 2018 at 04:39 | #11

    It would be great if they could bring support to the older SoC s805, s802, s812 there are a lot of older TV boxes out there just prime for Linux to replace Android 4.4 or if newer Linux could bring a more modern Android to these boxes.

    Till then https://forum.libreelec.tv/thread/200-7-0-3-3d-libreelec-7-0-for-s805/

  12. January 25th, 2018 at 09:10 | #13

    Yes, Baylibre is being contracted by Amlogic for this work.

  13. gotmilk
    January 26th, 2018 at 11:24 | #14

    As far as I knew Amlogic had contracted BayLibre to upstream their kernel to mainline but the money had run out and Amlogic refused to fund the collaboration any further because they have already moved on from S905 and development had stalled.

    @geokon the 9fps problem with the latest kernel can be solved with the following patch, https://pastebin.com/raw/WRi7XTq6

  14. numbqq
    January 26th, 2018 at 21:30 | #15

    Hi gotmilk,

    It’s a patch for mainline?

  1. No trackbacks yet.