Skip to contentSkip to conversation

Xilinx SystemACE driver for 2.6

DISCUSSION Ameet Patil 7 participants 15 messages Jun 28, 2006 – Jul 6, 2006 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,
I have ported System Ace driver from 2.4 to 2.6. Please post the
patch soon.

-Ameet

#1 lore raw

Hi Ameet,

Your mail is not clear.

Quoted 3 lines · Ameet Patil

Hi,
I have ported System Ace driver from 2.4 to 2.6.

Hope you have ported System Ace Driver from 2.4 to 2.6.

Quoted 3 lines

Please post the patch soon.

Or else you are asking the group for patch to port it. Please make it clear.
I am looking for the same .

Thanks
Sudheer

Quoted 8 lines

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

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

Hi Sudheer,
Sorry, I ate my words there. I meant - I shall soon be posting a
patch that contains my port of the SystemAce driver for 2.6 kernel.

-Ameet

Quoted 32 lines
Quoted 30 lines · sudheer

Hi Ameet,

Your mail is not clear.

Quoted 2 lines · Ameet Patil

Hi,
I have ported System Ace driver from 2.4 to 2.6.

Hope you have ported System Ace Driver from 2.4 to 2.6.

Quoted 3 lines

Please post the patch soon.

Or else you are asking the group for patch to port it. Please make it clear.
I am looking for the same .

Thanks
Sudheer

Quoted 8 lines

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

#4 lore raw

Hi friend,
I have tried your patch for SystemACE. Unfortunately, it looks that I got some problem. I applied the patch and compile the kernel. There are some XPAR_... parameters defination missing. So I include the xpamameters header file( I use the xparameters_ml300 which was generated by EDK and rename it as xparameters_ml403.). Then I compiled out the kernel and change it into .ace file. When I want to boot the kernel from SystemACE, there is no information to say that the linux is booting. So I think the problem is still on the driver of SystemACE. My linux version is 2.6.16-rc5. And I applied the Xilinx Temac patch in it. So could you please give me some detailed guidance on how to successfully apply the driver for SystemACE? Thanks a lot in advance.

Regards
Ming

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn

#5 lore raw

Hi Ming,

Quoted 6 lines · Ming Liu

Hi friend,
I have tried your patch for SystemACE. Unfortunately, it looks that I got some problem. I applied the patch and compile the kernel. There are some XPAR_... parameters defination missing. So I include the xpamameters header file( I use the xparameters_ml300 which was generated by EDK and rename it as xparameters_ml403.).

Do you have a Xilinx ML403 board?

Then I compiled out the kernel and change it into

Quoted 3 lines

.ace file. When I want to boot the kernel from SystemACE, there is no information to say that the linux is booting. So I think the problem is still on the driver of SystemACE.

Does your kernel boot (show messages) without the SystemACE driver? Try that first. It should boot and panic at the point where it tries to find the root fs. Once you have reached this stage, you can then include the SysAce driver.

Quoted 1 line

My linux version is 2.6.16-rc5.

I don't think there is any issue with your kernel version apart from the fact that 2.6.16- series posed considerable problem for me when trying to configure a serial shell. The serial driver is BUGGY. So I use 2.6.17.1 (latest release).

Quoted 2 lines

And I
applied the Xilinx Temac patch in it.

Is it possible for you to send me this Temac patch?

So could you please give me some

Quoted 1 line

detailed guidance on how to successfully apply the driver for SystemACE?

I am in the process of publishing a detailed article/tutorial on compiling 2.6 kernel for the Xilinx MLxxx boards. Will send you the link shortly!

-Ameet

Quoted 12 lines

Thanks a lot in advance.

Regards
Ming

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn

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

#6 lore raw

Hello Ameet,

Quoted 1 line

Do you have a Xilinx ML403 board?

Yes, I have ML403 board. The reason why I rename the xparameters_ml300 as xparameters_ml403 is that EDK generates the driver for ML300(the xparameter header file is xparameters_ml300).

Quoted 4 lines

Does your kernel boot (show messages) without the SystemACE driver? Try that first. It should boot and panic at the point where it tries to find the root fs. Once you have reached this stage, you can then include the SysAce driver.

I did try that. There is also no information. At that time, I guessed that it was because of the missing of SystemACE driver.Do you think is that the problem of others, for example the kernel? Before I use 2.6 version, I have successfully booted a linux 2.4 from CF card.

Quoted 5 lines
Quoted 1 line

My linux version is 2.6.16-rc5.

I don't think there is any issue with your kernel version apart from the fact that 2.6.16- series posed considerable problem for me when trying to configure a serial shell. The serial driver is BUGGY. So I use 2.6.17.1 (latest release).

I use this version only because I want to implement the Temac driver in the link of http://ozlabs.org/pipermail/linuxppc-embedded/2006-March/022365.html It looks that the patches are specific for that version.

Quoted 1 line

Is it possible for you to send me this Temac patch?

http://ozlabs.org/pipermail/linuxppc-embedded/2006-March/022365.html

Quoted 3 lines

I am in the process of publishing a detailed article/tutorial on compiling 2.6 kernel for the Xilinx MLxxx boards. Will send you the link shortly!

I am really waiting for that!

Regards
Ming

Quoted 8 lines
Quoted 8 lines

Thanks a lot in advance.

Regards
Ming

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger:

http://messenger.msn.com/cn

Quoted 5 lines
Quoted 5 lines

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

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn

#7 lore raw
Quoted 10 lines · Ming Liu
Quoted 5 lines
Quoted 1 line

My linux version is 2.6.16-rc5.

I don't think there is any issue with your kernel version apart from the fact that 2.6.16- series posed considerable problem for me when trying to configure a serial shell. The serial driver is BUGGY. So I use 2.6.17.1 (latest release).

I use this version only because I want to implement the Temac driver in the link of
http://ozlabs.org/pipermail/linuxppc-embedded/2006-March/022365.html It looks that the patches are specific for that version.

There is nothing special in the TEMAC driver that binds it to 2.6.16-rc5. The patch was generated against and tested with that kernel version. That's all. The patch will probably not apply cleanly to the more recent kernels. But otherwise it should work.

In other words, feel free to use that TEMAC patch with the recent kernel.

Thanks,
Andrei

#8 lore raw
Quoted 7 lines · Andrei Konovalov
Quoted 6 lines

I use this version only because I want to implement the Temac driver in the link of
http://ozlabs.org/pipermail/linuxppc-embedded/2006-March/022365.html It looks that the patches are specific for that version.

Quoted 7 lines

There is nothing special in the TEMAC driver that binds it to 2.6.16-rc5. The patch was generated against and tested with that kernel version. That's all. The patch will probably not apply cleanly to the more recent kernels. But otherwise it should work.

In other words, feel free to use that TEMAC patch with the recent kernel.

I am trying to get a local link version of the hard TEMAC that is
part of the V4 FX FPGA working against a 2.6 Kernel. Would this be an appropriate patch for that ?
Is it even close ?

There are so many different Xilinx (and other) TEMACs floating
around and so many permutation of those that my head is fogged in.

Signature · 8 lines
Dave Lynch 					  	    DLA Systems
Software Development:  				         Embedded Linux
717.627.3770 	       [email protected] 	  http://www.dlasys.net
fax: 1.253.369.9244 			           Cell: 1.717.587.7774
Over 25 years' experience in platforms, languages, and technologies too numerous to list.

"Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction."
Albert Einstein
#9 lore raw
In reply to Ming Liu

Here is PART I of the article:
http://www.linux.get2knowmore.com/2006/06/30/quick-guide-linux-26-on-xilinx-virtex-ii-pro-boards-part-i/

Let me know if you get messages at boot time after following the above...

PART II we be posted shortly!

-Ameet

Quoted 59 lines · Ming Liu

Hello Ameet,

Quoted 1 line

Do you have a Xilinx ML403 board?

Yes, I have ML403 board. The reason why I rename the xparameters_ml300 as xparameters_ml403 is that EDK generates the driver for ML300(the xparameter header file is xparameters_ml300).

Quoted 4 lines

Does your kernel boot (show messages) without the SystemACE driver? Try that first. It should boot and panic at the point where it tries to find the root fs. Once you have reached this stage, you can then include the SysAce driver.

I did try that. There is also no information. At that time, I guessed that it was because of the missing of SystemACE driver.Do you think is that the problem of others, for example the kernel? Before I use 2.6 version, I have successfully booted a linux 2.4 from CF card.

Quoted 5 lines
Quoted 1 line

My linux version is 2.6.16-rc5.

I don't think there is any issue with your kernel version apart from the fact that 2.6.16- series posed considerable problem for me when trying to configure a serial shell. The serial driver is BUGGY. So I use 2.6.17.1 (latest release).

I use this version only because I want to implement the Temac driver in the link of
http://ozlabs.org/pipermail/linuxppc-embedded/2006-March/022365.html It looks that the patches are specific for that version.

Quoted 1 line

Is it possible for you to send me this Temac patch?

http://ozlabs.org/pipermail/linuxppc-embedded/2006-March/022365.html

Quoted 3 lines

I am in the process of publishing a detailed article/tutorial on compiling 2.6 kernel for the Xilinx MLxxx boards. Will send you the link shortly!

I am really waiting for that!

Regards
Ming

Quoted 8 lines
Quoted 8 lines

Thanks a lot in advance.

Regards
Ming

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger:

http://messenger.msn.com/cn

Quoted 5 lines
Quoted 5 lines

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

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn

#10 lore raw
Quoted 4 lines · Ameet Patil

Here is PART I of the article:
http://www.linux.get2knowmore.com/2006/06/30/quick-guide-linux-26-on-xilinx-virtex-ii-pro-boards-part-i/

Let me know if you get messages at boot time after following the above...

Quick comment on your article; unless you're using a microdrive; *PLEASE* don't recommend using compact flash as swap space. Flash technology has limited write cycles (on the order of 100k to 1M cycles per block). Using it as swap is a great way to kill the lifecycle of your device.

(the ML300 ships with a microdrive; the ML40x ships with a regular CF card)

I know the previous article also recommends a swap partition, but Linux will happily run without swap.

Cheers,
g.

Signature · 4 lines
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
[email protected]
(403) 399-0195
#11 lore raw

Yes. I noticed that in the original demo Linux of MontaVista shipped by Xilinx for ML403, there is no swap partition.

Regards
Ming

Quoted 24 lines

From: "Grant Likely" <[email protected]>
To: "Ameet Patil" <[email protected]>
CC: "Ming Liu" <[email protected]>, [email protected]
Subject: Re: Xilinx SystemACE driver for 2.6
Date: Fri, 30 Jun 2006 14:02:28 -0600

Quoted 5 lines · Ameet Patil

Here is PART I of the article:
http://www.linux.get2knowmore.com/2006/06/30/quick-guide-linux-26-on-xilinx-virtex-ii-pro-boards-part-i/

Let me know if you get messages at boot time after following the above...

Quick comment on your article; unless you're using a microdrive; *PLEASE* don't recommend using compact flash as swap space. Flash technology has limited write cycles (on the order of 100k to 1M cycles per block). Using it as swap is a great way to kill the lifecycle of your device.

(the ML300 ships with a microdrive; the ML40x ships with a regular CF card)

I know the previous article also recommends a swap partition, but Linux will happily run without swap.

Quoted 8 lines

Cheers,
g.

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

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn

#12 lore raw
In reply to Grant Likely

Hi Grant,
I totally agree with you. What you say is correct. It will
definitely kill the CF card. I use a XUPV2PRO board which doesn't come with a microdrive and for my research SWAP is a must. :-)

However, I shall add a NOTE in the article mentioning the same.

Thanks a lot,
-Ameet

Quoted 21 lines · Grant Likely
Quoted 5 lines · Ameet Patil

Here is PART I of the article:
http://www.linux.get2knowmore.com/2006/06/30/quick-guide-linux-26-on-xilinx-virtex-ii-pro-boards-part-i/

Let me know if you get messages at boot time after following the above...

Quick comment on your article; unless you're using a microdrive; *PLEASE* don't recommend using compact flash as swap space. Flash technology has limited write cycles (on the order of 100k to 1M cycles per block). Using it as swap is a great way to kill the lifecycle of your device.

(the ML300 ships with a microdrive; the ML40x ships with a regular CF card)

I know the previous article also recommends a swap partition, but Linux will happily run without swap.

Cheers,
g.

#13 lore raw

Xilinx BSP for linux 2.6

In reply to Ameet Patil

Dear Ameet,
Now I am using your patch for SystemACE in Linux 2.6. My linux version is 2.6.16-rc5 and I have applied the patch for SystemACE and Temac.

When I generate BSP in EDK, how can I implement it in my linux kernel? I know the EDK BSP is for Linux 2.4 and the directory stucture is the same as 2.4(e.g. arch/ppc/platform/xilinx_ocp/......) But in 2.6, the directory tree is different and I cannot simply copy and replace the original files there. Also, there is a file called xparameters_ml403.h in Linux kernel but in BSP there is only xparameters_ml300.h. Shall I rename the xparameters_ml300 as ml403, or configure the board as ml300 in menuconfig? In these xparameters files, the peripheral addresses are defined. How can I include these xparameters defination in the kernel? It looks complicate and you didn't mention how to replace these files in your article. So if you can provide some guidance, I will appreciate a lot because it will save me much time.

By the way, I am still waiting for the last part of your article. Where are they? :)

Thanks for your help.

Regards
Ming

_________________________________________________________________
享用世界上最大的电子邮件系统— MSN Hotmail。 http://www.hotmail.com

#14 lore raw

Re: Xilinx BSP for linux 2.6

Hi Ming,
I DONOT have a ML403 with me. But does Xilinx EDK generate
xparameters_ml300.h in the BSP instead of xparameters_ml403.h for the ML403 board?

Anyway, for linux 2.6 theres no xilinx_ocp directory in the code tree. You need to just copy the xparameters_ml300.h file (if that is what xilinx EDK generates) as xparameters_ml403.h in arch/ppc/platforms/4xx/xparameters/ folder. Configure the kernel as ML403.

Like I said to you before, if you want to get started quickly and without much headache.. then please go step-by-step. Try the things I mention in the article PART I without applying any patches.

http://www.linux.get2knowmore.com/2006/06/30/quick-guide-linux-26-on-xilinx-virtex-ii-pro-boards-part-i/

Then if your kernel boots and shows some messages, it would be much easier to relate to problems after applying patches.

Please DONOT hesitate to ask further clarifications!

-Ameet

Quoted 26 lines · Ming Liu

Dear Ameet,
Now I am using your patch for SystemACE in Linux 2.6. My linux version is 2.6.16-rc5 and I have applied the patch for SystemACE and Temac. When I generate BSP in EDK, how can I implement it in my linux kernel? I know the EDK BSP is for Linux 2.4 and the directory stucture is the same as 2.4(e.g. arch/ppc/platform/xilinx_ocp/......) But in 2.6, the directory tree is different and I cannot simply copy and replace the original files there. Also, there is a file called xparameters_ml403.h in Linux kernel but in BSP there is only xparameters_ml300.h. Shall I rename the xparameters_ml300 as ml403, or configure the board as ml300 in menuconfig? In these xparameters files, the peripheral addresses are defined. How can I include these xparameters defination in the kernel? It looks complicate and you didn't mention how to replace these files in your article. So if you can provide some guidance, I will appreciate a lot because it will save me much time.
By the way, I am still waiting for the last part of your article. Where are they? :)

Thanks for your help.

Regards
Ming

_________________________________________________________________
享用世界上最大的电子邮件系统— MSN Hotmail。 http://www.hotmail.com

#15 lore raw
In reply to Ameet Patil

Here is the patch containing the SysAce driver for 2.6 Linux kernel.

http://www.cs.york.ac.uk/rtslab/demos/amos/xupv2pro/patches/linuxppc-2.6.17_sysace.patch

Please test it and let me know in case of any issues!

cheers,
-Ameet

Quoted 10 lines · Ameet Patil

Hi,
I have ported System Ace driver from 2.4 to 2.6. Please post the
patch soon.

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