In this section, we will finish up the hdsupp package, so buildpacket will be able to create an lrp-file from the sources buildtool created. To do this, open source/hdsupp/buildtool.cfg and append the following text:
<Package> <hdsupp> Version = 1.0 Revision = 1 Help <<EOF Tools to be create a bootable partition from within Bering-uClibc. The procedure to get a plain syslinux partition (if you want to use lilo, you're on your own) is something like this: 1. make sure your Bering install actually supports your harddrive (i.e. insert the appropriate modules) 2. Run fdisk to create the partitions. I usually create an empty DOS partition table (using the 'o' command) create a primary partition, make that bootable (using the 'a' command) 3. Run mkfs.msdos on the newly created partition (e.g. mkfs.msdos /dev/hda1) 4. Copy the MBR to the drive using (assuming your harddrive is /dev/hda) dd if=/usr/sbin/mbr.bin of=/dev/hda bs=512 count=1 5. Mount the drive and copy the bering files onto the drive (please read the bering users guide, section "Booting from an IDE device", it has some vital info for that part of the process) Remember to change the 'boot' and 'PKGPATH' to point to your harddrive. 6. run syslinux (e.g. syslinux /dev/hda1) This is usually the last thing I do (after unmounting the partition again, of course), because that way, I can simply copy everything from the floppy without having to worry about leaving ldlinux.sys alone (since that gets overwritten with the correct version by running syslinux) EOF <Permissions> Files = 644 Directories = 755 </Permissions> <Owner> Files = root:root Directories = root:root </Owner> <Contents> <File> Source = sbin/fdisk Filename = usr/sbin/fdisk Type = binary Permissions = 755 </File> <File> Source = sbin/mkfs.minix Filename = usr/sbin/mkfs.minix Type = binary Permissions = 755 </File> <File> Source = sbin/mkfs.msdos Filename = usr/sbin/mkfs.msdos Type = binary Permissions = 755 </File> <File> Source = usr/sbin/syslinux Filename = usr/sbin/syslinux Type = binary Permissions = 755 </File> <File> Source = usr/sbin/mbr.bin Filename = usr/sbin/mbr.bin Type = binary # We don't neet to specify permissions here, # since the default 644 will do just fine </File> </Contents> </hdsupp> </Package>