aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules
Commit message (Collapse)AuthorAgeFilesLines
* chain.c: part_info -> partinfosyslinux-3.85-pre11H. Peter Anvin2010-02-131-1/+1
| | | | Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* chain.c32: add option to set hidden sectors; load boot sector for NTLDRH. Peter Anvin2010-02-131-66/+134
| | | | | | | 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>
* chain.c32: Handle nonlinear logical partitionssyslinux-3.85-pre3H. Peter Anvin2010-01-271-5/+8
| | | | | | | | | | | 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>
* chain.c32: simplify the grub4dos supportH. Peter Anvin2010-01-101-13/+9
| | | | | | | 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>
* chain.c32: add grldr= command for Grub4dosKim Mik2010-01-101-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* chain.c32: stylistic comments/usage output changesKim Mik2009-12-281-2/+2
| | | | | | | | | Comments fix and usage output corrected for chain.c32 - Gert Hulselmans Signed-off-by: Gert Hulselmans <kimmik999999@yahoo.co.uk> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* chain.c: do a proper copy operation for the cmldr signatureH. Peter Anvin2009-12-281-9/+14
| | | | | | | Instead of writing into memory that we might not own, create a proper copy operation using syslinux_add_movelist(). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* chain.c32: add support for booting the Recovery Console of Windows NT/2K/XPKim Mik2009-12-281-0/+17
| | | | | | | | | | | | | | The following patch for chain.c32 adds support to boot the Recovery Console of Windows NT/2K/XP. Normally when you want to boot the recovery console, you need to patch "cmdcons\0" into the bootsectorof the partition (8 bytes starting at 0x3 (4th byte)). We can do this patching in memory: strcpy((char *) 0x7c03, "cmdcons"); To boot the recovery console with chain.c32: chain.c32 cmldr=/cmldr - Gert Hulselmans
* chain.c32: fixing implicit declaration of function ↵Kim Mik2009-12-281-0/+1
| | | | | | | | | | | | | | | | | | ‘syslinux_force_text_mode’ When building chain.c32: $ make chain.c32 gcc -Wp,-MT,chain.o,-MD,./..chain.o.d -std=gnu99 -m32 -fno-stack-protector -mregparm=3 -DREGPARM=3 -march=i386 -Os -W -Wall -march=i386 -fomit-frame-pointer -D__COM32__ -nostdinc -iwithprefix include -I../../com32/libutil/include -I../../com32/include -I../../com32/gplinclude -c -o chain.o chain.c chain.c: In function ‘do_boot’: chain.c:552: warning: implicit declaration of function ‘syslinux_force_text_mode’ ld -m elf_i386 -T ../../com32/lib/com32.ld -o chain.elf chain.o ../../com32/libutil/libutil_com.a ../../com32/gpllib/libcom32gpl.a ../../com32/lib/libcom32.a /usr/lib/gcc/i486-linux-gnu/4.4.1/libgcc.a objcopy -O binary chain.elf chain.c32 The following was missing: #include <syslinux/video.h> - Gert Hulselmans
* chain.c32: force text modeH. Peter Anvin2009-12-181-0/+3
| | | | | | When loading an unknown system, revert to text mode first. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* dmi: dmitest have to use voltage_mvErwan Velu2009-12-041-1/+1
| | | | | | Impact: fixing build error Processor is now using voltage_mv
* Adding ifcpu.c32, removing ifcpuhvmErwan Velu2009-12-043-91/+166
| | | | | | | Impact: ifcpu holds more cases ifcpu allow users defining a set of required cpu features for booting an entry
* com32: Avoid gpxe detection code duplicationErwan Velu2009-12-042-104/+2
| | | | | | Impact: avoid code duplication This will make code more generic, hdt will need it ;)
* Fixing comments on ifcpu64/ifcpuhvmErwan Velu2009-12-042-2/+2
| | | | | | Impact: Fixing typo Fixing typo
* Adding ifcpuhvm.c32Erwan Velu2009-12-042-1/+91
| | | | | | | Impact: new module to boot hvm systems This module allow users to define a boot entry regarding if the cpu is supporting hvm (vmx|svm). This could used to boot xen, or any hypervisor
* pcitest: fix wrong statements about file locationSebastian Herbszt2009-11-241-6/+3
| | | | | | | Impact: Visual The module tries to access the files in the current directory. So this patch fixes the error message accordingly.
* Merge commit 'sha0/chain_isolinux'H. Peter Anvin2009-11-051-3/+116
|\
| * [chain] Run Nindent on chain.cShao Miller2009-10-291-33/+28
| |
| * [chain] Add support for chain-loading another isolinux.binGert Hulselmans2009-10-291-0/+118
| | | | | | | | | | Add 'isolinux=' option to chain.c32 for chain-loading another isolinux.bin.
* | dmi: Adding smbios detectionErwan Velu2009-10-301-1/+1
|/ | | | | | | | Impact: Avoid misdetection of dmi version On some hosts, the legacy DMI version is reported as 0.0. We can use SMBIOS to get the real version. Solves HDT's ticket #8
* Improving chain.c32 help messageGert Hulselmans2009-10-271-1/+12
| | | | | | | Impact: Error message is more detailed In case of syntax error, the message is far more detailed and provides the same content as the documentation integrated in the source code.
* chain: missing some \n one error messagesErwan Velu2009-09-291-4/+4
| | | | | | | | Impact: visual Some \n where missing in some error() calls Signed-off-by: Gert Hulselmans <kimmik999999@yahoo.co.uk>
* Adding VMX & SVM cpu flagsErwan Velu2009-09-291-0/+4
| | | | | | Impact: Hardware virtualization is now detected Minor update to detect vmx & svm cpu flags
* gpxecmd: module to send an arbitrary command to gPXEsyslinux-3.83-pre11H. Peter Anvin2009-09-102-4/+141
| | | | | | | Simple module to send an arbitrary command to gPXE, assuming the gPXE CLI API is available. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Merge commit 'hpa/master' into for-erwanPierre-Alexandre Meyer2009-08-0424-3535/+1934
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: com32/cmenu/libmenu/com32io.h com32/gplinclude/dmi/dmi.h com32/gplinclude/dmi/dmi_base_board.h com32/gplinclude/dmi/dmi_memory.h com32/gplinclude/dmi/dmi_system.h com32/gpllib/dmi/dmi.c com32/gpllib/dmi/dmi_memory.c com32/include/sys/pci.h com32/lib/pci/scan.c com32/modules/Makefile Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * Merge commit 'syslinux-3.83-pre1'H. Peter Anvin2009-07-271-2/+1
| |\ | | | | | | | | | | | | | | | | | | Conflicts: com32/modules/chain.c Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * chain.c32: set DL properly when loaded from ISOLINUXH. Peter Anvin2009-07-231-2/+1
| | | | | | | | | | | | | | | | | | | | | When loaded from ISOLINUX, we still have a valid boot drive. Set it! This permits the use of chainloaded boot loaders. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Run Nindent on com32/modules/vpdtest.cH. Peter Anvin2009-05-291-22/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/vpdtest.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Run Nindent on com32/modules/vesainfo.cH. Peter Anvin2009-05-291-47/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/vesainfo.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Run Nindent on com32/modules/sdi.cH. Peter Anvin2009-05-291-124/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/sdi.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Run Nindent on com32/modules/sanboot.cH. Peter Anvin2009-05-291-71/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/sanboot.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Run Nindent on com32/modules/reboot.cH. Peter Anvin2009-05-291-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/reboot.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Run Nindent on com32/modules/pmload.cH. Peter Anvin2009-05-291-124/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/pmload.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Run Nindent on com32/modules/pcitest.cH. Peter Anvin2009-05-291-68/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/pcitest.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Run Nindent on com32/modules/meminfo.cH. Peter Anvin2009-05-291-78/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/meminfo.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Run Nindent on com32/modules/linux.cH. Peter Anvin2009-05-291-137/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/linux.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Run Nindent on com32/modules/kbdmap.cH. Peter Anvin2009-05-291-29/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/kbdmap.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Run Nindent on com32/modules/ifcpu64.cH. Peter Anvin2009-05-291-56/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/ifcpu64.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Run Nindent on com32/modules/ethersel.cH. Peter Anvin2009-05-291-127/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/ethersel.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Run Nindent on com32/modules/elf.cH. Peter Anvin2009-05-291-183/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/elf.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Run Nindent on com32/modules/dmitest.cH. Peter Anvin2009-05-291-132/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/dmitest.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Run Nindent on com32/modules/dmi_utils.cH. Peter Anvin2009-05-291-31/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/dmi_utils.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Run Nindent on com32/modules/cpuidtest.cH. Peter Anvin2009-05-291-47/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/cpuidtest.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Run Nindent on com32/modules/config.cH. Peter Anvin2009-05-291-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/config.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Run Nindent on com32/modules/cmd.cH. Peter Anvin2009-05-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/cmd.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Run Nindent on com32/modules/chain.cH. Peter Anvin2009-05-291-563/+574
| |/ | | | | | | | | | | | | | | | | Automatically reformat com32/modules/chain.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * chain.c32: remove clobber of drivename/partitionH. Peter Anvin2009-05-211-3/+0
| | | | | | | | | | | | | | | | Remove a clobber of drivename and partition, after we have spent time computing what the should have been... Reported-by: Luciano Miguel Ferreira Rocha <strange@nsk.no-ip.org> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * meminfo: distinguish between no flags and flags=1syslinux-3.81-pre7H. Peter Anvin2009-05-201-5/+10
| | | | | | | | | | | | | | For debugging reasons it's important to know if we have no flags at all or if we get flags = 1. Print [-] in the case of no flags at all. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * linux.c32: replace the kernel name with BOOT_IMAGE=syslinux-3.81-pre2H. Peter Anvin2009-05-051-13/+10
| | | | | | | | | | | | | | | | | | The BOOT_IMAGE= argument is generated by replacing the kernel name in the argument array. As a result, we shouldn't advance argp. Move the code around slightly, to make it more obvious that that is what is happening. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * linux.c32: honor the "quiet" flagH. Peter Anvin2009-05-051-6/+34
| | | | | | | | | | | | | | Honor the "quiet" flag for linux.c32, since some distros have odd notions about these things. Signed-off-by: H. Peter Anvin <hpa@zytor.com>