Amlogic has an open linux website where they regurlarly release GPL source code, and with Amlogic S905 devices coming to market, they’ve released a few tarballs at the beginning of the month including Linux 3.14 source code, U-boot source code, and Mali-450MP GPU kernel source code (obviously not userspace), as well as some other drivers for WiFi, NAND flash, PMU, TVIN, etc…
Let’s get to the download links:
- Linux 3.14.29 source code
- U-boot 2015.01
- GPU drivers for ARM Mali-450MP
- Broadcom and Realtek Wifi drivers and firmware (November 4, 2015) can be found @ http://openlinux.amlogic.com:8000/download/ARM/wifi/.
- Other kernel modules (November 4, 2015) @ http://openlinux.amlogic.com:8000/download/ARM/modules/.
I quickly tried to build the Linux source. If you’ve never build a 64-bit ARM kernel or app before, you’ll fist need to install the toolchain. I installed the one provided with Ubuntu 14.04:
sudo apt-get install gcc-aarch64-linux-gnu
Now extract the tarball and enter the source directory:
tar xvf arm-src-kernel-2015-11-04-9e845bea41.tar.gz
At first I had a build failure due to a missing directory, so I created it, and use the default config for Amlogic S905/S912 (in arch/arm64/configs), before building the Linux kernel.
mkdir -p .git/hooks
make ARCH=arm64 meson64_defconfig
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8
and it ended well:
Building modules, stage 2.
MODPOST 2 modules
LD [M] drivers/amlogic/usb/dwc_otg/310/dwc_otg.ko
LD [M] drivers/media/usb/gspca/gspca_main.ko
So that’s a good starting for anybody wanting to work on the Android or Linux kernel…
Unrelated to Amlogic S905/Meson64, but I’ve also noticed some OpenWRT packages and rootfs on Amlogic website that was released a little earlier this year. So either some people are using Amlogic Sxxx processors with OpenWRT, or Amlogic is working on a router chip that I missed. Probably the former.
Thanks to Olin.
Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.
|Support CNX Software - Donate via PayPal, become a Patron on Patreon, or buy review samples|