Skip to contentSkip to conversation

PXA270 support

U-Boot-Users Detlef Vollmann 3 participants 7 messages Mar 11, 2005 – Mar 30, 2005

lore
Share & tools
lore
#0 lore raw

Hello,

has anybody tried to port u-boot to a PXA270 based board? I just started with lifting the startup code from Intel's blob into u-boot, and with a little work made it compile and link. But (of course) it is not that easy: it doesn't work :-(

Before I now start the long debugging sessions I just thought I'd try the list. Maybe somebody has something working for a PXA27x.

Any hints welcome
Detlef

Signature · 2 lines
Detlef Vollmann   vollmann engineering gmbh
Linux and C++ for Embedded Systems    http://www.vollmann.ch/
#1 lore raw
Quoted 7 lines · Detlef Vollmann

Hello,

has anybody tried to port u-boot to a PXA270 based board? I just started with lifting the startup code from Intel's blob into u-boot, and with a little work made it compile and link. But (of course) it is not that easy: it doesn't work :-(

Quoted 7 lines

Before I now start the long debugging sessions I just thought I'd try the list. Maybe somebody has something working for a PXA27x.

Any hints welcome
Detlef

Attached is a patch from

http://sourceforge.net/mailarchive/message.php?msg_id=10171505

Also see this prerequisite:

http://sourceforge.net/mailarchive/message.php?msg_id=10171504

And this if you need MMC to work with the PXA27x.

http://sourceforge.net/mailarchive/message.php?msg_id=10171504
-------------- next part --------------
A non-text attachment was scrubbed...
Name: adsvix.diff.gz
Type: application/gzip
Size: 9915 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20050311/f5836f5e/attachment.bin

#2 lore raw
Quoted 6 lines · Robert Whaley
Quoted 1 line · Detlef Vollmann

has anybody tried to port u-boot to a PXA270 based board?

Attached is a patch from

http://sourceforge.net/mailarchive/message.php?msg_id=10171505

Great. Thanks, having this it was quite easy to port to my board.

But I have one question left: in your config file adsvix.h, you have
#define CFG_HZ 3686400
but the external clock for a PXA27x should be 13MHz. I used the same value as you, and it works fine, but what clock is that (or is it ignored)?

Detlef

Signature · 2 lines
Detlef Vollmann   vollmann engineering gmbh
Linux and C++ for Embedded Systems    http://www.vollmann.ch/
#3 lore raw

Hi Detlef,

Try timing the sleep command. Is it accurate? Take a look at cpu/pxa/interrupts.c.

I believe the CFG is correct in the patch (but I haven't looked at this for a while). If you think it needs to be changed after checking sleep and udelay, please let me know!

Robert

Quoted 22 lines · Detlef Vollmann
Quoted 7 lines · Robert Whaley
Quoted 1 line · Detlef Vollmann

has anybody tried to port u-boot to a PXA270 based board?

Attached is a patch from

http://sourceforge.net/mailarchive/message.php?msg_id=10171505

Great. Thanks, having this it was quite easy to port to my board.

But I have one question left: in your config file adsvix.h, you have
#define CFG_HZ 3686400
but the external clock for a PXA27x should be 13MHz. I used the same value as you, and it works fine, but what clock is that (or is it ignored)?

Detlef

#4 lore raw

Sorry that this reply took so long...

Quoted 5 lines · Robert Whaley

Try timing the sleep command. Is it accurate? Take a look at cpu/pxa/interrupts.c.

I believe the CFG is correct in the patch (but I haven't looked at this for a while).

Yes, you're correct. I tested it and checked it against the specification.

As for the high value of CFG_HZ: yes, while testing I also had overflow troubles. But as the relevant function is in CPU support and not in board support, it's not possible to change it without breaking all the boards based on this CPU. To avoid the overflow problem, it might help to add a mdelay() and maybe even sleep() function.

Detlef

Signature · 2 lines
Detlef Vollmann   vollmann engineering gmbh
Linux and C++ for Embedded Systems    http://www.vollmann.ch/
#5 lore raw
Quoted 5 lines · In message <[email protected]> you wrote:

As for the high value of CFG_HZ: yes, while testing I also had overflow troubles. But as the relevant function is in CPU support and not in board support, it's not possible to change it without breaking all the boards based on this CPU.

Ummm... changing it means _fixing_ it for all boards.

Quoted 2 lines

To avoid the overflow problem, it might help to add a mdelay() and maybe even sleep() function.

No, this is completely unacceptable.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Forty two.
#6 lore raw
In reply to Detlef Vollmann
Quoted 5 lines · In message <[email protected]> you wrote:

But I have one question left: in your config file adsvix.h, you have
#define CFG_HZ 3686400
but the external clock for a PXA27x should be 13MHz.

Note: this is BROKEN.

CFG_HZ should be 1000 on all boards. it has NOTHING to do with any clock frequencies of your baord or processor (yes, I know that quite a lot of boards are broken this way).

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Why is an average signature file longer than an average Perl script??