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:

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

ROCK 5 ITX Rockchip 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.
15 Comments
oldest
newest
Craig
Craig
12 years ago

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

Gabe
Gabe
12 years ago

Hama said they will release GPL source code for Hama Internet TV Box 2 soon.

Technobuddha
Technobuddha
12 years ago

Would you be kind and show me some “startup” info on the process of installing it?

tarowar
tarowar
12 years ago

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

tarowar
tarowar
12 years ago


I hope that Amlogic will publish video driver source.

Morchus
Morchus
11 years ago

Hmm….

Seems like amlogic removed the sources from openlinux.amlogic.com. Or atleast it is not “open” anymore.

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

Do we have these sources uploaded somewhere?

Morchus

Danny
Danny
11 years ago
Paul
Paul
10 years ago

> 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.

Boardcon Rockchip RK3588S SBC with 8K, WiFI 6, 4G LTE, NVME SSD, HDMI 2.1...