我的开发板 飞凌6410,移植uboot1.1.6 kernel3.01 cramfs到开发板上。通过sd卡一键烧写三个image到开发板,烧写过程中发现写cramfs好像有点问题,应该是出现nand坏块。
截下一些重要的启动信息:
NAND read: device 0 offset 0x100000, size 0x500000
5242880 bytes read: OK
Boot with zImage
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Linux version 3.0.1-svn140 (root@monkey-MS-7678) (gcc version 4.3.2 (Sourcery G1
S3C24XX Clocks, Copyright 2004 Simtec Electronics
camera: no parent clock specified
S3C64XX: PLL settings, A=532000000, M=532000000, E=24000000
S3C64XX: HCLK2=266000000, HCLK=133000000, PCLK=66500000
mout_apll: source is fout_apll (1), rate is 532000000
mout_epll: source is epll (1), rate is 24000000
mout_mpll: source is mpll (1), rate is 532000000
mmc_bus: source is mout_epll (0), rate is 24000000
mmc_bus: source is mout_epll (0), rate is 24000000
mmc_bus: source is mout_epll (0), rate is 24000000
usb-bus-host: source is clk_48m (0), rate is 48000000
uclk1: source is dout_mpll (1), rate is 66500000
spi-bus: source is mout_epll (0), rate is 24000000
spi-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
irda-bus: source is mout_epll (0), rate is 24000000
camera: no parent clock specified
Kernel command line: root=/dev/mtdblock2 rootfstype=cramfs console=ttySAC0,11520
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 206888k/206888k available, 55256k reserved, 0K highmem
NAND device: Manufacturer ID: 0xec, Chip ID: 0xd5 (Samsung NAND 2GiB 3,3V 8-bit)
Creating 4 MTD partitions on "NAND 2GiB 3,3V 8-bit":
0x000000000000-0x000000100000 : "Bootloader"
0x000000100000-0x000000600000 : "Kernel"
0x000000600000-0x000007e00000 : "User"
0x000007e00000-0x000080000000 : "File System"
。。。
Registering the dns_resolver key type
s3c-rtc s3c64xx-rtc: setting system clock to 2000-10-09 04:42:49 UTC (971066569)
VFS: Mounted root (cramfs filesystem) readonly on device 31:2.
devtmpfs: mounted
Freeing init memory: 172K
cramfs: bad compressed blocksize 737893912
cramfs: bad compressed blocksize 737893912
/bin/sh: can't access tty; job control turned off
#
最后到这里,可以输入一些基本的如ls cd 之类的命令 但是不能在开发板看到用户界面。
我在网上搜索的说是因为有nand坏块,然后导致不能正确解压cramfs,好像是可以通过打补丁然后解决问题,但是那个是2.6内核,所以可能不行。
我已经在uboot 下面nand erase 和nand scrub都做过了,会出现两个坏快信息。
求高手指教应该怎么解决问题 能够正确启动文件系统,在开发板出现用户交互界面。