免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1054 | 回复: 0
打印 上一主题 下一主题

移植内核之yaffs2 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-21 08:41 |只看该作者 |倒序浏览

移植内核之yaffs2


http://www.yaffs.net/node/346下载yaffs2补丁源码

 解压之后,进入yaffs2目录

./patch-ker.sh c ../../../arm6410/linux-2.6.32.36/

这样yaffs2的补丁就打好了

配置内核,选中yaffs2

Make menuconfig ARCH=arm

File systems  --->     

[*] Miscellaneous filesystems  --->  

     <*>   YAFFS2 file system support   

编译烧写内核

Make zImage ARCH=arm CROSS_COMPILE=arm-linux-

设置bootargs参数:

setenv bootargs noinitrd root=/dev/mtdblock init=/linuxrc rootfstype=yaffs2 console=ttySAC0,115200

可能遇到的问题:

此问题,让我纠结了很久,FUCK一下

NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)

Creating 4 MTD partitions on "NAND 256MiB 3,3V 8-bit":

0x000000000000-0x000000040000 : "u-boot"

0x000000040000-0x000000400000 : "kernel"

0x000000400000-0x000005400000 : "rootfs"

0x000005400000-0x000010000000 : "file system"

mice: PS/2 mouse device common for all mice

i2c /dev entries driver

sdhci: Secure Digital Host Controller Interface driver

sdhci: Copyright(c) Pierre Ossman

TCP cubic registered

yaffs: dev is 32505858 name is "mtdblock2"

yaffs: passed flags ""

yaffs: Attempting MTD mount on 31.2, "mtdblock2"

yaffs_read_super: isCheckpointed 0

VFS: Mounted root (yaffs2 filesystem) on device 31:2.

Freeing init memory: 108K

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.

[<c0029974>] (unwind_backtrace+0x0/0xd8) from [<c024ece4>] (panic+0x40/0x10c)

[<c024ece4>] (panic+0x40/0x10c) from [<c00235d0>] (init_post+0xec/0x120)

[<c00235d0>] (init_post+0xec/0x120) from [<c00085bc>] (kernel_init+0xdc/0x10c)

[<c00085bc>] (kernel_init+0xdc/0x10c) from [<c0024e34>] (kernel_thread_exit+0x0/0x8)

 

在用以前在mini2440上使用过的mkyaffs2image不行,后来用yaffs2补丁中原有的mkyaffs2imageOK了,很奇怪!



您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP