Date: Fri, 25 Mar 2005 17:49:40 -0800 (PST) From: David Clear <davidclear@yahoo.com> To: freebsd-questions@freebsd.org Subject: Re: Step-by-step instructions for MD_ROOT embedded, please? Message-ID: <20050326014940.52362.qmail@web52605.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
Here you go (found on the web): 1. Create a filesystem image: # dd if=/dev/zero of=mdimage -bs=1024 count=4096 # mdconfig -a -t vnode -f mdimage -s 4096k -u 4 # disklabel -r -w md4 auto # newfs /dev/md4c # mount /dev/md4c /mnt . . put stuff on it . # umount /mnt # mdconfig -d -u 4 2. Make sure you have the kernel options: options MD_ROOT options MD_ROOT_SIZE=4096 ...and rebuild. 3. As you said, compiling /usr/src/release/write_mfs_in_kernel.c from FreeBSD-4.11 with SBOFF set to 64K will work. You'll also need to #include <ufs/ufs/dinode.h> prior to fs.h. 4. Set vfs.root.mountfrom to "ufs:md0" in /boot/loader.conf. Works for me on 5.3-RELEASE. Good luck. Regards, David.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050326014940.52362.qmail>