summaryrefslogtreecommitdiff
path: root/com32/hdt/hdt-common.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into elflinkMatt Fleming2012-10-241-8/+13
|\ | | | | | | | | | | | | | | | | The following conflict is a result of the fact comapi_chainboot was only stubbed out on the 'elflink' branch but was properly marked as obsolete in 'master'. Conflicts: core/comboot.inc
| * hdt: Adding Silent modeErwan Velu2012-09-101-8/+13
| | | | | | | | | | | | | | By using the "silent" option at the cmdline, HDT tries not displaying any boring message. This is particulary interesting with the "display" option.
* | Merge remote-tracking branch 'zytor/master' into merge/elflink/masterMatt Fleming2012-05-311-0/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | A lot of development has gone on in the 'master' branch since the last time we merged; new features, bug fixes, etc, etc. Conflicts: Makefile com32/Makefile com32/lib/Makefile com32/lib/syslinux/load_linux.c com32/modules/Makefile com32/modules/chain.c core/bootsect.inc core/init.inc version
| * hdt: Adding postexec= optionErwan Velu2011-12-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When HDT is exiting, you might need executing something else. This could be used in the following scenario : You start HDT, do an automatic command like 'dump; exit', but then after you might need to launch something else from syslinux. The postexec option will allow you to define what label you'd love running one HDT got terminated. Syntaxt is like the following: postexec='menu_label_to_run_once_hdt_got_exited' Note the quotes (') after the equal sign (=) This could looks like : APPEND auto='dump; exit' postexec='memtest'
| * hdt: Adding dump_filename= optionErwan Velu2011-04-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This option allow the user to redefine the way filename is made-of. By default that's "mac_address+dmi_vendor_name+dmi_product_name" This can be overidded by the following syntax: dump_filename=your_filename Note that it's mandatory not to add "" or '' around your_filename. your_filename could be a regular filename but can also includes %{} directives as defined by : %{m} = mac address %{v} = vendor name of the machine %{p} = product name of the machine %{ba} = Asset tag of the base board %{bs} = Serial number of the base board %{ca} = Asset tag of the chassis %{cs} = Serial number of the chassis %{sk} = SKU number of the system %{ss} = Serial number of the system Here come a possible command line : APPEND nomenu auto='dump;' dump_path=hdt2 tftp_ip=192.168.1.254 dump_filename=%{m}+%{bs}+%{ba}+%{cs}+%{ca}+%{sk}+%{ss}+%{p}+%{v}
* | Mark unused function parameters as __unusedMatt Fleming2012-04-171-3/+0
|/ | | | | | | | | | | Move the __unused tag from com32/hdt/ to com32/include/klibc/ so that it can be used by the entire code base, and mark unused function parameters as __unused to stop the following kind of build warning, elflink/load_env32.c: In function ‘load_env32’: elflink/load_env32.c:107:30: warning: unused parameter ‘regs’ Signed-off-by: Matt Fleming <matt.fleming@intel.com>
* hdt: Fixing automatic mode parsingErwan Velu2011-04-181-1/+1
| | | | | | | | | Parsing of the auto='' mode was weak an non functionnal in many configuration like auto='dump' This is now fixed.
* hdt: Adding dump entry in the menuErwan Velu2011-04-111-0/+1
| | | | If the PXE is enabled, let's show a dump menu at the main menu.
* hdt: Adding dump_mode & tftp_ip boot optionErwan Velu2011-04-111-0/+2
| | | | | | | | | dump_mode=<dir> give the user a chance to select a directory on the tftp server. tftp_ip=<w.x.y.z> give the user a chance to select another tftp server for dumping data. By default, we use the tftp that serves the pxe booting.
* hdt: Adding preliminary dump supportErwan Velu2011-03-181-1/+5
| | | | This commit add the basics for doing a dump command.
* hdt: Improving CPU displayhdt/0.4.0-beta1Erwan Velu2011-01-301-0/+1
|
* Merge branch 'master' into chouffeErwan Velu2011-01-251-1/+3
|\ | | | | | | | | Conflicts: com32/hdt/hdt.h
| * hdt: Using syslinux_reboot() callErwan Velu2010-06-221-1/+3
| | | | | | | | Rebooting can be achieved via syslinux_reboot() instead of the useless reboot.c32 module.
* | Merge branch 'master', remote branch 'origin' into chouffeErwan Velu2010-05-261-1/+1
|\ \ | |/
| * Change () prototypes to (void)H. Peter Anvin2010-01-061-1/+1
| | | | | | | | | | | | | | | | () means the same as (...) in C, not the same as (void) as it does in C++. It is generally misused to mean (void), though. Actually write what we mean... this is C, after all. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | hdt: Merging nomenu & auto mode detectionErwan Velu2009-12-151-0/+6
| | | | | | | | | | | | Impact: code cleanup Let's use a single place to detect all hdt's parameters.
* | hdt: Unique hardware detection pathErwan Velu2009-12-071-0/+1
| | | | | | | | | | | | Impact: Hardware detection path is simplified Hardware is detected once, at boot time
* | hdt: Adding basic ACPI modeErwan Velu2009-12-041-0/+5
|/ | | | | | Impact: new acpi mode Adding a new ACPI mode, still lots of work to do
* hdt: Fixing memory detectionErwan Velu2009-12-041-0/+2
| | | | | | | Impact: Fix memory detection under cli Under the CLI, the memory detection wasn't started... This commit fixes the memory initialisation path
* hdt: Adding novesa for future useErwan Velu2009-12-041-0/+4
| | | | | | | Impact: none In a close future, as vesa will be enabled by default, let's anticipate the novesa command
* hdt: Running NindentErwan Velu2009-11-241-72/+72
| | | | | | Impact: Visual cleanup HDT now uses the same indent as syslinux
* hdt: Improving memory detectionErwan Velu2009-11-231-0/+1
| | | | | | | Impact: Detect memory size even if dmi is broken This commit uses e820/e801/e88 memory detection to find the memory size. That allow to display the memory size even if the dmi table is broken
* hdt: Allow user to override the background imageErwan Velu2009-11-211-2/+3
| | | | | | | Impact: none This commit allow user using vesa=<filename> to override the background image in vesa mode
* hdt: Adding background image for the CLIErwan Velu2009-11-201-0/+7
| | | | | | Impact: Visual The cli now features a background image when started in vesa mode
* hdt: Adding vesa mode supportErwan Velu2009-11-201-1/+8
| | | | | | | Impact: cli can now be turned into vesa Using the "vesa" keyword at boot time, you can enable the vesa mode for the cli.
* hdt: Switching debug mode in quiet modeErwan Velu2009-11-051-1/+2
| | | | | | Impact: "quiet" keyword also a quiet display quiet is a new keyword to prevent HDT beeing too much verbose
* hdt: add debug optionPierre-Alexandre Meyer2009-11-041-0/+2
| | | | | | | | | | 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>
* hdt: optimize more_printf macroPierre-Alexandre Meyer2009-11-041-1/+1
| | | | | | | 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>
* hdt: Setting up a flag to disable more_printfErwan Velu2009-11-041-3/+6
| | | | | | Impact: None. Some modes could requires disabling more_printf
* hdt: Adding automatic modeErwan Velu2009-11-031-0/+10
| | | | | | | | | | | | | | | | | | | | 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
* hdt: add reboot entry (MENU)Pierre-Alexandre Meyer2009-11-011-0/+1
| | | | | | Add a reboot entry to reboot the system. Uses reboot.c32 behind the scenes. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* hdt: use plain printf for help, not more_printf (CLI)Pierre-Alexandre Meyer2009-11-011-1/+5
| | | | | | | | 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>
* hdt: change remaining printf to more_printf (CLI)Pierre-Alexandre Meyer2009-10-311-5/+6
| | | | | | | | | | | 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>
* Merge branch 'cmenu-video' into hdt-nextPierre-Alexandre Meyer2009-09-071-0/+2
|\ | | | | | | | | | | | | | | Conflicts: com32/hdt/hdt-cli-disk.c com32/hdt/hdt-common.c Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * hdt: remove extra LFPierre-Alexandre Meyer2009-09-071-0/+1
| | | | | | | | | | | | | | In a few places, extra LFs cause the menu to scroll ('\n' in the status bar). Remove them (they are not needed anyway). Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * hdt: switch to libansiPierre-Alexandre Meyer2009-09-011-1/+1
| | | | | | | | | | | | Make hdt use libansi. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * gpllib: add a new ansi libraryPierre-Alexandre Meyer2009-09-011-0/+1
| | | | | | | | | | | | | | | | | | | | HDT and cmenu are currently duplicating code: they both define their own mini ansi library. This patch extracts the HDT ansi lib into gpllib as a first step towards unification. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | Merge branch 'bootloader-detection' into hdt-nextPierre-Alexandre Meyer2009-09-071-0/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: com32/hdt/hdt-cli-disk.c com32/hdt/hdt-common.h com32/hdt/hdt-menu-disk.c Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | gpllib: rename bootloader detection to MBR detectionPierre-Alexandre Meyer2009-08-261-1/+1
| | | | | | | | | | | | | | | | | | | | | bootloaders.c really inspects the MBR, not the bootloader itself. Let's not confuse the two of them. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | gpllib: use four bytes to discover the MBRPierre-Alexandre Meyer2009-08-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Syslinux and Master Boot LoaDeR share the first 2 bytes. Use one more to distinguish between the two of them. To keep standards types, uint16_t is being replaced by uint32_t. The extra byte is not used yet. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | hdt: enhance user experience (CLI) - try harderPierre-Alexandre Meyer2009-08-231-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Alright - let's try again. * Manually increment the display_line_nb counter in the disk CLI (we are doing a multi line more_printf!) * Add the pause_printf() macro to pause the CLI as needed Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | hdt: enhance user experience (CLI)Pierre-Alexandre Meyer2009-08-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some users have reported that reading the CLI can be difficult, especially when spitting out a lot of information. This patch: * adds a missing reset_more_printf() in the disk CLI * reduces the total scrolling to 20 lines (seems better in my testing) * removes a reset_more_printf() in the show disk function. This can potentially be bad when doing a lot of show disk 0xXX (especially after 4 in a row) but enhances the display when running show disks with lots of disks. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | gpllib: bootloader id should be uint16_tPierre-Alexandre Meyer2009-08-231-1/+1
| | | | | | | | | | | | | | | | | | The id is of the form 0xABCD: use uint16_t instead of int. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | hdt: detect bootloader ids when probing disksPierre-Alexandre Meyer2009-08-231-0/+1
| |/ | | | | | | | | | | | | Add a bootloader_ids[] array in the hardware structure to store bootloader ids when probing the disks. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | hdt: unify disk headers in hdt-common.hPierre-Alexandre Meyer2009-09-011-0/+6
| | | | | | | | | | | | | | Both cli and menu need to access disk functions. Include disk headers in hdt-common.h, instead of duplicating code. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | hdt: enhance user experience (CLI)Pierre-Alexandre Meyer2009-08-231-2/+2
|/ | | | | | | | | | | | | | | Some users have reported that reading the CLI can be difficult, especially when spitting out a lot of information. This patch: * adds a missing reset_more_printf() in the disk CLI * reduces the total scrolling to 20 lines (seems better in my testing) * removes a reset_more_printf() in the show disk function. This can potentially be bad when doing a lot of show disk 0xXX (especially after 4 in a row) but enhances the display when running show disks with lots of disks. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* hdt: Fix disk menu to use the new disklib interfacesPierre-Alexandre Meyer2009-08-051-0/+3
| | | | | | | Adapt the disk menu to use the new disklib interfaces. This fixes bugs related to the display of partition numbering and swsusp signature. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* hdt: Adding modules.alias supportErwan Velu2009-04-271-0/+2
| | | | | | | | | | | Impact: It is now possible to use modules.alias to search kernel modules. This commit rename modules= command line parameter to modules_pcimap= It introduce modules_alias= parameter to override the default "modules.alias" filename. Both methods (pcimap & alias) are tried when detecting hardware. A failure message will occurs only if both methods fails.
* Merge branch 'disklib' into for-erwanPierre-Alexandre Meyer2009-04-261-1/+14
|\ | | | | | | | | | | | | | | Conflicts: com32/hdt/hdt-common.c Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * Merge commit 'mouraf/for-erwan' into disklibPierre-Alexandre Meyer2009-04-191-0/+6
| |\ | | | | | | | | | | | | | | | Conflicts: com32/hdt/hdt-cli.c com32/hdt/hdt-cli.h