]> git.proxmox.com Git - grub2.git/log
grub2.git
15 years ago2009-02-13 Colin D Bennett <colin@gibibit.com>
cbennett [Fri, 13 Feb 2009 20:06:27 +0000 (20:06 +0000)]
2009-02-13  Colin D Bennett  <colin@gibibit.com>

Support multiple fallback entries, and provide an API to support
executing default+fallback menu entries.  Renamed the `terminal' menu
viewer to `text'.

* include/grub/normal.h (grub_normal_text_menu_viewer): New global
variable declaration.
(grub_menu_execute_callback): New structure declaration.
(grub_menu_execute_callback_t): New typedef.
(grub_menu_execute_with_fallback): New function declaration.
(grub_menu_get_entry): Likewise.
(grub_menu_get_timeout): Likewise.
(grub_menu_set_timeout): Likewise.

* normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.

* normal/menu.c (grub_wait_after_message): Moved to
`normal/menu_text.c'.
(draw_border): Likewise.
(print_message): Likewise.
(print_entry): Likewise.
(print_entries): Likewise.
(grub_menu_init_page): Likewise.
(get_entry_number): Likewise.
(print_timeout): Likewise.
(run_menu): Likewise.
(grub_menu_execute_entry): Likewise.
(show_text_menu): Likewise.
(get_and_remove_first_entry_number): New function.
(grub_menu_execute_with_fallback): Likewise.
(get_entry): Renamed to ...
(grub_menu_get_entry): .. this and made it global.
(get_timeout): Renamed to ...
(grub_menu_get_timeout): ... this and made it global.
(set_timeout): Renamed to ...
(grub_menu_set_timeout): ... this and made it global.
(grub_normal_terminal_menu_viewer): Renamed to ...
(grub_normal_text_menu_viewer): ... this.

* normal/menu_text.c: New file.  Extracted text-menu-specific code
from normal/menu.c.

* conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
(normal_mod_SOURCES): Likewise.

* conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
(normal_mod_SOURCES): Likewise.

* conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
(normal_mod_SOURCES): Likewise.

* conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
(normal_mod_SOURCES): Likewise.

* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
(normal_mod_SOURCES): Likewise.

* conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
(normal_mod_SOURCES): Likewise.

* conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
(normal_mod_SOURCES): Likewise.

15 years ago2009-02-11 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 11 Feb 2009 00:36:58 +0000 (00:36 +0000)]
2009-02-11  Robert Millan  <rmh@aybabtu.com>

        * util/grub.d/00_header.in: Update old reference to `font' command.

15 years ago2009-02-10 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Tue, 10 Feb 2009 09:50:08 +0000 (09:50 +0000)]
2009-02-10  Felix Zielcke  <fzielcke@z-51.de>

* fs/fat.c (grub_fat_mount): Fix wrong comparison.

Based on patch from Javier Martín.

15 years ago2009-02-09 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Mon, 9 Feb 2009 18:00:36 +0000 (18:00 +0000)]
2009-02-09  Felix Zielcke  <fzielcke@z-51.de>

* conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
to avoid false posivites with FAT.
(grub_fstest_SOURCES): Likewise.
* conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
* conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
* conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
* conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
* conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.

15 years ago2009-02-09 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Mon, 9 Feb 2009 14:17:19 +0000 (14:17 +0000)]
2009-02-09  Felix Zielcke  <fzielcke@z-51.de>

fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
bpb.version_specific.fat12_or_fat16.fstype and
bpb.version_specific.fat32.fstype.

15 years agoFix ChangeLog entry
robertmh [Sun, 8 Feb 2009 22:11:48 +0000 (22:11 +0000)]
Fix ChangeLog entry

15 years ago2009-02-08 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 8 Feb 2009 21:50:27 +0000 (21:50 +0000)]
2009-02-08  Robert Millan  <rmh@aybabtu.com>

        * fs/tar.c: Replace "fs/cpio.h" with "cpio.h".

15 years ago2009-02-08 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 8 Feb 2009 19:59:32 +0000 (19:59 +0000)]
2009-02-08  Robert Millan  <rmh@aybabtu.com>

        * Makefile.in (host_os, host_cpu): New variables.
        (target_os): Remove.  Update all users.

15 years ago2009-02-08 Marco Gerards <marco@gnu.org>
robertmh [Sun, 8 Feb 2009 17:58:32 +0000 (17:58 +0000)]
2009-02-08  Marco Gerards  <marco@gnu.org>

        * Makefile.in (enable_grub_emu_usb): New variable.
        * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
        (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
        `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
        (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
        (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
        `usbtest.mod' and `usbms.mod'.
        (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
        (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
        (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
        (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
        (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
        variables.

        * disk/usbms.c: New file.

        * include/grub/usb.h: Likewise.

        * include/grub/usbtrans.h: Likewise.

        * include/grub/usbdesc.h: Likewise.

        * bus/usb/usbtrans.c: Likewise.

        * bus/usb/ohci.c: Likewise.

        * bus/usb/uhci.c: Likewise.

        * bus/usb/usbhub.c: Likewise.

        * bus/usb/usb.c: Likewise.

        * commands/usbtest.c: Likewise.

        * util/usb.c: Likewise.

        * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.

        * configure.ac: Test for libusb presence.

        * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.

15 years ago2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
chaac [Sun, 8 Feb 2009 10:52:03 +0000 (10:52 +0000)]
2009-02-08  Vesa Jääskeläinen  <chaac@nic.fi>

* kern/mm.c: Add more comments.

15 years agoForgot tar.c
robertmh [Sun, 8 Feb 2009 00:51:22 +0000 (00:51 +0000)]
Forgot tar.c

15 years ago2009-02-08 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 8 Feb 2009 00:28:09 +0000 (00:28 +0000)]
2009-02-08  Robert Millan  <rmh@aybabtu.com>

        Patch from Javier Martín.
        * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
        `EXT4_FEATURE_INCOMPAT_FLEX_BG'.

15 years ago2009-02-08 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 7 Feb 2009 23:38:01 +0000 (23:38 +0000)]
2009-02-08  Robert Millan  <rmh@aybabtu.com>

        * fs/cpio.c: Split tar functionality to ...
        * fs/tar.c: ... here (new file).  Update all users.

15 years ago2009-02-07 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 7 Feb 2009 23:13:48 +0000 (23:13 +0000)]
2009-02-07  Robert Millan  <rmh@aybabtu.com>

        * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
        backward-incompatible features.

        Based on patch from Javier Martín, with some adjustments.

15 years ago2009-02-07 Michael Scherer <misc@mandriva.org>
robertmh [Sat, 7 Feb 2009 20:57:23 +0000 (20:57 +0000)]
2009-02-07  Michael Scherer <misc@mandriva.org>

        * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.

15 years ago2009-02-07 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 7 Feb 2009 20:55:48 +0000 (20:55 +0000)]
2009-02-07  Robert Millan  <rmh@aybabtu.com>

        * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
        position of `disk/lvm.c\' to ensure grub_init_all() always picks it
        after the RAID stuff.

15 years ago2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
chaac [Thu, 5 Feb 2009 18:28:58 +0000 (18:28 +0000)]
2009-02-05  Vesa Jääskeläinen  <chaac@nic.fi>

Fixes problem when running vbetest command as reported by
Vladimir Serbinenko <phcoder@gmail.com>.

* (grub_vbe_set_video_mode): Fixed problem with text modes.

15 years ago2009-02-04 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Wed, 4 Feb 2009 10:52:25 +0000 (10:52 +0000)]
2009-02-04  Felix Zielcke  <fzielcke@z-51.de>

util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
/dev/md/NpN style mdraid devices.

15 years agoFix typos and extra spaces
proski [Tue, 3 Feb 2009 22:33:45 +0000 (22:33 +0000)]
Fix typos and extra spaces

15 years ago2009-02-03 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Tue, 3 Feb 2009 20:23:33 +0000 (20:23 +0000)]
2009-02-03  Felix Zielcke  <fzielcke@z-51.de>

* util/unifont2pff.rb: Remove.

15 years ago2009-02-03 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Tue, 3 Feb 2009 13:34:52 +0000 (13:34 +0000)]
2009-02-03  Felix Zielcke  <fzielcke@z-51.de>

* conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
`#'.

15 years ago2009-02-03 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Tue, 3 Feb 2009 13:22:26 +0000 (13:22 +0000)]
2009-02-03  Felix Zielcke  <fzielcke@z-51.de>

* conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
* conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
* conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
* conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
* conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
* conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.

15 years ago2009-02-02 Christian Franke <franke@computer.org>
chrfranke [Mon, 2 Feb 2009 19:43:14 +0000 (19:43 +0000)]
2009-02-02  Christian Franke  <franke@computer.org>

* lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.

15 years ago2009-02-01 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Sun, 1 Feb 2009 16:17:32 +0000 (16:17 +0000)]
2009-02-01  Felix Zielcke  <fzielcke@z-51.de>

* INSTALL: Note that we now require at least autconf 2.59 and that LZO
is optional.

15 years ago2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
chaac [Sun, 1 Feb 2009 09:33:29 +0000 (09:33 +0000)]
2009-02-01  Vesa Jääskeläinen  <chaac@nic.fi>

Base on patch on bug #24154 created by Tomas Tintera
<trosos@seznam.cz>.

* video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.

15 years ago2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
chaac [Sun, 1 Feb 2009 09:03:15 +0000 (09:03 +0000)]
2009-02-01  Vesa Jääskeläinen  <chaac@nic.fi>

Based on patch on bug #25318 created by Bernhard Rosenkraenzer
<bero@arklinux.org>.

* normal/parser.y (script_init): Add missing semicolon.

15 years ago2009-01-31 Colin D Bennett <colin@gibibit.com>
chaac [Sat, 31 Jan 2009 09:15:43 +0000 (09:15 +0000)]
2009-01-31  Colin D Bennett  <colin@gibibit.com>

* normal/main.c: Add include to grub/menu_viewer.h.
(free_menu_entry_classes): Added.
(grub_normal_menu_addentry): Added class property handling.
(grub_normal_execute): Changed to use new menu viewer for menu viewing.
(GRUB_MOD_INIT(normal)): Added register for text based menu viewer.

* normal/menu_viewer.c: New file.

* normal/menu.c (run_menu_entry): Renamed to ...
(grub_menu_execute_entry): ... this and made it as global.
(grub_menu_run): Renamed to ...
(show_text_menu): ... this and made it local.
(show_text_menu): Adapt to new function names.
(grub_normal_terminal_menu_viewer): New global variable.

* include/grub/menu.h: New file.

* include/grub/menu_viewer.h: New file.

* include/grub/normal.h: Added include to grub/menu.h.
(grub_menu_entry): Moved to include/grub/menu.h.
(grub_menu_entry_t): Likewise.
(grub_menu): Likewise.
(grub_menu_t): Likewise.
(grub_normal_terminal_menu_viewer): Added.
(grub_menu_execute_entry): Likewise.
(grub_menu_run): Removed.

* DISTLIST: Added include/grub/menu.h.
Added include/grub/menu_viewer.h.
Added normal/menu_viewer.c.

2009-01-31  Vesa Jääskeläinen  <chaac@nic.fi>

* normal/execute.c (grub_script_execute_menuentry): Changed to use
arglist for menutitle arguments.

* normal/main.c (grub_normal_menu_addentry): Likewise.

* normal/parser.y (menuentry): Likewise.

* normal/script.c (grub_script_create_cmdmenu): Likewise.

* include/grub/script.h (grub_script_cmd_menuentry): Likewise.
(grub_script_create_cmdmenu): Likewise.

* include/grub/normal.h (grub_normal_menu_addentry): Likewise.

* conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
changes.

* conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.

* conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.

* conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.

* conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.

* conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.

* conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.

15 years ago2009-01-30 Christian Franke <franke@computer.org>
chrfranke [Fri, 30 Jan 2009 21:10:17 +0000 (21:10 +0000)]
2009-01-30  Christian Franke  <franke@computer.org>

* normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
in option help text.

15 years ago2009-01-27 Pavel Roskin <proski@gnu.org>
proski [Wed, 28 Jan 2009 02:19:07 +0000 (02:19 +0000)]
2009-01-27  Pavel Roskin  <proski@gnu.org>

* disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.

15 years ago2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
chaac [Tue, 27 Jan 2009 19:07:32 +0000 (19:07 +0000)]
2009-01-27  Vesa Jääskeläinen  <chaac@nic.fi>

* commands/lsmmap.c: Add include to grub/machine/memory.h.

* fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.

* term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
unregister function.

15 years ago2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
chaac [Tue, 27 Jan 2009 18:26:09 +0000 (18:26 +0000)]
2009-01-27  Vesa Jääskeläinen  <chaac@nic.fi>

* disk/scsi.c (grub_scsi_read): Fix sign problem.

* term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.

* util/grub-mkfont.c (usage): Fix typo.

* util/elf/grub-mkimage.c (load_modules): Fix warning.

15 years ago2009-01-26 Daniel Mierswa <impulze@impulze.org>
proski [Mon, 26 Jan 2009 04:35:57 +0000 (04:35 +0000)]
2009-01-26  Daniel Mierswa  <impulze@impulze.org>

* fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.

15 years ago2009-01-26 Daniel Mierswa <impulze@impulze.org>
proski [Mon, 26 Jan 2009 04:26:47 +0000 (04:26 +0000)]
2009-01-26  Daniel Mierswa  <impulze@impulze.org>

* commands/search.c (search_fs_uuid): Ignore case of the UUID.

15 years ago2009-01-26 Daniel Mierswa <impulze@impulze.org>
proski [Mon, 26 Jan 2009 04:22:44 +0000 (04:22 +0000)]
2009-01-26  Daniel Mierswa  <impulze@impulze.org>

* kern/misc.c (grub_strcasecmp): New function.
(grub_strcasecmp): Use grub_size_t instead of int for length.
Fix return value.
* include/grub/misc.h: Update function prototypes.

15 years agoRemove trailing whitespace
proski [Mon, 26 Jan 2009 04:05:54 +0000 (04:05 +0000)]
Remove trailing whitespace

15 years ago2009-01-26 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 25 Jan 2009 23:04:46 +0000 (23:04 +0000)]
2009-01-26  Robert Millan  <rmh@aybabtu.com>

        * configure.ac: Fix cross-compilation check.

15 years ago2009-01-22 Christian Franke <franke@computer.org>
chrfranke [Thu, 22 Jan 2009 20:27:52 +0000 (20:27 +0000)]
2009-01-22  Christian Franke  <franke@computer.org>

* kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
(precision) digit string.  Allow `.format2' without `format1' (width).
Limit input chars for `%s' output to `format2' if specified.  This is
compatible with standard printf ().

15 years ago2009-01-22 Christian Franke <franke@computer.org>
chrfranke [Thu, 22 Jan 2009 20:15:05 +0000 (20:15 +0000)]
2009-01-22  Christian Franke  <franke@computer.org>

* disk/ata.c (grub_ata_wait_status): Replace by ...
(grub_ata_wait_not_busy): ... this function.  Checks only BSY bit,
other status bits may be invalid while BSY is asserted.
(grub_ata_check_ready): New function.
(grub_ata_cmd): Removed.
(grub_ata_wait_drq): New function.
(grub_ata_strncpy): Remove inline.
(grub_ata_pio_read): Reduce to actual block transfer.  BSY wait
and error check now done by grub_ata_wait_drq ().
(grub_ata_pio_write): Likewise.
(grub_atapi_identify): Set DEV before check for !BSY.  Use
grub_ata_wait_drq () to wait for data.
(grub_ata_device_initialize): Add status register check to
detect missing SATA slave devices.  Add debug messages.
(grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
(grub_atapi_packet): Set DEV before check for !BSY.  Replace
transfer loop by grub_ata_pio_write ().
(grub_ata_identify): Set DEV before check for !BSY. Use
grub_ata_wait_drq () to wait for data.
(grub_ata_setaddress): Set DEV before check for !BSY.
(grub_ata_readwrite): Remove duplicate code, handle batch/rest and
read/write in one loop.  Fix invalid command on write.  Fix incomplete
command on (size % batch) == 0.  Add missing error check after write of
last block.  Add debug messages.
(grub_atapi_read):  Replace transfer loop by grub_ata_pio_read ().

15 years ago2009-01-19 Christian Franke <franke@computer.org>
chrfranke [Mon, 19 Jan 2009 20:39:57 +0000 (20:39 +0000)]
2009-01-19  Christian Franke  <franke@computer.org>

* disk/ata.c (GRUB_ATAPI_REG_*): New defines.
(GRUB_ATAPI_IREASON_*): Likewise.
(grub_ata_pio_write): Fix timeout error return.
(grub_atapi_identify): Add grub_ata_wait () after cmd.
(grub_atapi_wait_drq): New function.
(grub_atapi_packet): New parameter `size'.
Use grub_atapi_wait_drq () and direct write instead of
grub_ata_pio_write ().
(grub_atapi_read): Replace grub_ata_pio_read () by a loop which
reads the number of bytes requested by the device for each DRQ
assertion.
(grub_atapi_write): Remove old implementation, return not
implemented instead.

15 years ago2009-01-19 Christian Franke <franke@computer.org>
chrfranke [Mon, 19 Jan 2009 20:27:54 +0000 (20:27 +0000)]
2009-01-19  Christian Franke  <franke@computer.org>

* disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
of 512 to calculate data size.
(grub_scsi_read12): Likewise.
(grub_scsi_write10): Likewise.
(grub_scsi_write12): Likewise.
(grub_scsi_read): Adjust size according to blocksize.
Add checks for invalid blocksize and unaligned transfer.

15 years ago2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
chaac [Mon, 19 Jan 2009 17:09:53 +0000 (17:09 +0000)]
2009-01-19  Vesa Jääskeläinen  <chaac@nic.fi>

* font/font.c (grub_font_loader_init): Re-position unknown glyph.

* term/gfxterm.c (write_char): Fix background rendering for wide
width glyphs.

15 years ago2009-01-19 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 19 Jan 2009 12:33:07 +0000 (12:33 +0000)]
2009-01-19  Robert Millan  <rmh@aybabtu.com>

        * config.guess: Update to latest version from config git.
        * config.sub: Likewise.

15 years ago2009-01-17 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Sat, 17 Jan 2009 09:38:38 +0000 (09:38 +0000)]
2009-01-17  Felix Zielcke  <fzielcke@z-51.de>

* Makefile.in: Change font compilation to use new grub-mkfont instead
of java version.

* util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
* util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
* util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.

15 years ago2009-01-16 Christian Franke <franke@computer.org>
chrfranke [Fri, 16 Jan 2009 19:29:41 +0000 (19:29 +0000)]
2009-01-16  Christian Franke  <franke@computer.org>

* disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
(enum grub_ata_timeout_milliseconds): New enum.
(grub_ata_wait_status): Add parameter milliseconds.
(grub_ata_cmd): Remove variable `err'.  Remove wait for !DRQ to allow
recovery from timed-out commands.
(grub_ata_pio_read): Add parameter milliseconds.  Fix error return,
return grub_errno instead of REG_ERROR.
(grub_ata_pio_write): Add parameter milliseconds.
(grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
Pass milliseconds to grub_ata_wait_status () and
grub_ata_pio_read ().
(grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
(grub_ata_identify): Remove variable `ataerr'.  Pass milliseconds to
grub_ata_wait_status ().  Fix IDENTIFY timeout check.
(grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
It is not suitable for device detection, because DEV bit is ignored,
the command may run too long, and not all devices set the signature
properly.
(grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
(grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
Fix device selection, DEV bit must be set first to address the registers
of the correct device.
(grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
grub_ata_pio_read/write ().
(grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
(grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().

15 years ago2009-01-13 Carles Pina i Estany <carles@pina.cat>
proski [Wed, 14 Jan 2009 00:17:12 +0000 (00:17 +0000)]
2009-01-13  Carles Pina i Estany  <carles@pina.cat>

* util/grub-editenv.c (main): Use fseeko(), not fseek().

15 years agoSpacing fixes
proski [Wed, 14 Jan 2009 00:13:52 +0000 (00:13 +0000)]
Spacing fixes

15 years ago2009-01-13 Bean <bean123ch@gmail.com>
bean [Tue, 13 Jan 2009 17:03:13 +0000 (17:03 +0000)]
2009-01-13  Bean <bean123ch@gmail.com>

* util/grub-mkfont.c (write_font): forget to remove some debug code.

15 years ago2009-01-13 Bean <bean123ch@gmail.com>
bean [Tue, 13 Jan 2009 16:34:26 +0000 (16:34 +0000)]
2009-01-13  Bean <bean123ch@gmail.com>

* Makefile.in: (enable_grub_mkfont): New variable.
(freetype_cflags): Likewise.
(freetype_libs): Likewise.

* common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
(grub_mkfont_SOURCES): New variable.
(grub_mkfont_CFLAGS): Likewise.
(grub_mkfont_LDFLAGS): Likewise.

* configure.ac (--enable-grub-mkfont): New option. Check for freetype2
library if `--enable-grub-mkfont' is requested.
(enable_grub_mkfont): New variable.
(freetype_cflags): Likewise.
(freetype_libs): Likewise.

* util/grub-mkfont.c: New file.

15 years ago2009-01-12 Christian Franke <franke@computer.org>
chrfranke [Mon, 12 Jan 2009 20:23:13 +0000 (20:23 +0000)]
2009-01-12  Christian Franke  <franke@computer.org>

* disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
mode check.  Fix setting of compat_use[].

15 years ago2009-01-10 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 10 Jan 2009 13:07:44 +0000 (13:07 +0000)]
2009-01-10  Robert Millan  <rmh@aybabtu.com>

            Update a few copyright years which we forgot to do in 2008 (only for
            files whose changes made in 2008 were copyright-significant)

            * Makefile.in: Add 2008 to Copyright line.
            * disk/ieee1275/ofdisk.c: Likewise.
            * disk/efi/efidisk.c: Likewise.
            * kern/dl.c: Likewise.
            * kern/sparc64/ieee1275/init.c: Likewise.
            * kern/mm.c: Likewise.
            * kern/efi/mm.c: Likewise.
            * boot/i386/pc/boot.S: Likewise.
            * genfslist.sh: Likewise.
            * fs/iso9660.c: Likewise.
            * fs/hfs.c: Likewise.
            * fs/jfs.c: Likewise.
            * fs/minix.c: Likewise.
            * fs/ufs.c: Likewise.
            * gensymlist.sh.in: Likewise.
            * genkernsyms.sh.in: Likewise.
            * include/grub/misc.h: Likewise.
            * include/grub/types.h: Likewise.
            * include/grub/symbol.h: Likewise.
            * include/grub/elf.h: Likewise.
            * include/grub/kernel.h: Likewise.
            * include/grub/disk.h: Likewise.
            * include/grub/dl.h: Likewise.
            * include/grub/i386/linux.h: Likewise.
            * include/grub/i386/pc/biosdisk.h: Likewise.
            * include/grub/efi/api.h: Likewise.
            * include/grub/efi/pe32.h: Likewise.
            * include/grub/util/misc.h: Likewise.
            * normal/execute.c: Likewise.
            * normal/arg.c: Likewise.
            * normal/completion.c: Likewise.
            * normal/lexer.c: Likewise.
            * normal/parser.y: Likewise.
            * normal/misc.c: Likewise.
            * commands/i386/pc/vbeinfo.c: Likewise.
            * commands/hexdump.c: Likewise.
            * commands/terminal.c: Likewise.
            * commands/ls.c: Likewise.
            * commands/help.c: Likewise.
            * partmap/pc.c: Likewise.
            * loader/efi/chainloader.c: Likewise.
            * loader/multiboot_loader.c: Likewise.
            * loader/i386/pc/multiboot2.c: Likewise.
            * term/efi/console.c: Likewise.
            * term/i386/pc/serial.c: Likewise.
            * util/lvm.c: Likewise.
            * util/console.c: Likewise.
            * util/i386/efi/grub-mkimage.c: Likewise.
            * util/raid.c: Likewise.

15 years agoForgot to regenerate after last changes.
chaac [Mon, 5 Jan 2009 23:14:32 +0000 (23:14 +0000)]
Forgot to regenerate after last changes.

15 years ago2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
chaac [Mon, 5 Jan 2009 23:01:00 +0000 (23:01 +0000)]
2009-01-06  Vesa Jääskeläinen  <chaac@nic.fi>

* commands/videotest.c: Removed include to grub/machine/memory.h.

* conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
(video_mod_SOURCES): Removed.
(video_mod_CFLAGS): Likewise.
(video_mod_LDFLAGS): Likewise.
(gfxterm_mod_SOURCES): Likewise.
(gfxterm_mod_CFLAGS): Likewise.
(gfxterm_mod_LDFLAGS): Likewise.
(videotest_mod_SOURCES): Likewise.
(videotest_mod_CFLAGS): Likewise.
(videotest_mod_LDFLAGS): Likewise.
(bitmap_mod_SOURCES): Likewise.
(bitmap_mod_CFLAGS): Likewise.
(bitmap_mod_LDFLAGS): Likewise.
(tga_mod_SOURCES): Likewise.
(tga_mod_CFLAGS): Likewise.
(tga_mod_LDFLAGS): Likewise.
(jpeg_mod_SOURCES): Likewise.
(jpeg_mod_CFLAGS): Likewise.
(jpeg_mod_LDFLAGS): Likewise.
(png_mod_SOURCES): Likewise.
(png_mod_CFLAGS): Likewise.
(png_mod_LDFLAGS): Likewise.

* conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
(video_mod_SOURCES): Added.
(video_mod_CFLAGS): Likewise.
(video_mod_LDFLAGS): Likewise.
(videotest_mod_SOURCES): Likewise.
(videotest_mod_CFLAGS): Likewise.
(videotest_mod_LDFLAGS): Likewise.
(bitmap_mod_SOURCES): Likewise.
(bitmap_mod_CFLAGS): Likewise.
(bitmap_mod_LDFLAGS): Likewise.
(tga_mod_SOURCES): Likewise.
(tga_mod_CFLAGS): Likewise.
(tga_mod_LDFLAGS): Likewise.
(jpeg_mod_SOURCES): Likewise.
(jpeg_mod_CFLAGS): Likewise.
(jpeg_mod_LDFLAGS): Likewise.
(png_mod_SOURCES): Likewise.
(png_mod_CFLAGS): Likewise.
(png_mod_LDFLAGS): Likewise.
(gfxterm_mod_SOURCES): Likewise.
(gfxterm_mod_CFLAGS): Likewise.
(gfxterm_mod_LDFLAGS): Likewise.

* term/gfxterm.c: Removed include to grub/machine/memory.h,
grub/machine/console.h.

15 years ago2009-01-04 Jerone Young <jerone@gmail.com>
jerone [Mon, 5 Jan 2009 05:25:05 +0000 (05:25 +0000)]
2009-01-04  Jerone Young  <jerone@gmail.com>

        Make on screen instructions clearer

        Based on patch created by Jidanni <jidanni@jidanni.org>

        * normal/menu.c: print clearer instructions on the screen

15 years agoFix typos, trailing whitespace
proski [Fri, 2 Jan 2009 23:38:44 +0000 (23:38 +0000)]
Fix typos, trailing whitespace

15 years ago2009-01-02 Colin D Bennett <colin@gibibit.com>
chaac [Fri, 2 Jan 2009 15:26:06 +0000 (15:26 +0000)]
2009-01-02  Colin D Bennett  <colin@gibibit.com>

New font engine.

Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
build system and fixed gfxterm.c to work with different sized fonts.

* configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.

* configure: Re-generated.

* DISTLIST: Removed font/manager.c.
Added font/font.c.
Added font/font_cmd.c.

* Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF.  Added Font tool
compilation.

* include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype.  Changed users.

* kern/misc.c (grub_utf8_to_ucs4): Changed prototype.

* kern/term.c: Changed users of grub_utf8_to_ucs4.

* normal/menu.c: Likewise.

* conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
(font_mod_SOURCES): Added font/font_cmd.c, font/font.c.

* include/grub/font.h: Replaced with new file.

* include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
(GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
(GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
(GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
(grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
(grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
fg_red, fg_green, fg_blue, fg_alpha.
(grub_video_adapter): Removed blit_glyph.
(grub_video_blit_glyph): Removed.

* font/manager.c: Removed file.

* font/font.c: New file.

* font/font_cmd.c: Likewise.

* video/video.c (grub_video_blit_glyph): Removed.

* video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
(grub_video_vbe_map_rgba): Likewise.
(grub_video_vbe_unmap_color_int): Likewise.
(grub_video_vbe_blit_glyph): Removed.
(grub_video_vbe_adapter): Removed blit_glyph.

* video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
(get_pixel): Likewise.
(set_pixel): Likewise.

* commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.

* term/gfxterm.c: Adapted to new font engine.

* term/i386/pc/vesafb.c: Marked as deprecated.  Made it compile.

* term/i386/pc/vga.c: Likewise.

* util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.

* util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.

* util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.

* util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.

* util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.

* util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.

* util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.

* util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.

* util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.

* util/grub.d/00_header.in: Changed to use new loadfont command.

* util/grub-mkconfig_lib.in: Changed font extension.

15 years ago2008-12-28 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Sun, 28 Dec 2008 16:20:30 +0000 (16:20 +0000)]
2008-12-28  Felix Zielcke  <fzielcke@z-51.de>

* util/getroot.c (grub_util_get_grub_dev): Add support for
/dev/md/dNNpNN style partitionable mdraid devices.

15 years ago2008-12-12 Alex Smith <alex@alex-smith.me.uk>
bean [Fri, 12 Dec 2008 04:12:05 +0000 (04:12 +0000)]
2008-12-12  Alex Smith  <alex@alex-smith.me.uk>

* fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
at a time limit of the PXE TFTP API correctly.
(grub_pxefs_close): Likewise.

15 years ago2008-11-29 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 29 Nov 2008 21:05:59 +0000 (21:05 +0000)]
2008-11-29  Robert Millan  <rmh@aybabtu.com>

        * disk/ata.c (grub_ata_pciinit): Handle errors rised by
        grub_ata_device_initialize() calls.

15 years ago2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
robertmh [Fri, 28 Nov 2008 20:10:36 +0000 (20:10 +0000)]
2008-11-28  Krzysztof Smiechowicz <deadwood@wp.pl>

        * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
        iteration failed.
        * fs/sfs.c (grub_sfs_iterate_dir): Likewise.

15 years ago Provide grub-install on coreboot.
robertmh [Fri, 28 Nov 2008 20:06:55 +0000 (20:06 +0000)]
    Provide grub-install on coreboot.
        * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
        (grub_install_SOURCES): New variable.
        * util/i386/pc/grub-install.in: Add a few condition checks to make it
        usable on coreboot.

15 years ago2008-11-28 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 28 Nov 2008 19:56:19 +0000 (19:56 +0000)]
2008-11-28  Robert Millan  <rmh@aybabtu.com>

        Fix build on powerpc-ieee1275.  Based on patch created by
        Manoel Abranches <mrabran@linux.vnet.ibm.com>.
        * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
        `kern/ieee1275/mmap.c'.
        * include/grub/powerpc/ieee1275/memory.h: New file.

15 years ago2008-11-25 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Tue, 25 Nov 2008 16:40:17 +0000 (16:40 +0000)]
2008-11-25  Felix Zielcke  <fzielcke@z-51.de>

* util/grub-fstest.c (grub_term_get_current_input): Change return type
to `grub_term_input_t'.
(grub_term_get_current_output): Change return type to
`grub_term_output_t'.

15 years ago * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
robertmh [Sat, 22 Nov 2008 20:13:22 +0000 (20:13 +0000)]
    * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
        to 0x200000 (avoids trouble with some OFW implementations, and matches
        with the one in Yaboot).
        Reported by Manoel Abranches

15 years ago * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
robertmh [Sat, 22 Nov 2008 15:00:39 +0000 (15:00 +0000)]
    * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
        comments.  Avoid copiing one more byte than necessary (just in case).

15 years ago2008-11-22 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 22 Nov 2008 14:56:52 +0000 (14:56 +0000)]
2008-11-22  Robert Millan  <rmh@aybabtu.com>

        Fix breakage on coreboot due to declaration missmatch.
        * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
        (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
        grub_vga_text_cls().

15 years ago Add `lsmmap' command (lists firmware-provided memory map):
robertmh [Thu, 20 Nov 2008 20:34:14 +0000 (20:34 +0000)]
    Add `lsmmap' command (lists firmware-provided memory map):
        * commands/lsmmap.c: New file.
        * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
        (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
        variables.
        * conf/powerpc-ieee1275.rmk: Likewise.
        * conf/i386-coreboot.rmk: Likewise.
        * conf/i386-ieee1275.rmk: Likewise.

15 years ago Harmonize ieee1275's grub_available_iterate() with the generic
robertmh [Thu, 20 Nov 2008 20:30:24 +0000 (20:30 +0000)]
    Harmonize ieee1275's grub_available_iterate() with the generic
        grub_machine_mmap_iterate() interface (fixes a recently-introduced
        build problem on i386-ieee1275):
        * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
        * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here.  Add third
        parameter `type'.  Update all users of this function.
        * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
        `kern/ieee1275/mmap.c'.
        * kern/ieee1275/init.c
        * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
        with ...
        (grub_machine_mmap_iterate): ... this.
        * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
        return type to `grub_err_t'.  Update all implementations of this
        function prototype.
        * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
        Likewise.

15 years ago Move comment text to `#error' stanza.
robertmh [Thu, 20 Nov 2008 20:25:30 +0000 (20:25 +0000)]
    Move comment text to `#error' stanza.

15 years ago * loader/i386/linux.c (allocate_pages): Fix a warning.
robertmh [Thu, 20 Nov 2008 20:22:04 +0000 (20:22 +0000)]
    * loader/i386/linux.c (allocate_pages): Fix a warning.

15 years ago * util/grub-mkconfig_lib.in (grub_warn): New function.
robertmh [Thu, 20 Nov 2008 19:22:20 +0000 (19:22 +0000)]
    * util/grub-mkconfig_lib.in (grub_warn): New function.
        (convert_system_path_to_grub_path): Use grub_warn() when issuing
        warnings, to obtain consistent formatting.
        * util/grub.d/00_header.in: Likewise.
        * util/update-grub_lib.in: Likewise.

15 years ago2008-11-19 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 20 Nov 2008 18:07:10 +0000 (18:07 +0000)]
2008-11-19  Robert Millan  <rmh@aybabtu.com>

        * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
        (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.

15 years ago * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
robertmh [Wed, 19 Nov 2008 12:11:44 +0000 (12:11 +0000)]
    * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
        constraints to initrd allocation (based on code from
        loader/i386/pc/linux.c).  Without them, initrd was allocated too high
        for Linux to find it.

15 years ago2008-11-19 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 19 Nov 2008 12:05:20 +0000 (12:05 +0000)]
2008-11-19  Robert Millan  <rmh@aybabtu.com>

        * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.

15 years ago Add #error instance with comment to explain why this
robertmh [Fri, 14 Nov 2008 20:18:07 +0000 (20:18 +0000)]
Add #error instance with comment to explain why this
        loader isn't currently usable on PC/BIOS.

15 years ago2008-11-14 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 14 Nov 2008 20:08:47 +0000 (20:08 +0000)]
2008-11-14  Robert Millan  <rmh@aybabtu.com>

        * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
        order to cope with duplicate slashes.

15 years ago2008-11-14 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 14 Nov 2008 19:04:26 +0000 (19:04 +0000)]
2008-11-14  Robert Millan  <rmh@aybabtu.com>

        * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
        Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000).  We
        don't want to mess with lower memory, because it is used in the Linux
        loader.

        * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
        an appropiate place in lower memory, between 0x10000 and 0x90000,
        like loader/i386/efi/linux.c does.  Linux often panics if real_mode_mem
        is in our heap (probably as a result of it being corrupted during
        decompression).

15 years ago2008-11-14 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 14 Nov 2008 17:57:39 +0000 (17:57 +0000)]
2008-11-14  Robert Millan  <rmh@aybabtu.com>

        * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
        (GRUB_SERIAL_PORT_NUM): Fix misscalculation.

15 years ago2008-11-12 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 12 Nov 2008 20:53:48 +0000 (20:53 +0000)]
2008-11-12  Robert Millan  <rmh@aybabtu.com>

        Make loader/i386/linux.c buildable on i386-pc (although disabled).

        * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
        (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
        from here ...
        * include/grub/i386/pc/memory.h: ... to here.

15 years ago2008-11-12 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 12 Nov 2008 17:43:39 +0000 (17:43 +0000)]
2008-11-12  Robert Millan  <rmh@aybabtu.com>

        Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
        split).

        * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
        (grub_console_cur_color, grub_console_real_putchar)
        (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
        (grub_console_setcolorstate, grub_console_setcolor)
        (grub_console_getcolor): Move from here ...
        * include/grub/i386/vga_common.h: ... to here (new file).

        * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
        `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
        `<grub/i386/io.h>'.
        * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
        `<grub/i386/vga_common.h>'.

15 years ago2008-11-12 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 12 Nov 2008 15:02:17 +0000 (15:02 +0000)]
2008-11-12  Robert Millan  <rmh@aybabtu.com>

        * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
        * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
        (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
        variables.
        * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
        `term/i386/pc/console.c' with `term/i386/vga_common.c'.

        * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
        grub_console_init() with call to grub_vga_text_init().
        (grub_machine_fini): Replace call to
        grub_console_fini() with call to grub_vga_text_fini() and
        grub_at_keyboard_fini().

        * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
        (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
        (grub_console_setcolorstate, grub_console_setcolor)
        (grub_console_getcolor): New function prototypes.

        * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
        (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
        (grub_vga_text_setcursor): Static-ize.
        (grub_vga_text_term): New structure.
        (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.

        * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
        (grub_console_cur_color, grub_console_standard_color)
        (grub_console_normal_color, grub_console_highlight_color)
        (map_char, grub_console_putchar, grub_console_getcharwidth)
        (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
        (grub_console_getcolor): Move from here ...
        * term/i386/vga_common.c: ... to here (same function names).

15 years ago2008-11-12 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 11 Nov 2008 23:27:18 +0000 (23:27 +0000)]
2008-11-12  Robert Millan  <rmh@aybabtu.com>

        Use newly-added Multiboot support in coreboot.

        * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
        `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.

        * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
        alignment, set `MULTIBOOT_MEMORY_INFO' flag.
        (codestart): Store the MBI in `startup_multiboot_info' when we're
        being loaded using Multiboot.

        * kern/i386/coreboot/init.c (grub_machine_init): Move
        grub_at_keyboard_init() call to beginning of function (useful for
        debugging).  Call grub_machine_mmap_init() before attempting to use
        grub_machine_mmap_iterate().
        (grub_lower_mem, grub_upper_mem): Move from here ...
        * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
        here (new file).

        * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
        function prototype.

15 years ago2008-11-12 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 11 Nov 2008 23:16:54 +0000 (23:16 +0000)]
2008-11-12  Robert Millan  <rmh@aybabtu.com>

        Fix a regression introduced by the at_keyboard.mod split.  Because
        some terminals are default on some platforms and non-default on
        others, the first terminal being registered determines which is
        going to be default.

        * kern/term.c (grub_term_register_input): If this is the first
        terminal being registered, set it as the current one.
        (grub_term_register_output): Likewise.

        * term/efi/console.c (grub_console_init): Do not call
        grub_term_set_current_output() or grub_term_set_current_input().
        * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
        * term/i386/pc/console.c (grub_console_init): Likewise.
        (grub_console_fini): Do not call grub_term_set_current_input()
        (but leave grub_term_set_current_output() to restore text mode).

15 years agoFix spacing and a minor typo
proski [Mon, 10 Nov 2008 15:04:00 +0000 (15:04 +0000)]
Fix spacing and a minor typo

15 years ago2008-11-10 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 10 Nov 2008 08:49:26 +0000 (08:49 +0000)]
2008-11-10  Robert Millan  <rmh@aybabtu.com>

        * util/grub.d/00_header.in: Add backward compatibility check for
        versions of terminal.mod that don't understand `terminal_input' or
        `terminal_output'.

15 years ago2008-11-09 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 9 Nov 2008 12:44:31 +0000 (12:44 +0000)]
2008-11-09  Robert Millan  <rmh@aybabtu.com>

        * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
        `terminal_input' / `terminal_output', not `terminal'.

15 years ago (DISTCLEANFILES): Add `build_env.mk'.
robertmh [Sat, 8 Nov 2008 15:21:57 +0000 (15:21 +0000)]
    (DISTCLEANFILES): Add `build_env.mk'.

15 years ago2008-11-08 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 8 Nov 2008 12:53:22 +0000 (12:53 +0000)]
2008-11-08  Robert Millan  <rmh@aybabtu.com>

        * Makefile.in (include_DATA): Fix srcdir=. assumption.

15 years ago * term/ieee1275/ofconsole.c: Remove stale `#endif'.
robertmh [Sat, 8 Nov 2008 12:25:52 +0000 (12:25 +0000)]
    * term/ieee1275/ofconsole.c: Remove stale `#endif'.

15 years ago2008-11-08 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 8 Nov 2008 12:17:51 +0000 (12:17 +0000)]
2008-11-08  Robert Millan  <rmh@aybabtu.com>

        * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
        `struct  grub_term_output'.  Remove `.checkkey' and `.getkey'
        members.  Update all users.
        * util/console.c (grub_ncurses_term): Split in ...
        (grub_ncurses_term_input): ... this, and ...
        (grub_ncurses_term_output): ... this.  Update all users.

15 years ago2008-11-08 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 8 Nov 2008 11:29:53 +0000 (11:29 +0000)]
2008-11-08  Robert Millan  <rmh@aybabtu.com>

        * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
        (PKGDATA): Add $(pkgdata_SRCDIR).
        (pkglib_BUILDDIR): New variable.
        (pkgdata_SRCDIR): New variable.
        (build_env.mk): New target.
        (include_DATA): New variable.
        (install-local): Install $(include_DATA) files in $(includedir).

15 years ago2008-11-07 Pavel Roskin <proski@gnu.org>
proski [Fri, 7 Nov 2008 22:33:37 +0000 (22:33 +0000)]
2008-11-07  Pavel Roskin  <proski@gnu.org>

* gendistlist.sh: Use C locale for sorting to ensure consistent
output on all systems.

15 years ago2008-11-07 Pavel Roskin <proski@gnu.org>
proski [Fri, 7 Nov 2008 22:30:24 +0000 (22:30 +0000)]
2008-11-07  Pavel Roskin  <proski@gnu.org>

* util/grub.d/00_header.in: Remove incorrect space before
"serial".

15 years ago2008-11-07 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 7 Nov 2008 19:53:25 +0000 (19:53 +0000)]
2008-11-07  Robert Millan  <rmh@aybabtu.com>

        * include/multiboot2.h (struct multiboot_header): Add `flags' member as
        per specification.
        * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
        * loader/multiboot_loader.c (find_multi_boot2_header): New function
        (based on find_multi_boot1_header).
        (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
        using find_multi_boot2_header(), and abort if neither Multiboot or
        Multiboot headers were found.

15 years agorun autogen.sh ...
robertmh [Fri, 7 Nov 2008 19:12:11 +0000 (19:12 +0000)]
run autogen.sh ...

15 years ago2008-11-07 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 7 Nov 2008 19:11:39 +0000 (19:11 +0000)]
2008-11-07  Robert Millan  <rmh@aybabtu.com>

            Modularize at_keyboard.mod:

            * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
            (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
            (at_keyboard_mod_LDFLAGS): New variables.

            Actual terminal split:

            * include/grub/term.h (struct grub_term): Split in ...
            (struct grub_term_input): ... this, and ...
            (struct grub_term_output): ... this.  Update all users.
            (grub_term_set_current): Split in ...
            (grub_term_set_current_input): ... this, and ...
            (grub_term_set_current_output): ... this.
            (grub_term_get_current): Split in ...
            (grub_term_get_current_input): ... this, and ...
            (grub_term_get_current_output): ... this.
            (grub_term_register): Split in ...
            (grub_term_register_input): ... this, and ...
            (grub_term_register_output): ... this.
            (grub_term_unregister): Split in ...
            (grub_term_unregister_input): ... this, and ...
            (grub_term_unregister_output): ... this.
            (grub_term_iterate): Split in ...
            (grub_term_iterate_input): ... this, and ...
            (grub_term_iterate_output): ... this.

            * kern/term.c (grub_term_list): Split in ...
            (grub_term_list_input): ... this, and ...
            (grub_term_list_output): ... this.  Update all users.
            (grub_cur_term): Split in ...
            (grub_cur_term_input): ... this, and ...
            (grub_cur_term_output): ... this.  Update all users.
            (grub_term_set_current): Split in ...
            (grub_term_set_current_input): ... this, and ...
            (grub_term_set_current_output): ... this.
            (grub_term_get_current): Split in ...
            (grub_term_get_current_input): ... this, and ...
            (grub_term_get_current_output): ... this.
            (grub_term_register): Split in ...
            (grub_term_register_input): ... this, and ...
            (grub_term_register_output): ... this.
            (grub_term_unregister): Split in ...
            (grub_term_unregister_input): ... this, and ...
            (grub_term_unregister_output): ... this.
            (grub_term_iterate): Split in ...
            (grub_term_iterate_input): ... this, and ...
            (grub_term_iterate_output): ... this.

            * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
            a check for input and one for output (and only attempt to get keys
            from user when input works).

            * util/grub-probe.c (grub_term_get_current): Split in ...
            (grub_term_get_current_input): ... this, and ...
            (grub_term_get_current_output): ... this.
            * util/grub-fstest.c: Likewise.
            * util/i386/pc/grub-setup.c: Likewise.
            * util/grub-editenv.c: Likewise.

            Portability adjustments:

            * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
            `term/i386/pc/at_keyboard.c'.
            * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
            grub_keyboard_controller_init() (now handled by terminal .init).
            * kern/i386/coreboot/init.c (grub_machine_init): Add call to
            grub_at_keyboard_init().
            * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
            (grub_console_checkkey, grub_console_getkey): Remove (now provided by
            at_keyboard.mod via input terminal interface).
            * include/grub/i386/coreboot/console.h: Convert into a stub for
            `<grub/i386/pc/console.h>'.

            Migrate full terminals to new API:

            * term/efi/console.c (grub_console_term): Split into ...
            (grub_console_term_input): ... this, and ...
            (grub_console_term_output): ... this.  Update all users.
            * term/ieee1275/ofconsole.c: Remove __i386__ hack.
            (grub_ofconsole_init): Split into ...
            (grub_ofconsole_init_input): ... this, and ...
            (grub_ofconsole_init_output): ... this.
            (grub_ofconsole_term): Split into ...
            (grub_ofconsole_term_input): ... this, and ...
            (grub_ofconsole_term_output): ... this.  Update all users.
            * term/i386/pc/serial.c (grub_serial_term): Split into ...
            (grub_serial_term_input): ... this, and ...
            (grub_serial_term_output): ... this.  Update all users.
            * term/i386/pc/console.c (grub_console_term): Split into ...
            (grub_console_term_input): ... this, and ...
            (grub_console_term_output): ... this.  Update all users.
            (grub_console_term_input): Only enable it on PC/BIOS platform.
            (grub_console_init): Remove grub_keyboard_controller_init() call.

            Migrate input terminals to new API:

            * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
            `i386' and `i386/pc' to enable build on x86_64 (this driver is
            i386-specific anyway).
            (grub_console_checkkey): Rename to ...
            (grub_at_keyboard_checkkey): ... this.  Static-ize.  Update all
            users.
            (grub_keyboard_controller_orig): New variable.
            (grub_console_getkey): Rename to ...
            (grub_at_keyboard_getkey): ... this.  Static-ize.  Update all
            users.
            (grub_keyboard_controller_init): Static-ize.  Save original
            controller value so that it can be restored ...
            (grub_keyboard_controller_fini): ... here (new function).
            (grub_at_keyboard_term): New structure.
            (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
            functions.

            Migrate output terminals to new API:

            * term/i386/pc/vga.c (grub_vga_term): Change type to
            `struct  grub_term_output'.  Remove `.checkkey' and `.getkey'
            members.  Update all users.
            * term/gfxterm.c (grub_video_term): Change type to
            `struct  grub_term_output'.  Remove `.checkkey' and `.getkey'
            members.  Update all users.
            * include/grub/i386/pc/console.h (grub_console_checkkey)
            (grub_console_getkey): Do not export (no longer needed by gfxterm,
            etc).

            Migrate `terminal' command and userland tools to new API:

            * commands/terminal.c (grub_cmd_terminal): Split into ...
            (grub_cmd_terminal_input): ... this, and ...
            (grub_cmd_terminal_output): ... this.
            (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
            `terminal_input' and `terminal_output'.
            * util/grub.d/00_header.in: Adjust `terminal' calls to new
            `terminal_input' / `terminal_output' API.
            * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
            ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
            provided ${GRUB_TERMINAL}, convert it).

15 years ago2008-11-04 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 4 Nov 2008 15:20:35 +0000 (15:20 +0000)]
2008-11-04  Robert Millan  <rmh@aybabtu.com>

        * util/grub.d/10_freebsd.in: New file.  Generate grub configuration
        for FreeBSD.
        * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.

15 years ago2008-11-03 Bean <bean123ch@gmail.com>
bean [Mon, 3 Nov 2008 13:08:21 +0000 (13:08 +0000)]
2008-11-03  Bean  <bean123ch@gmail.com>

* kern/elf.c (grub_elf32_load): Revert to previous code.
(grub_elf64_load): Likewise.

* loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.

15 years ago2008-11-01 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 1 Nov 2008 17:44:47 +0000 (17:44 +0000)]
2008-11-01  Robert Millan  <rmh@aybabtu.com>

        * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
        (TARGET_CPPFLAGS): Likewise.
        * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.

15 years ago2008-11-01 Carles Pina i Estany <carles@pina.cat>
robertmh [Sat, 1 Nov 2008 12:42:27 +0000 (12:42 +0000)]
2008-11-01  Carles Pina i Estany  <carles@pina.cat>

        * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.

15 years ago2008-10-29 Guillem Jover <guillem.jover@nokia.com>
robertmh [Wed, 29 Oct 2008 19:24:11 +0000 (19:24 +0000)]
2008-10-29  Guillem Jover <guillem.jover@nokia.com>

        * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
        addition of objects until the code is not going to be able to fail.