Robert Millan [Tue, 12 Jan 2010 16:49:46 +0000 (16:49 +0000)]
2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2010-01-12 Robert Millan <rmh.grub@aybabtu.com>
Video mode amendment by Vladimir Serbinenko. See NEWS file for
details.
* NEWS: Document video mode amendment.
* doc/multiboot.texi: Video mode ammendment.
* doc/multiboot.h (MULTIBOOT_INFO_VIDEO_INFO): Remove macro.
(MULTIBOOT_INFO_VBE_INFO, MULTIBOOT_INFO_FRAMEBUFFER_INFO): New macros.
(multiboot_uint8_t): New type.
(struct multiboot_color): New structure.
(struct multiboot_info): Add new video mode fields.
(MULTIBOOT_FRAMEBUFFER_TYPE_INDEXED)
(MULTIBOOT_FRAMEBUFFER_TYPE_RGB): New macros.
* doc/boot.S (MULTIBOOT_HEADER_FLAGS): Add `MULTIBOOT_VIDEO_MODE'.
(multiboot_header): Include video mode information.
* doc/kernel.c (cmain): Draw a blue diagonal line when video mode
information is provided.
Robert Millan [Fri, 1 Jan 2010 20:13:23 +0000 (20:13 +0000)]
2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
* autogen.sh: Use `gnulib-tool' to install gendocs.sh.
* Makefile.am (web-manual): New target. Builds a web manual using
gendocs.sh.
* configure.ac (AC_PREREQ): Require Autoconf 2.59 or later.
Robert Millan [Thu, 24 Dec 2009 15:17:08 +0000 (15:17 +0000)]
2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
* autogen.sh: Workaround Automake requirement for NEWS and README.
We really should have them, but in practice we never had. This
ought not be considered a regression.
Robert Millan [Thu, 24 Dec 2009 15:01:37 +0000 (15:01 +0000)]
2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
* docs/multiboot.texi: Misc editorial changes:
Avoid using `commercial' as a synonym for `non-free'
(see http://www.gnu.org/philosophy/words-to-avoid.html#Commercial).
Make a clear distinction between kernels and Operating Systems
(Linux is a kernel, FreeBSD and NetBSD are Operating Systems, Mach
is a microkernel, VSTa is something in-between).
Use 64-bit types to describe 64-bit datum (instead of splitting in
two 32-bit fields). Little endianess assumption applies (as per
Terminology section).
Robert Millan [Thu, 24 Dec 2009 14:25:44 +0000 (14:25 +0000)]
2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
* docs/multiboot.h: Replace with include/multiboot.h from GRUB 2 Bazaar
trunk.
* docs/kernel.c (cmain): Update name references for new multiboot.h
header.
Based on patch from Ville Skyttä <ville.skytta@iki.fi>
* docs/multiboot.texi: Fix some spelling.
* docs/internals.texi: Likewise.
* docs/grub.texi: Likewise.
robertmh [Fri, 28 Mar 2008 13:22:28 +0000 (13:22 +0000)]
2008-03-28 Robert Millan <rmh@aybabtu.com>
Surpass 1 TiB disk addressing limit. Note: there are no plans to handle
the 2 TiB disk limit in GRUB Legacy, since that would need considerable
rework. If you have >2TiB disks, use GRUB 2 instead.
proski [Mon, 5 Nov 2007 01:29:46 +0000 (01:29 +0000)]
* configure.ac: Test if '--build-id=none' is supported by the
linker and add it to LDFLAGS if possible. Build ID causes
objcopy to generate huge binary files.
* aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
linking, so that build ID doesn't break the test.
* stage1/Makefile.am: Preserve LDFLAGS, use stage1_exec_LDFLAGS.
* netboot/natsemi.c: Fix compile error with gcc 4.1.1. Cast
cannot make a variable volatile - it should be declared as such.
* netboot/sis900.c: Likewise.
proski [Fri, 5 May 2006 22:06:31 +0000 (22:06 +0000)]
* stage2/stage2.c (run_menu): Fix "savedefault" to save only top
level menu positions. Remember current position when calling a
submenu. Don't recalculate it when booting from a submenu.
Fixes for kernel of FreeBSD:
* grub/asmstub.c (get_diskinfo): Toggle "kern.geom.debugflags" sysctl
before opening a device for writing.
* util/grub-install.in: Devices don't have this "r" prefix anymore.
okuji [Tue, 21 Mar 2006 20:51:58 +0000 (20:51 +0000)]
2006-03-21 Yoshinori K. Okuji <okuji@enbug.org>
* stage2/builtins.c (setup_func): Specify the size of DEVICE to
grub_strncat instead of a strange number 256. Reported by Vitaly
Fertman <vitaly@namesys.com>.
okuji [Sun, 8 May 2005 02:18:14 +0000 (02:18 +0000)]
2005-05-08 Yoshinori K. Okuji <okuji@enbug.org>
* stage2/fsys_xfs.c (next_dentry): Use arrays of arrays instead of
arrays of pointers for USUAL, to avoid read-only strings. Reported
by Sven Wegener <swegener@gentoo.org>.
okuji [Sun, 27 Mar 2005 23:20:09 +0000 (23:20 +0000)]
2005-03-28 Yoshinori K. Okuji <okuji@enbug.org>
* lib/device.c (get_drive_geometry): Use ST.ST_SIZE instead of
ST.ST_BLOCKS to get the total number of sectors, because st_blocks
is not the same if it is a sparse file.
okuji [Tue, 15 Mar 2005 16:54:24 +0000 (16:54 +0000)]
2005-03-15 Yoshinori K. Okuji <okuji@enbug.org>
* stage2/fsys_fat.c (fat_mount): Ignore the 3rd bit of a media
descriptor, because some BIOSes overwrite this value, according
to the storage mode (e.g. USB Floppy or USB HDD).
okuji [Tue, 15 Feb 2005 22:05:07 +0000 (22:05 +0000)]
2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
* stage2/builtins.c (install_func): If DEST_DRIVE is a hard
disk, enable the workaround in Stage 1 by replacing the jmp
with double nop's.
* stage1/stage1.h (STAGE1_BOOT_DRIVE_CHECK): New macro.
(STAGE1_BOOT_DRIVE_MASK): Removed.
* stage1/stage1.S (boot_drive_check): New label. This implements
a different workaround for buggy BIOSes which don't pass boot
drive correctly. This is effective for BIOSes which pass a value
without the seventh bit (0x80).
(boot_drive_mask): Removed.
okuji [Thu, 3 Feb 2005 10:01:14 +0000 (10:01 +0000)]
2005-02-03 Yoshinori K. Okuji <okuji@enbug.org>
* grub/asmstub.c (console_current_color): Make it global as
declared.
(grub_stage2): Tweak the declaration and the definition of the
nested function doit.
jthomas [Sun, 10 Oct 2004 22:47:23 +0000 (22:47 +0000)]
* docs/kernel.c.texi (cmain): Incremement mod by one, instead of
sizeof(module_t), since it's already a pointer of type module_t.
* docs/kernel.c (cmain): Do the same.
okuji [Sun, 20 Jun 2004 13:48:47 +0000 (13:48 +0000)]
2004-06-20 Yoshinori K. Okuji <okuji@enbug.org>
This is a big change on saving a default entry. This change
makes it possible to set up a quite robust system using GRUB.
Now we do not use the second sector of Stage 2 to store an
entry number but use the file /boot/grub/default. This file
must be generated by grub-set-default, although this file is
plain-text.
* util/grub-set-default.in: New file.
* util/grub-install.in (grub_set_default): New variable.
Use /grub instead of /boot/grub on OpenBSD as well as NetBSD.
Run grub-set-default to make a default file.
* stage2/stage2.c (run_menu): Change the fallback handling to
support multiple fallback entries.
(cmain): Likewise. Also, get a saved entry from a default file
if possible, before reading a config file.
* stage2/shared.h (DEFAULT_FILE_BUF): New macro.
(DEFAULT_FILE_BUFLEN): Likewise.
(CMDLINE_BUF): Set to DEFAULT_FILE_BUF + DEFAULT_FILE_BUFLEN.
(MENU_BUFLEN): Set to 0x8000 + PASSWORD_BUF - MENU_BUF.
(fallback_entry): Removed.
(fallback_entries): Declared.
(fallback_entryno): Likewise.
(MAX_FALLBACK_ENTRIES): New macro.
* stage2/cmdline.c (run_script): Use FALLBACK_ENTRYNO instead of
FALLBACK_ENTRY.
* stage2/builtins.c (fallback_entry): Removed.
(fallback_entryno): New variable.
(fallback_entries): Likewise.
(init_config): Initialize FALLBACK_ENTRYNO and FALLBACK_ENTRIES.
(fallback_func): Rewritten completely.
(savedefault_func): Likewise.
* docs/grub.texi (grub-set-default): New direntry.
(Installation): Describe grub-set-default for manual
installations.
(Making your system robust): New section.
(Booting once-only): New subsection.
(Booting fallback systems): Likewise.
(fallback): Describe multiple fallback entries.
(savedefault): Describe an optional argument.
(Invoking grub-set-default): New chapter.
(Future): Replaced with a description about GRUB 2.