From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 18:42:03 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B60AB16A4CE for ; Wed, 23 Mar 2005 18:42:03 +0000 (GMT) Received: from web54001.mail.yahoo.com (web54001.mail.yahoo.com [206.190.36.225]) by mx1.FreeBSD.org (Postfix) with SMTP id 1909543D54 for ; Wed, 23 Mar 2005 18:42:03 +0000 (GMT) (envelope-from pm940@yahoo.com) Received: (qmail 13060 invoked by uid 60001); 23 Mar 2005 18:42:02 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=C0LropN5aVqwXOo82Qpn0iFMLJVu2me2zXqTvGuMulPgta7sZRfZlrt46TqCi4qYWLNxPHG3AONi0C860ZKkep8Gj2sGq4649H89h9bZ6Sg3a/CZ3HJxEFYWXVrPHDxlCQQerv6gphWRpeXTPQ5o/8YtFxecYcbUijvcP/HkOsI= ; Message-ID: <20050323184202.13058.qmail@web54001.mail.yahoo.com> Received: from [69.237.122.17] by web54001.mail.yahoo.com via HTTP; Wed, 23 Mar 2005 10:42:02 PST Date: Wed, 23 Mar 2005 10:42:02 -0800 (PST) From: Nine Forty To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Step-by-step instructions for MD_ROOT embedded, please? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2005 18:42:03 -0000 I am having problems building an embedded kernel + root filesystem image for FreeBSD-5.3. I had previously succeeded on 4.11. For 4.11 I created a filesystem using vnconfig, disklabel, newfs, etc. and installed it into the kernel using write_mfs_in_kernel. I built a kernel with MD_ROOT and MD_ROOT_SIZE set to 32M. I selected the MD filesystem by setting vfs.root.mountfrom in /boot/loader.conf. Following these same steps in 5.3 (except using mdconfig, and hacking write_mfs_in_kernel (setting SBOFF to 64K)) the kernel failed to find the filesystem. If I let the kernel boot with the disk filesystem I still can't mount md0 - a valid filesystem is not found. I would greatly appreciate a detailed, idiot-proof, step-by-step literal command list starting with nothing and ending with a kernel with a working embedded filesystem. I don't need the filesystem to have contents, just to be there and be found... once the kernel boots with md0 and fails to find /sbin/init, I can take it from there. Looking on the mailing list archives and on the web I get the impression that this is not a common procedure... I haven't been able to find instructions anywhere. I hope someone can help me. Regards, Paul. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com