From owner-freebsd-arm@FreeBSD.ORG Fri Jul 16 16:48:09 2010 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C37D61065680 for ; Fri, 16 Jul 2010 16:48:09 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 822A48FC15 for ; Fri, 16 Jul 2010 16:48:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o6GGfe3F099979; Fri, 16 Jul 2010 10:41:40 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 16 Jul 2010 10:42:02 -0600 (MDT) Message-Id: <20100716.104202.509346017166585931.imp@bsdimp.com> To: mark@exonetric.com From: "M. Warner Losh" In-Reply-To: <4C408821.8070403@exonetric.com> References: <20100714.095126.796017888477707637.imp@bsdimp.com> <4C3DE560.8000006@globaledgesoft.com> <4C408821.8070403@exonetric.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-arm@FreeBSD.org, ravindra.kulkarni@globaledgesoft.com Subject: Re: RootFile System Error X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jul 2010 16:48:09 -0000 In message: <4C408821.8070403@exonetric.com> Mark Blackman writes: : Ravindra wrote: : > it is larger than 4 MB, but still i am unable. : > : : I'm guessing that MFD_ROOT_SIZE=4MB constrains the : total size of the root filesystem. The root filesystem : you've built is too big to fit into 4MB. I've no idea : if you can increase MFD_ROOT_SIZE to accomodate the : root file system you've built *OR* if you need to strip : your root file system down. MFD_ROOT_SIZE does do exactly that. It says 'reserve exactly this amount of space for a MFS root inside the kernel image'. If you try to add a MFS root that's larger, it will fail as seen above. 250MB is also really large for a ram disk. I'm not familiar with the limitations of ARM, but I know that for MIPS this would be 1/2 of the available KVM space and it likely wouldn't cope too well with that. IIRC, there's a kernel size limit of 32MB on ARM, which would constrain the ram disk size to something less than that. How are you building the root image? If it is following my instructions using buildworld, chances are it is too bloated. You'd be better off with a nanobsd image, which would be much smaller (like on the order of 20-30MB if you turn everything off, and maybe do some hand/script pruning of files at the end). Warner P.S. Sorry for the zen-master-like replies earlier. I realized later I should have explained why this was a problem.