AMLogic Releases U-Boot and Updated Linux Kernel Source Code

AMLogic released kernel 3.0.8 source code for AML8726-MX a few months ago, and yesterday they provided an updated tarballs with the kernel, and for the first time, AFAIK, released the source code for U-Boot.

There are 4 new files apparently generated from the (internal) git repository in AMLogic:

  • common-2012-11-20-git-b687495906.tar.gz  (108M) – This is the same kernel 3.0.8 release has last time, but with updated code.
  • m1-kernel-android-2012-11-20-git-5d0f6b8e93.tar.gz (103M) – This looks like an older kernel 2.6 for AML8726-M1 only.
  • uboot-master-2012-11-20-git-9b50e9a295.tar.gz (16M) – U-Boot 2010.06 possibly to use with the older 2.6 kernel. Only for M1 & M3 platforms.
  • uboot-next-2012-11-20-git-b0e532795a.tar.gz (40M) – U-Boot 2011.03 for use with M3 and M6 platforms.

I’ve already explained how to build the kernel in the previous post, so I’ll focus on U-Boot this time.

Ubuntu 12.04 arm-linux-gnueabi- toolchain fails to build U-Boot (uboot-next), so you’ll have to install Sourcery toolchain instead:

wget http://openlinux.amlogic.com/download/linux/ARM/gnutools/arm-2010q1-188-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
tar xjvf arm-2010q1-188-arm-none-eabi-i686-pc-linux-gnu.tar.bz2

You’ll also need the ARC toolchain, and you’ll have to build it from source (Unless you still use Ubuntu 9.04) since there are no binary packages. First download the source code:

wget http://sourceforge.net/projects/arc-linux/files/ARC%20GNU%20Toolchain/ARC%20GNU%204.4/arc_gcc_rel4.4.tar.gz/download -O arc_gcc_rel4.4.tar.gz
tar xzvf arc_gcc_rel4.4.tar.gz
cd arc_gcc_rel4.4

Install some dependencies:


Build the ARC elf32 toolchain:


Where ARC_GNU is the path where you extract the ARC toolchain source code, and INSTALLDIR your chosen installation directory. After a while, the ARC toolchain should be installed in ~/edev/amlogic/arc-4.4-elf32 (INSTALLDIR). Add both Sourcery and ARC elf32toolchains to your path:


Extract the source code, and get a list of supported platform:


The listed directories correspond to the list of supported platforms. I used uboot-next in the example above, but the method is the same for uboot-master. I haven’t looked into the details and differences of each platform.

Finally select one platform to start the build, for example:


After a few minutes, U-Boot binary should be in build/u-boot.bin. To find out how to use it with the board, further reading in Amlogic U-Boot page should be helpful.

Via: J1nx Hackable Gadgets

Share this:
FacebookTwitterHacker NewsSlashdotRedditLinkedInPinterestFlipboardMeWeLineEmailShare

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

15 Replies to “AMLogic Releases U-Boot and Updated Linux Kernel Source Code”

  1. Nice write up. Would be really good if you could take it a step further with running linaro armhf though!

    If you want to borrow a m3 stick contact me i’ll send you mine

  2. @Technobuddha
    I wish I knew. I’ve just gotten a stick this week, and this is on my list of things to do. But I may not start until next year. In the meantime, I’d look on pivos forums and check the progress on j1nx.nl.

  3. > Hello, why i need for compilation process Arc_gcc toolchain, is it for VPU?

    Here’s some hints: http://www.design-reuse.com/news/3453/amlogic-arc-soc-ip-technology-single-chip-progressive-scan-dvd-controller.html “Amlogic selects ARC’s industry leading SoC IP technology for single-chip progressive scan DVD controller”

    So, there’re 2 choices: 1) ARC is just stale historical dependency from 10 years ago; or 2) their video decoding cores are indeed built on ARC architecture and may need some init code or something.

Leave a Reply

Your email address will not be published. Required fields are marked *

Khadas VIM4 SBC
Khadas VIM4 SBC