⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usb_add-on_card.html

📁 ADI 公司blackfin系列的用户使用文挡。
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head>  <title></title>  <link rel="stylesheet" media="screen" type="text/css" href="./style.css" />  <link rel="stylesheet" media="screen" type="text/css" href="./design.css" />  <link rel="stylesheet" media="print" type="text/css" href="./print.css" />  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><a href=start.html>start</a></br><div class="toc"><div class="tocheader toctoggle" id="toc__header">Table of Contents</div><div id="toc__inside"><ul class="toc"><li class="level1"><div class="li"><span class="li"><a href="#stamp_board_usb_add-on_card" class="toc">Stamp Board USB Add-on Card</a></span></div><ul class="toc"><li class="level2"><div class="li"><span class="li"><a href="#description" class="toc">Description</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#jumpers_setting_on_usb_add-on_card" class="toc">Jumpers setting on USB Add-on Card</a></span></div><ul class="toc"><li class="level3"><div class="li"><span class="li"><a href="#settings_for_bf533-stamp" class="toc">Settings for BF533-STAMP</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#settings_for_bf537-stamp" class="toc">Settings for BF537-STAMP</a></span></div></li></ul></li><li class="level2"><div class="li"><span class="li"><a href="#linux_kernel_configuration" class="toc">Linux Kernel Configuration</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#test_usb_flash_disk" class="toc">Test USB Flash Disk</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#test_usb_network_adaptor" class="toc">Test USB Network Adaptor</a></span></div></li></ul></li></ul></div></div><h1><a name="stamp_board_usb_add-on_card" id="stamp_board_usb_add-on_card">Stamp Board USB Add-on Card</a></h1><div class="level1"><p> <a href="media/usb_addoncard2_low_res.jpg" class="media" target="_blank" title="usb_addoncard2_low_res.jpg"><img src="media/usb_addoncard2_low_res.jpg" class="media" alt="" /></a></p></div><!-- SECTION [1-75] --><h2><a name="description" id="description">Description</a></h2><div class="level2"><p>This USB Card is designed for stamp board. Which has two USB chips on it: one is SL811HS and another is ISP1362. The SL811HS is an Embedded USB Host/Slave Controller capable of communicating in either full speed (12 Mbps) or low-speed (1.5 Mbps). SL811HS can work in two modes鈥攈ost or slave, but is not On The Go (OTG). Data sheet can be found at <a href="http://www.cypress.com/portal/server.pt?space=CommunityPage&amp;control=SetCommunity&amp;CommunityID=209&amp;PageID=259&amp;fid=10&amp;rpn=SL811HS" class="urlextern" title="http://www.cypress.com/portal/server.pt?space=CommunityPage&amp;control=SetCommunity&amp;CommunityID=209&amp;PageID=259&amp;fid=10&amp;rpn=SL811HS"  rel="nofollow">here</a>.</p><p>The Philips ISP1362 which is a single-chip Universal Serial Bus (USB) On-The-Go (OTG) controller integrated with an Slave Host Controller. It has two USB ports: port 1 and port 2. Port 1 can be hardware configured to function as a downstream port, an upstream port or an OTG port whereas port 2 can only be used as a downstream port. The OTG port can switch roles from host to peripheral, or from peripheral to host. The OTG port can become a host through the Host Negotiation Protocol (HNP) as specified in the OTG supplement. You can find more information <a href="http://www.semiconductors.philips.com/pip/ISP1362EE.html" class="urlextern" title="http://www.semiconductors.philips.com/pip/ISP1362EE.html"  rel="nofollow">here</a>.</p><p>You can get the USB card&rsquo;s schematic and PCM layout <a href="http://blackfin.uclinux.org/frs/?group_id=7&amp;release_id=262" class="urlextern" title="http://blackfin.uclinux.org/frs/?group_id=7&amp;release_id=262"  rel="nofollow">here</a>.</p><p></p></div><!-- SECTION [76-1434] --><h2><a name="jumpers_setting_on_usb_add-on_card" id="jumpers_setting_on_usb_add-on_card">Jumpers setting on USB Add-on Card</a></h2><div class="level2"><p>Set J3 to choose a PF pin as interrupt for ISP1362. Set J5 to choose a PF pin as interrupt for SL811HS. Jumpers on J3 and J5 are divided into two category, one is for BF533 stamp board, another is for BF537 stamp board. The setting should be concurrent with the kernel configuration. Don&rsquo;t select the same pair of pins for ISP1362 and SL811HS.</p></div><!-- SECTION [1435-1826] --><h3><a name="settings_for_bf533-stamp" id="settings_for_bf533-stamp">Settings for BF533-STAMP</a></h3><div class="level3"><table class="inline">	<tr>		<th>Jumpers to setting </th><th> PF pin </th>	</tr>	<tr>		<td> 1-2 </td><td> PF4 </td>	</tr>	<tr>		<td> 3-4 </td><td> PF8 </td>	</tr>	<tr>		<td> 5-6 </td><td> PF9 </td>	</tr>	<tr>		<td> 7-8 </td><td> PF14 </td>	</tr>	<tr>		<td> 9-10 </td><td> PF15 </td>	</tr></table><br /><p> In order to make BF533 to work with USB-LAN extender, the CPLD on BF533-Stamp Board need to be reprogrammed. For how to reprogram CPLD, please refer to <a href="cpld_programming.html" class="wikilink1" title="cpld_programming.html">CPLD programming</a>. The CPLD file is <a href="media/stamp_cpld_asm3.zip" class="media" target="_blank" title="stamp_cpld_asm3.zip">stamp_cpld_asm3.zip</a>.</p></div><!-- SECTION [1827-2184] --><h3><a name="settings_for_bf537-stamp" id="settings_for_bf537-stamp">Settings for BF537-STAMP</a></h3><div class="level3"><ul><li class="level1"><div class="li"> On the USB Board:</div></li></ul><table class="inline">	<tr>		<th>Jumpers to setting </th><th> PF pin </th>	</tr>	<tr>		<td> 11-12 </td><td> PF3 </td>	</tr>	<tr>		<td> 13-14 </td><td> PF4 </td>	</tr>	<tr>		<td> 15-16 </td><td> PF5 </td>	</tr>	<tr>		<td> 17-18 </td><td> PF6 </td>	</tr>	<tr>		<td> 19-20 </td><td> PF7 </td>	</tr></table><br /><ul><li class="level1"><div class="li"> Set sw6.4 to off, to disconnect Asynchronous Memory banks 3 from the NOR Flash on the STAMP board.</div></li><li class="level1"><div class="li"> If choose PF2 to PF5 as the interrupt pin for ISP1362 and SL811HS, the correspondent switch on sw5 need to be set to off according to the following table.</div></li></ul><table class="inline">	<tr>		<th> PF pin </th><th> switch </th>	</tr>	<tr>		<td> PF2 </td><td> sw5.1 </td>	</tr>	<tr>		<td> PF3 </td><td> sw5.2 </td>	</tr>	<tr>		<td> PF4 </td><td> sw5.3 </td>	</tr>	<tr>		<td> PF5 </td><td> sw5.4 </td>	</tr></table><br /></div><!-- SECTION [2185-2702] --><h2><a name="linux_kernel_configuration" id="linux_kernel_configuration">Linux Kernel Configuration</a></h2><div class="level2"><p>Enable GPIO IRQ demux and configure asynchronous memory.</p><pre class="code">Blackfin Processor Options ---&gt;      --- Asynchronous Memory Configuration          EBIU_AMBCTL Control  ---&gt;                  (0xAAC2) Bank 3</pre><p> Configure USB Host</p><pre class="code">USB support  ---&gt;    &lt;*&gt; Support for Host-side USB    &lt;*&gt; ISP1362 HCD support    (3)  PF pin for Interrupt    &lt;*&gt; SL811HS HCD support    (4)  PF pin for Interrupt</pre><p> Bellow setting are based on the usb device you are going to use: </p><ul><li class="level1"><div class="li"> To use USB Mass Storage device, like a USB flash disk, select:</div></li></ul><pre class="code"> USB support  ---&gt;    &lt;*&gt; USB Mass Storage support SCSI device support ---&gt;     --- SCSI device support     &lt;*&gt; SCSI disk support     [*] Probe all LUNs on each SCSI device File systems ---&gt;   DOS/FAT/NT Filesystems ---&gt;     &lt;*&gt; MSDOS fs support       &lt;*&gt; VFAT (Windows-95) fs support          (437) Default codepage for FAT          (iso8859-1) Default iocharset for FAT     Native Language Support ---&gt;     --- Base native language support      (iso8859-1) Default NLS Option      &lt;*&gt;   Codepage 437 (United States, Canada)     &lt;*&gt;   NLS ISO 8859-1  (Latin 1; Western European Languages)</pre><ul><li class="level1"><div class="li"> To use USB HID devices</div></li></ul><pre class="code"> USB support  ---&gt;    &lt;*&gt; USB Human Interface Device (full HID) support    [*]   HID input layer support Input device support ---&gt;     &lt;*&gt; Generic input layer (needed for keyboard, mouse, ...)     &lt;*&gt; Mouse interface     (1024) Horizontal screen resolution     (768) Vertical screen resolution     &lt;*&gt; Event interface     [*] Keyboards ---&gt;     [*] Mouse ---&gt;</pre><ul><li class="level1"><div class="li"> To enable ethernet over usb:</div></li></ul><pre class="code"> USB support  ---&gt;        USB Network Adaptors ---&gt;             &lt;*&gt; USB RTL8150 based ethernet device support (EXPERIMENTAL)</pre></div><!-- SECTION [2703-4517] --><h2><a name="test_usb_flash_disk" id="test_usb_flash_disk">Test USB Flash Disk</a></h2><div class="level2"><p>After booting the kernel, plug the USB Flash Disk to the USB port, you will see message like:</p><pre class="code">usb 1-2: new full speed USB device using isp1362-hcd and address 4usb 1-2: configuration #1 chosen from 1 choicescsi2 : SCSI emulation for USB Mass Storage devices  Vendor: USB       Model: Flash Disk        Rev: 1.06  Type:   Direct-Access                      ANSI SCSI revision: 00SCSI device sda: 128928 512-byte hdwr sectors (66 MB)sda: Write Protect is offsda: assuming drive cache: write throughSCSI device sda: 128928 512-byte hdwr sectors (66 MB)sda: Write Protect is offsda: assuming drive cache: write through sda:&lt;7&gt;usb-storage: queuecommand called sda1sd 2:0:0:0: Attached scsi removable disk sdasd 2:0:0:0: Attached scsi generic sg0 type 0</pre><p>Mount &ldquo;/dev/sda1&rdquo; to &ldquo;/mnt&rdquo;</p><pre class="code"># mount -t vfat /dev/sda1 /mnt</pre><p>You can try to do R/W on the flash disk.</p></div><!-- SECTION [4518-5442] --><h2><a name="test_usb_network_adaptor" id="test_usb_network_adaptor">Test USB Network Adaptor</a></h2><div class="level2"><p>Assume your Linux host is Suse 9.1</p><ol><li class="level1"><div class="li">  Compile uClinux and download image to Bf537 stamp board. </div></li><li class="level1"><div class="li">  After kernel is start up. Plug in the USB Network Adaptor.</div></li><li class="level1"><div class="li">  Run &ldquo;ifconfig -a&rdquo;. There is an ethernet interface named eth1 added.</div></li><li class="level1"><div class="li">  Plug the ethernet cable.</div></li><li class="level1"><div class="li">  Configure  eth1 interface. <pre class="code">dhcp eth1 &amp;</pre></div></li><li class="level1"><div class="li">  Run any network application normally. For example:<pre class="code">Linux:~ # ping 192.168.7.1PING 192.168.7.1 (192.168.7.1) 56(84) bytes of data.64 bytes from 192.168.7.1: icmp_seq=1 ttl=64 time=2.11 ms64 bytes from 192.168.7.1: icmp_seq=2 ttl=64 time=0.256 ms64 bytes from 192.168.7.1: icmp_seq=3 ttl=64 time=0.302 ms64 bytes from 192.168.7.1: icmp_seq=4 ttl=64 time=0.196 ms64 bytes from 192.168.7.1: icmp_seq=5 ttl=64 time=0.323 ms64 bytes from 192.168.7.1: icmp_seq=6 ttl=64 time=0.151 ms--- 192.168.7.1 ping statistics ---6 packets transmitted, 6 received, 0% packet loss, time 5002msrtt min/avg/max/mdev = 0.151/0.556/2.111/0.698 ms</pre></div></li></ol></div><!-- SECTION [5443-] --></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -