主题 : 通过NFS启动系统有问题 复制链接 | 浏览器收藏 | 打印
lpz
级别: 新手上路
UID: 9843
精华: 0
发帖: 9
金钱: 90 两
威望: 45 点
综合积分: 18 分
注册时间: 2009-10-15
最后登录: 2009-10-21
楼主  发表于: 2009-10-20 11:18

 通过NFS启动系统有问题

按照手册上一步步来的,但nfs一直挂不上,望高人指点!!
一下是显示的全部信息

Supervivi> param set linux_cmd_line "console=ttySAC0 root=/dev/nfs nfsroot=202.4
.155.28:/opt/mini2440/root_nfs ip=202.4.155.128:202.4.155.28:202.4.155.1:255.255
.255.0:sbc2440.arm9.net:eth0:off"
Change linux command line to "console=ttySAC0 root=/dev/nfs nfsroot=202.4.155.28
:/opt/mini2440/root_nfs ip=202.4.155.128:202.4.155.28:202.4.155.1:255.255.255.0:
sbc2440.arm9.net:eth0:off"
Supervivi> boot
Copy linux kernel from 0x00050000 to 0x30008000, size = 0x00200000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "console=ttySAC0 root=/dev/nfs nfsroot=202.4.155.28:/opt/
mini2440/root_nfs ip=202.4.155.128:202.4.155.28:202.4.155.1:255.255.255.0:sbc244
0.arm9.net:eth0:off"
MACH_TYPE = 782
NOW, Booting Linux......
Uncompressing Linux.............................................................
............................................ done, booting the kernel.
Linux version 2.6.13 (root@capcross) (gcc version 3.4.1) #19 Sun Sep 7 23:05:51
CST 2008
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
Machine: QQ2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
BUG: mapping for 0x19000000 at 0xd0000000 overlaps vmalloc space
S3C2440: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz
S3C2410 Clocks, (c) 2004 Simtec Electronics
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists
Kernel command line: console=ttySAC0 root=/dev/nfs nfsroot=202.4.155.28:/opt/min
i2440/root_nfs ip=202.4.155.128:202.4.155.28:202.4.155.1:255.255.255.0:sbc2440.a
rm9.net:eth0:off
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 512 (order: 9, 8192 bytes)
timer tcon=00000000, tcnt a4ca, tcfg 00000200,00000000, usec 00001e57
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 61056KB available (2532K code, 1034K data, 144K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
USB Power Control, (c) 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C2440: Clock Support, UPLL 48.000 MHz
SCSI subsystem initialized
usbcore: registered new driver hub
S3C2410 DMA Driver, (c) 2003-2004 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
NetWinder Floating Point Emulator V0.97 (double precision)
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
yaffs Sep  7 2008 23:01:44 Installing.
Initializing Cryptographic API
Console: switching to colour frame buffer device 30x20
S3C24X0 fb0: s3c2410fb frame buffer device initialize done
GPIO L3 bus interface for S3C2440, installed
S3C2410 RTC, (c) 2004 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
leds initialized
buttons initialized
qq2440_pwm initialized
s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
nbd: registered device at major 43
DM9000 ethernet driver V1.26 I/O: c481a300, VID: 90000a46
Linux video capture interface: v1.00
ovcamchip: v2.27 for Linux 2.6 : OV camera chip I2C driver
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand: mapped registers at c4880000
s3c2440-nand: timing: Tacls 9ns, Twrph0 39ns, Twrph1 9ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit
)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Bad eraseblock 1763 at 0x01b8c000
Bad eraseblock 3730 at 0x03a48000
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00030000 : "bootloader"
0x00050000-0x00250000 : "kernel"
0x00250000-0x03ffc000 : "root"
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.01:USB HID core driver
usbcore: registered new driver ov511
drivers/usb/media/ov511.c: v1.64 for Linux 2.5 : ov511 USB Camera Driver
usbcore: registered new driver gspca
drivers/usb/media/gspca/gspca_core.c: gspca driver 00.60.00 registered
mice: PS/2 mouse device common for all mice
ts: Compaq touchscreen protocol output
s3c2410 TouchScreen successfully loaded
i2c /dev entries driver
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 98 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
s3c2410-sdi s3c2410-sdi: powered down.
s3c2410-sdi s3c2410-sdi: initialisation done.
SBC2440 SOUND driver register
s3c2410-sdi s3c2410-sdi: running at 0kHz (requested: 0kHz).
SBC2440 SOUND driver probe!
SBC2440 UDA1341 audio driver initialized
NET: Registered protocol family 2
s3c2410-sdi s3c2410-sdi: running at 198kHz (requested: 197kHz).
s3c2410-sdi s3c2410-sdi: running at 198kHz (requested: 197kHz).
s3c2410-sdi s3c2410-sdi: s3cmci_request: no card
s3c2410-sdi s3c2410-sdi: running at 198kHz (requested: 197kHz).
s3c2410-sdi s3c2410-sdi: s3cmci_request: no card
s3c2410-sdi s3c2410-sdi: s3cmci_request: no card
s3c2410-sdi s3c2410-sdi: s3cmci_request: no card
s3c2410-sdi s3c2410-sdi: s3cmci_request: no card
s3c2410-sdi s3c2410-sdi: s3cmci_request: no card
s3c2410-sdi s3c2410-sdi: s3cmci_request: no card
s3c2410-sdi s3c2410-sdi: powered down.
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
enable_irq(51) unbalanced from c0173b50
IP-Config: Complete:
      device=eth0, addr=202.4.155.128, mask=255.255.255.0, gw=202.4.155.1,
     host=sbc2440, domain=, nis-domain=arm9.net,
     bootserver=202.4.155.28, rootserver=202.4.155.28, rootpath=
Looking up port of RPC 100003/2 on 202.4.155.28
portmap: server 202.4.155.28 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 202.4.155.28
portmap: server 202.4.155.28 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
Root-NFS: Server returned error -5 while mounting /opt/mini2440/root_nfs
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
级别: 新手上路
UID: 7051
精华: 0
发帖: 23
金钱: 250 两
威望: 140 点
综合积分: 46 分
注册时间: 2009-06-29
最后登录: 2010-04-19
1楼  发表于: 2009-10-30 21:41
楼上的问题解决了吗,我也遇到相同的问题
级别: 新手上路
UID: 10094
精华: 0
发帖: 7
金钱: 50 两
威望: 19 点
综合积分: 14 分
注册时间: 2009-10-24
最后登录: 2010-08-05
2楼  发表于: 2009-11-26 16:28
关了防火墙再试试看
级别: 新手上路
UID: 9398
精华: 0
发帖: 2
金钱: 20 两
威望: 10 点
综合积分: 4 分
注册时间: 2009-09-27
最后登录: 2010-07-28
3楼  发表于: 2009-12-02 23:54
图片:
兄弟我也遇到同样的问题了,我的感觉是从nor启动时,网络驱动就根本没加载(网络连接没有连接上),因此NFS也就不能启动成功了,mini2440写的是从NAND FLASH启动才能用NFS功能(如下图),可我无论怎么按PC上的空格键也不能进入supervivi呀?望斑竹解释 先谢谢!!1
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2009-12-03 11:29

 回 3楼(yimaoqian) 的帖子

NFS用不是Supervivi里的网络连接,而是内核启动后初始化的,和NOR或者NAND启动没关系。至于从NAND启动模式下进supervivi命令行模式,需要按开发板上的K1~K6任意键。论坛里已经有很多帖子讲到这一问题了。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 11434
精华: 0
发帖: 19
金钱: 115 两
威望: 35 点
综合积分: 38 分
注册时间: 2009-12-07
最后登录: 2016-08-24
5楼  发表于: 2009-12-07 21:27
依次启动相关服务:portmap ,nfslock ,nfs。先在linux系统下mount输出目录看是否成功,还需要看开发板和开发系统是否能互相ping通,如果是使用虚拟机的话,应该关掉windows系统下的防火墙。这点很重要了!
级别: 新手上路
UID: 11434
精华: 0
发帖: 19
金钱: 115 两
威望: 35 点
综合积分: 38 分
注册时间: 2009-12-07
最后登录: 2016-08-24
6楼  发表于: 2009-12-07 21:29
还需要使用lokkit关掉linux系统的防火墙。
级别: 新手上路
UID: 17756
精华: 0
发帖: 5
金钱: 30 两
威望: 6 点
综合积分: 10 分
注册时间: 2010-04-01
最后登录: 2010-04-27
7楼  发表于: 2010-04-10 00:03
方法:1、确定串口线,网线,电源线连接好。
      2、打开你的目标板的terminal;
      3、开关拨到nand flash
            4、一只手按住开发板上任意一个件(建议按K1~~K6的任意一个键),另一只手拨开关,看你的arm terminal  上是不是进如了BIOS(如:[v] ....[q].....等这样的界面),在宿主机的键盘上按q这样你就竟如了supervivi.

      
级别: 新手上路
UID: 18882
精华: 0
发帖: 6
金钱: 30 两
威望: 6 点
综合积分: 12 分
注册时间: 2010-04-13
最后登录: 2010-04-22
8楼  发表于: 2010-04-15 17:28

 DD

    DDD顶!



















淘宝网女装
级别: 新手上路
UID: 19097
精华: 0
发帖: 10
金钱: 50 两
威望: 10 点
综合积分: 20 分
注册时间: 2010-04-16
最后登录: 2011-01-12
9楼  发表于: 2010-04-18 13:35
有没有高手解决这个问题了啊?我也碰上同样的问题了