免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3909 | 回复: 2
打印 上一主题 下一主题

kernel 通过 nfs 方式挂载rootfs失败 求助 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-11-12 11:46 |只看该作者 |倒序浏览
我现在在测试一个Ti的arm9的板子,nfs方式mount rootfs时总是失败,不清楚什么原因,具体描述如下:

板子是和主机直连的  bootloader是 uboot
配置好tftp 和 nfs 目录 后  sudo /etc/init.d/portmap,sudo /etc/init.d/nfs-kernel-server正常
tftp load kernel到内存 也正常,设置好启动参数后,从内存起动

U-Boot > tftpboot c3000000 uImage
TFTP from server 128.224.159.159; our IP address is 128.224.159.100
Filename 'uImage'.
Load address: 0xc3000000
Loading: #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #######################################################
done
Bytes transferred = 1945273 (1daeb9 hex)
U-Boot > bootm c3000000
## Booting kernel from Legacy Image at c3000000 ...
   Image Name:   Linux-2.6.27.25-WR3.0ar_small
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1945209 Bytes =  1.9 MB
   Load Address: c0008000
   Entry Point:  c0008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux................................................................................................................................ done, booting the kernel.
Linux version 2.6.27.25-WR3.0ar_small (ychen0@pek-lpgbuild6) (gcc version 4.3.2 (Wind River Linux Sourcery G++ 4.3-85) ) #1 PREEMPT Tue Nov 10 16:49:27 CST 2009
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Machine: DaVinci DA850 EVM
Memory policy: ECC disabled, Data cache writeback
DA0850 variant 0x0
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16240
Kernel command line: root=/dev/nfs rw nfsroot=128.224.159.159:/tftpboot/rootfs console=ttyS2,115200 mem=64M ip=128.224.159.100:128.224.159.159:128.224.159.1:255.255.255.1map:eth0ff
PID hash table entries: 256 (order: 8, 1024 bytes)
hwtimer: Added da8xx hw timer (da8xx gp timer 2) at index=0
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 60688KB available (3700K code, 260K data, 148K init)
SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 149.50 BogoMIPS (lpj=747520)
Mount-cache hash table entries: 512
Initializing cgroup subsys debug
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys bio
Initializing cgroup subsys devices
Initializing cgroup subsys memrlimit
Initializing cgroup subsys tc
CPU: Testing write buffer coherency: ok
net_namespace: 292 bytes
NET: Registered protocol family 16
DaVinci: 144 gpio irqs
Power Management for DaVinci initializing
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
musb_hdrc: version 6.0, cppi4.1-dma, peripheral, debug=0
Waiting for USB PHY clock good...
musb_hdrc: USB Peripheral mode controller at fee00000 using DMA, IRQ 58
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 204
TCP reno registered
NET: Registered protocol family 1
usb1 usb1: DA8XX OHCI
usb1 usb1: new USB bus registered, assigned bus number 1
usb1 usb1: irq 59, io mem 0x01e25000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Registering unionfs 2.2-mm
msgmni has been set to 118
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
LTT : ltt-relay init
Serial: 8250/16550 driver3 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a 16550A
serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a 16550A
serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a 16550A
console [ttyS2] enabled
brd: module loaded
console [netcon0] enabled
netconsole: network logging started
Driver 'sd' needs updating - please use bus_type methods
davinci_nand davinci_nand.1: Using 4-bit hardware ECC - Syndrome
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron NAND 512MiB 3,3V 8-bit)
Creating 4 MTD partitions on "davinci_nand.1":
0x00000000-0x001e0000 : "U-Boot"
0x001e0000-0x00200000 : "U-Boot Env"
0x00000000-0x00400000 : "Kernel in Nand"
0x00400000-0x20000000 : "NAND FileSystem"
davinci_nand davinci_nand.1: controller rev. 2.5
m25p80 spi1.0: m25p64 (8192 Kbytes)
Creating 3 MTD partitions on "m25p80":
0x00000000-0x00040000 : "U-Boot"
0x00040000-0x00044000 : "U-Boot Environment"
Moving partition 2: 0x00044000 -> 0x00050000
0x00050000-0x00800000 : "Linux"
dm_spi.1: davinci SPI Controller driver at 0xfef0e000 (irq = 56) use_dma=1
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
g_ether gadget: using random self ethernet address
g_ether gadget: using random host ethernet address
usb0: MAC 8a:e9:eb:43:69:68
usb0: HOST MAC 12:2c:e1:15:74:df
g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
g_ether gadget: g_ether ready
mice: PS/2 mouse device common for all mice
rtc-da830 rtc-da830.0: rtc core: registered rtc-da830 as rtc0
rtc-da830 rtc-da830.0: TI DA8xx Real Time Clock driver.
DAVINCI-WDT: DaVinci Watchdog Timer: heartbeat 60 sec
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: multipath personality registered for level -4
md: faulty personality registered for level -5
device-mapper: ioctl: 4.14.0-ioctl (2008-04-23) initialised: dm-devel@redhat.com
davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.17.
AIC3X Audio Codec 0.2
asoc: tlv320aic3x <-> davinci-i2s mapping ok
ALSA device list:
  #0: DA850 EVM (tlv320aic3x)
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
davinci_emac_probe: using random MAC addr: c39d7bb0
emac-mii: probed
rtc-da830 rtc-da830.0: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
eth0: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=1:00, id=7c0f1)
IP-Config: Unable to set interface netmask (-22).
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
Looking up port of RPC 100003/2 on 128.224.159.159
PHY: 1:00 - Link is Up - 100/Full
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 128.224.159.159
Root-NFS: Unable to get mountd port number from server, using default

dmesg | eth0
[ 1766.624762] 0000:00:19.0: eth0: 10/100 speed: disabling TSO
[ 1835.268119] 0000:00:19.0: eth0: Link is Down
[ 1838.576764] 0000:00:19.0: eth0: Link is Up 100 Mbps Full Duplex, Flow Control: None
[ 1838.576766] 0000:00:19.0: eth0: 10/100 speed: disabling TSO
[ 1898.072367] 0000:00:19.0: eth0: Link is Down
[ 1899.692763] 0000:00:19.0: eth0: Link is Up 100 Mbps Full Duplex, Flow Control: RX/TX
[ 1899.692765] 0000:00:19.0: eth0: 10/100 speed: disabling TSO
[ 1995.568122] 0000:00:19.0: eth0: Link is Down
[ 2001.332756] 0000:00:19.0: eth0: Link is Up 100 Mbps Full Duplex, Flow Control: RX/TX
[ 2001.332758] 0000:00:19.0: eth0: 10/100 speed: disabling TSO
......................................


nfs配置也是按照一般方法配置的,应该不会有什么问题
请你帮我看看可能是什么地方的问题,谢谢!

论坛徽章:
0
2 [报告]
发表于 2009-11-12 16:19 |只看该作者
你可以先用抓包工具定位一下问题的原因,应该和开发板上网卡的驱动有关

davinci_emac_probe: using random MAC addr: c39d7bb0
emac-mii: probed
rtc-da830 rtc-da830.0: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
eth0: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=1:00, id=7c0f1)
IP-Config: Unable to set interface netmask (-22).

论坛徽章:
0
3 [报告]
发表于 2009-11-12 17:18 |只看该作者
谢谢!问题已经解决了
主要原因是 /etc/hosts.deny下的有一行  portmap:ALL, 将其注释掉就好了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP