Chinaunix

标题: uclinux中使用ext3 rootfs [打印本页]

作者: nwcow    时间: 2006-07-20 12:16
标题: uclinux中使用ext3 rootfs
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




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2