当前位置: 技术问答>linux和unix
高手请进,谢谢!
来源: 互联网 发布时间:2017-01-26
本文导语: 本帖最后由 wln2010 于 2011-12-02 11:25:56 编辑 我在开发板上用NFS启动linux,出现如下问题: ## Booting kernel from Legacy Image at 21000000 ... Image Name: Linux-2.6.22 Image Type: ARM Linux Kernel Image (uncompressed) D...
## Booting kernel from Legacy Image at 21000000 ...
Image Name: Linux-2.6.22
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1207824 Bytes = 1.2 MB
Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
no machid from env
Starting kernel ...
cleanup_before_linux
machid:0x44b
bi_boot_params536871168
Uncompressing Linux............................................................................... done, booting the kernel.
Linux version 2.6.22 (root@HostWi) (gcc version 4.2.3 (Sourcery G++ Lite 2008q1-126)) #1 Tue Nov 29 18:30:20 PST 2011
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Machine: Atmel AT91SAM9260-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
CPU0: D VIVT write-back cache
CPU0: I cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
Built 1 zonelists. Total pages: 8128
Kernel command line: init=/linuxrc root=/dev/nfs nfsroot=192.168.178.12:/home/wi/downloads/busybox-1.19.3/root_fs rw console=ttyS0,115200
AT91: 96 gpio irqs in 3 banks
PID hash table entries: 128 (order: 7, 512 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 29908KB available (2196K code, 217K data, 112K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
io scheduler noop registered
io scheduler anticipatory registered (default)
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL
atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
macb macb: detected PHY at address 0 (ID 0181:b8b0)
eth0: Atmel MACB at 0xfffc4000 irq 21 (3e:36:65:ba:6f:be)
SSFDC read-only Flash Translation layer
No valid DiskOnChip devices found
NAND device: Manufacturer ID: 0x98, Chip ID: 0x39 (Toshiba NAND 8MiB 1,8V 8-bit)
flash size: 8 MiB
page size: 512 bytes
OOB area size: 16 bytes
sector size: 8 KiB
pages number: 16384
pages per sector: 16
bus width: 8
bits in sector size: 13
bits in page size: 9
bits in OOB size: 4
flash size with OOB: 8448 KiB
page address bytes: 3
sector address bytes: 2
options: 0x62
Scanning device for bad blocks
Creating 1 MTD partitions on "NAND 8MiB 1,8V 8-bit":
0x00000000-0x00800000 : "NAND simulator partition 0"
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 5 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00001000 : "Bootstrap"
mtd: partition "Bootstrap" doesn't end on an erase block -- force read-only
SSFDC_RO:can't read CIS/IDI sector
0x00001000-0x000a0000 : "u-boot"
mtd: partition "u-boot" doesn't start on an erase block boundary -- force read-only
SSFDC_RO:can't read CIS/IDI sector
0x000a0000-0x00aa0000 : "kernel"
SSFDC_RO:can't read CIS/IDI sector
0x00aa0000-0x014a0000 : "fs"
SSFDC_RO:can't read CIS/IDI sector
0x014a0000-0x04000000 : "user space"
usbmon: debugfs is not available
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 20, io mem 0x00500000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Looking up port of RPC 100003/2 on 192.168.178.12
rpcbind: server 192.168.178.12 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.178.12
rpcbind: server 192.168.178.12 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
mount: server 192.168.178.12 not responding, timed out
Root-NFS: Server returned error -5 while mounting /home/wi/downloads/busybox-1.19.3/root_fs
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; here are the available partitions:
1f00 8192 mtdblock0 (driver?)
1f01 4 mtdblock1 (driver?)
1f02 636 mtdblock2 (driver?)
1f03 10240 mtdblock3 (driver?)
1f04 10240 mtdblock4 (driver?)
1f05 44416 mtdblock5 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
请问这是什么原因?
PC机是RHEL,NFS配置好像也没问题,自己可以挂载自己的目录,没问题。开发板与PC机用的HUB相连的,网上有说要用交叉线,或直连线接路由器,是这个原因吗?请高手解答,谢谢!
|
在UBOOY环境变量里已经加了开发板的IP地址
---------------------------
linux不会认uboot的环境变量,必须把这个ip通过内核启动参数传递进内核
---------------------------
linux不会认uboot的环境变量,必须把这个ip通过内核启动参数传递进内核
|
init的进程起不来了,busybox中的init正确编译了吗?或许是busybox的问题