{"id":36,"date":"2017-10-11T15:58:48","date_gmt":"2017-10-11T19:58:48","guid":{"rendered":"http:\/\/sites.nd.edu\/attpc\/?p=36"},"modified":"2017-10-11T15:59:09","modified_gmt":"2017-10-11T19:59:09","slug":"upgrade-cobo-firmware","status":"publish","type":"post","link":"https:\/\/sites.nd.edu\/attpc\/2017\/10\/11\/upgrade-cobo-firmware\/","title":{"rendered":"Upgrade Cobo firmware"},"content":{"rendered":"<h1><span style=\"color: #ff0000\">I tried below according to the instructions, but it does not work\u00a0 !!!!!!!!!!!!!!!!!!!!!!!<\/span><\/h1>\n<p>The latest Cobo firmware is\u00a0firmware250.bit<\/p>\n<p>according to Shebli, the following procedure is used for upgrading the install the Xillinx cable driver<\/p>\n<p>&nbsp;<\/p>\n<h1 id=\"NotesonXilinxTools\">Notes on Xilinx Tools<a class=\"anchor\" title=\"Link to this section\" href=\"https:\/\/dsm-trac.cea.fr\/mordicus\/wiki\/XilixTools#NotesonXilinxTools\">\u00a0\u00b6<\/a><\/h1>\n<p>These notes have been taken during install on Ubuntu 10.04 LTS . Since Xilinx supports RHEL things might be easier on SL6.<\/p>\n<h1 id=\"NotesonXilinxTools\">Update Ubuntu 10.04 LTS<\/h1>\n<p>As this version of Ubuntu is not supported anymore,apt-get won&#8217;t work. A few things need to be changed.<\/p>\n<pre class=\"\"><span style=\"color: #808080\"><code>sudo sed -i -re 's\/([a-z]{2}\\.)?archive.ubuntu.com|security.ubuntu.com\/old-releases.ubuntu.com\/g' \/etc\/apt\/sources.list\r\nsudo apt-get update<\/code><\/span><\/pre>\n<h2 id=\"XilinxToolsInstallOnLinux\">Xilinx Tools Install On Linux<\/h2>\n<ul>\n<li>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).<\/li>\n<li>Untar downloaded file (typically in \/opt using a sudo account).<\/li>\n<li>cd to extracted directory and type\u00a0<tt>sudo .\/xsetup\u00a0<\/tt>and follow instructions. Choose no to acquire licence because it is a will be setup through environment variables (see further).<\/li>\n<\/ul>\n<h2 id=\"USBDriversforXilinxJTAGCable\">USB Drivers for Xilinx JTAG Cable<\/h2>\n<ul>\n<li>Install libusb-dev and libftdi-dev using your package manager.<\/li>\n<li>Install fxload using your package manager.<\/li>\n<li>Download\u00a0<a class=\"attachment\" title=\"Attachment 'xil-cable-usb-drv.tar' in XilixTools\" href=\"http:\/\/www.jianping-lai.com\/wp-content\/uploads\/Physics\/get-electronics\/xil-cable-usb-drv.tar\">Xilinx cable USB driver sources<\/a>.<\/li>\n<li>Compile sources typing\u00a0<tt>make\u00a0<\/tt><\/li>\n<li>Install the library produced\u00a0<tt>libusb-driver.so\u00a0<\/tt>(typically by copying it to \/usr\/lib).<\/li>\n<li>Put the following line in a new file &#8220;libusb-driver.rules&#8221; in \/etc\/udev\/rules.d\/:\n<pre class=\"wiki\"><span style=\"color: #808080\">ACTION==\"add\", SUBSYSTEMS==\"usb\", ATTRS{idVendor}==\"03fd\", MODE=\"666\"\r\n<\/span><\/pre>\n<\/li>\n<li>If your cable does not have the ID\u00a0<tt>03fd:0008<\/tt>\u00a0in the output of\u00a0<tt>lsusb<\/tt>\u00a0command, the initial firmware has not been loaded (loading it changes the product-ID from another value to\u00a0<tt>8<\/tt>). To load the firmware follow these steps:<\/li>\n<\/ul>\n<ol>\n<li>Make sure you have installed the\u00a0<tt>libusb-dev<\/tt>\u00a0and\u00a0<tt>fxload<\/tt>\u00a0packages.<\/li>\n<li>If you have no\u00a0<tt>\/etc\/udev\/rules.d\/xusbdfwu.rules<\/tt>\u00a0file, copy it from\u00a0<tt>\/path\/to\/ISE\/bin\/lin\/xusbdfwu.rules<\/tt>\u00a0to\u00a0<tt>\/etc\/udev\/rules.d\/xusbdfwu.rules<\/tt>.<\/li>\n<li>If your Linux distro is not too old (e.g. &gt; Ubuntu 9.10), you are probably running a fairly recent version of\u00a0<tt>udev<\/tt>, so you&#8217;ll need to adapt the rules file accordingly, using the following command:\n<pre class=\"wiki\"><span style=\"color: #808080\">sed -i -e 's\/TEMPNODE\/tempnode\/' -e 's\/SYSFS\/ATTRS\/g' -e 's\/BUS\/SUBSYSTEMS\/' \/etc\/udev\/rules.d\/xusbdfwu.rules\r\n<\/span><\/pre>\n<\/li>\n<li>Copy the files\u00a0<tt>\/path\/to\/ISE\/bin\/lin\/xusb*.hex<\/tt>\u00a0to\u00a0<tt>\/usr\/share\/<\/tt>.<\/li>\n<li>Restart the udev daemon using the following command and re-plug the USB cable:\n<pre class=\"wiki\"><span style=\"color: #808080\">service udev restart\r\n<\/span><\/pre>\n<\/li>\n<\/ol>\n<p>The LED on the XIlinx cable should be GREEN. Also, the\u00a0<tt>lsusb<\/tt>\u00a0command should list (among other USB devices) the Xilinx cable with its ID finishing with digit\u00a0<strong><em>8<\/em><\/strong>. Typically:<\/p>\n<pre class=\"wiki\"><span style=\"color: #808080\">% lsusb | grep Xilinx\r\nBus 001 Device 003: ID 03fd:0008 Xilinx, Inc. \r\n                               ^\r\n                               This digit should be set to '8'\r\n<\/span><\/pre>\n<h2 id=\"SetUpXilinxEnvironmentvariables\">Set Up Xilinx Environment variables<\/h2>\n<p>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:<\/p>\n<pre class=\"wiki\"><span style=\"color: #808080\">if [ ! $XILINX ]; then\r\n\texport LM_LICENSE_FILE=2100@dappcq227:1717@irfupcj44:$LM_LICENSE_FILE\r\n\texport XILINX_INSTALL=\/opt\/Xilinx\/12.4\/ISE_DS\r\n\tsource $XILINX_INSTALL\/settings64.sh\r\n\texport LD_LIBRARY_PATH=\/usr\/lib:$LD_LIBRARY_PATH:\/opt\/Xilinx\/usb-driver\r\n\texport LMC_HOME=$XILINX_INSTALL\/ISE\/smartmodel:$LMC_HOME\r\n\texport XIL_IMPACT_USE_LIBUSB=1\r\n\texport PRINTER=irfulpy90\r\nfi<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I tried below according to the instructions, but it does not work\u00a0 !!!!!!!!!!!!!!!!!!!!!!! The latest Cobo firmware is\u00a0firmware250.bit according to Shebli, the following procedure is used for upgrading the install the Xillinx cable driver &nbsp; Notes on Xilinx Tools\u00a0\u00b6 These &hellip; <a href=\"https:\/\/sites.nd.edu\/attpc\/2017\/10\/11\/upgrade-cobo-firmware\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2309,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-36","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/sites.nd.edu\/attpc\/wp-json\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.nd.edu\/attpc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.nd.edu\/attpc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.nd.edu\/attpc\/wp-json\/wp\/v2\/users\/2309"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.nd.edu\/attpc\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":3,"href":"https:\/\/sites.nd.edu\/attpc\/wp-json\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":38,"href":"https:\/\/sites.nd.edu\/attpc\/wp-json\/wp\/v2\/posts\/36\/revisions\/38"}],"wp:attachment":[{"href":"https:\/\/sites.nd.edu\/attpc\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.nd.edu\/attpc\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.nd.edu\/attpc\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}