嵌入式爱好者

查看: 66248|回复: 1

[Linux] MX6UL-S核心板 自制底板NET1网口正常,但NET2网口无法ping通

[复制链接]

1

主题

1

帖子

12

积分

i.MX6UL通行证

扫一扫,手机访问本帖
发表于 2021-4-16 23:53:24 | 显示全部楼层 |阅读模式
如题,采用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网卡不正常的原因,谢谢!
回复

使用道具 举报

0

主题

55

帖子

344

积分

LS1012A通行证LS1043A\46A通行证A40i/T3/T507/T527通行证i.MX8MM通行证RK3399通行证LS1028A通行证AM5718通行证Hi3519A通信证AM335x通行证i.MX6UL通行证i.MX RT通行证i.MX6Q通行证XX18通行证TCU通行证FDU产品通行证FCU1401通行证FCU1301通行证FCU11xx通行证FCU1201通行证FCU2301/FCU2302通行证FCU2401通行证5G转接卡通行证

发表于 2021-4-20 11:28:34 | 显示全部楼层
你说的ping不同,是怎么ping不通?ping不通局域网还是外网?
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-11-24 18:11

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表