+ -
当前位置:首页 → 问答吧 → 大侠救命,内核移植Warning: unable to open an initial console.

大侠救命,内核移植Warning: unable to open an initial console.

时间:2007-07-31

来源:互联网

2440A上移植2.6.10 linux,文件系统为ext2的ramdisk。
串口打印信息如下:
提示,Warning: unable to open an initial console,无法打开控制台已经ttyS2
但是,ttyS0,ttyS1打开没问题。
ramdisk中dev下确认已经有console ttyS2等设备,设备信息如下:
crw-r--r--    1 root     root   5,  1    2007 console
crw-r--r--    1 root     root   4,  64   2007 ttyS0
crw-r--r--    1 root     root   4,  65   2007 ttyS1
crw-r--r--    1 root     root   4,  66   2007 ttyS2

## Starting application at 0x30008000 ...
Linux version 2.6.10 ([email protected]) (gcc version 3.4.2) #67 Tue Ma
y 1 23:00:32 CST 2007
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
CPU: D VIVT write-back cache
CPU: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Machine: SMDK2440
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C2440: core 304.800 MHz, memory 101.600 MHz, peripheral 50.800 MHz
S3C2440 Clock control, (c) 2004 Simtec Electronics
Built 1 zonelists
Kernel command line: initrd=0x30800000,0x440000 root=/dev/ram rw init=/linuxrc c
onsole=ttyS2,115200
irq: clearing subpending status 000000c2
PID hash table entries: 128 (order: 7, 2048 bytes)
OK? timer tcon=00090000, tcnt 1f00, tcfg 00000f00,00000000, usec 00001e3c
s3c24xx_serial_initconsole
s3c24xx_serial_init_ports: initialising ports...
==== i  0
s3c24xx_serial_init_port: port=c00ee2cc, platdev=c00e8d78
==== i  1
s3c24xx_serial_init_port: port=c00ee35c, platdev=c00e8c90
==== i  2
s3c24xx_serial_init_port: port=c00ee3ec, platdev=c00e8ba8
s3c24xx_serial_console_setup: co=c00ee28c (2), 115200
s3c24xx_serial_console_setup: port=c00ee3ec (2)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 16MB = 16MB total
Memory: 10756KB available (807K code, 179K data, 68K init)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 4352K
Linux NoNET1.0 for Linux 2.6
S3C2440: Initialising architecture
S3C2440 DMA Driver, (c) 2003-2004 Simtec Electronics
DMA channel 0 at c1800000, irq 17
DMA channel 1 at c1800040, irq 18
DMA channel 2 at c1800080, irq 19
DMA channel 3 at c18000c0, irq 20
NetWinder Floating Point Emulator V0.97 (double precision)
=====tty_init
register_chrdev_region /dev/console ok
&&&&&&&&&  s3c2440_serial_init
&&&&&&&&&  s3c2440_serial_probe: dev=c00e8d80
********* NR_PORTS:3
s3c24xx_serial_probe(c00e8d80, c00ee4c8) 0
s3c24xx_serial_probe: initialising port c00ee2b8...
s3c24xx_serial_init_port: port=c00ee2cc, platdev=c00e8d78
s3c24xx_serial_probe: adding port
s3c2440_serial0 at MMIO 0x50000000 (irq = 54) is a S3C2440
end s3c24xx_serial_probe
&&&&&&&&&  s3c2440_serial_probe: dev=c00e8c98
********* NR_PORTS:3
s3c24xx_serial_probe(c00e8c98, c00ee4c8) 1
s3c24xx_serial_probe: initialising port c00ee348...
s3c24xx_serial_init_port: port=c00ee35c, platdev=c00e8c90
s3c24xx_serial_probe: adding port
s3c2440_serial1 at MMIO 0x50004000 (irq = 57) is a S3C2440
end s3c24xx_serial_probe
io scheduler noop registered
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
loop: loaded (max 8 devices)
elevator: using noop as default io scheduler
NFTL driver: nftlcore.c $Revision: 1.1.1.1 $, nftlmount.c $Revision: 1.1.1.1 $
mice: PS/2 mouse device common for all mice
RAMDISK: Compressed image found at block 0
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 68K
Warning: unable to open an initial console.
Warning: unable to open ttyS2.
s3c24xx_serial_startup: port=50004000 (f0904000,c00ee468)
s3c24xx_serial_startup ok
s3c24xx_serial_startup: port=50000000 (f0900000,c00ee468)
s3c24xx_serial_startup ok

      

作者: oyyz   发布时间: 2007-07-31