免费注册 查看新帖 |

Chinaunix

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

uclinux中使用ext3 rootfs [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-07-20 12:16 |只看该作者 |倒序浏览
Comment By: Sajeev Kesavan (sajeev)
Date: 2005-01-31 07:02
Message:
I followed the following instructions and got the ext3 filesystem booting :
        For booting EXT3 file system:
1. Do these with EXT2 enabled first.
   edit vendors/ADI/BF533/Makefile
   change the BLOCKS to 3072
   4 makes
   mkdir /home/files
   cp linux-2.6.x/rootfs.img /home/files/
   cd /home/files
   mkdir t
   mkdir test
   mount -o loop rootfs.img t/
   mkfs.ext3 /dev/ram0 4096
   mount -t ext3 /dev/ram0 ./test
   cp -af t/* ./test/
   umount  ./test
   dd if=/dev/ram0 bs=1k count=4096 > ext3.img
   
2. copy ext3.img obtained from step 1 to linux-2.6.x/rootfs.img. (replace rootfs.img with ext3.img)
                               
3. make menuconfig
   disable all file systems
   enable ext3 file system
   Edit vendors/ADI/BF533/Makefile
   Comment all lines under image:
   4 makes
4. use the linux image obtained to see ext3 functionality.
ENSURE THE rootfs.img obtained out of ext2 compilation in step2 is less than 4MB.
However , the mkfs.ext3 utility on desktop throws Warning Message " mkfs.ext3:Filesystem larger than apparent file system size " .Therefore it doesn't somehow build coorect filesystem(ext3) of size more than 4 MB .


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/20141/showart_143099.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP