Help with USB cable, Xilinx XUP board, Linux FC3 and EDK

Hi,

Can anybody help with the situation described below?

I followed the best information I could find, but it doesn't work and I would like some tips that could give me information on what goes wrong,

Thanks

Kris Heyrman.

--

kernel: kernel-2.6.11-1.27_FC3, compiled from src.rpm compiler: gcc (GCC) 3.4.3 20050227 (Red Hat 3.4.3-22.fc3) xps: Xilinx EDK 7.1.1 Build EDK_H.11.3 used guidelines from:

formatting link
but installed windrvr version 7.00 from
formatting link
(WD700LN.tgz instead of WD623LN.tgz), in which I believe Tyson Harding's fix from

3/18/2005 has been applied.

/etc/rc.local: wdreg windrvr6 yes WinDriver v7.00 Jungo (c) 1997 - 2005 Build Date: Apr 26 2005 X86 loaded

With a Xilinx XUP Virtex-II PRO Development System, trying to download Xilinx's Base System:

# lsusb Bus 004 Device 001: ID 0000:0000 Bus 003 Device 002: ID 03fd:0009 Xilinx, Inc. Bus 003 Device 001: ID 0000:0000 Bus 002 Device 001: ID 0000:0000 Bus 001 Device 001: ID 0000:0000

$ make -f system.make download

********************************************* Downloading Bitstream onto the target board ********************************************* impact -batch etc/download.cmd Release 7.1.02i - iMPACT H.40 Copyright (c) 1995-2005 Xilinx, Inc. All rights reserved. // *** BATCH CMD : setMode -bs // *** BATCH CMD : setCable -port auto AutoDetecting cable. Please wait. Reusing 78020001 key. Connecting to cable (Parallel Port - parport0). WinDriver v7.00 Jungo (c) 1997 - 2005 Build Date: Apr 26 2005 X86 21:13:49. parport0: baseAddress=0x378, ecpAddress=0x778 LPT base address = 0378h. ECP base address = 0778h. Cable connection failed. Reusing 79020001 key. Connecting to cable (Parallel Port - parport1). WinDriver v7.00 Jungo (c) 1997 - 2005 Build Date: Apr 26 2005 X86 21:13:49. Cable connection failed. Reusing 7A020001 key. WinDriver v7.00 Jungo (c) 1997 - 2005 Build Date: Apr 26 2005 X86 21:13:49. Cable connection failed. Reusing A0020001 key. Connecting to cable (Usb Port - USB21). Checking cable driver. File version of /home/krish/binaries/Xilinx/bin/lin/xusbdfwu.hex = 1018(dec), 03FA. File version of /etc/hotplug/usb/xusbdfwu.fw/xusbdfwu.hex = 1018(dec), 03FA. Cable connection failed. Reusing B4020001 key. Connecting to cable (/dev/ttyS0 Port). Cable connection failed. Reusing B5020001 key. Connecting to cable (/dev/ttyS1 Port). Cable connection failed. Reusing B6020001 key. Connecting to cable (/dev/ttyS2 Port). Cable connection failed. Reusing B7020001 key. Connecting to cable (/dev/ttyS3 Port). Cable connection failed. Cable autodetection failed. make: *** [download] Error 1

Connecting to cable (Parallel Port - parport2). WinDriver v7.00 Jungo (c) 1997 - 2005 Build Date: Apr 26 2005 X86

21:13:49. Cable connection failed. Reusing 7B020001 key. Connecting to cable (Parallel Port - parport3).
Reply to
kh
Loading thread data ...

Hmm...I suspect your problem stems from trying to use a driver for a Parallel Cable with a USB Cable. But maybe I'm crazy...

-j.

snipped-for-privacy@clubbutnospam.> Hi,

Reply to
jazimme2

I have the Parallel Driver xp4drv also installed, but I believe for the USB cable windrvr6 is OK.

I received the (good ) advice to change, in the file /etc/hotplug/usb.usermap, on the line containing the label `xusbdfwu', the Product ID 0x0007 to 0x0009.

It now goes further already, so I am on the good path, but I still get: # make -f system.make download

********************************************* Downloading Bitstream onto the target board ********************************************* impact -batch etc/download.cmd impact: error while loading shared libraries: /home/krish/binaries/Xilinx/bin/lin/libSTL.so: cannot restore segment prot after reloc: Permission denied make: *** [download] Error 127

That looks like a file permission or security problem. Could not yet trace it, however. All ideas are welcome.

Reply to
Kris Heyrman

Have you seen Answer #20762?

--------From Xilinx Answer 20762----------

For USB cable support, it must be installed with the ISE CD install. The USB cable driver in 7.1i ISE is precompiled for Red Hat Enterprise Linux 3.

The Platform Cable USB uses the windrvr6 device driver. This is the same driver that is used for the Parallel cables. In addition, the following files are also required: setup_pcusb -> install script xusbdfwu.hex -> cable firmware xusbdfwu,xusbdfwu.usermap -> linux setup/script files

These files are copied to the %XILINX%/bin/lin directory when ISE is installed. To run the driver installation, cd to the %XILINX%/bin/lin directory and run setup_pcusb.

For Linux Kernel 2.4.x, the windrvr6 device driver should be built from the source code. See solution 18612 for the driver compilation instruction.

If the files are missing, the user can install the drivers from the Installer CD.

Reply to
jazimme2

Hi,

The problem is solved. The last problem was due to the SELinux policy that Fedora Core 3 enforces. It shows up in /var/log/messages as: Jun 16 07:50:40 localhost kernel: audit(1118901040.916:0): avc: denied { execmod } for pid=5234 comm=impact path=/home/krish/binaries/Xilinx/bin/lin/libSTL.so dev=hda2 ino=4394222 scontext=user_u:system_r:unconfined_t tcontext=root:object_r:user_home_t tclass=file

To temporarily evade this, you can

# sudo setenforce 0

and later,

#sudo setenforce 1

The problem is (probably) caused by the fact that the ``offending'' library libSTL.o should have been compiled with -fPIC (position-independent code). It is described for similar cases - but not impact - in the Red Hat bug database and can be solved permanently by reading the Fedora Core 3 SELinux FAQ and working around the enforcing.

Much tx for everybody who helped,

Kris Heyrman

Reply to
Kris Heyrman

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.