主题 : Linux 内核下载后无法挂载控制台? 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 517
精华: 0
发帖: 28
金钱: 280 两
威望: 154 点
综合积分: 56 分
注册时间: 2008-04-16
最后登录: 2009-06-09
楼主  发表于: 2009-02-26 23:05

 Linux 内核下载后无法挂载控制台?

如题:开发板QQ2440V3
已经浪费我两天的时间了,就是没有解决掉这个问题,启动打印信息如下:

U-Boot 1.2.0 (Feb 26 2009 - 12:01:11)

U-Boot code: 33F80000 -> 33F9D878 BSS: -> 33FA361C
DRAM:  64 MB
Flash:  2 MB
NAND:  NAND flash probing at 0x4E000000
  64 MB
*** Warning - bad CRC or NAND, using default environment

In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
[jj2440]# printenv
bootargs=console=ttySAC0 init=/linuxrc root=/dev/mtdblock4 nfsroot=192.168.1.222:/opt/FriendlyARM/QQ2440/my_rootfs ip=192.168.1.69:192.168.1.222:192.168.1.2:255.255.255.0:jjchen:eth0:on
bootcmd=dhcp; bootm
bootdelay=3
baudrate=115200
ethaddr=08:00:3e:26:0a:5b
ipaddr=192.168.1.69
serverip=192.168.1.222
netmask=255.255.255.0
stdin=serial
stdout=serial
stderr=serial

Environment size: 366/65532 bytes
[jj2440]# saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
[jj2440]# tftp 30008000 uImage
TFTP from server 192.168.1.222; our IP address is 192.168.1.69
Filename 'uImage'.
Load address: 0x30008000
Loading: *#################################################################
     #################################################################
     #################################################################
     #################################################################
     ###########################################################
done
Bytes transferred = 1630884 (18e2a4 hex)
[jj2440]# bootm 30008000
## Booting image at 30008000 ...
   Image Name:   Linux-2.6.22.2
   Created:      2009-02-24  15:43:37 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1630820 Bytes =  1.6 MB
   Load Address: 30008000
   Entry Point:  30008040
   Verifying Checksum ... OK
   XIP Kernel Image ... OK

Starting kernel ...

Uncompressing Linux.......................................................................................................... done, booting the kernel.
Linux version 2.6.22.2 (root@JJChen) (gcc version 3.4.1) #13 Tue Feb 24 23:41:45 CST 2009
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: SMDK2440
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 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: console=ttySAC0 init=/linuxrc root=/dev/mtdblock4 nfsroot=192.168.1.222:/opt/FriendlyARM/QQ2440/my_rootfs ip=192.168.1.69:192.168.1.222:192.168.1.2:255.255.255.0:jjchen:eth0:on
irq: clearing pending ext status 00000200
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00500000, tcnt a4ca, tcfg 00000200,00000000, usec 00001e57
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: 61336KB available (3056K code, 346K data, 112K 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
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)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.8)
yaffs Feb 23 2009 00:06:26 Installing.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
s3c2410-lcd s3c2410-lcd: invalid bpp 16
Console: switching to colour frame buffer device 30x40
fb0: s3c2410fb frame buffer device
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 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: module loaded
cs89x0:cs89x0_probe(0xf2200300)
cs89x0.c: v2.4.3-pre1 Russell Nelson <nelson@crynwr.com>, Andrew Morton <andrewm@uow.edu.au>
eth0: cs8900 rev K found at 0xf2200300 <6>cs89x0 media RJ-45, IRQ 53, programmed I/O, MAC 08:08:08:08:27:12
cs89x0_probe1() successful
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=1, 9ns Twrph0=4 39ns, Twrph1=1 9ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Bad eraseblock 476 at 0x00770000
Creating 6 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00020000 : "U-Boot-1.2.0"
0x00020000-0x00030000 : "U-Boot-1.2.0 Parameter"
0x00030000-0x00500000 : "Linux2.6.22.2 Kernel"
0x00500000-0x00a00000 : "Root-JFFS2"
0x00a00000-0x01400000 : "Boot-Root(cramfs)"
0x01400000-0x04000000 : "YAFFS"
usbmon: debugfs is not available
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
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 98 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
eth0: using full-duplex 10Base-T (RJ-45)
IP-Config: Complete:
      device=eth0, addr=192.168.1.69, mask=255.255.255.0, gw=192.168.1.2,
     host=jjchen, domain=, nis-domain=(none),
     bootserver=192.168.1.222, rootserver=192.168.1.222, rootpath=
yaffs: dev is 32505860 name is "mtdblock4"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.4, "mtdblock4"
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 112K
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: 517
精华: 0
发帖: 28
金钱: 280 两
威望: 154 点
综合积分: 56 分
注册时间: 2008-04-16
最后登录: 2009-06-09
1楼  发表于: 2009-02-28 12:26
怎么没有回复啊,自己先顶一下了,
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2009-02-28 14:09
又是Yaffs的问题, 我说过, 努力找一套从制作, 烧录到挂载确认都OK的Yaffs工具或者补丁吧...
"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."