Skip to content

Instantly share code, notes, and snippets.

@jepebe
Created November 2, 2022 19:18
Show Gist options
  • Select an option

  • Save jepebe/e53bdb94e404f25ed47c8f66e5eb01f2 to your computer and use it in GitHub Desktop.

Select an option

Save jepebe/e53bdb94e404f25ed47c8f66e5eb01f2 to your computer and use it in GitHub Desktop.
MS-DOS 6.22 PXE Boot on a Raspberry PI

Booting MS-DOS 6.22 over PXE on a Raspberry PI

Trying to boot MS-DOS 6.22 on an older computer with no floppy drive, however, there is PXE LAN boot support. These instructions installs and configures PXE Linux on the Raspberry PI and sets up a bootable floppy image for MS-DOS 6.22.

Install dependencies

apt-get install dnsmasq pxelinux

Set up dnsmasq

Edit the /etc/dnsmasq.conf:

port=0
interface=eth0
dhcp-range=192.168.1.0,proxy,255.255.255.0
dhcp-script=/bin/echo
pxe-service=x86PC, "PXE Boot Menu", pxelinux
dhcp-boot=pxelinux.0
enable-tftp
tftp-root=/var/lib/tftpboot

Create directories: mkdir -p /var/lib/tftpboot/pxelinux.cfg

Restart dnsmasq systemctl restart dnsmasq

Set up pxelinux

Edit /var/lib/tftpboot/pxelinux.cfg/default

MENU TITLE Network Boot Menu
DEFAULT menu.c32

Create file links:

ln -s /usr/lib/PXELINUX/pxelinux.0 /var/lib/tftpboot/
ln -s /usr/lib/syslinux/modules/bios/{ldlinux,menu,libcom32,libutil}.c32 /var/lib/tftpboot/
ln -s /usr/lib/syslinux/memdisk /var/lib/tftpboot/

Configure the bootable floppy image

Copy the first floppy drive image of MS-DOS 6.22 to /var/lib/tftpboot/ and rename it to msdos622.img.

Add to /var/lib/tftpboot/pxelinux.cfg/default

LABEL MS-DOS
  MENU LABEL MS-DOS 6.22
  KERNEL memdisk
  INITRD msdos622.img
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment