UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor tiebingzhang
Visitor
6,721 Views
Registered: ‎07-28-2011

ML507 System ACE Linux Driver initialization fails

Jump to solution
Dear all, I have a ML507 board running Linux 2.6.31, and am trying to use the Compact Flash card as a storage device for the embedded Linux. The compact flash can be used to burn the bits-stream and kernel images fine. After enabling the system ace device in the FPGA design and in the linux kernel, when the kernel boot I get this error message: xsysace 83600000.sysace: ace_of_probe(cadfba80, d1159bf4) xsysace 83600000.sysace: ace_alloc(cadfba90) xsysace 83600000.sysace: ace_setup(ace=0xc905ac00) xsysace 83600000.sysace: physaddr=0x83600000 irq=20 xsysace 83600000.sysace: error: invalid version xsysace 83600000.sysace: xsysace: error initializing device at 0x83600000 xsysace 83600000.sysace: could not initialize device, err=-12 xsysace: probe of 83600000.sysace failed with error -12 (DEBUG is enabled in the driver) It looks like that driver is not able to talk to the System ACE controller at all (could not even get the VERSION number of the controller). You help is greatly appreciated in getting this to work.
0 Kudos
1 Solution

Accepted Solutions
Visitor tiebingzhang
Visitor
8,599 Views
Registered: ‎07-28-2011

Re: ML507 System ACE Linux Driver initialization fails

Jump to solution

Guys, Thanks for your help. Our problem is solved. The problem: The FPGA pin assignment was wrong so it appeared that the hardware was not there, just as we have suspected!!

 

Thanks again for your help.

View solution in original post

0 Kudos
9 Replies
Xilinx Employee
Xilinx Employee
6,720 Views
Registered: ‎11-12-2007

Re: ML507 System ACE Linux Driver initialization fails

Jump to solution

Can you please post the relevant sections of your DTS and MHS files? I haven't heard of any problems with this and just recently built a design for the ML507 using the SystemACE controller, so I'm not aware of any underlying problems.

 

Also, is this a PPC design or a MicroBlaze design?

 

Cheers,

Rob

0 Kudos
Visitor tiebingzhang
Visitor
6,718 Views
Registered: ‎07-28-2011

Re: ML507 System ACE Linux Driver initialization fails

Jump to solution
This is the DTS file section: xps_sysace_0: sysace@83600000 { compatible = "xlnx,xps-sysace-1.01.a", "xlnx,xps-sysace-1.00.a"; interrupt-parent = <&xps_intc_0>; interrupts = < 5 2 >; reg = < 0x83600000 0x10000 >; xlnx,family = "virtex5"; xlnx,mem-width = <0x10>; } ; I am the software guy working on this. Not sure what the other file is. Thanks.
0 Kudos
Visitor tiebingzhang
Visitor
6,717 Views
Registered: ‎07-28-2011

Re: ML507 System ACE Linux Driver initialization fails

Jump to solution

Better formatted DTS file:

  

            xps_sysace_0: sysace@83600000 {
                        compatible = "xlnx,xps-sysace-1.01.a", "xlnx,xps-sysace-1.00.a";
                        interrupt-parent = <&xps_intc_0>;
                        interrupts = < 5 2 >;
                        reg = < 0x83600000 0x10000 >;
                        xlnx,family = "virtex5";
                        xlnx,mem-width = <0x10>;
                } ;

0 Kudos
Visitor tiebingzhang
Visitor
6,716 Views
Registered: ‎07-28-2011

Re: ML507 System ACE Linux Driver initialization fails

Jump to solution
Oh, it is a PowerPC design.
0 Kudos
Xilinx Employee
Xilinx Employee
6,713 Views
Registered: ‎11-12-2007

Re: ML507 System ACE Linux Driver initialization fails

Jump to solution

The other file is the hardware specification file. I want to check if the SystemACE IP is configured correctly. You should be able to get the file from the hardware designer - it's a plain text file organized similarly to the DTS file.

0 Kudos
Visitor tiebingzhang
Visitor
6,709 Views
Registered: ‎07-28-2011

Re: ML507 System ACE Linux Driver initialization fails

Jump to solution

Below is the related section. The full file is attached in this post.

 

BEGIN xps_sysace
 PARAMETER INSTANCE = xps_sysace_0
 PARAMETER HW_VER = 1.01.a
 PARAMETER C_BASEADDR = 0x83600000
 PARAMETER C_HIGHADDR = 0x8360ffff
 BUS_INTERFACE SPLB = plb_v46_0
 PORT SysACE_MPA = fpga_0_SysACE_CompactFlash_SysACE_MPA
 PORT SysACE_CLK = fpga_0_SysACE_CompactFlash_SysACE_CLK
 PORT SysACE_MPIRQ = fpga_0_SysACE_CompactFlash_SysACE_MPIRQ
 PORT SysACE_CEN = fpga_0_SysACE_CompactFlash_SysACE_CEN
 PORT SysACE_OEN = fpga_0_SysACE_CompactFlash_SysACE_OEN
 PORT SysACE_WEN = fpga_0_SysACE_CompactFlash_SysACE_WEN
 PORT SysACE_IRQ = SysACE_CompactFlash_SysACE_IRQ
 PORT SysACE_MPD = fpga_0_SysACE_CompactFlash_SysACE_MPD
END

 

PORT fpga_0_SysACE_CompactFlash_SysACE_MPA_pin = fpga_0_SysACE_CompactFlash_SysACE_MPA, DIR = O, VEC = [6:0]
 PORT fpga_0_SysACE_CompactFlash_SysACE_CLK_pin = fpga_0_SysACE_CompactFlash_SysACE_CLK, DIR = I
 PORT fpga_0_SysACE_CompactFlash_SysACE_MPIRQ_pin = fpga_0_SysACE_CompactFlash_SysACE_MPIRQ, DIR = I
 PORT fpga_0_SysACE_CompactFlash_SysACE_CEN_pin = fpga_0_SysACE_CompactFlash_SysACE_CEN, DIR = O
 PORT fpga_0_SysACE_CompactFlash_SysACE_OEN_pin = fpga_0_SysACE_CompactFlash_SysACE_OEN, DIR = O
 PORT fpga_0_SysACE_CompactFlash_SysACE_WEN_pin = fpga_0_SysACE_CompactFlash_SysACE_WEN, DIR = O
 PORT fpga_0_SysACE_CompactFlash_SysACE_MPD_pin = fpga_0_SysACE_CompactFlash_SysACE_MPD, DIR = IO, VEC = [15:0]

0 Kudos
Xilinx Employee
Xilinx Employee
6,675 Views
Registered: ‎07-29-2011

Re: ML507 System ACE Linux Driver initialization fails

Jump to solution

Hi ,

We are running our nightly linux regression test and the sysace driver is working fine for virtex5 (PPC). we are using 13.1 edk tools and 2.6.37 kernel. Prior to 13.1 it was also tested with 12.2 edk.

I donot see why its not working at your end.Can you also share your linux config file.

 

Thanks,

Madhubala

0 Kudos
Visitor tiebingzhang
Visitor
6,672 Views
Registered: ‎07-28-2011

Re: ML507 System ACE Linux Driver initialization fails

Jump to solution

We use ELDK 4.2 and 2.6.31. Yesterday the hardware engineer and I together reviewed the Xilinux project file and compare it with the "examples" provided by Xilinx. The system-ace section looks the same.

 

Attached please find the kernel config file. I don't think this is the issue since we've also tried directly run the systemace test example from Xilinx and it could not talk to the system ace controller either.

 

Thanks for helping me with this.

 

 

0 Kudos
Visitor tiebingzhang
Visitor
8,600 Views
Registered: ‎07-28-2011

Re: ML507 System ACE Linux Driver initialization fails

Jump to solution

Guys, Thanks for your help. Our problem is solved. The problem: The FPGA pin assignment was wrong so it appeared that the hardware was not there, just as we have suspected!!

 

Thanks again for your help.

View solution in original post

0 Kudos