[hdt] Build a bootable floppy image which contains HDT

Kim Mik kimmik999999 at yahoo.co.uk
Sun Oct 4 13:59:18 PDT 2009


It is now possible to build a bootable floppy image which contains HDT,
with my patch applied to Erwans HDT branch:

http://git.zytor.com/?p=users/erwan/hdt.git;a=commit;h=16b37fe2266c920087f88cdec94243b71218d871

Unpack the Syslinux archive and build whole Syslinux first,
then cd to ./com32/hdt/ and make hdt.img

$ make
$ cd ./com32/hdt/
$ make hdt.img

Now you have a 2.88 MB floppy image which contains HDT (hdt.img),
which you can use to boot with MEMDISK or Grub4Dos floppy emulation.

MEMDISK:
========

LABEL hdtfloppy
LINUX memdisk
INITRD hdt.img

Grub4Dos floppy emulation:
==========================

title Hardware Detection Tool
map --mem /hdt.img (fd0)
map --hook
root (fd0)
chainloader (fd0)+1


You can also compress hdt.img with gzip (hdt.img.gz), which results
in a much smaller file (400KB compared to 2.88MB).

MEMDISK:
========

LABEL hdtfloppy
LINUX memdisk
INITRD hdt.img.gz

Grub4Dos floppy emulation:
==========================

title Hardware Detection Tool
map --mem /hdt.img.gz (fd0)
map --hook
root (fd0)
chainloader (fd0)+1




More info can be found in the README:

---------------------------
Creating a bootable floppy
---------------------------
To build a bootable HDT floppy image, you can do a "make hdt.img" call.
This will requires the mtools (http://mtools.linux.lu) to be installed.
The script will try to pick several files from your system :
- /lib/modules/`uname -r`/modules.alias
- /lib/modules/`uname -r`/modules.pcimap
- /usr/share/pci.ids or /usr/share/hwdata/pci.ids

This paths can be overrided with the following command line:
make MODULES_ALIAS_FILE=$(PWD)/floppy/modules.alias MODULES_PCIMAP_FILE=$(PWD)/floppy/modules.pcimap PCI_IDS_FILE=$(PWD)/floppy/pci.ids hdt.img

If your system doesn't have pci.ids, please download it from http://pciids.sourceforge.net/ and put it into the floppy/ directory.


Greetings,
- Gert Hulselmans


      



More information about the HDT mailing list