- 积分
- 12
贡献84
飞刀22 FD
注册时间2020-12-19
在线时间2 小时
扫一扫,手机访问本帖
|
如题,采用MX6UL-S核心板 + 自制底板,自制底板基于官方MX6UL-S底板原理图和PCB修改,去除大部分设计,保留上电复位电路(包括SN74HC595D)、双网卡、USB、SD卡、RTC时钟、启动方式等。调试双网卡时,发现NET1网卡(对应eth1)可正常工作,但NET2网卡(对应eth0)ping不通。双网卡电路原理图没改动。具体现象如下:
1. 连上网线后,RJ45的LINK灯是常绿的,DATA灯黄色一闪一闪的;插拔网线,debug串口都能正常打印信息:
root@fl-imx6ull:~#
root@fl-imx6ull:~# fec 20b4000.ethernet eth0: Link is Down
fec 20b4000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
2. 系统启动时,NET1网卡初始化正常:
Starting udev
udevd[122]: starting version 3.1.5
bootlogd: cannot allocate pseudo tty: No such file or directory
1-0030 supply DOVDD not found, using dummy regulator
1-0030 supply DVDD not found, using dummy regulator
1-0030 supply AVDD not found, using dummy regulator
ov9650_read_reg:write reg error:reg=1c
camera ov9650 is not found
FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
ALSA: Restoring mixer settings...
/usr/sbin/alsactl: load_state:1735: No soundcards found...
INIT: Entering runlevel: 5
Configuring network inte**ces... fec 20b4000.ethernet eth0: Freescale FEC PHY driver [Micrel KSZ8081 or KSZ8091] (mii_bus:phy_addr=20b4000.ethernet:01, irq=-1)
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
fec 2188000.ethernet eth1: Freescale FEC PHY driver [Micrel KSZ8081 or KSZ8091] (mii_bus:phy_addr=20b4000.ethernet:02, irq=-1)
IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
done.
Starting system message bus: dbus.
Starting Dropbear SSH server: dropbear.
Starting rpcbind daemon...done.
Starting advanced power management daemon: No APM support in kernel
(failed.)
Starting syslogd/klogd: done
* Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
...done.
Starting Telephony daemon
Starting Linux NFC daemon
Running local boot scripts (/etc/rc.local).
Freescale i.MX Release Distro 4.1.15-2.0.0 fl-imx6ull /dev/ttymxc0
fl-imx6ull login: fec 20b4000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Freescale i.MX Release Distro 4.1.15-2.0.0 fl-imx6ull /dev/ttymxc0
fl-imx6ull login:
3. 在debug串口ifconfig信息如下。看起来可以发送数据,但不能接收数据。
fl-imx6ull login: root
-sh: /home/root: Is a directory
root@fl-imx6ull:~#
root@fl-imx6ull:~# ifconfig
eth0 Link encap:Ethernet HWaddr 72:D9:B8:EB:67:45
inet addr:192.168.0.232 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::70d9:b8ff:feeb:6745%1995790032/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:5474 (5.3 KiB)
eth1 Link encap:Ethernet HWaddr 1A:1C:48:2D:22:3B
inet addr:192.168.1.232 Bcast:192.168.1.255 Mask:255.255.255.0
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
inet6 addr: ::1%1995790032/128 Scope:Host
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)
root@fl-imx6ull:~#
4. MX6UL-S核心板固件为出厂的,没做任何改动
5. CSI接口复用为了SDIO2接WIFI模块AP6181、复用SPI接了一颗芯片,按理应该对NET1网卡没有影响
麻烦看下上面NET1网卡不正常的原因,谢谢!
|
|