platform/upstream/syslinux.git
14 years agocpuid.c32: very simple low-level CPUID info CLI routine
H. Peter Anvin [Tue, 30 Mar 2010 22:05:17 +0000 (15:05 -0700)]
cpuid.c32: very simple low-level CPUID info CLI routine

Add a very simple com32 program to dump a single CPUID leaf.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agocore: Workaround for Xen HVM HLT-in-real-mode bug
H. Peter Anvin [Tue, 30 Mar 2010 22:02:36 +0000 (15:02 -0700)]
core: Workaround for Xen HVM HLT-in-real-mode bug

Xen HVM when used with the "vmxassist" program crashes if HLT is
executed in real mode.  Detect a version of Xen old enough to support
"vmxassist", and if it is found, then disable HLT.

See: https://bugzilla.redhat.com/show_bug.cgi?id=570496

Reported-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agoClean up the version/copyright strings reported via the comboot API
H. Peter Anvin [Tue, 30 Mar 2010 20:37:41 +0000 (13:37 -0700)]
Clean up the version/copyright strings reported via the comboot API

Skip leading garbage in the version and copyright strings reported via
the comboot API.  Clean up fixes for those, and document the situation.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agocom32: export the filename of a com32 module to the module itself
H. Peter Anvin [Mon, 29 Mar 2010 23:58:30 +0000 (16:58 -0700)]
com32: export the filename of a com32 module to the module itself

Export the filename of the com32 module to the module itself, setting
argv[0].

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agoMCONFIG: update gcc options for embedded and com32
H. Peter Anvin [Mon, 29 Mar 2010 20:50:45 +0000 (13:50 -0700)]
MCONFIG: update gcc options for embedded and com32

Update the gcc options used for embedded and for com32 and make sure
they match.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agomboot: set boot loader name
H. Peter Anvin [Mon, 29 Mar 2010 20:22:45 +0000 (13:22 -0700)]
mboot: set boot loader name

Set the boot loader name based on syslinux_version()->version_string.
Based on a prior patch by Sebastian Herbszt <herbszt@gmx.de>.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
14 years agogpllib: fix call to CPUID function 4
Sebastian Herbszt [Sun, 21 Mar 2010 20:55:00 +0000 (21:55 +0100)]
gpllib: fix call to CPUID function 4

Only call CPUID function 4 if cpuid_level indicates its availability.

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agocore: use MY_NAME for syslinux_banner
Sebastian Herbszt [Sun, 21 Mar 2010 12:23:17 +0000 (13:23 +0100)]
core: use MY_NAME for syslinux_banner

Use MY_NAME for syslinux_banner in isolinux and pxelinux.
This is already done in ldlinux and extlinux.

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoNEWS, version: update for 3.86 syslinux-3.86-pre1
H. Peter Anvin [Fri, 5 Mar 2010 19:19:16 +0000 (11:19 -0800)]
NEWS, version: update for 3.86

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agochain.c32: Fix chaining to MBRs
H. Peter Anvin [Fri, 5 Mar 2010 19:13:28 +0000 (11:13 -0800)]
chain.c32: Fix chaining to MBRs

The change to load the bootsector even when loading a bootstrap from a
file broke the handing of chainloading the MBR of a disk.  Fix this.

Debugging-info-by: Thomas Mieslinger <thomas.mieslinger@lundl.de>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agolibpci: merge BIOS read and BIOS write
H. Peter Anvin [Sun, 21 Feb 2010 06:26:39 +0000 (22:26 -0800)]
libpci: merge BIOS read and BIOS write

Save a few bytes by merging the very similar BIOS read and BIOS write
functions.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoi915resolution: use libpci to access PCI config space syslinux-3.85 syslinux-3.85-pre13
H. Peter Anvin [Wed, 17 Feb 2010 04:12:57 +0000 (20:12 -0800)]
i915resolution: use libpci to access PCI config space

Use libpci to access PCI config space.  This *hopefully* will make it
less likely that some old machine hangs when failing to set the
requested video mode.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoNEWS: document i915resolution merge. syslinux-3.85-pre12
H. Peter Anvin [Tue, 16 Feb 2010 23:11:09 +0000 (15:11 -0800)]
NEWS: document i915resolution merge.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoMerge branch 'i915res'
H. Peter Anvin [Tue, 16 Feb 2010 23:09:31 +0000 (15:09 -0800)]
Merge branch 'i915res'

14 years agoMakefile: dos/copybs.com now in dosutil
H. Peter Anvin [Mon, 15 Feb 2010 23:22:24 +0000 (15:22 -0800)]
Makefile: dos/copybs.com now in dosutil

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agodosutil: move copybs here, update Makefile
H. Peter Anvin [Mon, 15 Feb 2010 23:19:54 +0000 (15:19 -0800)]
dosutil: move copybs here, update Makefile

Move copybs to dosutil, change the Makefile to deal with UPX being
able to compress (e.g. very small files.)

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agomtools: add MTOOLS_FAT_COMPATIBILITY=1
H. Peter Anvin [Sun, 14 Feb 2010 01:09:27 +0000 (17:09 -0800)]
mtools: add MTOOLS_FAT_COMPATIBILITY=1

It's perfectly legitimate to have a bigger FAT area than is needed,
and it is often done for alignment.  Tell mtools not to throw a hissy
fit over it.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agochain.c: part_info -> partinfo syslinux-3.85-pre11
H. Peter Anvin [Sun, 14 Feb 2010 00:46:22 +0000 (16:46 -0800)]
chain.c: part_info -> partinfo

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoNEWS: update for 3.85 release
H. Peter Anvin [Sun, 14 Feb 2010 00:45:11 +0000 (16:45 -0800)]
NEWS: update for 3.85 release

14 years agochain.c32: add option to set hidden sectors; load boot sector for NTLDR
H. Peter Anvin [Sat, 13 Feb 2010 22:45:42 +0000 (14:45 -0800)]
chain.c32: add option to set hidden sectors; load boot sector for NTLDR

Add an option to update the in-memory version of FAT/NTFS hidden
sectors (== partition offset); load the boot sector for NTLDR.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agopxelinux: complete but disable debugging code, not for production syslinux-3.85-pre10
H. Peter Anvin [Sat, 13 Feb 2010 01:02:50 +0000 (17:02 -0800)]
pxelinux: complete but disable debugging code, not for production

Disable some debugging code that was never intended for production
use.  The intent is to track down specific memory-clobbering bugs.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agocore: document the stack location, use STACK_TOP throughout
H. Peter Anvin [Sat, 13 Feb 2010 00:49:55 +0000 (16:49 -0800)]
core: document the stack location, use STACK_TOP throughout

The global absolute symbol STACK_TOP defined in layout.inc can be used
by the linker script as well as by anything else that needs to know
where the stack is.  Also document why we do it differently for
PXELINUX.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agopxelinux: move the stack to avoid AMI BIOS bug
H. Peter Anvin [Fri, 12 Feb 2010 21:37:20 +0000 (13:37 -0800)]
pxelinux: move the stack to avoid AMI BIOS bug

There is apparently some AMI BIOSes which leave a BEV stack just below
7c00h, which means that they can't return from the PXE NBP.  Thus, for
PXELINUX, move the stack down a few kilobytes.

This particularly refers to the "rouilj/ops12" system my private
sysdump archive.

Reported-and-tested-by: John Rouillard <rouilj@renesys.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoMerge branch 'master' into i915res syslinux-3.85-pre63
H. Peter Anvin [Mon, 8 Feb 2010 22:39:20 +0000 (14:39 -0800)]
Merge branch 'master' into i915res

14 years agovesa: for jpg or png images, tile the image across the screen
H. Peter Anvin [Mon, 8 Feb 2010 22:37:48 +0000 (14:37 -0800)]
vesa: for jpg or png images, tile the image across the screen

If we specify a smaller image than the screen size, tile it across the
screen rather than leaving a big black box.  This may have to be made
configurable.

Also note that Syslinux currently does not handle the case of an image
bleeding off the end of the screen.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: quiet gcc warning
H. Peter Anvin [Mon, 8 Feb 2010 22:37:20 +0000 (14:37 -0800)]
sysdump: quiet gcc warning

Null change to quiet a gcc warning.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agomemdisk: make "nopass" type-specific, add "nopassany"
H. Peter Anvin [Mon, 8 Feb 2010 17:13:11 +0000 (09:13 -0800)]
memdisk: make "nopass" type-specific, add "nopassany"

Make "nopass" specific to the current drive type.  Add new option
"nopassany", which also clobbers the drive counts of both types.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: use the same serial receive threshold as the core syslinux-3.85-pre9
H. Peter Anvin [Mon, 8 Feb 2010 04:08:46 +0000 (20:08 -0800)]
sysdump: use the same serial receive threshold as the core

Match the core with regards to the serial receive threshold.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: make ymodem work even on a serial console
H. Peter Anvin [Mon, 8 Feb 2010 04:06:27 +0000 (20:06 -0800)]
sysdump: make ymodem work even on a serial console

Make it possible to do a ymodem transfer even on the port used for a
serial console.  Furthermore, on a serial console, get the parameters
from the serial console information, so port number and speed don't
have to be specified.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: don't include final null byte in version file
H. Peter Anvin [Mon, 8 Feb 2010 01:17:35 +0000 (17:17 -0800)]
sysdump: don't include final null byte in version file

We don't want the null byte at the end as part of the version file.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: ymodem: actually retransmit a block if we get NAK
H. Peter Anvin [Mon, 8 Feb 2010 01:05:08 +0000 (17:05 -0800)]
sysdump: ymodem: actually retransmit a block if we get NAK

Incorrectly nested loops, we need to actually retransmit if we get a
NAK reply...

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: actually make the new backend system work syslinux-3.85-pre8
H. Peter Anvin [Mon, 8 Feb 2010 00:26:40 +0000 (16:26 -0800)]
sysdump: actually make the new backend system work

With these changes, both TFTP and Ymodem seem to actually work.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: change to a two-phase generate/output model, buffer in memory
H. Peter Anvin [Sun, 7 Feb 2010 23:14:21 +0000 (15:14 -0800)]
sysdump: change to a two-phase generate/output model, buffer in memory

Instead of outputting data as it is generated, buffer it all in memory
and then output it all at once.  This not only gives us exact size and
so on before we start, but turns out to be faster at least for TFTP.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: serial: add missing header file
H. Peter Anvin [Sun, 7 Feb 2010 20:14:46 +0000 (12:14 -0800)]
sysdump: serial: add missing header file

Missing header file -> warning.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: be_tftp.c: fix prototype
H. Peter Anvin [Sun, 7 Feb 2010 20:14:14 +0000 (12:14 -0800)]
sysdump: be_tftp.c: fix prototype

The init function now takes an additional length argument.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: *actually* generate the proper version string
H. Peter Anvin [Sun, 7 Feb 2010 20:13:34 +0000 (12:13 -0800)]
sysdump: *actually* generate the proper version string

Make the gen-id.sh script actually do the right thing...

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: handle the case of more than one DMI table
H. Peter Anvin [Sun, 7 Feb 2010 19:56:19 +0000 (11:56 -0800)]
sysdump: handle the case of more than one DMI table

On the offchance a system has more than one valid DMI table, record
them all.  Also record the address of the signature structure and of
the table itself.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: record the sysdump version used to generate a bundle
H. Peter Anvin [Sun, 7 Feb 2010 19:55:41 +0000 (11:55 -0800)]
sysdump: record the sysdump version used to generate a bundle

Record the sysdump version used to actually generate a data set.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: dump CPUID information syslinux-3.85-pre7
H. Peter Anvin [Sun, 7 Feb 2010 08:09:31 +0000 (00:09 -0800)]
sysdump: dump CPUID information

Dump CPUID information in as generic of a way as is possible, given
the ugliness in certain places.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: remove unused variable
H. Peter Anvin [Sun, 7 Feb 2010 08:08:50 +0000 (00:08 -0800)]
sysdump: remove unused variable

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: be more explicit about what we are doing
H. Peter Anvin [Sun, 7 Feb 2010 07:26:53 +0000 (23:26 -0800)]
sysdump: be more explicit about what we are doing

Print more information on the console about what is going on.  That
can help detect problems if we find a machine which hangs on sysdump.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: fix the dumping of the e820 memory information
H. Peter Anvin [Sun, 7 Feb 2010 07:26:32 +0000 (23:26 -0800)]
sysdump: fix the dumping of the e820 memory information

Need to advance the pointer...

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: fix hacking of the DMI structure address
H. Peter Anvin [Sun, 7 Feb 2010 07:26:00 +0000 (23:26 -0800)]
sysdump: fix hacking of the DMI structure address

Fix the hacking of the DMI structure address, for dmidecode's sake.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: dump memory map information
H. Peter Anvin [Sun, 7 Feb 2010 07:10:24 +0000 (23:10 -0800)]
sysdump: dump memory map information

Dump the memory map information - e820 et al.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: add PCI config space dumping
H. Peter Anvin [Sun, 7 Feb 2010 06:54:06 +0000 (22:54 -0800)]
sysdump: add PCI config space dumping

Dump PCI configuration space.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: add support for dumping DMI tables
H. Peter Anvin [Sun, 7 Feb 2010 06:28:01 +0000 (22:28 -0800)]
sysdump: add support for dumping DMI tables

Add support for dumping DMI tables; hopefully in a way that is
compatible with dmidecode.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: add back ymodem support; clean up memory dump structure
H. Peter Anvin [Sun, 7 Feb 2010 05:55:03 +0000 (21:55 -0800)]
sysdump: add back ymodem support; clean up memory dump structure

Now we just need more front ends (information providers)...

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: add missing return statement in cpio_writefile()
H. Peter Anvin [Sun, 7 Feb 2010 01:47:15 +0000 (17:47 -0800)]
sysdump: add missing return statement in cpio_writefile()

cpio_writefile() should return the actual return value...

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agopxe: add missing prototype for pxe_dns()
H. Peter Anvin [Sun, 7 Feb 2010 01:46:21 +0000 (17:46 -0800)]
pxe: add missing prototype for pxe_dns()

All global functions should have a prototype...

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: dump vesa modes, generate usable timestamps
H. Peter Anvin [Sun, 7 Feb 2010 01:43:11 +0000 (17:43 -0800)]
sysdump: dump vesa modes, generate usable timestamps

Dump all the VESA modes; give functional timestamps for the cpio
members.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: first working version (can dump lowmem over TFTP)
H. Peter Anvin [Sun, 7 Feb 2010 00:38:53 +0000 (16:38 -0800)]
sysdump: first working version (can dump lowmem over TFTP)

Most of the infrastructure for sysdump, and enough to make it useful.
Sysdump will produce a gzipped cpio archive containing individual data
members; for now only a memory dump of lowmem.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agocom32: add library function for DNS lookup
H. Peter Anvin [Sun, 7 Feb 2010 00:31:26 +0000 (16:31 -0800)]
com32: add library function for DNS lookup

Add a library function for DNS lookup

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosyslinux/pxe.h use the same type as <com32.h> for a far pointer
H. Peter Anvin [Sun, 7 Feb 2010 00:29:41 +0000 (16:29 -0800)]
syslinux/pxe.h use the same type as <com32.h> for a far pointer

<syslinux/pxe.h> was using segoff16_t, <com32.h> was using far_ptr_t
for the same thing -- use the same type so the macros are available
for both.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agopxelinux: give our own IP address in the "derivate info" API call
H. Peter Anvin [Sun, 7 Feb 2010 00:28:05 +0000 (16:28 -0800)]
pxelinux: give our own IP address in the "derivate info" API call

Add our own IP address to the "get derivative-specific info" API call.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agosysdump: port memdump to com32 with the intent of enhancing it
H. Peter Anvin [Sat, 6 Feb 2010 19:24:24 +0000 (11:24 -0800)]
sysdump: port memdump to com32 with the intent of enhancing it

Port memdump to com32, with the intent of modifying and enhancing it.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agomemdump: srecs need a length, and max 32 data bytes
H. Peter Anvin [Sat, 6 Feb 2010 02:17:10 +0000 (18:17 -0800)]
memdump: srecs need a length, and max 32 data bytes

Length + 32 data bytes max...

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agomemdump: allow outputting S-records
H. Peter Anvin [Sat, 6 Feb 2010 02:03:14 +0000 (18:03 -0800)]
memdump: allow outputting S-records

Allow outputting S-records, for users who only have the capability of
passively monitoring a serial port as opposed to being able to capture
the contents directly.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agopxelinux: call reset_pxe before local boot syslinux-3.85-pre6
H. Peter Anvin [Sat, 6 Feb 2010 00:41:02 +0000 (16:41 -0800)]
pxelinux: call reset_pxe before local boot

Reset the PXE configuration before we do a local boot.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agogPXE: change heap size to 512K
H. Peter Anvin [Thu, 4 Feb 2010 19:18:36 +0000 (11:18 -0800)]
gPXE: change heap size to 512K

Change heap size from 128K to 512K to accommodate larger TCP windows.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agomemdisk: update documentation
H. Peter Anvin [Fri, 5 Feb 2010 04:57:30 +0000 (20:57 -0800)]
memdisk: update documentation

Document the nopass option, eltorito.sys is now in the standard
distro.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agogPXE: bump the window size to 64K
H. Peter Anvin [Thu, 4 Feb 2010 19:08:29 +0000 (11:08 -0800)]
gPXE: bump the window size to 64K

Change the window size from 4K to 64K to have at least a hope of sane
WAN performance.  Retransmission cost is mostly related to timeouts,
not amount retransmitted, anyway.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agogPXE: suppress the Ctrl+B banner syslinux-3.85-pre5
H. Peter Anvin [Thu, 4 Feb 2010 00:13:28 +0000 (16:13 -0800)]
gPXE: suppress the Ctrl+B banner

Suppress the Ctrl+B banner and zero out the timeout.  It's not very
useful for an integrated product, and very visually annoying on NBP
chainload.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoMerge branch 'master' into i915res syslinux-3.85-pre62
H. Peter Anvin [Thu, 4 Feb 2010 00:06:41 +0000 (16:06 -0800)]
Merge branch 'master' into i915res

14 years agoMerge branch 'chainload'
H. Peter Anvin [Thu, 4 Feb 2010 00:06:21 +0000 (16:06 -0800)]
Merge branch 'chainload'

14 years agomenu: add MENU CLEAR option
H. Peter Anvin [Thu, 4 Feb 2010 00:05:59 +0000 (16:05 -0800)]
menu: add MENU CLEAR option

Add MENU CLEAR to clear the screen on menu exit.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agomenu: when running hidden, clear the screen before final boot
H. Peter Anvin [Wed, 3 Feb 2010 23:55:47 +0000 (15:55 -0800)]
menu: when running hidden, clear the screen before final boot

Clear away the countdown message before actually running the final
boot.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agopxelinux: allow chainloading from gpxelinux
H. Peter Anvin [Wed, 3 Feb 2010 23:25:37 +0000 (15:25 -0800)]
pxelinux: allow chainloading from gpxelinux

Use the new "exit hook" functionality in gPXE to allow NBP
chainloading from gpxelinux.0.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agopxelinux: stop using the PXE-provided stack
H. Peter Anvin [Wed, 3 Feb 2010 23:20:19 +0000 (15:20 -0800)]
pxelinux: stop using the PXE-provided stack

Using the PXE-provided stack complicates things tremendously for gPXE
chainloading support, plus we are hostages to the stack size set up by
the PXE stack (1.5K by spec.)

Use a private stack instead, as the fsc branch already does.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agogpxelinux: use the cached DHCP packet
H. Peter Anvin [Wed, 3 Feb 2010 06:53:18 +0000 (22:53 -0800)]
gpxelinux: use the cached DHCP packet

gPXE 1.0.0 has support for using the cached DHCP packet from the
previous PXE stack, so do that rather than doing another DHCP.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoUpdate gPXE to version 1.0.0
H. Peter Anvin [Wed, 3 Feb 2010 06:41:00 +0000 (22:41 -0800)]
Update gPXE to version 1.0.0

14 years agomkdiskimage: add option -s to make a sparse image syslinux-3.85-pre4
H. Peter Anvin [Mon, 1 Feb 2010 23:41:43 +0000 (15:41 -0800)]
mkdiskimage: add option -s to make a sparse image

It is often fine to have a sparse file for the output image, so add an
-s option to generate a sparse image.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agocore: set QUIET_FLAG if we load Linux "quiet"
H. Peter Anvin [Mon, 1 Feb 2010 17:45:23 +0000 (09:45 -0800)]
core: set QUIET_FLAG if we load Linux "quiet"

If we see the "quiet" flag for the Linux kernel, also suppress the
early Linux kernel messages; for people who want a completely clean
boot.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agochain.c32: Handle nonlinear logical partitions syslinux-3.85-pre3
H. Peter Anvin [Wed, 27 Jan 2010 23:45:01 +0000 (15:45 -0800)]
chain.c32: Handle nonlinear logical partitions

Some partitioning program, including at least parted, apparently
create the list of logical partition headers nonlinearly with the
partition themselves.  Thus, make it a requirement that then fit
inside the overall extended partition, but not inside the
corresponding sublogical partition.

Reported-by: Gert Huselmans <gerth@zytor.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoFAT: generate EOF depending on exceeding the number of clusters
H. Peter Anvin [Mon, 25 Jan 2010 17:41:53 +0000 (09:41 -0800)]
FAT: generate EOF depending on exceeding the number of clusters

Generate EOF by comparing to the actual number of clusters.  We have
to compute the number of clusters in the filesystem anyway during
setup, so save the number and use it for the EOF computation.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoldlinux: fix FAT EOF detection
H. Peter Anvin [Mon, 25 Jan 2010 17:34:08 +0000 (09:34 -0800)]
ldlinux: fix FAT EOF detection

We had the wrong highest possible cluster for the FAT; adjust it so
that it matches the definition.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agorunkernel: we only look at the first letter in vga=...
H. Peter Anvin [Mon, 25 Jan 2010 17:30:26 +0000 (09:30 -0800)]
runkernel: we only look at the first letter in vga=...

We only look at the first letter in the handling of the special vga=
strings, make that manifest in the assembly code so we don't end up
with unnecessary warnings.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoMerge branch 'master' into i915res syslinux-3.85-pre61
H. Peter Anvin [Sat, 23 Jan 2010 01:42:47 +0000 (17:42 -0800)]
Merge branch 'master' into i915res

14 years agoAdd support for "vga=current"
H. Peter Anvin [Sat, 23 Jan 2010 01:42:11 +0000 (17:42 -0800)]
Add support for "vga=current"

"vga=current" is a user-friendly synonym for "vga=0x0f04".

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agovesa: allow arbitrary resolutions on some Intel chipsets
H. Peter Anvin [Fri, 22 Jan 2010 20:21:37 +0000 (12:21 -0800)]
vesa: allow arbitrary resolutions on some Intel chipsets

Add some code from the tool "915resolution" to allow arbitrary
resolutions to be set on some Intel chipsets.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agocore: don't reset the video mode when invoking the kernel
H. Peter Anvin [Fri, 22 Jan 2010 20:14:59 +0000 (12:14 -0800)]
core: don't reset the video mode when invoking the kernel

Don't reset the video mode when invoking the kernel if we're booting
quiet -- it breaks "vga=current" which some distros use for a smooth
graphical transition all the way into the kernel.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoMCONFIG: add debugging version of GCCWARN syslinux-3.85-pre2
H. Peter Anvin [Sun, 10 Jan 2010 21:22:30 +0000 (13:22 -0800)]
MCONFIG: add debugging version of GCCWARN

Add the options that help smoke out bugs.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agodmi_processor.c: remove unreachable table values
H. Peter Anvin [Sun, 10 Jan 2010 21:18:48 +0000 (13:18 -0800)]
dmi_processor.c: remove unreachable table values

A uint8_t can't have values all the way up to 0x12e...

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agodisk/bootloaders.c: fix bogus const in get_bootloader_string()
H. Peter Anvin [Sun, 10 Jan 2010 21:14:59 +0000 (13:14 -0800)]
disk/bootloaders.c: fix bogus const in get_bootloader_string()

get_bootloader_string() takes a mutable first argument; the call chain
does have call paths on which this argument will be modified.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agodisk/ata.c: fix signedness weirdness in ata_id_c_string()
H. Peter Anvin [Sun, 10 Jan 2010 21:13:56 +0000 (13:13 -0800)]
disk/ata.c: fix signedness weirdness in ata_id_c_string()

Fix signedness weirdness in ata_id_c_string(), thus killing a warning.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agocom32/lib: remove unused variable in syslinux_getadv()
H. Peter Anvin [Sun, 10 Jan 2010 21:09:57 +0000 (13:09 -0800)]
com32/lib: remove unused variable in syslinux_getadv()

Remove unused variable, thus removing a warning.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agozlib: fix warning in crc32.c
H. Peter Anvin [Sun, 10 Jan 2010 21:07:39 +0000 (13:07 -0800)]
zlib: fix warning in crc32.c

Fix a signed/unsigned warning in crc32.c.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agocom32/lib: fix external prototype for __vesacon_open()
H. Peter Anvin [Sun, 10 Jan 2010 21:05:26 +0000 (13:05 -0800)]
com32/lib: fix external prototype for __vesacon_open()

The external prototype for __vesacon_open() was incorrect; this is a
good example of why external prototypes are bad, incidentally.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agocom32/lib: fix inappropriate & in sys/colortable.c
H. Peter Anvin [Sun, 10 Jan 2010 21:03:47 +0000 (13:03 -0800)]
com32/lib: fix inappropriate & in sys/colortable.c

The & is incorrect... not actively harmful, but generates a warning.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agocom32/lib: add cast in __parse_argv()
H. Peter Anvin [Sun, 10 Jan 2010 20:59:48 +0000 (12:59 -0800)]
com32/lib: add cast in __parse_argv()

ALIGN_UP_FOR() returns the type of the original pointer, but we want
it to be the type that we're actually going to use.  Perhaps
ALIGN_UP_FOR() should be changed, but for now, just add the proper
cast.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agolibgcc: fix signedness warning in __moddi3()
H. Peter Anvin [Sun, 10 Jan 2010 20:57:48 +0000 (12:57 -0800)]
libgcc: fix signedness warning in __moddi3()

Intentional cross-signedness pointer passing, add a cast.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agocom32/lib: fix unused argument warning in fdopendir()
H. Peter Anvin [Sun, 10 Jan 2010 20:56:07 +0000 (12:56 -0800)]
com32/lib: fix unused argument warning in fdopendir()

fdopendir() is a stub, and probably will remain such.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agocom32/lib: fix unused parameter warning in chdir()
H. Peter Anvin [Sun, 10 Jan 2010 20:55:11 +0000 (12:55 -0800)]
com32/lib: fix unused parameter warning in chdir()

chdir() is a stub at the moment... to be fixed in Syslinux 4.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agomemdisk: fix non-prototype function declaration
H. Peter Anvin [Sun, 10 Jan 2010 20:54:24 +0000 (12:54 -0800)]
memdisk: fix non-prototype function declaration

() is not a prototype, use (void)

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agocom32/lib: fix warning in str*cmp()
H. Peter Anvin [Sun, 10 Jan 2010 20:53:51 +0000 (12:53 -0800)]
com32/lib: fix warning in str*cmp()

Shut up a warning about initializing pointer across signedness.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agocom32/lib: fix warnings in opendir/readdir/closedir
H. Peter Anvin [Sun, 10 Jan 2010 20:53:04 +0000 (12:53 -0800)]
com32/lib: fix warnings in opendir/readdir/closedir

Missing #include <stdlib.h>, nested comment in readdir.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoMakefile: replace -W -Wall with centralized $(GCCWARN)
H. Peter Anvin [Sun, 10 Jan 2010 20:48:06 +0000 (12:48 -0800)]
Makefile: replace -W -Wall with centralized $(GCCWARN)

Replace -W -Wall hardcoded into a bunch of Makefiles with $(GCCWARN),
a centralized variable defined in the root MCONFIG.  Add
-Wstrict-prototypes to the list of global warnings: we should never
have non-prototyped declarations.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agocmenu: clean up some () that should be (void)
H. Peter Anvin [Sun, 10 Jan 2010 20:41:26 +0000 (12:41 -0800)]
cmenu: clean up some () that should be (void)

() is not a prototype, and means (...) not (void) in C.
Replace with (void).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoNEWS: document Grub4DOS chainloading
H. Peter Anvin [Sun, 10 Jan 2010 20:38:12 +0000 (12:38 -0800)]
NEWS: document Grub4DOS chainloading

14 years agochain.c32: simplify the grub4dos support
H. Peter Anvin [Sun, 10 Jan 2010 20:36:30 +0000 (12:36 -0800)]
chain.c32: simplify the grub4dos support

Grub4dos (like Grub in general) uses the same partition numbers as
Linux (and chain.c32), minus one.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agochain.c32: add grldr= command for Grub4dos
Kim Mik [Sun, 10 Jan 2010 14:57:40 +0000 (14:57 +0000)]
chain.c32: add grldr= command for Grub4dos

grldr of Grub4dos wants the partition number in DH:
0xff: whole drive
0-3:  primary partitions
4-*:  logical partitions

Hmmm... there really isn't a huge reason not to do this
unconditionally, at least unless it's known to cause problems.  It
would be better, of course, if grldr used the standard DS:SI, but it
doesn't, so oh well.

Some info of a Grub4dos developer (Tinybit):
  GRLDR can be loaded at any address with alignment 16(i.e., a possible
  segment base address). Generally you want to load it at 0000:7C00, or at
  2000:0000. Of course you never load it at 0000:0000 or similar.

  Before jumping to the entry point at the very beginning of GRLDR, you
  should setup DL=(BIOS drive) and DH=(partition number). For partition
  numbers, 0 - 3 are primary, 4 - 0xFE are logical. (DH=0xFF) stands for
  whole drive(unpartitioned). DH will later be passed to
  install_partition(the third byte, from bit 16 to bit 23).

http://www.boot-land.net/forums/index.php?showtopic=8457&st=20&start=20 post #22