Skip to contentSkip to conversation

Source of xparameter_ml300.h

DISCUSSION Grant Likely 3 participants 4 messages Aug 23, 2005 – Sep 28, 2005

lore
Share & tools
lore
#0 lore raw

Does anyone know the origin of xparameter_ml300.h? The Xilinx EDK generates an xparameters.h file for each design, but the structure of the file changes between releases.

I want to know if xparameters_ml300.h is the exact output produced by EDK or if stuff was changed before it was submitted to the mainline tree. (ie. all the stuff under the "linux redefines" comment block)

Also, where can I get the bitstream/systemace file that matches xparameters_ml300.h? I've got a custom ml300 image that I'm regression testing against, but I'd like to also test against some form of 'stock' image. :)

Thanks,
g.

#1 lore raw
Quoted 7 lines · Grant Likely

Does anyone know the origin of xparameter_ml300.h? The Xilinx EDK generates an xparameters.h file for each design, but the structure of the file changes between releases.

I want to know if xparameters_ml300.h is the exact output produced by EDK or if stuff was changed before it was submitted to the mainline tree. (ie. all the stuff under the "linux redefines" comment block)

EDK can also generate the "Linux BSP".
In this case EDK uses the scripts from (depending on your setup) /opt/xilinx/edk/7.1/sw/ThirdParty/bsp/linux_v2_00_b/data/ In particular, linux_v2_1_0.tcl adds those "linux redefines" and renames xparameters.h to xparameters_ml300.h.

Quoted 2 lines

Also, where can I get the bitstream/systemace file that matches xparameters_ml300.h?

The most reliable way is to generate both (bitstream and xparameters_ml300.h) by yourself. :)

But if you are speaking about the xparameters_ml300.h in the community trees (linuxppc-2.4 and the 2.6 one from kernel.org), this file is for the reference design by Xilinx:

http://www.xilinx.com/ise/embedded/edk6_2docs/ml300_edk3.zip

Quoted 6 lines

I've got a custom ml300 image that I'm regression
testing against, but I'd like to also test against some form of 'stock' image. :)

Thanks,
g.

Thanks,
Andrei

#2 lore raw
Quoted 10 lines · Andrei Konovalov
Quoted 3 lines · Grant Likely

I want to know if xparameters_ml300.h is the exact output produced by EDK or if stuff was changed before it was submitted to the mainline tree. (ie. all the stuff under the "linux redefines" comment block)

EDK can also generate the "Linux BSP".
In this case EDK uses the scripts from (depending on your setup) /opt/xilinx/edk/7.1/sw/ThirdParty/bsp/linux_v2_00_b/data/ In particular, linux_v2_1_0.tcl adds those "linux redefines" and renames xparameters.h to xparameters_ml300.h.

Ahh; I've been using the standalone option. I didn't know about the tcl script.

Quoted 6 lines
Quoted 3 lines

Also, where can I get the bitstream/systemace file that matches xparameters_ml300.h?

The most reliable way is to generate both (bitstream and xparameters_ml300.h) by yourself. :)

That's how I've gotten as far as I have :)

Quoted 6 lines

But if you are speaking about the xparameters_ml300.h in the community trees (linuxppc-2.4 and the 2.6 one from kernel.org), this file is for the reference design by Xilinx:

http://www.xilinx.com/ise/embedded/edk6_2docs/ml300_edk3.zip

Thanks!
g.

#3 lore raw
In reply to Andrei Konovalov

Please have a look at XAPP765 (http://direct.xilinx.com/bvdocs/appnotes/xapp765.pdf) and the EDK documentation to see how this works. The latest MLD to create a BSP for a linuxppc-2.4 kernel is linuxppc_mvl31_v1_01_a. linuxppc_mvl31_v1_00_a works too but everything else is not up-to-date.

The documentation and tutorials for the ML310 board are also an excellent source of information how to get a Linux kernel up and running on Virtex-II Pro (see http://www.xilinx.com/ml310).

The reference design for the ML403 is yet another source of information (http://www.xilinx.com/ml403). Have a look at the reference design users guide.

Using the MLD (tcl script) is much less error-prone than any other method that involves changing the files by hand. It's a little bit of a learning curve but once mastered it just works.

- Peter

Quoted 47 lines · Andrei Konovalov
Quoted 7 lines · Grant Likely

Does anyone know the origin of xparameter_ml300.h? The Xilinx EDK generates an xparameters.h file for each design, but the structure of the file changes between releases.

I want to know if xparameters_ml300.h is the exact output produced by EDK or if stuff was changed before it was submitted to the mainline tree. (ie. all the stuff under the "linux redefines" comment block)

EDK can also generate the "Linux BSP".
In this case EDK uses the scripts from (depending on your setup) /opt/xilinx/edk/7.1/sw/ThirdParty/bsp/linux_v2_00_b/data/ In particular, linux_v2_1_0.tcl adds those "linux redefines" and renames xparameters.h to xparameters_ml300.h.

Quoted 2 lines

Also, where can I get the bitstream/systemace file that matches xparameters_ml300.h?

The most reliable way is to generate both (bitstream and xparameters_ml300.h) by yourself. :)

But if you are speaking about the xparameters_ml300.h in the community trees (linuxppc-2.4 and the 2.6 one from kernel.org), this file is for the reference design by Xilinx:

http://www.xilinx.com/ise/embedded/edk6_2docs/ml300_edk3.zip

Quoted 6 lines

I've got a custom ml300 image that I'm regression
testing against, but I'd like to also test against some form of 'stock' image. :)

Thanks,
g.

Thanks,
Andrei

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