From: Wojciech A. K. <wk...@Fr...> - 2010-02-09 02:17:23
|
This mail should reach a list instead of Uwe personally. ----- Forwarded message from "Wojciech A. Koszek" <wk...@Fr...> ----- To: Uwe Bonnes <bo...@el...> From: "Wojciech A. Koszek" <wk...@Fr...> Date: Tue, 9 Feb 2010 02:35:44 +0100 Subject: Re: [Xc3sprog-users] Bringing FreeBSD support to xc3sprog. User-Agent: Mutt/1.5.17 (2007-11-01) On Mon, Feb 08, 2010 at 09:43:19PM +0100, Uwe Bonnes wrote: > >>>>> "Wojciech" == Wojciech A Koszek <wk...@Fr...> writes: > > Wojciech> xc3sprog project (c) 2005-2010 Uwe Bonnes > Wojciech> bo...@el... WWW: > > The work was started by Andrew, others dropped in and now most contributions > are mine. But that doesn't give me the whole copyright. > > Wojciech> http://sourceforge.net/projects/xc3sprog Release: $Rev: 426 $ > Wojciech> System: FreeBSD(i386): 9.0-CURRENT > > Wojciech> usage: xc3sprog [options] <bitfile> > > I'll consider the usage changes.... > > Wojciech> ./xc3sprog -T0 -c xpc > Wojciech> /home/wkoszek/fpga/fbsd-prog/xup-0.0.2/w/wkoszek_leds/leds.bit > Wojciech> Release $Rev: 426 $ Free software: If you contribute nothing, > Wojciech> expect nothing! Please provide feedback on > Wojciech> success/failure/enhancement requests! Check Sourceforge SVN > Wojciech> for updates! usb_control_msg(0x42.1 Unknown error firmware > Wojciech> version = 0x0404 (1028) CPLD version = 0x0012 (18) Reading > Wojciech> ID_CODE 2147483647 times Sending 22 bits IDCODE Commands: > Wojciech> 0x01fe09 Expecting 3 IDCODES : 0x06e5e093 0xf5046093 > Wojciech> 0x41c22093 > > Give the verbose option and you will see lots of dots printed for lots aof > successfill JTAG queue queries. Ops. Sorry for the lack of -v. Once again: Spartan 3e Spartan Kit + embedded JTAG cable and: http://freebsd.czest.pl/~wkoszek/fpga/xusb_emb.hex as a firmware. Now, this is what I noticed: # usbconfig ugen0.1: <OHCI root HUB nVidia> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen1.1: <EHCI root HUB nVidia> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen0.2: <Optical USB Mouse Logitech> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen1.2: <USB2.0 Syntek> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen0.3: <Samsung ML-1610 Series Samsung Electronics Co., Ltd.> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen1.3: <product 0x000d vendor 0x03fd> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON # ./fxload -v -t fx2 -I /compat/linux/opt/Xilinx/11.1/ISE/bin/lin/xusb_emb.hex -D vid=0x3fd,pid=0xd ezusb_libusb_open(106): USB device: VendId: 0x3fd ProdId: 0xd microcontroller type: fx2 single stage: load on-chip memory open RAM hexfile image /compat/linux/opt/Xilinx/11.1/ISE/bin/lin/xusb_emb.hex stop CPU write on-chip, addr 0x1d3d len 10 (0x000a) write on-chip, addr 0x06d9 len 12 (0x000c) [..] write on-chip, addr 0x09d1 len 1 (0x0001) write on-chip, addr 0x0bfd len 79 (0x004f) ... WROTE: 7458 bytes, 85 segments, avg 87 reset CPU # usbconfig ugen0.1: <OHCI root HUB nVidia> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen1.1: <EHCI root HUB nVidia> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen0.2: <Optical USB Mouse Logitech> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen1.2: <USB2.0 Syntek> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen0.3: <Samsung ML-1610 Series Samsung Electronics Co., Ltd.> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen1.3: <XILINX XILINX> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON # usbconfig -u 1 -a 3 dump_device_desc ugen1.3: <XILINX XILINX> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x03fd idProduct = 0x0008 bcdDevice = 0x0000 iManufacturer = 0x0001 <XILINX > iProduct = 0x0002 <XILINX > iSerialNumber = 0x0000 <no string> bNumConfigurations = 0x0001 Now make couple of silly executions: # ./xc3sprog -v -c xpc xc3sprog project (c) 2005-2010 Uwe Bonnes bo...@el... WWW: http://sourceforge.net/projects/xc3sprog Release: $Rev$ System: FreeBSD(i386): 9.0-CURRENT usb_control_msg(0x42.1 Unknown error firmware version = 0x0404 (1028) CPLD version = 0x0012 (18) Using built-in device list JTAG chainpos: 0 Device IDCODE = 0x41c22093 Desc: XC3S500E JTAG loc.: 0 IDCODE: 0x41c22093 Desc: XC3S500E IR length: 6 JTAG loc.: 1 IDCODE: 0xf5046093 Desc: XCF04S IR length: 8 JTAG loc.: 2 IDCODE: 0x06e5e093 Desc: XC2C64A-VQ44 IR length: 8 USB Read Transactions: 4 Write Transactions: 7 Control Transaction 15 # ./xc3sprog -v -c xpc xc3sprog project (c) 2005-2010 Uwe Bonnes bo...@el... WWW: http://sourceforge.net/projects/xc3sprog Release: $Rev$ System: FreeBSD(i386): 9.0-CURRENT usb_control_msg(0x42.1 Unknown error firmware version = 0x0404 (1028) CPLD version = 0x0012 (18) Using built-in device list JTAG chainpos: 0 Device IDCODE = 0x41c22093 Desc: XC3S500E JTAG loc.: 0 IDCODE: 0x41c22093 Desc: XC3S500E IR length: 6 JTAG loc.: 1 IDCODE: 0xf5046093 Desc: XCF04S IR length: 8 JTAG loc.: 2 IDCODE: 0x06e5e093 Desc: XC2C64A-VQ44 IR length: 8 USB Read Transactions: 4 Write Transactions: 7 Control Transaction 15 # ./xc3sprog -v -c xpc xc3sprog project (c) 2005-2010 Uwe Bonnes bo...@el... WWW: http://sourceforge.net/projects/xc3sprog Release: $Rev$ System: FreeBSD(i386): 9.0-CURRENT usb_control_msg(0x42.1 Unknown error firmware version = 0x0404 (1028) CPLD version = 0x0012 (18) Using built-in device list JTAG chainpos: 0 Device IDCODE = 0x41c22093 Desc: XC3S500E JTAG loc.: 0 IDCODE: 0x41c22093 Desc: XC3S500E IR length: 6 JTAG loc.: 1 IDCODE: 0xf5046093 Desc: XCF04S IR length: 8 JTAG loc.: 2 IDCODE: 0x06e5e093 Desc: XC2C64A-VQ44 IR length: 8 USB Read Transactions: 4 Write Transactions: 7 Control Transaction 15 Now I make -v -T0 test: # ./xc3sprog -v -T0 -c xpc xc3sprog project (c) 2005-2010 Uwe Bonnes bo...@el... WWW: http://sourceforge.net/projects/xc3sprog Release: $Rev$ System: FreeBSD(i386): 9.0-CURRENT usb_control_msg(0x42.1 Unknown error firmware version = 0x0404 (1028) CPLD version = 0x0012 (18) Using built-in device list JTAG chainpos: 0 Device IDCODE = 0x41c22093 Desc: XC3S500E Reading ID_CODE 2147483647 times Sending 22 bits IDCODE Commands: 0x01fe09 Expecting 3 IDCODES : 0x06e5e093 0xf5046093 0x41c22093.................. Once I try to run JTAG scan I get: # ./xc3sprog -v -c xpc xc3sprog project (c) 2005-2010 Uwe Bonnes bo...@el... WWW: http://sourceforge.net/projects/xc3sprog Release: $Rev$ System: FreeBSD(i386): 9.0-CURRENT usb_control_msg(0x42.1 Unknown error usb_control_msg(0x28 11) Unknown error Could not find USB dongle 03fd:0008# Could not find USB dongle 03fd:0008# usbconfig -u 1 -a 3 dump_device_desc ugen1.3: <XILINX XILINX> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x03fd idProduct = 0x0008 bcdDevice = 0x0000 iManufacturer = 0x0001 <retrieving string failed> iProduct = 0x0002 <retrieving string failed> iSerialNumber = 0x0000 <no string> bNumConfigurations = 0x0001 This commands takes several seconds to complete, even though the first usbconfig's took a fraction of a second. And this problem with string retrival.. I must reset a board to make it useable. Thanks, -- Wojciech A. Koszek wk...@Fr... http://FreeBSD.czest.pl/~wkoszek/ ----- End forwarded message ----- -- Wojciech A. Koszek wk...@Fr... http://FreeBSD.czest.pl/~wkoszek/ |