LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-10-2009, 05:12 AM   #1
Pinkesh
LQ Newbie
 
Registered: Dec 2009
Posts: 7

Rep: Reputation: 0
How to Port Linux on ARM processor


Hi all,

I am very new in linux. Give some basic study materials of linux.
How can I port CentOS linux kernel to ARM LPC2478 ?

Thank you
Pinkesh shah
 
Old 12-10-2009, 05:24 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,296

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Porting is not for the faint hearted, or the inexperienced.
The kernel will compile for arm, but of course there will be significant differences from a x86 or x86_64 kernel. Instructions for porting generally are
1. get a compile environment for arm (hardest part)
2. Give it your best guess and compile
3. Keep fixing and repeating step 2 until it works

If you're new, better start with Debian, who do an arm port
 
Old 12-10-2009, 05:42 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,036

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
You might want to take a look at Gentoo.

http://www.gentoo.org/doc/en/handbook/handbook-arm.xml

CentOS, as far as I know (I could be wrong), doesn't support arm, so you would have to compile everything from scratch anyway. It's not just the kernel that you will need, that is, unless all you want is to use some feature that's only present in the CentOS kernel. In such case, you should rather be fetching the relevant patches and applying them on your chosen distro kernel. If you don't want that, I suggest looking for a distro that supports arm as suggested above.

Last edited by i92guboj; 12-10-2009 at 05:44 AM.
 
Old 12-10-2009, 12:02 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,551

Rep: Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512
Debian has an ' arm ' version too.

http://www.debian.org/CD/index.en.html

http://cdimage.debian.org/debian-cd/5.0.3/arm/iso-cd/
 
Old 12-10-2009, 02:23 PM   #5
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,896

Rep: Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774
Quote:
Originally Posted by Pinkesh View Post
How can I port CentOS linux kernel to ARM LPC2478 ?
is there any reason that you believe that this is possible, in this case. I note that
http://www.embeddedartists.com/produ...it.php?tab=mcu
where they do produce a kit with Linux included, there is an external 32 MB ram which supplements the internal 96kB. How much RAM do you have? (Another vaguely memory-related issue is the prescence or otherwise of an MMU; server and desktop Linux packages assume the prescence of an MMU, the cheaper microcontrollers
don't have them and you need to select one of the very few Linux packages that do not assume an MMU; this is the first thing that you need to take care of before you buy anything. From what I know of the range, you seem to have chosen a microcontroller that has an EMC (ie, can produce the correct waveforms for DRAM) but not a memory management unit. Without an MMU, you could have to hack a Centos kernel so much, that it is arguable that you shouldn't call it a Centos Kernel anymore.)

In any case, the easiest approach is to buy a board which is available with a Linux BSP (Board Support Package), which some suppliers do make available. At a very minimum, you know that if you can buy it, it can be done. And you can pick through how the supplier has built their packages.

In any case I'd agree with the others that centos probably isn't the optimum starting place; in addition to emdebian, gentoo and whatever BSPs you can find, with the aid of a search engine, http://www.uclinux.org/ would be another place to look.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm confused again, Is an Arm processor the same as a MIPS processor? MrUmunhum Linux - Hardware 3 09-24-2009 04:47 AM
Linux on ARM processor knobby67 Programming 1 09-19-2009 07:45 AM
LXer: Three reasons Microsoft shouldn't port Windows to the ARM processor LXer Syndicated Linux News 0 03-14-2009 02:00 AM
porting Fedora Linux on ARM processor Mahesha kempegowda Linux - Newbie 1 11-18-2008 05:52 PM
porting Fedora Linux on ARM processor Mahesha kempegowda Linux - Newbie 1 11-18-2008 01:37 AM


All times are GMT -5. The time now is 08:48 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration