[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: tftp boot image



On Saturday 03 September 2005 11:57, Klaus Klein wrote:
> Does anyone know or can explain how the tftpimage from debian is
> created?

This is part of the build system for debian-installer [1].

The most relevant parts are probably:
<snip from http://svn.debian.org/wsvn/d-i/trunk/installer/build/config/sparc/sparc64/netboot.cfg?op=file&rev=0&sc=0>
  gzip -c $(TEMP)/System.map-$(KERNELIMAGEVERSION) >$(TEMP)/System.map.gz
  tftpboot.sh $(TEMP_KERNEL) $(TEMP)/System.map.gz $(TEMP_INITRD) $(TEMP_BOOT)
</snip>

<snip from http://svn.debian.org/wsvn/d-i/trunk/installer/build/util/tftpboot.sh?op=file&rev=0&sc=0>
  elftoaout -o $tftpimage $tftpimage.tmp
  case $tftpimage in
      *sun4u*) piggyback=piggyback64 ;;
      *sparc64*) piggyback=piggyback64 ;;
      *) piggyback=piggyback ;;
  esac
  # Piggyback appends the ramdisk to the a.out image in-place
  $piggyback $tftpimage $tmp $rootimage
</snip>

But you really should read the whole context (especially the 2nd file).
The basis is the Makefile in http://svn.debian.org/wsvn/d-i/trunk/installer/build/?rev=0&sc=0

Cheers,
FJP

[1] http://www.debian.org/devel/debian-installer/

Attachment: pgpe_VtW_4kaX.pgp
Description: PGP signature


Reply to: