]> git.ipfire.org Git - thirdparty/grub.git/log
thirdparty/grub.git
15 years ago* bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
Colin Watson [Tue, 20 Jul 2010 22:16:32 +0000 (23:16 +0100)] 
* bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
implementation of this so that grub-emu links again, with a note
that this should support hotplugging in the future.

15 years ago* kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
Colin Watson [Tue, 20 Jul 2010 22:09:45 +0000 (23:09 +0100)] 
* kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.

15 years ago* disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
Colin Watson [Tue, 20 Jul 2010 21:14:26 +0000 (22:14 +0100)] 
* disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
handle on failure.
(grub_loopback_close): Remove empty function.
(grub_loopback_dev): Remove close method.

15 years agoDisable EFI cursor when the EFI console becomes inactive.
Colin Watson [Tue, 20 Jul 2010 21:00:18 +0000 (22:00 +0100)] 
Disable EFI cursor when the EFI console becomes inactive.
* term/efi/console.c (grub_efi_console_init): New function.
(grub_efi_console_fini): New function.
(grub_console_term_output): Register init and fini methods.

15 years ago * tests/util/grub-shell-tester.in: Remove bashism and declare as
Vladimir 'phcoder' Serbinenko [Tue, 20 Jul 2010 20:10:23 +0000 (22:10 +0200)] 
* tests/util/grub-shell-tester.in: Remove bashism and declare as
sh script.

15 years ago * disk/loopback.c (grub_loopback): Replace filename with file.
Vladimir 'phcoder' Serbinenko [Tue, 20 Jul 2010 19:56:00 +0000 (21:56 +0200)] 
* disk/loopback.c (grub_loopback): Replace filename with file.
(delete_loopback): Handle new semantics.
(grub_cmd_loopback): Likewise.
(grub_loopback_iterate): Likewise.
(grub_loopback_close): Likewise.

15 years ago * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
Vladimir 'phcoder' Serbinenko [Tue, 20 Jul 2010 18:36:11 +0000 (20:36 +0200)] 
* util/i386/efi/grub-install.in: Revert to platform-specific behaviour
with -p "".
Reported by: Tito Keitel.

15 years ago * docs/grub.texi (Naming convention): Document new naming convention.
Vladimir 'phcoder' Serbinenko [Tue, 20 Jul 2010 18:22:52 +0000 (20:22 +0200)] 
* docs/grub.texi (Naming convention): Document new naming convention.

15 years ago2010-07-20 Vadim Solomin <vadic052@gmail.com>
Vadim Solomin [Tue, 20 Jul 2010 16:14:00 +0000 (17:14 +0100)] 
2010-07-20  Vadim Solomin  <vadic052@gmail.com>
2010-07-20  Colin Watson  <cjwatson@ubuntu.com>

Generate device.map in something closer to the old ordering.

* util/deviceiter.c (struct device): New declaration.
(compare_file_names): Rename to ...
(compare_devices): ... this.  Sort by kernel name in preference to
the stable by-id name, but keep the latter as a fallback comparison.
Update header comment.
(grub_util_iterate_devices) [__linux__]: Construct and sort an array
of `struct device' rather than of plain file names.

Also-By: Colin Watson <cjwatson@ubuntu.com>
15 years ago * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
Thomas Frauendorfer [Tue, 20 Jul 2010 13:59:56 +0000 (15:59 +0200)] 
* lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
on i386.

15 years ago * commands/acpi.c (setup_common_tables): Use sizeof instead of
Vladimir 'phcoder' Serbinenko [Tue, 20 Jul 2010 12:42:32 +0000 (14:42 +0200)] 
* commands/acpi.c (setup_common_tables): Use sizeof instead of
hardcoding size.
(setv1table): Likewise.

15 years ago2010-07-20 Colin Watson <cjwatson@ubuntu.com>
Felix Zielcke [Tue, 20 Jul 2010 10:26:27 +0000 (11:26 +0100)] 
2010-07-20  Colin Watson  <cjwatson@ubuntu.com>

* disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
removing the homehost if present.
* kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
(grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
removing the homehost if present.
(grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
if possible.
* util/i386/pc/grub-setup.c (main): Handle md/* devices.

* disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
parameter.  Set its pointer target to 0.
* disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
parameter.  Set its pointer target to 0 for 0.9 metadata, or to the
`data_offset' value from the superblock for 1.x metadata.
* disk/raid.c (grub_raid_read): Offset reads by the start sector of
data on the device.
(insert_array): Record the start sector of data on the device.
(grub_raid_register): Pass start_sector parameters to
grub_raid_list->detect and insert_array.
* include/grub/raid.h (struct grub_raid_array): Add start_sector
member.
(struct grub_raid): Add start_sector parameter to `detect'.

* disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
__attribute__ ((packed)), leaving a comment.
(grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
(grub_mdraid_detect_09): ... here and ...
(grub_mdraid_detect_1x): ... here.

2010-07-20  Peter Henn  <peter.henn@web.de>

* disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
chunk size and disk size, which are already given as sector counts
as distinct from the 0.90 units.  Fetch the correct device number
from the role table instead of using the table index.

2010-07-20  Felix Zielcke  <fzielcke@z-51.de>

* disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
* disk/mdraid_linux.c (grub_raid_super_1x): New structure.
(WriteMostly1): New macro.
Set array->name to NULL for metadata format 0.90.  Add support for
metadata 1.x.  Fix some comments.
* disk/raid.c (): Add support for name based RAID arrays.  Fix a
few comments.
* util/getroot.c (grub_util_get_grub_dev): Add support for
/dev/md/name style devices.

Also-By: Peter Henn <peter.henn@web.de>
Also-By: Colin Watson <cjwatson@ubuntu.com>
15 years ago* .bzrignore: Ignore 20_linux_xen.
Colin Watson [Tue, 20 Jul 2010 10:20:23 +0000 (11:20 +0100)] 
* .bzrignore: Ignore 20_linux_xen.

15 years ago* disk/mdraid_linux.c: Update copyright years.
Colin Watson [Tue, 20 Jul 2010 10:10:49 +0000 (11:10 +0100)] 
* disk/mdraid_linux.c: Update copyright years.
* disk/raid.c: Likewise.
* include/grub/raid.h: Likewise.
* kern/emu/getroot.c: Likewise.

15 years ago* disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
Colin Watson [Mon, 19 Jul 2010 10:35:16 +0000 (11:35 +0100)] 
* disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
__attribute__ ((packed)), leaving a comment.
(grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
(grub_mdraid_detect_09): ... here and ...
(grub_mdraid_detect_1x): ... here.
* disk/raid.c (insert_array): Check for grub_xasprintf returning
NULL.

15 years ago* disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
Colin Watson [Sun, 18 Jul 2010 17:31:10 +0000 (18:31 +0100)] 
* disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
parameter.  Set its pointer target to 0.
* disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
parameter.  Set its pointer target to 0 for 0.9 metadata, or to the
`data_offset' value from the superblock for 1.x metadata.
* disk/raid.c (grub_raid_read): Offset reads by the start sector of
data on the device.
(insert_array): Record the start sector of data on the device.
(grub_raid_register): Pass start_sector parameters to
grub_raid_list->detect and insert_array.
* include/grub/raid.h (struct grub_raid_array): Add start_sector
member.
(struct grub_raid): Add start_sector parameter to `detect'.

15 years ago* disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
Colin Watson [Sun, 18 Jul 2010 14:53:14 +0000 (15:53 +0100)] 
* disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
removing the homehost if present.
* kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
(grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
removing the homehost if present.
(grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
if possible.
* util/i386/pc/grub-setup.c (main): Handle md/* devices.

15 years ago* util/import_unicode.py: Remove unnecessary imports.
Colin Watson [Sat, 17 Jul 2010 18:27:18 +0000 (19:27 +0100)] 
* util/import_unicode.py: Remove unnecessary imports.

15 years agomerge mainline
Colin Watson [Sat, 17 Jul 2010 10:17:49 +0000 (11:17 +0100)] 
merge mainline

15 years ago Hotplugging and USB hub support.
Aleš Nesrsta [Sat, 17 Jul 2010 01:06:34 +0000 (03:06 +0200)] 
Hotplugging and USB hub support.

* bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
(grub_ohci): Likewise.
(GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
(GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
(GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
(GRUB_OHCI_CTRL_EDS): Likewise.
(GRUB_OHCI_BULK_EDS): Likewise.
(GRUB_OHCI_TDS): Likewise.
(GRUB_OHCI_ED_ADDR_MASK): Likewise.
(grub_ohci_ed_phys2virt): New function.
(grub_ohci_virt_to_phys): Likewise.
(grub_ohci_td_phys2virt): Likewise.
(grub_ohci_td_virt2phys): Likewise.
(grub_ohci_pci_iter): Allocate memory and don't wait for stable
attachment.
(grub_ohci_find_ed): New function.
(grub_ohci_alloc_td): Likewise.
(grub_ohci_free_td): Likewise.
(grub_ohci_free_tds): Likewise.
(grub_ohci_transfer): Use previously allocated memory.
(grub_ohci_portstatus): Reset status changed bit.
(grub_ohci_detect_dev): Supply status changed.
(grub_ohci_fini_hw): Free memory.
(grub_ohci_restore_hw): Reallocate memory.
* bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
Reset status change.
(grub_uhci_detect_dev): Supply status_change.
* bus/usb/usb.c (attach_hooks): New var.
(grub_usb_device_attach): New function.
(grub_usb_register_attach_hook_class): Likewise.
(grub_usb_unregister_attach_hook_class): Likewise.
* bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
(grub_usb_add_hub): Reset connection changed bit.
(attach_root_port): New function.
(grub_usb_root_hub): Likewise.
(poll_nonroot_hub): Likewise.
(grub_usb_poll_devices): Likewise.
* commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
* disk/usbms.c (grub_usbms_open): Use device hooks.
(grub_usbms_iterate) :Poll devices.
(grub_usbms_finddevs): Split into ...
(grub_usbms_attach): ... this ...
(grub_usbms_attach): ... and this.
* include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
in detect_dev.
(grub_usb_interface): New fields attached and detach_hook.
(grub_usb_attach_hook_class): New type.
(grub_usb_attach_desc): New struct.
(grub_usb_register_attach_hook_class): New function.
(grub_usb_unregister_attach_hook_class): Likewise.
(grub_usb_poll_devices): Likewise.
(grub_usb_device_attach): Likewise.
* include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
(GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.

15 years agoMerge mainline into usb
Vladimir 'phcoder' Serbinenko [Sat, 17 Jul 2010 00:44:33 +0000 (02:44 +0200)] 
Merge mainline into usb

15 years ago * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New...
Vladimir 'phcoder' Serbinenko [Fri, 16 Jul 2010 23:57:48 +0000 (01:57 +0200)] 
* include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
* partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
delta determination style. Works with most NetBSD partitions too.

15 years ago * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
Vladimir 'phcoder' Serbinenko [Fri, 16 Jul 2010 23:55:01 +0000 (01:55 +0200)] 
* kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
* partmap/bsdlabel.c [GRUB_UTIL]: Likewise.

15 years ago * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
Vladimir 'phcoder' Serbinenko [Fri, 16 Jul 2010 23:52:41 +0000 (01:52 +0200)] 
* disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.

15 years agomerge mainline into usb
Vladimir 'phcoder' Serbinenko [Fri, 16 Jul 2010 23:14:13 +0000 (01:14 +0200)] 
merge mainline into usb

15 years agoUse inline functions instead of macros
Vladimir 'phcoder' Serbinenko [Fri, 16 Jul 2010 22:57:14 +0000 (00:57 +0200)] 
Use inline functions instead of macros

15 years agoFix mismerge
Vladimir 'phcoder' Serbinenko [Fri, 16 Jul 2010 22:56:38 +0000 (00:56 +0200)] 
Fix mismerge

15 years ago* loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
Anton Blanchard [Wed, 14 Jul 2010 15:47:45 +0000 (16:47 +0100)] 
* loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
ET_DYN files.

15 years agoFix condition in Makefile.in's LINGUAS assignment.
Grégoire Sutre [Wed, 14 Jul 2010 14:47:28 +0000 (16:47 +0200)] 
Fix condition in Makefile.in's LINGUAS assignment.

15 years agoDiscard improperly nested partitions.
Grégoire Sutre [Wed, 14 Jul 2010 09:26:17 +0000 (11:26 +0200)] 
Discard improperly nested partitions.

15 years ago* Makefile.in (.SUFFIX): Spell correctly, as ...
Colin Watson [Tue, 13 Jul 2010 11:24:07 +0000 (12:24 +0100)] 
* Makefile.in (.SUFFIX): Spell correctly, as ...
(.SUFFIXES): ... this.  Fixes bug where `make foo' (where foo is a
bare module name without `.mod', e.g. `test') tried to invoke a
Modula-2 compiler.

15 years ago* README: Point to the Info manual.
Colin Watson [Tue, 13 Jul 2010 11:20:32 +0000 (12:20 +0100)] 
* README: Point to the Info manual.

15 years ago * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
Jiro SEKIBA [Tue, 13 Jul 2010 09:47:30 +0000 (11:47 +0200)] 
* fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
2nd superblock position from partition size.

15 years ago* Makefile.in (MAINTAINER_CLEANFILES): Remove
Colin Watson [Sat, 10 Jul 2010 21:37:05 +0000 (22:37 +0100)] 
* Makefile.in (MAINTAINER_CLEANFILES): Remove
unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
outputs.

15 years ago Restructure SCSI .id handling.
Vladimir 'phcoder' Serbinenko [Sat, 10 Jul 2010 00:59:33 +0000 (02:59 +0200)] 
Restructure SCSI .id handling.
Reported and tested by: Aleš Nesrsta.

* disk/ata.c (grub_atapi_close): Removed. All users updated.
(grub_atapi_dev): Changed .name to "ata". New field .id.
* disk/usbms.c (grub_usbms_close): Removed. All users updated.
(grub_usbms_dev): New field .id.
* disk/scsi.c (grub_scsi_iterate): Generate name.
(grub_scsi_open): Parse name.
* include/grub/scsi.h (grub_make_scsi_id): New function.
(grub_scsi_dev): Change iterate and open to number instead of naming
busses. All users updated.
(grub_scsi): Remove name. Add .bus.

15 years ago * commands/help.c (grub_cmd_help): Fix a typo.
Vladimir 'phcoder' Serbinenko [Sat, 10 Jul 2010 00:40:41 +0000 (02:40 +0200)] 
* commands/help.c (grub_cmd_help): Fix a typo.

15 years ago * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
Vladimir 'phcoder' Serbinenko [Sat, 10 Jul 2010 00:23:48 +0000 (02:23 +0200)] 
* normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
Reported and tested by: Colin Watson.

15 years ago * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
Vladimir 'phcoder' Serbinenko [Sat, 10 Jul 2010 00:15:49 +0000 (02:15 +0200)] 
* util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
in this context.

15 years agoUSB hot-plugging
starous [Thu, 8 Jul 2010 20:54:35 +0000 (22:54 +0200)] 
USB hot-plugging

15 years ago * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
Vladimir 'phcoder' Serbinenko [Wed, 7 Jul 2010 15:51:26 +0000 (17:51 +0200)] 
* tests/util/grub-shell.in: Remove bashisms and declare as sh script.

15 years ago* term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
Colin Watson [Wed, 7 Jul 2010 13:12:16 +0000 (14:12 +0100)] 
* term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
indentation.

15 years ago* conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
Colin Watson [Tue, 6 Jul 2010 18:27:55 +0000 (19:27 +0100)] 
* conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
and disk/raid6_recover.c.
* conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
* conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.

15 years ago* term/gfxterm.c (repaint_schedulded): Rename to ...
Colin Watson [Tue, 6 Jul 2010 17:31:45 +0000 (18:31 +0100)] 
* term/gfxterm.c (repaint_schedulded): Rename to ...
(repaint_scheduled): ... this.  Update all callers.
(repaint_was_schedulded): Rename to ...
(repaint_was_scheduled): ... this.  Update all callers.

15 years ago* util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
Colin Watson [Tue, 6 Jul 2010 14:10:36 +0000 (15:10 +0100)] 
* util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
which we expect to be handled by upper layers.

15 years ago * bus/usb/usbhub.c: #include time.h header.
BVK Chaitanya [Tue, 6 Jul 2010 09:23:55 +0000 (14:53 +0530)] 
* bus/usb/usbhub.c: #include time.h header.

15 years ago* fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
Colin Watson [Tue, 6 Jul 2010 08:51:42 +0000 (09:51 +0100)] 
* fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
entry_name also for entries without stat blocks (e.g. ".."); fixes
corruption of the first entry in a directory.

15 years ago* util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
Colin Watson [Tue, 6 Jul 2010 08:42:37 +0000 (09:42 +0100)] 
* util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
after setting gfxterm as the active terminal.  GRUB_BACKGROUND
doesn't work otherwise.

15 years agoRevert latest two Aleš' commits
Vladimir 'phcoder' Serbinenko [Mon, 5 Jul 2010 23:55:26 +0000 (01:55 +0200)] 
Revert latest two Aleš' commits

15 years agoChangeLog & usbhub.c correction
starous [Mon, 5 Jul 2010 18:34:27 +0000 (20:34 +0200)] 
ChangeLog & usbhub.c correction

15 years agoUHCI portstatus correction
starous [Mon, 5 Jul 2010 17:06:47 +0000 (19:06 +0200)] 
UHCI portstatus correction

15 years agoUSB hub support
starous [Mon, 5 Jul 2010 17:02:05 +0000 (19:02 +0200)] 
USB hub support

15 years ago* docs/grub.texi (Features): Update list of supported file systems.
Colin Watson [Mon, 5 Jul 2010 10:08:04 +0000 (11:08 +0100)] 
* docs/grub.texi (Features): Update list of supported file systems.
(GNU/Linux): Update for GRUB 2.
(Serial terminal): Remove mention of --disable-serial, which was a
GRUB Legacy configure option.  Update instructions to use
`terminal_input' and `terminal_output' rather than `terminal'.
(Vendor power-on keys): Copy-edit.  Add cross-references to `Simple
configuration' and `Installing GRUB using grub-install'.
(Menu entry editor): Update for GRUB 2.
(terminfo): Add vt100-color, ieee1275, and dumb terminal types.
Document new -a, -u, and -v options.
(initrd): New section.
(initrd16): New section.
(linux): New section.
(linux16): New section.
(search): The `var' argument to `--set' is optional.
(GRUB only offers a rescue shell): Go into a little more detail on
drive ordering.

15 years ago* Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
Colin Watson [Mon, 5 Jul 2010 08:29:02 +0000 (09:29 +0100)] 
* Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.

15 years agofix typo in reporter name
Colin Watson [Mon, 5 Jul 2010 00:45:25 +0000 (01:45 +0100)] 
fix typo in reporter name

15 years ago* Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
Colin Watson [Mon, 5 Jul 2010 00:24:10 +0000 (01:24 +0100)] 
* Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.

15 years ago* util/i386/pc/grub-setup.c (setup): Rename prefix to
Colin Watson [Mon, 5 Jul 2010 00:09:00 +0000 (01:09 +0100)] 
* util/i386/pc/grub-setup.c (setup): Rename prefix to
install_prefix, in line with install_dos_part and install_bsd_part.
Add new prefix variable, which is copied to install_prefix after
comparing core.img in memory with the one read from disk in the
no-embedding case, and use that rather than overwriting
install_prefix immediately when installing to a partition.
Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
Bicakci.

15 years agoAvoid == in test command, it's not portable.
Grégoire Sutre [Sun, 4 Jul 2010 22:45:14 +0000 (00:45 +0200)] 
Avoid == in test command, it's not portable.

15 years ago* kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
Colin Watson [Sun, 4 Jul 2010 21:00:45 +0000 (22:00 +0100)] 
* kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.

15 years agomissing ChangeLog commit.
Vladimir 'phcoder' Serbinenko [Sun, 4 Jul 2010 12:29:01 +0000 (14:29 +0200)] 
missing ChangeLog commit.

15 years ago * util/i386/efi/grub-install.in: Don't use empty grub_device.
Vladimir 'phcoder' Serbinenko [Sun, 4 Jul 2010 12:23:55 +0000 (14:23 +0200)] 
* util/i386/efi/grub-install.in: Don't use empty grub_device.
Reported by: Tito Keitel.

15 years agoDo not embed when there are multiple (top-level) partmaps.
Grégoire Sutre [Sun, 4 Jul 2010 09:13:31 +0000 (11:13 +0200)] 
Do not embed when there are multiple (top-level) partmaps.

15 years ago Bidi and diacritics support.
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 20:16:35 +0000 (22:16 +0200)] 
Bidi and diacritics support.

* Makefile.in (widthspec.bin): New target.
(widthspec.h): Likewise.
(TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
* autogen.sh: Generate unidata.c.
* commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
* commands/ls.c (grub_ls_list_devices): Likewise.
(grub_ls_list_files): Likewise.
* commands/minicmd.c (grub_mini_cmd_cat): Likewise.
(grub_mini_cmd_lsmod): Likewise.
* commands/read.c: Likewise.
* kern/corecmd.c (grub_core_cmd_ls): Likewise.
* kern/rescue_reader.c (grub_rescue_read_line): Likewise.
* lib/arg.c (grub_arg_show_help): Likewise.
* lib/crypto.c (grub_password_get): Likewise.
* normal/auth.c (grub_username_get): Likewise.
* normal/misc.c (grub_normal_print_device_info): Likewise.
* commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
* conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
(gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
(normal/charset.c_DEPENDENCIES): New variable.
(normal_mod_SOURCES): Add normal/charset.c and unidata.c.
(pkglib_MODULES): Remove charset.mod.
(charset_mod_SOURCES): Removed.
(charset_mod_CFLAGS): Likewise.
(charset_mod_LDFLAGS): Likewise.
(pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
* conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
and term/tparm.c.
* conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
* conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
(kernel_img_HEADERS): Add terminfo.h.
* font/font.c (ascii_glyph_lookup): Return NULL on failure.
Fill ->font. Reverse ascii bitmaps.
(grub_font_get_xheight): New function.
* font/font.c (grub_font_get_string_width): Moved from here ...
* gfxmenu/font.c (grub_font_get_string_width): ... here.
* font/font.c (grub_font_draw_string): Moved from here ...
* gfxmenu/font.c (grub_font_draw_string): ... here.
* font/font.c (grub_font_dup_glyph): New function.
(grub_font_blit_glyph): Likewise.
(grub_font_blit_glyph_mirror): Likewise.
(blit_comb): Likewise.
(grub_font_construct_dry_run): Likewise.
(grub_font_get_constructed_device_width): Likewise.
(grub_font_construct_glyph): Likewise.
* include/grub/charset.h (grub_ucs4_to_utf8): New proto.
* include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
* include/grub/charset.h (grub_utf8_to_ucs4): ... here.
* include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
(GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
(GRUB_FONT_CODE_LEFT_JOINED): Likewise.
(grub_font_get_xheight): New proto.
(grub_font_get_constructed_device_width): Likewise.
(grub_font_construct_glyph): Likewise.
* include/grub/font.h (grub_font_get_string_width): Moved from here ...
* include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
* include/grub/font.h (grub_font_draw_string): Moved from here ...
* include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
* include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
* include/grub/i386/pc/console.h (grub_console_putchar): ... here.
* include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
(grub_console_getcharwidth): Likewise.
* include/grub/misc.h (grub_xputs): New proto.
(grub_puts): Inlined.
* include/grub/normal.h (grub_print_ucs4): Add margin specification.
(grub_normal_get_line_counter): Removed.
(grub_install_newline_hook): Likewise.
(grub_normal_get_char_counter): New proto.
(grub_normal_reset_more): Likewise.
(grub_xputs_normal): Likewise.
* include/grub/powerpc/ieee1275/console.h: Removed.
* include/grub/sparc64/ieee1275/console.h: Likewise.
* include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
(GRUB_TERM_CODE_TYPE_ASCII): Likewise.
(GRUB_TERM_CODE_TYPE_CP437): Likewise.
(GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
(GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
(GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
(grub_term_input): Pass reference to self. All users updated.
(grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
Pass reference to self. New fields normal_color, highlight_color and
data. All users updated.
(grub_putchar): Removed.
(grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
(grub_unicode_estimate_width): New function.
(grub_term_getcharwidth): Add defaults.
(GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
(GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
(GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
(grub_cls): Remove EXPORT_FUNC.
(grub_setcolorstate): Inline.
(grub_newline_hook): Removed.
* include/grub/terminfo.h: Rewritten. All users updated.
* include/grub/unicode.h: New file.
* include/grub/video.h (grub_video_signed_rect): New type.
* kern/emu/console.c (grub_console_highlight_color): Removed.
(grub_console_normal_color): Likewise.
(grub_console_standard_color): Made static.
(grub_ncurses_putchar): Remove mapping.
(grub_ncurses_getcharwidth): Removed.
(grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
(grub_ncurses_setcolor): Removed.
(grub_ncurses_getcolor): Likewise.
* kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
(grub_console_putchar): ... this.
(grub_console_putchar): Handle argument difference.
* kern/ieee1275/init.c (grub_machine_init): Split console_init into
console_init_early and console_init_lately.
* kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
* kern/misc.c (grub_puts): Removed.
(grub_vprintf): Store UTF-8 string instead of outputting it directly.
(grub_vsnprintf_real): Remove str = NULL support.
* kern/misc.c (grub_utf8_to_ucs4): Move from here ...
* normal/charset.c (grub_utf8_to_ucs4): ... here.
* kern/term.c (grub_putcode): Renamed to ...
(grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
(grub_putchar): Removed.
(grub_xputs_dumb): New function.
(grub_xputs): New variable.
* lib/charset.c: Move from here ...
* normal/charset.c: ... to here.
(grub_ucs4_to_utf8): New function.
(grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
(join_types): New variable.
(unpack_join): New function.
(bidi_types): New variable.
(unpack_bidi): New function.
(get_bidi_type): Likewise.
(get_join_type): Likewise.
(is_mirrored): Likewise.
(grub_unicode_get_comb_type): Likewise.
(grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
(is_type_after): Likewise.
(grub_unicode_aglomerate_comb): Likewise.
(bidi_line_wrap): Likewise.
(grub_bidi_line_logical_to_visual): Likewise.
(grub_bidi_logical_to_visual): Likewise.
(grub_unicode_mirror_code): Likewise.
(grub_unicode_shape_code): Likewise.
* normal/cmdline.c (grub_cmdline_get): Reset more counter.
Don't use grub_putchar.
* normal/main.c (grub_normal_init_page): Use grub_putcode.
(grub_normal_reader_init): Likewise.
(grub_xputs_saved): New variable.
(GRUB_MOD_INIT): Set grub_xputs.
(GRUB_MOD_FINI): Restore grub_xputs.
* normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
(menu_init): Avoid printing gfxmenu error.
(show_menu): Use grub_normal_get_char_counter.
* normal/menu_entry.c (update_screen): Fix out-of-array.
(complete): Avoid NULL dereferencing.
* grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
* normal/menu_text.c (print_spaces): Removed.
(grub_print_ucs4): Likewise.
(grub_print_message_indented): Use grub_print_ucs4.
(print_message): Use grub_putcode.
(print_entry): Hanlde diacritics.
* normal/term.c (term_state): New type.
(grub_more_lines): Removed.
(term_states): New variable.
(grub_normal_line_counter): Renamed to ..
(grub_normal_char_counter): ...this. All users updated.
(grub_normal_get_line_counter): Renamed to ...
(grub_normal_get_char_counter): ... this.
(grub_normal_reset_more): New function.
(process_newline): Removed.
(print_more): New function.
(grub_install_newline_hook): Removed.
(map_code): New function.
(grub_puts_terminal): Use grub_print_ucs4.
(putglyph): New function.
(putcode_real): Likewise.
(grub_putcode): Use putcode_real.
(get_maxwidth): New function.
(get_startwidth): Likewise.
(print_ucs4_terminal): Likewise.
(find_term_state): Likewise.
(put_glyphs_terminal): Likewise.
(print_backlog): Likewise.
(print_ucs4_real): Likewise.
(grub_print_ucs4): Likewise.
(grub_xputs_normal): Likewise.
* term/efi/console.c (grub_console_putchar): Output diacritics.
(grub_console_getcharwidth): Removed.
(grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
* term/gfxterm.c (clear_char): Free chars.
(scroll_up): Avoid leaking memory.
(grub_gfxterm_putchar): Support diacritics.
(grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
* term/i386/pc/console.c (grub_console_term_output): Declare as
GRUB_TERM_CODE_TYPE_VGA.
* term/i386/pc/vga.c (grub_vga_term): Declare as
GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
* term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
GRUB_TERM_CODE_TYPE_VGA.
* term/i386/vga_common.c (map_char): Removed.
(grub_console_putchar): Likewise.
(grub_console_getcharwidth): Likewise.
* term/ieee1275/ofconsole.c: Simplify using terminfo.
(colors): Reordered to match terminfo.
(grub_ofconsole_normal_color): Removed.
(grub_ofconsole_writeesc): Likewise.
(grub_ofconsole_highlight_color): Likewise.
(grub_ofconsole_getcharwidth): Likewise.
(grub_ofconsole_setcolorstate): Likewise.
(grub_ofconsole_setcolor): Likewise.
(grub_ofconsole_getcolor): Likewise.
(grub_ofconsole_readkey): Renamed to ...
(readkey): ... this. Remove escape sequence handling. Return -1 on no
key.
(grub_ofconsole_checkkey): Removed.
(grub_ofconsole_getkey): Likewise.
(grub_ofconsole_getxy): Likewise.
(grub_ofconsole_gotoxy): Likewise.
(grub_ofconsole_cls): Likewise.
(grub_ofconsole_refresh): Likewise.
(grub_ofconsole_terminfo_input): New struct.
(grub_ofconsole_terminfo_output): Likewise.
(grub_ofconsole_term_input): Use terminfo.
(grub_ofconsole_term_output): Likewise.
(grub_console_init): Split into ...
(grub_console_init_early): ...this and ...
(grub_console_init_lately): ...this. Use terminfo.
(grub_ofconsole_putchar): Renamed to ...
(put): ... this. Remove mapping.
(grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
* term/serial.c: Simplify using terminfo.
(xpos): Removed.
(ypos): Likewise.
(keep_track): Likewise.
(registered): Likewise.
(input_buf): Likewise.
(npending): Likewise.
(serial_translate_key_sequence): Likewise.
(fill_input_buf): Likewise.
(grub_serial_checkkey): Likewise.
(grub_serial_getkey): Likewise.
(grub_serial_getxy): Likewise.
(grub_serial_gotoxy): Likewise.
(grub_serial_putchar): Likewise.
(grub_serial_cls): Likewise.
(grub_serial_setcolorstate): Likewise.
(grub_serial_setcursor): Likewise.
(serial_hw_init): Use serial_hw_fetch.
(grub_serial_terminfo_input): New variable.
(grub_serial_terminfo_output): Likewise.
(grub_serial_term_input): Use terminfo.
(grub_serial_term_output): Likewise.
* term/terminfo.c (putstr): Use put.
(grub_terminfo_all_free): New function
(grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
(grub_terminfo_output_register): New function.
(grub_terminfo_output_unregister): Likewise.
(grub_terminfo_getxy): Likewise.
(grub_terminfo_readkey): Likewise.
(grub_terminfo_checkkey): Likewise.
(grub_terminfo_getkey): Likewise.
(grub_terminfo_input_init): Likewise.
(print_terminfo): Likewise.
(grub_cmd_terminfo): Handle encoding.
(grub_terminfo_gotoxy): Track position.
(grub_terminfo_cls): Likewise.
(grub_terminfo_putchar): Likewise.
(grub_terminfo_setcolorstate): Handle colors
(grub_terminfo_cursor_on): This ...
(grub_terminfo_cursor_off): ... and this merged into ...
(grub_terminfo_setcursor): ... this.
* term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
* unicode/ArabicShaping.txt: New file (imported from Unicode).
* unicode/BidiMirroring.txt: Likewise.
* unicode/UnicodeData.txt: Likewise.
* unicode/COPYING: Likewise.
* util/grub-editenv.c (grub_putchar): Removed.
(grub_xputs_real): New function.
(grub_xputs): New variable.
* util/grub-fstest.c (grub_putchar): Removed.
(grub_xputs_real): New function.
(grub_xputs): New variable.
* util/grub-mkdevicemap.c (grub_putchar): Removed.
(grub_xputs_real): New function.
(grub_xputs): New variable.
* util/grub-probe.c (grub_putchar): Removed.
(grub_xputs_real): New function.
(grub_xputs): New variable.
* util/grub-script-check.c (grub_putchar): Removed.
(grub_xputs_real): New function.
(grub_xputs): New variable.
* util/i386/pc/grub-setup.c (grub_putchar): Removed.
(grub_xputs_real): New function.
(grub_xputs): New variable.
* util/import_unicode.py: New file.
* util/grub-mkfont.c (ft_errmsgs): New array.
(grub_glyph_info): Make bitmap a pointer.
(file_formats): New type WIDTH_SPEC.
(grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
(options): Add width-spec.
(help): Likewise.
(add_char): Renamed to ...
(add_glyph): ... this.
(add_glyph): Use index. Show freetype errors. Cut blank space at borders.
(glyph_replace): New type.
(subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
(add_char): New function.
(add_subst): Likewise.
(process_cursive): Likewise.
(add_font): Handle GSUB.
(write_font_width_spec): New function.
(main): Sort glyphs.
* commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
* normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
* kern/term.c (grub_cls): Moved from here...
* normal/term.c (grub_cls): ... here.

15 years agoUpdate ChangeLog
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 20:07:56 +0000 (22:07 +0200)] 
Update ChangeLog

15 years agoFix mismerge
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 20:06:43 +0000 (22:06 +0200)] 
Fix mismerge

15 years agoFix letters reversing in qemu
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 20:06:19 +0000 (22:06 +0200)] 
Fix letters reversing in qemu

15 years agoAdd missing include
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 20:05:47 +0000 (22:05 +0200)] 
Add missing include

15 years agoSkip bidi if no RTL characters are present
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 18:37:08 +0000 (20:37 +0200)] 
Skip bidi if no RTL characters are present

15 years agoMerge mainline into bidi
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 17:35:07 +0000 (19:35 +0200)] 
Merge mainline into bidi

15 years ago* include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
Colin Watson [Fri, 2 Jul 2010 17:04:54 +0000 (18:04 +0100)] 
* include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
suitable for using within the format argument of printf when
converting grub_size_t.
* disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
"x" to convert grub_size_t arguments.

15 years ago * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 16:28:54 +0000 (18:28 +0200)] 
* gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
too long captions.
(list_get_minimal_size): Take selection box into account.

15 years ago * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 16:25:42 +0000 (18:25 +0200)] 
* font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
NULL font.

15 years agoInline setcolorstate and move grub_Cls out of kernel.img
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 16:20:48 +0000 (18:20 +0200)] 
Inline setcolorstate and move grub_Cls out of kernel.img

15 years ago* util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
Colin Watson [Fri, 2 Jul 2010 16:11:42 +0000 (17:11 +0100)] 
* util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
devices when iterating over /dev/disk/by-id; they will be handled
later if appropriate, which they aren't always (e.g. LVM).

15 years ago* include/grub/misc.h (grub_reboot): Declare as noreturn.
Colin Watson [Fri, 2 Jul 2010 12:47:14 +0000 (13:47 +0100)] 
* include/grub/misc.h (grub_reboot): Declare as noreturn.
* kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
fails.
(grub_halt): Likewise.
* kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
reset-all fails.
(grub_halt): Don't return, even if all of shut-down, power-off, and
poweroff fail.

15 years ago* kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
Colin Watson [Fri, 2 Jul 2010 12:42:18 +0000 (13:42 +0100)] 
* kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
arguments, not three.

15 years ago* util/grub-mkconfig_lib.in (uses_abstraction): New function.
Colin Watson [Fri, 2 Jul 2010 11:32:05 +0000 (12:32 +0100)] 
* util/grub-mkconfig_lib.in (uses_abstraction): New function.
* util/grub.d/10_linux.in: Use it to check for LVM, so that
LVM-on-RAID is handled correctly.

15 years ago* docs/grub.texi (Changes from GRUB Legacy): New section.
Colin Watson [Fri, 2 Jul 2010 11:13:48 +0000 (12:13 +0100)] 
* docs/grub.texi (Changes from GRUB Legacy): New section.
(Future): Fix typo.

15 years ago* util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
Colin Watson [Fri, 2 Jul 2010 09:50:04 +0000 (10:50 +0100)] 
* util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
grub.d/README accidentally ends up executable for one reason or
another.  Ignore it.

15 years ago * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 00:47:10 +0000 (02:47 +0200)] 
* partmap/gpt.c (MAX_SECTOR_LOG): New definition.
(gpt_partition_map_iterate): Support non-512B sectors.

15 years ago * kern/efi/init.c (grub_efi_init): Disable watchdog.
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 00:43:09 +0000 (02:43 +0200)] 
* kern/efi/init.c (grub_efi_init): Disable watchdog.
Tested by: Seth Goldberg.

15 years ago * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
Vladimir 'phcoder' Serbinenko [Thu, 1 Jul 2010 22:40:37 +0000 (00:40 +0200)] 
* loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
Properly align mbi.
Reported by: Seth Goldberg.

15 years ago * util/grub-mkrescue.in: Avoid module duplication.
Vladimir 'phcoder' Serbinenko [Thu, 1 Jul 2010 21:35:45 +0000 (23:35 +0200)] 
* util/grub-mkrescue.in: Avoid module duplication.

15 years ago * util/grub.d/10_linux.in: Don't use UUID for LVM root.
Sean Finney [Thu, 1 Jul 2010 21:24:21 +0000 (23:24 +0200)] 
* util/grub.d/10_linux.in: Don't use UUID for LVM root.

15 years ago * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
Sean Finney [Thu, 1 Jul 2010 21:19:11 +0000 (23:19 +0200)] 
* disk/lvm.c (grub_lvm_scan_device): Skip snapshots.

2010-07-01  Vladimir Serbinenko  <phcoder@gmail.com>

* disk/lvm.c (grub_lvm_checkvalue): New function.
(grub_lvm_check_flag): Likewise.

Also-By: Vladimir Serbinenko <phcoder@gmail.com>
15 years ago2010-07-01 Robert Millan <rmh@gnu.org>
Robert Millan [Thu, 1 Jul 2010 08:52:23 +0000 (10:52 +0200)] 
2010-07-01  Robert Millan  <rmh@gnu.org>

* kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
Support 'p' as partition separator on kernel of FreeBSD (used
with GPT labels).
(grub_util_biosdisk_get_grub_dev): Likewise.

15 years ago Yeeloong firmware port.
Vladimir 'phcoder' Serbinenko [Thu, 1 Jul 2010 01:16:56 +0000 (03:16 +0200)] 
Yeeloong firmware port.

* boot/mips/yeeloong/fwstart.S: New file.
* bus/cs5536.c (gpiodump): New const.
(set_io_space): New function.
(set_iod): Likewise.
(set_p2d): Likewise.
(grub_cs5536_init_geode): Likewise.
* commands/mips/yeeloong/lsspd.c: New file.
* conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
(serial_mod_SOURCES): New variable.
(serial_mod_CFLAGS): Likewise.
(serial_mod_LDFLAGS): Likewise.
* conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
term/terminfo.c and term/tparm.c.
(pkglib_IMAGES): Add fwstart.img.
(fwstart_img_SOURCES): New variable.
(fwstart_img_CFLAGS): Likewise.
(fwstart_img_ASFLAGS): Likewise.
(fwstart_img_LDFLAGS): Likewise.
(fwstart_img_FORMAT): Likewise.
(pkglib_MODULES): Add lsspd.mod.
(lsspd_mod_SOURCES): New variable.
(lsspd_mod_CFLAGS): Likewise.
(lsspd_mod_LDFLAGS): Likewise.
(pkglib_MODULES): Add halt.mod.
(halt_mod_SOURCES): New variable.
(halt_mod_CFLAGS): Likewise.
(halt_mod_LDFLAGS): Likewise.
* conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
(serial_mod_SOURCES): Removed.
(serial_mod_CFLAGS): Likewise.
(serial_mod_LDFLAGS): Likewise.
* disk/ata.c (check_device): New function.
(grub_ata_device_initialize): Use check_device.
(grub_ata_iterate): Recheck devices.
(grub_ata_open): Likewise.
(grub_atapi_iterate): Likewise.
(grub_atapi_open): Likewise.
* include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
(GRUB_ATA_CH1_PORT1): Likewise.
(GRUB_ATA_CH0_PORT2): Likewise.
(GRUB_ATA_CH1_PORT2): Likewise.
* include/grub/mips/loongson.h: New file.
* include/grub/mips/yeeloong/ec.h: Likewise.
* include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
(GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
(GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
* include/grub/misc.h (grub_halt): Declare as noreturn.
* include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
(UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
(UART_ENABLE_FIFO_TRIGGER1): New definition.
(UART_ENABLE_DTRRTS): Likewise.
(UART_ENABLE_MODEM): Removed.
(UART_ENABLE_OUT2): New const.
* include/grub/term.h (grub_term_register_input_active): New function.
(grub_term_register_output_active): Likewise.
* kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
argument.
* kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
(init_pci): New function.
(grub_machine_init): Execute platform init when firmware. Init serial.
(grub_halt): Implement.
(grub_exit): Likewise.
(grub_reboot): Likewise.
* term/serial.c (serial_hw_init): Update macros.
[GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
* util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
(image_targets): New target mipsel-yeeloong-flash.
(generate_image): Support IMAGE_YEELOONG_FLASH.
* video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
(grub_video_sm712_setup): Init card.
(grub_video_sm712_set_palette): Removed.
* video/sm712_init.c: New file.

15 years ago* Makefile.in (install-local): Temporarily prepend $(builddir) to
Colin Watson [Wed, 30 Jun 2010 12:36:58 +0000 (13:36 +0100)] 
* Makefile.in (install-local): Temporarily prepend $(builddir) to
PATH when running help2man and then run it on the unadorned
executable names, rather than passing $(builddir)/* paths to
help2man.  This avoids the build directory ending up in generated
manual pages.

15 years agoMerge mainline into yeeloongfw
Vladimir 'phcoder' Serbinenko [Wed, 30 Jun 2010 00:30:05 +0000 (02:30 +0200)] 
Merge mainline into yeeloongfw

15 years ago* util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
Colin Watson [Tue, 29 Jun 2010 15:20:49 +0000 (16:20 +0100)] 
* util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
to avoid accidents when debugging with 'sh -x'.
* util/grub-mkrescue.in: Likewise.
* util/grub.d/00_header.in: Likewise.
* util/grub.d/10_hurd.in: Likewise.
* util/grub.d/10_kfreebsd.in: Likewise.
* util/grub.d/10_linux.in: Likewise.
* util/grub.d/10_netbsd.in: Likewise.
* util/grub.d/10_windows.in: Likewise.
* util/grub.d/20_linux_xen.in: Likewise.
* util/grub.d/30_os-prober.in: Likewise.
* util/powerpc/ieee1275/grub-mkrescue.in: Likewise.

15 years ago* commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
Colin Watson [Tue, 29 Jun 2010 15:15:46 +0000 (16:15 +0100)] 
* commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
last character in the buffer.
Reported by: Vladimir Serbinenko.

15 years ago2010-06-29 Robert Millan <rmh@gnu.org>
Robert Millan [Mon, 28 Jun 2010 22:48:53 +0000 (00:48 +0200)] 
2010-06-29  Robert Millan  <rmh@gnu.org>

* docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
(Command-line and menu entry commands): Document `badram' command.

15 years ago2010-06-28 Robert Millan <rmh@gnu.org>
Robert Millan [Mon, 28 Jun 2010 21:52:03 +0000 (23:52 +0200)] 
2010-06-28  Robert Millan  <rmh@gnu.org>

* util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
* util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
command using ${GRUB_BADRAM} as parameter.

15 years ago* docs/grub.texi (Device map): New section.
Colin Watson [Mon, 28 Jun 2010 11:02:39 +0000 (12:02 +0100)] 
* docs/grub.texi (Device map): New section.
(Themes): New section (stub).
* Makefile.in (docs/grub.info): The info documentation now builds
without errors.  Make sure it stays that way.

15 years ago Use normal parser for menu entries.
Vladimir 'phcoder' Serbinenko [Mon, 28 Jun 2010 10:42:50 +0000 (12:42 +0200)] 
Use normal parser for menu entries.
Reported by: Thomas Frauendorfer

* include/grub/parser.h (grub_parser_execute): Don't export.
* normal/menu.c (grub_menu_execute_entry_real): New function.
(grub_menu_execute_entry): Use grub_menu_execute_entry_real.

15 years ago* docs/grub.texi (Embedded configuration): New section (replacing
Colin Watson [Mon, 28 Jun 2010 10:32:50 +0000 (11:32 +0100)] 
* docs/grub.texi (Embedded configuration): New section (replacing
old "Preset Menu" stub).
(Images): New section.
(configfile): Note that any menu entries defined in `file' are shown
immediately.

15 years ago * mmap/i386/pc/mmap_helper.S: Set CF on return.
Josh Triplett [Mon, 28 Jun 2010 08:17:57 +0000 (10:17 +0200)] 
* mmap/i386/pc/mmap_helper.S: Set CF on return.

15 years ago* util/grub-install.in: Add --debug-image= option.
Colin Watson [Mon, 28 Jun 2010 08:06:41 +0000 (09:06 +0100)] 
* util/grub-install.in: Add --debug-image= option.

15 years agoChange grub-mkdevicemap to emit /dev/disk/by-id/ names where
Colin Watson [Mon, 28 Jun 2010 07:55:05 +0000 (08:55 +0100)] 
Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
possible on Linux.
* util/deviceiter.c (check_device): Rename to ...
(check_device_readable_unique): ... this.  Update all callers.
Maintain and check a list of which devices (by canonicalized name)
have already been seen.
(clear_seen_devices): New function.
(compare_file_names) [__linux__]: New function.
(grub_util_iterate_devices): Clear the list of seen devices on exit
and (just in case) on entry.
(grub_util_iterate_devices) [__linux__]: Iterate over non-partition
devices in /dev/disk/by-id/, in sorted order.  Remove DM-RAID
seen-devices list, superseded by general code in check_device.

15 years ago* commands/cat.c (options): New variable.
Colin Watson [Mon, 28 Jun 2010 07:51:46 +0000 (08:51 +0100)] 
* commands/cat.c (options): New variable.
(grub_cmd_cat): Parse options.  If the --dos option is given, print
DOS-style "\r\n" line endings as simple newlines (Debian bug
#586358).
(GRUB_MOD_INIT): Use extcmd.
(GRUB_MOD_FINI): Likewise.
* docs/grub.texi (cat): Document --dos.

15 years ago XEN with Linux grub-mkconfig support.
Vladimir 'phcoder' Serbinenko [Mon, 28 Jun 2010 00:39:49 +0000 (02:39 +0200)] 
XEN with Linux grub-mkconfig support.

* conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
* util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
GRUB_CMDLINE_XEN_DEFAULT.
* util/grub.d/20_linux_xen.in: New file.