LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-13-2010, 07:04 AM   #1
aydemirk
LQ Newbie
 
Registered: May 2010
Posts: 3
Blog Entries: 2

Rep: Reputation: 0
Question 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
 
Old 05-13-2010, 08:25 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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.
 
Old 05-13-2010, 08:44 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 .....
..
 
Old 05-14-2010, 12:32 AM   #4
aydemirk
LQ Newbie
 
Registered: May 2010
Posts: 3

Original Poster
Blog Entries: 2

Rep: Reputation: 0
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 View Post
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 .....
..
 
Old 05-14-2010, 03:55 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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
..

Last edited by knudfl; 05-14-2010 at 07:20 AM.
 
Old 05-21-2010, 06:16 AM   #6
aydemirk
LQ Newbie
 
Registered: May 2010
Posts: 3

Original Poster
Blog Entries: 2

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MINI2440 board with Samsung S3C2440 ARM9 Board + 7"TFT Eddy van den Boom Linux - Newbie 5 05-24-2012 05:07 AM
Looking for an arm9 board supporting the Linux2.6 kennyfly899 Linux - Newbie 5 06-09-2011 01:07 AM
ELDK version for ARM9 based board soumya_r Linux - Embedded & Single-board computer 3 04-27-2010 04:50 PM
Problem with Oprofile using Vmware on ARM9 board AshishJogeshwar Linux - Newbie 2 01-04-2010 04:05 AM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration