A single sector Linux floppy bootloader, with A20 gate enable hang fix
Find a file
2026-02-16 23:06:14 +01:00
.gitignore it worksgit status! (in qemu) 2022-06-22 14:58:18 -07:00
bflop.asm Fix keypresses not being forwarded to next bootloader 2026-02-16 23:06:14 +01:00
build.sh Make build script take parameters instead of hardcoding everyhthing. 2023-02-02 13:46:29 +01:00
data.inc Fix keypresses not being forwarded to next bootloader 2026-02-16 23:06:14 +01:00
gdb_script it worksgit status! (in qemu) 2022-06-22 14:58:18 -07:00
gdbscr license rdme 2014-10-08 19:49:25 +01:00
LICENSE Initial commit 2014-10-08 19:32:19 +01:00
README.md Make build script take parameters instead of hardcoding everyhthing. 2023-02-02 13:46:29 +01:00

tiny-floppy-bootloader

A fork of tiny-floppy-bootloader that is fits 2 sectors instead of 1. This bootloader expects to find the kernel immediately after it at sector 2.

Features/Purpose

  • No partition table needed
  • Easy to convert to an obfuscated loader (think anti-forensics for crypted disks)
  • Easy to modify for a custom experience
  • Useful in embedded devices

Building

To build, you need to:

  1. Run build.sh with the appropriate parameters:

    ./build.sh <kernel bzImage> <output image> [Floppy Size in Bytes]

    Valid floppy sizes are: 1474560 (1.44MB), 1763328 (1.72MB), 2949120 (2.88MB)

  2. Now you can dd this onto your floppy.

Your system should now boot with the new kernel.

Troubleshooting

You can use qemu to boot the image by running:

qemu-system-i386 -fda disk.img

and you can also connect the VM to gdb for actual debugging. There's an included gdb script to get you started.