[PATCH] boot loader fixes #2

From: Jung-uk Kim <jkim_at_FreeBSD.org>
Date: Thu, 8 Sep 2005 15:21:10 -0400
This is the second iteration of the previous patch.

http://docs.freebsd.org/cgi/mid.cgi?200509011507.23432.jkim

This one removes the redundant bound checks that I added, and fixes a 
new parsing bug that I introduced (blush, blush...).

New things in this version:

7.  Do not modify boot device until everything's good.  Previously any 
failed attempt could modify default device.

8.  Print 'FreeBSD/amd64 boot' banner on amd64 instead of 
'FreeBSD/i386 boot'.  It was confusing many users who have multiple 
drives and/or slices for a while now.  Also print slice information.  
For example,

	FreeBSD/amd64 boot
	Default: 0:ad0(0,3,a)/boot/loader
	boot:

9.  Remove 'compatibility slice', which has been broken for more than 
two years but I haven't seen a single complaint. ;-) This function 
can be revived by defining BOOT2_COMPAT_SLICE.  In that case, 
supposedly it does the correct things now (not tested).

10. Slice 4 is allowed to boot again.

Both 10 and 11 were broken from Rev 1.58.

11. Add '\n' before error messages.

Unfortunately, the patch virtually exhausts all the space left for 
boot2. :-(

Please test and let me know,

Thanks,

Jung-uk Kim

* Note: Bigger boot block is required for more fixes.

http://docs.freebsd.org/cgi/mid.cgi?200509081418.47794.jkim

In fact, keyboard probing is quite broken on many BIOSes.

http://docs.freebsd.org/cgi/mid.cgi?200305091456.40582.jkim
http://docs.freebsd.org/cgi/mid.cgi?200305131427.20811.jkim

If I had more space, I could do the correct thing in C. :-(

* Note: '-S' or '-S0' option is only good for the BIOS which 
initializes serial port correctly.  Your mileage may vary.

Received on Thu Sep 08 2005 - 17:21:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:43 UTC