📄 blackfin_usb-lan_extender.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="#blackfin_usb-lan_extender" class="toc">Blackfin USB-LAN extender</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="#hardware_setting_on_stamp_board" class="toc">Hardware setting on stamp board</a></span></div><ul class="toc"><li class="level3"><div class="li"><span class="li"><a href="#bf537_stamp_board" class="toc">BF537 Stamp Board</a></span></div></li><li class="level3"><div class="li"><span class="li"><a href="#bf533_stamp_board" class="toc">BF533 Stamp Board</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="#work_with_linux_host" class="toc">Work with Linux Host</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#work_with_windows_host" class="toc">Work with Windows Host</a></span></div></li></ul></li></ul></div></div><h1><a name="blackfin_usb-lan_extender" id="blackfin_usb-lan_extender">Blackfin USB-LAN extender</a></h1><div class="level1"></div><!-- SECTION [1-41] --><h2><a name="description" id="description">Description</a></h2><div class="level2"><p>The usb-lan externder is an commercial product for Blackfin ADSP-BF53x/BF561 EZ-Kit. For more information about the card, please refer to <a href="http://www.analog.com/en/epHSProd/0,2461,BF-EXTENDERUL,00.html" class="urlextern" title="http://www.analog.com/en/epHSProd/0,2461,BF-EXTENDERUL,00.html" rel="nofollow">Analog</a>. You can also get <a href="http://www.analog.com/UploadedFiles/Associated_Docs/380433683Blackfin_USB_LAN_EZ_Extender_Manual_Rev_1.0.pdf" class="urlextern" title="http://www.analog.com/UploadedFiles/Associated_Docs/380433683Blackfin_USB_LAN_EZ_Extender_Manual_Rev_1.0.pdf" rel="nofollow">Manual</a> directly. There is an USB client chip net2272 on it. <a href="http://www.plxtech.com/products/net2000/NET2272/default.asp" class="urlextern" title="http://www.plxtech.com/products/net2000/NET2272/default.asp" rel="nofollow">Net2272</a> is USB 2.0 compliant and support high speed. </p></div><!-- SECTION [42-587] --><h2><a name="hardware_setting_on_stamp_board" id="hardware_setting_on_stamp_board">Hardware setting on stamp board</a></h2><div class="level2"></div><!-- SECTION [588-632] --><h3><a name="bf537_stamp_board" id="bf537_stamp_board">BF537 Stamp Board</a></h3><div class="level3"><p>Set sw6.4 to off.</p></div><!-- SECTION [633-679] --><h3><a name="bf533_stamp_board" id="bf533_stamp_board">BF533 Stamp Board</a></h3><div class="level3"><p>In order to make BF533 to work with USB-LAN extener, 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 [680-923] --><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 ---> [*] Enable GPIO IRQ Demultiplexing --- Asynchronous Memory Configuration EBIU_AMBCTL Control ---> (0x3592) Bank 3</pre><p> Configure USB client as ethernet</p><pre class="code">USB support ---> USB Gadget Support ---> <*> Support for USB Gadgets <*> USB Gadget Drivers (Ethernet Gadget (with CDC ethernet support)) Ethernet Gadget (with CDC Ethernet support) [*] RNDIS support (EXPERIMENTAL)</pre></div><!-- SECTION [924-1554] --><h2><a name="work_with_linux_host" id="work_with_linux_host">Work with Linux Host</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 dowload image to Bf537 stamp board. </div></li><li class="level1"><div class="li"> After kernel is startup, run “ifconfig -a”. The output includes following information. <pre class="code">usb0 Link encap:Ethernet HWaddr 26:08:A9:45:6D:9F BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000</pre></div></li><li class="level1"><div class="li"> Configure usb0 interface. Don’t let the IP confilict with eth0’s IP address.<pre class="code">ifconfig usb0 192.168.7.1</pre></div></li><li class="level1"><div class="li"> Connect Stamp board to Linux Host with USB cable. On Stamp board’s console, it show: <pre class="code">usb0: high speed config #1: 100 mA, Ethernet Gadget, using CDC Ethernet</pre></div></li><li class="level1"><div class="li"> On Linux host, enter root user mode. Run “ifconfig -a “. The output includes following information, which is the same with on stamp board. <pre class="code">usb0 Link encap:Ethernet HWaddr 5E:9D:75:3E:1E:C5 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)</pre></div></li><li class="level1"><div class="li"> Configure usb0 interface on Linux Host.<pre class="code">ifconfig usb0 192.168.7.2</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 [1555-3565] --><h2><a name="work_with_windows_host" id="work_with_windows_host">Work with Windows Host</a></h2><div class="level2"><p>Assume your Windows Host is Windows XP.</p><ol><li class="level1"><div class="li"> Copy file uClinux-dist/linux-2.6.x/Documentation/usb/linux.inf from linux kernel source to your Windows Host.</div></li><li class="level1"><div class="li"> Convert linux.inf to DOS format. You can also do this before you copy it to Windows Host.</div></li><li class="level1"><div class="li"> Conect stamp board to Windows host by USB cable. </div></li><li class="level1"><div class="li"> Found New Hardware Wizard appears. Choose Install from a list or specific location(Advanced), click Next.</div></li><li class="level1"><div class="li"> Choose “Search for the best driver in these locations”, uncheck “Search remvable media(floppy, CD-ROM...). Check “Include this location in the search:”, use Browse to find the file linux.inf.</div></li><li class="level1"><div class="li"> This is a warning of “not passed Windows Logo testing”. Choose “Continue Anyway”.</div></li><li class="level1"><div class="li"> Choose “Next” to finished.</div></li><li class="level1"><div class="li"> Open Network Connections. There is a new “Local Area Connection ?”, assign an IP for it just like other ethernet card. </div></li></ol></div><!-- SECTION [3566-] --></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -