当前位置: 技术问答>linux和unix
AT91SAM9260EK 开发板移植nfs出现的问题:内核无法打开eth0
来源: 互联网 发布时间:2017-04-28
本文导语: 准备在AT91SAM9260EK搭建nfs文件系统,设置开发平台。 但在开发板内核启动中报错如下: RPC: Registered udp transport module. RPC: Registered tcp transport module. rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock IP-Config:...
准备在AT91SAM9260EK搭建nfs文件系统,设置开发平台。
但在开发板内核启动中报错如下:
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
IP-Config: Failed to open eth0
IP-Config: Device `eth0' not found.
Looking up port of RPC 100003/2 on 192.168.0.211
rpcbind: server 192.168.0.211 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.0.211
rpcbind: server 192.168.0.211 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
mount: server 192.168.0.211 not responding, timed out
我判断是内核没有启动网络设备,但网络设备是正常的,又怀疑是内核配置原因,但不知是什么地方,请各位大虾帮忙!
具体配置如下:
Linux内核:linux2.6.24
补丁:2.6.24-at91.patch.gz
2.6.24-at91-exp.patch.gz
补丁来自atmel官方网站:http://www.at91.com/linux4sam/bin/view/Linux4SAM/LinuxKernel
一、使用cramfs文件系统,系统正常启动,网络正常,可以ping通host
内核配置: make at91sam9260ek_defconfig
二、使用nfs文件系统,无法从nfs服务器启动,经网络抓包工具查探,开发板无任何数据从网络口发出
内核配置:在at91sam9260ek_defconfig的基础上再加上以下配置
1. 选中 Networking --->
Networking options --->
[*] IP: kernel level autoconfiguration
[*] IP: DHCP support
[*] IP: BOOTP support
[*] IP: RARP support
2. Device Drivers --->
Block devices --->
Network block device support
3. 选中 Device Drivers --->
Ethernet (10 or 100Mbit) --->
Atmel MACB support
4. 选中 File systems --->
Network File Systems --->
NFS file system support
[*] Provide NFSv3 client support
[*] Provide client support for the NFSv3 ACL protocol extension
[*] Provide NFSv4 client support (EXPERIMENTAL)
[*] Root file system on NFS
但在开发板内核启动中报错如下:
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
IP-Config: Failed to open eth0
IP-Config: Device `eth0' not found.
Looking up port of RPC 100003/2 on 192.168.0.211
rpcbind: server 192.168.0.211 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.0.211
rpcbind: server 192.168.0.211 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
mount: server 192.168.0.211 not responding, timed out
我判断是内核没有启动网络设备,但网络设备是正常的,又怀疑是内核配置原因,但不知是什么地方,请各位大虾帮忙!
具体配置如下:
Linux内核:linux2.6.24
补丁:2.6.24-at91.patch.gz
2.6.24-at91-exp.patch.gz
补丁来自atmel官方网站:http://www.at91.com/linux4sam/bin/view/Linux4SAM/LinuxKernel
一、使用cramfs文件系统,系统正常启动,网络正常,可以ping通host
内核配置: make at91sam9260ek_defconfig
二、使用nfs文件系统,无法从nfs服务器启动,经网络抓包工具查探,开发板无任何数据从网络口发出
内核配置:在at91sam9260ek_defconfig的基础上再加上以下配置
1. 选中 Networking --->
Networking options --->
[*] IP: kernel level autoconfiguration
[*] IP: DHCP support
[*] IP: BOOTP support
[*] IP: RARP support
2. Device Drivers --->
Block devices --->
Network block device support
3. 选中 Device Drivers --->
Ethernet (10 or 100Mbit) --->
Atmel MACB support
4. 选中 File systems --->
Network File Systems --->
NFS file system support
[*] Provide NFSv3 client support
[*] Provide client support for the NFSv3 ACL protocol extension
[*] Provide NFSv4 client support (EXPERIMENTAL)
[*] Root file system on NFS
|
eth0: Atmel MACB at 0xfffc4000 irq 21 (00:00:00:00:00:00)
mac地址全为0,
临时方案:
你可以先进u-boot命令行,ping一下,然后在不断电的情况下重启内核,试试
上策:
修改u-boot,通过mac的相关寄存器传递mac地址给内核
mac地址全为0,
临时方案:
你可以先进u-boot命令行,ping一下,然后在不断电的情况下重启内核,试试
上策:
修改u-boot,通过mac的相关寄存器传递mac地址给内核
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。