ZIP archive doubles as a PC boot sector and Multiboot kernel
Original title: Creating a self booting ZIP archive
The same file boots in QEMU, from a floppy image, and on Pentium, 486, and Am386 hardware.
A developer published boot.zip, a valid ZIP whose local file header for boot/ZIPHEAD.COM is also a DOS boot sector and contains the Multiboot magic 1BADB002. QEMU can load it with direct kernel boot, or the archive can be written to a floppy and booted by its own real-mode loader, which enables A20 and enters 32-bit protected mode. The archive includes the source and build script used to recreate it.
- The first bytes are a valid ZIP local file header starting with PK.
- Multiboot magic 1BADB002 sits inside the header of boot/ZIPHEAD.COM.
- The author booted it on a Pentium MMX, an i486 DX2, and an Am386DX-40.
- Real-mode code begins at offset 0x50; the Multiboot entry is at offset 0x331.
- Products
- QEMU
From the original article
15 min read at goliath32.comSo, after a debugging session the other day, I was having some shower Linux initramfs supports unpacking CPIO, a stupid, simple, standardized format. In the discussion on whether to support TAR instead, much
By gdgghhhhh · goliath32.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.