Skip to contentSkip to conversation

uboot and ppc405

DISCUSSION grave 5 participants 9 messages Oct 25, 2004 – Oct 26, 2004

lore
Share & tools
lore

grave

author
#0 lore raw

Hi,

We re starting a disign with xilinx chip Virtex II pro and I wonder the =20 typical size of an uboot binary. This is for our electronician disigner =20 in order to dimension the prom and so on...

Any hint welcome,

Thanks in advance, xavier grave

#1 lore raw
Quoted 3 lines · grave

We re starting a disign with xilinx chip Virtex II pro and I wonder the typical size of an uboot binary. This is for our electronician disigner in order to dimension the prom and so on...

It might be worth asking your electronics people whether they're going to use the Xilinx SysACE chip in your hardware design. If this is the case then you can program the Virtex and load in the kernel and bootloader from Compact Flash. I don't know whether uboot supports this out of the box since I wrote my own Virtex II bootloader, but it should be quite doable.

Certainly you really want to avoid PROMs in the design if at all possible - with our design it's possible for us to swap out a CF and in one step replace all hardware and software, upgrading is a case of sending the customer a loopback mountable filesystem which reloads the CF after the customer downloads the "firmware update" via a web page.

Cheers,

Jon.

#2 lore raw
In reply to grave

Hi,

please have a look at "Getting started with U-Boot and ML300" http://www.xilinx.com/bvdocs/appnotes/xapp542.pdf that describes how to use U-Boot with Xilinx Virtex-II Pro devices.

You might also want to have a look at the README.ml300 in the u-boot source tree that provides a quick start.

- Peter

Quoted 13 lines · grave

Hi,

We re starting a disign with xilinx chip Virtex II pro and I wonder the typical size of an uboot binary. This is for our electronician disigner in order to dimension the prom and so on...

Any hint welcome,

Thanks in advance, xavier grave

_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

#8 lore raw
In reply to grave
Quoted 4 lines · In message <1098701468l.31592l.0l@ipnnarval> you wrote:

We re starting a disign with xilinx chip Virtex II pro and I wonder the =20 typical size of an uboot binary. This is for our electronician disigner =20 in order to dimension the prom and so on...

Depending on your configuration (selected features) U-Boot typically needs 100...240 kB of flash memory. If you reseve 256 kB in flash you should have no problems.

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
"More software projects have gone awry for lack of calendar time than
for all other causes combined."
                         - Fred Brooks, Jr., _The Mythical Man Month_
#3 lore raw
In reply to Peter Ryser
Quoted 3 lines · Peter Ryser

please have a look at "Getting started with U-Boot and ML300"
http://www.xilinx.com/bvdocs/appnotes/xapp542.pdf that describes how to use U-Boot with Xilinx Virtex-II Pro devices.

This appnote assumes that he's using the ML300, has the Montavista tree, and a few other general assumptions that might well not be true here, but is otherwise interesting if they decide to heed our suggestions of using the SystemACE in the design.

btw Peter, I've been moaning about the weird interrupt behaviour of the SysACE on e.g. the Memec board for some time (see archives for various other people's experiences too) - and I've spoken to several folks at Xilinx without getting very far. If there's a fundamental problem then it probably makes sense for us to help get it fixed.

Cheers,

Jon.

#4 lore raw
Quoted 6 lines

This appnote assumes that he's using the ML300, has the Montavista tree, and a few other general assumptions that might well not be true here, but is otherwise interesting if they decide to heed our suggestions of using the SystemACE in the design.

The app note concentrates on one example, however, it is generic enough and applies to different setups. The MontaVista Linux preview kit for the ML300 is free but you can use other distributions if you wish to do so. The only thing you need for u-boot is the PowerPC cross-compiler. You can use the cross-compiler that ships with EDK, however, I do not recommend it as it is set up for a different environment than for Linux and/or U-Boot and it will expect files like boot.o and libxil.a...

Other boards than the ML300 can be used, too. If you look at the repository layout in U-Boot there is space for other boards than the ML300. I'm sure Wolfgang will appreciate contributions and ports to different boards.

Quoted 6 lines

btw Peter, I've been moaning about the weird interrupt behaviour of the SysACE on e.g. the Memec board for some time (see archives for various other people's experiences too) - and I've spoken to several folks at Xilinx without getting very far. If there's a fundamental problem then it probably makes sense for us to help get it fixed.

Hmm, I'm not aware of any interrupt problems with System ACE CF. For Linux it works for a long time unchanged as published in the linuxppc_2_4_devel and linuxppc-2.4 repositories. I'm operating my own web and mail server on a V2P based board using a 1GB MicroDrive through System ACE CF as the root and swap filesystems. The system is up and running for months now. No special tricks or hacks just a straight-forward EDK FPGA design with a MVL kernel.

There is now a MVL preview kit for the Memec board. You might want to try it out and see whether the problems you observe persist.

Looking at the postings back in April I can only say that I never saw any similar problems. Please let me know if you have a specific test case where you see problems and I'll be glad to look at it.

The implementation of System ACE CF functionality in U-Boot is written for polled operation. In that case Stephen Williams wrote the actual driver and we decided not to publish our own driver but reuse his.

- Peter

#5 lore raw

On Mon, 25 Oct 2004 22:39:30 -0700, Peter Ryser <[email protected]> wrote:

jcm>> btw Peter, I've been moaning about the weird interrupt behaviour of jcm>> the SysACE on e.g. the Memec board for some time (see archives for jcm>> various other people's experiences too) - and I've spoken to several jcm>> folks at Xilinx without getting very far. If there's a fundamental jcm>> problem then it probably makes sense for us to help get it fixed.

Quoted 1 line

Hmm, I'm not aware of any interrupt problems with System ACE CF.

It issues an extra interrupt after each sector write on our hardware, in what seems to be a reasonably reproducible but not entirely predictable fashion. This is after the interrupt we expect to get on sector completion - it causes the Monta driver to go belly up because it has no handling to check for interrupt on QUEUE_EMPTY or similar error conditions.

I have every confidence that it works on the ML300, just not on other boards, including both the Memec board and our in house prototypes. Since it's not a major issue right now to have good performance from the SysACE (just a reliable driver), I've created the patch I posted previously to use polled IO instead.

Quoted 2 lines

There is now a MVL preview kit for the Memec board. You might want to try it out and see whether the problems you observe persist.

Is this the one which doesn't actually use the SystemACE for a filesystem?

Quoted 2 lines

Looking at the postings back in April I can only say that I never saw any similar problems.

Others have done so. I'll check with the hardware guys and see if I can't send you a simple hardware case that falls over at some point - I'm slightly constrained to release hardware designs and so on until after this thing is ready to ship.

Quoted 3 lines

The implementation of System ACE CF functionality in U-Boot is written for polled operation. In that case Stephen Williams wrote the actual driver and we decided not to publish our own driver but reuse his.

So it probably doesn't use the Xilinx HAL, that can only be a good thing :-)

Jon.

#6 lore raw
Quoted 4 lines

I have every confidence that it works on the ML300, just not on other boards, including both the Memec board and our in house prototypes.

My web and mail server runs on a Memec board. I've seen our and customer boards up and running for extended periods of time without any problems with regard to System ACE CF.

Quoted 7 lines
Quoted 4 lines

There is now a MVL preview kit for the Memec board. You might want to try it out and see whether the problems you observe persist.

Is this the one which doesn't actually use the SystemACE for a filesystem?

System ACE CF can be turned on in the kernel configuration. Making a root filesystem on the CF or MD is straight forward.

Quoted 10 lines
Quoted 4 lines

Looking at the postings back in April I can only say that I never saw any similar problems.

Others have done so. I'll check with the hardware guys and see if I can't send you a simple hardware case that falls over at some point - I'm slightly constrained to release hardware designs and so on until after this thing is ready to ship.

Ok, that's a plan. When you are ready please file a web case and mention my name so that the problem resolution gets tracked properly.

- Peter

#7 lore raw
In reply to Peter Ryser
Quoted 7 lines · Peter Ryser
Quoted 6 lines

btw Peter, I've been moaning about the weird interrupt behaviour of the SysACE on e.g. the Memec board for some time (see archives for various other people's experiences too) - and I've spoken to several folks at Xilinx without getting very far. If there's a fundamental problem then it probably makes sense for us to help get it fixed.

Hmm, I'm not aware of any interrupt problems with System ACE CF. For Linux it works for a long time unchanged as published in the linuxppc_2_4_devel and linuxppc-2.4 repositories. I'm operating my own web and mail server on a V2P based board using a 1GB MicroDrive through System ACE CF as the root and swap filesystems. The system is up and running for months now. No special tricks or hacks just a straight-forward EDK FPGA design with a MVL kernel.

The SystemACE in the linuxppc-2.4 kernel works fine for me on our JSE board. We keep a lightly used ext3 partition for root, and a FAT partition in the beginning for boot and ACE files. The Xilinx HAL, though ugly as sin, has not given us trouble.

We use a PPC405GPr with the SystemACE connected to a peripheral bus. No VIIPro here. this is surely different from the ML300, yet it works.

Signature · 4 lines
Steve Williams                "The woods are lovely, dark and deep.
steve at icarus.com           But I have promises to keep,
http://www.icarus.com         and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."