主题 : Warning: unable to open an initial console.  ?????? 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 4875
精华: 0
发帖: 32
金钱: 325 两
威望: 321 点
综合积分: 64 分
注册时间: 2009-04-01
最后登录: 2010-03-02
楼主  发表于: 2009-05-21 17:08

 Warning: unable to open an initial console.  ??????

自己移植的U-BOOT和内核
内核总是启动不起来

显示如下:

U-Boot 1.1.6 (May 11 2009 - 20:19:13)                                          
                                                                                
DRAM:  64 MB                                                                    
Flash:  1 MB                                                                    
NAND:  64 MiB                                                                  
*** Warning - bad CRC, using default environment                                
                                                                                
In:    serial                                                                  
Out:   serial                                                                  
Err:   serial                                                                  
Hit any key to stop autoboot:  0                                                
                                                                                
Loading from NAND 64MiB 3,3V 8-bit, offset 0x0                                  
   Image Name:   Linux-2.6.22.6                                                
   Created:      2009-05-12   8:14:38 UTC                                      
   Image Type:   ARM Linux Kernel Image (uncompressed)                          
   Data Size:    1851312 Bytes =  1.8 MB                                        
   Load Address: 30008000                                                      
   Entry Point:  30008000                                                      
## Booting image at 32000000 ...                                                
   Image Name:   Linux-2.6.22.6                                                
   Created:      2009-05-12   8:14:38 UTC                                      
   Image Type:   ARM Linux Kernel Image (uncompressed)                          
   Data Size:    1851312 Bytes =  1.8 MB                                        
   Load Address: 30008000                                                      
   Entry Point:  30008000                                                      
   Verifying Checksum ... OK                                                    
OK                                                                              
                                                                                
Starting kernel ...                                                            
                                                                                
Uncompressing Linux.............................................................
Linux version 2.6.22.6 (root@ubuntu) (gcc version 3.4.6) #1 Tue May 12 16:14:059
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177                        
Machine: SMDK2440                                                              
Memory policy: ECC disabled, Data cache writeback                              
CPU S3C2440A (id 0x32440001)                                                    
S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz            
S3C24XX Clocks, (c) 2004 Simtec Electronics                                    
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on                            
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.  Total pages: 16256                                          
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
irq: clearing pending ext status 00000200                                      
irq: clearing subpending status 00000002                                        
PID hash table entries: 256 (order: 8, 1024 bytes)                              
timer tcon=00500000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8          
Console: colour dummy device 80x30                                              
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: 60976KB available (3260K code, 466K data, 140K init)                    
Mount-cache hash table entries: 512                                            
CPU: Testing write buffer coherency: ok                                        
NET: Registered protocol family 16                                              
S3C2410 Power Management, (c) 2004 Simtec Electronics                          
S3C2440: Initialising architecture                                              
S3C2440: IRQ Support                                                            
S3C2440: Clock Support, DVS off                                                
S3C24XX DMA Driver, (c) 2003-2004,2006 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                                              
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: 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                                                            
NetWinder Floating Point Emulator V0.97 (double precision)                      
Registering GDB sysrq handler                                                  
JFFS2 version 2.2. (NAND)
yaffs May 12 2009 16:09:18 Installing.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 30x40
fb0: s3c2410fb frame buffer device
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
s3c2440-uart.0: s3c2410_serial0 at MMIO map 0x50000000 mem 0xf0400000 (irq = 700
s3c2440-uart.1: s3c2410_serial1 at MMIO map 0x50004000 mem 0xf0404000 (irq = 730
s3c2440-uart.2: s3c2410_serial2 at MMIO map 0x50008000 mem 0xf0408000 (irq = 760
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: module loaded
cs89x0:cs89x0_probe(0x0)
cs89x0.c: v2.4.3-pre1 Russell Nelson <nelson@crynwr.com>, Andrew Morton <andrew>
eth0: cs8900 rev K found at 0xc4c00300
cs89x0: Extended EEPROM checksum bad and no Cirrus EEPROM, relying on command le
cs89x0 media  IRQ 53, programmed I/O, MAC 08:89:89:89:89:89
cs89x0_probe1() successful
dm9000 Ethernet Driver
dm9000: read wrong id 0x00a26128
dm9000: read wrong id 0x2b2a2928
dm9000: wrong id: 0x2b2a2928
dm9000: not found (0).
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 s3c2440-nand: Tacls=3, 30ns Twrph0=7 70ns, Twrph1=3 30ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bi)
Scanning device for bad blocks
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00200000 : "kernel"
0x00200000-0x00a00000 : "jffs2"
0x00a00000-0x04000000 : "yaffs"
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
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 390 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
mapped channel 0 to 0
s3c2440-sdi s3c2440-sdi: powered down.
s3c2440-sdi s3c2440-sdi: initialisation done.
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 1
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
s3c2440-sdi s3c2440-sdi: running at 0kHz (requested: 0kHz).
s3c2440-sdi s3c2440-sdi: running at 196kHz (requested: 195kHz).
s3c2440-sdi s3c2440-sdi: running at 196kHz (requested: 195kHz).
s3c2440-sdi s3c2440-sdi: running at 196kHz (requested: 195kHz).
s3c2440-sdi s3c2440-sdi: CMD[TIMEOUT] #2 op:UNKNOWN(8) arg:0x000001aa flags:0x0e
s3c2440-sdi s3c2440-sdi: CMD[TIMEOUT] #3 op:APP_CMD(55) arg:0x00000000 flags:0xe
s3c2440-sdi s3c2440-sdi: CMD[TIMEOUT] #4 op:APP_CMD(55) arg:0x00000000 flags:0xe
s3c2440-sdi s3c2440-sdi: CMD[TIMEOUT] #5 op:APP_CMD(55) arg:0x00000000 flags:0xe
s3c2440-sdi s3c2440-sdi: CMD[TIMEOUT] #6 op:APP_CMD(55) arg:0x00000000 flags:0xe
s3c2440-sdi s3c2440-sdi: CMD[TIMEOUT] #7 op:ALL_SEND_OCR(1) arg:0x00000000 flage
s3c2440-sdi s3c2440-sdi: powered down.
end_request: I/O error, dev mtdblock2, sector 32640
UDF-fs: No VRS found
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 140K
Warning: unable to open an initial console.
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
[ 此帖被zhangxiaowei在2009-05-21 17:15重新编辑 ]
级别: 新手上路
UID: 4875
精华: 0
发帖: 32
金钱: 325 两
威望: 321 点
综合积分: 64 分
注册时间: 2009-04-01
最后登录: 2010-03-02
1楼  发表于: 2009-05-21 17:13
JFFS2 version 2.2. (NAND)
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2009-05-21 17:50

 Re:Warning: unable to open an initial console.  ??????

      
"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: 4875
精华: 0
发帖: 32
金钱: 325 两
威望: 321 点
综合积分: 64 分
注册时间: 2009-04-01
最后登录: 2010-03-02
3楼  发表于: 2009-05-21 18:13
就是最后三行显示的错误:
Warning: unable to open an initial console.
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
级别: 侠客
UID: 4684
精华: 0
发帖: 67
金钱: 430 两
威望: 233 点
综合积分: 134 分
注册时间: 2009-03-25
最后登录: 2012-02-13
4楼  发表于: 2009-05-24 17:49

 Re:Warning: unable to open an initial console.  ??????

网上很多都是同一个说法:
/dev 目录下缺少 console null 设备文件。
但是我新建了这些设备文件后还是同一出错信息。