Skip to contentSkip to conversation

Xilinx Virtex-2 PRO FPGA ppc 405 on ML310 board

DISCUSSION Vincent Winstead 3 participants 9 messages Apr 11, 2006 – Apr 18, 2006 3 messages not in the archive

lore
Share & tools
lore
#0 lore raw

I'm having a real difficulty trying to get linux onto this board. So I'm finally turning to the community for help. The only people that have documented their approach to putting open source linux onto the ML310 board have used bitkeeper to download the kernel for the project, but bitkeeper isn't used any more is it? I've been going straight to kernel.org and getting kernels from there and crosscompiling them on my machine to be transported to the ppc core on the ML310. Is this wrong? Is there a patch or some kernel source that I don't know about for PPC? Thanks!

-Vincent

#1 lore raw
Quoted 4 lines · Vincent Winstead

I'm having a real difficulty trying to get linux onto this board. So I'm finally turning to the community for help. The only people that have documented their approach to putting open source linux onto the ML310 boa=

rd

Quoted 4 lines

have used bitkeeper to download the kernel for the project, but bitkeeper isn't used any more is it? I've been going straight to kernel.org and getting kernels from there and crosscompiling them on my machine to be transported to the ppc core on the ML310. Is this wrong? Is there a pat=

ch

Quoted 1 line

or some kernel source that I don't know about for PPC? Thanks!

Are you using 2.4 or 2.6?

Support for the ML300 & ML403 is in the mainline 2.6 git tree. As long as you've got an xparameters.h file for your FPGA bitstream, you should be able to port a 2.6 kernel really easily.

If you want to use 2.4, you can pull the linuxppc rsync mirror which has ML300 support in it.

http://www.penguinppc.org/kernel/ (Look at the very bottom of the page for the RSYNC mirror)

Cheers,
g.

--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
(403) 399-0195

#3 lore raw
In reply to a message not in the archive
Quoted 9 lines · Vincent Winstead

Thanks for the info! Now I installed rsync onto this computer with configure, then make, then make install and everything seemed to install correctly. Then i typed in:

rsync rsync://source.mvista.com/linuxppc-2.4

but it ended up showing a timed-out error message:

rsync: failed to connect to source.mvista.com: Connection timed out (110=

)

Quoted 1 line

rsync error: error in socket IO (code 10) at clientserver.c(107) [receiv=

er]

Quoted 2 lines

Now, I've had problems in the past in that I can't access any ftp server=

s

Quoted 1 line

due to the fact that I am behind a firewall that I have no control over (=

on

Quoted 1 line

the University of Minnesota campus) and I was wondering - do you think th=

is

Quoted 1 line

might be related to that same problem?

You poor sod. Yes, this is probably the same problem. You can access it via http instead. (the git trees on kernel.org can be accessed with rsync, http and git protocols.)

BTW, you need to download and install git also (and cogito for a nicer front end).

http://git.or.cz/

Then you can do a "cg clone <depot>" to get the tree

g.

--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
(403) 399-0195

#5 lore raw
In reply to a message not in the archive

Please remember to CC the mailing list when replying

Quoted 2 lines · Vincent Winstead

Now, what does that mean, to get the tree. Does it mean I'll get a li=

st

Quoted 1 line

of possible kernels that I can download, and then i'll have to choose one=

of

Quoted 1 line

them to download?

It means you get a clone of the source tree + revision history which you can easily keep up to date with mainline. For things like Paul's powerpc and powerpc-merge trees, you need to use it because I don't think anybody is making .tar.gz snapshots from it.

Quoted 2 lines

Also, how come I have to go through all this 'git' mumbo-jumbo? Why
can't I just go to kernel.org and grab one of the 2.6 kernels off of ther=

e,

Quoted 2 lines

then untar it? What's so special about the source.mvista.com kernels through git and rsync?

If you want to use 2.6: Git is a pretty easy way to keep up to date with changes other are making on the tree. But no, you don't have to use it. Some of the maintainers have snapshots generated from their trees which you can download.

If you use 2.4: You need to use rsync to get the linuxppc-2.4 tree because I don't think anyone is maintaining .tar.gz of the rsync snapshot. Email Tom Rini and ask him. The linuxppc-2.4 tree is special because it's one of the trees that actually has the ML300 patches integrated. Mainline does not.

Quoted 6 lines

--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
(403) 399-0195

--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
(403) 399-0195

#7 lore raw
In reply to a message not in the archive
Quoted 2 lines · Vincent Winstead

Very Interesting. Now I know what they were talking about on the sites t=

hat

Quoted 1 line

go through how to install the linux kernel onto the ML300. because in th=

ose

Quoted 1 line

method walk-throughs they show which options you should choose when doin=

g a

Quoted 1 line

"make menuconfig" and there are specific ones regarding Xilinx but I neve=

r

Quoted 6 lines

saw these when doing configurations of what you call mainline versions of the linux kernel.

So, when you say that the "The linuxppc-2.4 tree is
special because it's one of the trees that actually has the ML300 patches integrated", are you implying that you could put these patches in=

to

Quoted 1 line

the system on your own if you wanted to?

Of course you can

Quoted 2 lines

You're not talking about the board
support package are you?

As far as you can apply the concept of BSP to Linux; yes I am. The patches provide the code required to work on an ML300 ref design... drivers and initialization code specifically

g.

--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
(403) 399-0195

#8 lore raw
Quoted 5 lines · Grant Likely
Quoted 3 lines · Vincent Winstead

So, when you say that the "The linuxppc-2.4 tree is
special because it's one of the trees that actually has the ML300 patches integrated", are you implying that you could put these patches =

into

Quoted 3 lines
Quoted 1 line

the system on your own if you wanted to?

Of course you can

(assuming of course you can find copies of the patch files)

--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
(403) 399-0195

#9 lore raw
In reply to Grant Likely
Quoted 6 lines · Grant Likely

If you use 2.4: You need to use rsync to get the linuxppc-2.4 tree because I don't think anyone is maintaining .tar.gz of the rsync snapshot. Email Tom Rini and ask him. The linuxppc-2.4 tree is special because it's one of the trees that actually has the ML300 patches integrated. Mainline does not.

For 2.4, I've had good success on two different boards using the v2pro and virtex4 parts with:

http://www.itee.uq.edu.au/~pml/uclinux_powerpc/

The kernel tarball there has support for various xilinx supplied peripheral cores..

The neat thing about this approach is that there is a uclinux BSP for the EDK that is used to generate an auto-config.in file which you then drop directly into the linux kernel tree.

Even though it is about the microblaze rather than the PPC, a helpful "getting started" document is:
http://www.itee.uq.edu.au/~wu/downloads/uClinux_ready_Microblaze_design.pdf

- aidan

#10 lore raw

OK - I think i'm on a roll now. I downloaded the necessary files for the uClinux distribution. Two questions:

1. I'm having a problem with two steps
Step 5. In your uClinux-dist directory, create a symbolic link called linux-2.4.x which points to the linuxppc-2.4 directory (linux-2.4.x -> ../linuxppc-2.4). Step 6. Ensure that you have the latest uClinux EDK Board Support Package installed (version 1.00d or later is required).

Now, as far as step 5, am I supposed to have a symbolic link that is named linux-2.4.x placed into the uClinux-dist directory? Because there's already a folder named linux-2.4.x which was in there already when I untarred everything. At the command prompt in the uClinux-dist directory I entered the following line:

ln -s ../linuxppc-2.4 linux-2.4.x

and the result of this operation was to put a symbolic link into my linuxppc-2.4 directory with the name of linux-2.4.x - is this correct?

Now on to Step 6 problem.
How am I supposed to make use uClinux EDK Board Support Package 1.0 files? I'm not sure how to go about using them in the Xilinx Platform Studio in order to generate the necessary auto-config.in file.

-Vincent

Aidan Williams <[email protected]> wrote:

Quoted 6 lines · Grant Likely

If you use 2.4: You need to use rsync to get the linuxppc-2.4 tree because I don't think anyone is maintaining .tar.gz of the rsync snapshot. Email Tom Rini and ask him. The linuxppc-2.4 tree is special because it's one of the trees that actually has the ML300 patches integrated. Mainline does not.

For 2.4, I've had good success on two different boards using the v2pro and virtex4 parts with:

http://www.itee.uq.edu.au/~pml/uclinux_powerpc/

The kernel tarball there has support for various xilinx supplied peripheral cores..

The neat thing about this approach is that there is a uclinux BSP for the EDK that is used to generate an auto-config.in file which you then drop directly into the linux kernel tree.

Even though it is about the microblaze rather than the PPC, a helpful "getting started" document is:
http://www.itee.uq.edu.au/~wu/downloads/uClinux_ready_Microblaze_design.pdf

- aidan

#11 lore raw
Quoted 6 lines · Vincent Winstead

Now, as far as step 5, am I supposed to have a symbolic link that is named linux-2.4.x placed into the uClinux-dist directory? Because there's already a folder named linux-2.4.x which was in there already when I untarred everything. At the command prompt in the uClinux-dist directory I entered the following line:

ln -s ../linuxppc-2.4 linux-2.4.x

and the result of this operation was to put a symbolic link into my linuxppc-2.4 directory with the name of linux-2.4.x - is this correct?

First, you'll need to move the existing directory aside using a command like:

mv linux-2.4.x linux-2.4.x-dist

and then re-run the ln -s command above.

Quoted 4 lines

Now on to Step 6 problem.
How am I supposed to make use uClinux EDK Board Support Package 1.0
files? I'm not sure how to go about using them in the Xilinx Platform Studio in order to generate the necessary auto-config.in file.

See the document below for the general approach:

Quoted 4 lines

Even though it is about the microblaze rather than the PPC, a helpful "getting started" document is:
http://www.itee.uq.edu.au/~wu/downloads/uClinux_ready_Microblaze_design.pdf

Look particularly at the section "Software Platform Settings" on page 29, steps 67,68.

If you are not overly familiar with the EDK, it would be best to find someone locally who can help walk you through the process of generating a system.

- aidan

--------------------------------------------------------------------------
This email and any attachments may be confidential. They may contain legally privileged information or copyright material. You should not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. This notice should not be removed.