okuji
86dbc3fcbc
2002-06-12 Yoshinori K. Okuji <okuji@enbug.org>
...
* netboot/main.c (ifconfig): If GW is specified, clear out the
ARP entry for the gateway. If SVR is specified, clear out the
ARP entry for the server. Reported by Uwe Dannowski
<ud3@ira.uka.de >.
2002-06-12 08:58:21 +00:00
okuji
2369202e83
2002-06-12 Yoshinori K. Okuji <okuji@enbug.org>
...
The terminal handling code is rewritten radically.
* stage2/console.c: New file.
* stage2/term.h: Likewise.
* stage2/Makefile.am (noinst_HEADERS): Added term.h.
(libgrub_a_SOURCES): Added serial.c.
(pre_stage2_exec_SOURCES): Added console.c.
* stage2/asm.S (console_putchar): Rewritten from scratch.
[!STAGE1_5] (translation_table): New variable.
[!STAGE1_5] (translate_keycode): New function.
[!STAGE1_5] (console_getkey): Call translate_keycode.
[!STAGE1_5] (console_checkkey): Likewise.
[!STAGE1_5] (nocursor): Renamed to ...
[!STAGE1_5] (console_nocursor): ... this.
[!STAGE1_5] (console_set_attrib): Removed.
* stage2/builtins.c: Include term.h.
(terminal): Removed.
(normal_color): Likewise.
(highlight_color): Likewise.
(cat_func): Display a question mark when a non-printable
character was read.
(terminal_func): Rewritten almost from scratch.
* stage2/char_io.c: Include term.h.
[!STAGE1_5] (auto_fill): Removed.
[!STAGE1_5] (term_table): New variable.
[!STAGE1_5] (current_term): Likewise.
[!STAGE1_5] (real_get_cmdline): New function. The code was
stolen from the previous version of get_cmdline.
[!STAGE1_5] (get_cmdline): Rewritten from scratch.
[!STAGE1_5] (translate_keycode): Removed.
[!STAGE1_5] (getkey): Rewritten from scratch.
[!STAGE1_5] (checkkey): Likewise.
(grub_putchar): Likewise.
[!STAGE1_5] (gotoxy): Likewise.
[!STAGE1_5] (getxy): Likewise.
[!STAGE1_5] (cls): Likewise.
[!STAGE1_5] (nocursor): New function.
[SUPPORT_SERIAL] (serial_getxy): Removed.
[SUPPORT_SERIAL] (serial_gotoxy): Likewise.
[SUPPORT_SERIAL] (serial_cls): Likewise.
[SUPPORT_SERIAL] (serial_getxy): Likewise.
[!STAGE1_5] (set_attrib): Likewise.
* stage2/cmdline.c (init_cmdline): Set COUNT_LINES to -1.
* stage2/common.c [!STAGE1_5] (err_list): Removed
ERR_NEED_SERIAL and added ERR_DEV_NEED_INIT.
* stage2/hercules.c: Rewritten almost from scratch.
* stage2/hercules.h (herc_putchar): Removed.
(herc_cls): Likewise.
(herc_getxy): Likewise.
(herc_gotoxy): Likewise.
(herc_set_attrib): Likewise.
* stage2/serial.c: Rewritten almost from scratch.
* stage2/serial.h: Likewise.
* stage2/shared.h [GRUB_UTIL] (DISP_UL): Set to the same value
as VGA's.
[GRUB_UTIL] (DISP_UR): Likewise.
[GRUB_UTIL] (DISP_LL): Likewise.
[GRUB_UTIL] (DISP_LR): Likewise.
[GRUB_UTIL] (DISP_HORIZ): Likewise.
[GRUB_UTIL] (DISP_VERT): Likewise.
[GRUB_UTIL] (DISP_LEFT): Likewise.
[GRUB_UTIL] (DISP_RIGHT): Likewise.
[GRUB_UTIL] (DISP_UP): Likewise.
[GRUB_UTIL] (DISP_DOWN): Likewise.
(grub_error_t): Removed ERR_NEED_SERIAL.
Added ERR_DEV_NEED_INIT.
(normal_color): Removed.
(highlight_color): Likewise.
(console_cls): Removed, because this is declared in term.h.
(console_getxy): Likewise.
(console_gotoxy): Likewise.
(console_putchar): Likewise.
(console_getkey): Likewise.
(console_checkkey): Likewise.
(console_set_attrib): Removed.
(set_attrib): Likewise.
[GRUB_UTIL] (nocursor): Declared.
(auto_fill): Removed.
(terminal): Likewise.
(TERMINAL_CONSOLE): Likewise.
(TERMINAL_SERIAL): Likewise.
(TERMINAL_HERCULES): Likewise.
(TERMINAL_DUMB): Likewise.
(translate_keycode): Likewise.
* stage2/stage2.c: Include term.h.
(print_entry): Rewritten from scratch.
(print_entries): Likewise.
(print_border): Likewise.
(set_line): Removed.
(set_line_normal): Likewise.
(set_line_highlight): Likewise.
* grub/Makefile.am (AM_CFLAGS): Added -DSUPPORT_HERCULES=1.
* grub/asmstub.c: Don't include hercules.h. Include term.h.
(console_current_color): New variable.
(console_translate_key): New function.
(console_checkkey): Rewritten from scratch.
(console_getkey): Likewise.
(console_putchar): Likewise.
(console_set_attrib): Removed.
(console_highlight): New function.
(console_setcolor): Likewise.
(console_nocursor): Likewise.
(serial_getkey): Removed.
(serial_checkkey): Likewise.
(serial_putchar): Likewise.
(serial_exists): Likewise.
(serial_get_port): Likewise.
(serial_init): Likewise.
(serial_hw_fetch): New function.
(serial_hw_put): Likewise.
(serial_hw_delay): Likewise.
(serial_hw_get_port): Likewise.
(serial_hw_init): Likewise.
(set_serial_device): Renamed to ...
(serial_set_device): ... this.
(herc_putchar): Renamed to ...
(hercules_putchar): ... this.
(herc_cls): Renamed to ...
(hercules_cls): ... this.
(herc_getxy): Renamed to ...
(hercules_getxy): ... this.
(herc_gotoxy): Renamed to ...
(hercules_gotoxy): ... this.
(hercules_highlight): New function.
(hercules_setcolor): Likewise.
(hercules_nocursor): Likewise.
(herc_set_attrib): Removed.
* grub/main.c: Include term.h.
(main): If USE_CURSES is false, set CURRENT_TERM->FLAGS to
TERM_NO_EDIT | TERM_DUMB. TERMINAL is not used any longer.
2002-06-11 16:36:54 +00:00
okuji
9ab2360b15
2002-06-01 Yoshinori K. Okuji <okuji@enbug.org>
...
* docs/grub.texi (FAQ): Removed. See the GNU GRUB FAQ on the web
instead.
2002-06-01 00:00:27 +00:00
okuji
970554010c
Simplify the file README, and update NEWS.
2002-05-30 20:21:30 +00:00
okuji
b225b42f05
2002-05-23 Yoshinori K. Okuji <okuji@enbug.org>
...
Define the behavior of the boot loader when the load end address
and the bss end address are zero in the Multiboot Specification,
and add the support into GRUB. I've modified a patch from Yuri
Zaporogets <yuriz@ukr.net >.
* stage2/boot.c (load_image): In the case of Multiboot a.out
kludge, set the load end address to the load address plus the
size of the OS image file, if it is zero. Similarly, set the bss
end address to the load end address, if it is zero.
* util/mbchk.c (check_multiboot): Don't check if the load
address is greater than or equal to the load end address, if the
load end address is zero. Don't check if the load end address is
greater than the bss end address, if the bss end address is
zero. And, don't check if the load end address is less than or
equal to the entry address, if the load end address is zero.
* docs/multiboot.texi (The address fields of Multiboot header):
Added descriptions about the behavior of the boot loader when
LOAD_END_ADDR is zero and BSS_END_ADDR is zero.
2002-05-22 17:08:37 +00:00
okuji
73d5c0f09c
Added a released date into NEWS.
2002-04-29 22:49:40 +00:00
okuji
bd9abb21c5
2002-04-29 Yoshinori K. Okuji <okuji@enbug.org>
...
* stage2/builtins.c [SUPPORT_SERIAL] (terminal_func): Added a
new option ``--silent''. This suppresses messages, if specified.
2002-04-29 00:35:30 +00:00
okuji
86d5582ec2
2002-04-06 Yoshinori K. Okuji <okuji@enbug.org>
...
* stage2/builtins.c [GRUB_UTIL] (dump_func): New function.
[GRUB_UTIL] (builtin_dump): New variable.
(builtin_table) [GRUB_UTIL]: Added a pointer to BUILTIN_DUMP.
* util/grub-install.in: Make sure that GRUB reads the same
images as the host operating system by comparing the result of
running the command "dump" with the contents of the OS file.
2002-04-06 12:15:13 +00:00
okuji
30ec0405c4
2002-03-26 Yoshinori K. Okuji <okuji@enbug.org>
...
* stage2/boot.c (linux_mem_size): New variable.
(load_image): Check a mem= option and set LINUX_MEM_SIZE to the
specified memory size, if any. Otherwise, to zero. When an
overflow is detected, use LINUX_INITRD_MAX_ADDRESS instead.
(load_initrd): If LINUX_MEM_SIZE is non-zero, use it instead of
the actual memory size.
* stage2/char_io.c (safe_parse_maxint): Use ERR_NUMBER_OVERFLOW
instead of ERR_NUMBER_PARSING, when an overflow occurs.
* stage2/common.c [!STAGE1_5] (err_list): Added
ERR_NUMBER_OVERFLOW.
* stage2/shared.h (ERR_NUMBER_OVERFLOW): New constant.
2002-03-25 21:43:55 +00:00
okuji
479bc51947
2002-02-08 Yoshinori K. Okuji <okuji@enbug.org>
...
* stage2/builtins.c (help_func): Show all the commands runnable
with the command-line interface, if "--all" is specified.
2002-02-08 01:22:36 +00:00
okuji
b0c95fd0d4
2002-02-08 Yoshinori K. Okuji <okuji@enbug.org>
...
An internal pager is implemented.
* stage2/builtins.c (pager_func): New function.
(builtin_pager): New variable.
(terminal_func): New option, "--lines=LINES" is added. If this
option is specified, set MAX_LINES to the value. Otherwise, set
MAX_LINES to 24.
(vbeprobe_func): Remove the pager code specific to this
function.
(builtin_table): Added a pointer to BUILTIN_PAGER.
* stage2/char_io.c (max_lines) [!STAGE1_5]: New variable.
(count_lines) [!STAGE1_5]: Likewise.
(use_pager) [!STAGE1_5]: Likewise.
(grub_putchar) [!STAGE1_5]: if C is a newline and COUNT_LINES is
not -1, count up the number of lines. If it exceeds the maximum
number of lines minus 2, show a message and wait for input of
return key. "minus 2" is to reserve space for the message
printed by this internal pager.
* stage2/cmdline.c (enter_cmdline): If USE_PAGER is true, set
COUNT_LINES to zero, before running a command, and reset
COUNT_LINES to -1 after that.
* stage2/shared.h (max_lines) [!STAGE1_5]: Declared.
(count_lines) [!STAGE1_5]: Likewise.
(use_pager) [!STAGE1_5]: Likewise.
2002-02-08 01:14:01 +00:00
okuji
2a06ebce5c
2002-02-05 Yoshinori K. Okuji <okuji@enbug.org>
...
* stage2/shared.h (BUILTIN_HELP_LIST): New macro. Used for
commands whose help messages are listed when no argument is
specified to the command "help".
* stage2/builtins.c (builtin_blocklist): Added the attribute
BUILTIN_HELP_LIST.
(builtin_boot): Likewise.
(builtin_bootp): Likewise.
(builtin_cat): Likewise.
(builtin_chainloader): Likewise.
(builtin_color): Likewise.
(builtin_configfile): Likewise.
(builtin_device): Likewise.
(builtin_dhcp): Likewise.
(builtin_displayapm): Likewise.
(builtin_displaymem): Likewise.
(builtin_find): Likewise.
(builtin_geometry): Likewise.
(builtin_halt): Likewise.
(builtin_help): Likewise.
(builtin_hide): Likewise.
(builtin_ifconfig): Likewise.
(builtin_initrd): Likewise.
(builtin_kernel): Likewise.
(builtin_makeactive): Likewise.
(builtin_map): Likewise.
(builtin_md5crypt): Likewise.
(builtin_module): Likewise.
(builtin_modulenounzip): Likewise.
(builtin_partnew): Likewise.
(builtin_parttype): Likewise.
(builtin_quit): Likewise.
(builtin_rarp): Likewise.
(builtin_reboot): Likewise.
(builtin_root): Likewise.
(builtin_rootnoverify): Likewise.
(builtin_serial): Likewise.
(builtin_setkey): Likewise.
(builtin_setup): Likewise.
(builtin_terminal): Likewise.
(builtin_testvbe): Likewise.
(builtin_tftpserver): Likewise.
(builtin_unhide): Likewise.
(builtin_uppermem): Likewise.
(builtin_vbeprobe): Likewise.
(help_func): When no argument is specified, if the last entry
was at the left column, print an extra newline.
2002-02-05 04:56:42 +00:00
okuji
30817e1ce8
2002-02-05 Yoshinori K. Okuji <okuji@enbug.org>
...
* netboot/misc.c (twiddle): Go back to the bar progress, copied
from etherboot-5.0.5/src/misc.c. Execute the code only if DEBUG
is true.
2002-02-04 23:01:38 +00:00
okuji
7cb0e801d5
Specify the release date of 0.91.
2002-01-21 12:29:03 +00:00
okuji
4ea83d7811
2002-01-08 Yoshinori K. Okuji <okuji@gnu.org>
...
* grub/main.c (use_preset_menu): New variable.
(OPT_PRESET_MENU): New macro.
(longopts): Added an entry for "--preset-menu".
(usage): Added a description for "--preset-menu". Also, change
the first character of the description for "--device-map" to
lower case for consistency.
(main): Set USE_PRESET_MENU to 1 in the case of OPT_PRESET_MENU.
* stage2/shared.h (use_preset_menu): Declared.
* stage2/stage2.c [PRESET_MENU_STRING || SUPPORT_DISKLESS]
(open_preset_menu) [GRUB_UTIL]: If USE_PRESET_MENU is false,
return zero immediately.
2002-01-08 03:19:23 +00:00
okuji
a0c6c8b9af
Fix a wrong version in ChangeLog and add a new entry to NEWS.
2002-01-02 23:23:32 +00:00
okuji
79ae0cd9e8
Update NEWS.
2001-12-29 19:02:07 +00:00
okuji
502a79c799
hide and unhide support logical partitions.
2001-11-28 18:43:56 +00:00
okuji
d619861976
JFS and XFS support is added.
2001-10-27 16:04:25 +00:00
gord
d6fa625300
Merge 0.90 changes
2001-07-12 19:10:20 +00:00
okuji
fa820ff30d
Downgrade the version number in NEWS, since I won't release 1.0 soon.
2001-07-03 14:08:48 +00:00
okuji
b7e8ad7e6d
ELF symbol loading support is added.
2001-07-03 13:52:28 +00:00
okuji
2f97c78528
Add VSTa filesystem support.
2001-06-22 02:32:56 +00:00
okuji
030d695853
Add `--with-configfile' into the commands "bootp" and "dhcp".
2001-06-21 23:15:02 +00:00
okuji
123b813394
Always jump to the physical entry address of a Multiboot OS image, even
...
when the physical one differs from the virtual one.
2001-06-19 11:31:15 +00:00
okuji
4b1637c671
add a new option, --disable-auto-linux-mem-opt, into configure.
2001-02-27 15:24:48 +00:00
okuji
e85272f436
add hercules support.
2001-02-27 12:59:00 +00:00
okuji
7b3aef444e
add linux software raid-1 support.
2001-01-27 04:13:39 +00:00
okuji
7519621c59
add a new command, ifconfig.
2001-01-11 08:08:15 +00:00
okuji
1b97631a73
add an option to build the example kernel.
2001-01-11 07:28:16 +00:00
okuji
ca6efbe093
add a workaround to boot Windows from a logical partition.
2001-01-10 20:48:50 +00:00
okuji
00deed40cc
update NEWS and fix a sentense inconsistent against GNU coding style.
2000-12-21 22:42:33 +00:00
okuji
455795862c
add support for a preset menu file.
2000-11-15 04:30:23 +00:00
okuji
ad50fc1180
VBE support is partially added.
2000-11-04 16:15:26 +00:00
okuji
7561bde29d
add a new utility, grub-md5-crypt.
2000-10-21 21:58:46 +00:00
okuji
4928cfdad2
add a new command, md5crypt.
2000-10-21 00:13:55 +00:00
okuji
f5588d2f41
add a new command, displayapm.
2000-10-19 22:32:52 +00:00
jochen
2315cb466c
Added MD5 passwords and extended the password command.
2000-10-17 13:37:27 +00:00
okuji
636299cc50
add a new option --recheck into grub-install, relieve the check of a device file in grub-install.
2000-10-15 18:24:58 +00:00
okuji
84cd6e2879
add linux devfs support into the grub shell.
2000-10-15 16:39:04 +00:00
okuji
f6a7cd3d17
update docs.
2000-10-14 14:46:45 +00:00
okuji
261bf12dcf
fix a bug in find_func, and fix an inconsistency between NEWS and INSTALL.
2000-10-07 18:09:42 +00:00
okuji
5b956a8ac8
merge the changes on the branch prepare_0_5_96 to the main trunk.
2000-10-07 07:19:12 +00:00
okuji
225b464978
add new commands, partnew and parttype, add one more sanity check for reiserfs.
2000-09-29 18:55:27 +00:00
okuji
c6c180757e
add --prefix into the command setup, and add separate boot partition support into grub-install.
2000-09-25 16:05:47 +00:00
okuji
1b38e4d0cf
add support for saving a default entry number in your disk.
2000-09-06 03:02:39 +00:00
okuji
454e26626c
add a timeout to --hold for the grub shell, fix a compilation error with gcc-2.7.2.3, and the command-line interface is switched to single-line editing mode.
2000-08-30 07:00:16 +00:00
okuji
f1c162c0c6
preserve a magic number used by Windows NT.
2000-08-26 17:28:27 +00:00
okuji
2455b65f2e
add console emulation into serial terminal support using vt100-compatible escape sequences, add --enable-serial into configure, and fix some bugs in the support.
2000-08-20 12:14:14 +00:00
okuji
4e0e3cc8af
fix a violation against the network boot image proposal.
2000-08-15 10:08:21 +00:00