LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   install gcc to arm9 board (https://www.linuxquestions.org/questions/linux-newbie-8/install-gcc-to-arm9-board-807573/)

aydemirk 05-13-2010 07:04 AM

install gcc to arm9 board
 
i installed linux OS on my lpc3131 board with kernel 2.6.20. I want to install gcc to my board in order to compile codes without cross compiler or auxilary PCs. But i think it must be different then installing gcc rpm on Fedora PC or untar and make gcc, I dont know what i must do. what release or version of gcc should i download and what kind of changes must i do in Makefile. Could anyone help me?

Thanks alot

Aydemir

Mara 05-13-2010 08:25 AM

To compile a compiler you'll need an existing compiler. Chicken and egg problem. So, it's a better idea to cross-compile gcc for your board using your PC and a cross-compiler and then copy the result. It's likely that you'll need more tools to add, but later you should be able to use gcc normally on the board.

BTW Are you sure you have enough memory (RAM and disk/flash space) to compile stuff? Usually it's just faster to cross-compile on a PC.

knudfl 05-13-2010 08:44 AM

If you think, you can use a compiler on your board,
may be try out the Debian "arm compiler".

http://packages.debian.org/etch/gcc
> > Download gcc → arm

Debian also has another 1000 packages for arm .....
..

aydemirk 05-14-2010 12:32 AM

i have 64MB ram and 180MHz MCU. I think it is enough for small applications. I need some packages in order to build gcc. For example i could untar the gcc package and also i must command make insall or make config, so i need make command. I installed linux on my board using LTIB framework. Now i have root file system on 2 GB mmc card. My target is to compile codes directly using my board. As Mara said, first of all i need a compiler to compile gcc and build it. Thats good point. Thanks Mara. But i dont understand what knudfl said about debian arm. I dont have any idea how it could work, build or ect... My linux looks like Fedora/Redhat linux

info: http://www.bitshrine.org/ltib/

Quote:

Originally Posted by knudfl (Post 3966999)
If you think, you can use a compiler on your board,
may be try out the Debian "arm compiler".

http://packages.debian.org/etch/gcc
> > Download gcc → arm

Debian also has another 1000 packages for arm .....
..


knudfl 05-14-2010 03:55 AM

Quote:

I need some packages in order to build gcc.
You cannot build gcc without gcc. Read post #2 @Mara , please.

Are you quite sure, that LTIB has no gcc included ?

The Debian 'arm-gcc' is just an example of a usable compiler.
You can search for any other 'arm-linux-gcc'.
Be aware, it must fit your old glibc.

If the rpm command is available on your board, the .deb
packages can be converted to rpm packages and installed.
Or unpack the packages with ar ......
cpp_4.1.1-15_arm.deb cpp-4.1_4.1.1-21_arm.deb gcc_4.1.1-15_arm.deb
gcc-4.1_4.1.1-21_arm.deb gcc-4.1-base_4.1.1-21_arm.deb

ar -x <package>.deb && mv data.tar.gz <name>-<version>.tar.gz
..

aydemirk 05-21-2010 06:16 AM

Quote:

Originally Posted by knudfl (Post 3968054)
You cannot build gcc without gcc. Read post #2 @Mara , please.

Are you quite sure, that LTIB has no gcc included ?

The Debian 'arm-gcc' is just an example of a usable compiler.
You can search for any other 'arm-linux-gcc'.
Be aware, it must fit your old glibc.

If the rpm command is available on your board, the .deb
packages can be converted to rpm packages and installed.
Or unpack the packages with ar ......
cpp_4.1.1-15_arm.deb cpp-4.1_4.1.1-21_arm.deb gcc_4.1.1-15_arm.deb
gcc-4.1_4.1.1-21_arm.deb gcc-4.1-base_4.1.1-21_arm.deb

ar -x <package>.deb && mv data.tar.gz <name>-<version>.tar.gz
..

Hey,

LTIB has a development shell which i am trying to understand it nowadays. Thanks all of you for your help


All times are GMT -5. The time now is 02:38 AM.