Amlogic Releases Linux 3.14 Source Code for S905X, S905D, and S912 Processors, Has Started Working on Linux 4.4 / Android 7.0

Amlogic has just released buildroot with Linux 3.14 with support for Amlogic S905X (p212 board), S905D (p230 board), and S912 (Q200 board) processors, and the company appears to have started working on Linux 4.4 likely for future support for Android 7.0.

Amlogic_S912_Linux_BuildrootYou can check the source code as follows:


If you have the wrong toolchain the code won’t build (See comments section). So I installed several toolchains provided by Amlogic (all may not be needed) in /opt:


I also downloaded a shell script to add the toolchains to my path:


Once toolchains are setup, you can select one of three boards config (Q200 / S912 as example) and start building the code:


If you are interested in S905X or S905D instead, use respectively mesongxl_p212_release_defconfig or mesongxl_p230_release_defconfig.

I built both S912:


and S905X images successfully:


Separately, you can also find buildroot for Linux 4.4, but this is very likely very early work, and should be used together with Amlogic Android 7.0 SDK once it is released.

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX RK3588 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
26 Comments
oldest
newest
Theguyuk
Theguyuk
8 years ago

Have they done anything to encourage Android updates for the S802, S805 S812 socs?

It is also a shame they don’t use the 8 core GPU in their S905 line.

abc
abc
8 years ago

They newer learn 🙁

Dumping tarball with the code is NOT THE WAY to do it.

The proper way is working with kernel.org community to upstream all the changes. So what is needed is a series of patches send to linux-kernel@ mailing list that add all missing support.

In few months that 3.X or 4.X code dump will be old, with security holes and basically unusable for serious worketc. Upstreaming changes and maintaining these upstream is the only working way.

Ron
Ron
8 years ago

When will AMLogic devices fully support the stock Kodi without modifications?

rebeL
rebeL
8 years ago

Great! So some S905D linux sat-tv-mini-pc will come true, perhaps with android 7 (N)

Theguyuk
Theguyuk
8 years ago

@Ron
I use Kodi from the Android store on my miniM8s S905 ( I replaced the installed Kodi my TV box came with )

I just watch online content like Filmon as Kodi buffers video better on my real garbage broadband speed, 1.2 mb is a good day!

So I am curious what are the Kodi problems you refer to?

I do find some content needs MX player and stock media player when playing high end samples.

Massimo
Massimo
8 years ago

@Theguyuk
HD audio and auto-switch fps work??? I don’t think.
Without this function kodi is only 40% used.

Ron
Ron
8 years ago

@Theguyuk
Apart from what Massimo wrote, this also concerns the video decoding.

From what I know, this phenomena plagues most, if not all, Android TV boxes because of what SoC producers like Rockchip, AMLogic, Realtec (and all the rest) do – the way they act. I think that only nVidia is the only outstanding one in this matter.

But there are other people here which could explain this issue much better than me, as my understanding of it is quite limited due to its technicality…

Massimo
Massimo
8 years ago

Kodi use mediacodec (omx layer ) ,without it is impossible playback smooth any content.
Without mediacodec support kodi is used at 0%.
Amlogic codec are no more suport from kodi 16.

Roel
Roel
8 years ago

I thought hardkernel en amlogic where working together to mainline the 905 soc?

Stane1983
8 years ago

@Roel
A lot of effort has been done from crew at http://linux-meson.com/ in bringing Amlogic SoC support to mainline kernel and U-Boot.

Mainline kernel repository:
https://git.kernel.org/cgit/linux/kernel/git/khilman/linux-amlogic.git/

nobe
nobe
8 years ago

@Roel
here is the exact statement from hardkernel in march : http://forum.odroid.com/viewtopic.php?p=127189#p127189

at that time they considered either going mainline or using a 4.4 fork
since then, we have no information about their plan
some community members asked them in forum here and there but never get any answer, which i guess can be interpreted as no mainline :p

Billionaire Rich Man Trump
Billionaire Rich Man Trump
8 years ago

Stane1983’s news is the best yet. Until they get the video stuff worked out, these boxes make terrific headless servers.

Stane1983
8 years ago

@Billionaire Rich Man Trump
I tried booting headless mainline 2 months ago I think, worked just fine Except there were missing some basic drivers (MMC eg).

mdel
mdel
8 years ago

Ron : When will AMLogic devices fully support the stock Kodi without modifications? Well open source allows Kodi project not be the only one to provide a Kodi version, so you can turn to Libreelec to get Kodi for amlogic devices. In fact their latest LE 8 alpha (Kodi Krypton), offers support for various amlogic chips and a bunch of patches already fix various kodi problems on amlogic in a stable LE 7 (kodi 16), like dynamic framerate or HD audio passthrough (s905 only i believe). So while amlogic still offers a very minimal linux support that definitely won’t help… Read more »

Stane1983
8 years ago

@mdel
I think he was thinking about Android support which is correct. amlcodec as part of Kodi is in source for use in linux solutions.

Theguyuk
Theguyuk
8 years ago

It is a shame all parties can not find common ground to work together, I would guess more Linux support would grow new markets for Amlogic?

People should talk to Amlogic

http://www.amlogic.com/#Support

mdel
mdel
8 years ago

okay yeah i never really think about android. Well you can always dual boot, and the good thing with those powerful socs, is that they boot very fast. My s905 nexbox A95x (cold) boots android from the emmc in something like 20 seconds and LE from the sdcard in about 25sec. Also it’s not been mentioned here but will the new Wetek Play 2 s905H bring something new to the table, kodi or linux wise ? Although only Android 5.1 is listed on their specs sheet at the moment, i’ve not browsed their forums to see if a linux OS… Read more »

Stane1983
8 years ago


Which U-Boot you tried to compile and which defconfig?

Stane1983
8 years ago


That is gxm_q200_v1_defconfig uboot defconfig. Try to build only that. If not working, use toolchains from http://openlinux.amlogic.com:8000/deploy/ (you also need arc-4.8 to build uboot).

Here is my result:

Creating “../fip/gxl/fip.bin”
Firmware Image Package ToC:
—————————
– SCP Firmware BL3-0: offset=0x4000, size=0xD400
– EL3 Runtime Firmware BL3-1: offset=0x14000, size=0x140D0
– Non-Trusted Firmware BL3-3: offset=0x2C000, size=0xA72E8
—————————
ACS tool process done.
11840+0 records in
11840+0 records out
11840 bytes (12 kB, 12 KiB) copied, 0.0128791 s, 919 kB/s
5825+0 records in
5825+0 records out
5825 bytes (5.8 kB, 5.7 KiB) copied, 0.00590936 s, 986 kB/s
../fip/gxl/u-boot.bin build done!

gary
gary
8 years ago

SSP support not available in this toolchain, please disable BR2_TOOLCHAIN_EXTERNAL_HAS_SSP
package/pkg-generic.mk:185: recipe for target ‘/home/ub/alinux/buildroot/output/build/toolchain-external-undefined/.stamp_configured’ failed
make[1]: *** [/home/ub/alinux/buildroot/output/build/toolchain-external-undefined/.stamp_configured] Error 1
Makefile:36: recipe for target ‘_all’ failed

Hi~
I’ve got this error after make
Do you have any advice?

alopezinkt
alopezinkt
7 years ago

Thanks for these instructions, I followed them and succesfuly built kernel, rootfs and u-boot. However I can’t find instructions to burn the resulting files to a working SD card. Amlogic instructions on their pdf seem to be wrong or incomplete. I have a S912 device. I’ve looked at what libreelec and armbian do and this is what I did: * Enable SD boot with balbes method form armbian * create a bootable SD from libreelec for s905 * Kernel: create a fat partition and copy boot.img from buildroot renamed as kernel.img * DTB copy gxl_p230_2g.dtb from buildroot to fat partition… Read more »

gnthibault
gnthibault
7 years ago

Any news about those topic ? I just bought my h96 pro+ and I am willing to transform it into a headless server.

Boardcon Rockchip and Allwinner SoM and SBC products