Upgrade Cobo firmware

alright I finally got it working!!!

so the changes include a few points,

  1. ubuntu 12.04 LTS i386 version
  2. install xillinx ISE 14.05 linux package
  3. use the ISE carried flashwriter.tcl

so the detailed steps are listed here

Xilinx Tools Install On Linux

  • Download Xilinx_ISE_DS_Lin_14.5_P.58f_4.tar (for version 14.05) from Xilinx web site (need to have developer login).
  • Untar downloaded file (typically in /opt using a sudo account).
  • cd to extracted directory and type sudo ./xsetup and follow instructions. Choose no to acquire licence because it is a will be setup through environment variables.
  • The installation package will ask if you want to install driver, I chose yes, but it will fail later. No worry for that
  • After, you choose free license and you will be good to go

USB Drivers for Xilinx JTAG Cable

  • Install libusb-dev and libftdi-dev using your package manager.
  • Install fxload using your package manager.
  • Download Xilinx cable USB driver sources.
  • Compile sources typing make 
  • Install the library produced libusb-driver.so (typically by copying it to /usr/lib).
  • Put the following line in a new file “libusb-driver.rules” in /etc/udev/rules.d/:
  • If your cable does not have the ID 03fd:0008 in the output of lsusb command, the initial firmware has not been loaded (loading it changes the product-ID from another value to 8). To load the firmware follow these steps:
  1. Make sure you have installed the libusb-dev and fxload packages.
  2. If you have no /etc/udev/rules.d/xusbdfwu.rules file, copy it from /path/to/ISE/bin/lin/xusbdfwu.rules to /etc/udev/rules.d/xusbdfwu.rules.
  3. If your Linux distro is not too old (e.g. > Ubuntu 9.10), you are probably running a fairly recent version of udev, so you’ll need to adapt the rules file accordingly, using the following command:
  4. Copy the files /path/to/ISE/bin/lin/xusb*.hex to /usr/share/.
  5. Restart the udev daemon using the following command and re-plug the USB cable:

The LED on the XIlinx cable should be GREEN. Also, the lsusb command should list (among other USB devices) the Xilinx cable with its ID finishing with digit 8. Typically:

Flash the memory

download the bitstream.tcl, flashwriter.tcl and firmware250.bin (you can get them from the dropbox). If you have problem of flashing, try use the flashwriter.tcl included in your own ISE package. Rename the firmware250.bin to download.bin

 

From here, you have two options of flashing.

  1. connect the Xillinx brick to the Cobo directly, there is the high density port in the cobo which you can connect and after you just type below in

You will need to reboot Cobo to make the firmware effective.

2. insert in the Jtag module and connect the Xillinx brick to the Jtag, which will require a different type of the wire and it is included in the original package. The mapping is listed below (only 7 out of 10 ports need to be connected)

then you need to have the connectCobo.sh script and run

then you will need to follow the instruction from the output to flip the Jtag module CFG switch twice. After all is done, the Jtag module lights (1,2,4,8.16) will show which bin slot it is controlling. After, you type the same flash commands as in option 1.

Extra: you can also try out a firmware before flashing it, by type the following command

After hit entering, the cobo will reboot the vxwork system with the new firmware, but when you reboot cobo, everything will be restored.

I tried below according to the instructions, but it does not work  !!!!!!!!!!!!!!!!!!!!!!!

The latest Cobo firmware is firmware250.bit

according to Shebli, the following procedure is used for upgrading the install the Xillinx cable driver

Notes on Xilinx Tools ¶

These notes have been taken during install on Ubuntu 10.04 LTS . Since Xilinx supports RHEL things might be easier on SL6.

Update Ubuntu 10.04 LTS

As this version of Ubuntu is not supported anymore,apt-get won’t work. A few things need to be changed.

Xilinx Tools Install On Linux

  • Download Xilinx_ISE_DS_Lin_12.4_M.81d.2.0.tar (for version 12.4) from Xilinx web site (need to have developer login).
  • Untar downloaded file (typically in /opt using a sudo account).
  • cd to extracted directory and type sudo ./xsetup and follow instructions. Choose no to acquire licence because it is a will be setup through environment variables (see further).

USB Drivers for Xilinx JTAG Cable

  • Install libusb-dev and libftdi-dev using your package manager.
  • Install fxload using your package manager.
  • Download Xilinx cable USB driver sources.
  • Compile sources typing make 
  • Install the library produced libusb-driver.so (typically by copying it to /usr/lib).
  • Put the following line in a new file “libusb-driver.rules” in /etc/udev/rules.d/:
  • If your cable does not have the ID 03fd:0008 in the output of lsusb command, the initial firmware has not been loaded (loading it changes the product-ID from another value to 8). To load the firmware follow these steps:
  1. Make sure you have installed the libusb-dev and fxload packages.
  2. If you have no /etc/udev/rules.d/xusbdfwu.rules file, copy it from /path/to/ISE/bin/lin/xusbdfwu.rules to /etc/udev/rules.d/xusbdfwu.rules.
  3. If your Linux distro is not too old (e.g. > Ubuntu 9.10), you are probably running a fairly recent version of udev, so you’ll need to adapt the rules file accordingly, using the following command:
  4. Copy the files /path/to/ISE/bin/lin/xusb*.hex to /usr/share/.
  5. Restart the udev daemon using the following command and re-plug the USB cable:

The LED on the XIlinx cable should be GREEN. Also, the lsusb command should list (among other USB devices) the Xilinx cable with its ID finishing with digit 8. Typically:

Set Up Xilinx Environment variables

This is the typical env variables that you must add to your .bashrc (you should adapt it to your case of course), including the LM_LICENSE_FILE variable referring to the licence server:

Leave a Reply

Your email address will not be published. Required fields are marked *