profile/ivi/syslinux.git
15 years agomemdisk: align .bss to a 16-byte boundary for better zeroing perf
H. Peter Anvin [Tue, 17 Mar 2009 02:20:02 +0000 (19:20 -0700)]
memdisk: align .bss to a 16-byte boundary for better zeroing perf

Some CPUs really want a reasonable alignment for a rep;stosl, so give
it to them...

15 years agomemdisk: zero the .bss section
H. Peter Anvin [Tue, 17 Mar 2009 02:17:57 +0000 (19:17 -0700)]
memdisk: zero the .bss section

It is just too confusing to have a .bss section that isn't zeroed, to
explicitly zero it.

15 years agomemdisk: move the floppy disk geometry code in parallel with the MBR code
H. Peter Anvin [Tue, 17 Mar 2009 02:05:03 +0000 (19:05 -0700)]
memdisk: move the floppy disk geometry code in parallel with the MBR code

Move the floppy disk geometry generation code into parallel with the
MBR code, which pretty much mimics the previous behavior.

15 years agomemdisk: don't key FAT vs MBR on the type of disk
H. Peter Anvin [Tue, 17 Mar 2009 01:50:36 +0000 (18:50 -0700)]
memdisk: don't key FAT vs MBR on the type of disk

We can't rely on the disk type to say if this is FAT vs MBR, since we
haven't determined that yet.  Thus, move the FAT test up before the
MBR test; both are heuristic, but the FAT test has much less
probability of false positives, and can be further tightened if
needed.

15 years agoSYSLINUX: fix handling of .bss files for FAT12/FAT16
H. Peter Anvin [Mon, 16 Mar 2009 23:16:39 +0000 (16:16 -0700)]
SYSLINUX: fix handling of .bss files for FAT12/FAT16

The size of the superblock is different for FAT12/FAT16 and FAT32.  We
should only copy the relevant portions of the superblock over.
Technically speaking, it is possible for FAT12/FAT16 to have an older,
smaller superblock as well (without the 0x29 boot signature); we don't
handle that at the moment.

15 years agoMerge commit 'hdt/master' syslinux-3.74-pre6
H. Peter Anvin [Mon, 16 Mar 2009 20:21:04 +0000 (13:21 -0700)]
Merge commit 'hdt/master'

15 years agomemdisk: auto-detect large floppy geometry if it is FAT
H. Peter Anvin [Mon, 16 Mar 2009 20:18:49 +0000 (13:18 -0700)]
memdisk: auto-detect large floppy geometry if it is FAT

If a "large floppy" image is formatted with a FAT filesystem, we can
use the headers in the FAT image to derive the geometry.  This is nice
and user-friendly, so do it that way.

15 years agoisolinux: split MaxTransfer for HD and CD modes
H. Peter Anvin [Mon, 16 Mar 2009 16:24:02 +0000 (09:24 -0700)]
isolinux: split MaxTransfer for HD and CD modes

The MaxTransfer for CD modes has to be smaller than for HD modes to
avoid 64K overrun (even though in theory it's permitted, we don't
trust it.)  Thus have separate variables for HD and CD modes.

15 years agohdt: Improving vesa output
Erwan Velu [Mon, 16 Mar 2009 15:23:47 +0000 (16:23 +0100)]
hdt: Improving vesa output

Impact: Use proper words to be better understood by users

Cosmetic fix.

15 years agohdt: Adding missing install target
Erwan Velu [Mon, 16 Mar 2009 15:20:28 +0000 (16:20 +0100)]
hdt: Adding missing install target

Impact: Allow the build process to complete properly

The install: target was missing and prevented the global make install to
end properly

15 years agohdt: Uploading missing vesa files
Erwan Velu [Sun, 15 Mar 2009 19:34:48 +0000 (20:34 +0100)]
hdt: Uploading missing vesa files

The vesa files were missing

15 years agoMerge branch 'master' of git://git.kernel.org/pub/scm/boot/syslinux/syslinux
Erwan Velu [Sun, 15 Mar 2009 19:28:23 +0000 (20:28 +0100)]
Merge branch 'master' of git://git./boot/syslinux/syslinux

15 years agohdt: Command-line arguments should be const
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 23:51:56 +0000 (16:51 -0700)]
hdt: Command-line arguments should be const

Impact: Fix compilation warnings, signatures changes.

argc and argv should be const.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Force cast when dereferencing menu->disk_sub_menu
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 23:36:09 +0000 (16:36 -0700)]
hdt: Force cast when dereferencing menu->disk_sub_menu

Impact: Fix compilation warning.

A cast is necessary in compute_disks.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Fix irq references
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 23:24:37 +0000 (16:24 -0700)]
hdt: Fix irq references

Impact: Fix build compilation

d213082d76a24d3ba2e033416891a170b39c1ded moved irq to dev_info struct.
Make the changes accordingly.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agocmd.c32: simplify by passing the unparsed command line
H. Peter Anvin [Sat, 14 Mar 2009 23:18:44 +0000 (16:18 -0700)]
cmd.c32: simplify by passing the unparsed command line

Instead of parsing and unparsing the command line, just pass the raw
command line the way we already have it.

15 years agohdt: Remove unused parameter in handle_vesa_commands
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 23:04:43 +0000 (16:04 -0700)]
hdt: Remove unused parameter in handle_vesa_commands

Impact: Signature change.

The cli mode information is already in the function name. No need to pass it
as a parameter.

Note: The file hdt-cli-vesa is missing for the tree. This change will need to
be propagated once the file is integrated.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: find_argument should return a const char*
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 22:58:36 +0000 (15:58 -0700)]
hdt: find_argument should return a const char*

Impact: Fix compilation warning, signature change.

Handle command line arguments as const. This fixes a compilation
warning.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Honor syslinux_version const qualifier
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 22:52:09 +0000 (15:52 -0700)]
hdt: Honor syslinux_version const qualifier

Impact: Fix compilation warning

syslinux_version returns a const pointer to a syslinux_version struct.
This fixes a compilation warning.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Fix duplicate struct entry
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 22:32:46 +0000 (15:32 -0700)]
hdt: Fix duplicate struct entry

Impact: fix compilation error

An entry was accidentally added twice in s_pxe causing the build to
fail.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Make compute_memory_module static
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 20:47:17 +0000 (13:47 -0700)]
hdt: Make compute_memory_module static

Impact: None.

compute_memory_module is only used in hdt-menu-dmi.c. Let's make it
static.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Make compute_pci_device static
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 20:44:27 +0000 (13:44 -0700)]
hdt: Make compute_pci_device static

Impact: None.

compute_pci_device is only used in hdt-menu-pci.c. Let's make it static.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Remove unused cli_mode parameter
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 19:59:11 +0000 (12:59 -0700)]
hdt: Remove unused cli_mode parameter

Impact: Signatures changes.

Uniform the main_show_* signatures by removing the parameter cli_mode from
main_show_dmi. The call to do_exit has been removed (it was useless anyway).

This allowed us to remove the cli_mode parameter from handle_hdt_commands
as well.

This change fixes all compilation warnings related to the cli.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Make main_show_summary static
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 19:49:08 +0000 (12:49 -0700)]
hdt: Make main_show_summary static

Impact: None.

main_show_summary is only used in hdt-cli.c. Let's make it static.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Remove unused parameters in start_cli_mode
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 19:46:29 +0000 (12:46 -0700)]
hdt: Remove unused parameters in start_cli_mode

Impact: Signature change.

argc and argv aren't used in start_cli_mode. This fixes 2 compilation
warnings.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Make show_cli_help static
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 19:43:44 +0000 (12:43 -0700)]
hdt: Make show_cli_help static

Impact: None.

show_cli_help is only used in hdt-cli.c. Let's make it static.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Make handle_hdt_commands static
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 19:39:43 +0000 (12:39 -0700)]
hdt: Make handle_hdt_commands static

Impact: None.

handle_hdt_commands is only used in hdt-cli.c. Let's make it static.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Make set_mode static
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 19:38:42 +0000 (12:38 -0700)]
hdt: Make set_mode static

Impact: None.

set_mode is only used in hdt-cli.c. Let's make it static.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Make pci_show static
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 18:58:31 +0000 (11:58 -0700)]
hdt: Make pci_show static

Impact: None.

pci_show is only used in hdt-cli-pci.c. Let's make it static.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Remove unused parameter in handle_pci_commands
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 18:57:16 +0000 (11:57 -0700)]
hdt: Remove unused parameter in handle_pci_commands

Impact: Signature change.

The cli mode information is already in the function name. No need to pass it
as a parameter. This fixes a compilation warning.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Make show_pci_devices static
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 18:54:34 +0000 (11:54 -0700)]
hdt: Make show_pci_devices static

Impact: None.

show_pci_devices is only used in hdt-cli-pci.c. Let's make it static.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Make show_pci_help static
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 18:53:01 +0000 (11:53 -0700)]
hdt: Make show_pci_help static

Impact: None.

show_pci_help is only used in hdt-cli-pci.c. Let's make it static.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Remove unused variables in main_show_pci
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 18:51:33 +0000 (11:51 -0700)]
hdt: Remove unused variables in main_show_pci

Impact: Cleanups.

This fixes 8 compilation warnings.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Make most dmi helpers static
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 18:47:03 +0000 (11:47 -0700)]
hdt: Make most dmi helpers static

Impact: None.

Most of the dmi helpers are only used in hdt-cli-dmi.c. Let's make them
static.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Remove unused parameter in handle_dmi_commands
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 18:38:10 +0000 (11:38 -0700)]
hdt: Remove unused parameter in handle_dmi_commands

Impact: Signature change.

The cli mode information is already in the function name. No need to pass it
as a parameter. This fixes a compilation warning.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Make show_dmi_help static
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 18:34:37 +0000 (11:34 -0700)]
hdt: Make show_dmi_help static

Impact: None.

show_dmi_help is only used in hdt-cli-dmi.c. Let's make it static.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Remove unused parameter in main_show_cpu
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 18:31:29 +0000 (11:31 -0700)]
hdt: Remove unused parameter in main_show_cpu

Impact: Signature change.

The cli mode information is already in the function name. No need to pass it
as a parameter. This fixes a compilation warning.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Make show_cpu_help static
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 18:28:57 +0000 (11:28 -0700)]
hdt: Make show_cpu_help static

Impact: None.

show_cpu_help is only used in hdt-cli-cpu.c. Let's make it static.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Remove unused parameter in handle_cpu_commands
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 18:27:15 +0000 (11:27 -0700)]
hdt: Remove unused parameter in handle_cpu_commands

Impact: Signature change.

The cli mode information is already in the function name. No need to pass it
as a parameter. This fixes a compilation warning.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Make cpu_show static
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 18:25:10 +0000 (11:25 -0700)]
hdt: Make cpu_show static

Impact: None.

cpu_show is only used in hdt-cli-cpu.c. Let's make it static.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Make pxe_show static
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 18:18:09 +0000 (11:18 -0700)]
hdt: Make pxe_show static

Impact: None.

pxe_show is only used in hdt-cli-pxe.c. Let's make it static.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Remove unused parameter in main_show_pxe
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 18:16:46 +0000 (11:16 -0700)]
hdt: Remove unused parameter in main_show_pxe

Impact: Signature change.

The cli mode information is already in the function name. No need to pass it
as a parameter. This fixes a compilation warning.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Remove unused parameter in handle_pxe_commands
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 18:13:47 +0000 (11:13 -0700)]
hdt: Remove unused parameter in handle_pxe_commands

Impact: Signature change.

The cli mode information is already in the function name. No need to pass it
as a parameter. This fixes a compilation warning.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Make show_pxe_help static
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 18:10:51 +0000 (11:10 -0700)]
hdt: Make show_pxe_help static

Impact: None.

show_pxe_help is only used in hdt-cli-pxe.c. Let's make it static.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Remove unused variables
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 18:08:07 +0000 (11:08 -0700)]
hdt: Remove unused variables

Impact: Cleanups.

first_line and second_line are not used. This fixes compilation
warnings.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Remove unused variable
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 18:02:49 +0000 (11:02 -0700)]
hdt: Remove unused variable

Impact: Cleanups.

i is not used.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Remove unused parameter in handle_kernel_commands
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 18:01:31 +0000 (11:01 -0700)]
hdt: Remove unused parameter in handle_kernel_commands

Impact: Signature change.

The cli mode information is already in the function name. No need to pass it
as a parameter. This fixes a compilation warning.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Remove unused parameter in main_show_kernel
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 17:57:49 +0000 (10:57 -0700)]
hdt: Remove unused parameter in main_show_kernel

Impact: Signature change.

The cli mode information is already in the function name. No need to pass it
as a parameter. This fixes a compilation warning.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Make show_kernel_help static
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 17:55:55 +0000 (10:55 -0700)]
hdt: Make show_kernel_help static

Impact: None.

show_kernel_help is only used in hdt-cli-kernel.c. Let's make it static.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Make show_kernel_modules static
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 17:54:41 +0000 (10:54 -0700)]
hdt: Make show_kernel_modules static

Impact: None.

show_kernel_modules is only used in hdt-cli-kernel.c. Let's make it
static.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Small indentation fix in hdt-cli-syslinux.c
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 17:52:05 +0000 (10:52 -0700)]
hdt: Small indentation fix in hdt-cli-syslinux.c

Impact: Cleanups.

Align argument with the previous one.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Make show_syslinux_help static
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 17:50:28 +0000 (10:50 -0700)]
hdt: Make show_syslinux_help static

Impact: None.

show_syslinux_help is only used in hdt-cli-syslinux.c. Let's make it
static.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Remove unused parameter in handle_syslinux_commands
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 17:48:53 +0000 (10:48 -0700)]
hdt: Remove unused parameter in handle_syslinux_commands

Impact: Signature change.

The cli mode information is already in the function name. No need to pass it
as a parameter. This fixes a compilation warning.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Make syslinux_show static
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 17:42:05 +0000 (10:42 -0700)]
hdt: Make syslinux_show static

Impact: None.

syslinux_show is only used in hdt-cli-syslinux.c. Let's make it static
then.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Remove unused parameter main_show_syslinux
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 17:39:36 +0000 (10:39 -0700)]
hdt: Remove unused parameter main_show_syslinux

Impact: Signature change.

The cli mode information is already in the function name
'main_show_syslinux'. No need to pass it as a parameter. This fixes a
compilation warning.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Fix indentation in header files
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 17:31:46 +0000 (10:31 -0700)]
hdt: Fix indentation in header files

Impact: Cleanups.

Fix indentation in all *.h files by sticking to the Linux style (indent
-linux), using 2 spaces for indentation.

Misc.: Corrected typos in comments, wrapped to 80 characters

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Fix indentation in source files
Pierre-Alexandre Meyer [Sat, 14 Mar 2009 17:13:59 +0000 (10:13 -0700)]
hdt: Fix indentation in source files

Impact: Cleanups.

Fix indentation in all *.c files by sticking to the Linux style (indent
-linux), using 2 spaces for indentation.

Misc.: Corrected typos in comments, wrapped to 80 characters.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Fixing syslinux entry
Erwan Velu [Sat, 14 Mar 2009 15:37:15 +0000 (16:37 +0100)]
hdt: Fixing syslinux entry

We have to select the syslinux menu via "y"

15 years agohdt: Adding vesa detection
Erwan Velu [Sat, 14 Mar 2009 15:34:01 +0000 (16:34 +0100)]
hdt: Adding vesa detection

Bump to version 0.2.4
VESA BIOS is now detected.
vendor/product/revision & available modes are displayed
cli now have a "vesa>" context with provides both "list" & "modes"
command.
The menu mode features a new VESA entry and display the same info.

15 years agovesa: fixing wrong total_memory size
Erwan Velu [Sat, 14 Mar 2009 15:30:00 +0000 (16:30 +0100)]
vesa: fixing wrong total_memory size

Regarding the vesa spec, total_memory is reported to be 16bits
That 32bits field had shifted the whole structure and prevented
reading other fields properly.

15 years agohdt: Adding PCI latency
Erwan Velu [Sat, 14 Mar 2009 07:29:16 +0000 (08:29 +0100)]
hdt: Adding PCI latency

Adding the pci latency information

15 years agohdt: irq have to be in dev_info
Erwan Velu [Sat, 14 Mar 2009 07:17:39 +0000 (08:17 +0100)]
hdt: irq have to be in dev_info

Moving irq stuff to the dev_info structure to keep coherent

15 years agohdt: Adding legacy IRQ stuff
Erwan Velu [Fri, 13 Mar 2009 22:38:39 +0000 (23:38 +0100)]
hdt: Adding legacy IRQ stuff

In the cli mode, the pci context feature the following :
pci> show irq

Under cli, "pci> show device <x>" display the IRQ when device features one.
The menu mode behave the same way.

15 years agoMakefile: add com32/hdt/*.c32 to list of installables syslinux-3.74-pre5
H. Peter Anvin [Fri, 13 Mar 2009 04:46:48 +0000 (21:46 -0700)]
Makefile: add com32/hdt/*.c32 to list of installables

Add com32/hdt/*.c32 to the list of installables, thereby making
hdt.c32 an installable.

15 years agoNEWS: Add hdt.c32 as a new feature
H. Peter Anvin [Fri, 13 Mar 2009 04:27:22 +0000 (21:27 -0700)]
NEWS: Add hdt.c32 as a new feature

15 years agoMerge branch 'hdt'
H. Peter Anvin [Fri, 13 Mar 2009 04:26:39 +0000 (21:26 -0700)]
Merge branch 'hdt'

15 years agocmd.c32: use strpcpy() instead of sprintf() syslinux-3.74-pre4
H. Peter Anvin [Fri, 13 Mar 2009 04:23:54 +0000 (21:23 -0700)]
cmd.c32: use strpcpy() instead of sprintf()

Make the cmd.c32 module a lot smaller (and avoid a warning) by using
strpcpy() instead of sprintf().

15 years agolibcom32: add strpcpy()
H. Peter Anvin [Fri, 13 Mar 2009 04:23:02 +0000 (21:23 -0700)]
libcom32: add strpcpy()

Add strpcpy() -- by analogy with mempcpy(), a strcpy() which returns a
pointer to the end of the string (specifically, to the final null.)

15 years agoUpdate the cpuid.h license header
H. Peter Anvin [Fri, 13 Mar 2009 04:14:36 +0000 (21:14 -0700)]
Update the cpuid.h license header

15 years agoMoving dmi & cpuid stuff to gpl subdirs
Erwan Velu [Thu, 12 Mar 2009 21:40:38 +0000 (22:40 +0100)]
Moving dmi & cpuid stuff to gpl subdirs

Fixing copyrights
Moving dmi includes to gplinclude/dmi
Moving dmi code to gpllib/dmi/
Moving cpuid includes to gplinclude/
Moving cpuid code to gpllib/
Fixing Makefiles accordingly

15 years agogpllib: fix path to gpllib
H. Peter Anvin [Thu, 12 Mar 2009 21:16:16 +0000 (14:16 -0700)]
gpllib: fix path to gpllib

15 years agogpllib: fix the NOGPL logic
H. Peter Anvin [Thu, 12 Mar 2009 21:15:23 +0000 (14:15 -0700)]
gpllib: fix the NOGPL logic

Fix the logic for when we should be enabling the GPL library.

15 years agocom32/gpllib: clean up Makefile structure
H. Peter Anvin [Thu, 12 Mar 2009 20:57:11 +0000 (13:57 -0700)]
com32/gpllib: clean up Makefile structure

15 years agolinux.c32: fix initrd alignment
H. Peter Anvin [Thu, 12 Mar 2009 20:50:03 +0000 (13:50 -0700)]
linux.c32: fix initrd alignment

Impact: fix boot failure on Dell E6500 and possibly other platforms

Linux may not be able to access a part of an initrd which resides in a
page that is part RAM, part non-RAM.  Make sure we round the end of
the memory range we want to use down to a page boundary (as well as
round the start up.)

Reported-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoAdd gpllib, gplinclude
H. Peter Anvin [Thu, 12 Mar 2009 18:39:57 +0000 (11:39 -0700)]
Add gpllib, gplinclude

Add separate gpllib and gplinclude directories, and have a NOGPL
variable in MCONFIG that can be set to exclude these directories.

15 years agoUpdate gPXE to version 0.9.7 syslinux-3.74-pre3
H. Peter Anvin [Thu, 12 Mar 2009 02:46:35 +0000 (19:46 -0700)]
Update gPXE to version 0.9.7

15 years agoNEWS: update to match current reality
H. Peter Anvin [Thu, 12 Mar 2009 02:38:37 +0000 (19:38 -0700)]
NEWS: update to match current reality

Update the NEWS file to match what is on the current branch.

15 years agorunkernel: when computing initrd address, skip fractional pages
H. Peter Anvin [Thu, 12 Mar 2009 00:47:38 +0000 (17:47 -0700)]
runkernel: when computing initrd address, skip fractional pages

Make sure no part of the initrd extends into memory that is in a
fractional page at the end of memory.  The kernel may not be able to
map such a fractional page, and therefore will be unable to access
that memory.

15 years agohdt: adding booting parameters to hdt
Erwan Velu [Wed, 11 Mar 2009 20:31:14 +0000 (21:31 +0100)]
hdt: adding booting parameters to hdt

modules_pcimap_path=<path> option allow to
ovverride the modules.pcimap path. Default was "/"

pciids_path=<path> option allow to
override the pci.ids path. Default was "/"

Bump to 0.2.3

15 years agoPCI: flexible modules.pcimap & pci.ids paths
Erwan Velu [Wed, 11 Mar 2009 20:28:25 +0000 (21:28 +0100)]
PCI: flexible modules.pcimap & pci.ids paths

While detecting the pci names, class name & kernel modules, it's
better to let the user choosing the path instead of the harcoded value
"/" is not always the wanted path

15 years agohdt: Fixing kernel mode
Erwan Velu [Wed, 11 Mar 2009 20:25:58 +0000 (21:25 +0100)]
hdt: Fixing kernel mode

The kernel have to exit if pci.ids or modules.pcimap is missing
The kernel mode was lacking of a help message on "show"

15 years agoisohdpfx: remove stray jmpw *%si
H. Peter Anvin [Wed, 11 Mar 2009 04:28:24 +0000 (21:28 -0700)]
isohdpfx: remove stray jmpw *%si

Remove a stay jmpw *%si which was a test instruction and wasn't meant
to have been checked in.

15 years agomdiskchk: fix and update the boot loader name table
H. Peter Anvin [Mon, 9 Feb 2009 10:35:48 +0000 (11:35 +0100)]
mdiskchk: fix and update the boot loader name table

Fix and update the list of boot loaders in mdiskchk.

15 years agoshuffler: more corrections to shuffle buffer assignment
H. Peter Anvin [Tue, 10 Mar 2009 21:54:45 +0000 (14:54 -0700)]
shuffler: more corrections to shuffle buffer assignment

We really need to be able to allocate the shuffle buffer itself...

15 years agoshuffler: fix the handling of more than one block of descriptors
H. Peter Anvin [Tue, 10 Mar 2009 21:36:36 +0000 (14:36 -0700)]
shuffler: fix the handling of more than one block of descriptors

When allocating more than one block of descriptors, make sure we
account for all the memory used correctly.  Otherwise, very bad things
happen.

15 years agohdt: fixing wrong PXELINUX checks
erwan [Mon, 9 Mar 2009 15:24:15 +0000 (16:24 +0100)]
hdt: fixing wrong PXELINUX checks

Tests were inverted :(

15 years agodoc/menu.txt: remove stray colon
H. Peter Anvin [Sun, 8 Mar 2009 23:04:33 +0000 (16:04 -0700)]
doc/menu.txt: remove stray colon

15 years agomenu.txt: document SHA-2 passwords
H. Peter Anvin [Sun, 8 Mar 2009 23:03:46 +0000 (16:03 -0700)]
menu.txt: document SHA-2 passwords

15 years agohdt: removing useless else
erwan [Sun, 8 Mar 2009 19:16:50 +0000 (20:16 +0100)]
hdt: removing useless else

Based on Andy's suggestions, this else are clearly useless

15 years agohdt: adding syslinux mode in cli
erwan [Sun, 8 Mar 2009 10:43:52 +0000 (11:43 +0100)]
hdt: adding syslinux mode in cli

cli mode now offer a syslinux mode to display :
version
product
copyright

15 years agohdt: preventing pxe mode being reach w/o pxelinux
erwan [Sun, 8 Mar 2009 10:26:03 +0000 (11:26 +0100)]
hdt: preventing pxe mode being reach w/o pxelinux

If the current bootloader isn't pxelinux, the pxe
mode mustn't be available in the cli mode
The syslinux detection have been refactorised too

15 years agoImproving help
erwan [Sat, 7 Mar 2009 14:58:16 +0000 (15:58 +0100)]
Improving help

15 years agohdt: Adding summary in menu mode
erwan [Wed, 4 Mar 2009 16:05:51 +0000 (17:05 +0100)]
hdt: Adding summary in menu mode

Adding a summary in the menu mode

15 years agohdt: Cleaning DMI implementation
erwan [Tue, 3 Mar 2009 07:45:53 +0000 (08:45 +0100)]
hdt: Cleaning DMI implementation

Previous commit was incomplete.
Removing useless warnings by defining structures & functions properly
Using existing types instead of u8,u16,u32

15 years agohdt:Cleaning DMI implementation
erwan [Mon, 2 Mar 2009 22:31:25 +0000 (23:31 +0100)]
hdt:Cleaning DMI implementation

Removing useless warnings by defining structures & functions properly
Using existing types instead of u8,u16,u32

15 years agoMove complex menu to com32/cmenu; clean up the Makefiles
H. Peter Anvin [Mon, 2 Mar 2009 18:51:25 +0000 (10:51 -0800)]
Move complex menu to com32/cmenu; clean up the Makefiles

Move the complex menu system into the com32 directory so it can be
sequenced properly with respect to hdt (it needs to be built after
com32/lib but before com32/hdt).  While we're at it, clean up the
Makefiles somewhat.

15 years agoMerge branch 'master' into hdt
H. Peter Anvin [Mon, 2 Mar 2009 18:42:44 +0000 (10:42 -0800)]
Merge branch 'master' into hdt

15 years agoMerge commit 'erwan-hdt/master' into hdt
H. Peter Anvin [Mon, 2 Mar 2009 18:40:49 +0000 (10:40 -0800)]
Merge commit 'erwan-hdt/master' into hdt

15 years agodoc: documented Ctrl-N keystroke from PXELINUX syslinux-3.74-pre2
Vicente Jimenez Aguilar [Wed, 11 Feb 2009 19:25:52 +0000 (20:25 +0100)]
doc: documented Ctrl-N keystroke from PXELINUX

Documented Ctrl-N keystroke from PXELINUX

15 years agosyslinux.txt: documented TAB keystroke
Vicente Jimenez Aguilar [Wed, 11 Feb 2009 19:24:55 +0000 (20:24 +0100)]
syslinux.txt: documented TAB keystroke

Documented TAB keystroke in syslinux.txt