LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* kernel porting query
@ 2007-02-16  2:16 Rick Brown
  2007-02-16  4:18 ` Ajay Singh (ajaysi)
  0 siblings, 1 reply; 3+ messages in thread
From: Rick Brown @ 2007-02-16  2:16 UTC (permalink / raw)
  To: Linux Kernel, kernelnewbies, linux-newbie

Hi,

I have a very basic query regarding kernel porting on different
boards. I understand that even if two boards have the very same
processor core (say MIPS 4KE), we need to port linux for them
seperately. I have heard things like it is because of certain "board
level differences", I need to provide some "board specific hooks"
because the boards may contain "different devices" and so on ....

1) Can any one please shed some light on precisely and exactly what
are differences in different boards for which we need to port linux?

2) Also, I would appreciate if you could point out code portions /
source files that need to be changed in the process of porting Linux?

TIA,

Rick

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: kernel porting query
  2007-02-16  2:16 kernel porting query Rick Brown
@ 2007-02-16  4:18 ` Ajay Singh (ajaysi)
  2007-02-16  9:32   ` Bernd Petrovitsch
  0 siblings, 1 reply; 3+ messages in thread
From: Ajay Singh (ajaysi) @ 2007-02-16  4:18 UTC (permalink / raw)
  To: Rick Brown, Linux Kernel, kernelnewbies, linux-newbie

 

<snip> 
1) Can any one please shed some light on precisely and exactly what are
differences in different boards for which we need to port linux?

The differences depends on the boards ... Mostly if they belong to the
same family the differences could be mainly in the peripherials ...
Interrupt mappings... Serial interface ... Memory sizes (if differnet
boards have different memory sizes) ... Sometimes some devices may be
moved to some other locations in the memory map (Look at memory map of
your SoC on your board). 

2) Also, I would appreciate if you could point out code portions /
source files that need to be changed in the process of porting Linux?

Look in linux-2.6.20\arch\mips\mips-boards for help on porting to your
board. You can add directory specific to your board here.
I think you can start from xxx_setup.c file in the above directory.

Good luck.
Ajay.

TIA,

Rick

--
To unsubscribe from this list: send an email with "unsubscribe
kernelnewbies" to ecartis@nl.linux.org Please read the FAQ at
http://kernelnewbies.org/FAQ

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: kernel porting query
  2007-02-16  4:18 ` Ajay Singh (ajaysi)
@ 2007-02-16  9:32   ` Bernd Petrovitsch
  0 siblings, 0 replies; 3+ messages in thread
From: Bernd Petrovitsch @ 2007-02-16  9:32 UTC (permalink / raw)
  To: Ajay Singh (ajaysi); +Cc: Rick Brown, Linux Kernel, kernelnewbies, linux-newbie

On Fri, 2007-02-16 at 07:46 +0530, Rick Brown wrote:

Your quoting style sucks. I fixed it by hand.
 
[...]
> > 1) Can any one please shed some light on precisely and exactly what are
> > differences in different boards for which we need to port linux?

> On Fri, 2007-02-16 at 09:48 +0530, Ajay Singh (ajaysi) wrote:
> The differences depends on the boards ... Mostly if they belong to the
> same family the differences could be mainly in the peripherials ...
> Interrupt mappings... Serial interface ... Memory sizes (if differnet
> boards have different memory sizes) ... Sometimes some devices may be
> moved to some other locations in the memory map (Look at memory map of
> your SoC on your board). 

You may have different boot loaders (or none at all).
You also may have different storage media like FlashRAM, IDE,
network, .... for boot loader/kernel/root filesystem. They may have
different sizes and it makes a "little" difference for your requirements
in the toolchain if you have 4MB or 1GB to boot your system from.

All that kind of information can be found in a BSP (board support
package).

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-02-16  9:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-16  2:16 kernel porting query Rick Brown
2007-02-16  4:18 ` Ajay Singh (ajaysi)
2007-02-16  9:32   ` Bernd Petrovitsch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).