Skip to contentSkip to conversation

Linux on a Motorola MPC5200 ?

DISCUSSION Sylvain Munaut 5 participants 7 messages Jan 27, 2004 – Feb 3, 2004

lore
Share & tools
lore
#0 lore raw

Hello

I'd like to run linux on a future custom board based on a motorola MPC5200 and I have a few questions :

- What is the current support for it ? Stable ... I'd need the DMA ( well, their 'special DMA fancy stuff' ;) ), ATA, DDR, I2S, AC97 mainly.
- I'd really like to run a 2.6 kernel on it. If it's not yet ported to the 2.6 what is the current ppc support for 2.6 ? Would I "only" need to port MPC specifics ?
- Where can I find the current stuff ? I've taken what is in ppc.bkbits.net/linux-2.4-mpc5xxx, is there other things I should consider ?

Thanks for any informations

Munaut Sylvain

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 13 lines · Sylvain Munaut

Hello

I'd like to run linux on a future custom board based on a motorola MPC5200 and I have a few questions :

- What is the current support for it ? Stable ... I'd need the DMA ( well, their 'special DMA fancy stuff' ;) ), ATA, DDR, I2S, AC97 mainly.
- I'd really like to run a 2.6 kernel on it. If it's not yet ported to the 2.6 what is the current ppc support for 2.6 ? Would I "only" need to port MPC specifics ?
- Where can I find the current stuff ? I've taken what is in ppc.bkbits.net/linux-2.4-mpc5xxx, is there other things I should consider ?

Quoted 3 lines

Thanks for any informations

Munaut Sylvain

I think you've found pretty much what's available. I haven't seen a 2.6 port for the 5200 yet.

-Dale Farnsworth

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw
In reply to Sylvain Munaut
Quoted 5 lines · In message <[email protected]> you wrote:

I'd like to run linux on a future custom board based on a motorola MPC5200 and I have a few questions :

- What is the current support for it ? Stable ... I'd need the DMA (

Yes, it is stable, with a couple of well-known problems.

Quoted 1 line

well, their 'special DMA fancy stuff' ;) ), ATA, DDR, I2S, AC97 mainly.

ATA: OK as long as you don't enable DMA writes (*)

DDR: OK (use icecube_5200_DDR configuration in U-Boot); the LOWBOOT
option is not working yet (we are working on this)

I2S: simultaneous reading and writing is impossible (*)
AC97: ditto

(*) to fix these issues we're waiting for a bugfix release of the
BestComm CAPI which might become availabe by mid February.

Quoted 1 line

- I'd really like to run a 2.6 kernel on it. If it's not yet ported to

Forget it. Why would you want to do that? Which features do you expect from 2.6 which are not available in 2.4?

Quoted 2 lines

the 2.6 what is the current ppc support for 2.6 ? Would I "only" need to port MPC specifics ?

No comment.

Quoted 2 lines

- Where can I find the current stuff ? I've taken what is in
ppc.bkbits.net/linux-2.4-mpc5xxx, is there other things I should consider ?

Our current stuff is on our CVS server, in the linuxppc_2_4_devel tree. As far as the 5200 is concerned this includes stuff that was submitted but not yet added to the linux-2.4-mpc5xxx tree (but Tom promised to add our patches).

Best regards,

Wolfgang Denk

--
See us @ Embedded World, Nuremberg, Feb 17 - 19, Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected]
Machines take me by surprise with great frequency. - Alan Turing

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#3 lore raw

Hi

Quoted 8 lines
Quoted 3 lines

well, their 'special DMA fancy stuff' ;) ), ATA, DDR, I2S, AC97 mainly.

ATA: OK as long as you don't enable DMA writes (*)

Are DMA Read supported ? ( I mean possible to just use DMA for the reads ? My application is about 95 % reads ;)
What's the performance impact ?

Quoted 8 lines

DDR: OK (use icecube_5200_DDR configuration in U-Boot); the LOWBOOT
option is not working yet (we are working on this)

I2S: simultaneous reading and writing is impossible (*)
AC97: ditto

Ok, not a problem for me I only do audio out.
But just in case, if I do In and Out on different PSC, does this works ?

Quoted 4 lines

(*) to fix these issues we're waiting for a bugfix release of the
BestComm CAPI which might become availabe by mid February.

Cool !

Quoted 10 lines
Quoted 3 lines

- I'd really like to run a 2.6 kernel on it. If it's not yet ported to

Forget it. Why would you want to do that? Which features do you expect from 2.6 which are not available in 2.4?

Well things like *:

-  Pluggable I/O Scheduler
-  Kernel preemption
-  Better IPSec / Encryption support
-  udev stuff ( in fact userspace but may depend on some kernel

interface, have to check. Primarly done for the 2.6 AFAIK )
- Native ALSA

And also because when I start a new project I like to use "new" stuff ;) That's were a majority of new nifty features are ...

(*) I'm not sure they are all only and 2.6 and not backported/already in 2.4, I have to check.

Quoted 7 lines

Our current stuff is on our CVS server, in the linuxppc_2_4_devel tree. As far as the 5200 is concerned this includes stuff that was submitted but not yet added to the linux-2.4-mpc5xxx tree (but Tom promised to add our patches).

I've just downloaded it but ran into a problem when compiling the kernel with the icecube default config.

In arch/ppc/boot/common/misc-simple.c :
- the decompress_kernel routine is used before being defined/declared
- the decompress_kernel defined there takes 3 args, the one used in load_kernel func ( same file ), gives 4 args to it ...

Sylvain Munaut

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#4 lore raw

MPC5200 LOWBOOT problem

In reply to Wolfgang Denk

Wolfgang,

I have seen a remark on problems with the MPC5200 LOWBOOT configuaration in the linuxppc-embedded list:

Quoted 2 lines

DDR: OK (use icecube_5200_DDR configuration in U-Boot); the LOWBOOT
option is not working yet (we are working on this)

I have serached the PPC and U-Boot lists but have not been able to find more info.
What effect does the LOWBOOT problem have? Page allocation error during kernel startup or something else? Any additional information would be very helpful.

Kind regards,

Tord Andersson

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#5 lore raw

Re: MPC5200 LOWBOOT problem

Dear Tord,

Quoted 5 lines · in message <07b501c3e9ca$0f1c89e0$f62d7f3e@emil> you wrote:
Quoted 3 lines

DDR: OK (use icecube_5200_DDR configuration in U-Boot); the LOWBOOT
option is not working yet (we are working on this)

I have serached the PPC and U-Boot lists but have not been able to find more info.

I guess there are not many DDR based MPC5200 boards out there; most people seem to be using the LITE5200, or follow this design closely.

Quoted 1 line

What effect does the LOWBOOT problem have? Page allocation error during kernel startup or something else?

U-Boot does not boot, i. e. nothing goes.

Quoted 1 line

Any additional information would be very helpful.

Actually nothing happened yet. We had some other, higher priority issues to solve. I'll check in the fix to the U-Boot tree as soon as it becomes available.

Best regards,

Wolfgang Denk

--
See us @ Embedded World, Nuremberg, Feb 17 - 19, Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] Hindsight is an exact science.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#6 lore raw

Does anybody know which function can read clock counter of Linux kernel?

Hi!

Does anybody know which function can read clock counter of Linux kernel? I konw "tickGet()" of vxworks can read OS clock counter.

Thanks any commemts!
John

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/