HI can any body tellme how can i install arm-linux gcc, may be i steps that i should follow to installit. thanks
install ARM-Linux GCC
Hi david, I'm not sure if you mean installing arm-linux-gcc on the board or on your host which makes more sense. In last case, just extract arm-linux-gcc-4.3.2.tgz, supplied on DVD, to it's default path which is /usr/local/arm... Regards, Oscar
Hi David/ Oscar I am insteret on mini2440 wirh Android too. Please tell me how to install arm-linux-gcc into PC(ubuntu).
same as Oscar said. From linux directory on the DVD disk, you can see arm-linux-gcc-4.3.2.tgz file. simple extract it into a directory on your PC host, and export the PATH, like this: I copy arm-linux-gcc-4.3.2.tgz to /home/mgdaubo/compiler, then: # tar xvzf arm-linux-gcc-4.3.2.tgz it creates the directory: /home/mgdaubo/usr/local/arm/4.3.2/ # export PATH=$PATH:/home/mgdaubo/compiler/usr/local/arm/4.3.2/bin Now type: # arm-linux-gcc -v If you see the gcc version, then you can compile your program, for example, the "helo world": extract the examples-20100108.tar.gz in "linux/" directory in your origin DVD, then go to the "examples/hello/" directory, type: # make Or manual: # arm-linux-gcc -o hello hello.c It creates a binary file named "hello". You can copy it to SD card or USB flash disk, bring it to your 2440 board, and run: # cd udisk udisk#./hello hope this helpful.
Since I have to use both compilers (gcc and arm-linux-gcc) I have a small shell script (which I stored in /bin) to take care of the compilation. It compiles the program and produces an executable file with the same name as the code file (so for 'example.c' it will produce the executable 'example') and shows any warnings/errors on the screen. I'm not a shell expert, so it's probably not the best way to do it, but it works for me. Here: Code: #!/bin/bash #variables por parametros archivoEntrada=$1.c archivoSalida=$1 echo echo echo echo clear #echo $archivoEntrada #echo "Exportando path" export PATH=$PATH:/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/bin #echo #echo "Compilando con arm-linux-gcc" #echo "$archivoEntrada to> $archivoSalida" arm-linux-gcc -mcpu=arm9 -Wall -o $archivoSalida $archivoEntrada echo #echo "Integridad del ejecutable ARM-Binary:" #file $archivoSalida #echo #echo "Modificando permisos to> a+rwx" chmod a+rx $archivoSalida echo #echo "---Ok---" echo echo echo echoIf you want to use it, then to compile a program you need to type the name of the file without the '.c'. So if you have a program called 'code.c', you should type Code: compile codeand it will produce an executable called 'code' Note: If you understand spanish then it should be easy to figure out what's going on in the code
hi mgdaubo, Now, I am using Fedora 15 OS, and want to install arm-linux-gcc 4.4.3 But I don't know config it. pls help me. Thank you
You can use the following command sudo apt-get install gcc-arm-linux-gnueabi or sudo apt-get install gcc-arm-linux-gnueabihf
I have installed all cross compile packages thus far but am having a problem and need some help. Processor : ARM926EJ-S rev 5 (v5l) BogoMIPS : 184.72 Features : swp half thumb fastmult edsp java CPU implementer : 0x41 CPU architecture: 5TEJ CPU variant : 0x0 CPU part : 0x926 CPU revision : 5 Cache type : write-back Cache clean : cp15 c7 ops Cache lockdown : format C Cache format : Harvard I size : 32768 I assoc : 4 I line length : 32 I sets : 256 D size : 32768 D assoc : 4 D line length : 32 D sets : 256 Hardware : MT7108 Revision : 0000 Serial : 0000000000000000 This is the target machine I need to cross compile for. What flags should I use when compiling? Any help would be greatly appreciated.. Thanks in advance.
Step 1: Uncompressed the installation package $ sudo tar zxpf arm-linux-gcc-4.3.2.tgz or # tar zxpf arm-linux-gcc-4.3.2.tgz Step 2: Copy the "arm" folder to the /usr/local directory. This is not mandatory. $ sudo cp -r /home/mathew/Documents/usr/local/arm /usr/local or # cp -r /home/mathew/Documents/usr/local/arm /usr/local Step 3: Before installing we need some essential tools and library files # apt-get install build-essential automake autoconf libtool # apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 or $ sudo apt-get install build-essential automake autoconf libtool $ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 Step 4: Add the path of the arm linux gcc compiler by # export PATH=$PATH:/usr/local/arm/4.3.2/bin or $ sudo export PATH=$PATH:/usr/local/arm/4.3.2/bin Step 5: Verify the installation by $ arm-linux-gcc -v
I am installing Arm linux gcc 4.3.2 when I fire the command on terminal --------> apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 it is showing this error message everytime------------> ------------------------------------------------------------ Package lib32bz2-1.0 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source Package lib32ncurses5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source Package lib32z1 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'lib32z1' has no installation candidate E: Package 'lib32ncurses5' has no installation candidate E: Package 'lib32bz2-1.0' has no installation candidate --------------------------------------------------------------- Please help Me to solve this problem ASAP. Thank you in advance.
Just a thought ... are you running this on a 32 or 64 bit host? Also what happens when you do: apt-get upgrade
It's 64 bit host..... and i have already Updated through apt-get upgrade. I have to change in .bashrc file or not ???? means i have to change any PATH in this file???
What target are you trying to cross-compile for? mini2440? When I was doing this I only had a 32 bit host. I recall another lib I think people with 64 bit machines had to use. Trying searching for http://www.friendlyarm.net/forum/topic/1462 I see you posted on this thread as well. Did sudo apt-get install ia32-libs not work?
When I Enter the command --------> apt-get install ia32-libs it is showing this Message as below.... ------------------------------------------------------------- Reading package lists... Done Building dependency tree Reading state information... Done Package ia32-libs is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'ia32-libs' has no installation candidate ------------------------------------------------------------- and right now i am doing it in 32bit. Thank you,Davef