From owner-freebsd-hackers Thu Mar 2 10:39: 7 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from pop-c.netway.at (pop-c.netway.at [195.96.0.132]) by hub.freebsd.org (Postfix) with ESMTP id 08F5B37C34A for ; Thu, 2 Mar 2000 10:39:02 -0800 (PST) (envelope-from Christian.Gusenbauer@netway.at) Received: from pop-d.netway.at (pop-d.netway.at [195.96.0.131]) by pop-c.netway.at (8.9.3/8.9.3) with ESMTP id TAA26394; Thu, 2 Mar 2000 19:39:00 +0100 Received: from bones.my.domain (t2p034.at-732.netway.at [212.27.73.34]) by pop-d.netway.at (8.9.3/8.9.3) with SMTP id e22Icw915743; Thu, 2 Mar 2000 19:38:58 +0100 From: Christian Gusenbauer Reply-To: Christian.Gusenbauer@netway.at To: davidd@stack.nl Subject: Re: FreeBSD-boot Date: Thu, 2 Mar 2000 19:10:27 +0100 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain Cc: hackers@freebsd.org MIME-Version: 1.0 Message-Id: <00030219400601.00224@bones.my.domain> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi David! I'm sorry for you, but FBSDBOOT will never support ELF binaries :-(! As developer of this utility I had a discussion about supporting ELF when ELF was introduced into FreeBSD. The reason, why ELF support was not integrated is, that the new boot loader and the kernel rely on the state of the hardware, BIOS and BIOS extensions. Since booting DOS modifies the lower memory and hardware settings (eg. sets registers, or modifies interrupt vectors) this state will not exist, when you start FBSDBOOT. FBSDBOOT itself *can not* restore this state and therefore fails to start up the ELF binary (loader and/or kernel). Of course, there is a well known address in the BIOS, where the original interrupt descriptor table is located, but restoring this table is not enough. You also have to re-initialise the various devices (eg. Adaptec Controller). But you can't control the behaviour of the BIOS init routines; eg. the Adaptec BIOS clears the lower memory and thus the FBSDBOOT code :-(! I'm sorry, but I think FBSDBOOT is died with aout :-(! Ciao, Christian. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message