--- syslinux-2.11.orig/Makefile +++ syslinux-2.11/Makefile @@ -19,6 +19,8 @@ CC = gcc INCLUDE = CFLAGS = -W -Wall -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 +CFLAGS_ARCHDEP = -march=i386 +ASFLAGS_ARCHDEP = PIC = -fPIC LDFLAGS = -O2 -s AR = ar @@ -53,9 +55,10 @@ SOURCES = $(CSRC) *.h $(NASMSRC) *.inc # syslinux.exe is BTARGET so as to not require everyone to have the # mingw suite installed +# (Removed from Ubuntu so that we don't need mingw32 in main.) BTARGET = kwdhash.gen version.gen ldlinux.bss ldlinux.sys ldlinux.bin \ pxelinux.0 mbr.bin isolinux.bin isolinux-debug.bin \ - libsyslinux.a syslinux.exe $(LIB_SO) + libsyslinux.a $(LIB_SO) ITARGET = syslinux.com syslinux syslinux-nomtools copybs.com gethostip \ mkdiskimage DOCS = COPYING NEWS README TODO BUGS *.doc sample menu com32 --- syslinux-2.11.orig/win32/Makefile +++ syslinux-2.11/win32/Makefile @@ -32,9 +32,9 @@ AR = ar RANLIB = ranlib else -CC = mingw-gcc -AR = mingw-ar -RANLIB = mingw-ranlib +CC = i586-mingw32msvc-gcc +AR = i586-mingw32msvc-ar +RANLIB = i586-mingw32msvc-ranlib endif CFLAGS = -W -Wall -O2 -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 PIC = --- syslinux-2.11.orig/memdisk/Makefile +++ syslinux-2.11/memdisk/Makefile @@ -20,11 +20,13 @@ ALIGN := $(call gcc_ok,-falign-functions=0 -falign-jumps=0 -falign-loops=0,-malign-functions=0 -malign-jumps=0 -malign-loops=0) CC = gcc $(M32) -CFLAGS = -g -W -Wall -Os -fomit-frame-pointer -march=i386 $(ALIGN) \ +CFLAGS = -g -W -Wall -Os -fomit-frame-pointer $(ALIGN) \ -DVERSION='"$(VERSION)"' -DDATE='"$(DATE)"' +CFLAGS_ARCHDEP = -march=i386 +ASFLAGS_ARCHDEP = LDFLAGS = -g INCLUDE = -I../com32/include -LD = ld -m elf_i386 +LD = gcc NASM = nasm -O99 NINCLUDE = OBJCOPY = objcopy @@ -39,7 +41,8 @@ SSRC = init.S16 NASMSRC = memdisk.asm init32.asm -all: memdisk e820test +#all: memdisk e820test +all: memdisk # tidy, clean removes everything except the final binary tidy: @@ -55,40 +58,46 @@ $(NASM) -f elf -l $*.lst -o $@ $< %.o: %.s - $(CC) -x assembler -c -o $@ $< + $(AS) $(ASFLAGS_ARCHDEP) -o $@ $< %.o16: %.s16 - $(CC) -x assembler -c -o $@ $< + $(AS) $(ASFLAGS_ARCHDEP) -o $@ $< + +%.o: %.s + $(AS) $(ASFLAGS_ARCHDEP) -o $@ $< %.o: %.c - $(CC) $(INCLUDE) $(CFLAGS) -c -o $@ $< + $(CC) $(INCLUDE) $(CFLAGS) $(CFLAGS_ARCHDEP) -c -o $@ $< + +%.o: %.S + $(CC) $(INCLUDE) $(CFLAGS) $(CFLAGS_ARCHDEP) -c -o $@ $< %.s16: %.s echo '.code16gcc' | cat - $< > $@ -%.s: %.S - $(CC) -x c $(INCLUDE) $(CFLAGS) -traditional -E -o $@ $< +#%.s: %.S +# $(CC) -x c $(INCLUDE) $(CFLAGS) $(CFLAGS_ARCHDEP) -traditional -E -o $@ $< %.s16: %.S16 - $(CC) -x c $(INCLUDE) $(CFLAGS) -traditional -E -o $@ $< + $(CC) -x c $(INCLUDE) $(CFLAGS) $(CFLAGS_ARCHDEP) -traditional -E -o $@ $< %.s: %.c - $(CC) $(INCLUDE) $(CFLAGS) -S -o $@ $< + $(CC) $(INCLUDE) $(CFLAGS) $(CFLAGS_ARCHDEP) -S -o $@ $< %.i: %.c - $(CC) $(INCLUDE) $(CFLAGS) -E -o $@ $< + $(CC) $(INCLUDE) $(CFLAGS) $(CFLAGS_ARCHDEP) -E -o $@ $< # Cancel default rule -%.o: %.c +%.o: %.S %.bin: %.asm $(NASM) -f bin $(NINCLUDE) -o $@ -l $*.lst $< memdisk16.elf: $(OBJS16) - $(LD) -Ttext 0 -o $@ $^ + $(LD) -nostdlib $(LDFLAGS) $(CFLAGS_ARCHDEP) -Wl,-Ttext,0 -o $@ $^ memdisk32.elf: $(OBJS32) - $(LD) -Ttext 0x100000 -o $@ $^ + $(LD) -nostdlib $(LDFLAGS) $(CFLAGS_ARCHDEP) -Wl,-Ttext,0x100000 -o $@ $^ %.bin: %.elf $(OBJCOPY) -O binary $< $@ @@ -97,10 +106,10 @@ $(PERL) postprocess.pl $@ memdisk16.bin memdisk32.bin e820test: e820func.o msetup.o e820test.o memdisk.o - $(CC) $(LDFLAGS) -o $@ $^ + $(LD) -nostdlib $(LDFLAGS) $(CFLAGS_ARCHDEP) -o $@ $^ memdisk.o: memdisk.bin - $(LD) -r -b binary -o $@ $< + $(LD) -nostdlib $(LDFLAGS) $(CFLAGS_ARCHDEP) -Wl,-r -Wl,-b,binary -o $@ $< .depend: rm -f .depend --- syslinux-2.11.orig/memdisk/setup.c +++ syslinux-2.11/memdisk/setup.c @@ -400,7 +400,8 @@ /* Do we have a DOSEMU header? */ memcpy(&dosemu, (char *)where+hd_geometry.offset, sizeof dosemu); - if ( !__builtin_memcmp("DOSEMU", dosemu.magic, 7) ) { + const char *d = dosemu.magic; + if ( *d++=='D' && *d++=='O' && *d++=='S' && *d++=='E' && *d++=='M' && *d++=='U' && !*d ) { /* Always a hard disk unless overruled by command-line options */ hd_geometry.driveno = 0x80; hd_geometry.type = 0; --- syslinux-2.11.orig/memdisk/inflate.c +++ syslinux-2.11/memdisk/inflate.c @@ -998,7 +998,7 @@ * **********************************************************************/ -static ulg crc_32_tab[256]; +ulg crc_32_tab[256]; static ulg crc; /* initialized in makecrc() so it'll reside in bss */ #define CRC_VALUE (crc ^ 0xffffffffL) --- syslinux-2.11.orig/debian/control +++ syslinux-2.11/debian/control @@ -0,0 +1,23 @@ +Source: syslinux +Section: utils +Priority: optional +Maintainer: Juan Cespedes +Standards-Version: 3.6.1 +Build-Depends: nasm (>= 0.98.32), mtools, netpbm, docbook-to-man + +Package: syslinux +Architecture: i386 amd64 +Depends: ${shlibs:Depends} +Recommends: mtools +Description: Bootloader for Linux/i386 using MS-DOS floppies + SYSLINUX is a boot loader for the Linux/i386 operating system which + operates off an MS-DOS/Windows FAT filesystem. It is intended to + simplify first-time installation of Linux, and for creation of rescue + and other special-purpose boot disks. + . + It can also be used as a PXE bootloader during network boots. + . + SYSLINUX is probably not suitable as a general purpose boot loader. + However, SYSLINUX has shown itself to be quite useful in a number of + special-purpose applications. + --- syslinux-2.11.orig/debian/rules +++ syslinux-2.11/debian/rules @@ -0,0 +1,151 @@ +#!/usr/bin/make -f +# +# Copyright (C) 1997-2004 Juan Cespedes + +BTARGET = kwdhash.gen version.gen ldlinux.bss ldlinux.sys ldlinux.bin \ + pxelinux.0 mbr.bin isolinux.bin isolinux-debug.bin \ + syslinux.exe +ITARGET = syslinux.com syslinux syslinux-nomtools copybs.com gethostip \ + mkdiskimage libsyslinux.a libsyslinux.so.2.11 +ISAMPLE = c32echo.c32 chain.c32 comecho.com fd.c32 filetest.c32 hello.c32 \ + hello2.c32 syslogo.lss + + +DATE = $(shell date +%Y-%m-%d) +VERSION = $(shell cat version) + +ifeq (amd64,$(shell dpkg-architecture -qDEB_HOST_ARCH)) +CFLAGS_ARCHDEP = -m32 +ASFLAGS_ARCHDEP = --32 +else +CFLAGS_ARCHDEP = -march=i386 +ASFLAGS_ARCHDEP = +endif + +### CFLAGS = -Wall -fomit-frame-pointer -DVERSION='\"$(VERSION)\"' -DDATE='\"(Debian, $(DATE))\"' +### LDFLAGS = +### STRIP = +### +### ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +### CFLAGS += -O0 +### else +### CFLAGS += -O2 +### endif +### ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) +### STRIP += -s +### endif + +# Ugly hack: some binaries are present in the sources, so I must preserve them: +define backup + test -f ldlinux.asm || exit 1 + test -d binaries.hpa || mkdir binaries.hpa + test -d binaries.hpa/sample || mkdir binaries.hpa/sample + for i in $(BTARGET); do \ + test -f binaries.hpa/$$i || cp -a $$i binaries.hpa/ ; \ + done + for i in $(ITARGET); do \ + test -f binaries.hpa/$$i || mv $$i binaries.hpa/ ; \ + done + for i in $(ISAMPLE); do \ + test -f binaries.hpa/sample/$$i || mv sample/$$i binaries.hpa/sample/ ; \ + done + test -f binaries.hpa/memdisk || mv memdisk/memdisk binaries.hpa/ +endef + +define unbackup + test -d binaries.hpa && mv -f binaries.hpa/memdisk memdisk/memdisk + test -d binaries.hpa/sample && mv -f binaries.hpa/sample/* sample/ && rmdir binaries.hpa/sample + test -d binaries.hpa && mv -f binaries.hpa/* . + test -d binaries.hpa && rmdir binaries.hpa +endef + +build: + $(backup) + $(MAKE) clean + $(MAKE) CFLAGS_ARCHDEP="$(CFLAGS_ARCHDEP)" ASFLAGS_ARCHDEP="$(ASFLAGS_ARCHDEP)" VERSION="$(VERSION)" DATE="(Debian, $(DATE))" +### $(MAKE) VERSION="$(VERSION)" DATE="(Debian, $(DATE))" + touch build + +binary: binary-arch binary-indep + +binary-indep: + +binary-arch: build + @test 0 = `id -u` || { echo "Error: not super-user"; exit 1; } + + $(RM) debian/img* + for i in 720 1200 1440 1743 ; do \ + dd if=/dev/zero of=debian/img$${i}k bs=1k count=$$i || exit 1 ; \ + done + for i in a: b: c: d: ; do \ + MTOOLSRC=debian/mtoolsrc mformat $${i} || exit 1 ; \ + done + for i in 720 1200 1440 1743 ; do \ + ./syslinux -s debian/img$${i}k || exit 1 ; \ + done + + $(RM) -r debian/tmp + $(RM) debian/files* debian/substvars + install -d debian/tmp/DEBIAN + install -d debian/tmp/usr/bin + install -d debian/tmp/usr/lib/syslinux + install -d debian/tmp/usr/share/doc/syslinux + install -d debian/tmp/usr/share/man/man1 +# install -d debian/tmp/usr/include + install $(STRIP) syslinux debian/tmp/usr/bin + install $(STRIP) gethostip debian/tmp/usr/bin + install sys2ansi.pl debian/tmp/usr/bin/syslinux2ansi + install lss16toppm debian/tmp/usr/bin + install ppmtolss16 debian/tmp/usr/bin +# install keytab-lilo.pl debian/tmp/usr/bin + docbook-to-man debian/gethostip.sgml > debian/gethostip.1 + docbook-to-man debian/lss16toppm.sgml > debian/lss16toppm.1 + docbook-to-man debian/ppmtolss16.sgml > debian/ppmtolss16.1 + cp -p debian/*.1 debian/tmp/usr/share/man/man1/ + gzip -9 debian/tmp/usr/share/man/man1/* + install -m 644 debian/img* debian/tmp/usr/lib/syslinux + cp -p debian/changelog debian/tmp/usr/share/doc/syslinux/changelog.Debian + cp -p NEWS debian/tmp/usr/share/doc/syslinux/changelog + cp -p comboot.doc debian/tmp/usr/share/doc/syslinux + cp -p syslinux.doc debian/tmp/usr/share/doc/syslinux + cp -p pxelinux.doc debian/tmp/usr/share/doc/syslinux + cp -p isolinux.doc debian/tmp/usr/share/doc/syslinux + cp -p memdisk/memdisk.doc debian/tmp/usr/share/doc/syslinux + gzip -9f debian/tmp/usr/lib/syslinux/img* + gzip -9f debian/tmp/usr/share/doc/syslinux/changelog* + install -d debian/tmp/usr/share/doc/syslinux/examples + cp -p sample/* debian/tmp/usr/share/doc/syslinux/examples + cp -pr com32/* debian/tmp/usr/share/doc/syslinux/examples + $(RM) debian/tmp/usr/share/doc/syslinux/examples/*.lss + $(RM) debian/tmp/usr/share/doc/syslinux/examples/*.o + $(RM) debian/tmp/usr/share/doc/syslinux/examples/*.c32 + $(RM) debian/tmp/usr/share/doc/syslinux/examples/*.elf + install -m 644 syslinux.com debian/tmp/usr/lib/syslinux + install -m 644 copybs.com debian/tmp/usr/lib/syslinux + install -m 644 pxelinux.0 debian/tmp/usr/lib/syslinux + install -m 644 isolinux.bin debian/tmp/usr/lib/syslinux + install -m 644 isolinux-debug.bin debian/tmp/usr/lib/syslinux + install -m 644 memdisk/memdisk debian/tmp/usr/lib/syslinux + install -m 644 ldlinux.bss debian/tmp/usr/lib/syslinux + install -m 644 ldlinux.sys debian/tmp/usr/lib/syslinux +# install -m 644 libsyslinux.* debian/tmp/usr/lib +# install -m 644 syslinux.h debian/tmp/usr/include + cp -p README TODO debian/tmp/usr/share/doc/syslinux + cp -p debian/copyright debian/tmp/usr/share/doc/syslinux + + dpkg-shlibdeps debian/tmp/usr/bin/syslinux debian/tmp/usr/bin/gethostip + dpkg-gencontrol -isp + chown -R 0.0 debian/tmp + chmod -R u=rwX,go=rX debian/tmp + dpkg --build debian/tmp .. + +clean: + $(backup) + $(RM) build debian/files* debian/substvars + $(MAKE) spotless + $(RM) -r debian/tmp + $(RM) debian/img* + $(RM) debian/gethostip.1 debian/lss16toppm.1 debian/ppmtolss16.1 + $(unbackup) + +.PHONY: binary binary-arch binary-indep clean --- syslinux-2.11.orig/debian/mtoolsrc +++ syslinux-2.11/debian/mtoolsrc @@ -0,0 +1,4 @@ +drive a: file="debian/img720k" cylinders=80 heads=2 sectors=9 mformat_only +drive b: file="debian/img1200k" cylinders=80 heads=2 sectors=15 mformat_only +drive c: file="debian/img1440k" cylinders=80 heads=2 sectors=18 mformat_only +drive d: file="debian/img1743k" cylinders=83 heads=2 sectors=21 mformat_only --- syslinux-2.11.orig/debian/syslinux.1 +++ syslinux-2.11/debian/syslinux.1 @@ -0,0 +1,382 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH SYSLINUX 1 "Oct 7, 2000" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +syslinux \- bootloader for Linux using MS-DOS floppies +.SH SYNOPSIS +.BR syslinux " [ " \-s " ] [ " \-f " ] [ " \-o +.I offset +.BR " ]" +.I device +.\" What does the \-f flag do??? FIXME +.SH DESCRIPTION +\fBSyslinux\fP is a boot loader for the Linux operating system which +operates off an MS-DOS/Windows FAT filesystem. It is intended to +simplify first-time installation of Linux, and for creation of rescue +and other special-purpose boot disks. +.PP +In order to create a bootable Linux floppy using \fBSyslinux\fP, prepare a +normal MS-DOS formatted floppy. Copy one or more Linux kernel files to +it, then execute the command: +.IP +.B syslinux /dev/fd0 +.PP +This will alter the boot sector on the disk and copy a file named +LDLINUX.SYS into its root directory. +.PP +On boot time, by default, the kernel will be loaded from the image named +LINUX on the boot floppy. This default can be changed, see the section +on the \fBsyslinux\fP configuration file. +.PP +If the Shift or Alt keys are held down during boot, or the Caps or Scroll +locks are set, \fBsyslinux\fP will display a +.BR lilo (8) +-style "boot:" prompt. The user can then type a kernel file name followed by +any kernel parameters. The \fBsyslinux\fP loader does not need to know about the +kernel file in advance; all that is required is that it is a file located in +the root directory on the disk. +.PP +\fBSyslinux\fP supports the loading of initial ramdisks (initrd) and the +bzImage kernel format. +.SH OPTIONS +.TP +.B \-s +Install a "safe, slow and stupid" version of \fBsyslinux\fP. This version may +work on some very buggy BIOSes on which \fBsyslinux\fP would otherwise fail. +If you find a machine on which the \-s option is required to make it boot +reliably, please send as much info about your machine as you can, and include +the failure mode. +.SH FILES +.SS "Configuration file" +All the configurable defaults in \fBsyslinux\fP can be changed by putting a +file called SYSLINUX.CFG in the root directory of the boot floppy. This +is a text file in either UNIX or DOS format, containing one or more of +the following items (case is insensitive for keywords). +.PP +In the configuration file blank lines and comment lines beginning +with a hash mark (#) are ignored. +.TP +\fBdefault\fP \fIkernel\fP [ \fIoptions ...\fP ] +Sets the default command line. If \fBsyslinux\fP boots automatically, it will act +just as if the entries after "default" had been typed in at the "boot:" prompt. +.IP +If no configuration file is present, or no "default" entry is present in the +configuration file, the default is "linux auto". +.TP +NOTE: Earlier versions of SYSLINUX used to automatically +append the string "auto" to whatever the user specified using +the DEFAULT command. As of version 1.54, this is no longer +true, as it caused problems when using a shell as a substitute +for "init." You may want to include this option manually. +.TP +.BI append " options ..." +Add one or more \fIoptions\fP to the kernel command line. These are added both +for automatic and manual boots. The options are added at the very beginning of +the kernel command line, usually permitting explicitly entered kernel options +to override them. This is the equivalent of the +.BR lilo (8) + "append" option. +.PP +.nf +.BI label\ label +.RS 2 +.BI kernel\ image +.BI append\ options\ ... +.RE +.fi +.RS +Indicates that if \fIlabel\fP is entered as the kernel to boot, \fBsyslinux\fP should +instead boot \fIimage\fP, and the specified "append" options should be used +instead of the ones specified in the global section of the file (before the +first "label" command.) The default for \fIimage\fP is the same as \fIlabel\fP, +and if no "append" is given the default is to use the global entry (if any). +Use "append -" to use no options at all. Up to 128 "label" entries are +permitted. +.TP +.B Notes: +Labels are mangled as if they were DOS filenames, and must be unique after +mangling. For example, two labels "v2.1.30" and "v2.1.31" will not be +distinguishable. +.IP +The "image" doesn't have to be a Linux kernel; it can be a boot sector or a +COMBOOT file (see below.) +.RE +.TP +.BI implicit\ flag_val +If \fIflag_val\fP is 0, do not load a kernel image unless it has been +explicitly named in a "label" statement. The default is 1. +.TP +.BI timeout\ timeout +Indicates how long to wait at the "boot:" prompt until booting automatically, in +units of 1/10 s. The timeout is cancelled as soon as the user types anything +on the keyboard, the assumption being that the user will complete the command +line already begun. A timeout of zero will disable the timeout completely, +this is also the default. The maximum possible timeout value is 35996; +corresponding to just below one hour. +.TP +\fBserial\fP \fIport\fP [ \fIbaudrate\fP ] +Enables a serial port to act as the console. "port" is a number (0 = /dev/ttyS0 += COM1, etc.); if "baudrate" is omitted, the baud rate defaults to 9600 bps. +The serial parameters are hardcoded to be 8 bits, no parity, 1 stop bit. +.IP +For this directive to be guaranteed to work properly, it +should be the first directive in the configuration file. +.TP +.BI font\ filename +Load a font in .psf format before displaying any output (except the copyright +line, which is output as ldlinux.sys itself is loaded.) \fBsyslinux\fP only loads +the font onto the video card; if the .psf file contains a Unicode table it is +ignored. This only works on EGA and VGA cards; hopefully it should do nothing +on others. +.TP +.BI kbdmap\ keymap +Install a simple keyboard map. The keyboard remapper used is \fIvery\fP +simplistic (it simply remaps the keycodes received from the BIOS, which means +that only the key combinations relevant in the default layout \- usually U.S. +English \- can be mapped) but should at least help people with AZERTY keyboard +layout and the locations of = and , (two special characters used heavily on the +Linux kernel command line.) +.IP +The included program +.BR keytab-lilo.pl (8) +from the +.BR lilo (8) + distribution can be used to create such keymaps. +.TP +.BI display\ filename +Displays the indicated file on the screen at boot time (before the boot: +prompt, if displayed). Please see the section below on DISPLAY files. If the +file is missing, this option is simply ignored. +.TP +.BI prompt\ flag_val +If \fIflag_val\fP is 0, display the "boot:" prompt only if the Shift or Alt key +is pressed, or Caps Lock or Scroll lock is set (this is the default). If +\fIflag_val\fP is 1, always display the "boot:" prompt. +.PP +.nf +.BI f1\ filename +.BI f2\ filename +.I ... +.BI f9\ filename +.BI f0\ filename +.fi +.RS +Displays the indicated file on the screen when a function key is pressed at the +"boot:" prompt. This can be used to implement pre-boot online help (presumably +for the kernel command line options.) there is currently no way to bind file +names to F11 and F12. Please see the section below on display files. +.RE +.IP +When using the serial console, press \fI\fP to get to the help +screens, e.g. \fI2\fP to get to the f2 screen, and \fI0\fP for +the f10 one. +.SS "Display file format" +DISPLAY and function-key help files are text files in either DOS or UNIX +format (with or without \fI\fP). In addition, the following special codes +are interpreted: +.TP +\fI\fP = \fI\fP = ASCII 12 +Clear the screen, home the cursor. Note that the screen is +filled with the current display color. +.TP +\fI\fP, \fI\fP = \fI\fP = ASCII 15 +Set the display colors to the specified background and foreground colors, where +\fI\fP and \fI\fP are hex digits, corresponding to the standard PC +display attributes: +.IP +.nf +.ta \w'5 = dark purple 'u +0 = black 8 = dark grey +1 = dark blue 9 = bright blue +2 = dark green a = bright green +3 = dark cyan b = bright cyan +4 = dark red c = bright red +5 = dark purple d = bright purple +6 = brown e = yellow +7 = light grey f = white +.fi +.IP +Picking a bright color (8-f) for the background results in the +corresponding dark color (0-7), with the foreground flashing. +.IP +colors are not visible over the serial console. +.TP +\fI\fPfilename\fI\fP, \fI\fP = \fI\fP = ASCII 24 +If a VGA display is present, enter graphics mode and display +the graphic included in the specified file. The file format +is an ad hoc format called LSS16; the included Perl program +"ppmtolss16" can be used to produce these images. This Perl +program also includes the file format specification. +.IP +The image is displayed in 640x480 16-color mode. Once in +graphics mode, the display attributes (set by \fI\fP code +sequences) work slightly differently: the background color is +ignored, and the foreground colors are the 16 colors specified +in the image file. For that reason, ppmtolss16 allows you to +specify that certain colors should be assigned to specific +color indicies. +.IP +Color indicies 0 and 7, in particular, should be chosen with +care: 0 is the background color, and 7 is the color used for +the text printed by SYSLINUX itself. +.TP +\fI\fP, \fI\fP = \fI\fP = ASCII 25 +If we are currently in graphics mode, return to text mode. +.TP +\fI\fP..\fI\fB, \fI\fP..\fI\fP = ASCII 16-23 +These codes can be used to select which modes to print a +certain part of the message file in. Each of these control +characters select a specific set of modes (text screen, +graphics screen, serial port) for which the output is actually +displayed: +.IP +.nf +Character Text Graph Serial +------------------------------------------------------ + = = ASCII 16 No No No + = = ASCII 17 Yes No No + = = ASCII 18 No Yes No + = = ASCII 19 Yes Yes No + = = ASCII 20 No No Yes + = = ASCII 21 Yes No Yes + = = ASCII 22 No Yes Yes + = = ASCII 23 Yes Yes Yes +.fi +.IP +For example: +.nf +Text modeGraphics modeSerial port +.fi + ... will actually print out which mode the console is in! +.TP +\fI\fP = \fI\fP = ASCII 26 +End of file (DOS convention). +.SS Comboot Images and other operating systems +This version of \fBsyslinux\fP supports chain loading of other operating +systems (such as MS-DOS and its derivatives, including Windows 95/98), +as well as COMBOOT-style standalone executables (a subset of DOS .COM +files; see separate section below.) +.PP +Chain loading requires the boot sector of the foreign operating system +to be stored in a file in the root directory of the filesystem. +Because neither Linux kernels, boot sector images, nor COMBOOT files +have reliable magic numbers, \fBsyslinux\fP will look at the file +extension. The following extensions are recognised: +.PP +.nf +.ta \w'none or other 'u +none or other Linux kernel image +CBT COMBOOT image (not runnable from DOS) +BSS Boot sector (DOS superblock will be patched in) +BS Boot sector +COM COMBOOT image (runnable from DOS) +.fi +.PP +For filenames given on the command line, \fBsyslinux\fP will search for the +file by adding extensions in the order listed above if the plain +filename is not found. Filenames in KERNEL statements must be fully +qualified. +.PP +A COMBOOT file is a standalone executable in DOS .COM format. They +can, among other things, be produced by the Etherboot package by +Markus Gutschke and Ken Yap. The following requirements apply for +these files to be sufficiently "standalone" for \fBsyslinux\fP to be able to +load and run them: +.IP \(bu +The program must not execute any DOS calls (since there is no +DOS), although it may call the BIOS. The only exception is that +the program may execute INT 20h (Terminate Program) to return to +the \fBsyslinux\fP prompt. Note especially that INT 21h AH=4Ch, INT 21h +AH=31h or INT 27h are not supported. +.IP \(bu +Only the fields pspInt20 at offset 00h, pspNextParagraph at offset 02h and +pspCommandTail at offset 80h (contains the arguments from the \fBsyslinux\fP command +line) in the PSP are supported. All other fields will contain zero. +.IP \(bu +The program must not modify any main memory outside its 64K segment if it +returns to \fBsyslinux\fP via INT 20h. +.PP +\fBSyslinux\fP currently doesn't provide any form of API for the use of +COMBOOT files. If there is need, a future version may contain an INT +interface to some \fBsyslinux\fP functions; please contact me if you have a +need or ideas for such an API. +.SS Novice protection +\fBSyslinux\fP will attempt to detect if the user is trying to boot on a 286 +or lower class machine, or a machine with less than 608K of low ("DOS") +RAM (which means the Linux boot sequence cannot complete). If so, a +message is displayed and the boot sequence aborted. Holding down the +Ctrl key while booting disables this feature. +.PP +The compile time and date of a specific \fBsyslinux\fP version can be obtained +by the DOS command "type ldlinux.sys". This is also used as the +signature for the LDLINUX.SYS file, which must match the boot sector +.PP +Any file that \fBsyslinux\fP uses can be marked hidden, system or readonly if +so is convenient; \fBsyslinux\fP ignores all file attributes. The SYSLINUX +installed automatically sets the readonly attribute on LDLINUX.SYS. +.SS Bootable CD-ROMs +SYSLINUX can be used to create bootdisk images for El +Torito-compatible bootable CD-ROMs. However, it appears that many +BIOSes are very buggy when it comes to booting CD-ROMs. Some users +have reported that the following steps are helpful in making a CD-ROM +that is bootable on the largest possible number of machines: +.IP \(bu +Use the -s (safe, slow and stupid) option to SYSLINUX +.IP \(bu +Put the boot image as close to the beginning of the +ISO 9660 filesystem as possible. +.PP +A CD-ROM is so much faster than a floppy that the -s option shouldn't +matter from a speed perspective. +.SS Booting from a FAT partition on a hard disk +SYSLINUX can boot from a FAT12 or FAT16 filesystem partition on a hard +disk (FAT32, introduced in Windows 95 OSR-2, is not supported, +however.) The installation procedure is identical to the procedure +for installing it on a floppy, and should work under either DOS or +Linux. To boot from a partition, SYSLINUX needs to be launched from a +Master Boot Record or another boot loader, just like DOS itself would. +.SH BUGS +SYSLINUX is unsafe to use on any filesystem that extends past cylinder +1024. This is a fundamental limitation of the standard BIOS API. +.PP +SYSLINUX will not work (and will refuse to install) on filesystems +with a cluster size of more than 16K (typically means a filesystem of +more than 1 GB.) +.SS Bug reports +I would appreciate hearing of any problems you have with SYSLINUX. I +would also like to hear from you if you have successfully used SYSLINUX, +especially if you are using it for a distribution. +.PP +If you are reporting problems, please include all possible information +about your system and your BIOS; the vast majority of all problems +reported turn out to be BIOS or hardware bugs, and I need as much +information as possible in order to diagnose the problems. +.PP +There is a mailing list for discussion among SYSLINUX users and for +announcements of new and test versions. To join, send a message to +majordomo@linux.kernel.org with the line: +.PP +.B subscribe syslinux +.PP +in the body of the message. The submission address is syslinux@linux.kernel.org. +.SH SEE ALSO +.BR lilo (8), +.BR keytab-lilo.pl (8), +.BR fdisk (8), +.BR mkfs (8), +.BR superformat (1). +.SH AUTHOR +This manual page is a modified version of the original \fBsyslinux\fP +documentation by H. Peter Anvin . The conversion to a manpage +was made by Arthur Korn . --- syslinux-2.11.orig/debian/changelog +++ syslinux-2.11/debian/changelog @@ -0,0 +1,361 @@ +syslinux (2.11-0.1ubuntu4) breezy; urgency=low + + * Make the package build again (Ubuntu: #14605) + * sample/chain.c: Replace memcpy() call with a loop since memcpy() is not + available (-nostdlib). + * memdisk/setup.c: Replace memcmp() call with a per-char comparison since + memcmp() is not available. + * memdisk/inflate.c: Fix declaration of crc_32_tab[256]. + + -- Martin Pitt Wed, 7 Sep 2005 17:29:49 +0200 + +syslinux (2.11-0.1ubuntu3) hoary; urgency=low + + * Don't build or install syslinux.exe; don't build-depend on mingw32 + (closes: Ubuntu #3416). + + -- Colin Watson Thu, 9 Dec 2004 17:30:06 +0100 + +syslinux (2.11-0.1ubuntu2) hoary; urgency=low + + * Fix amd64 compilation (thanks, Tollef Fog Heen and LaMont Jones). + + -- Daniel Stone Wed, 3 Nov 2004 16:13:25 +0100 + +syslinux (2.11-0.1ubuntu1) hoary; urgency=low + + * Merge changes from Debian back in. + * debian/rules: + + Stop attempting to back up sample/*.elf when they are not shipped in the orig. + + -- Daniel Stone Mon, 1 Nov 2004 18:16:33 +0100 + +syslinux (2.11-0.1) unstable; urgency=low + + * NMU with new upstream release. + - ALL: Add an API call to get the configuration file name. + - SYSLINUX: Fix bug in 2.10 that prevented it from working + correctly for a lot of people. Closes: #269424 + - SYSLINUX: In the installer, make mtools a bit less fussy. + - Make the menu system compile with newer gcc's. + + -- Joey Hess Fri, 10 Sep 2004 12:18:43 -0400 + +syslinux (2.10-1) unstable; urgency=medium + + * New upstream version, fixing many bugs, among them a problem which + prevented syslinux from booting large kernels (thanks to Torsten + Knodt ) (closes: Bug#224606, Bug#242547) + (closes: Bug#258940) + * New Standards-Version (3.6.1) + * Removed dependency on lilo (closes: Bug#235439) + * syslinux now uses mtools to install the image, it no longer requires + msdos or vfat filesystem in the kernel (closes: Bug#72124) + * Added a "Recommend: mtools" control line (closes: Bug#201354) + + -- Juan Cespedes Sat, 17 Jul 2004 10:32:37 +0200 + +syslinux (2.04-2ubuntu1) warty; urgency=low + + * Amd64 patch, adapted from #249506 + + -- LaMont Jones Wed, 14 Jul 2004 14:28:41 +0000 + +syslinux (2.04-2) unstable; urgency=low + + * Fixed bug which prevented large kernels to load (closes: Bug#242547) + + -- Juan Cespedes Thu, 24 Jun 2004 00:58:46 +0200 + +syslinux (2.04-1) unstable; urgency=low + + * New upstream version, needed for debian-installer (closes: #186356) + * This new upstream version of syslinux already + uses mcopy to generate disk images (closes: Bug#180660) + * New Standards-Version: + + Get rid of /usr/doc/syslinux symlink + * Replaced all all # comments with /* */ to get rid + of gcc-3.3 preprocessor errors (closes: Bug#196532) + + -- Juan Cespedes Wed, 11 Jun 2003 11:52:06 +0200 + +syslinux (2.00-2) unstable; urgency=low + + * Fixed typo in description (closes: Bug#178582) + + -- Juan Cespedes Mon, 27 Jan 2003 13:26:42 +0100 + +syslinux (2.00-1) unstable; urgency=low + + * New upstream version (closes: Bug#174565) + (thanks to Andrea Bedini ) + * Added note about PXE in the description (closes: Bug#151700) + * Added man pages for gethostip, lss16toppm, ppmtolss16 + (thanks to dann frazier ) (closes: Bug#107539) + + -- Juan Cespedes Sun, 26 Jan 2003 13:49:44 +0100 + +syslinux (1.75-1) unstable; urgency=low + + * New upstream release + * Added "memdisk" to the package (closes: Bug#141605, Bug#143773) + * Added "syslinux-debug.bin" to the package (closes: Bug#143772) + + -- Juan Cespedes Thu, 20 Jun 2002 13:18:22 +0200 + +syslinux (1.66-1) unstable; urgency=low + + * New upstream version + * Boot images shorter than 64K, including memtest86 (closes: Bug#45133) + + -- Juan Cespedes Mon, 21 Jan 2002 01:56:55 +0100 + +syslinux (1.63-1) unstable; urgency=low + + * New upstream release, fixing "No setup signature found" bug + found with some newer kernels (closes: Bug#107345) + * Reverted mtools patch for installer (it fails with some + high-capacity floppy formats) (closes: Bug#108096) + + -- Juan Cespedes Wed, 22 Aug 2001 01:42:58 +0200 + +syslinux (1.62-5) unstable; urgency=low + + * Added "Build-Depends: netpbm" (closes: Bug#97497) + + -- Juan Cespedes Mon, 14 May 2001 23:38:29 +0200 + +syslinux (1.62-4) unstable; urgency=low + + * Yet another version of `ppmtolss16' from the author (hpa), + fixing a bug regarding color space conversion + + -- Juan Cespedes Sun, 13 May 2001 17:21:02 +0200 + +syslinux (1.62-3) unstable; urgency=low + + * New version of `ppmtolss16' from the author (hpa) + + -- Juan Cespedes Tue, 8 May 2001 21:39:45 +0200 + +syslinux (1.62-2) unstable; urgency=medium + + * Changed small typo in manual page names + (sylinux -> syslinux) (closes: Bug#96553) + + -- Juan Cespedes Mon, 7 May 2001 00:30:09 +0200 + +syslinux (1.62-1) unstable; urgency=medium + + * New upstream version (closes: Bug#77269) + * This version could fix Bug#56983 and Bug#69140, but I have no + way to test it + * Added Build-Depends (closes: Bug#60729) + * New Standards-Version: 3.5.3 + * Fixed lintian error "copyright-refers-to-old-directory" + * Fixed lintian warnings "no-priority-field" and "no-section-field" + * Change the installer a bit so that it is no longer needed to run + it as root, using mtools (closes: Bug#30982) + * Added manual page for `syslinux', provided by + Arthur Korn (closes: Bug#18432) + * Added manual page for `syslinux2ansi', provided by + Kevin Kreamer (closes: Bug#35264) + + -- Juan Cespedes Tue, 1 May 2001 17:12:49 +0200 + +syslinux (1.48-2) unstable; urgency=medium + + * New Standards-Version (3.1.1) + * Fixed lintian bugs + * Note in the package description that filesystem type `msdos' is + needed in order to use this program (closes: Bug#23265) + + -- Juan Cespedes Sun, 19 Dec 1999 14:25:45 +0100 + +syslinux (1.48-1) unstable; urgency=medium + + * New upstream version: + + Changed HIGHMEM_MAX to 38000000h + + Serial console support + + New program PXELINUX to do network booting + * FHS support + * New Standards-Version: 3.0.1 + * Almost all the bugs regarding boot problems should be fixed with + this upstream version: + (closes: Bug#18271, Bug#22366, Bug#22700, Bug#22845, Bug#23181) + (closes: Bug#23936, Bug#27755, Bug#28846, Bug#29296, Bug#32138) + * Fixed copyright notice in "copybs.asm" (closes: Bug#35531) + * "syslinux.com" is now included (closes: Bug#31460) + + -- Juan Cespedes Mon, 25 Oct 1999 11:09:02 +0200 + +syslinux (1.43-1) unstable; urgency=medium + + * New upstream version: + + Add syslinux2ansi script to display the contents of a + colorized SYSLINUX file. + + Changed the io_delay once again, after a report that the + old delay port causes hangs on some systems. + + Should fix: Bug#18271, Bug#22366, Bug#22845, Bug#23181, + Bug#23936, Bug#27755, Bug#28846, Bug#29296, Bug#32138 + * Include "syslinux.com": Bug#31460 + + -- Juan Cespedes Tue, 30 Mar 1999 12:53:48 +0200 + +syslinux (1.42-2) frozen unstable; urgency=HIGH + + * Reverted patch for installer (it fails with some mtools versions) + (Fixes grave bug: Bug#30791) + + -- Juan Cespedes Thu, 17 Dec 1998 10:33:37 +0100 + +syslinux (1.42-1) frozen unstable; urgency=medium + + * New upstream version. Mostly A20 bug fixes. + * This should fix at least the following syslinux bugs: + Bug#22845, Bug#23181, Bug#23936, Bug#27755, Bug#28846, Bug#29296. + * Change the installer a bit so that it is no longer needed to run + it as root + + -- Juan Cespedes Tue, 8 Dec 1998 21:20:31 +0100 + +syslinux (1.40-3) frozen unstable; urgency=medium + + * Added "img1743k.gz" as suggested by Enrique Zanardi + + -- Juan Cespedes Mon, 9 Nov 1998 21:23:21 +0100 + +syslinux (1.40-2) frozen unstable; urgency=medium + + * Added "safe, slow and stupid" option to the version + for the boot floppies to be able to boot even on very + buggy bioses. (Bug#23157, Bug#23181). + * Increased A20M delay even a bit more, as suggested by + Enrique Zanardi. + * Changed the aspect of the syslinux banner a bit + + -- Juan Cespedes Sat, 6 Jun 1998 01:05:34 +0200 + +syslinux (1.40-1) unstable; urgency=low + + * New upstream release: + * Increase A20M delay and put in a test to avoid problems on + certain IBM Thinkpads (thanks to Donnie Barnes of RedHat + for vital info on this one.) + * Support COMBOOT style boot command images. + * Support chain loading (foreign operating systems, e.g. DOS). + * Include a new "copybs" DOS utility to copy a boot sector to + a file (under Linux, use "dd".) + * Fix the DOS installer to work for disks over 32 MB. + * SYSLINUX should now handle disks with more than 65536 tracks. + * Changed section from "misc" to "base", to be in sync with then + FTP archive + + -- Juan Cespedes Fri, 8 May 1998 11:22:46 +0200 + +syslinux (1.37-1) frozen unstable; urgency=medium + + * New upstream version (Bug fixes only): + + Fix a bug that caused "label" statements in syslinux.cfg to + not be handled properly. + + Updated the documentation. Among other things, we now allow + up to 128 "label" statements. + + -- Juan Cespedes Tue, 21 Apr 1998 00:19:18 +0200 + +syslinux (1.36-2) frozen unstable; urgency=medium + + * Re-built for frozen (it fixes the "LABEL" behaviour, required + for the boot floppies) + + -- Juan Cespedes Mon, 20 Apr 1998 19:25:13 +0200 + +syslinux (1.36-1) unstable; urgency=medium + + * Applied patch to make all the "LABEL" keywords in config file work + * New upstream version (bug fixes + new option "KBDMAP") + + -- Juan Cespedes Mon, 20 Apr 1998 02:30:58 +0200 + +syslinux (1.34-2) unstable; urgency=low + + * Install files as imgk.gz instead of img.gz + + -- Juan Cespedes Fri, 6 Mar 1998 20:04:59 +0100 + +syslinux (1.34-1) unstable; urgency=low + + * New upstream version + + -- Juan Cespedes Thu, 5 Mar 1998 17:50:14 +0100 + +syslinux (1.33-2) unstable; urgency=low + + * Fixed minor packaging bugs + + -- Juan Cespedes Sat, 28 Feb 1998 22:50:35 +0100 + +syslinux (1.33-1) unstable; urgency=low + + * New upstream version (fixes:Bug#18654) + + -- Juan Cespedes Fri, 27 Feb 1998 10:42:05 +0100 + +syslinux (1.32-1) unstable; urgency=low + + * New upstream release + * Pristine source + * Fixed author email address (hpa@zytor.com instead of hpa@linux.org) + * New Standards-Version: 2.4.0.0 + * gzipped only big files in /usr/doc/syslinux + * Changed architecture from all to i386 + + -- Juan Cespedes Fri, 20 Feb 1998 22:16:20 +0100 + +syslinux (1.30-6) unstable; urgency=low + + * New maintainer + * New Standards-Version (2.3.0.0) + * Changed rules file to no longer use debstd + + -- Juan Cespedes Sat, 1 Nov 1997 16:22:57 +0100 + +syslinux (1.30-5) unstable; urgency=low + + * Install changelog correctly + * #8532: Filed a bug report against ftp.debian.org because the + package priorities and section are overridden on master. + + -- Christoph Lameter Wed, 29 Oct 1997 18:47:17 -0800 + +syslinux (1.30-4) unstable; urgency=low + + * Changed architecture to all + * Note in description that syslinux generates Intel Boot disks (from + whatever platform you install it on) + + -- Christoph Lameter Thu, 4 Sep 1997 11:16:34 -0700 + +syslinux (1.30-3) unstable; urgency=low + + * Include Images for 1.44K and 720K to boot Linux on an Atari Computer + + -- Christoph Lameter Tue, 25 Feb 1997 09:27:55 -0800 + +syslinux (1.30-2) unstable; urgency=low + + * Control file: Priority set to optional and put into section "misc" where loadlin + is also. (Bug #5424) + * clean up debian directory + + -- Christoph Lameter Mon, 4 Nov 1996 10:42:17 -0800 + +syslinux (1.30-1) unstable; urgency=low + + * Upstream update. Package made conformant to newest standards. + + -- Christoph Lameter Mon, 4 Nov 1996 10:26:25 -0800 + +Local variables: +mode: debian-changelog +End: --- syslinux-2.11.orig/debian/ppmtolss16.sgml +++ syslinux-2.11/debian/ppmtolss16.sgml @@ -0,0 +1,171 @@ +Debian GNU/Linux"> + dannf@debian.org"> + dann"> + frazier"> + + February 19, 2002"> + 1"> +]> + + + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2002 + &dhusername; + + &dhdate; +
+ + PPMTOLSS16 + &dhsection; + + + ppmtolss16 + + Convert a PPM to an LSS16 image + + + + ppmtolss16 + + + + < input.ppm + > output.rle + + + + DESCRIPTION + + This manual page documents briefly the ppmtolss16 + command. + + + + The ppmtolss16 program converts a "raw" PPM file with + max 16 colors to a simple RLE-based format: + + + simple RLE-based format + + + + unint32 0x1413f3d + magic (littleendian) + + + unint16 xsize + littleendian + + + unint15 ysize + littleendian + + + 16 x unint8 r,g,b + color map + + + +
+ + Color map is in 6-bit format (each byte is 0..63) + Then, a sequence of nybbles: + + N ... if N is != previous pixel, one pixel of color N, otherwise + run sequence follows ... + + + M ... if M > 0 then run length is M+1, otherwise run sequence is + encoded in two nybbles, littleendian, +17 + + + The nybble sequences are on a per-row basis, runs may not extend across + rows and odd-nybble rows are zero-padded. + + + At the start of a row, the "previous pixel" is assumed to be zero. + +
+ + OPTIONS + + A summary of options is included below. + + + + + + + Specify that the color #rrggbb (hex) should be assigned index + i (decimal). + + + + + + + BUG + + This program cannot handle comments in the header, nor "plain" ppm + format. + + + + SEE ALSO + + + ppmtolss16(1) + + + + + AUTHOR + + + This manual page was compiled by &dhusername; <&dhemail;> for + the &debian; system (but may be used by others). Most of the content + was written by H. Peter Anvin. + + + + +
+ + --- syslinux-2.11.orig/debian/lss16toppm.sgml +++ syslinux-2.11/debian/lss16toppm.sgml @@ -0,0 +1,119 @@ +Debian GNU/Linux"> + dannf@debian.org"> + dann"> + frazier"> + + February 19, 2002"> + 1"> +]> + + + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2002 + &dhusername; + + &dhdate; +
+ + LSS16TOPPM + + &dhsection; + + + lss16toppm + + Convert an LSS-16 image to PPM + + + + lss16toppm + + < file.lss + > file.ppm + + + + DESCRIPTION + + + This manual page documents briefly the lss16toppm + command. + + + + The lss16toppm utility converts an LSS-16 image to a + PPM image. + + + + + OPTIONS + + A summary of options is included below. + + + + + + Output the color map to standard error. + + + + + + SEE ALSO + + + ppmtolss16(1) + + + + + AUTHOR + + + This manual page was compiled by &dhusername; <&dhemail;> for + the &debian; system (but may be used by others). + + + + +
+ + + --- syslinux-2.11.orig/debian/syslinux2ansi.1 +++ syslinux-2.11/debian/syslinux2ansi.1 @@ -0,0 +1,42 @@ +.\" This is under the same license as syslinux2ansi itself +.TH SYSLINUX2ANSI 1 +.SH NAME +syslinux2ansi \- converts a syslinux-format screen to pc-ansi +.SH SYNOPSIS +.B syslinux2ansi +< filename.input > filename.output +.SH DESCRIPTION +.I Syslinux2ansi +is a filter which converts a screen formatted for syslinux to one +compatible with PC ANSI. It will only read from standard in, and has +no command line options. +.SH BUGS +Help and version command line options would be useful. +.PP +The ability to put input and output filenames on the command line might +be good as well. +.SS Bug reports +I would appreciate hearing of any problems you have with SYSLINUX. I +would also like to hear from you if you have successfully used SYSLINUX, +especially if you are using it for a distribution. +.PP +If you are reporting problems, please include all possible information +about your system and your BIOS; the vast majority of all problems +reported turn out to be BIOD or hardware bugs, and I need as much +information as possible in order to diagnose the problems. +.PP +There is a mailing list for discussion among SYSLINUX users and for +announcements of new and test versions. To join, send a message to +majordomo@linux.kernel.org with the line: +.PP +.B subscribe syslinux +.PP +in the body of the message. The submission address is +syslinux@linux.kernel.org. +.SH "SEE ALSO" +.BR syslinux(1), +.BR perl(1) +.SH AUTHOR +This manual page is a quick write-up for Debian done by Kevin Kreamer +, by looking over the 1 screenful of Perl that is +.B syslinux2ansi. --- syslinux-2.11.orig/debian/gethostip.sgml +++ syslinux-2.11/debian/gethostip.sgml @@ -0,0 +1,143 @@ +Debian GNU/Linux"> + dannf@debian.org"> + dann"> + frazier"> + + February 19, 2002"> + 1"> +]> + + + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2002 + &dhusername; + + &dhdate; +
+ + GETHOSTIP + + &dhsection; + + + gethostip + + convert an IP address into various formats + + + + gethostip + + + + + + DESCRIPTION + + This manual page documents briefly the + gethostip command. + + + The gethostip utility converts the given hostname or + IP address into a variety formats. It is provided by the syslinux + package to make it easier to calculate the appropriate names for + pxelinux configuration files. These filenames can be the complete + hexadecimal representation for a given IP address, or a partial + hexadecimal representation to match a range of IP addresses. + + + + + OPTIONS + + A summary of options is included below. + + + + + + Output the IP address in decimal format. + + + + + + Output the IP address in hexadecimal format. + + + + + + Output the host's canonical name. + + + + + + + Full output. Outputs the IP address in all supported formats. + Same as . + + + + + + + SEE ALSO + + + syslinux(1) + + + More details can be found in the pxelinux documentation, which + can be found in + /usr/share/doc/syslinux/pxelinux.doc.gz on + &debian; systems. + + + + AUTHOR + + This manual page was compiled by &dhusername; <&dhemail;> for + the &debian; system (but may be used by others). + + + +
+ + --- syslinux-2.11.orig/debian/copyright +++ syslinux-2.11/debian/copyright @@ -0,0 +1,37 @@ +This is the Debian GNU/Linux prepackaged version of the SYSLINUX +boot loader. + +It was put together from sources obtained from: + ftp://ftp.kernel.org/pub/linux/utils/boot/syslinux/syslinux-2.10.tar.gz + + +Copyrights +---------- +Copyright (C) 1994-2004 H. Peter Anvin + +Modifications for Debian: + Copyright (C) 1996 Bruce Perens + Copyright (C) 1996-1997 Christoph Lameter + Copyright (C) 2001 Arthur Korn + Copyright (C) 2001 Kevin Kreamer + Copyright (C) 1997-2004 Juan Cespedes + + +License +------- +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +A copy of the GNU General Public License is available as +`/usr/share/common-licenses/GPL' in the Debian GNU/Linux distribution +or on the World Wide Web at `http://www.gnu.org/copyleft/gpl.html'. +You can also obtain it by writing to the Free Software Foundation, +Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA + --- syslinux-2.11.orig/sample/Makefile +++ syslinux-2.11/sample/Makefile @@ -21,12 +21,14 @@ M32 := $(call gcc_ok,-m32,) CC = gcc $(M32) -LD = ld -m elf_i386 +LD = gcc AR = ar NASM = nasm RANLIB = ranlib -CFLAGS = -W -Wall -march=i386 -Os -fomit-frame-pointer -I../com32/include -SFLAGS = -march=i386 +CFLAGS_ARCHDEP = -march=i386 +CFLAGS = -W -Wall $(CFLAGS_ARCHDEP) -Os -fomit-frame-pointer \ + -I../com32/include +SFLAGS = $(CFLAGS_ARCHDEP) LDFLAGS = -s OBJCOPY = objcopy PPMTOLSS16 = ../ppmtolss16 @@ -49,7 +51,7 @@ .PRECIOUS: %.elf %.elf: c32entry.o %.o $(LIB) - $(LD) -Ttext 0x101000 -e _start -o $@ $^ + $(LD) -nostdlib -m32 -Wl,-Ttext,0x101000 -e _start -o $@ $^ %.c32: %.elf $(OBJCOPY) -O binary $< $@ --- syslinux-2.11.orig/sample/chain.c +++ syslinux-2.11/sample/chain.c @@ -347,7 +347,8 @@ /* 0x7BE is the canonical place for the first partition entry. */ inreg.esi.w[0] = 0x7be; - memcpy((char *)0x7be, partinfo, sizeof(*partinfo)); + char *d = (char*)0x7be, *s = (char*)partinfo; + int n = sizeof(*partinfo); for (; n; n--) *d++ = *s++; } inreg.eax.w[0] = 0x000d; /* Clean up and chain boot */ inreg.edx.w[0] = 0; /* Should be 3 for "keeppxe" */