Code:Blocks 8.02/arm-linux-gcc-4.3.2/Mini2440/Kubuntu9.4

Dave Festing
Code:Blocks 8.02 using arm-linux-gcc-4.3.2 with EABI for the FriendlyArm
Mini2440 on Kubuntu 9.4

1. download “arm-linux-gcc-4.3.2 with EABI” from
www.friendlyarm.net/downloads
2. in Root sudo mkdir FriendlyArm and put arm-linux-gcc-4.3.2.tgz in it
3. cd FriendlyArm
4. either extract it or “tar –xvf arm-linux-gcc-4.3.2.tgz”
5. navigate to home/username and find .profile (View, Show hidden files)
and click on .profile and in Kate add the line: export
PATH=$PATH:/FriendlyArm/usr/local/arm/4.3.2
6. re-start the system
7. In Code::Blocks set up a new project, ie MyTest
8. go to Settings/Compiler and debugger and in Select compiler find  GNU
ARM GCC compiler, select it and Set as default or it reverts to GNU GCC
Compiler everytime you start a new project
9. in the tab Toolchain executables (make sure this window is maximised or
you don’t see this tab!) and Compiler’s installation directory put
/FriendlyArm/usr/local/arm/4.3.2 (bin not necessary)
10. now in the Program Files window:
C compiler      arm-linux-gcc-4.3.2
C++ compiler      arm-linux-g++
Linker for dynamic script  arm-linux-g++
Linker for static libs    arm-linux-ar 
Debugger      arm-linux-gdb

Now, click OK.

Your own project:

1. File, New, Project . . . MyTest
2. File, New, File . . . add the adc-test.c example
3. Build, Compile, Build
4. the  executable is called MyTest
5. place MyTest in the  usr/bin directory where the other FriendlyArm apps
are placed
6. in Terminal cd your way to this directory and type in MyTest and presto
it runs.

Credit to Mankin for the kickstart

davef
According to other documentation a .gpz file should be uncompressed first,
ie:

“tar –zxvf arm-linux-gcc-4.3.2.tgz”

Didn't seem to make any difference to me.

davef
Kubuntu 9.04

Would be nice if the poster could edit the posts!

Sebastian
Thanks for this rundown, works great!

If anyone knows how to get a development environment for Qtopia running,
please post.

sujeet_nayak
I am running ubuntu 9.04(x86_64 GNU/Linux) and getting this peculiar
problem. I did exactly as it mentioned. 

/FriendlyArm/usr/local/arm/4.3.2/bin/arm-linux-g++: line 3:
/FriendlyArm/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-g++: No such
file or directory
/FriendlyArm/usr/local/arm/4.3.2/bin/arm-linux-g++: line 3:
/FriendlyArm/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-g++: Success

davef
You are in luck!  Had that one happen to me tonight as well.

In Codeblocks you make an empty project.  I also tried a D application
(whatever that is) and it worked as well.

Seems if you make a console project is goes looking for
arm-none-linux-gnueabi.  Don't ask me why, I don't even know the difference
between these two versions!

Sorry, I didn't mention that in the listing above.

Good luck

sujeet_nayak
I could not solve the file not found  problem in ubuntu.
But, I could easily cross-compile on SUSE and Red Hat and run it on mini.
Maybe there is some issues with setting the path names in ubuntu.
Even the code sourcery lite tools failed to work on ubuntu.
So, I am changing my cross-compile host to SUSE. If anybody could get this
done on ubuntu, please post onto this forum.

s_stavrev
1. download “arm-linux-gcc-4.3.2 with EABI” from
www.friendlyarm.net/downloads


I can't find the gcc on this page. Where shuld I look?

Andreas
http://www.friendlyarm.net/dl.php?file=arm-linux-gcc-4.3.2.tgz

Adir
How do I load it to the board on SD card?

Technoshaman
Worked like a charm at first attempt on Ubuntu 10.4, thank you :) My 
Mini2440 is still on the way, I can't wait to get it :D

kiran
Please, let me know how to load the above from SD-CARD to board

Paul
Hey,
You can either plug the SD card into your computer and copy it over to the
filesystem if its uncompressed, otherwise I setup ethernet on the mini2440
as follows:
edit  with vi /etc/network/interfaces

Either setup the eth0 with dhcp or setup manually like this:
auto eth0
iface eth0 inet static
<tab>address 192.168.0.10 
<tab>netmask 255.255.255.0 
<tab>gateway 192.168.0.1 
<tab>network 192.168.0.0 

make sure you tab

Restart the networking
/etc/init.d/networking restart

edit with vi /etc/resolv.conf

Add your dns servers:
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx

Now you can access the mini2440 by using SFTP and 'root' as a login user.
I use filezilla cos I'm lazy :)

By the way, you don't need to setup the dns for the SFTP to work, but if
you setup the dns you can use the opkg command much like you use apt-get in
ubuntu.

Enjoy!

Diego
hola 
estoy trabajando con ubuntu 12.04 y sale error line 3 cuando doy 
arm-linux-gcc -v

diego@ubuntu:~$ arm-linux-gcc -v
/usr/local/arm/4.3.2/bin/arm-linux-gcc: línea 3:
/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc: No existe el archivo o
el directorio

Diego
hello
I am working with ubuntu 12.04 and get error line 3 when I
arm-linux-gcc-v


diego@ubuntu:~$ arm-linux-gcc -v
/usr/local/arm/4.3.2/bin/arm-linux-gcc: línea 3:
/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc: No existe el archivo o
el directorio