platform/upstream/syslinux.git
10 years agodefine _DEFAULT_SOURCE for glibc-2.20 79/27379/1 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi tizen_3.0.2014.q3_common tizen_3.0.m14.3_ivi accepted/tizen/common/20141001.073403 accepted/tizen/ivi/20141006.083052 submit/tizen/20140930.232826 tizen_3.0.2014.q3_common_release tizen_3.0.m14.3_ivi_release
Chanho Park [Fri, 12 Sep 2014 03:10:31 +0000 (12:10 +0900)]
define _DEFAULT_SOURCE for glibc-2.20

_BSD_SOURCE was deprecated in favour of _DEFAULT_SOURCE since glibc
2.20[1]. To avoid build warning on glibc2.20, _DEFAULT_SOURCE should
also be defined.

[1]: https://sourceware.org/glibc/wiki/Release/2.20

Change-Id: I13ae76387805fc8844f68dd564a86945bb5fa1cd
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
10 years agoAdd .gbs.conf accepted/tizen/common/20140822.152002 accepted/tizen/ivi/20140827.105133 submit/tizen/20140822.115121 submit/tizen/20141118.083724
Mikko Ylinen [Fri, 22 Aug 2014 11:48:04 +0000 (14:48 +0300)]
Add .gbs.conf

Change-Id: I8142ae6e12e12975e7ed71b53d0ea026a24065ac
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
10 years agopackaging: initial import submit/tizen/20131114.123131 submit/tizen/20131115.135830 submit/tizen_ivi/20140505.094748 submit/tizen_ivi_panda/20140403.012237 submit/tizen_ivi_stable/20131119.033257
Artem Bityutskiy [Thu, 4 Apr 2013 08:19:24 +0000 (11:19 +0300)]
packaging: initial import

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
11 years agoNEWS: document changes in 4.07 syslinux-4.07
Matt Fleming [Thu, 25 Jul 2013 09:28:59 +0000 (10:28 +0100)]
NEWS: document changes in 4.07

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
11 years agoversion: bump version and date
Matt Fleming [Fri, 12 Jul 2013 06:33:21 +0000 (07:33 +0100)]
version: bump version and date

Welcome to the 4.07 release cycle

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
11 years agomenugen: Make it compatible with Py3k
Paulo Alcantara [Sun, 6 Jan 2013 20:36:17 +0000 (18:36 -0200)]
menugen: Make it compatible with Py3k

Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
11 years agoisolinux: Update LBA in getlinsec loop
Matt Fleming [Thu, 10 Jan 2013 21:33:32 +0000 (21:33 +0000)]
isolinux: Update LBA in getlinsec loop

We need to increment the Logical Block Address in eax by the number of
sectors we passed to getlinsec after every invocation, otherwise we'll
start with the same sector everytime.

This bug was discovered when booting an isohybrid image, which failed
to boot after printing the following error,

    "Image checksum error, sorry..."

because the isolinux.bin was bigger than 32K, and thus invoked the
getlinsec loop that reads the file in chunks.

Cc: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
11 years agoMerge branch 'searchdir_leak-406' of git://git.zytor.com/users/sha0/syslinux into...
Matt Fleming [Tue, 4 Dec 2012 13:50:23 +0000 (13:50 +0000)]
Merge branch 'searchdir_leak-406' of git://git.zytor.com/users/sha0/syslinux into stable

Pull a change that fixes a resource leak from Shao Miller,

* 'searchdir_leak-406' of git://git.zytor.com/users/sha0/syslinux:
  fs: Fix searchdir resource leak

11 years agofs: Fix searchdir resource leak
Shao Miller [Fri, 2 Nov 2012 15:59:10 +0000 (11:59 -0400)]
fs: Fix searchdir resource leak

This is a significant rewrite of the generic lookup logic inside
core/fs/fs.c's searchdir function.  Previously, there was a
memory leak if a path involved multiple directories.  After a
sufficiently large number of invocations, this could be observed.

Reported-by: Ady <ady-sf@hotmail.com>
Signed-off-by: Shao Miller <sha0.miller@gmail.com>
12 years agoextlinux: Avoid dereferencing a garbage pointer
Matt Fleming [Fri, 2 Nov 2012 17:02:36 +0000 (17:02 +0000)]
extlinux: Avoid dereferencing a garbage pointer

If opt.reset_adv is set the call to ext_read_adv() is skipped which
would have initialised 'filename'. This means that a pointer
containing random data from the stack is passed to ext_write_adv().

Just delete the opt.reset_adv logic since modify_adv() handles that
case anyway.

Reported-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
12 years agomemdisk: Fix order of sectors/track and bytes/sector syslinux-4.06
Kenneth J. Davis [Mon, 22 Oct 2012 18:20:18 +0000 (19:20 +0100)]
memdisk: Fix order of sectors/track and bytes/sector

Swap order of sectors/track with bytes/sector to match diskette
parameter table order (as pointed to by INT 1Eh).

References: (additional ones available if necessary)
'System BIOS for IBM PC/XT/AT computers and compatibles' by Phoenix
Technologies Ltd. copyright 1987,88,89 3rd printing 1990 ISBN:
0-201-51806-6 pages 61-62
'PC Interrupts' 2nd edition by Ralf Brown & Jim Kyle copyright 1994
1st printing 1993 ISBN: 0-201-62485-0 page 211

Note: this fixes an issue with older FreeDOS kernels that expect this
structure to contain valid values.

Signed-off-by: Kenneth J. Davis <jeremyd@fdos.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
12 years agoNEWS: Document the VFAT relative path fix
Matt Fleming [Mon, 22 Oct 2012 12:39:24 +0000 (13:39 +0100)]
NEWS: Document the VFAT relative path fix

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
12 years agoREADME: Clarify the requirements for utils/isohybrid
Matt Fleming [Mon, 22 Oct 2012 12:02:19 +0000 (13:02 +0100)]
README: Clarify the requirements for utils/isohybrid

Be clear that utils/isohybrid requires the UUID library as well as
/usr/include/uuid/uuid.h.

Reported-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
12 years agoNEWS: Fix some typos
Matt Fleming [Wed, 17 Oct 2012 12:07:07 +0000 (13:07 +0100)]
NEWS: Fix some typos

Reported-by: Ady <ady-sf@hotmail.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
12 years agodoc: minor documentation updates
Vanush "Misha" Paturyan [Wed, 17 Oct 2012 08:54:16 +0000 (09:54 +0100)]
doc: minor documentation updates

syslinux.txt: syslinux binary is in "linux" directory
menu.txt:     menu.c32 and vesamenu.c32 are in com32/menu directory

12 years agoRevert "win: Add -mno-ms-bitfields"
H. Peter Anvin [Mon, 22 Oct 2012 20:44:53 +0000 (13:44 -0700)]
Revert "win: Add -mno-ms-bitfields"

This reverts commit 7d9ee65cc9577eb69782a49a34895ae80820e9ff.

I am concerned that this may cause the Windows ABI header files to be
misinterpreted.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
12 years agoPacked definition: workaround for mingw + gcc 4.7
H. Peter Anvin [Mon, 22 Oct 2012 20:42:31 +0000 (13:42 -0700)]
Packed definition: workaround for mingw + gcc 4.7

__attribute__((packed)) does the wrong thing when in ms-struct
mode; this breaks compiling on mingw-w64.  Therefore force gcc struct
mode when we use packed.

This obsoletes checkin

  7d9ee65 win: Add -mno-ms-bitfields

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
12 years agocomboot: remove comapi_chainboot syslinux-4.06-pre14
Sebastian Herbszt [Sun, 14 Oct 2012 13:38:58 +0000 (15:38 +0200)]
comboot: remove comapi_chainboot

comapi_chainboot was obsoleted in 3.80.

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
12 years agocomboot: fix documentation
Sebastian Herbszt [Sun, 14 Oct 2012 13:38:25 +0000 (15:38 +0200)]
comboot: fix documentation

comapi_shuffle was obsoleted in 3.80.

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
12 years agoREADME: document the need for /usr/include/uuid/uuid.h
Geert Stappers [Fri, 12 Oct 2012 19:36:50 +0000 (21:36 +0200)]
README: document the need for /usr/include/uuid/uuid.h

utils/isohybrid build depends on /usr/include/uuid/uuid.h The package
name varies between distribution families.

12 years agomenu: Disallow navigation to a disabled entry via *any* key
Matt Fleming [Fri, 12 Oct 2012 11:59:32 +0000 (12:59 +0100)]
menu: Disallow navigation to a disabled entry via *any* key

Generalise the fix from commit c823574f53c1 ("menu: Don't highlight
disabled entries") as it only handled the case where we navigated to a
disabled last entry by pressing Ctrl + N or the DOWN arrow
key. Obviously, we can navigate with other keys such as END, PGDN, etc
so we need to handle all cases.

Reported-by: Ady <ady-sf@hotmail.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
12 years agoprdhcp.c32: Turn off DEBUG syslinux-4.06-pre13
Matt Fleming [Thu, 11 Oct 2012 20:18:10 +0000 (21:18 +0100)]
prdhcp.c32: Turn off DEBUG

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
12 years agoMerge branch 'pxechn-fix-news-for-hpa-2' of git://github.com/geneC/syslinux
Matt Fleming [Thu, 11 Oct 2012 20:16:37 +0000 (21:16 +0100)]
Merge branch 'pxechn-fix-news-for-hpa-2' of git://github.com/geneC/syslinux

Conflicts:
NEWS
com32/modules/Makefile

12 years agowin: Add -mno-ms-bitfields
Shao Miller [Thu, 11 Oct 2012 15:59:37 +0000 (11:59 -0400)]
win: Add -mno-ms-bitfields

Recent MinGW GCCs now have -mms-bitfields on by default, but it
appears to break our intentions with __attribute__((packed)).
See GCC bug 52991,

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991

The undesired behaviour was noticed when the win32 installer
had troubles identifying the media type field of a boot sector.

Signed-off-by: Shao Miller <sha0.miller@gmail.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
12 years agoisohybrid: fix isohybrid.c compile
Frediano Ziglio [Fri, 31 Aug 2012 11:00:16 +0000 (12:00 +0100)]
isohybrid: fix isohybrid.c compile

Make isohybrid.c compile on gcc 4.4 32 bit instead of producing the
following error,

isohybrid.c: In function ‘lendian_64’:
isohybrid.c:437: error: integer constant is too large for ‘long’ type

Cc: Matthew Garrett <mjg@redhat.com>
Cc: Michal Soltys <soltys@ziu.info>
Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
12 years agoext2: add additional check to ext2 loader
Frediano Ziglio [Thu, 2 Aug 2012 08:32:36 +0000 (09:32 +0100)]
ext2: add additional check to ext2 loader

Check if a pointer is NULL due to specifying an invalid inode group
number.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
12 years agomboot: fix typo in comment
Frediano Ziglio [Thu, 2 Aug 2012 08:31:23 +0000 (09:31 +0100)]
mboot: fix typo in comment

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
12 years agomake some functions static remove unused NADV define
Frediano Ziglio [Thu, 2 Aug 2012 08:30:04 +0000 (09:30 +0100)]
make some functions static remove unused NADV define

Just some minor cleanup

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
12 years agomenu: Add MENU GOTO support to the MENU DEFAULT parsing code
Matt Fleming [Tue, 9 Oct 2012 12:45:00 +0000 (13:45 +0100)]
menu: Add MENU GOTO support to the MENU DEFAULT parsing code

Tomas reported that the 'test1' submenu in the following config file
snippet doesn't honour the MENU DEFAULT directive,

    MENU BEGIN test0
       MENU START
       LABEL -
       MENU DEFAULT
       MENU LABEL OptionA
       MENU GOTO test1
    MENU END

    MENU BEGIN test1
       LABEL -
       MENU LABEL OptionA1
       MENU GOTO test0
       LABEL -
       MENU DEFAULT
       MENU LABEL OptionB1
       MENU GOTO test0
    MENU END

The reason is that the menu config code doesn't know how to handle a
default item that is a MENU GOTO directive. A trivial addition to the
code in record() fixes this.

Reported-by: Tomas M <tomas@slax.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
12 years agomenu: Don't highlight disabled entries
Matt Fleming [Tue, 9 Oct 2012 12:33:51 +0000 (13:33 +0100)]
menu: Don't highlight disabled entries

There's an off-by-one bug in the menu input handling code which makes
it possible to highlight/select the last entry in a menu even if that
entry is disabled.

It should be noted that you can't actually *do* anything with the
disabled entry, i.e. edit or execute it. Still, allowing it to be
highlighted does look a little strange.

Reported-by: Matt Sephton <matt.sephton@gmail.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
12 years agocom32: Add ifmemdsk.c32 to Makefile
Matt Fleming [Mon, 8 Oct 2012 14:45:46 +0000 (15:45 +0100)]
com32: Add ifmemdsk.c32 to Makefile

... so that it actually gets built. This should have been added to the
Makefile when ifmemdsk.c was created.

Reported-by: Ady <ady-sf@hotmail.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
12 years agoNEWS: Document changes between 4.05 and 4.06 syslinux-4.06-pre12
Matt Fleming [Fri, 13 Jul 2012 14:01:59 +0000 (15:01 +0100)]
NEWS: Document changes between 4.05 and 4.06

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
12 years agoIn the current Lua.c32 DMI implementation, it is a flat table with dotted names in...
Hung-chi Lihn [Sat, 22 Sep 2012 16:25:49 +0000 (18:25 +0200)]
In the current Lua.c32 DMI implementation, it is a flat table with dotted names in table entries. It also misses a number DMI sub-tables.

This patch, cleans up the DMI table structure using Lua's nested table structure and adds all missing DMI sub-tables. If a DMI sub-table is not supported by the hardware (not filled), then the corresponding sub-table will not be generated. This helps to make the table structure cleaner and reflects the actual DMI information.

Signed-off-by: Hung-chi Lihn <hlihn@google.com>
Signed-off-by: Erwan Velu <erwanaliasr1@gmail.com>
12 years agoBug fix: Added the missing entry (boot_from_pcmcia) in struct s_characteristics.
Hung-chi Lihn [Sat, 22 Sep 2012 16:24:25 +0000 (18:24 +0200)]
Bug fix: Added the missing entry (boot_from_pcmcia) in struct s_characteristics.

In bios_charac_strings[] of /com32/gpllib/dmi/dmi_bios.c there are actually 29 entries. However, BIOS_CHAR_NB_ELEMENTS in /com32/gplinclude/dmi/dmi_bios.h was defined as 28 and struct s_characteristics in the same file also only had 28 entries. It turns out that there was a missing entry "boot_from_pcmcia" (the 16th entry representing bit 18) in s_characteristics.

Signed-off-by: Hung-chi Lihn <hlihn@google.com>
Signed-off-by: Erwan Velu <erwanaliasr1@gmail.com>
12 years agoAdded the native syslinux functions config_file(), ipappend_strs(), and reboot()...
Hung-chi Lihn [Sat, 22 Sep 2012 16:23:38 +0000 (18:23 +0200)]
Added the native syslinux functions config_file(), ipappend_strs(), and reboot() to Lua.c32. This allows the Lua script to query the config file name and the ipappend strings (pxelinux only), as well as to perform reboot (warm and cold) to the system.

In Lua.c32, the extension will be used as the following:
  1. syslinux.config_file() will return the config file string.
  2. syslinux.ipappend_strs() will return a table of IPAPPEND strings with numerical indices.
  3. syslinux.reboot() will perform cold reboot, while syslinux.reboot(1) will perform warm reboot.

Signed-off-by: Hung-chi Lihn <hlihn@google.com>
Signed-off-by: Erwan Velu <erwanaliasr1@gmail.com>
12 years agoThe current Lua.c32 does not enable io.read() due to some missing library functions...
Hung-chi Lihn [Sat, 22 Sep 2012 16:22:55 +0000 (18:22 +0200)]
The current Lua.c32 does not enable io.read() due to some missing library functions. However, this strongly limits the Lua script from getting user inputs and reading files (even in pxelinux via TFTP).

This patch enables io.read() in Lua.c32 with some restrictions:
  1. the io.read("*line") is fully supported.
  2. the io.read("*number") is not supported due to the missing buffering in underlying file I/Os. However, the user can read a line using io.read() and convert the string to numbers using the built in pattern matching and number conversion features.
  3. io.read(bytes) is supported. However, io.read(0) will not be a valid test for EOF due to the missing I/O buffering. io.read() will return nil if EOF is encountered. This offers an alternative way to handle EOF.

Signed-off-by: Hung-chi Lihn <hlihn@google.com>
Signed-off-by: Erwan Velu <erwanaliasr1@gmail.com>
12 years agodoc/pxechn.txt: update
Gene Cumm [Sun, 16 Sep 2012 15:19:41 +0000 (11:19 -0400)]
doc/pxechn.txt: update

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
12 years agoNEWS: Adding 'silent' option from HDT
Erwan Velu [Mon, 10 Sep 2012 19:07:14 +0000 (21:07 +0200)]
NEWS: Adding 'silent' option from HDT

12 years agohdt: Release 0.5.2
Erwan Velu [Mon, 10 Sep 2012 19:03:50 +0000 (21:03 +0200)]
hdt: Release 0.5.2

New release with codename Manon

12 years agohdt: Adding Silent mode
Erwan Velu [Mon, 10 Sep 2012 19:02:02 +0000 (21:02 +0200)]
hdt: Adding Silent mode

By using the "silent" option at the cmdline, HDT tries not displaying
any boring message.

This is particulary interesting with the "display" option.

12 years agohdt: Removing remaining printf()
Erwan Velu [Mon, 10 Sep 2012 18:39:37 +0000 (20:39 +0200)]
hdt: Removing remaining printf()

Using more_printf allow to manage more easily several pages printing.

12 years agoNEWS: Updating for HDT & kontron_wdt
Erwan Velu [Mon, 10 Sep 2012 18:26:59 +0000 (20:26 +0200)]
NEWS: Updating for HDT & kontron_wdt

12 years agokontron_wdt: Fixing makefile
Erwan Velu [Mon, 10 Sep 2012 18:21:33 +0000 (20:21 +0200)]
kontron_wdt: Fixing makefile

Typo.

12 years agokontron_wdt: Enforce timeout value if already set
Erwan Velu [Mon, 10 Sep 2012 15:38:16 +0000 (17:38 +0200)]
kontron_wdt: Enforce timeout value if already set

If the watchdog was already engaged, let's rewrite the timeout to insure
the proper value is set.

12 years agokontron_wdt: Adjusting exit path
Erwan Velu [Mon, 10 Sep 2012 15:35:13 +0000 (17:35 +0200)]
kontron_wdt: Adjusting exit path

If we fail, at least let's boot the expected image

12 years agokontron_wdt: Adding watchdog com32 module
Erwan Velu [Mon, 10 Sep 2012 15:05:03 +0000 (17:05 +0200)]
kontron_wdt: Adding watchdog com32 module

When using a Kontron ETX board, it's possible to initialize and start
the watchdog during syslinux booting.

This allow protecting a boot sequence with a defined timeout.

Bootloader is starting, engage the watchdog and then start a default
entry (typically a Linux image).

If the loaded OS, feed or reinitalize the watchdog, nothing occurs
unless the system will reboot

Conflicts:

com32/modules/Makefile

12 years agodoc/pxechn.txt: Fix old example
Gene Cumm [Thu, 6 Sep 2012 22:27:30 +0000 (18:27 -0400)]
doc/pxechn.txt: Fix old example

Command line options changed.

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
12 years agoMerge remote-tracking branch 'hpa/master'
Erwan Velu [Wed, 5 Sep 2012 19:08:39 +0000 (21:08 +0200)]
Merge remote-tracking branch 'hpa/master'

12 years agodoc/pxechn.txt: word wrap
Gene Cumm [Mon, 3 Sep 2012 18:13:11 +0000 (14:13 -0400)]
doc/pxechn.txt: word wrap

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
12 years agodoc/pxechn.txt: Updates for clarity/flow
Gene Cumm [Mon, 3 Sep 2012 17:48:40 +0000 (13:48 -0400)]
doc/pxechn.txt: Updates for clarity/flow

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
12 years agodoc/pxechn.txt: Change title for manpage use.
Gene Cumm [Mon, 3 Sep 2012 17:47:48 +0000 (13:47 -0400)]
doc/pxechn.txt: Change title for manpage use.

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
12 years agoCorrect initialization of the cache doubly-linked list syslinux-4.06-pre11
H. Peter Anvin [Thu, 19 Jul 2012 14:29:55 +0000 (07:29 -0700)]
Correct initialization of the cache doubly-linked list

The initialization of the cache doubly-linked list had
head->next->prev instead of head->prev->next; this entry is supposed
to initialize the ->next entry of the last entry in the list (which
points back to the head node.)

For clarity, consistently use "head" to refer to the head node; the
mixing of "head" and "dev->cache_head" needlessly obfuscated the code.

The wild pointer reference caused crashes on some systems.

Reported-by: Jan Safrata <jsafrata@centrum.cz>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
12 years agolinux.c32: add missing break; syslinux-4.06-pre10
H. Peter Anvin [Fri, 29 Jun 2012 23:23:36 +0000 (16:23 -0700)]
linux.c32: add missing break;

Add missing break; for ENOMEM.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
12 years agolinux.c32: allow loading arbitrary setup_data blobs
H. Peter Anvin [Fri, 29 Jun 2012 23:21:13 +0000 (16:21 -0700)]
linux.c32: allow loading arbitrary setup_data blobs

Allow loading arbitrary setup_data blobs via the syntax
blob.NN=filename where NN is a decimal number.

This also allows loading multiple device tree blobs.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
12 years agosetup_data: if nothing to load and version < 2.09, no harm no foul
H. Peter Anvin [Fri, 29 Jun 2012 22:46:27 +0000 (15:46 -0700)]
setup_data: if nothing to load and version < 2.09, no harm no foul

If the setup_data is empty, it is okay if the version is < 2.09.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
12 years agosetup_data: check to make sure kernel version >= 0x0209
H. Peter Anvin [Fri, 29 Jun 2012 22:43:20 +0000 (15:43 -0700)]
setup_data: check to make sure kernel version >= 0x0209

Versions before 2.09 had no setup_data support.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
12 years agolinux.c32: add support for a device tree blob (dtb)
H. Peter Anvin [Fri, 29 Jun 2012 22:24:02 +0000 (15:24 -0700)]
linux.c32: add support for a device tree blob (dtb)

Based on a patch by Thierry Reding, add support for loading a device
tree blob using the generic setup_data framework.

I used the name dtb= instead of fdt= since it looks like dtb= is the
common acronym for the filenames and what is used in the kernel.

Originally-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
12 years ago<syslinux/linux.h>: add missing setup_data_init() definition
H. Peter Anvin [Fri, 29 Jun 2012 22:23:19 +0000 (15:23 -0700)]
<syslinux/linux.h>: add missing setup_data_init() definition

Missing prototype.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
12 years agoChange fdt-specific loader into a generic setup_data loader
H. Peter Anvin [Fri, 29 Jun 2012 22:16:03 +0000 (15:16 -0700)]
Change fdt-specific loader into a generic setup_data loader

Make it a generic setup_data loader keyed by type.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: Thierry Reding <thierry.reding@avionic-design.de>
12 years agocom32: Add device tree support
Thierry Reding [Thu, 31 May 2012 15:41:35 +0000 (17:41 +0200)]
com32: Add device tree support

This commit adds support for passing a Flattened Device Tree (FDT) blob
to the Linux kernel.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
12 years agofat: Make mangle behavior similar to the standard one
H. Peter Anvin [Fri, 29 Jun 2012 20:57:42 +0000 (13:57 -0700)]
fat: Make mangle behavior similar to the standard one

Handle mangle in FAT the same as in the generic version, except for \
-> / conversion.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
12 years agowin: Use lower-case private definition of STORAGE_DEVICE_NUMBER
H. Peter Anvin [Fri, 29 Jun 2012 20:18:55 +0000 (13:18 -0700)]
win: Use lower-case private definition of STORAGE_DEVICE_NUMBER

Since we can't know if <winioctl.h> actually defines
STORAGE_DEVICE_NUMBER, just use a private definition of the structure
but with a lower-case name.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
12 years agoActually keep track of the pathnames for all elements syslinux-4.06-pre9
H. Peter Anvin [Fri, 29 Jun 2012 02:33:16 +0000 (19:33 -0700)]
Actually keep track of the pathnames for all elements

Actually keep track of the pathnames for all elements for on-disk
filesystems.  This makes sure we can always reconstruct the correct
path.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
12 years agochdir: collapse /./ and /../ in path for conventional filesystems syslinux-4.06-pre8
H. Peter Anvin [Fri, 29 Jun 2012 00:26:19 +0000 (17:26 -0700)]
chdir: collapse /./ and /../ in path for conventional filesystems

For conventional filesystems (i.e. not PXE), collapse /./ and /../ in
the path when doing chdir.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
12 years agowin32: assume STORAGE_DEVICE_NUMBER is defined
H. Peter Anvin [Wed, 27 Jun 2012 15:01:47 +0000 (08:01 -0700)]
win32: assume STORAGE_DEVICE_NUMBER is defined

If using mingw-w64 to build for win32, this will be defined.  This is
confusing, especially since mingw-w64 defined __MINGW32__ but nothing
else... thus hide this definition for now.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
12 years agosyslxopt: fix syntax errors syslinux-4.06-pre7
H. Peter Anvin [Wed, 20 Jun 2012 23:12:29 +0000 (16:12 -0700)]
syslxopt: fix syntax errors

Oops :)

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
12 years agoNEWS: document extlinux --device
H. Peter Anvin [Wed, 20 Jun 2012 23:11:07 +0000 (16:11 -0700)]
NEWS: document extlinux --device

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
12 years agoextlinux: add --device option to override device detect
H. Peter Anvin [Wed, 20 Jun 2012 23:08:53 +0000 (16:08 -0700)]
extlinux: add --device option to override device detect

Add a --device option for scripts and expert users to override the
device detection.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
12 years agoextlinux: centralize and reuse btrfs validation
H. Peter Anvin [Wed, 20 Jun 2012 23:01:43 +0000 (16:01 -0700)]
extlinux: centralize and reuse btrfs validation

We can re-use btrfs device validation now.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
12 years agoextlinux: better methods for finding device matches
H. Peter Anvin [Wed, 20 Jun 2012 00:41:15 +0000 (17:41 -0700)]
extlinux: better methods for finding device matches

1. Support parsing /proc/self/mountinfo for devices;
2. For btrfs, query the device names from btrfs itself.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
12 years agoMerge remote-tracking branch 'hpa/master'
Erwan Velu [Wed, 13 Jun 2012 19:25:55 +0000 (21:25 +0200)]
Merge remote-tracking branch 'hpa/master'

12 years agoMerge remote-tracking branch 'genec/linux-com32-error-message-for-hpa' syslinux-4.06-pre6
H. Peter Anvin [Tue, 12 Jun 2012 02:58:32 +0000 (19:58 -0700)]
Merge remote-tracking branch 'genec/linux-com32-error-message-for-hpa'

12 years agoisohybrid: Fix building with --as-needed
Micah Gersten [Mon, 11 Jun 2012 22:38:20 +0000 (15:38 -0700)]
isohybrid: Fix building with --as-needed

The library link order was wrong.

This patch was picked from Ubuntu.

Reported-and-tested-by: Tim Fletcher <tim@night-shade.org.uk>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
12 years agolinux.c32: Make errors clearer for users
Gene Cumm [Sat, 9 Jun 2012 21:58:20 +0000 (17:58 -0400)]
linux.c32: Make errors clearer for users

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
12 years agobtrfs: Fix booting off a btrfs subvolume.
Alexander E. Patrakov [Mon, 4 Jun 2012 17:59:55 +0000 (23:59 +0600)]
btrfs: Fix booting off a btrfs subvolume.

The subvolume name in path.data is not NUL-terminated, so don't use
strcmp on it.

Before this patch, it would accumulate the following (given
subvolumes with names "ext2_saved", "home", "gentoo" and "boot"):

ext2_saved
home_saved
gentooaved
bootooaved

Signed-off-by: Alexander E. Patrakov <patrakov@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
12 years agoprdhcp.c32: Fix what is retrieved.
Gene Cumm [Sat, 4 Feb 2012 04:14:04 +0000 (23:14 -0500)]
prdhcp.c32: Fix what is retrieved.

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
12 years agoprdhcp.c32: Add to Makefile
Gene Cumm [Sun, 18 Dec 2011 05:15:09 +0000 (00:15 -0500)]
prdhcp.c32: Add to Makefile

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
12 years agoprdhcp.c32: Print DHCP packets
Gene Cumm [Fri, 2 Dec 2011 03:38:08 +0000 (22:38 -0500)]
prdhcp.c32: Print DHCP packets

For PXELINUX, print the generically parsed contents of the DHCP packets
for examining the options used in all 3.  It currently accepts no
options.

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
12 years agodoc/pxechn.txt: add -S, examples, clarify
Gene Cumm [Sat, 2 Jun 2012 03:26:40 +0000 (23:26 -0400)]
doc/pxechn.txt: add -S, examples, clarify

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
12 years agopxechn.c32: add -S to transform sname to siaddr
Gene Cumm [Sat, 2 Jun 2012 01:40:46 +0000 (21:40 -0400)]
pxechn.c32: add -S to transform sname to siaddr

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
12 years agodoc/pxechn.txt: WDS specifics, example, issue
Gene Cumm [Fri, 1 Jun 2012 03:04:43 +0000 (23:04 -0400)]
doc/pxechn.txt: WDS specifics, example, issue

Notes on using the WDS option.  Known issue with gPXE/iPXE

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
12 years agoMerge remote-tracking branch 'hpa/master'
Erwan Velu [Wed, 30 May 2012 19:17:11 +0000 (21:17 +0200)]
Merge remote-tracking branch 'hpa/master'

12 years agorelocs: Move stop to the end
H. Peter Anvin [Tue, 29 May 2012 21:08:11 +0000 (14:08 -0700)]
relocs: Move stop to the end

The Linux kernel puts the stop word at the beginning of the relocation
list (the list is processed backwards); Syslinux puts the stop word at
the beginning of the relocation list (the list is processed forwards.)

Missed that change when syncing with the kernel version.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
12 years agoNEWS: add pxechn.c32
Gene Cumm [Tue, 29 May 2012 21:04:04 +0000 (17:04 -0400)]
NEWS: add pxechn.c32

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
12 years agohdt: Removing builting sleep support in say
Erwan Velu [Tue, 29 May 2012 20:32:14 +0000 (22:32 +0200)]
hdt: Removing builting sleep support in say

If people want to sleep while saying message, they now have to use the
sleep command instead of the previous specific %x syntax.

12 years agohdt: 0.5.2-pre3 release
Erwan Velu [Tue, 29 May 2012 19:46:32 +0000 (21:46 +0200)]
hdt: 0.5.2-pre3 release

12 years agoMerge branch 'master' of git://git.zytor.com/syslinux/syslinux
Erwan Velu [Tue, 29 May 2012 19:45:47 +0000 (21:45 +0200)]
Merge branch 'master' of git://git.zytor.com/syslinux/syslinux

12 years agohdt: Adding sleep command
Erwan Velu [Tue, 29 May 2012 19:14:33 +0000 (21:14 +0200)]
hdt: Adding sleep command

This command will help users getting some delay between two automatic
commands.

As an example, it can be used to show a serie of pictures.

12 years agohdt: Adding display command to change background
Erwan Velu [Tue, 29 May 2012 19:01:17 +0000 (21:01 +0200)]
hdt: Adding display command to change background

This command allow switching the background image. This could be used
for example to give more explicit message to users.

Idea is coming from the FGTC project

12 years agorelocs: sync with the Linux kernel
H. Peter Anvin [Tue, 29 May 2012 08:02:54 +0000 (01:02 -0700)]
relocs: sync with the Linux kernel

Sync the relocs tool with the Linux kernel.  The new version of this
tool correctly verifies that any absolute symbol is either listed as
allowed absolute or is listed as relative.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
12 years agocore: add support for .init/fini_table
H. Peter Anvin [Tue, 29 May 2012 04:39:40 +0000 (21:39 -0700)]
core: add support for .init/fini_table

We don't actually have any constructors/destructors in the core at
this time, but handle .init/fini_table in case that happens...

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
12 years agocom32.ld: handle .init_array and .fini_array syslinux-4.06-pre5
H. Peter Anvin [Tue, 29 May 2012 04:28:52 +0000 (21:28 -0700)]
com32.ld: handle .init_array and .fini_array

Handle constructors/destructors via .init_array and .fini_array, as
generated by newer gccs.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
12 years agopxechn: Turn off debug
Gene Cumm [Mon, 28 May 2012 22:16:19 +0000 (18:16 -0400)]
pxechn: Turn off debug

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
12 years agoMerge remote-tracking branch 'hdt/master' syslinux-4.06-pre4
H. Peter Anvin [Sun, 27 May 2012 19:57:21 +0000 (12:57 -0700)]
Merge remote-tracking branch 'hdt/master'

12 years agoMerge remote-tracking branch 'genec/diag-mbr-fix-for-hpa'
H. Peter Anvin [Sun, 27 May 2012 19:57:01 +0000 (12:57 -0700)]
Merge remote-tracking branch 'genec/diag-mbr-fix-for-hpa'

12 years agodiag/mbr: Clarify README
Gene Cumm [Sun, 27 May 2012 18:13:05 +0000 (14:13 -0400)]
diag/mbr: Clarify README

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
12 years agoUpdate diag/mbr instruction to match the current filename.
Jean-Christian de Rivaz [Sat, 26 May 2012 22:26:42 +0000 (00:26 +0200)]
Update diag/mbr instruction to match the current filename.

I suspect that some instructions about how to use the diag/mbr was not
updated when the source file was renamed to handoff.S. Here is a simple
proposition to fix that only into the handoff.S file.

Jean-Christian de Rivaz

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
12 years agopxechn.c32: PXE NBP chainloader
Gene Cumm [Sun, 27 May 2012 13:23:07 +0000 (09:23 -0400)]
pxechn.c32: PXE NBP chainloader

Designed as a more versatile COM32-based alternative to pxechain.com.
It can use the PXE RESTART or chain to the new NBP without the PXE
stack.  It also enables a user to boot Microsoft Windows Server 2008R2
Windows Deployment Services's wdsnbp.com from PXELINUX.

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
12 years agoCOM32: add DHCP pack/unpack functions
H. Peter Anvin [Tue, 14 Jun 2011 01:16:46 +0000 (21:16 -0400)]
COM32: add DHCP pack/unpack functions

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
12 years agohdt: 0.5.2-pre2 release
Erwan Velu [Sun, 27 May 2012 09:59:25 +0000 (11:59 +0200)]
hdt: 0.5.2-pre2 release