Building Debian for the A20 under Ubuntu

Started by dave-at-axon, May 31, 2014, 05:49:01 AM

Previous topic - Next topic

dave-at-axon

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


dave-at-axon


dave-at-axon

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 :)

scout_3pm

#3
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

dave-at-axon

I tried with both, same result. I used the capitals as that is what is in the boards.cfg file.

martinayotte

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,

dave-at-axon

Cheers for that.

The compilation is now complete.

scout_3pm

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.

dave-at-axon

I get this:

44910e96f4340754484b930f91d837ac1fbea9a0

Anyway, the information from martinayotte sorted it out and I now have both compiled.

smysnk

For a simplified method of compiling Debian with Vagrant, check out my thread here.