在FPGA上调试USB网卡,接下来看步骤:

1、插入网卡 一看是有信息的:

   [ 1218.226759] usb 1-1: new full-speed USB device number 5 using dwc2
    [ 1218.447904] usb 1-1: device v0fe6 p8101 is not supported
    [ 1218.460906] usb 1-1: New USB device found, idVendor=0fe6, idProduct=8101
    [ 1218.474139] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=3
    [ 1218.488615] usb 1-1: Product: USB Network Controller
    [ 1219.156156] dm9601 1-1:1.0 eth0: register 'dm9601' at usb-dwc2-1, Davicom DM9601 USB Ethernet, 00:10:14:00:61:eb

2、使用ifconfig 命令是没有想要的eth0的

[root@buildroot ~]# ifconfig 
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  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:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

3、解决办法很简单:

主要原因就是eth0没有开启
执行:root@buildroot ~]# ifconfig eth0 up

4、完成

[root@buildroot ~]# ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:10:14:00:61:EB  
          UP 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)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:616 (616.0 B)  TX bytes:616 (616.0 B)
Logo

更多推荐