From owner-freebsd-hackers Mon Jan 27 01:10:03 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA27118 for hackers-outgoing; Mon, 27 Jan 1997 01:10:03 -0800 (PST) Received: from clipper.cs.kiev.ua (root@cs-demon.ua.net [193.124.48.251]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id BAA27085 for ; Mon, 27 Jan 1997 01:09:48 -0800 (PST) Received: from dog.farm.org by clipper.cs.kiev.ua with uucp id m0von18-000t3EC; Mon, 27 Jan 97 11:06 WET Received: (from dk@localhost) by dog.farm.org (8.7.5/dk#3) id AAA00505; Mon, 27 Jan 1997 00:57:34 -0800 (PST) Date: Mon, 27 Jan 1997 00:57:34 -0800 (PST) From: Dmitry Kohmanyuk Message-Id: <199701270857.AAA00505@dog.farm.org> To: luigi@labinfo.iet.unipi.it (Luigi Rizzo) Cc: freebsd-hackers@freebsd.org Subject: Re: help for a floppy boot sector Newsgroups: cs-monolit.gated.lists.freebsd.hackers Organization: FARM Computing Association Reply-To: dk+@ua.net X-Newsreader: TIN [version 1.2 PL2] Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In article <199701261035.LAA27794@labinfo.iet.unipi.it> you wrote: > I am looking for some floppy boot code which allows you to build a > bootable floppy which can start a .COM file without the need for MSDOS. I have written just this thing for the same reason - a standalone .COM-file loader which is smart enough to read MSDOS FAT from a floppy and load a single file. It fits into 512 bytes. It's available (with source code) from: ftp://ftp.cs.kiev.ua/csrt/unix/dkbooter-1.0.zip [ I beleive I have announced this some time ago on -hackers. ] The source code uses DOS TASM, but rewrite to GAS should be easy. (ask me if you need it). > Ideally I would do something like > cat bootcode nb8390.com | dd of=/dev/fd0a > to produce a bootable floppy. oh, with my code, you have to do: ; mformat a: ; dd if=dkboot of=/dev/fd0a bs=1b ; mcopy nb8390.com a:loader.com p.s. because that site can be slow, I have uploaded a copy into ftp://ftp.freebsd.org/pub/FreeBSD/incoming/dkbooter-1.0.zip -- "I want to die peacefully in my sleep like my grandfather. Not screaming in terror like his passengers."