From owner-freebsd-small Tue Sep 18 13:40: 0 2001 Delivered-To: freebsd-small@freebsd.org Received: from mail5.nc.rr.com (fe5.southeast.rr.com [24.93.67.52]) by hub.freebsd.org (Postfix) with ESMTP id 6817C37B412 for ; Tue, 18 Sep 2001 13:39:56 -0700 (PDT) Received: from stealth.cary.dummynet ([66.26.231.240]) by mail5.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Tue, 18 Sep 2001 16:39:55 -0400 Received: (from rhh@localhost) by stealth.cary.dummynet (8.11.4/8.11.4) id f8IKdOm58356; Tue, 18 Sep 2001 16:39:24 -0400 (EDT) (envelope-from aa8vb@nc.rr.com) X-Authentication-Warning: stealth.cary.dummynet: rhh set sender to aa8vb@nc.rr.com using -f Date: Tue, 18 Sep 2001 16:39:24 -0400 From: Randall Hopper To: John Kozubik Cc: small@freebsd.org Subject: Re: Booting from Flash Message-ID: <20010918163924.B58036@nc.rr.com> References: <20010916193310.A26261@nc.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from john@kozubik.com on Tue, Sep 18, 2001 at 11:41:20AM -0700 Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG John Kozubik: |> What is the best way to get FreeBSD up and running on this box? |> Is there a simple way to put a basic loader on the flash and then load |> everything (kernel, MFS root, etc.) via the ethernet? | |http://www.freebsd.org/doc/en_US.ISO8859-1/articles/solid-state/index.html | |this will show you step by step how to boot off of a fixit disk and run |each command to prepare and load an image onto a flash device. Thanks. Merging its disk prep tips with some I found in the archives, I cooked an empty disk image (with boot blocks) for his sandisk using the procedure listed below. After dd'ing it to his flash, he says the IPaq boots and gives the expected FreeBSD boot prompt with the "No /boot/loader" and "No /boot/loader" messages. Cool! Now I need to find out how much of the FreeBSD system I can netboot. That is, have virtually nothing on the sandisk and boot the kernel and an MFS root off the network. Ideally then /usr and other FSs could be NFS-mounted, removing the need to whittle down FreeBSD to a bare minimum so it'll fit in the 16MB flash. Is this possible? If anyone on the list done it, I'd sure appreciate any pointers you could offer! If not, tips on how to whittle down FreeBSD would also be helpful. I haven't located the "installsmallworld" target in the 4.x source tree yet. Is it mythical? Randall ------------------------------------------------------------------------------ dd if=/dev/zero of=mfsroot bs=1k count=16000 vnconfig -e -s labels vn0 mfsroot disklabel -r -w vn0 auto disklabel -e /dev/vn0c # <- dup the 'c' partition to an 'a', and save disklabel -B vn0 newfs /dev/vn0a #mount /dev/vn0a /mnt # SHou #umount /mnt vnconfig -u vn0 ------------------------------------------------------------------------------ -- Randall Hopper aa8vb@nc.rr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message