elviswzd 发表于 2018-8-16 13:29:13

virtualbox虚拟机安装的fedora20, 开发板挂载NFS出错,哪位高手帮我看看好吗?

# ifconfigenp0s3:flags=4163<UP,BROADCAST,RUNNING,MULTICAST>mtu 1500       inet 192.168.1.89netmask255.255.255.0broadcast 0.0.0.0       inet6 fe80::a00:27ff:fe26:bddd prefixlen 64scopeid0x20<link>       ether 08:00:27:26:bd:dd txqueuelen 1000(Ethernet)       RX packets 8887bytes 548956(536.0 KiB)       RX errors 0dropped 0overruns 0 frame 0       TX packets 9271bytes 11990079(11.4 MiB)       TX errors 0dropped 0 overruns0carrier 0collisions 0 lo:flags=73<UP,LOOPBACK,RUNNING>mtu65536       inet 127.0.0.1netmask 255.0.0.0       inet6 ::1prefixlen 128scopeid 0x10<host>       looptxqueuelen 0(Local Loopback)       RX packets 1009bytes 101680(99.2 KiB)       RX errors 0dropped 0overruns 0 frame 0       TX packets 1009bytes 101680(99.2 KiB)       TX errors 0dropped 0 overruns0carrier 0collisions 0 #这是linux系统的IP EWEN210 # printenvbaudrate=115200bootargs=root=/dev/nfsnfsroot=192.168.1.89:/opt/ewen/rootfs ip=192.168.1.122:192.168.1.89:192.168.1.1:255.255.255.0:localhost:eth0:offinit=/linuxrc console=ttySAC0,115200bootcmd=run ubifsbootbootdelay=3bootmenu_0=commandline= echobootmenu_1=start Kernel= tftp 20000000uImage;bootm 20000000ethact=dm9000ethaddr=1A:2A:3A:4A:5A:6Aipaddr=192.168.1.120mtdids=nand0=s5p-nandserverip=192.168.1.89splashimage=0x23000000stderr=serialstdin=serialstdout=serial Environment size: 513/131068 bytesEWEN210 #这是uboot的环境变量 dm9000 i/o: 0x88000000, id: 0x90000a46 DM9000: running in 16 bit modeMAC: 1a:2a:3a:4a:5a:6aoperating at 100M full duplex modeUsing dm9000 deviceTFTP from server 192.168.1.89; our IPaddress is 192.168.1.120Filename 'uImage'.Load address: 0x20000000Loading: T#################################################################      #################################################################      #      255.9 KiB/sdoneBytes transferred = 1910872 (1d2858 hex)## Booting kernel from Legacy Image at20000000 ...Image Name:   Linux-3.10.46Image Type:   ARM Linux KernelImage (uncompressed)Data Size:    1910808 Bytes = 1.8MiBLoad Address: 20008000Entry Point:20008000Verifying Checksum ... OKLoading Kernel Image ... OK Starting kernel ...                                                                                                                                           Uncompressing Linux... done, booting thekernel.                              Booting Linux on physical CPU 0x0                                             Linux version 3.10.46(root@localhost.localdomain) (gcc version 4.5.1 (ctng-1.8.1-FA) ) #10 PREEMPT Tue Aug 14 23:35:03 CST2018                              CPU: ARMv7 Processor revision 2(ARMv7), cr=10c53c7d               CPU: PIPT / VIPT nonaliasing data cache,VIPT aliasing instruction cache      Machine: SMDKV210                                                            Memory policy: ECC disabled, Data cachewriteback                               CPU S5PV210/S5PC110 (id 0x43110220)                                             S3C24XX Clocks, Copyright 2004 SimtecElectronics                              S5PV210: PLL settings, A=1000000000,M=667000000, E=96000000 V=54000000      S5PV210: ARMCLK=1000000000,HCLKM=200000000, HCLKD=166750000                  HCLKP=133400000, PCLKM=100000000,PCLKD=83375000, PCLKP=66700000               sclk_dmc: source is sclk_a2m (0), rate is200000000                           sclk_onenand: source is hclk_psys (0), rateis 66700000                         sclk_fimc: source is ext_xtal (0), rate is24000000                           sclk_fimc: source is ext_xtal (0), rate is24000000                           sclk_fimc: source is ext_xtal (0), rate is24000000                           sclk_cam0: source is ext_xtal (0), rate is24000000                           sclk_cam1: source is ext_xtal (0), rate is24000000                           sclk_fimd: source is ext_xtal (0), rate is24000000                           sclk_mfc: source is sclk_a2m (0), rate is200000000                           sclk_g2d: source is sclk_a2m (0), rate is200000000                           sclk_g3d: source is sclk_a2m (0), rate is200000000                           sclk_csis: source is ext_xtal (0), rate is24000000                           sclk_pwi: source is ext_xtal (0), rate is24000000                              sclk_pwm: source is ext_xtal (0), rate is24000000                              CPU: All CPU(s) started in SVC mode.                                          Built 1 zonelists in Zone order, mobilitygrouping on.Total pages: 130048   Kernel command line: root=/dev/nfsnfsroot=192.168.1.89:/opt/ewen/rootfs ip=192.168.1.122:192.168.1.89:192.168.1.1:255.255.255.0:localhost:eth0:offinit=/linuxrc console=ttySAC0,115200                                                       PID hash table entries: 2048 (order: 1,8192 bytes)                           Dentry cache hash table entries: 65536(order: 6, 262144 bytes)               Inode-cache hash table entries: 32768(order: 5, 131072 bytes)               Memory: 512MB = 512MB total                                                    Memory: 515804k/515804k available, 8484kreserved, 0K highmem                   Virtual kernel memory layout:                                                   vector: 0xffff0000 -0xffff1000   (   4 kB)                                  fixmap: 0xfff00000 -0xfffe0000   ( 896 kB)                                  vmalloc : 0xa0800000 - 0xff000000(1512 MB)                                 lowmem: 0x80000000 -0xa0000000   ( 512 MB)                                  modules : 0x7f000000 - 0x80000000(16 MB)                                  .text : 0x80008000 - 0x8033f174(3293 kB)                                 .init : 0x80340000 - 0x80361d7c( 136 kB)                                 .data : 0x80362000 - 0x80391f80( 192 kB)                                    .bss : 0x80391f80 - 0x803cd0a8   ( 237 kB)                               SLUB: HWalign=64, Order=0-3, MinObjects=0,CPUs=1, Nodes=1                      Preemptible hierarchical RCUimplementation.                                    NR_IRQS:208                                                                     VIC @f6000000: id 0x00041192, vendor0x41                                    VIC @f6010000: id 0x00041192, vendor0x41                                    VIC @f6020000: id 0x00041192, vendor0x41                                       VIC @f6030000: id 0x00041192, vendor0x41                                    sched_clock: 32 bits at 33MHz, resolution29ns, wraps every 128784ms            Console: colour dummy device 80x30                                              Calibrating delay loop... 663.55 BogoMIPS(lpj=1658880)                         pid_max: default: 32768 minimum: 301                                          Mount-cache hash table entries: 512                                             CPU: Testing write buffer coherency:ok                                        Setting up static identity map for0x8026c170 - 0x8026c1c8                     NET: Registered protocol family 16                                              DMA: preallocated 256 KiB pool for atomiccoherent allocations                  S3C Power Management, Copyright 2004 SimtecElectronics                         S5PV210: Initializing architecture                                              bio: create slab <bio-0> at 0                                                SCSI subsystem initialized                                                   Switching to clocksourcesamsung_clocksource_timer                              NET: Registered protocol family 2                                             TCP established hash table entries: 4096(order: 3, 32768 bytes)                TCP bind hash table entries: 4096 (order:4, 81920 bytes)                     TCP: Hash tables configured (established4096 bind 4096)                        TCP: reno registered                                                         UDP hash table entries: 256 (order: 1,12288 bytes)                           UDP-Lite hash table entries: 256 (order: 1,12288 bytes)                        NET: Registered protocol family 1                                             RPC: Registered named UNIX socket transportmodule.                           RPC: Registered udp transport module.                                           RPC: Registered tcp transport module.                                           RPC: Registered tcp NFSv4.1 backchanneltransport module.                     ROMFS MTD (C) 2007 Red Hat, Inc.                                             io scheduler noop registered                                                   io scheduler deadline registered                                             io scheduler cfq registered (default)                                           dma-pl330 dma-pl330.0: Loaded driver forPL330 DMAC-267056                      dma-pl330 dma-pl330.0:DBUFF-8x4bytes Num_Chans-8 Num_Peri-32Num_Events-32    dma-pl330 dma-pl330.1: Loaded driver forPL330 DMAC-267056                      dma-pl330 dma-pl330.1:DBUFF-8x4bytes Num_Chans-8 Num_Peri-32Num_Events-32    Serial: 8250/16550 driver, 4 ports, IRQsharing disabled                        s5pv210-uart.0: ttySAC0 at MMIO 0xe2900000(irq = 74) is a S3C6400/10         console enabled                                                       s5pv210-uart.1: ttySAC1 at MMIO 0xe2900400(irq = 75) is a S3C6400/10         s5pv210-uart.2: ttySAC2 at MMIO 0xe2900800(irq = 76) is a S3C6400/10         s5pv210-uart.3: ttySAC3 at MMIO 0xe2900c00(irq = 77) is a S3C6400/10         brd: module loaded                                                             loop: module loaded                                                            dm9000 dm9000: read wrong id0x01010101                                       eth0: dm9000a at a085a000,a085c004 IRQ 39MAC: 00:09:c0:ff:ec:48 (platform data)mousedev: PS/2 mouse device common for allmice                                 TCP: cubic registered                                                         NET: Registered protocol family 17                                              VFP support v0.3: implementor 41architecture 3 part 30 variant c rev 2      dm9000 dm9000 eth0: link down                                                   dm9000 dm9000 eth0: link down                                                IP-Config: Complete:                                                             device=eth0, hwaddr=00:09:c0:ff:ec:48, ipaddr=192.168.1.122,mask=255.255.255.0, gw=192.168.1.1                                                             host=localhost, domain=, nis-domain=(none)                                     bootserver=192.168.1.89, rootserver=192.168.1.89, rootpath=                dm9000 dm9000 eth0: link up, 100Mbps,full-duplex, lpa 0xCDE1                  VFS: Unable to mount root fs via NFS,trying floppy.                           VFS: Cannot open root device"nfs" or unknown-block(2,0): error -6            Please append a correct "root="boot option; here are the available partitions: Kernel panic - not syncing: VFS: Unable tomount root fs on unknown-block(2,0)CPU: 0 PID: 1 Comm: swapper Not tainted3.10.46 #10                           [<800138b4>](unwind_backtrace+0x0/0xf0) from [<8001176c>] (show_stack+0x10/0x14)                                                                              [<8001176c>] (show_stack+0x10/0x14)from [<80268ca0>] (panic+0x8c/0x1e8)      [<80268ca0>] (panic+0x8c/0x1e8) from[<80340f88>] (mount_block_root+0x1a4/0x254)[<80340f88>](mount_block_root+0x1a4/0x254) from [<80341200>] (mount_root+0xd8/0xf4)                                                                           [<80341200>] (mount_root+0xd8/0xf4) from[<8034137c>] (prepare_namespace+0x160/0x1b8)                                                                        [<8034137c>](prepare_namespace+0x160/0x1b8) from [<80340be8>] (kernel_init_freeable+0x16c/0x1b0)                                                            [<80340be8>](kernel_init_freeable+0x16c/0x1b0) from [<8026872c>] (kernel_init+0x8/0xe4)                                                                     [<8026872c>] (kernel_init+0x8/0xe4)from [<8000e458>] (ret_from_fork+0x14/0x3c)这是内核启动的信息,总是提示VFS: Unable to mount root fs via NFS,trying floppy.   很郁闷,哪位高手帮我看一下

Marss 发表于 2018-8-16 14:30:28

可以上下位机ping通了吗?

elviswzd 发表于 2018-8-16 15:23:44

ping是可以的,启动uboot,ping 192.168.1.89可以,tftp也可以下载程序
fedora内部也测试过了,用这条命令mount nfs 192.168.1.89:/opt/ewen/rootfs /mnt/nfs可以挂载

Marss 发表于 2018-8-16 17:57:43

https://www.xuebuyuan.com/2097920.html 应该是自动挂载这块,在环境变量里设置一下。

elviswzd 发表于 2018-8-16 20:40:51

这里我是这样设置的
/opt/ewen/rootfs *(rw,sync,no_root_squash)
所以应该是没有问题的
页: [1]
查看完整版本: virtualbox虚拟机安装的fedora20, 开发板挂载NFS出错,哪位高手帮我看看好吗?