OK6410开发板移植cramfs出现问题,高手进

ericrack 2012-04-13 09:08:52
我的开发板 飞凌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都做过了,会出现两个坏快信息。

求高手指教应该怎么解决问题 能够正确启动文件系统,在开发板出现用户交互界面。
...全文
220 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
ericrack 2012-04-17
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 的回复:]

按理说坏块第一步会被处理的,我也是一块OK6410,如果你是Cramfs是自带的,这个问题到是没遇到,你到是可以吧那个烧写的连接给我,有空我可以在我的板子上做个实验。
[/Quote]我自己重新烧写yaffs可以正常启动了 谢谢了
Carl_CCC 2012-04-16
  • 打赏
  • 举报
回复
按理说坏块第一步会被处理的,我也是一块OK6410,如果你是Cramfs是自带的,这个问题到是没遇到,你到是可以吧那个烧写的连接给我,有空我可以在我的板子上做个实验。
ericrack 2012-04-16
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 的回复:]

貌似你Cramfs或者文件系统没做好。你能不能吧做Cramfs的详细点的信息发来。
[/Quote]那是板子自带的一个cramfs 应该是没有问题的。我上网搜了 好像是因为nand坏块 然后导致cramfs不能正确解压。你要什么详细信息?
Carl_CCC 2012-04-14
  • 打赏
  • 举报
回复
貌似你Cramfs或者文件系统没做好。你能不能吧做Cramfs的详细点的信息发来。
ericrack 2012-04-13
  • 打赏
  • 举报
回复
求解答 自己顶!

4,466

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 内核源代码研究区
社区管理员
  • 内核源代码研究区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧