Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Apr 2003 16:45:07 +0200
From:      Hanspeter Roth <hampi@rootshell.be>
To:        freebsd-questions@freebsd.org
Subject:   boot0 and Linux in extended slice
Message-ID:  <20030414144507.GA1427@gicco.homeip.net>

next in thread | raw e-mail | index | archive | help

--sdtB3X0nJg68CQEu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hello,

I've played with boot0. Now it allows me to boot Linux located in an
extended slice (0xf, LBA-mapped).
(Linux is in a logical slice contained in the extended one.)
The patch is based on /usr/src/sys/boot/i386/boot0/boot0.s from
FreeBSD 4.8.

-Hanspeter

--sdtB3X0nJg68CQEu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="boot0.s.diff"

--- boot0.s.orig	Tue Dec 19 01:32:19 2000
+++ boot0.s	Mon Apr 14 16:02:00 2003
@@ -360,18 +360,18 @@
 #
 # These entries identify invalid or NON BOOT types and partitions.
 #
-		.byte 0x0, 0x5, 0xf
+		.byte 0x0, 0x5, 0x0
 #
 # These values indicate bootable types we know the names of
 #
-		.byte 0x1, 0x4, 0x6, 0xb, 0xc, 0xe, 0x63, 0x83
+		.byte 0xf, 0x4, 0x6, 0xb, 0xc, 0xe, 0x63, 0x83
 		.byte 0x9f, 0xa5, 0xa6, 0xa9
 #
 # These are offsets that match the known names above and point to the strings
 # that will be printed.
 #
 		.byte os_misc-. 		# Unknown
-		.byte os_dos-.			# DOS
+		.byte os_linux-.		# fake Linux (Extended 0xf)
 		.byte os_dos-.			# DOS
 		.byte os_dos-.			# DOS
 		.byte os_dos-.			# Windows

--sdtB3X0nJg68CQEu--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030414144507.GA1427>