Skip to contentSkip to conversation

Removal of boot sector code

PATCH Mikael Pettersson 1 participant 1 message Feb 4, 2003

lore
Share & tools
lore
#0 lore raw
Quoted 8 lines · H. Peter Anvin

I have updated the boot sector removal code so that it now:

a) Supports "make zdisk", "make bzdisk" and "make fdimage" (Requires mtools and syslinux, but will work as a non-root user as long as you have your floppy in /etc/fstab or syslinux setuid root.)

There is also "make fdimage288" to create a 2.88 MB floppy image.

This works reasonably well for me, but it does require MS-DOS fs support in the kernel, and having a /dev/fd0 entry in /etc/fstab with "user" permissions (for some reason, "owner" doesn't work).

I'd like to use my own recipe for "make bzdisk", to avoid these restrictions. What about having "make bzdisk" optionally invoke and external script, similarly to how "make install" works?

Quoted 7 lines

The boot sector was very cool in 1992, but in 2003 it has outlived its usefulness, and it no longer supports what Linux boot loaders need, especially not with the 1 MB limit and the lack of support for non-legacy floppy devices (the geometry detection hack fails on those.) Even a relatively simple 2.5 build exceeds that size for me, and with this patch "make bzdisk" actually works, whereas the original boot sector doesn't.

Indeed. Another reason is that gcc-3.2 generates (for me anyway) much larger kernel images than gcc-2.95.3.

/Mikael