国产毛片a精品毛-国产毛片黄片-国产毛片久久国产-国产毛片久久精品-青娱乐极品在线-青娱乐精品

查看: 7890|回復: 7
打印 上一主題 下一主題

[提問] NFS文件系統配置求助

[復制鏈接]
跳轉到指定樓層
樓主
發表于 2009-11-30 18:56:23 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
關鍵詞: nfs , 求助
小弟剛開始學習驅動開發,開發板是S3C2410,為的調試方便,想搭建NFS文件系統,可總是遇到問題,請大蝦指教。
下面是u-boot的環境變量設置:

baudrate=115200
ethaddr=12:24:56:78:9a:bc
bootcmd=nand read 30008000 100000 200000 ;go 30008000
filesize=1120ec
fileaddr=30008000
netmask=255.255.255.0
ipaddr=192.168.1.12
serverip=192.168.1.26
bootargs=boot=/dev/nfs rw ip=192.168.1.12:192.168.1.26:192.168.1.1:255.255.255.0ff init=/bin/ash nfsroot=/home/geyingzhen/myroofs console=ttySAC0,115200



下面是終端顯示的錯誤信息!

AND read: device 0 offset 1048576, size 2097152 ...  2097152 bytes read: OK
## Starting application at 0x30008000 ...
Uncompressing Linux.............................................................
Linux version 2.6.30.4 (root@geyingzhen-laptop) (gcc version 4.3.2 (Sourcery G+9
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=00007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2410
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C2410: core 202.800 MHz, memory 101.400 MHz, peripheral 50.700 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: boot=/dev/nfs rw ip=192.168.1.12:192.168.1.26:192.168.1.1:0
NR_IRQS:99
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttySAC0] enabled
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: 60512KB available (3848K code, 370K data, 140K init, 0K highmem)
Calibrating delay loop... 50.38 BogoMIPS (lpj=125952)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 936 bytes
NET: Registered protocol family 16
S3C Power Management, Copyright 2004 Simtec Electronics
S3C2410: Initialising architecture
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
bio: create slab at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
s3c2410-i2c s3c2410-i2c: slave address 0x10
s3c2410-i2c s3c2410-i2c: bus frequency set to 99 KHz
s3c2410-i2c s3c2410-i2c: i2c-0: S3C I2C adapter
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 2048)
TCP reno registered
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (extended precision)
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 118
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
s3c2410-lcd s3c2410-lcd: no platform data for lcd, cannot attach
s3c2410-lcd: probe of s3c2410-lcd failed with error -22
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
s3c2410-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
brd: module loaded
loop: module loaded
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ide-cd driver 5.00
Driver 'sd' needs updating - please use bus_type methods
dm9000 Ethernet Driver, V1.31
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand s3c2410-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bi)
Scanning device for bad blocks
Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x000000000000-0x000000100000 : "bootloader"
0x000000100000-0x000000400000 : "kernel"
0x000000400000-0x000002c00000 : "root"
0x000002d00000-0x000003c00000 : "user"
usbmon: debugfs is not available
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
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
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.4.3:USB FTDI Serial Converters Driver
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
Advanced Linux Sound Architecture Driver Version 1.0.20.
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
IP-Config: No network devices available.
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00            1024 mtdblock0 (driver?)
1f01            3072 mtdblock1 (driver?)
1f02           40960 mtdblock2 (driver?)
1f03           15360 mtdblock3 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
沙發
發表于 2009-12-2 14:12:44 | 只看該作者
頂一下。難道沒人會?
板凳
發表于 2009-12-2 14:20:51 | 只看該作者
路過幫頂!
地板
 樓主| 發表于 2009-12-3 22:51:39 | 只看該作者
使用的系統是ubuntu9.04謝謝,
地下室
 樓主| 發表于 2009-12-3 22:51:58 | 只看該作者
我自頂
6
發表于 2009-12-4 23:24:11 | 只看該作者
IP-Config: No network devices available.
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00            1024 mtdblock0 (driver?)
1f01            3072 mtdblock1 (driver?)
1f02           40960 mtdblock2 (driver?)
1f03           15360 mtdblock3 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

錯誤很明顯啊,自己不好好看kernel打印的消息

你這個是把NFS做根文件系統吧

首先是網卡沒驅動起來,可能網卡驅動有問題,
IP-Config: No network devices available.

后面還有沒有NFS server
Root-NFS: No NFS server available, giving up.
可能你的主機上的NFS沒有啟動,或者NFS啟動了,但是防火墻開著,導致NFS不能正常使用

后面就是NFS不能當根文件系統,然后kernel嘗試本地文件系統,但是你那個mtdblock2又搞成unknown了

后面的報錯不重要,關鍵是要把網卡驅動以及啟動配置搞定,還有就是主機上的NFS server要能用
7
 樓主| 發表于 2009-12-6 12:32:48 | 只看該作者
非常感謝,查看了一下內核配置(menuconfig)發現 是沒有選擇NFS支持,是內核的問題
8
 樓主| 發表于 2009-12-6 12:45:01 | 只看該作者
小弟剛學驅動開發,對這一塊不是太熟悉,不過有了這回以后會注意的!
您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

關于我們  -  服務條款  -  使用指南  -  站點地圖  -  友情鏈接  -  聯系我們
電子工程網 © 版權所有   京ICP備16069177號 | 京公網安備11010502021702
快速回復 返回頂部 返回列表
主站蜘蛛池模板: 五月激情综合丁香色婷婷| 国产精品免费久久久久影院| 狂野猛交xxxx吃奶| 最近中文字幕免费高清MV视频6| 亚洲高清视频在线| 婷婷激情狠狠综合五月| 日韩在线免费视频| 我爱原味论坛52yuanwei| WWW婷婷AV久久久影片| 浪货嗯啊趴下NP粗口黄暴| 亚洲视频在线观看不卡| 视频在线观看一区二区| 性荡视频在线播放视频| 香蕉久久一区二区三区 | 亚洲国产精品久久久久秋霞不卡| 羞羞色在线| 欲帝精品导航| 免费国产综合视频在线看| 日本三级黄色网址| 日日日日人人人夜夜夜2017| 亚洲va天堂va在线va欧美| 国产伦精品一区二区三区精品| 亚洲免费大全| 欧美一级在线视频| 最新高清无码专区| 99免费在线观看| 丝瓜涩涩屋黄瓜香蕉丝瓜| 四虎成人免费网站在线| 视频在线观看91| 亚洲色域网| 久久亚洲视频| 欧美成人精品在线| 天天逼网| 怡红院在线视频观看| 麻豆一区二区免费播放网站| 欧美亚洲国产精品久久蜜芽| 色综合久久久高清综合久久久| 亚洲精品天堂| 久久大香萑太香蕉av| 亚洲国产精品一区二区久久| 色无极在线观看|