From owner-freebsd-small Fri May 22 17:49:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA00731 for freebsd-small-outgoing; Fri, 22 May 1998 17:49:33 -0700 (PDT) (envelope-from owner-freebsd-small@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA00693 for ; Fri, 22 May 1998 17:49:21 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id QAA03319; Fri, 22 May 1998 16:44:00 -0700 (PDT) Message-Id: <199805222344.QAA03319@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: randal@comtest.com cc: Mike Smith , freebsd-small@FreeBSD.ORG Subject: Re: Embeded applications? In-reply-to: Your message of "Fri, 22 May 1998 14:49:28 -1000." <199805230031.OAA07761@oldyeller.comtest.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 22 May 1998 16:43:59 -0700 From: Mike Smith Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On 22 May 98 at 16:22, Mike Smith wrote: > > > Basically, you will need to tweak the part of the PicoBSD build process > > where it generates a 1.44MB image, and have it generate an image that > > contains a partition table. (See the stuff in the vnconfig manpage > > about this.) Keep the image under 1.44MB, so that you can still put it on > > a floppy. > > > > Then you can dump this on top of the flash disk using something like > > rawrite. You may need to roll some custom utilities for this. > > I took a look at rawrite and it looks like it only works on floppies. I guess I > need to make my own utility. Any ideas where to start? Read 512 bytes from the image file, write to the first sector on the disk. Read the next 512 bytes from the image file, write to the second sector on the disk. Repeat. Use the BIOS int13 calls to do your writing. You'll need to query the BIOS equipment list for the geometry, (or ask the user). > > A slightly easier solution would be to get a PC104 IDE adapter, and use > > an old IDE disk to transfer stuff around. > > Actually the board has an IDE controller on it already. I guess I just need to > get a spare IDE drive to shuffle around. But still how would I transfer the > image? Plenty of ways - put DOS on the IDE harddisk, use a comms program to download the image over a null-modem cable for example. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message