<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta http-equiv="Content-Style-Type" content="text/css" />
		<meta name="generator" content="MediaWiki 1.14.0" />
		<meta name="keywords" content="Working ftdi eeprom,Build the libftdi-1.0 and new ftdi eeprom" />
		<link rel="alternate" type="application/x-wiki" title="Edit" href="http://milkymist.org/wiki/index.php?title=Working_ftdi_eeprom&amp;action=edit" />
		<link rel="edit" title="Edit" href="http://milkymist.org/wiki/index.php?title=Working_ftdi_eeprom&amp;action=edit" />
		<link rel="shortcut icon" href="../favicon.ico" />
		<link rel="search" type="application/opensearchdescription+xml" href="opensearch_desc.php" title="Milkymist Wiki (en)" />
		<link title="Creative Commons" type="application/rdf+xml" href="http://milkymist.org/wiki/index.php?title=Working_ftdi_eeprom&amp;action=creativecommons" rel="meta" />
		<link rel="copyright" href="http://www.milkymist.org/wiki/index.php?title=Copyright" />
		<link rel="alternate" type="application/rss+xml" title="Milkymist Wiki RSS Feed" href="http://milkymist.org/wiki/index.php?title=Special:RecentChanges&amp;feed=rss" />
		<link rel="alternate" type="application/atom+xml" title="Milkymist Wiki Atom Feed" href="http://milkymist.org/wiki/index.php?title=Special:RecentChanges&amp;feed=atom" />
		<title>Working ftdi eeprom - Milkymist Wiki</title>
		<link rel="stylesheet" href="skins/common/shared.css%3F195.css" type="text/css" media="screen" />
		<link rel="stylesheet" href="skins/common/commonPrint.css%3F195.css" type="text/css" media="print" />
		<link rel="stylesheet" href="skins/monobook/main.css%3F195.css" type="text/css" media="screen" />
		<!--[if lt IE 5.5000]><link rel="stylesheet" href="/wiki/skins/monobook/IE50Fixes.css?195" type="text/css" media="screen" /><![endif]-->
		<!--[if IE 5.5000]><link rel="stylesheet" href="/wiki/skins/monobook/IE55Fixes.css?195" type="text/css" media="screen" /><![endif]-->
		<!--[if IE 6]><link rel="stylesheet" href="/wiki/skins/monobook/IE60Fixes.css?195" type="text/css" media="screen" /><![endif]-->
		<!--[if IE 7]><link rel="stylesheet" href="/wiki/skins/monobook/IE70Fixes.css?195" type="text/css" media="screen" /><![endif]-->
		<link rel="stylesheet" href="http://milkymist.org/wiki/index.php?title=MediaWiki:Common.css&amp;usemsgcache=yes&amp;ctype=text%2Fcss&amp;smaxage=18000&amp;action=raw&amp;maxage=18000" type="text/css" />
		<link rel="stylesheet" href="http://milkymist.org/wiki/index.php?title=MediaWiki:Print.css&amp;usemsgcache=yes&amp;ctype=text%2Fcss&amp;smaxage=18000&amp;action=raw&amp;maxage=18000" type="text/css" media="print" />
		<link rel="stylesheet" href="http://milkymist.org/wiki/index.php?title=MediaWiki:Monobook.css&amp;usemsgcache=yes&amp;ctype=text%2Fcss&amp;smaxage=18000&amp;action=raw&amp;maxage=18000" type="text/css" />
		<link rel="stylesheet" href="http://milkymist.org/wiki/index.php?title=-&amp;action=raw&amp;maxage=18000&amp;gen=css" type="text/css" />
		<!--[if lt IE 7]><script type="text/javascript" src="/wiki/skins/common/IEFixes.js?195"></script>
		<meta http-equiv="imagetoolbar" content="no" /><![endif]-->

		<script type= "text/javascript">/*<![CDATA[*/
		var skin = "monobook";
		var stylepath = "/wiki/skins";
		var wgArticlePath = "/wiki/index.php?title=$1";
		var wgScriptPath = "/wiki";
		var wgScript = "/wiki/index.php";
		var wgVariantArticlePath = false;
		var wgActionPaths = {};
		var wgServer = "http://milkymist.org";
		var wgCanonicalNamespace = "";
		var wgCanonicalSpecialPageName = false;
		var wgNamespaceNumber = 0;
		var wgPageName = "Working_ftdi_eeprom";
		var wgTitle = "Working ftdi eeprom";
		var wgAction = "view";
		var wgArticleId = "119";
		var wgIsArticle = true;
		var wgUserName = null;
		var wgUserGroups = null;
		var wgUserLanguage = "en";
		var wgContentLanguage = "en";
		var wgBreakFrames = false;
		var wgCurRevisionId = "1304";
		var wgVersion = "1.14.0";
		var wgEnableAPI = true;
		var wgEnableWriteAPI = true;
		var wgSeparatorTransformTable = ["", ""];
		var wgDigitTransformTable = ["", ""];
		var wgRestrictionEdit = [];
		var wgRestrictionMove = [];
		/*]]>*/</script>

		<script type="text/javascript" src="skins/common/wikibits.js%3F195"><!-- wikibits js --></script>
		<!-- Head Scripts -->
		<script type="text/javascript" src="skins/common/ajax.js%3F195"></script>
		<script type="text/javascript" src="http://milkymist.org/wiki/index.php?title=-&amp;action=raw&amp;gen=js&amp;useskin=monobook"><!-- site js --></script>
	</head>
<body class="mediawiki ltr ns-0 ns-subject page-Working_ftdi_eeprom skin-monobook">
	<div id="globalWrapper">
		<div id="column-content">
	<div id="content">
		<a name="top" id="top"></a>
				<h1 id="firstHeading" class="firstHeading">Working ftdi eeprom</h1>
		<div id="bodyContent">
			<h3 id="siteSub">From Milkymist Wiki</h3>
			<div id="contentSub"></div>
									<div id="jump-to-nav">Jump to: <a href="index.php%3Ftitle=Working_ftdi_eeprom.html#column-one">navigation</a>, <a href="index.php%3Ftitle=Working_ftdi_eeprom.html#searchInput">search</a></div>			<!-- start content -->
			<p>I modifie the <i>ftdi_eeprom</i>, from the <i>libftdi-1.0</i> GIT <a href="http://developer.intra2net.com/git/?p=libftdi-1.0" class="external autonumber" title="http://developer.intra2net.com/git/?p=libftdi-1.0" rel="nofollow">[1]</a> .
</p><p>You can first <a href="index.php%3Ftitle=Build_the_libftdi-1.0_and_new_ftdi_eeprom.html" title="Build the libftdi-1.0 and new ftdi eeprom">Build the libftdi-1.0 and new ftdi_eeprom</a>
</p>
<table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1"><a href="index.php%3Ftitle=Working_ftdi_eeprom.html#Change"><span class="tocnumber">1</span> <span class="toctext">Change</span></a></li>
<li class="toclevel-1"><a href="index.php%3Ftitle=Working_ftdi_eeprom.html#Find_the_device-file"><span class="tocnumber">2</span> <span class="toctext">Find the device-file</span></a></li>
<li class="toclevel-1"><a href="index.php%3Ftitle=Working_ftdi_eeprom.html#MM1_JTAG_Config-file"><span class="tocnumber">3</span> <span class="toctext">MM1 JTAG Config-file</span></a></li>
<li class="toclevel-1"><a href="index.php%3Ftitle=Working_ftdi_eeprom.html#Caution_.28RESET.29"><span class="tocnumber">4</span> <span class="toctext">Caution (RESET)</span></a></li>
</ul>
</td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
<a name="Change" id="Change"></a><h2><span class="editsection">[<a href="http://milkymist.org/wiki/index.php?title=Working_ftdi_eeprom&amp;action=edit&amp;section=1" title="Edit section: Change">edit</a>]</span> <span class="mw-headline"> Change </span></h2>
<ul><li> must specifie a device-file (to ensure you flash this you want)
</li></ul>
<pre> Syntax sample&nbsp;:
 ./ftdi_eeprom --read-eeprom  /dev/bus/usb/002/003 ftdi-backup.conf
 ./ftdi_eeprom --erase-eeprom /dev/bus/usb/002/003
 ./ftdi_eeprom --flash-eeprom /dev/bus/usb/002/003 ftdi-source.conf
</pre>
<ul><li> backup eeprom in a conf-file (more easy to edit)
</li><li> no use of raw file (useless)
</li></ul>
<a name="Find_the_device-file" id="Find_the_device-file"></a><h2><span class="editsection">[<a href="http://milkymist.org/wiki/index.php?title=Working_ftdi_eeprom&amp;action=edit&amp;section=2" title="Edit section: Find the device-file">edit</a>]</span> <span class="mw-headline"> Find the device-file </span></h2>
<p>Use lsusb in root&nbsp;:
</p>
<pre> (root)# lsusb
 Bus 007 Device 002: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
 Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 002 Device 057: ID 20b7:0713
 Bus 002 Device 004: ID 05a9:7670 OmniVision Technologies, Inc. OV7670 Webcam
 Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
</pre>
<p>You search for VID and PID of Milkymist JTAG, <i>20b7:0713</i>, and get the Bus ID <i>002</i> and Device ID <i>057</i>
</p><p>On Linux, you construct the device-file name like this <i>/dev/bus/002/057</i>
</p><p>Note&nbsp;: the Device ID increment if you replug the device
</p><p><br />
</p>
<a name="MM1_JTAG_Config-file" id="MM1_JTAG_Config-file"></a><h2><span class="editsection">[<a href="http://milkymist.org/wiki/index.php?title=Working_ftdi_eeprom&amp;action=edit&amp;section=3" title="Edit section: MM1 JTAG Config-file">edit</a>]</span> <span class="mw-headline"> MM1 JTAG Config-file </span></h2>
<p>The config-file I use <i>ftdi-source.conf</i>&nbsp;:
</p>
<pre> vendor_id=0x20b7
 product_id=0x0713
 self_powered=false
 remote_wakeup=false
 chip_type=2232H
 max_power=0
 in_is_isochronous=false
 out_is_isochronous=false
 suspend_pull_downs=false
 use_serial=false
 change_usb_version=false
 usb_version=0
 manufacturer="Milkymist"
 product="Milkymist USB JTAG/Serial"
 serial="08-15"
</pre>
<a name="Caution_.28RESET.29" id="Caution_.28RESET.29"></a><h2><span class="editsection">[<a href="http://milkymist.org/wiki/index.php?title=Working_ftdi_eeprom&amp;action=edit&amp;section=4" title="Edit section: Caution (RESET)">edit</a>]</span> <span class="mw-headline"> Caution (RESET)</span></h2>
<p>I only test this with the 2232H of the Milkymist JTAG.
</p><p>Use with caution.
</p><p>If the eeprom is blank, <i>--read-eeprom</i> make a config-file with blank parameter.
</p><p>The <i>--read-eeprom</i> command don't generate the invert en cbus parameter
</p><p><br />
If you break the config of the cable (your OS don't see it), you can reset with&nbsp;:
</p>
<ol><li> unplug the cable
</li><li> put the <b>pin 1</b> of the eeprom to the <b>ground</b> (USB connector is easy)
</li><li> plug the cable and verifie your OS found it
</li><li> remove the shunt <b>without</b> unplug the cable
</li><li> erase or reflash it
</li><li> replug-it and verifie
</li></ol>

<!-- 
NewPP limit report
Preprocessor node count: 5/1000000
Post-expand include size: 0/2097152 bytes
Template argument size: 0/2097152 bytes
Expensive parser function count: 0/100
-->

<!-- Saved in parser cache with key sbsql1-mw_:pcache:idhash:119-0!1!0!!en!2 and timestamp 20140823135741 -->
<div class="printfooter">
Retrieved from "<a href="index.php%3Ftitle=Working_ftdi_eeprom.html">http://milkymist.org/wiki/index.php?title=Working_ftdi_eeprom</a>"</div>
						<!-- end content -->
						<div class="visualClear"></div>
		</div>
	</div>
		</div>
		<div id="column-one">
	<div id="p-cactions" class="portlet">
		<h5>Views</h5>
		<div class="pBody">
			<ul>
	
				 <li id="ca-nstab-main" class="selected"><a href="index.php%3Ftitle=Working_ftdi_eeprom.html" title="View the content page [c]" accesskey="c">Page</a></li>
				 <li id="ca-talk" class="new"><a href="http://milkymist.org/wiki/index.php?title=Talk:Working_ftdi_eeprom&amp;action=edit&amp;redlink=1" title="Discussion about the content page [t]" accesskey="t">Discussion</a></li>
				 <li id="ca-edit"><a href="http://milkymist.org/wiki/index.php?title=Working_ftdi_eeprom&amp;action=edit" title="You can edit this page.&#10;Please use the preview button before saving [e]" accesskey="e">Edit</a></li>
				 <li id="ca-history"><a href="http://milkymist.org/wiki/index.php?title=Working_ftdi_eeprom&amp;action=history" title="Past versions of this page [h]" accesskey="h">History</a></li>			</ul>
		</div>
	</div>
	<div class="portlet" id="p-personal">
		<h5>Personal tools</h5>
		<div class="pBody">
			<ul>
				<li id="pt-anonuserpage"><a href="http://milkymist.org/wiki/index.php?title=User:124.244.181.48" title="The user page for the ip you&#039;re editing as [.]" accesskey="." class="new">124.244.181.48</a></li>
				<li id="pt-anontalk"><a href="http://milkymist.org/wiki/index.php?title=User_talk:124.244.181.48" title="Discussion about edits from this IP address [n]" accesskey="n" class="new">Talk for this IP</a></li>
				<li id="pt-anonlogin"><a href="http://milkymist.org/wiki/index.php?title=Special:UserLogin&amp;returnto=Working_ftdi_eeprom" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o">Log in / create account</a></li>
			</ul>
		</div>
	</div>
	<div class="portlet" id="p-logo">
		<a style="background-image: url(http://www.milkymist.org/wikilogo.png);" href="../wiki.html" title="Visit the main page [z]" accesskey="z"></a>
	</div>
	<script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
	<div class='generated-sidebar portlet' id='p-navigation'>
		<h5>Navigation</h5>
		<div class='pBody'>
			<ul>
				<li id="n-mainpage-description"><a href="../wiki.html">Main Page</a></li>
				<li id="n-portal"><a href="http://milkymist.org/wiki/index.php?title=Milkymist_Wiki:Community_Portal" title="About the project, what you can do, where to find things">Community portal</a></li>
				<li id="n-currentevents"><a href="http://milkymist.org/wiki/index.php?title=Milkymist_Wiki:Current_events" title="Find background information on current events">Current events</a></li>
				<li id="n-recentchanges"><a href="http://milkymist.org/wiki/index.php?title=Special:RecentChanges" title="The list of recent changes in the wiki [r]" accesskey="r">Recent changes</a></li>
				<li id="n-randompage"><a href="http://milkymist.org/wiki/index.php?title=Special:Random" title="Load a random page [x]" accesskey="x">Random page</a></li>
				<li id="n-help"><a href="http://milkymist.org/wiki/index.php?title=Help:Contents" title="The place to find out">Help</a></li>
			</ul>
		</div>
	</div>
	<div id="p-search" class="portlet">
		<h5><label for="searchInput">Search</label></h5>
		<div id="searchBody" class="pBody">
			<form action="http://milkymist.org/wiki/index.php?title=Special:Search" id="searchform"><div>
				<input id="searchInput" name="search" type="text" title="Search Milkymist Wiki [f]" accesskey="f" value="" />
				<input type='submit' name="go" class="searchButton" id="searchGoButton"	value="Go" title="Go to a page with this exact name if exists" />&nbsp;
				<input type='submit' name="fulltext" class="searchButton" id="mw-searchButton" value="Search" title="Search the pages for this text" />
			</div></form>
		</div>
	</div>
	<div class="portlet" id="p-tb">
		<h5>Toolbox</h5>
		<div class="pBody">
			<ul>
				<li id="t-whatlinkshere"><a href="http://milkymist.org/wiki/index.php?title=Special:WhatLinksHere/Working_ftdi_eeprom" title="List of all wiki pages that link here [j]" accesskey="j">What links here</a></li>
				<li id="t-recentchangeslinked"><a href="http://milkymist.org/wiki/index.php?title=Special:RecentChangesLinked/Working_ftdi_eeprom" title="Recent changes in pages linked from this page [k]" accesskey="k">Related changes</a></li>
<li id="t-specialpages"><a href="http://milkymist.org/wiki/index.php?title=Special:SpecialPages" title="List of all special pages [q]" accesskey="q">Special pages</a></li>
				<li id="t-print"><a href="http://milkymist.org/wiki/index.php?title=Working_ftdi_eeprom&amp;printable=yes" title="Printable version of this page [p]" accesskey="p">Printable version</a></li>				<li id="t-permalink"><a href="http://milkymist.org/wiki/index.php?title=Working_ftdi_eeprom&amp;oldid=1304" title="Permanent link to this version of the page">Permanent link</a></li>			</ul>
		</div>
	</div>
		</div><!-- end of the left (by default at least) column -->
			<div class="visualClear"></div>
			<div id="footer">
				<div id="f-poweredbyico"><a href="http://www.mediawiki.org/"><img src="skins/common/images/poweredby_mediawiki_88x31.png" alt="Powered by MediaWiki" /></a></div>
				<div id="f-copyrightico"><a href="http://www.milkymist.org/wiki/index.php?title=Copyright"><img src="skins/common/images/gnu-fdl.png" alt='GNU Free Documentation License 1.3 and CC-BY-SA 3.0 Unported' /></a></div>
			<ul id="f-list">
					<li id="lastmod"> This page was last modified on 24 June 2011, at 04:54.</li>
					<li id="viewcount">This page has been accessed 4,385 times.</li>
					<li id="copyright">Content is available under <a href="http://www.milkymist.org/wiki/index.php?title=Copyright" class="external " title="http://www.milkymist.org/wiki/index.php?title=Copyright">GNU Free Documentation License 1.3 and CC-BY-SA 3.0 Unported</a>.</li>
					<li id="privacy"><a href="http://milkymist.org/wiki/index.php?title=Milkymist_Wiki:Privacy_policy" title="Milkymist Wiki:Privacy policy">Privacy policy</a></li>
					<li id="about"><a href="http://milkymist.org/wiki/index.php?title=Milkymist_Wiki:About" title="Milkymist Wiki:About">About Milkymist Wiki</a></li>
					<li id="disclaimer"><a href="http://milkymist.org/wiki/index.php?title=Milkymist_Wiki:General_disclaimer" title="Milkymist Wiki:General disclaimer">Disclaimers</a></li>
			</ul>
		</div>
</div>

		<script type="text/javascript">if (window.runOnloadHook) runOnloadHook();</script>
<!-- Served in 0.199 secs. --></body></html>