Date: Fri, 18 Jun 2010 10:35:00 +0530 (IST) From: akash kumar <akashb503@yahoo.co.in> To: Tim Judd <tajudd@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: mountroot error with memory based rootfs Message-ID: <517106.77771.qm@web95111.mail.in2.yahoo.com> In-Reply-To: <AANLkTimlM5RzD3dBqlTj28bqFBN_Oq8Pl6WXRYDc_GD0@mail.gmail.com> References: <380848.61900.qm@web95111.mail.in2.yahoo.com> <AANLkTimlM5RzD3dBqlTj28bqFBN_Oq8Pl6WXRYDc_GD0@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi,=0A=0AThe root file system was built commenting out compact flash and en= abling md0 as below in the config file for my target arch.=0A=0A#device = cf=0A#options ROOTDEVNAME=3D\"ufs:cf0s1\"=0A=0A# Use th= e following for RFS in mem-device=0Aoptions MD_ROOT=0Aoptions = ROOTDEVNAME =3D \"ufs:md0\"=0Aoptions MD_ROOT_SIZE =3D 7264=0A= =0AAfter the kernel was built and installed using 'make buildkernel KERNCON= F=3D"configfile" and make installkernel commands.=0APlease let me know if y= ou need any more info.=0A=0AThanks,=0ABhanu Prakash.=0A=0A=0A=0A=0A=0A_____= ___________________________=0AFrom: Tim Judd <tajudd@gmail.com>=0ATo: akash= kumar <akashb503@yahoo.co.in>=0ASent: Fri, 18 June, 2010 7:50:14 AM=0ASubj= ect: Re: mountroot error with memory based rootfs=0A=0AOn 6/17/10, akash ku= mar <akashb503@yahoo.co.in> wrote:=0A> Hi,=0A>=0A> I was trying to build ro= ot filesystem in to the kernel (i.e using /dev/md0)=0A> for Mips based targ= et boards. In the process i built tool chain and kernel=0A> successfully.= =0A> But when i boot the kernel on the target, it fails to mount the md0 an= d=0A> drops to mountroot prompt.=0A>=0A> mountroot> ufs:/dev/md0=0A> ROOT M= OUNT ERROR=0A> If you have invalid mount options, reboot, and first try the= following from=0A> the loader prompt:=0A>=0A> set vfs.root.mountfrom.optio= ns=3Drw=0A>=0A> and the remove invalid mount options from /etc/fstab.=0A>= =0A> Loader variables:=0A> vfs.root.mountfrom=3D=0A> vfs.root.mountform.opt= ions=3D=0A>=0A> I could see that both the above variables are unset and not= sure whether=0A> this is by default. As i am building a cross kernel, i ca= n't add these=0A> options to /boot/loader.conf files which applies to curre= nt host machine.=0A>=0A> Please help me where the above settings need to be= added i.e which directory=0A> and file for the settings to effect for my t= arget kernel build.=0A>=0A> Thanks,=0A> Akash.=0A>=0A>=0A=0APlease give det= ails on how the root filesystem image is built.=0A=0AWhat works is to forma= t the rootfs image without a partition or bsdlabel.=0A=0A=0A=0AIt is just u= nable to mount the image as specified.=0A=0A=0A
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?517106.77771.qm>