
又遇到了问题,移植的时候出现了 Warning: unable to open an initial console
这是bootargs的信息:
setenv bootargs noinitrd root=/dev/mtdblock3 rootfstype=yaffs2 r
w console=ttySAC0,115200 init=/linuxrc mem=64M
在rootfs的dev下我建了一个ttySAC0 600 设备号4, 64
补充一下:linuxrc都有可执行权限
下面是一些打印的信息:
[u-boot@C-JOK]#
tftp 30008000 rootfsa.yaffs2dm9000 i/o: 0x20000300, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 08:08:11:18:12:27
operating at 100M full duplex mode
Using dm9000 device
TFTP from server 172.30.22.164; our IP address is 172.30.22.165
Filename 'rootfsa.yaffs2'.
Load address: 0x30008000
Loading: T #################################################################
######################################################
done
Bytes transferred = 1745040 (1aa090 hex)
[u-boot@C-JOK]#
nand erase 0x260000 7a80000NAND erase: device 0 offset 0x260000, size 0x7a80000
Erasing at 0x7cc000007a80000 -- 0% complete.
OK
[u-boot@C-JOK]#
nand write.yaffs 30008000 0x260000 1aa6c0NAND write: device 0 offset 0x260000, size 0x1aa6c0
Skip the first good block 26000000020000
Writing at 0x40000000020000 -- 100% is complete. 1693696 bytes written: OK
[u-boot@C-JOK]# setenv bootargs noinitrd root=/dev/mtdblock3 rootfstype=yaffs2 r
w console=ttySAC0,115200 init=/linuxrc mem=64M
[u-boot@C-JOK]# saveenv
Saving Environment to NAND...
Erasing Nand...
Erasing at 0x6000000000002 -- 0% complete.
Writing to Nand... done
[u-boot@C-JOK]#
tftp 31000000 uImage2.6.29x9.imgdm9000 i/o: 0x20000300, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 08:08:11:18:12:27
operating at 100M full duplex mode
Using dm9000 device
TFTP from server 172.30.22.164; our IP address is 172.30.22.165
Filename 'uImage2.6.29x9.img'.
Load address: 0x31000000
Loading: T #################################################################
#################################################################
############
done
Bytes transferred = 2072528 (1f9fd0 hex)
[u-boot@C-JOK]#
bootm 31000000## Booting kernel from Legacy Image at 31000000 ...
Image Name: linux2.26.29-CJOK
Created: 2010-09-15 5:43:04 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2072464 Bytes = 2 MB
Load Address: 30008000
Entry Point: 30008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux.............................................................
........................................................................ done, b
ooting the kernel.
Linux version 2.6.29.4-FriendlyARM (
root@localhost.localdomain) (gcc version 4.3
.2 (Sourcery G++ Lite 2008q3-72) ) #1 Wed Sep 15 13:37:25 HKT 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: FriendlyARM Mini2440 development board
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
中间的省略
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
block 22 is bad
block 23 is bad
block 24 is bad
block 25 is bad
block 26 is bad
block 27 is bad
block 28 is bad
block 29 is bad
block 30 is bad
block 31 is bad
block 32 is bad
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs2 filesystem) on device 31:3.
Freeing init memory: 148K
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.
