主题 : 求教: uboot下载linux内核映像无法启动 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 78482
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
贡献值: 0 点
综合积分: 10 分
注册时间: 2012-09-20
最后登录: 2012-09-27
楼主  发表于: 2012-09-20 21:57

 求教: uboot下载linux内核映像无法启动


      小弟正在学习uboot,用的是mini2440的开发板,把国嵌提供的uboot下到norFlash中,启动uboot后用tftp下载内核映像到开发板中,但是下载后却启动不了,自己编译的内核和国嵌提供的内核均无法启动
   tftp 31000000 uImage-nfs(下载内核映像,nfs根文件系统,下载成功了)
   bootm 31000000 (启动内核)
   内核是启动了,可是确失败了
Looking up port of RPC 100003/2 on 172.18.20.24
eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1
rpcbind: server 172.18.20.24 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 172.18.20.24
rpcbind: server 172.18.20.24 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
Root-NFS: Server returned error -5 while mounting /nfsroot/rootfs
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 384 mtdblock0 (driver?)
1f01 2048 mtdblock1 (driver?)
1f02 128640 mtdblock2 (driver?)
1f03 131072 mtdblock3 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
      想了好几天也没想出来时怎么回事,请高人指点
   我在环境变量中设置服务器ip为192.168.0.158,mini2440ip为192.168.0.200,但为什么提示 server 172.18.20.24 not responding,实在是困惑,请明白人指点一二













*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2012-09-21 09:48
  我在环境变量中设置服务器ip为192.168.0.158,mini2440ip为192.168.0.200,

你是怎么做的?uboot下printenv命令的输出是什么?另外,最好把完整的启动信息贴出来,方便别人分析,谢谢!
"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: 78482
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
贡献值: 0 点
综合积分: 10 分
注册时间: 2012-09-20
最后登录: 2012-09-27
2楼  发表于: 2012-09-21 10:22
Mini2440 # printenv
bootdelay=3
baudrate=115200
netmask=255.255.255.0
serverip=192.168.0.158
ipaddr=192.168.0.200
ethaddr=08:90:90:90:90:90
stdin=serial
stdout=serial
stderr=serial以上是环境变量

Mini2440 # tftp 31000000 uImage-nfs
dm9000 i/o: 0x20000300, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 08:90:90:90:90:90
TFTP from server 192.168.0.158; our IP address is 192.168.0.200
Filename 'uImage-nfs'.
Load address: 0x31000000
Loading: T #################################################################
         ################################
done
Bytes transferred = 1421392 (15b050 hex)
以上是下载信息


Mini2440 # bootm 31000000                        
## Booting kernel from Legacy Image at 31000000 ...                                                  
     host=172.18.20.25, domain=, nis-domain=(non                                                
   Image Name:   Linux-2.6.29.4-FriendlyARM                                          
Fl  
     bootserver=255.255.255                          
   Created:      2009-11-12  17:28:06 UTC2410fb fram                                                    
   Entry Point:  30008000                        
   Verifying Checksum ... OK.18.20.24 not responding, t                                                      
   Loading Kernel Image ... OK                              
baudrate=115200              
OK  

Starting kernel ...       2048 mtdbloc                                      

Uncompressing Linux.............................................................2 (driver?)bit mode8kHz                                                                                                      
1f03    
..................................................................... done, boot                                                                                
Kernel panic - not syncing: VFS: Unable to mount root fs on unknow                                                                  
ing the kernel.istered is 192.                              
Linux version 2.6.29.4-FriendlyARM (root@localhost.localdomain) (gcc version 4.3                                                                                
usbcore: reg            
级别: 新手上路
UID: 78482
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
贡献值: 0 点
综合积分: 10 分
注册时间: 2012-09-20
最后登录: 2012-09-27
3楼  发表于: 2012-09-21 10:24
U-Boot 2008.            
MAC: 08:90:90:90:                
CPU S3C2440A (id 0x32440001)FTP from server 192.168.0.15                                                        
S3C24XX Clocks, (c) 2004 Simtec Electronics                                          
usb u    
usbcore: registered                  
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz                                                                    
         ################################                                        
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL onred = 1421392 (15b050 hex)                                                                              
Built 1 zonelists in Zone order, mobility grouping on.                                                      
Mini2440 # bootm 3                
Console: colour dummy device 80x30                                  
   Data S        
console [ttySAC0] enabled.4 MB                              
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)                                                            
   Load Address: 30008000s823544 (                                  
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)sing Linux..................................................                                                                                                                        
Memory: 64MB = 64MB total                        
Memory: 60620KB available (3724K code, 406K data, 124K ini                                                          

S3C2440: Initialising architecture1129200] revision 0 (ARMv4T), cr=c                                                                    
S3C2440: IRQ Support                    
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec El                                              
CPU: VIVT data cache, VIVT instructio                                    
DMA channel 0 at c4808000, irq 33                                
Machine: Friend              
DMA channel 1 at c4808040, irq 345602: registered....                                                    
DMA channel 2 at c4808080, irq 35                                
Built 1 zo          
DMA channel 3 at c48080c0, irq 36o                                  
Creating 4 MTD pa                
8.20.55      
usbcore: registered new interface driver hub=0x32000000,0x2                                                          
usbcore: registered new device driver usbq: clearing subpending status 00000003                                                                              
cfg80211: Using static regulatory domain infoaring subpending status 00000002                                                                            
cfg80211: Regulatory domain: USde-cache hash table e                                                  
        (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)                                                                        
mtd: partition "root" extends beyond the                                        
        (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)                                                                    
Memory: 61956KB available (2520K code,                                      
        (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)                                                                    
s3c2440-sdi s3c2440-sdi: running a                                  
CPU: Testing write buffer coheren                                
cfg80211: Calling CRDA for country: USiver, (c) 2003-2004,2006 Simtec Electr                                                                            
NET: Registered protocol family 2tered, assigned bus number 1                                                            
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)                                                              
DMA channel 0 a              
TCP established hash table entries: 2048 (order: 2, 16384 bytes)                                                                
DMA channel          
TCP bind hash table entries: 2048 (orde                                      

yaffs Nov 12 2009 20:27:10 Installing.                                      
bio: create slab <bio-0> at 0l 0                                
msgmni has been set to 118                          

alg: No test for stdrng (krng)USB device found, idV                                                  
io scheduler noop registered (default)                                      
cfg80211: Using static regulatory                                
Console: switching to colour frame buffer device 30x20                                                      
net  
cfg80211: Regulatory domain: USdi: powe                                    
fb0: s3c2410fb frame buffer device                                  
        (start_freq - end_fr                            
backlight       initialized                          
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440m)                                                                            
usb  
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440KHz @ 40000 KHz), (600 mB                                                                                                  
Linux video capture interface: v2.00                                    
et  
USB Mass St          
gspca: main v2.4.0 registeredace driver hub                                          
usbcore: registered new interface driver conex11: Calling CRDA for country: US                                                                              
conex: registered                
NET: Regis          
usbcore: registered new interface dri                                    
usbcore: registered new interface driver mars                                            
msgmni has been set to 121                          
mars: registered                
mice: P      
usbcore: registered new interface driver ov519)                                              
io scheduler n              
ov519: registeredfault)s3c2440-i2c                                  
usbcore: registered new interface driver ov534                                              
ov534: registered-uart.0: s3c2410_                                  
usbcore: registered new interface driver pac20740ffs_read_super: isCheckpointed                                                                              
pac207: registered                  
usbcore: registered new interface driver pac7311                                                
s3c2440-i2c          
s3c2440-uart.1: s3c24                    
pac7311: registeredx5000400                          
usbcore: registered new interface driver sonixbdi s3c2440-sdi: powered                                                                      
sonixb: registered' needs updating -                                    
usbcore: registered new interface dri                                    
spca505: registered1: common routines                                    
usbcore: registered new interface driver spca506                                                
[1  

     host=172.18.20.55, domain=, nis-d                                      
spca506: registered                  
usbcore: registered new interface driver spca508     bootserver=255.255.255.255, rootserver=172.                                                                                                
spca508: registered40-sdi s3c2440-sdi:                                      
usbcore: registered new interface driver spca561                                                
spca561: registeredooking up port of                                    
usbcore: registered new interface driver sunplus55.0.0                                                      
sunplus: registered                  

tv8532: registered                  
usbcore: registered new interface driver vc032x                                              
Looking up port of RPC 10                        
vc032x: registered                  
eth0: lin        
usbcore: registered new interface driver zc3xx                                              
In:    serial            
Out:    
zc3xx: registered                
Err:   serial            
usbcore: registered new interface driver ALi m5602helpnding, timed ou                                                                    

ALi m5602: registeredelp'                        
usbcore: registered new interface driver STV06xxber from server, using de                                                                        
STV06xx: registered                  
usbcore: registered new interface                                  
Lo  

Driver 'sd' needs updating - please use bus_type methods                                                        
S3C24XX NAND Driver, (c) 2004 Simtec Electronicsg BOOTP/TFTP protocolble to mount root fs via NF                                                                                                
s3c2440-nand s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns                                                                    
bootvx  - Boot vxWo                  
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-b                                                                              
crc32   - checksum ca                    
dcache      
Bad eraseblock 182 at 0x0000016c0000      2048 mtdblock1 (driver?)                                                                  
Creating 4 MTD partitions on "NAND 128MiB 3,3V 8-bit":                                                      
echo    - echo args to console                              
0x000000000000-0x000000060000 : "supervivi"                                          
erase   - erase FLASH                    
0x000000060000-0x000000260000 : "Kernel"o  - print FLASH memory information)                                                                            
0x000000260000-0x000040260000 : "root"o      - start application at address                                                                          
mtd: partition "root" extends beyond the end of device "NAND 128MiB 3,3V 8-bit"                                                                              
help    - print online help                          
-- size truncated to 0x7da0000e or disable instruction cache                                                            
0x000000000000-0x000040000000 : "nand"                                      
iminfo  -        
mtd: partition "nand" extends beyond the end of device "NAND 128MiB 3,3V 8-bit"                                                                              
Out:   serial            
Er  
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000                                                    
d
loop    - inf            
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001                                                            
DM900    
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1                                                                  
mm      - memory modify (auto-incr                                  
usb usb1: Product: S3C24XX OHCI                              
TFTP from        
usb usb1: Manufacturer: Linux 2.6.29.4-FriendlyARM ohci_hcd                                                          
mtest   - simple RAM test00                          
mw  
usb usb1: SerialNumber: s3c24xxface                                  
usbcore: registere                  
usbserial: USB Serial Driver core.200r spca501##########e                                                        
USB Serial support registered for pl23038:90:90:90:90:90........................                                                                                
usbcore: registered new interface driver pl2303                                              
stdin=serial............                        
pl2303: Prolific PL2303 USB to serial adaptor driverderr=serial                                                              

Environment size: 161/6553                          
mice: PS/2 mouse device common for all micecor                                              
ing the kernel              

bdinfo  - print Board Info st                            
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics- boot default, i.e., run 'bootcmd'ruction cache: r                                                                                                      
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled                                                                      
bootd   - boot default, i.e.,                            
mapped channel 0 to 0ment boardone0: r                                      
s3c2440-sdi s3c2440-sdi: powered down.                                      
Bytes tra        
No device for DAI UDA134Xflinfo  - print FLASH mem                                                  
No device for DAI s3c24xx-i2s                            
irq  
S3C24XX_UDA134X SoC Audio drivero      - start application at ad                                                                
UDA134X SoC Audio Codec                      
asoc: UDA134X <-> s3c24xx-i2s mapping ok                                        
help    - print              
ALSA device list:                
  #0: S3C24XX_UDA134X (UDA134X)t of a multi-image                                                
TCP cubic registered                    
Inode-cache          
RPC: Registered udp transport module.   - return true/false on integer                                                                    
RPC: Registered tcp transport module. Simtec Elec                                                
lib80211: common routines for IEE                                
loady    
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).1.250 MHz, periph                                                                                
s3c2440-sdi s3c2440-sdi: powered down.                                      
eth0: link down              
IP-Config: Guessing netmask 255.255.0.0                                      
IP-Config: Complete:                    
     device=eth0, addr=172.18.20.25, mask=255.255.0.0, gw=255.255.255.255,                                                                          
     host=172.18.20.25, domain=, nis-domain=(none),                                                  
     bootserver=255.255.255.255, rootserver=172.18.20.24, rootpath=                                                                  
Looking up port of RPC 100003/2 on 1                                  
eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1                                              
rpcbind: server 172.18.20.24 not responding, timed out                                                      
Root-NFS: Unable to get nfsd port number from server, using default                                                                  
Looking up port of RPC 100005/1 on 172.18.20.24                                              
rpcbind: server 172.18.20.24 not responding, timed out                                                      
Root-NFS: Unable to get mountd port number from server, using default                                                                    
Root-NFS: Server returned error -5 while mounting /nfsroot/rootfs                                                                
VFS: Unable to mount root fs via NFS, trying floppy.                                                    
VFS: Cannot open root device "nfs" or unknown-block(2                                                    
Please append a correct "root=" boot option; here are the available partitions:                                                                              
1f00             384 mtdblock0 (driver?)                                        
1f01            2048 mtdblock1 (driver?)                                        
1f02          128640 mtdblock2 (driver?)                                        
1f03          131072 mtdblock3 (driver?)                                        
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)                                                                              


U-Boot 2008.10 (Oct 31 2009 - 06:44:04)                                      

DRAM:  64 MB            
Flash:  2 MB            
In:    serial            
Out:   serial            
Err:   serial            
Mini2440 # printenv                  
bootdelay=3          
baudrate=115200              
netmask=255.255.255.0                    
serverip=192.168.0                
ipaddr=192.168.0.200ronment variables040
ethaddr=08:90:90:90:90:90Controll                
stdin=serial            
stdout=serial            
stderr=serial- enable or d

Environment size: 161/65532 bytes                                
Mini2440 # tftp 31000000 uImage-nfsc48080c0,                          
dm9000 i/o: 0x20000300, id: 0x90000a46 RARP/TFTP protocolpport, DVS off    
DM9000: running in 16 bit mode                              
MAC: 08:90:90:90:90:90 create          
res
TFTP from server 192.168.0.158; our IP address is 192.168.0.200                      
SCSI subsystem initia                  
Filename 'uImage-nfs'.nds in an environment
Load address: 0x31000000river usbfs            
Loading: T #################################################################  
saveenv - save environment variables to persistent storage driver hubr, (
         ################################                                        
doneus  
Bytes transferred = 1421392 (15b0                    
        
   Created:      2009-12-11  23:31:10 UTChaddr=08:90:90:90:90:9040000 KHz), (600 m
   Image Type:   ARM Linux Kernel Image (uncompressed)  
stdin=serial            
stdout=serial2440: IRQ Sup
   Data Size:    1421328 Bytes =  1.4 MB            


Environment size: 161/655
   Load Address: 30008000, 2300 mBm)03-2          
   Entry Point:  30008000                        
   Verifying Checksum ... OKics                        
   Loading Kernel Image ... OKtry 'help'00 KHz - 5330000 KHz
OK40

Starting kernel ...                  

Uncompressing Linux.............................................................                      
Unknown command 'ls' - try 'help'                      
............................ done, booting2440 # ?            
                
CPU: VIVT data cache, VIVT instruction cachelP established                          
Err
Machine: FriendlyARM Mini2440 development board
Mini2440 # bootm 310000002410-rtc s3c2410-rtc
Memory policy: ECC disabled, Data cache writeback    
## Booting kernel from Legacy Image at 3100
CPU S3C2440A (id 0x32440001)der: 1, 8192 bytes)        
S3C24XX Clocks, (c) 2004 Simtec Electronics                                      
cfg8
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz                                  
TCP: Hash tables configured (esta
CLOCK: Slow mode (1.500 MHz                  
    
Memory: 61956KB available (2520K code, 302K data, 88K init)                                                
RPC: Regis
SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1  ################################m9000 Ethernet Driver, V1.31sh table
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)                    
done    
Bytes transferred = 142
Mount-cache hash table entries: 512                                  
CPU: Testing write buffer coherency: ok            

Linux video capture inte
net_namespace: 296 bytes                        
NET: Registered protocol family 16 1.4 MB main v2.4.0 registered    
S3C2440: Initialising architecture                        
VF  
   L
S3C2440: IRQ Supportstered new interface
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics Entry Point:  30008000                        
s3c  

DMA channel 0 at c4808000, irq 33kH                              
DMA channel 1 at c480ere                
request_
cfg80211: Regulatory domain: UScore: registered ne            
        (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)                                            
usbcore: r          
mars:
        (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)      

8.20.55 rw console=ttySAC0 mem=64M driver spca508  Verifyin
        (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)        
irq: clearing subpending status 00000003gistered          
        (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)                                                                    
TCP reno registered          
Calibra
NET: Registered protocol family 1 (lpj=504832)                    
msgmni has been set to 121      
MAC: 08:90        
alg: No test for stdrng (krng)              
Mount-cache has
io scheduler noop registered (default)river STV06xxour                      
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440coherency: ok                                      
STV06xx: registered  
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440                                      
NET: Registered protocol family 16
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440ialisi
mice: PS/2 mouse device common for all mice
TCP cubic registered
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
lib80211: common routines for IEEE802.11 drivers
eth0: link down
IP-Config: Guessing netmask 255.255.0.0
IP-Config: Complete:
     device=eth0, addr=172.18.20.55, mask=255.255.0.0, gw=255.255.255.255,
     host=172.18.20.55, domain=, nis-domain=(none),
     bootserver=255.255.255.255, rootserver=172.18.20.24, rootpath=
Looking up port of RPC 100003/2 on 172.18.20.24
eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1
rpcbind: server 172.18.20.24 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 172.18.20.24
rpcbind: server 172.18.20.24 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
Root-NFS: Server returned error -5 while mounting /nfsroot/rootfs
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:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
级别: 新手上路
UID: 78482
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
贡献值: 0 点
综合积分: 10 分
注册时间: 2012-09-20
最后登录: 2012-09-27
4楼  发表于: 2012-09-21 10:25
以上就是完整的启动信息了
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2012-09-21 11:13

 回 4楼(pyy198902) 的帖子

如果你用的是Windows下的超级终端,你需要用"传送"菜单下的"捕获文字", 否则你贴出来的信息和乱码没什么区别。
"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: 78482
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
贡献值: 0 点
综合积分: 10 分
注册时间: 2012-09-20
最后登录: 2012-09-27
6楼  发表于: 2012-09-21 14:22
尴尬了。。。。。。。。。。。。。
级别: 新手上路
UID: 92159
精华: 0
发帖: 4
金钱: 20 两
威望: 4 点
贡献值: 0 点
综合积分: 8 分
注册时间: 2013-05-24
最后登录: 2013-09-16
7楼  发表于: 2013-08-27 12:04

 回 6楼(pyy198902) 的帖子

从以下几方面考虑解决问题:
1- 主机nfs服务器是否设置正确并且已启动
2- 用于开发板启动的nfs-root文件系统是否存在,位置是否正确
3- linux内核编译前是否已正确添加开发板网卡驱动