Commit Graph
352 Commits
Author SHA1 Message Date
okuji 686f75d678 2002-01-06 Yoshinori K. Okuji <okuji@gnu.org>
The preset menu has a priority over the configuration file.
	Suggested by Christoph Plattner.

	* stage2/stage2.c [PRESET_MENU_STRING] (open_preset_menu):
	Check if PRESET_MENU is not NULL.
	[PRESET_MENU_STRING] (close_preset_menu): Set PRESET_MENU to
	NULL.
	(cmain): New internal function, reset. This function resets
	AUTO_FILL, CONFIG_LEN, MENU_LEN, NUM_ENTRIES, CONFIG_ENTRIES,
	MENU_ENTRIES and call init_config.
	Try to open the preset menu first, and try to open the
	configuration file, only if that failed.
	Even if the preset menu was read, try to open the configuration
	file. This time, opening the preset menu never succeed, because
	close_preset_menu ensures that the preset menu is available at
	most once.
2002-01-05 19:59:29 +00:00
okuji 973e6f4129 2002-01-03 Yoshinori K. Okuji <okuji@gnu.org>
Update the netboot stuff to Etherboot-5.0.5.

	* configure.in (--enable-3c590): Removed. This was a mistake.
	(--enable-davicom): New option.
	(--enable-eepro): Likewise.
	(--enable-natsemi): Likewise.
	(--enable-ni5010): Likewise.
	(--enable-sis900): Likewise.
	(--enable-w89c840): Likewise.
	(--enable-3c509-hack): Removed.
	(--enable-ns8390-force-16bit): Likewise.

	* netboot/Makefile.am (libdrivers_a_SOURCES): Added timer.c and
	timer.h.
	(EXTRA_libdrivers_a_SOURCES): Added davicom.c, eepro.c, fa311.c,
	natsemi.c, ni5010.c, sis900.c, sis900.h, tlan.c and w89c840.c.
	(EXTRA_DIST): Added sis900.txt.
	(3c595_drivers): Remove 3c590.o from this.
	(davicom_drivers): New variable.
	(eepro_drivers): Likewise.
	(natsemi_drivers): Likewise.
	(ni5010_drivers): Likewise.
	(sis900_drivers): Likewise.
	(w89c840_drivers): Likewise.
	(3c590_o_CFLAGS): Removed.
	(davicom_o_CFLAGS): New variable.
	(eepro_o_CFLAGS): Likewise.
	(natsemi_o_CFLAGS): Likewise.
	(ni5010_o_CFLAGS): Likewise.
	(sis900_o_CFLAGS): Likewise.
	(w89c840_o_CFLAGS): Likewise.

	* netboot/davicom.c: New file, from Etherboot-5.0.5.
	* netboot/eepro.c: Likewise.
	* netboot/natsemi.c: Likewise.
	* netboot/ni5010.c: Likewise.
	* netboot/sis900.c: Likewise.
	* netboot/sis900.h: Likewise.
	* netboot/sis900.txt: Likewise.
	* netboot/timer.c: Likewise.
	* netboot/timer.h: Likewise.
	* netboot/w89c840.c: Likewise.
	* netboot/fa311.c: Likewise.
	* netboot/tlan.c: Likewise.

	* netboot/3c509.c: Copied from Etherboot-5.0.5.
	* netboot/3c509.h: Likewise.
	* netboot/3c595.c: Likewise.
	* netboot/3c90x.c: Likewise.
	* netboot/3c90x.txt: Likewise.
	* netboot/cards.h: Likewise.
	* netboot/cs89x0.c: Likewise.
	* netboot/depca.c: Likewise.
	* netboot/eepro100.c: Likewise.
	* netboot/epic100.c: Likewise.
	* netboot/i82586.c: Likewise.
	* netboot/lance.c: Likewise.
	* netboot/linux-asm-string.h: Likewise.
	* netboot/nic.h: Likewise.
	* netboot/ns8390.c: Likewise.
	* netboot/ns8390.h: Likewise.
	* netboot/otulip.c: Likewise.
	* netboot/pci.h: Likewise.
	* netboot/rtl8139.c: Likewise.
	* netboot/sk_g16.c: Likewise.
	* netboot/smc9000.c: Likewise.
	* netboot/tiara.c: Likewise.
	* netboot/tulip.c: Likewise.
	* netboot/via-rhine.c: Likewise.

	* netboot/config.c: Applied a diff between Etherboot-4.6.18 and
	Etherboot-5.0.5 manually.
	* netboot/main.c: Likewise.
	* netboot/pci.c: Likewise.
	* netboot/etherboot.h: Rewritten mostly from scratch, based on
	the same file in Etherboot-5.0.5.
	* netboot/misc.c: Likewise.
	* netboot/osdep.h: Likewise.
	* netboot/fsys_tftp.c (GRUB): Defined.
	(buf_fill): Use rfc2131_sleep_interval instead of rfc951_sleep.

	* stage2/builtins.c [SUPPORT_NETBOOT] (GRUB): Defined.
	(boot_func) [SUPPORT_NETBOOT]: Call cleanup_net.
	* stage2/cmdline.c [SUPPORT_DISKLESS] (GRUB): Defined.
	* stage2/common.c [SUPPORT_DISKLESS] (GRUB): Likewise.
2002-01-02 21:56:40 +00:00
okuji 6e8c6154fb 2002-01-02 Jeremy Katz <katzj@redhat.com>
* stage2/md5.c (md5_password): Ensure the password exists before
	trying to check against the md5 crypted version.
2002-01-02 17:48:41 +00:00
okuji 59d735d43f 2001-12-30 Yoshinori K. Okuji <okuji@gnu.org>
* stage1/stage1.S: Don't call INT 13, AH=48H, because it is
	difficult to call this function with the workaround implemented
	in the previous change due to the size limit of Stage 1.

	(lba_mode) [NO_BUGGY_BIOS_IN_THE_WORLD]: Don't check the
	geometry explicitly. This shouldn't be harmful, as INT 13,
	AH=42H should take care of it, and if you cannot read Stage 2
	even with LBA because of a geometry problem, you can never read
	it.

	* stage2/start.S (lba_mode) [NO_BUGGY_BIOS_IN_THE_WORLD]:
	Likewise.
2001-12-30 08:23:16 +00:00
okuji 4cd09c4b6a 2001-12-30 Yoshinori K. Okuji <okuji@gnu.org>
* stage2/bios.c (get_diskinfo): Clear out the structure DRP
	before calling get_diskinfo_int13_extensions, because the Ralf
	Brown's Interrupt List says that Dell machines using PhoenixBIOS
	4.0 Release 6.0 fail, if DRP.FLAGS is not zero. Setting the
	entire structure to zero may be overkill, but it should be safe.

	* stage2/char_io.c [STAGE1_5] (grub_memset): Defined.
2001-12-30 07:33:23 +00:00
okuji 6ff5668ee4 Add extra space characters into help messages. 2001-12-29 18:10:50 +00:00
okuji f9e7ef1b41 Fix a wrong comment. 2001-12-19 11:17:06 +00:00
okuji 3c17445bfd Fix warnings from gcc-3.0.x. Not very serious. 2001-12-11 07:49:17 +00:00
okuji f51d8ce561 Change the error message from the command "embed" to "No spare sectors on
the disk".
2001-12-09 21:11:38 +00:00
okuji 502a79c799 hide and unhide support logical partitions. 2001-11-28 18:43:56 +00:00
okuji 3a150c2b37 Reorganize the file `AUTHOR', according to the current status of copyright
assignments received by the FSF.

Jason Thomas was added.
Erich Stefan Boleyn was moved into those who assigned their copyrights.
Gordon Matzigkeit was moved into the others, because he still wasn't listed
in fencepost.gnu.org:/gd/gnuorg/copyright.list.

The remaining problem is that we haven't had copyright assignments of
VaX#8, Heiko Schroeder and Gordon Matzigkeit. As for the first two, Erich
is now trying to contact them by proxy. So I'm just waiting.

As for Gordon.... oh, what are you doing, Gordon?! Hurry up, please!
2001-11-12 06:57:29 +00:00
okuji d05b7706ed Fix a compilation bug when disabling serial support. 2001-11-06 16:42:02 +00:00
okuji d619861976 JFS and XFS support is added. 2001-10-27 16:04:25 +00:00
okuji 36fd6bd0fa 2001-10-27 Yoshinori K. Okuji <okuji@gnu.org>
* stage2/apm.S: Always disconnect from APM. Written by Erich
	Stefan Boleyn.

	* util/Makefile.am (noinst_DATA): Removed.
	(EXTRA_DIST): Likewise.
2001-10-27 14:48:39 +00:00
gord e5fd53e574 Update to Automake 1.5 2001-10-15 04:49:50 +00:00
okuji 3785f597a0 Don\'t use get_diskinfo_floppy. 2001-10-13 12:28:37 +00:00
okuji 61928d1323 Ensure that a serial port is set up before used. 2001-10-13 12:02:30 +00:00
jochen 3793b1777b * stage2/fsys_reiserfs.c (reiserfs_super_block): Updated
to better match recent reiserfs versions.
(reiserfs_mount): Handle cases where journal can't be found,
e.g. journal on another disk or unexpected journal parameters.
In that case the journal isn't used.
2001-10-11 11:14:29 +00:00
jochen 62e7ed8b60 * stage2/fsys_reiserfs.c (reiserfs_mount): Don't look at
the superblock field s_journal_block_count anymore.  It used
to contain 0, it never contained a valid value, and now I
have a report that it can contain an invalid value.
2001-10-10 09:23:57 +00:00
jochen 49312f5981 * stage2/fsys_reiserfs.c (reiserfs_dir): Set errnum to
ERR_FSYS_CORRUPT if a symlink can't be read for some reason,
but no error is set by read.
2001-09-24 08:43:38 +00:00
okuji e9d94149ef Set the level of APM support to 1.1, before turning off the power state. 2001-08-08 08:00:01 +00:00
gord 9e195f47c2 Ignore zero-length memory ranges. 2001-08-02 20:05:54 +00:00
jochen cd403b1f05 * stage2/Makefile.am (libgrub_a_CFLAGS): Enable USE_MD5_PASSWORDS
for libgrub.  Previously that was implicitly done by configure.in
until the patch from 2001-07-04, which moved that flag from CFLAGS
to FSYS_CFLAGS.  Reported by YAMAGUCHI Shingo
<shingo@kip.iis.toyama-u.ac.jp>
2001-07-26 13:24:15 +00:00
okuji f2ca2f3ea2 Don't decompress an initrd automatically. 2001-07-05 10:52:59 +00:00
okuji 60415d246c Use automake-1.4h instead of our own version. Some required changes are made. 2001-07-04 07:33:48 +00:00
okuji b7e8ad7e6d ELF symbol loading support is added. 2001-07-03 13:52:28 +00:00
okuji 49230cb103 I forgot to add new files for VSTa filesystem. 2001-06-22 02:33:35 +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
kr 2edd28f97b Implement menu & command-list on dumb terminals. 2001-05-25 07:58:54 +00:00
proski 19477b0574 Add all products of "configure" and "make" to .cvsignore 2001-05-15 15:46:37 +00:00
proski 7c0ea24c90 * stage2/shared.h (ENTRY): Remove unnecessary `##'. 2001-05-15 03:54:39 +00:00
gord 9e3e10d2c1 Don't cast entry_addr to an int. 2001-03-28 17:22:34 +00:00
okuji c610524eb0 avoid Linux 2.2.x memory range check bug. 2001-03-16 09:10:44 +00:00
okuji 348785cfbc If the default entry is wrong, use the fallback entry rather than the first, if possible. 2001-02-28 10:14:54 +00:00
okuji 4b1637c671 add a new option, --disable-auto-linux-mem-opt, into configure. 2001-02-27 15:24:48 +00:00
okuji 1372bfd60a change the check for a Windows partition in chainloader_func, to fix the problem that GRUB cannot be compiled, if FAT support is disabled. 2001-02-27 13:17:40 +00:00
okuji e85272f436 add hercules support. 2001-02-27 12:59:00 +00:00
okuji 2601d0686b fix a bug in chain_stage2. 2001-02-07 23:47:40 +00:00
okuji cf58c5c2a9 lower the maximum address of initrd. 2001-02-03 04:56:13 +00:00
okuji 13aaba9380 add one more check into savedefault. 2001-02-03 04:21:21 +00:00
okuji dc1c0a6ccf improve the robustness of savedefault and default. 2001-02-02 13:39:59 +00:00
okuji 00865a8027 fix the problem that savedefault doesn't work with Stage 1.5. 2001-02-02 13:31:03 +00:00
okuji 7b3aef444e add linux software raid-1 support. 2001-01-27 04:13:39 +00:00
okuji c325ead317 fix typos in setkey_func. 2001-01-15 05:54:09 +00:00
okuji acc6543257 fix some bugs in the example kernel and the Makefile entries. 2001-01-11 23:33:09 +00:00
okuji 7519621c59 add a new command, ifconfig. 2001-01-11 08:08:15 +00:00
okuji ca6efbe093 add a workaround to boot Windows from a logical partition. 2001-01-10 20:48:50 +00:00
okuji 3c8e99279f * stage2/builtins.c (boot_func): In the chain-loading mode,
clear the active flag of each of the loaded partition entries,
	and then set the active flag of the booted partition image.
VS: ----------------------------------------------------------------------
2001-01-06 22:14:59 +00:00