主题 : 2440 nfs问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 46353
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
综合积分: 10 分
注册时间: 2011-05-12
最后登录: 2011-05-29
楼主  发表于: 2011-05-12 14:24

 2440 nfs问题

你好,请教一个nfs问题。我的操作步骤如下 :
1、我的开发板是micro2440,n35屏
2、从官网上下载iso光盘micro2440-201006.iso
3、开发板从nand启动可以正常进入opia界面。

下面是我建立NFS环境步骤:
1、解压光盘/linux/root-qtopia-20101008.tar.gz到/opt/rootfs
2、配置/etc/exports文件:
      /opt/rootfs 192.168.1.*(rw,sync,no_root_squash)
3、用lokkit关闭防火墙
4、启动nfs,service nfs restart
      mount -t nfs 192.168.1.108/opt/rootfs /mnt,可挂载
5、设置开发板为nor启动
6、进入supervivi控制台,输入
    param set linux_cmd_line "console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.108:/opt/rootfs ip=192.168.1.88:192.168.1.108:192.168.1.1:255.255.255.0::eth0:off"
7、boot

出现如下信息:
Supervivi> param set linux_cmd_line "console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.108:/opt/rootfs ip=192.168.1.88:192.168.1.108:192.168.1.1:255.255.255.0::eth0:off"
Change linux command line to "console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.108:/opt/rootfs ip=192.168.1.88:192.168.1.108:192.168.1.1:255.255.255.0::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=192.168.1.108:/opt/rootfs ip=192.168.1.88:192.168.1.108:192.168.1.1:255.255.255.0::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) #1 Wed Dec 10 12:23: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=192.168.1.108:/opt/rootfs ip=192.168.1.88:192.168.1.108:192.168.1.1:255.255.255.0::eth0:off
irq: clearing pending ext status 00000200
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 (2516K 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 Dec 10 2008 12:22:12 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
backlight 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 838 at 0x00d18000
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 c0170b78
IP-Config: Complete:
      device=eth0, addr=192.168.1.88, mask=255.255.255.0, gw=192.168.1.1,
     host=192.168.1.88, domain=, nis-domain=(none),
     bootserver=192.168.1.108, rootserver=192.168.1.108, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.108
Looking up port of RPC 100005/1 on 192.168.1.108
VFS: Mounted root (nfs filesystem).
Mounted devfs on /dev
Freeing init memory: 144K


至此,一直停在这里不动,请问是什么原因呢?谢谢!
自由,自强,共享,共创。
级别: 论坛版主
UID: 12573
精华: 27
发帖: 8838
金钱: 46490 两
威望: 9298 点
综合积分: 18216 分
注册时间: 2010-01-09
最后登录: 2019-07-16
1楼  发表于: 2011-05-12 16:52
是不是内核太老的原因?尽量采用同一个光盘里的文件
新手如何向我们反馈有效的信息,以便解决问题,见此贴:
http://www.arm9home.net/read.php?tid-14431.html

[注]: 此处签名链接仅为指引方向,而非解答问题本身.
级别: 新手上路
UID: 46353
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
综合积分: 10 分
注册时间: 2011-05-12
最后登录: 2011-05-29
2楼  发表于: 2011-05-12 20:09
有可能,但在尝试更新内核时问题又出来了。
Supervivi> bon part 0 320k 2368k
doing partition
size = 0
size = 327680
size = 2424832
check bad block
part = 0 end = 327680
part = 1 end = 2424832
part = 2 end = 67108864
D18000: is bad
k = 0 block = 690
part0:
        offset = 0
        size = 327680
        bad_block = 0
part1:
        offset = 327680
        size = 2097152
        bad_block = 0
part2:
        offset = 2424832
        size = 64651264
        bad_block = 1
690
Supervivi> load flash vivi u
USB host is connected. Waiting a download.
Length of file is too big : 249016 > 163840
Failed downloading file
Supervivi>

下载不了supervivi文件,supervivi-54M和supervivi-128M都试过。提示信息一样
自由,自强,共享,共创。
级别: 论坛版主
UID: 12573
精华: 27
发帖: 8838
金钱: 46490 两
威望: 9298 点
综合积分: 18216 分
注册时间: 2010-01-09
最后登录: 2019-07-16
3楼  发表于: 2011-05-12 20:10
先更新supervivi in nor flash
新手如何向我们反馈有效的信息,以便解决问题,见此贴:
http://www.arm9home.net/read.php?tid-14431.html

[注]: 此处签名链接仅为指引方向,而非解答问题本身.
级别: 新手上路
UID: 46353
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
综合积分: 10 分
注册时间: 2011-05-12
最后登录: 2011-05-29
4楼  发表于: 2011-05-23 04:01
嗯,多谢,后来搞定了