Hack your own Debian/GNU/Linux Woody Boot Floppies

Boot floppies

  • Fujitsu/Siemens P250 Dual P4 Xeon including the Adaptec I2O driver and Qlogic FC driver. No USB, Framebuffer, Special Networking.

How to create new boot floppies

First you need to get the base bootfloppies from any debian mirror from the debian/dists/woody/main/disks-i386/current/. You need the files:

  • images-1.44/bf24/root.bin
  • images-1.44/bf24/rescue.bin
  • bf24/drivers.tgz

Compile your kernel as usual - be shure to integrate ramdisk support. Better to start from the debian config found in the rescue.bin as config.gz.

After compiling the kernel mount the rescue.bin as loop anywhere you want:

	mount -o loop -t msdos rescue.bin /mnt/loop
											

Then you should issue these commands:

	rm /mnt/loop/{sys_map.gz,linux.bin,config.gz}
	cp arch/i386/boot/bzImage /mnt/loop/linux.bin
	gzip <System.map >/mnt/loop/sys_map.gz
	gzip <.config >/mnt/loop/config.gz

Unmount the floopy with umount /mnt/loop and write to a disk and boot. The kernel should come up and ask for the root.bin based floppy. I used the unmodified root.bin disk.

To create the new driver floppys you will need to install the kernel modules to a directory like this:

 make INSTALL_MOD_PATH=/tmp/new-modules modules_install

Change to that directory and create a new .tgz file from it.

	cd /tmp/new-modules/
	tar -zcvf ../modules.tgz .

Now extract the drivers.tgz you got from the debian mirror to a directory. Delete the pcmcia.tgz and the modules.tgz files and copy the modules.tgz to that directory. Now create a new drivers.tgz from it. You might also change the modcont file to no contain any directorys in the pcmcia section.

	mkdir /tmp/newdriver
	cd /tmp/newdriver
	tar -zxvf ../drivers.tgz
	rm pcmcia.tgz modules.tgz
	cp ../modules.tgz .
	tar -zcvf ../drivers-new.tgz

Now you need to split the drivers-new.tgz into floppy sized chunks. You need to use the floppy_split utility which i got from the debian cvs.