Linux MIPS Architecture development
 help / color / mirror / Atom feed
* kernel for custom MV64341 board?
@ 2005-02-16  1:55 Fredrik
  2005-02-16  1:55 ` Fredrik
  2005-02-16  8:57 ` Thomas Petazzoni
  0 siblings, 2 replies; 7+ messages in thread
From: Fredrik @ 2005-02-16  1:55 UTC (permalink / raw)
  To: linux-mips

Howdy,

I'm getting a custom board going: it sports an RM7000 and Marvell
MV64341 system controller (alas, no external UART!).  I've hacked
U-Boot to the point where I can TFTP a kernel image and (start to)
boot it.

So far I've been using an old 2.4 kernel I used for some Ocelot-G
work, just to get past the TFTP-load stage. MY QUESTION IS: What would
be the best kernel version for me to now start customizing for my
board?  Is 2.6 too bleeding-edge, 2.4 too moldy, or what?  Dealing
with the MV64341 will be most of the effort, of course.

The Ocelot boards seem well supported, but there looks to be a lot of
code that would have to change (different system controller, different
memory map--though I'm flexible--a lot of assumptions about the
goodies available on-board, etc.).  This is the first time I'll be
porting the kernel, so it might be more productive for me to start
from a minimalist configuration and add-in what I need.  Enough code
to set up the memory configuration would be a big help.

Suggestions?

/Fredrik

+----------------------------------------------------------------+
|            Fredrik Noon,   Senior Software Engineer            |
|            Hifn, Inc.      www.hifn.com                        |
|            fnoon@hifn.com  +1 408 399 3630                     |
|-------------------+--------------------------------------------|
|  pgp key: <http://noon.org/keys/pgpkey.txt> 7840AC55           |
+----------------------------------------------------------------+

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

* kernel for custom MV64341 board?
  2005-02-16  1:55 kernel for custom MV64341 board? Fredrik
@ 2005-02-16  1:55 ` Fredrik
  2005-02-16  8:57 ` Thomas Petazzoni
  1 sibling, 0 replies; 7+ messages in thread
From: Fredrik @ 2005-02-16  1:55 UTC (permalink / raw)
  To: linux-mips

Howdy,

I'm getting a custom board going: it sports an RM7000 and Marvell
MV64341 system controller (alas, no external UART!).  I've hacked
U-Boot to the point where I can TFTP a kernel image and (start to)
boot it.

So far I've been using an old 2.4 kernel I used for some Ocelot-G
work, just to get past the TFTP-load stage. MY QUESTION IS: What would
be the best kernel version for me to now start customizing for my
board?  Is 2.6 too bleeding-edge, 2.4 too moldy, or what?  Dealing
with the MV64341 will be most of the effort, of course.

The Ocelot boards seem well supported, but there looks to be a lot of
code that would have to change (different system controller, different
memory map--though I'm flexible--a lot of assumptions about the
goodies available on-board, etc.).  This is the first time I'll be
porting the kernel, so it might be more productive for me to start
from a minimalist configuration and add-in what I need.  Enough code
to set up the memory configuration would be a big help.

Suggestions?

/Fredrik

+----------------------------------------------------------------+
|            Fredrik Noon,   Senior Software Engineer            |
|            Hifn, Inc.      www.hifn.com                        |
|            fnoon@hifn.com  +1 408 399 3630                     |
|-------------------+--------------------------------------------|
|  pgp key: <http://noon.org/keys/pgpkey.txt> 7840AC55           |
+----------------------------------------------------------------+

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

* RE: kernel for custom MV64341 board?
@ 2005-02-16  5:05 Brad Larson
  2005-02-16  6:37 ` Manish Lachwani
  0 siblings, 1 reply; 7+ messages in thread
From: Brad Larson @ 2005-02-16  5:05 UTC (permalink / raw)
  To: 'Fredrik', linux-mips

Fredrik,

MontaVista completed a 2.4 port to Ocelot-III with RM7900 (or RM7000C) and Discovery-3 (MV64440).  Ocelot-III is ATX form factor while previous Ocelot, Ocelot-C and Ocelot-G were CPCI.  This is probably close to the board you are describing.  Any board dependent changes should have been committed to linux-mips.org by now.

--Brad

-----Original Message-----
From: linux-mips-bounce@linux-mips.org
[mailto:linux-mips-bounce@linux-mips.org]On Behalf Of Fredrik
Sent: Tuesday, February 15, 2005 5:56 PM
To: linux-mips@linux-mips.org
Subject: kernel for custom MV64341 board?


Howdy,

I'm getting a custom board going: it sports an RM7000 and Marvell
MV64341 system controller (alas, no external UART!).  I've hacked
U-Boot to the point where I can TFTP a kernel image and (start to)
boot it.

So far I've been using an old 2.4 kernel I used for some Ocelot-G
work, just to get past the TFTP-load stage. MY QUESTION IS: What would
be the best kernel version for me to now start customizing for my
board?  Is 2.6 too bleeding-edge, 2.4 too moldy, or what?  Dealing
with the MV64341 will be most of the effort, of course.

The Ocelot boards seem well supported, but there looks to be a lot of
code that would have to change (different system controller, different
memory map--though I'm flexible--a lot of assumptions about the
goodies available on-board, etc.).  This is the first time I'll be
porting the kernel, so it might be more productive for me to start
from a minimalist configuration and add-in what I need.  Enough code
to set up the memory configuration would be a big help.

Suggestions?

/Fredrik

+----------------------------------------------------------------+
|            Fredrik Noon,   Senior Software Engineer            |
|            Hifn, Inc.      www.hifn.com                        |
|            fnoon@hifn.com  +1 408 399 3630                     |
|-------------------+--------------------------------------------|
|  pgp key: <http://noon.org/keys/pgpkey.txt> 7840AC55           |
+----------------------------------------------------------------+

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

* RE: kernel for custom MV64341 board?
  2005-02-16  5:05 Brad Larson
@ 2005-02-16  6:37 ` Manish Lachwani
  2005-02-16 19:40   ` Fredrik
  0 siblings, 1 reply; 7+ messages in thread
From: Manish Lachwani @ 2005-02-16  6:37 UTC (permalink / raw)
  To: Brad Larson, 'Fredrik', linux-mips

Brad,

Just to let you know, Ocelot III is also fully
supported in 2.6. MontaVista has a 2.6 port this board
as well.

Thanks
Manish Lachwani

--- Brad Larson <Brad_Larson@pmc-sierra.com> wrote:

> Fredrik,
> 
> MontaVista completed a 2.4 port to Ocelot-III with
> RM7900 (or RM7000C) and Discovery-3 (MV64440). 
> Ocelot-III is ATX form factor while previous Ocelot,
> Ocelot-C and Ocelot-G were CPCI.  This is probably
> close to the board you are describing.  Any board
> dependent changes should have been committed to
> linux-mips.org by now.
> 
> --Brad
> 
> -----Original Message-----
> From: linux-mips-bounce@linux-mips.org
> [mailto:linux-mips-bounce@linux-mips.org]On Behalf
> Of Fredrik
> Sent: Tuesday, February 15, 2005 5:56 PM
> To: linux-mips@linux-mips.org
> Subject: kernel for custom MV64341 board?
> 
> 
> Howdy,
> 
> I'm getting a custom board going: it sports an
> RM7000 and Marvell
> MV64341 system controller (alas, no external UART!).
>  I've hacked
> U-Boot to the point where I can TFTP a kernel image
> and (start to)
> boot it.
> 
> So far I've been using an old 2.4 kernel I used for
> some Ocelot-G
> work, just to get past the TFTP-load stage. MY
> QUESTION IS: What would
> be the best kernel version for me to now start
> customizing for my
> board?  Is 2.6 too bleeding-edge, 2.4 too moldy, or
> what?  Dealing
> with the MV64341 will be most of the effort, of
> course.
> 
> The Ocelot boards seem well supported, but there
> looks to be a lot of
> code that would have to change (different system
> controller, different
> memory map--though I'm flexible--a lot of
> assumptions about the
> goodies available on-board, etc.).  This is the
> first time I'll be
> porting the kernel, so it might be more productive
> for me to start
> from a minimalist configuration and add-in what I
> need.  Enough code
> to set up the memory configuration would be a big
> help.
> 
> Suggestions?
> 
> /Fredrik
> 
>
+----------------------------------------------------------------+
> |            Fredrik Noon,   Senior Software
> Engineer            |
> |            Hifn, Inc.      www.hifn.com           
>             |
> |            fnoon@hifn.com  +1 408 399 3630        
>             |
>
|-------------------+--------------------------------------------|
> |  pgp key: <http://noon.org/keys/pgpkey.txt>
> 7840AC55           |
>
+----------------------------------------------------------------+
> 
> 
> 

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

* Re: kernel for custom MV64341 board?
  2005-02-16  1:55 kernel for custom MV64341 board? Fredrik
  2005-02-16  1:55 ` Fredrik
@ 2005-02-16  8:57 ` Thomas Petazzoni
  1 sibling, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2005-02-16  8:57 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 1623 bytes --]

Hello,

Fredrik a écrit :

> So far I've been using an old 2.4 kernel I used for some Ocelot-G
> work, just to get past the TFTP-load stage. MY QUESTION IS: What would
> be the best kernel version for me to now start customizing for my
> board?  Is 2.6 too bleeding-edge, 2.4 too moldy, or what?  Dealing
> with the MV64341 will be most of the effort, of course.

I have recently hacked a 2.6 Linux-MIPS kernel for a custom RM9000 / 
MV64340 board, and it worked pretty well.

For the MV64340 UART, you can find a driver in the Bitkeeper PowerPC 
tree available at Montavista. Otherwise, I have written an other driver, 
much smaller, but maybe less functionnal than the one available from 
Montavista.

> The Ocelot boards seem well supported, but there looks to be a lot of
> code that would have to change (different system controller, different
> memory map--though I'm flexible--a lot of assumptions about the
> goodies available on-board, etc.).  This is the first time I'll be
> porting the kernel, so it might be more productive for me to start
> from a minimalist configuration and add-in what I need.  Enough code
> to set up the memory configuration would be a big help.

Have a look at Linux-MIPS Wiki (http://www.linux-mips.org) it contains 
an updated version of the MIPS porting guide from Jun Sun. It's a very 
good starting point in my opinion.

Thomas
-- 
PETAZZONI Thomas - thomas.petazzoni@enix.org
http://thomas.enix.org - Jabber: thomas.petazzoni@jabber.dk
http://kos.enix.org, http://sos.enix.org
Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E  1624 F653 CB30 98D3 F7A7


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

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

* Re: kernel for custom MV64341 board?
  2005-02-16  6:37 ` Manish Lachwani
@ 2005-02-16 19:40   ` Fredrik
  2005-02-17  9:24     ` Thomas Petazzoni
  0 siblings, 1 reply; 7+ messages in thread
From: Fredrik @ 2005-02-16 19:40 UTC (permalink / raw)
  To: linux-mips

Thank you all for the feedback.  It sounds like 2.6 is a safe starting
point: now I just have to learn how paging tables get set up. :o

/Fredrik

+----------------------------------------------------------------+
|            Fredrik Noon,   Senior Software Engineer            |
|            Hifn, Inc.      www.hifn.com                        |
|            fnoon@hifn.com  +1 408 399 3630                     |
|-------------------+--------------------------------------------|
|  pgp key: <http://noon.org/keys/pgpkey.txt> 7840AC55           |
+----------------------------------------------------------------+

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

* Re: kernel for custom MV64341 board?
  2005-02-16 19:40   ` Fredrik
@ 2005-02-17  9:24     ` Thomas Petazzoni
  0 siblings, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2005-02-17  9:24 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 793 bytes --]

Hello,

Fredrik a écrit :
> Thank you all for the feedback.  It sounds like 2.6 is a safe starting
> point: now I just have to learn how paging tables get set up. :o

You don't have to worry about paging tables. Support for TLB on R7000 is 
already included in Linux-MIPS, you don't have to do anything about it. 
(At least for the port I did on a RM9000-based platform, I didn't had to 
worry about it).

Read the MIPS porting guide available on the Wiki : 
http://www.linux-mips.org/wiki/index.php/Porting, it's really really useful.

Thomas
-- 
PETAZZONI Thomas - thomas.petazzoni@enix.org
http://thomas.enix.org - Jabber: thomas.petazzoni@jabber.dk
KOS: http://kos.enix.org/ - SOS: http://sos.enix.org
Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E  1624 F653 CB30 98D3 F7A7


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

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

end of thread, other threads:[~2005-02-17  9:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-16  1:55 kernel for custom MV64341 board? Fredrik
2005-02-16  1:55 ` Fredrik
2005-02-16  8:57 ` Thomas Petazzoni
  -- strict thread matches above, loose matches on Subject: below --
2005-02-16  5:05 Brad Larson
2005-02-16  6:37 ` Manish Lachwani
2005-02-16 19:40   ` Fredrik
2005-02-17  9:24     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox