Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: dave-at-axon on May 31, 2014, 05:49:01 AM

Title: Building Debian for the A20 under Ubuntu
Post by: dave-at-axon on May 31, 2014, 05:49:01 AM
Hi all,

I have Android building no problem but now I want to have a go with Linux but I am running into an issue with the compile bit. The system can't find the compiler and the only option for apt-get is a debian source.

Anyone got this to build under Ubuntu and could share how you setup the build system or a link to an online resource?

make: arm-linux-gnueabihf-gcc: Command not found

The following does not work as the source of gcc-4.7-arm-linux-gnueabihf is unknown.

apt-get install gcc-4.7-arm-linux-gnueabihf ncurses-dev uboot-mkimage

Title: Re: Building Debian for the A20 under Ubuntu
Post by: dave-at-axon on May 31, 2014, 06:18:38 AM
OK. I found this.

http://askubuntu.com/questions/472219/how-to-install-gcc-4-7-arm-linux-gnueabihf-on-ubuntu-12-04

Now I can install the compiler. Next stage is to see if it will compile :)
Title: Re: Building Debian for the A20 under Ubuntu
Post by: dave-at-axon on June 01, 2014, 05:06:46 AM
I've managed to compile the main source but I can't get uboot to compile. I get this error when I try to compile it.

Makefile:479: *** "System not configured - see README".  Stop.

using this as the compile command

make A20-OLinuXino_MICRO CROSS_COMPILE=arm-linux-gnueabihf-

I followed the instructions from here.

http://olimex.wordpress.com/2013/11/05/building-the-ultimate-debian-sd-card-for-linux-with-kernel-3-4-for-a20-olinuxino-micro/

The A20-OLinuXino_MICRO entry I can see in the boards.cfg file.

I've done the usual Google search on the error and get mainly hits on the Makefile :(

Anyone care to offer any help on what might be wrong? There seems to be a lot less searchable help on Google for Debian Linux building than there is for Android :)
Title: Re: Building Debian for the A20 under Ubuntu
Post by: scout_3pm on June 01, 2014, 10:39:56 AM
Are you sure there are capital letters ;-)
Almost everything in linux is case sensitive :-)

I see in the HOWTO and you should check the boards.cfg:

Quote
# make a20-olinuxino_micro CROSS_COMPILE=arm-linux-gnueabihf-

I.e NOT A20-OLinuXino_MICRO.

Good Luck
Title: Re: Building Debian for the A20 under Ubuntu
Post by: dave-at-axon on June 01, 2014, 10:52:28 AM
I tried with both, same result. I used the capitals as that is what is in the boards.cfg file.
Title: Re: Building Debian for the A20 under Ubuntu
Post by: martinayotte on June 01, 2014, 05:03:57 PM
Hi Dave,

You need to do "config" first, then compile ...

make A20-OLinuXino_MICRO_config
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

Hoping this help,
Title: Re: Building Debian for the A20 under Ubuntu
Post by: dave-at-axon on June 01, 2014, 05:43:14 PM
Cheers for that.

The compilation is now complete.
Title: Re: Building Debian for the A20 under Ubuntu
Post by: scout_3pm on June 01, 2014, 06:07:16 PM
Well you didn't go to the revision that is mention in the HOWTO:

I.e when running this command:

git rev-parse --verify HEAD


If you don't see this revision
Quote
8a4621c488f33089d831168bfa5bae210a5684c8
most likely you are using the latest revision from U-boot ;-)

If you were at the revision mention in the HOWTO the command with
lowercase letters is right ;-) I compiled it a few days back and all is fine.
Title: Re: Building Debian for the A20 under Ubuntu
Post by: dave-at-axon on June 02, 2014, 05:48:35 AM
I get this:

44910e96f4340754484b930f91d837ac1fbea9a0

Anyway, the information from martinayotte sorted it out and I now have both compiled.
Title: Re: Building Debian for the A20 under Ubuntu
Post by: smysnk on June 07, 2014, 10:41:17 AM
For a simplified method of compiling Debian with Vagrant, check out my thread here (https://www.olimex.com/forum/index.php?topic=3302.0).