aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* hdt: fix sizeof(char *) misuseJonathan Boeing2015-05-031-89/+89
| | | | | | | | | | | | The code was passing sizeof(char *) - not the length of the buffer - to memset. Change the function to take the length of the buffer as a parameter. Fixes the warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to provide an explicit length? Signed-off-by: Jonathan Boeing <jonathan.n.boeing@gmail.com>
* gpllib: fix sizeof(char *) misuseJonathan Boeing2015-05-031-10/+14
| | | | | | | | | | | | The code was passing sizeof(char *) - not the length of the buffer - to strlcpy and snprintf. Change the function to take the length of the buffer as a parameter. Fixes the warning: argument to 'sizeof' in 'snprintf' call is the same expression as the destination; did you mean to provide an explicit length? Signed-off-by: Jonathan Boeing <jonathan.n.boeing@gmail.com>
* pxe: fix truncation warningJonathan Boeing2015-05-031-1/+1
| | | | | | | | When building efi64, there's a size mismatch between the uint32_t variable (32 bits) and the -1UL (64 bits). This fixes the warning: large integer implicitly truncated to unsigned type Signed-off-by: Jonathan Boeing <jonathan.n.boeing@gmail.com>
* Use z width specifier when printing size_t variableJonathan Boeing2015-05-031-1/+1
| | | | | | | Fixes the warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'size_t' Signed-off-by: Jonathan Boeing <jonathan.n.boeing@gmail.com>
* add missing '\n' to dprintfJonathan Boeing2015-05-031-2/+2
| | | | Signed-off-by: Jonathan Boeing <jonathan.n.boeing@gmail.com>
* fix a few typosJonathan Boeing2015-05-033-3/+3
| | | | Signed-off-by: Jonathan Boeing <jonathan.n.boeing@gmail.com>
* com32/lib/syslinux/load_linux.c: update prot_mode_baseScot Doyle2015-04-181-0/+1
| | | | | | | | | | | | | | | | | If the kernel is relocatable and the protected mode code will not fit in the initially determined location, that code will be moved to the next available location. However, beginning with commit 8f470e7b, the code is moved to the initially determined location instead of the next available location because prot_mode_base is no longer updated to the correct location. Since whdr->code32_start is updated, it is pointing to the wrong execution start location, random code is executed and the machine is rebooted. Restore the old behavior by assigning prot_mode_base the value of base. Tested on a machine that exposed this behavior. Signed-off-by: Scot Doyle <lkml14@scotdoyle.com> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* chain: year update in commments (trivial)Gene Cumm2015-03-1511-11/+11
| | | | | Signed-off-by: Michal Soltys <soltys@ziu.info> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* chain/partiter: add options to ignore GPT crc checksMichal Soltys2015-03-154-23/+57
| | | | | | | | This can be useful to force boot even if checksums of GPT header and/or partition list are invalid. This works independently from 'strict' option. Signed-off-by: Michal Soltys <soltys@ziu.info>
* chain/partiter: call notsane_gpt_hdr() per headerMichal Soltys2015-03-151-48/+48
| | | | | | | | | | | | Instead of calling it just once after the examination of both headers (the 2nd one only if necessary) - call it per each header during examination. Thus in unlikely situation of passing crc check on primary gpt header and at the same time failing sanity checks, it will also try backup header. Signed-off-by: Michal Soltys <soltys@ziu.info>
* diag/geodsp/: Remove geodsp1s_f.img.xz image from target; CopyrightGene Cumm2015-02-224-5/+5
| | | | | | | It's relatively simple to just apply the geodsp1s_f.bin force drive 80h after applying the plain geodsp1s.img.xz Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* core/diskboot.inc: spellingGene Cumm2015-02-161-1/+1
| | | | | | Remove 1 spelling error Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* diag/geodsp/Makefile: lib; _f alternateGene Cumm2015-02-161-3/+7
| | | | | | | Move library dependendcies to a variable; Add another _f (Force DL == 80h) variant. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* diag/geodsp: updateGene Cumm2015-02-163-74/+113
| | | | | | | | Print drive number at start. Print '!' before data when an error is encountered (but continue). Several macros to change codesize. Code refactoring to reduce size. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* diag/geodsp: Update README with a sampleGene Cumm2015-02-151-0/+24
| | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* diag/geodsp: mk-lba-img.pl misdirects a status messageGene Cumm2015-02-151-1/+1
| | | | | | | mk-lba-img.pl misdirects a status message about len/tail such that it hits stdout (which may be our file) instead of stderr. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* load_linux: correct a typeScot Doyle2015-02-141-2/+2
| | | | | | | | Correct base's type to match its initialization from prot_mode_base and passage to syslinux_memmap_find(). Tested with extlinux. Signed-off-by: Scot Doyle <lkml14@scotdoyle.com> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* Merge remote-tracking branch 'u-gh-wferi/pub'Gene Cumm2015-02-145-341/+329
|\ | | | | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| * lua: simplify the function/value handling in the automenu testFerenc Wágner2014-10-131-10/+7
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: move the automenu test from the boot_linux to the boot_it bindingFerenc Wágner2014-10-131-5/+18
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: return the modified object from the initramfs methodsFerenc Wágner2014-10-132-4/+8
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: refresh and extend the documentationFerenc Wágner2014-10-131-128/+93
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: initramfs: enable adding nonempty filesFerenc Wágner2014-10-131-4/+11
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: don't do a local boot when asked to final_cleanupFerenc Wágner2014-10-131-2/+1
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: do not leak initramfs data chunks on garbage collectionFerenc Wágner2014-10-131-0/+16
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: make initramfs structures full userdata objects with methodsFerenc Wágner2014-10-131-25/+43
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: unused optional arguments can goFerenc Wágner2014-10-121-10/+0
| | | | | | | | | | | | Not expecting them does not cause any problems, they are ignored by Lua anyway. Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: make the file operations methodsFerenc Wágner2014-10-121-2/+7
| | | | | | | | | | | | This also enables manual unloading of files by callig f:__gc(). Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: garbage collect file objectsFerenc Wágner2014-10-121-0/+15
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: represent syslinux files as full userdataFerenc Wágner2014-10-121-21/+13
| | | | | | | | | | | | | | | | | | Light userdata don't have individual metatables, thus they aren't suitable for type checking. Also, a200ad6d replaced relying on reused memory (from luaL_checkstring) with writing to uninitialized pointers; copy the filename instead into freshly allocated memory. Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: Remove even more cruft from syslinux.cFerenc Wágner2014-10-121-44/+2
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: condense the PCI exampleFerenc Wágner2014-10-111-29/+6
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: remove printf from loadfile exampleFerenc Wágner2014-10-111-10/+3
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: loadfile() is not TFTP-specificFerenc Wágner2014-10-111-1/+1
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * libansi.h: depends on stdbool.h and stdio.hFerenc Wágner2014-10-111-0/+3
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: remove overall indentation and some verbose cruft from the examplesFerenc Wágner2014-10-111-104/+99
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: bring documentation up to dateFerenc Wágner2014-10-111-31/+42
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: vesa: delete stray would-be-debug outputFerenc Wágner2014-10-111-2/+0
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: add new bindings to syslinux.ascFerenc Wágner2014-10-111-1/+21
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: docs: do not reference removed exampleFerenc Wágner2014-10-111-1/+0
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: share the export macro (CPP only change)Ferenc Wágner2014-10-111-39/+39
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: add the IMAGE_TYPE table to the syslinux moduleFerenc Wágner2014-10-111-0/+13
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
| * lua: make kernel and initrd progress output match in sl_boot_linuxFerenc Wágner2014-10-111-4/+4
| | | | | | | | Signed-off-by: Ferenc Wágner <wferi@niif.hu>
* | txt/syslinux.txt: --onceAdy2015-01-051-1/+1
| | | | | | | | | | | | remove mention of the deprecated "-o" option Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | txt/syslinux.txt: updatesAdy2015-01-051-10/+12
| | | | | | | | | | | | | | | | | | | | Correct typos. Improve format for asciidoc-to-manpage conversion. Wrap text. Correct info. Help phase-out deprecated and/or conflicting options. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | check-gnu-efi.sh: print the output of build-gnu-efi.shRobert Yang2015-01-051-1/+1
| | | | | | | | | | | | | | | | | | The build would be failed and exit if build-gnu-efi.sh is failed, so we'd better not suppress the output of build-gnu-efi.sh, which is good for debugging. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | efi: prevent git command in non-git tree #2Gene Cumm2015-01-051-1/+3
| | | | | | | | | | | | efi/clean-gnu-efi.sh presumes it's in a git repo. Test first. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | efi: prevent git command in non-git treeErwan Velu2015-01-051-1/+3
| | | | | | | | | | | | efi/build-gnu-efi.sh presumes it's in a git repo. Test first. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | txt/syslinux.cfg.txt: Fix SYSAPPEND FSUUIDGene Cumm2015-01-051-4/+6
| | | | | | | | | | | | Reflow for proper AsciiDoc formatting. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
* | com32: Use z size specifier for printf-ing size_t variableMartin Str|mberg2015-01-056-8/+8
| | | | | | | | | | | | | | | | | | Use the z size specifier to printf-ing size_t variables to get rid of gcc warning format ‘%08x’ expects type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ Author: Martin Str|mberg <ams@ludd.ltu.se> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>