From owner-freebsd-questions@FreeBSD.ORG Fri Jun 18 05:05:03 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9697F106566C for ; Fri, 18 Jun 2010 05:05:03 +0000 (UTC) (envelope-from akashb503@yahoo.co.in) Received: from n10-vm0.bullet.mail.in.yahoo.com (n10-vm0.bullet.mail.in.yahoo.com [202.86.4.194]) by mx1.freebsd.org (Postfix) with SMTP id DEFF88FC14 for ; Fri, 18 Jun 2010 05:05:01 +0000 (UTC) Received: from [202.86.4.171] by n10.bullet.mail.in.yahoo.com with NNFMP; 18 Jun 2010 05:05:00 -0000 Received: from [203.104.17.89] by t2.bullet.in.yahoo.com with NNFMP; 18 Jun 2010 05:05:00 -0000 Received: from [127.0.0.1] by omp103.mail.in2.yahoo.com with NNFMP; 18 Jun 2010 05:05:00 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 672332.39158.bm@omp103.mail.in2.yahoo.com Received: (qmail 80296 invoked by uid 60001); 18 Jun 2010 05:05:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.in; s=s1024; t=1276837500; bh=Hqssu1IBYWLjoeqN7aWHI21xSrEPaGF1BehhWCCmyvk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=B8jShgwlnKjcTb7wnY7FDQwg9oNInm7qnz71KtYPGgPXOoe65SLmWk3a3UbgwTNYGUjpHQoGHtmQW3YLb0Xt1WUTf4VGT+Rml8AUYFj7lDPntNeKt3AJa2gUaFKt/I/WoMrqijsAyo0Vm62WlSBoqW28WBy5/ev48Xbcr13ZYLY= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=rYNNPBWdhmwwsSfZX7t1+906ty2BCgjp+TEvi1UzmTp9rjbjEFEDSROV1kPaGuP5L/5LBMukX4HCB/uj9/7mMQdPzke8T7721sPI6clCeefqZouHI766PjI/7gElQcnOe2KxF+8KDNpSJVxRiwRAUwVNUeiQYupPnMqVCFA4Y38=; Message-ID: <517106.77771.qm@web95111.mail.in2.yahoo.com> X-YMail-OSG: J2HZ5LoVM1mIc76syh0kKXeNJ8vrgFgJU1V.N_raPEqFMSq ZrV993RXKKnwSArgHl9bqP49ANoR7Jh62UmRT2Hv9klu_Gcl4EW6EcRWGC5I z8JXuRT0lITTf96JjzUqheLkv2BYcKsY1mLai9whwUEaqoLbyD_XAafw4Y4p Eptjuth5tVH.qe5jf9DbpzVK8R8woZtADmf8GL8C1CJ5LUxV4TbH_4rduoEV ztD_byq8Fe3M- Received: from [122.181.19.78] by web95111.mail.in2.yahoo.com via HTTP; Fri, 18 Jun 2010 10:35:00 IST X-Mailer: YahooMailRC/397.8 YahooMailWebService/0.8.103.269680 References: <380848.61900.qm@web95111.mail.in2.yahoo.com> Date: Fri, 18 Jun 2010 10:35:00 +0530 (IST) From: akash kumar To: Tim Judd In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: mountroot error with memory based rootfs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jun 2010 05:05:03 -0000 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 =0ATo: akash= kumar =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 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