Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A13 => Topic started by: sebswed on January 19, 2013, 05:39:33 pm

Title: Installing compilers under Ubuntu
Post by: sebswed on January 19, 2013, 05:39:33 pm
Hi there.

My A13 with onboard wifi is booting perfectly and now I would like to create my first Hello world program as described on https://www.olimex.com/wiki/Programming_for_A13_in_debian (https://www.olimex.com/wiki/Programming_for_A13_in_debian). I have added the deb http://www.emdebian.org/debian/ squeeze main to my /etc/apt/sources.list.

When doing the apt-get update I get the following error in my Ubuntu terminal:
Reading package lists... Done
W: GPG error: http://www.emdebian.org squeeze InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B5B7720097BB3B58
root@Uniscan:/home/sebastiaan#


Could someone tell me if I need to change a setting somewhere or change the command in the terminal?

I forgot to mention that I'm planing to cross compile so this needs to be installed on my netbook running Ubuntu

Kind regards,
Sebastiaan
Title: Re: Installing compilers under Ubuntu
Post by: jwischka on January 19, 2013, 08:28:11 pm
I have no idea why that wiki is telling you to get the armel toolchain - while I haven't installed the linaro image, I would assume since linaro is moving to armhf that you want the armhf toolchain, and since the whole arm movement is headed toward hf, it's the one you'd want anyway (unless linaro is armel... so check that first...)

That said, you shouldn't have to add the additional repository - I'd just open the package manager and install gcc, g++, gcc-4.6-arm-linux-gnueabi-base, gcc-arm-linux-gnueabihf, g++-arm-linux-gnueabihf, and cpp-arm-linux-gnueabihf - and obviously all of the dependencies as well.

Title: Re: Installing compilers under Ubuntu
Post by: JohnS on January 19, 2013, 08:59:58 pm
Those look the right ones.  I also had to install makeinfo texinfo & zlib1g-dev
possibly a few more, too.
Title: Re: Installing compilers under Ubuntu
Post by: Bernd on January 20, 2013, 12:31:30 pm
You also need to install the key for the repository:

apt-get install emdebian-archive-keyring
Title: Re: Installing compilers under Ubuntu
Post by: JohnS on January 20, 2013, 01:01:21 pm
Why is it needed?  I didn't need it...

Er... and what does it do?
Title: Re: Installing compilers under Ubuntu
Post by: Bernd on January 20, 2013, 01:20:20 pm
It installs the pgp key which is necessary to check the signatures of the packages from the repository. The error message in the post indicates that the problem is that that the signature cannot be verified. This indicates that something like a key is missing.

Here is the wiki page I read to find out how to install the toolchain.

http://wiki.debian.org/EmdebianToolchain

Maybe on your system the key was already installed, so it was working fine.
Title: Re: Installing compilers under Ubuntu
Post by: JohnS on January 20, 2013, 01:30:47 pm
OK.  I didn't need to install any of emdebian, either.
Title: Re: Installing compilers under Ubuntu
Post by: Bernd on January 20, 2013, 01:32:25 pm
That might be the reason why you didn't need the key. :-)
Title: Re: Installing compilers under Ubuntu
Post by: jwischka on January 20, 2013, 02:45:23 pm
Yeah - emdebian is really an embedded version of debian, which is not strictly speaking necessary for an install here - the compilers you can get from the main armhf wheezy repos are sufficient for programming.
Title: Re: Installing compilers under Ubuntu
Post by: sebswed on January 20, 2013, 08:52:24 pm
Thank you all for your input.

I have now installed (version)


I could not find the makeinfo in my package manager. I don't know if this is causing trouble for me?
If its not an essential component, do I have everything installed to create a program for my A13 wifi board?
I'm planning on programming on my ubuntu netbook and transfer the file to my Olimex board running a Linaro image (I can change this image to the revision 7 debian if required or advised).

I'm thankful for input and advise.
Title: Re: Installing compilers under Ubuntu
Post by: JohnS on January 20, 2013, 10:03:30 pm
Try building u-boot / kernel / etc.  If anything fails install missing stuff & try again.  Repeat etc.
Title: Re: Installing compilers under Ubuntu
Post by: Eos on January 20, 2013, 11:20:19 pm
#sudo apt-get update
#sudo apt-get install build-essential