Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 12-10-2009, 05:12 AM   #1
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
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,918

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
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
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,077

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

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
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 17,040

Rep: Reputation: 3456Reputation: 3456Reputation: 3456Reputation: 3456Reputation: 3456Reputation: 3456Reputation: 3456Reputation: 3456Reputation: 3456Reputation: 3456Reputation: 3456
Debian has an ' arm ' version too.
Old 12-10-2009, 02:23 PM   #5
Senior Member
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,065

Rep: Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894
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
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, would be another place to look.


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 > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:19 AM.

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