From owner-freebsd-small Fri Aug 3 12:20: 2 2001 Delivered-To: freebsd-small@freebsd.org Received: from whizzo.transsys.com (whizzo.TransSys.COM [144.202.42.10]) by hub.freebsd.org (Postfix) with ESMTP id 602D337B405 for ; Fri, 3 Aug 2001 12:19:57 -0700 (PDT) (envelope-from louie@whizzo.transsys.com) Received: from whizzo.transsys.com (#6@localhost.transsys.com [127.0.0.1]) by whizzo.transsys.com (8.11.4/8.11.4) with ESMTP id f73JJtn73678; Fri, 3 Aug 2001 15:19:55 -0400 (EDT) (envelope-from louie@whizzo.transsys.com) Message-Id: <200108031919.f73JJtn73678@whizzo.transsys.com> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Chris Dillon Cc: freebsd-small@FreeBSD.ORG X-Image-URL: http://www.transsys.com/louie/images/louie-mail.jpg From: "Louis A. Mamakos" Subject: Re: sis0 problems sending out zeros. References: In-reply-to: Your message of "Fri, 03 Aug 2001 13:30:24 CDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 03 Aug 2001 15:19:55 -0400 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 > On Fri, 3 Aug 2001, Louis A. Mamakos wrote: > > > FYI, I was able to get the board to net-boot using PXE, and > > running diskless using NFS to install software on the CF disk. > > I just got my net4501 in the other day, and I was thinking of doing > the same thing to get FreeBSD onto a 64MB CF card I have. Do you have > any documentation of the steps you took to do this, or have a pointer > to other existing documentation? I'm going to try to put something together on a web page when I have a chance, but here's the quick version, in no particular order: - I started with the 'mkflash' shell script, and hacked around with it. Essentially, it chdir's into the source tree, and does a 'make install' on the portions you specify. You can then strip out stuff you don't need (e.g., all the lib*.a files, etc.) - I built a version of the FreeBSD tree with all the stuff in /bin and /sbin not statically linked. This was essential to fit all that was needed into 8MB. - Compress the kernel, since /boot/loader will grok that. Another bit space saving. - I also worked-over /etc/rc.diskless2 slightly as well. I then netbooted the net4501 and ran it diskless. Used fdisk and disklabel the CF card, and then restored a dump of the stripped down system on it. (I've left out all the stupid mistakes along the way..) My net4501 system runs with the CF disk with a single slice, and a single partition mounted read-only. There's a small MFS /dev and a small MFS /var. It's running an ipf-based firewall/NAT thing on two ethernet ports at the moment, with a vtund based tunnel going yet another place. I intend to eventually put my 802.11b access point on the 3rd ethernet port. One helpful note that I got after the fact is that you can do 'boot F0' to netboot from the serial console monitor, rather than trying to boot the blank CF disk. Also, I used ports/comms/lrzsz to do an XMODEM BIOS upgrade from inside of tip; that seemed to work pretty well, but wouldn't have been necessary if I had known about 'boot F0' before. louie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message