profile/ivi/syslinux.git
14 years agomemdisk: Use boot_lba logic for booting an offset within the disk image
Shao Miller [Fri, 20 Nov 2009 01:49:34 +0000 (20:49 -0500)]
memdisk: Use boot_lba logic for booting an offset within the disk image

We have two fundamental quantities: the offset of the disk image
itself and the LBA from which we boot.  Keep them straight.  This
should make at least some no-emulation isos work correctly.

Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agomemdisk: Restore DL for INT 13h, AH=15h, DL=floppy syslinux-3.84-pre4
Shao Miller [Fri, 20 Nov 2009 01:20:33 +0000 (20:20 -0500)]
memdisk: Restore DL for INT 13h, AH=15h, DL=floppy

At least PC-DOS requires this to avoid an infinite loop; the DL we
restore is not the same DL that we call the underlying BIOS with, but
rather the original one (before the decrement.)  PC-DOS loops over all
the floppies and relies on the call preserving DL in order to advance
the loop.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoopen: close the file descriptor if the file fails to open
H. Peter Anvin [Fri, 20 Nov 2009 01:17:36 +0000 (17:17 -0800)]
open: close the file descriptor if the file fails to open

Close the file descriptor (freeing the file structure) when opening a
file fails.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agodprintf: fix uninitialized pointer; return void
H. Peter Anvin [Fri, 20 Nov 2009 00:52:11 +0000 (16:52 -0800)]
dprintf: fix uninitialized pointer; return void

Fix an uninitialized pointer bug; return void rather than returning
int like normal printfs... if we're depending on the return value of a
debugging function we're screwed when debugging is disabled.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agodprintf: fix dprintf() and vdprintf()
H. Peter Anvin [Thu, 19 Nov 2009 23:33:58 +0000 (15:33 -0800)]
dprintf: fix dprintf() and vdprintf()

Fix incorrect prototype for vdprintf() used in dprintf(), masked by
the non-use of the header file.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agomenu: debugging hooks
H. Peter Anvin [Thu, 19 Nov 2009 19:10:54 +0000 (11:10 -0800)]
menu: debugging hooks

Add (disabled) debugging hooks to the menu system.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agodprintf: a generic debug-to-serial infrastructure
H. Peter Anvin [Thu, 19 Nov 2009 19:10:00 +0000 (11:10 -0800)]
dprintf: a generic debug-to-serial infrastructure

Actually provide real infrastructure for debug-to-serial.  Very
useful when debugging fullscreen applications, especially under an
emulator like Qemu.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoMerge branch 'master' into memdisk-iso syslinux-3.84-pre3
H. Peter Anvin [Tue, 17 Nov 2009 05:05:23 +0000 (21:05 -0800)]
Merge branch 'master' into memdisk-iso

14 years agoisohybrid: make the -offset option actually work
H. Peter Anvin [Tue, 17 Nov 2009 02:21:37 +0000 (18:21 -0800)]
isohybrid: make the -offset option actually work

Actually implement the -offset option.  Credit for the patch goes to
"cmdr from the gparted-forum", reported by
Sven-Hendrik Haase <sh@lutzhaase.com>.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoMerge branch 'memdisk-iso-SAFE' into memdisk-iso
Shao Miller [Mon, 16 Nov 2009 10:36:06 +0000 (10:36 +0000)]
Merge branch 'memdisk-iso-SAFE' into memdisk-iso

Conflicts:

memdisk/memdisk_chs.asm
memdisk/memdisk_edd.asm
memdisk/setup.c

Resolved:

Deleted memdisk/memdisk_chs.asm
Deleted memdisk/memdisk_edd.asm
Modified memdisk/setup.c

14 years agomboot.c32: fix the video mode selection algorithm
H. Peter Anvin [Sat, 14 Nov 2009 05:03:12 +0000 (21:03 -0800)]
mboot.c32: fix the video mode selection algorithm

Make the video mode selection algorithm do what was intended...

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agomboot.c32: add VESA mode setting support syslinux-3.84-pre2
H. Peter Anvin [Sat, 14 Nov 2009 04:16:43 +0000 (20:16 -0800)]
mboot.c32: add VESA mode setting support

Add VESA mode setting support per the Multiboot specification.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoMerge branch 'master' of ssh://terminus.zytor.com/pub/git/syslinux/syslinux
H. Peter Anvin [Sat, 14 Nov 2009 03:18:57 +0000 (19:18 -0800)]
Merge branch 'master' of ssh://terminus.zytor.com/pub/git/syslinux/syslinux

14 years agodos: int 25/26 may be register-dirty; wrap them in assembly
H. Peter Anvin [Fri, 13 Nov 2009 21:40:35 +0000 (13:40 -0800)]
dos: int 25/26 may be register-dirty; wrap them in assembly

int 25h and int 26h are known to be register-dirty for some versions
of DOS -- unlike int 21h, which is usually clean.  As such, wrap those
in assembly functions.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agodos: don't add the linker script twice on the ld command line
H. Peter Anvin [Thu, 12 Nov 2009 00:29:53 +0000 (16:29 -0800)]
dos: don't add the linker script twice on the ld command line

My version of the linker can deal with it, but others might not be so
smart.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agodos: drop unneeded .eh_frame section
H. Peter Anvin [Thu, 12 Nov 2009 00:28:20 +0000 (16:28 -0800)]
dos: drop unneeded .eh_frame section

gcc will produce an .eh_frame section, which we have no use for.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agodos: always try the FAT32-aware direct I/O calls first
H. Peter Anvin [Thu, 12 Nov 2009 00:05:34 +0000 (16:05 -0800)]
dos: always try the FAT32-aware direct I/O calls first

Always try the FAT32-aware direct I/O calls before trying the legacy
raw I/O calls.  The reason for doing this is that the FAT32 stuff may
be implemented as an add-on.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agodos: DOS version 7.10 is 0x070a, not 0x0710...
H. Peter Anvin [Wed, 11 Nov 2009 23:52:37 +0000 (15:52 -0800)]
dos: DOS version 7.10 is 0x070a, not 0x0710...

Fix DOS version 7.10 (first FAT32-capable version) check.

Perhaps we should just call the FAT32 calls blindly and fall back to
the old calls if they fail?

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoNEWS: merged hdt 0.3.5 syslinux-3.84-pre1
H. Peter Anvin [Wed, 11 Nov 2009 07:53:30 +0000 (23:53 -0800)]
NEWS: merged hdt 0.3.5

14 years agoMerge commit 'hdt-0.3.5'
H. Peter Anvin [Wed, 11 Nov 2009 07:52:46 +0000 (23:52 -0800)]
Merge commit 'hdt-0.3.5'

14 years agoversion: next version on this branch will be 3.84
H. Peter Anvin [Wed, 11 Nov 2009 07:51:54 +0000 (23:51 -0800)]
version: next version on this branch will be 3.84

14 years agoNEWS: document fix for DOS installer
H. Peter Anvin [Wed, 11 Nov 2009 07:51:15 +0000 (23:51 -0800)]
NEWS: document fix for DOS installer

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agodos: fix the soft-locking loop
H. Peter Anvin [Wed, 11 Nov 2009 07:50:10 +0000 (23:50 -0800)]
dos: fix the soft-locking loop

Code the soft-locking loop correctly.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agodos: try to handle both raw DOS mode and Windows mode
H. Peter Anvin [Wed, 11 Nov 2009 07:43:19 +0000 (23:43 -0800)]
dos: try to handle both raw DOS mode and Windows mode

The locking API works very different in raw DOS mode and in Windows
mode.  The hierarchial locking is only available in the latter mode;
in the former mode we can only use levels 0 and 4.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agodos: make DOS installer work under WinME
H. Peter Anvin [Wed, 11 Nov 2009 06:09:14 +0000 (22:09 -0800)]
dos: make DOS installer work under WinME

At least under WinME, the DOS installer did not work as advertised.
With these modifications, it seems to work okay.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agohdt: iso/floppy have to be quiet
Erwan Velu [Mon, 9 Nov 2009 10:04:41 +0000 (11:04 +0100)]
hdt: iso/floppy have to be quiet

Impact: Quieten output of hdt

By default, the provided iso/floppies are now quieter.
This will increase the readibility of HDT's output

14 years agopci: Removing useless initialisation
Erwan Velu [Mon, 9 Nov 2009 09:44:58 +0000 (10:44 +0100)]
pci: Removing useless initialisation

Impact: None

The kernel module count is set to zero when the dev_info is allocated.

14 years agopci: Prevent kernel modules to be listed twice
Erwan Velu [Mon, 9 Nov 2009 09:42:10 +0000 (10:42 +0100)]
pci: Prevent kernel modules to be listed twice

Impact: Prevent duplicated modules

If both get_module_name_from_pcimap() &  get_module_name_from_alias()
are called, we didn't checked if the module we are detecting already got
detected. This leads to a situation where modules got listed twice.

This patch add a test to insure that we aren't adding an already
detected module.

14 years agohdt: 0.3.5
Erwan Velu [Sun, 8 Nov 2009 20:52:07 +0000 (21:52 +0100)]
hdt: 0.3.5

Impact: new release

New release : 0.3.5

14 years agocmenu: Increasing limits
Erwan Velu [Sun, 8 Nov 2009 20:38:36 +0000 (21:38 +0100)]
cmenu: Increasing limits

Impact: avoid memory corruption with hdt

Some users reported systems with 89 pci devices. This case requires to
increase theses values

14 years agohdt: Fixing building warning
Erwan Velu [Sun, 8 Nov 2009 20:36:02 +0000 (21:36 +0100)]
hdt: Fixing building warning

Impact: Avoid warning during compilation

Avoid warning during gcc compilation

14 years agoRevert "ansicon: allow to pass page # to write functions"
H. Peter Anvin [Sat, 7 Nov 2009 00:44:53 +0000 (16:44 -0800)]
Revert "ansicon: allow to pass page # to write functions"

This reverts commit e9b317fd0dc87dc93a49bc40520f4bdd0264d746.

(This commit breaks vesamenu, and $DEITY knows what else.)

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
14 years agoMerge commit 'sha0/chain_isolinux'
H. Peter Anvin [Thu, 5 Nov 2009 22:59:15 +0000 (14:59 -0800)]
Merge commit 'sha0/chain_isolinux'

14 years agohdt: Putting auto mode in coherence with cli
Erwan Velu [Thu, 5 Nov 2009 17:01:44 +0000 (18:01 +0100)]
hdt: Putting auto mode in coherence with cli

Impact: visual

The output generated by the auto mode should stay in coherence with the
default cli mode.

14 years agohdt: Switching debug mode in quiet mode
Erwan Velu [Thu, 5 Nov 2009 16:53:50 +0000 (17:53 +0100)]
hdt: Switching debug mode in quiet mode

Impact: "quiet" keyword also a quiet display

quiet is a new keyword to prevent HDT beeing too much verbose

14 years agoRevert "Revert "gpllib: Reident fbinst code""
Erwan Velu [Thu, 5 Nov 2009 16:50:06 +0000 (17:50 +0100)]
Revert "Revert "gpllib: Reident fbinst code""

This reverts commit 28d7917dd52b34e2669fa9ad44445124b1d10584.

14 years agoMerge remote branch 'pam/hdt-0.3.5'
Erwan Velu [Thu, 5 Nov 2009 16:48:47 +0000 (17:48 +0100)]
Merge remote branch 'pam/hdt-0.3.5'

14 years agoRevert "gpllib: Reident fbinst code"
Erwan Velu [Thu, 5 Nov 2009 16:48:32 +0000 (17:48 +0100)]
Revert "gpllib: Reident fbinst code"

This reverts commit e4e28b8fd43a971466ff38b243784d20437d6252.

14 years agohdt: Prevent auto mode from using empty commands
Erwan Velu [Thu, 5 Nov 2009 16:39:20 +0000 (17:39 +0100)]
hdt: Prevent auto mode from using empty commands

Impact: prevent running stupid commands

The code didn't prevents from executing stupid "'" commands

14 years agogpllib: Reident fbinst code
Erwan Velu [Thu, 5 Nov 2009 15:48:28 +0000 (16:48 +0100)]
gpllib: Reident fbinst code

Impact: none

Reindent the fbinst patch

14 years agohdt: fix arguments parsing
Pierre-Alexandre Meyer [Thu, 5 Nov 2009 06:46:45 +0000 (22:46 -0800)]
hdt: fix arguments parsing

Do not increment the argument counter in the loop after having found
the last auto= argument. It is taken care of by the for.
With it, an extra argument after the auto= string will be ignored.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agohdt: optimize more_printf macro
Pierre-Alexandre Meyer [Thu, 5 Nov 2009 06:11:07 +0000 (22:11 -0800)]
hdt: optimize more_printf macro

disable_more_printf should be set only in auto mode (for now).
Add __likely macro to optimize the code.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agodisklib: add support for detection of the fbinst mbr
Pierre-Alexandre Meyer [Thu, 5 Nov 2009 05:11:42 +0000 (21:11 -0800)]
disklib: add support for detection of the fbinst mbr

Note that fbinst and grub4dos mbrs share the first two bytes.

Patch originally submitted by gerth.

This fixes #20.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agohdt: add debug option
Pierre-Alexandre Meyer [Thu, 5 Nov 2009 06:58:09 +0000 (22:58 -0800)]
hdt: add debug option

Pass 'debug' on the kernel command line for the output to be more verbose.
Making hdt quiet is really helpful in auto mode, when a lot of information
is flowing.

This fixes #21.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agohdt: fix arguments parsing
Pierre-Alexandre Meyer [Thu, 5 Nov 2009 06:46:45 +0000 (22:46 -0800)]
hdt: fix arguments parsing

Do not increment the argument counter in the loop after having found
the last auto= argument. It is taken care of by the for.
With it, an extra argument after the auto= string will be ignored.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agohdt: optimize more_printf macro
Pierre-Alexandre Meyer [Thu, 5 Nov 2009 06:11:07 +0000 (22:11 -0800)]
hdt: optimize more_printf macro

disable_more_printf should be set only in auto mode (for now).
Add __likely macro to optimize the code.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agodisklib: add support for detection of the fbinst mbr
Pierre-Alexandre Meyer [Thu, 5 Nov 2009 05:11:42 +0000 (21:11 -0800)]
disklib: add support for detection of the fbinst mbr

Note that fbinst and grub4dos mbrs share the first two bytes.

Patch originally submitted by gerth.

This fixes #20.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agoMerge commit 'hdt-0.3.5-pre3' into hdt-0.3.5
Pierre-Alexandre Meyer [Thu, 5 Nov 2009 05:08:24 +0000 (21:08 -0800)]
Merge commit 'hdt-0.3.5-pre3' into hdt-0.3.5

14 years agohdt: Release 0.3.5-pre3
Erwan Velu [Wed, 4 Nov 2009 20:50:02 +0000 (21:50 +0100)]
hdt: Release 0.3.5-pre3

Impact: new pre-version

Releasing pre3 with reboot & auto= features

14 years agohdt: Setting up a flag to disable more_printf
Erwan Velu [Wed, 4 Nov 2009 20:03:44 +0000 (21:03 +0100)]
hdt: Setting up a flag to disable more_printf

Impact: None.

Some modes could requires disabling more_printf

14 years agohdt: Removing debugging message in auto mode
Erwan Velu [Wed, 4 Nov 2009 20:02:43 +0000 (21:02 +0100)]
hdt: Removing debugging message in auto mode

Impact: Visual

This debugging info isn't interesting

14 years agohdt: Improving readbility of auto mode
Erwan Velu [Wed, 4 Nov 2009 19:45:34 +0000 (20:45 +0100)]
hdt: Improving readbility of auto mode

Impact: Visual

This patch enhance the readibility of the auto mode

14 years agoMerge commit 'hdt-0.3.5-pre2' into hdt-0.3.5
Pierre-Alexandre Meyer [Wed, 4 Nov 2009 01:51:33 +0000 (17:51 -0800)]
Merge commit 'hdt-0.3.5-pre2' into hdt-0.3.5

14 years agoMerge branch 'master' into auto
Erwan Velu [Tue, 3 Nov 2009 22:13:10 +0000 (23:13 +0100)]
Merge branch 'master' into auto

14 years agohdt: Improving automatic code (memory mgmt)
Erwan Velu [Tue, 3 Nov 2009 22:07:59 +0000 (23:07 +0100)]
hdt: Improving automatic code (memory mgmt)

Impact: Freeing memory

We have to be more careful about the malloc & free. We also have to
remove spaces around commands

14 years agohdt: Adding automatic mode
Erwan Velu [Tue, 3 Nov 2009 21:41:30 +0000 (22:41 +0100)]
hdt: Adding automatic mode

Impact: HDT can be controlled via the cmdline

When the auto= parameter is set, HDT execute a set of commands and
return to the cli after.

i.e auto='show summary; show pci' will show the summary then the pci and
return to the cli.

Note that the auto= feature, requires a the "'" char to define the
complete set of commands and the ";" char to separate commands.

Some more examples:
auto='show syslinux; exit' -> this will show the syslinux release and
then exit to return to the bootloader

auto='show summary; reboot' -> this will show the summary and
then reboot the computer

14 years agoMerge remote branch 'pam/hdt-0.3.5'
Erwan Velu [Tue, 3 Nov 2009 08:51:28 +0000 (09:51 +0100)]
Merge remote branch 'pam/hdt-0.3.5'

14 years agolibansi: reset SGR parameters cache in cls()
Pierre-Alexandre Meyer [Tue, 3 Nov 2009 04:53:56 +0000 (20:53 -0800)]
libansi: reset SGR parameters cache in cls()

There was a bug in HDT when switching from the menu to the cli and
back to the menu: the background wasn't redrawn.

This was due to the fact that the cli bypasses the libansi library
and calls printf() directly. Unfortunately, the SGR attributes were
cached between menu initializations and the background wasn't properly
redrawn.

To fix it, invalidate the cache in the cls() routine. cls() does much
more than just erasing the screen already (e.g. initialize G1) - we
may want to rename the function at some point.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agohdt: Adding serial output when building HDT images
Erwan Velu [Mon, 2 Nov 2009 21:19:25 +0000 (22:19 +0100)]
hdt: Adding serial output when building HDT images

Impact: Serial output have to be activated

That's almost useful having the serial output when running HDT

14 years agoMerge branch 'master' of ssh://terminus.zytor.com//pub/git/users/erwan/hdt
Erwan Velu [Mon, 2 Nov 2009 18:53:12 +0000 (19:53 +0100)]
Merge branch 'master' of ssh://terminus.zytor.com//pub/git/users/erwan/hdt

14 years agohdt: Adding reboot.c32 in iso & floppy images
Erwan Velu [Mon, 2 Nov 2009 12:45:00 +0000 (13:45 +0100)]
hdt: Adding reboot.c32 in iso & floppy images

Impact: reboot is now working in floppy & iso images

The reboot features requires the reboot.c32 file to be copied in our
floppy & iso images

14 years agoMerge remote branch 'pam/hdt-0.3.5'
Erwan Velu [Mon, 2 Nov 2009 12:40:51 +0000 (13:40 +0100)]
Merge remote branch 'pam/hdt-0.3.5'

14 years agohdt: add reboot command in HDT mode (CLI)
Pierre-Alexandre Meyer [Mon, 2 Nov 2009 00:19:47 +0000 (16:19 -0800)]
hdt: add reboot command in HDT mode (CLI)

Reboot the system via the 'reboot' command in the CLI.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agohdt: add reboot entry (MENU)
Pierre-Alexandre Meyer [Sun, 1 Nov 2009 23:55:11 +0000 (15:55 -0800)]
hdt: add reboot entry (MENU)

Add a reboot entry to reboot the system. Uses reboot.c32 behind the scenes.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agohdt: 0.3.5-pre2
Erwan Velu [Sun, 1 Nov 2009 12:19:59 +0000 (13:19 +0100)]
hdt: 0.3.5-pre2

Impact: new pre-release

Releasing 0.3.5-pre2. Adding codename for 0.3.5

14 years agohdt: Adding core developper role
Erwan Velu [Sun, 1 Nov 2009 12:10:27 +0000 (13:10 +0100)]
hdt: Adding core developper role

Impact: Visual

Pierre is more than a contributor ;)

14 years agoMerge remote branch 'pam/hdt-0.3.5'
Erwan Velu [Sun, 1 Nov 2009 12:06:13 +0000 (13:06 +0100)]
Merge remote branch 'pam/hdt-0.3.5'

14 years agohdt: use plain printf for help, not more_printf (CLI)
Pierre-Alexandre Meyer [Sun, 1 Nov 2009 07:12:16 +0000 (00:12 -0700)]
hdt: use plain printf for help, not more_printf (CLI)

The help prints several elements on the same line. This can't
work with more_printf() as the macro assumes each call contains
one and only one \n.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agohdt: change remaining printf to more_printf (CLI)
Pierre-Alexandre Meyer [Sun, 1 Nov 2009 05:32:26 +0000 (22:32 -0700)]
hdt: change remaining printf to more_printf (CLI)

A lot of places still had printf() instead of more_printf().
This patch does a bulk update and add missing reset_more_printf(),
used to reset the pager counter between each command call.

This also changes the more_printf() routine to delete the "--More--"
line while scrolling.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agoRevert "hdt: Adding core developper role"
Erwan Velu [Sun, 1 Nov 2009 12:04:05 +0000 (13:04 +0100)]
Revert "hdt: Adding core developper role"

This reverts commit 57689f219c5155e186ced1c9f5f972d5d0b340ed.

14 years agohdt: Adding core developper role
Erwan Velu [Sun, 1 Nov 2009 11:46:48 +0000 (12:46 +0100)]
hdt: Adding core developper role

Impact: Visual

Pierre is more than a contributor ;)

14 years agodmi: enhance SMBIOS/DMI detection
Pierre-Alexandre Meyer [Sun, 1 Nov 2009 02:45:30 +0000 (19:45 -0700)]
dmi: enhance SMBIOS/DMI detection

Add missing sanity checks when parsing the SMBIOS table entry point.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agohdt: fix printf typo (CLI)
Pierre-Alexandre Meyer [Sun, 1 Nov 2009 02:48:20 +0000 (19:48 -0700)]
hdt: fix printf typo (CLI)

Correction of an English grammar mistake:

  doesn't exists -> doesn't exist

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agohdt: reset position of the cursor at startup (CLI)
Pierre-Alexandre Meyer [Sun, 1 Nov 2009 07:12:41 +0000 (00:12 -0700)]
hdt: reset position of the cursor at startup (CLI)

When starting HDT in cli mode (nomenu), reset the cursor to be at the
top left corner.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agodmi: fix a strcpy (typo)
Pierre-Alexandre Meyer [Sun, 1 Nov 2009 02:46:21 +0000 (19:46 -0700)]
dmi: fix a strcpy (typo)

Not sure why sprintf is being called here. It's probably strcpy that was meant.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agohdt: change inactive attributes (MENU)
Pierre-Alexandre Meyer [Sun, 1 Nov 2009 04:13:51 +0000 (21:13 -0700)]
hdt: change inactive attributes (MENU)

The default inactive attributes in cmenu make little sense in HDT.
They actually make the menus hard to read.

Instead, use the same attributes as the active entries for the inactive
ones.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agocmenu: reset the cursor position on shutdown
Pierre-Alexandre Meyer [Sun, 1 Nov 2009 03:09:11 +0000 (20:09 -0700)]
cmenu: reset the cursor position on shutdown

Reset the cursor at the top left corner of the screen when exiting the
menu. This fixes odd behaviors when switching back and forth between CLI
and menu in HDT.

Closes: #14

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agohdt: reset position of the cursor at startup (CLI)
Pierre-Alexandre Meyer [Sun, 1 Nov 2009 07:12:41 +0000 (00:12 -0700)]
hdt: reset position of the cursor at startup (CLI)

When starting HDT in cli mode (nomenu), reset the cursor to be at the
top left corner.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agohdt: use plain printf for help, not more_printf (CLI)
Pierre-Alexandre Meyer [Sun, 1 Nov 2009 07:12:16 +0000 (00:12 -0700)]
hdt: use plain printf for help, not more_printf (CLI)

The help prints several elements on the same line. This can't
work with more_printf() as the macro assumes each call contains
one and only one \n.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agohdt: change remaining printf to more_printf (CLI)
Pierre-Alexandre Meyer [Sun, 1 Nov 2009 05:32:26 +0000 (22:32 -0700)]
hdt: change remaining printf to more_printf (CLI)

A lot of places still had printf() instead of more_printf().
This patch does a bulk update and add missing reset_more_printf(),
used to reset the pager counter between each command call.

This also changes the more_printf() routine to delete the "--More--"
line while scrolling.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agohdt: change inactive attributes (MENU)
Pierre-Alexandre Meyer [Sun, 1 Nov 2009 04:13:51 +0000 (21:13 -0700)]
hdt: change inactive attributes (MENU)

The default inactive attributes in cmenu make little sense in HDT.
They actually make the menus hard to read.

Instead, use the same attributes as the active entries for the inactive
ones.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agocmenu: reset the cursor position on shutdown
Pierre-Alexandre Meyer [Sun, 1 Nov 2009 03:09:11 +0000 (20:09 -0700)]
cmenu: reset the cursor position on shutdown

Reset the cursor at the top left corner of the screen when exiting the
menu. This fixes odd behaviors when switching back and forth between CLI
and menu in HDT.

Closes: #14

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agohdt: fix printf typo (CLI)
Pierre-Alexandre Meyer [Sun, 1 Nov 2009 02:48:20 +0000 (19:48 -0700)]
hdt: fix printf typo (CLI)

Correction of an English grammar mistake:

  doesn't exists -> doesn't exist

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agodmi: fix a strcpy (typo)
Pierre-Alexandre Meyer [Sun, 1 Nov 2009 02:46:21 +0000 (19:46 -0700)]
dmi: fix a strcpy (typo)

Not sure why sprintf is being called here. It's probably strcpy that was meant.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agodmi: enhance SMBIOS/DMI detection
Pierre-Alexandre Meyer [Sun, 1 Nov 2009 02:45:30 +0000 (19:45 -0700)]
dmi: enhance SMBIOS/DMI detection

Add missing sanity checks when parsing the SMBIOS table entry point.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
14 years agohdt: Fixing DMI version display
Erwan Velu [Fri, 30 Oct 2009 21:05:48 +0000 (22:05 +0100)]
hdt: Fixing DMI version display

Impact: none

Version is unsigned, so using %u is prefered ;)

14 years agodmi: Adding smbios detection
Erwan Velu [Fri, 30 Oct 2009 21:00:09 +0000 (22:00 +0100)]
dmi: Adding smbios detection

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

14 years agohdt: Fixing {s}printf typo
Erwan Velu [Fri, 30 Oct 2009 19:15:53 +0000 (20:15 +0100)]
hdt: Fixing {s}printf typo

Impact: Avoid some unwanted printf

Some dmi calls were using printf instead of sprintf.
This solves ticket #11

14 years ago[chain] Run Nindent on chain.c
Shao Miller [Thu, 29 Oct 2009 23:14:57 +0000 (19:14 -0400)]
[chain] Run Nindent on chain.c

14 years ago[chain] Add support for chain-loading another isolinux.bin
Gert Hulselmans [Thu, 29 Oct 2009 23:13:44 +0000 (19:13 -0400)]
[chain] Add support for chain-loading another isolinux.bin

Add 'isolinux=' option to chain.c32 for chain-loading
another isolinux.bin.

14 years agohdt: Adding hdt.img.gz target
Erwan Velu [Thu, 29 Oct 2009 21:14:58 +0000 (22:14 +0100)]
hdt: Adding hdt.img.gz target

Impact: It's now possible to have a gzipped floppy image

'make hdt.img.gz' now generates a gzipped floppy image

14 years agodisklib: Adding new grub2 mbr magic
Erwan Velu [Wed, 28 Oct 2009 19:51:11 +0000 (20:51 +0100)]
disklib: Adding new grub2 mbr magic

Impact: Detecting newer release of Grub2

Newer releases of grub2 have a eb63 signature

14 years agodisklib: Fixing Syslinux Detection
Erwan Velu [Wed, 28 Oct 2009 19:10:12 +0000 (20:10 +0100)]
disklib: Fixing Syslinux Detection

Impact: Syslinux is now detected as bootloader

A test wasn't correct and prevented the Syslinux mbr detection

14 years agohdt: Fixing hdt.iso target, pci.ids was missing
Erwan Velu [Tue, 27 Oct 2009 22:33:12 +0000 (23:33 +0100)]
hdt: Fixing hdt.iso target, pci.ids was missing

Impact: Iso file is now having pci.ids

The makefile did forget to copy the pci.ids into the iso.
This stupid test is fixed.
Thx gert from reporting it.

14 years agohdt: Adding Gert as contributor
Erwan Velu [Tue, 27 Oct 2009 20:10:26 +0000 (21:10 +0100)]
hdt: Adding Gert as contributor

Impact: none

Gert is contributing in hdt, he have to be in the contributor list

14 years agoMerge commit 'erwan/master' into hdt-0.3.5
Pierre-Alexandre Meyer [Tue, 27 Oct 2009 20:04:31 +0000 (13:04 -0700)]
Merge commit 'erwan/master' into hdt-0.3.5

14 years agoImproving chain.c32 help message
Gert Hulselmans [Tue, 27 Oct 2009 19:31:42 +0000 (20:31 +0100)]
Improving chain.c32 help message

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.

14 years agohdt: Removing useless Author Name
Erwan Velu [Tue, 27 Oct 2009 15:32:30 +0000 (16:32 +0100)]
hdt: Removing useless Author Name

Impact: visual

Pierre do much work on it, no need to keep my name everywhere ;)

14 years agoMerge branch 'master' of ssh://terminus.zytor.com//pub/git/users/erwan/hdt
Erwan Velu [Tue, 27 Oct 2009 15:29:02 +0000 (16:29 +0100)]
Merge branch 'master' of ssh://terminus.zytor.com//pub/git/users/erwan/hdt

14 years agohdt: Cleaning Makefile
Erwan Velu [Wed, 21 Oct 2009 20:55:54 +0000 (22:55 +0200)]
hdt: Cleaning Makefile

Impact: none

We use more variables to have a clean makefile