From owner-freebsd-hackers Wed Jul 10 11:56:13 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA05000 for hackers-outgoing; Wed, 10 Jul 1996 11:56:13 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id LAA04739 for ; Wed, 10 Jul 1996 11:53:23 -0700 (PDT) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id UAA16671 for ; Wed, 10 Jul 1996 20:52:45 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id UAA03990; Wed, 10 Jul 1996 20:51:23 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id UAA10672; Wed, 10 Jul 1996 20:22:43 +0200 (MET DST) From: J Wunsch Message-Id: <199607101822.UAA10672@uriah.heep.sax.de> Subject: Re: bootable CD's (fwd) To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Wed, 10 Jul 1996 20:22:43 +0200 (MET DST) Cc: jleppek@suw2k.hisd.harris.com (James Leppek) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <9607101511.AA02412@suw2k.hisd.harris.com> from James Leppek at "Jul 10, 96 11:11:12 am" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As James Leppek wrote: > If anyone comes up with any pointers I am willing to give it a try, I am > also trying to get the info from gigabyte. What magic do you expect? I don't know, but i would blindly assume that booting the CD will be done in the same way as booting any other device. The BIOS code searches all available devices, and tries to load the very first sector onto address 0:0x7c00. If the loaded sector ends in 0x55aa, it will simply be executed. It's up to the executed code to decide what needs to be done next. That's why you could put a boot-selector MBR there, or you could put the 7.5 KB BSD bootstrap there as well. CD-ROM sectors are 2 KB, not only 512 bytes, but who says you cannot examine the very first 512 bytes only? The most important work that is required is a cdboot subdirectory, initially cloned from biosboot, but with support for a cd9660 file system to load the kernel from. Anyway, you've got full 32 KB of available space on a CD-ROM (there's 0x8000 bytes space in front of the cd9660 header), so this shouldn't be a very big problem. Merging the bootstrap into a cd9660 image could be accomplished by ``dd conv=notrunc'' in the simplest case. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)