summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* NEWS: add lua.c32luaH. Peter Anvin2010-07-011-0/+1
| | | | Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* lua: update for Syslinux 4Geert Stappers2010-07-012-6/+16
| | | | Update the lua code to work with Syslinux 4.
* Merge branch 'master' into luaH. Peter Anvin2010-07-011726-80866/+204145
|\ | | | | | | | | | | | | Resolved Conflicts: com32/Makefile Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * MCONFIG: add -Wno-error to .lnx filesH. Peter Anvin2010-07-011-1/+1
| | | | | | | | | | | | | | Again, .lnx files are test vehicles... erroring out due to warnings makes no sense. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * MCONFIG: .lnx files are for testing, don't do _FORTIFY_SOURCEH. Peter Anvin2010-07-011-1/+2
| | | | | | | | | | | | | | | | .lnx files are strictly a testing vehicle. It makes absolutely no sense to enforce the often rather arbitrary rules of _FORTIFY_SOURCE on those, so override the default _FORTIFY_SOURCE setting. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * ifplop.c32: Detect if PLoP USB/CD INT13h hook is enabled/disabledGert Hulselmans2010-07-013-1/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New module which detects if the PLoP Boot Loader already has booted a CDROM or USB drive by checking for the presence of the PLoP INT13h hook. The following assembly code (NASM) can detect the PLoP INT13h hook: mov eax,'PoLP' ; Reverse of 'PLoP' mov ebp,'DKHC' ; Reverse of 'CHKD' int 13h cmp eax,' sey' ; Reverse of 'yes ' jz plop_INT13h_active Signed-off-by: Gert Hulselmans <gerth@zytor.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * Merge branch 'master' of ssh://terminus.zytor.com/pub/git/syslinux/syslinuxH. Peter Anvin2010-07-012-55/+72
| |\
| | * NEWS: document changes to the CD-ROM initialization sequencesyslinux-4.01-pre1H. Peter Anvin2010-07-011-0/+3
| | | | | | | | | | | | Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * core, diskio: skip EDD/CHS detect for CD-ROMsH. Peter Anvin2010-07-011-53/+59
| | | | | | | | | | | | | | | | | | | | | | | | Skip EDD and CHS detection if we know it is a CD-ROM, because some CD-ROMs possibly report bad information, and/or screw up the stack, possibly permanently. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| | * core, diskio: move dprintfs to the intended locationH. Peter Anvin2010-07-011-4/+6
| | | | | | | | | | | | | | | | | | Move the dprintfs to the location that they were intended to use. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * core, diskio: put the error code in dprintf and printable messagesH. Peter Anvin2010-07-011-2/+8
| | | | | | | | | | | | | | | | | | | | | When we print an error message to the screen, include the error number. Furthermore, dprintf it on retries. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | mboot.h: use <dprintf.h>H. Peter Anvin2010-06-291-7/+1
| |/ | | | | | | | | | | Use <dprintf.h> like more and more of the system does... Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * NEWS: beginning of a 4.01 NEWS fileH. Peter Anvin2010-06-291-0/+6
| | | | | | | | Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * diskstart: don't let the function number clobber the LBAH. Peter Anvin2010-06-291-3/+7
| | | | | | | | | | | | | | | | | | The LBA for getonesec and getlinsec is in EDX:EAX, but both DL and AX are function inputs to INT 13h (drive number and function number). We need to preserve the LBA across *both* those, otherwise retries will not function. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * isolinux: don't clobber DX (DL!) on startupH. Peter Anvin2010-06-291-6/+6
| | | | | | | | | | | | DL contains the initial drive number, don't clobber it! Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * isolinux: make sure Hidden is zero in native El Torito modeH. Peter Anvin2010-06-291-10/+12
| | | | | | | | | | | | | | | | | | | | In native El Torito mode, there is no such thing as a partition offset. Make sure that we set Hidden to zero -- we don't use Hidden (yet, although the ebios and cdrom code should be merged!) but we pass it to the PM code, which will produce *really* wrong results... Reported-by: Helmut Hullen <Hullen@t-online.de> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * core, diskio: add a few dprintf()'sH. Peter Anvin2010-06-291-7/+22
| | | | | | | | | | | | | | Add a handful of dprintf's to make it easier to debug disk I/O failures. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * version: next version in 4.01H. Peter Anvin2010-06-281-1/+1
| | | | | | | | | | | | 4.00 is out, start work on 4.01... Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * Merge remote branch 'debian/daniel'H. Peter Anvin2010-06-282-3/+11
| |\
| | * Updating description in syslinux manpage wrt/ default entries as of syslinux ↵Daniel Baumann2010-06-251-3/+9
| | | | | | | | | | | | >= 3.85.
| | * Adding note about extlinux.conf in extlinux manpage.Daniel Baumann2010-06-251-0/+2
| | |
| * | Merge remote branch 'sha0/newness'syslinux-4.00H. Peter Anvin2010-06-281-0/+8
| |\ \
| | * | NEWS: Document mdiskchk.com and eltorito.sys changesShao Miller2010-06-281-0/+8
| | | |
| * | | config.c32: accept an optional new directoryH. Peter Anvin2010-06-281-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Accept an optional new directory to config.c32, just as we permit for the CONFIG statement. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * | | diskio: hard-code CD-ROM sectors to 2048 bytesH. Peter Anvin2010-06-281-1/+12
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | At least the ThinkPad T22 and T23 will incorrectly report a sector size of 512 bytes for El Torito CD-ROMs. Ignore the reported sector size for El Torito boots. Reported-by: Helmut Hullen <hullen@t-online.de> Tested-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * | NEWS: document MENU IMMEDIATEH. Peter Anvin2010-06-281-0/+2
| | |
| * | NEWS: document isohybrid.cH. Peter Anvin2010-06-281-1/+3
| | | | | | | | | | | | Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * | NEWS: document ifcpu*.c32 fixH. Peter Anvin2010-06-281-0/+1
| | | | | | | | | | | | Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * | NEWS: Fixing HDT, adding ifcpu changesErwan Velu2010-06-281-1/+3
| | |
| * | NEWS: first cut of a NEWS file for 4.00H. Peter Anvin2010-06-281-3/+41
| | | | | | | | | | | | Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * | core, chdir: collapse slashes, avoid copy-to-selfsyslinux-4.00-pre64H. Peter Anvin2010-06-271-11/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Collapse multiple slashes into one (this still doesn't resolve . and .. in the path, since that requires awareness of symlinks.) This code also avoids a copy-over-self bug by introducing a temporary buffer. Reported-by: Gene Cumm <gene.cumm@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Merge remote branch 'sha0/gert_chain'H. Peter Anvin2010-06-271-6/+19
| |\ \
| | * | chain.c32: pass partition number to stage2 of Grub LegacyGert Hulselmans2010-06-271-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Grub Legacy stage2 will read the install_partition variable from memory address 0x8208. We only need to change the value at 0x820a to the correct partition number: -1: whole drive (default) 0-3: primary partitions 4-*: logical partitions Signed-off-by: Gert Hulselmans <gerth@zytor.com>
| | * | chain.c32: only pass partition number in DH, when grldr= is usedGert Hulselmans2010-06-271-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add grldr= as boot parameter, so the partition number is only passed to grub4dos grldr, when grldr= is used. Currently the partition number is passed in DH unconditionally. As consequence, grldr will set its root partition on which is searches its menu.lst to (hd0), because -1 (whole drive) is passed in DH as root partition: chain.c32 file=/grldr When the conditional check, this problem is solved: chain.c32 file=/grldr Grub4dos will search all partitions for its menu.lst When you want to set the root partition, use something like the following: chain.c32 hd0,2 grldr=/grldr chain.c32 fs grldr=/grldr Signed-off-by: Gert Hulselmans <gerth@zytor.com>
| * | | rosh: update for Syslinux 4 and make it more usableGene Cumm2010-06-272-344/+733
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Without further adieu, I would like to announce that I've finally pushed ROSH, the Read-Only SHell, finally to the point of being reasonably usable. Signed-off-by: Gene Cumm <gene.cumm@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Merge remote branch 'sha0/gert_chain'H. Peter Anvin2010-06-271-21/+25
| |\ \
| | * | chain.c32: add keeppxe to usage output and cleanup commentsGert Hulselmans2010-06-271-21/+25
| | | | | | | | | | | | | | | | | | | | Add keeppxe to usage output. Cleanup some comments.
| * | | <linux/loop.h>: deal with really ancient Linux kernel headersH. Peter Anvin2010-06-271-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | RHEL4 had a 2.6.9 kernel, but 2.4.20 Linux kernel headers, so put in a workaround for 2.4 kernel headers. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | | libinstaller: include <linux/loop.h>H. Peter Anvin2010-06-271-0/+90
| |/ / | | | | | | | | | | | | | | | | | | Some versions of glibc have broken versions of <linux/loop.h>, so include our own canned version. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Export the 64-bit partition offset and use it in chain.cH. Peter Anvin2010-06-275-14/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When used with the "fs" option to chain.c32, we need to know our own filesystem offset. That means knowing if we used the MBR vs GPT partition information, as well as if we ended up using the passed-in information or not. Resolve this by providing an explicit pointer to the current partition offset. Eventually this should be replaced by some kind of statfs() call. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | isohdpfx: update to the new !GPT protocolH. Peter Anvin2010-06-271-3/+5
| | | | | | | | | | | | | | | | | | Update the check for !GPT to match the updated protocol (with length). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | diskstart: if no partition info is available, use bsHiddensyslinux-4.00-pre63H. Peter Anvin2010-06-261-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we have no partition information available, use the bsHidden field (which is set by the extlinux installer in the case of non-FAT). This gives at least a hope of working correctly (for < 2 TiB disks, at least) with the stock Vista/Win7 MBR. Also, add a check for partition type != 0. This helps catch the case when DS:SI points into all-zero memory. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Update .gitignoreH. Peter Anvin2010-06-261-0/+3
| | |
| * | extlinux: set bsHidden for loop devicesH. Peter Anvin2010-06-262-5/+15
| | | | | | | | | | | | | | | | | | | | | If we are on a loop device, set bsHidden based on the loopback device offset. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | PM getcwd(); Fix COM32 getcwdGene Cumm2010-06-265-21/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | Implement getcwd() in the core; Fix COM32 getcwd() to use the new function. This resolves the previous comment about COM32 getcwd() not working by not using INT 22h AX=001Fh. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | core: move PartInfo back to the top of stackH. Peter Anvin2010-06-261-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | Move PartInfo back to near the top of the stack. This makes it less likely that it ends up getting overwritten during the act of copying itself. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | syslinux.ld: remove redundant definition of STACK32_LENH. Peter Anvin2010-06-261-2/+0
| | | | | | | | | | | | | | | | | | STACK32_LEN is already defined in layout.inc. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | menu: add MENU HELPH. Peter Anvin2010-06-264-4/+43
| | | | | | | | | | | | | | | | | | | | | Add a feature to display fullscreen help via menu selection entry (inspired by the Debian install disc menus.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | core, fs: eliminate recursion in put_inode()H. Peter Anvin2010-06-261-5/+4
| | | | | | | | | | | | | | | | | | | | | We don't actually need recursion in put_inode(), so replace recursion with a loop. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | chain.c32: fix handover to a logical partitionH. Peter Anvin2010-06-261-48/+65
| | | | | | | | | | | | | | | | | | | | | | | | Make sure the handover information to a logical partition is adjusted correctly -- we can't just hand over the partition entry, but we have to adjust start_lba to match the real start LBA. Signed-off-by: H. Peter Anvin <hpa@zytor.com>