]> git.proxmox.com Git - grub2.git/log
grub2.git
13 years ago NetBSD build fix for getline function conflict from gnulib.
BVK Chaitanya [Fri, 29 Oct 2010 09:56:16 +0000 (15:26 +0530)]
NetBSD build fix for getline function conflict from gnulib.

* Makefile.util.def (libgrubkern.a): New library for grub kernel
components that depend on gnulib headers.
(libgrubmods.a): Renamed from earlier libgrub.a.
* conf/Makefile.common: Remove gnulib from *_LIBRARY flags.

13 years agomerge with mainline
BVK Chaitanya [Fri, 29 Oct 2010 09:49:30 +0000 (15:19 +0530)]
merge with mainline

13 years agorenamed libemu and libgrub to libgrubkern and libgrubmods respectively
BVK Chaitanya [Fri, 29 Oct 2010 09:14:25 +0000 (14:44 +0530)]
renamed libemu and libgrub to libgrubkern and libgrubmods respectively

13 years ago * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
Vladimir 'phcoder' Serbinenko [Tue, 26 Oct 2010 10:40:35 +0000 (12:40 +0200)]
* util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
install rather than creating a broken install.

13 years ago * util/grub-setup.c (argp): Remove misleading example of installing to
Vladimir 'phcoder' Serbinenko [Tue, 26 Oct 2010 10:33:57 +0000 (12:33 +0200)]
* util/grub-setup.c (argp): Remove misleading example of installing to
a partition.

13 years ago * util/grub-setup.c (setup): Clarify the error message.
Vladimir 'phcoder' Serbinenko [Tue, 26 Oct 2010 10:31:26 +0000 (12:31 +0200)]
* util/grub-setup.c (setup): Clarify the error message.

13 years ago * include/grub/types.h (grub_target_off_t): Removed no longer used type.
Vladimir 'phcoder' Serbinenko [Tue, 26 Oct 2010 10:29:12 +0000 (12:29 +0200)]
* include/grub/types.h (grub_target_off_t): Removed no longer used type.

13 years ago * grub-core/kern/emu/misc.c
Vladimir 'phcoder' Serbinenko [Sat, 23 Oct 2010 18:39:08 +0000 (20:39 +0200)]
* grub-core/kern/emu/misc.c
(grub_make_system_path_relative_to_its_root)
[HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.

13 years ago * grub-core/kern/emu/misc.c
Vladimir 'phcoder' Serbinenko [Sat, 23 Oct 2010 18:34:50 +0000 (20:34 +0200)]
* grub-core/kern/emu/misc.c
(grub_make_system_path_relative_to_its_root): Revert r2882.

13 years ago * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
Vladimir 'phcoder' Serbinenko [Fri, 22 Oct 2010 20:49:36 +0000 (22:49 +0200)]
* grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
useless field head. All users updated.
(free_subchunk): Correct handling of IN_REGION subchunk.

13 years ago* docs/grub.texi (Installing GRUB using grub-install): Proofread.
Colin Watson [Fri, 22 Oct 2010 13:17:33 +0000 (14:17 +0100)]
* docs/grub.texi (Installing GRUB using grub-install): Proofread.
(Supported kernels): Likewise.

13 years agonetbsd fixes
BVK Chaitanya [Tue, 19 Oct 2010 05:14:57 +0000 (10:44 +0530)]
netbsd fixes

13 years agoMake mktemp invocations portable.
Grégoire Sutre [Mon, 18 Oct 2010 20:50:01 +0000 (22:50 +0200)]
Make mktemp invocations portable.

13 years ago * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
BVK Chaitanya [Mon, 18 Oct 2010 10:25:56 +0000 (15:55 +0530)]
* util/grub.d/10_linux.in: Fix built-in initramfs image mode for
Linux kernel, reported by Dennis Schridde.

13 years agoadd change log entry
BVK Chaitanya [Mon, 18 Oct 2010 08:11:00 +0000 (13:41 +0530)]
add change log entry

13 years agofix built-in initramfs case
BVK Chaitanya [Mon, 18 Oct 2010 08:08:42 +0000 (13:38 +0530)]
fix built-in initramfs case

13 years ago * grub-core/normal/auth.c (grub_auth_check_authentication):
Szymon Janc [Sun, 17 Oct 2010 13:41:54 +0000 (15:41 +0200)]
* grub-core/normal/auth.c (grub_auth_check_authentication):
Set-but-not-used variable removed.

13 years ago * docs/grub.texi (GNU/Linux): Document APM unavailability with
Vladimir 'phcoder' Serbinenko [Sun, 17 Oct 2010 00:08:08 +0000 (02:08 +0200)]
* docs/grub.texi (GNU/Linux): Document APM unavailability with
32-bit linux protocol.

13 years ago * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 23:49:06 +0000 (01:49 +0200)]
* grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
cursor shape for sanity.

13 years ago * docs/grub.texi (Installation): Document buggy BIOS install.
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 22:46:39 +0000 (00:46 +0200)]
* docs/grub.texi (Installation): Document buggy BIOS install.

13 years ago * docs/grub.texi (Installation): Indent.
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 22:38:57 +0000 (00:38 +0200)]
* docs/grub.texi (Installation): Indent.

13 years ago * util/grub-setup.c (setup): New parameter allow_floppy.
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 22:35:14 +0000 (00:35 +0200)]
* util/grub-setup.c (setup): New parameter allow_floppy.
(arguments): New member allow_floppy.
(argp_parser): Handle --allow-floppy.
(main): Pass allow_floppy.
* util/grub-install.in: New option --allow-floppy passed though to
grub-setup.

13 years ago * util/grub-install.in: Handle partitionless disks.
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 22:28:19 +0000 (00:28 +0200)]
* util/grub-install.in: Handle partitionless disks.

13 years ago * util/grub-setup.c (setup): Don't clean blocklists before readability
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 22:25:23 +0000 (00:25 +0200)]
* util/grub-setup.c (setup): Don't clean blocklists before readability
verfification.

13 years ago * docs/grub.texi (Installation): Document embedding zone. Remove
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 21:38:30 +0000 (23:38 +0200)]
* docs/grub.texi (Installation): Document embedding zone. Remove
obsolete grub-install example.

13 years ago * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
Szymon Janc [Sat, 16 Oct 2010 20:16:52 +0000 (22:16 +0200)]
* grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
Set-but-not-used variable ifdef'ed.
* grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
* grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
variable removed.
* grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
* grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
* grub-core/fs/minix.c (grub_minix_dir): Likewise.
* grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
* grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
* grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
* grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
* grub-core/gfxmenu/widget-box.c (draw): Likewise.
* grub-core/lib/relocator.c (malloc_in_range): Likewise.
* grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
* grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
Likewise.

13 years ago * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 18:01:30 +0000 (20:01 +0200)]
* grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
* include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
enum value.

13 years ago * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 17:12:18 +0000 (19:12 +0200)]
* grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
synonym to _S5_. Needed for some DSDTs.

13 years ago Userspace ACPI parser debugging.
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 17:06:55 +0000 (19:06 +0200)]
Userspace ACPI parser debugging.

* grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
headers and add relevant defines. Don't include standard headers.
(main) [GRUB_DSDT_TEST]: New function.
* include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
Don't declare functions.

13 years ago Remove dead grub_efi_mm_fini.
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 15:50:48 +0000 (17:50 +0200)]
Remove dead grub_efi_mm_fini.

* grub-core/kern/efi/mm.c (allocated_page): Removed.
(ALLOCATED_PAGES_SIZE): Likewise.
(MAX_ALLOCATED_PAGES): Likewise.
(allocated_pages): Likewise.
(grub_efi_allocate_pages): Don't record allocated pages.
(grub_efi_free_pages): Likewise.
(grub_efi_mm_init): Likewise.
(grub_efi_mm_fini): Removed.

13 years ago * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 15:44:35 +0000 (17:44 +0200)]
* grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
(grub_efi_mm_init): Take into account the memory map size increase.

13 years ago * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 15:29:12 +0000 (17:29 +0200)]
* grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
(serial_hw_put): Wait based on real time rather than port reads. Don't
roken ports.
* include/grub/serial.h (grub_serial_port): New field broken.

13 years agoMention who reported this bug.
Robert Millan [Sat, 16 Oct 2010 00:34:10 +0000 (02:34 +0200)]
Mention who reported this bug.

13 years ago2010-10-16 Robert Millan <rmh@gnu.org>
Robert Millan [Sat, 16 Oct 2010 00:30:14 +0000 (02:30 +0200)]
2010-10-16  Robert Millan  <rmh@gnu.org>

* grub-core/kern/emu/misc.c
(grub_make_system_path_relative_to_its_root): Fix premature return
when processing non-root ZFS filesystems.

13 years ago2010-10-15 Robert Millan <rmh@gnu.org>
Robert Millan [Fri, 15 Oct 2010 10:06:13 +0000 (12:06 +0200)]
2010-10-15  Robert Millan  <rmh@gnu.org>

* util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
guarantee compressed ones are processed first.

13 years ago * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
Vladimir 'phcoder' Serbinenko [Thu, 14 Oct 2010 13:44:04 +0000 (15:44 +0200)]
* grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
grub_efiemu_autocore.

13 years ago * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
Vladimir 'phcoder' Serbinenko [Thu, 14 Oct 2010 13:35:55 +0000 (15:35 +0200)]
* grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
rather than 0x1b.
(grub_console_getkey): Use correct jae opcode rather than ja.

13 years ago2010-10-12 Robert Millan <rmh@gnu.org>
Robert Millan [Tue, 12 Oct 2010 12:47:04 +0000 (14:47 +0200)]
2010-10-12  Robert Millan  <rmh@gnu.org>

* util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
`GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
variable.  All references updated.

* util/grub.d/10_kfreebsd.in: Support recovery boot entries.

14 years ago Correctly distinguish mdraid flavours.
Vladimir 'phcoder' Serbinenko [Fri, 8 Oct 2010 21:27:27 +0000 (23:27 +0200)]
Correctly distinguish mdraid flavours.

* grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
(insert_array): New argument raid.
* include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
* include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
* util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".

14 years ago * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
Vladimir 'phcoder' Serbinenko [Wed, 6 Oct 2010 17:46:20 +0000 (19:46 +0200)]
* grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
handling of special keys.

14 years agoCorrect 2 last Changelog entries
Vladimir 'phcoder' Serbinenko [Wed, 6 Oct 2010 17:42:51 +0000 (19:42 +0200)]
Correct 2 last Changelog entries

14 years agoSCSI - cache ID bug
starous [Sat, 2 Oct 2010 18:56:12 +0000 (20:56 +0200)]
SCSI - cache ID bug

14 years agoSCSI - cache ID bug
starous [Sat, 2 Oct 2010 18:55:10 +0000 (20:55 +0200)]
SCSI - cache ID bug

14 years agousbtrans.c - wrong max packet size for bulk transfer
starous [Sat, 2 Oct 2010 18:50:07 +0000 (20:50 +0200)]
usbtrans.c - wrong max packet size for bulk transfer

14 years agousbtrans.c - wrong max packet size for bulk transfer
starous [Sat, 2 Oct 2010 18:49:05 +0000 (20:49 +0200)]
usbtrans.c - wrong max packet size for bulk transfer

14 years ago Clear out 0x80 color bit on EFI.
Vladimir 'phcoder' Serbinenko [Fri, 1 Oct 2010 14:54:38 +0000 (16:54 +0200)]
Clear out 0x80 color bit on EFI.
Tested by: decoder
Reported by: decoder and meta tech.

* grub-core/term/efi/console.c (grub_console_standard_color): Removed.
(grub_console_setcolorstate): Clear out 0x80 bit.
Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
(grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.

14 years ago * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
Vladimir 'phcoder' Serbinenko [Fri, 1 Oct 2010 14:24:43 +0000 (16:24 +0200)]
* grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
Set to "auto".

14 years ago * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
Vladimir 'phcoder' Serbinenko [Thu, 30 Sep 2010 19:07:51 +0000 (21:07 +0200)]
* grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
mo_file after freeing.

14 years ago * grub-core/normal/term.c (read_terminal_list): Free in a right order.
Vladimir 'phcoder' Serbinenko [Thu, 30 Sep 2010 19:04:09 +0000 (21:04 +0200)]
* grub-core/normal/term.c (read_terminal_list): Free in a right order.

14 years ago * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
Vladimir 'phcoder' Serbinenko [Thu, 30 Sep 2010 18:59:20 +0000 (20:59 +0200)]
* grub-core/script/execute.c (grub_script_execute_sourcecode): Set
flags.

14 years ago * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
Vladimir 'phcoder' Serbinenko [Thu, 30 Sep 2010 17:27:28 +0000 (19:27 +0200)]
* util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
usage.

14 years ago Put terminfo into core on ieee1275 and yeeloong (needed for console).
Vladimir 'phcoder' Serbinenko [Thu, 30 Sep 2010 15:50:01 +0000 (17:50 +0200)]
Put terminfo into core on ieee1275 and yeeloong (needed for console).

* gentpl.py: New groups terminfoinkernel and terminfomodule.
* grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
and terminfo.h when needed.
* grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
(terminfo): Enable only on terminfokernel.
(extcmd): Likewise.
* include/grub/extcmd.h: Add missing EXPORT_FUNC.
* include/grub/lib/arg.h: Likewise.
* grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
incorrect usage of ->.

14 years ago * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
Vladimir 'phcoder' Serbinenko [Wed, 29 Sep 2010 21:58:43 +0000 (23:58 +0200)]
* grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
[GRUB_MACHINE_EFI && __i386__]: Fix typo.

14 years ago Fix coreboot compilation.
Vladimir 'phcoder' Serbinenko [Wed, 29 Sep 2010 21:51:12 +0000 (23:51 +0200)]
Fix coreboot compilation.

* grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
Take VBE info into account even if only text is supported.
(fill_vbe_info): Take into account the case when only VGA text
is supported.
* include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
on coreboot, multiboot and qemu.

14 years ago * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
Vladimir 'phcoder' Serbinenko [Wed, 29 Sep 2010 21:19:21 +0000 (23:19 +0200)]
* grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
debug messages.
(grub_relocator_prepare_relocs): Set movers_chunk.srcv.

14 years ago * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
Vladimir 'phcoder' Serbinenko [Wed, 29 Sep 2010 20:51:12 +0000 (22:51 +0200)]
* grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
parameters.

14 years ago * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
Vladimir 'phcoder' Serbinenko [Wed, 29 Sep 2010 20:48:38 +0000 (22:48 +0200)]
* grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
if they were BSD-style.

14 years ago * grub-core/boot/i386/pc/lnxboot.S: Replace
Vladimir 'phcoder' Serbinenko [Wed, 29 Sep 2010 20:45:57 +0000 (22:45 +0200)]
* grub-core/boot/i386/pc/lnxboot.S: Replace
GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.

14 years ago Write embedding zone using Reed-Solomon.
Vladimir 'phcoder' Serbinenko [Wed, 29 Sep 2010 19:33:38 +0000 (21:33 +0200)]
Write embedding zone using Reed-Solomon.

* Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
* grub-core/Makefile.am (rs_decoder.S): New target.
(kern/i386/pc/startup.S): Depend on rs_decoder.S.
* grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
(multiboot): Move to RS part.
(post_reed_solomon): New label.
(grub_boot_drive): Move to non-RS part since it's modified in memory
on boot.
Include rs_decoder.S.
* grub-core/lib/reed_solomon.c: New file.
* include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
New definition.
(GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
(GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
(GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
* include/grub/partition.h (grub_partition_map): Change prototype of
embed to allow returning additional sectors.
* include/grub/reed_solomon.h: New file.
* util/grub-setup.c (setup): Handle Reed-Solomon.

14 years ago* grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
Colin Watson [Tue, 28 Sep 2010 16:38:34 +0000 (17:38 +0100)]
* grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
i386 and x86-64 definedness tests.

14 years ago Fix generation of kernel_syms.lst
Yves Blusseau [Mon, 27 Sep 2010 09:11:38 +0000 (11:11 +0200)]
Fix generation of kernel_syms.lst

    * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
    ASM_PREFIX

14 years ago2010-09-26 Robert Millan <rmh@gnu.org>
Robert Millan [Sun, 26 Sep 2010 14:11:33 +0000 (16:11 +0200)]
2010-09-26  Robert Millan  <rmh@gnu.org>

Support degraded ZFS arrays in "grub-probe -t device" resolution.

* grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
the pool is an array of devices, iterate through it and return the
first device that passes a stat() test (instead of blindly returning
the first one).

14 years ago2010-09-26 Robert Millan <rmh@gnu.org>
Robert Millan [Sun, 26 Sep 2010 13:53:05 +0000 (15:53 +0200)]
2010-09-26  Robert Millan  <rmh@gnu.org>

Build fixes for GNU/kFreeBSD.

* Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
to programs that require ZFS conversion.
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
kernels that don't have FLOPPY_MAJOR.

14 years agoAdd missing dependency on rs_Decoder.S
Vladimir 'phcoder' Serbinenko [Sun, 26 Sep 2010 11:37:08 +0000 (13:37 +0200)]
Add missing dependency on rs_Decoder.S

14 years agoFix missing mreparm=3
Vladimir 'phcoder' Serbinenko [Sat, 25 Sep 2010 19:43:04 +0000 (21:43 +0200)]
Fix missing mreparm=3

14 years agoRemove debug printf
Vladimir 'phcoder' Serbinenko [Sat, 25 Sep 2010 19:42:36 +0000 (21:42 +0200)]
Remove debug printf

14 years agoMake mb header to protected part
Vladimir 'phcoder' Serbinenko [Sat, 25 Sep 2010 19:42:13 +0000 (21:42 +0200)]
Make mb header to protected part

14 years agoMultiple bugs correction for Reed-Solomon
Vladimir 'phcoder' Serbinenko [Sat, 25 Sep 2010 18:40:26 +0000 (20:40 +0200)]
Multiple bugs correction for Reed-Solomon

14 years agohook Reed-Solomon into startup.S
Vladimir 'phcoder' Serbinenko [Sat, 25 Sep 2010 17:33:05 +0000 (19:33 +0200)]
hook Reed-Solomon into startup.S

14 years agofix typo
BVK Chaitanya [Sat, 25 Sep 2010 05:18:48 +0000 (10:48 +0530)]
fix typo

14 years ago Fix grub-emu build.
BVK Chaitanya [Sat, 25 Sep 2010 05:13:09 +0000 (10:43 +0530)]
Fix grub-emu build.

* grub-core/kern/emu/main.c: Remove #include <getopt.h>.
* grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
mdraid09 and mdraid1x.

14 years agoC part of Reed-Solomon
Vladimir 'phcoder' Serbinenko [Fri, 24 Sep 2010 12:05:47 +0000 (14:05 +0200)]
C part of Reed-Solomon

14 years agoRe-enable grub-extras.
Colin Watson [Fri, 24 Sep 2010 08:48:27 +0000 (09:48 +0100)]
Re-enable grub-extras.
* autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
avoid confusing Automake.  Run autogen only twice, once for the top
level and once for grub-core.  Add Makefile.util.def and
Makefile.core.def from extra modules to the appropriate autogen
invocations.  If Makefile.common exists in an extra module, include
it in both Makefile.util.am and grub-core/Makefile.core.am;
similarly, include any Makefile.util.common file in Makefile.util.am
and any Makefile.core.common file in grub-core/Makefile.core.am.
* conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
* grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
* gentpl.py (gvar_add): Turn GVARS into a set.
(global_variable_initializers): Sort global variables on output.
(vars_init): New function.
(first_time): Likewise.
(library): Ensure that non-global variable initialisations are
emitted before the first time we emit code for a library block.
Append to variables rather than setting them.  Only emit
noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
each conditional path.
(program): installdir() emits an Autogen macro, so must be passed to
var_add rather than gvar_add.
(data): Likewise.
(script): Likewise.
(rules): New function, centralising handling for different target
types.  Set up Guile association lists for first_time and vars_init,
and send most output to a diversion so that variable initialisations
can be emitted first.
(module_rules): Use new rules function.
(kernel_rules): Likewise.
(image_rules): Likewise.
(library_rules): Likewise.
(program_rules): Likewise.
(script_rules): Likewise.
(data_rules): Likewise.
* configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
* .bzrignore: Add contrib and grub-core/contrib.  Remove
grub-core/Makefile.gcry.am.

14 years ago * grub-core/lib/LzFind.c: Add missing include.
Yves Blusseau [Fri, 24 Sep 2010 07:19:57 +0000 (09:19 +0200)]
* grub-core/lib/LzFind.c: Add missing include.
    * grub-core/lib/LzmaEnc.c: Likewise.
    * grub-core/script/lexer.c: Likewise.
    * grub-core/script/yylex.l: Likewise.
    * util/grub-macho2img.c: Likewise.
    * util/grub-menulst2cfg.c: Likewise.
    * util/grub-mklayout.c: Likewise.
    * util/grub-mkpasswd-pbkdf2.c
    * util/grub-mkrelpath.c: Likewise.
    * util/resolve.c: Likewise.

14 years ago * Makefile.util.def (example_unit_test): Add
BVK Chaitanya [Fri, 24 Sep 2010 03:16:15 +0000 (08:46 +0530)]
* Makefile.util.def (example_unit_test): Add
grub-core/gnulib/libgnu.a.

14 years agoVariable initialization.
Grégoire Sutre [Thu, 23 Sep 2010 23:13:50 +0000 (01:13 +0200)]
Variable initialization.

14 years ago Support xz compression on yeeloong.
Vladimir 'phcoder' Serbinenko [Thu, 23 Sep 2010 00:10:44 +0000 (02:10 +0200)]
Support xz compression on yeeloong.

* Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
* configure.ac: Check for LZMA.
* grub-core/Makefile.core.def (xz_decompress): New target.
(none_decompress): Likewise.
* grub-core/boot/decompressor/minilib.c: New file.
* grub-core/boot/decompressor/none.c: Likewise.
* grub-core/boot/decompressor/xz.c: Likewise.
* grub-core/kern/mips/cache.S: Change to noreorder nomacro.
* grub-core/kern/mips/cache_flush.S: Likewise.
* grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
* grub-core/kern/mips/startup.S: Move first stage to ...
* grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
nomacro.
* grub-core/kern/mips/startup.S: Change to noreorder nomacro.
* grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
* grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
Allocate statically.
* grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
Allocate statically or use scratch. Don't check CRC32.
* grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
Allocate statically. Don't check CRC32.
* include/grub/decompressor.h: New file.
* include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
Removed.
(GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
(GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
(GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
(GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
(GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
* util/grub-mkimage.c (grub_compression_t): New type.
(PLATFORM_FLAGS_DECOMPRESSORS): New flag.
(image_target_desc): New field default_compression.
(image_targets): Adjust yeeloong targets.
(compress_kernel_xz) [HAVE_LIBLZMA]: New function.
(compress_kernel): New parameter comp.
(generate_image): Likewise. Handle new compression case.
(options): New option --compression
(help): Likewise.
(main): Handle new option.

14 years agoDefine FLOPPY_MAJOR on NetBSD.
Grégoire Sutre [Wed, 22 Sep 2010 21:32:58 +0000 (23:32 +0200)]
Define FLOPPY_MAJOR on NetBSD.

14 years ago* grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
Colin Watson [Wed, 22 Sep 2010 15:57:49 +0000 (16:57 +0100)]
* grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
typo in __i386__ conditional.

14 years ago * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
Vladimir 'phcoder' Serbinenko [Wed, 22 Sep 2010 15:13:21 +0000 (17:13 +0200)]
* grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
include.

14 years ago Implement EFI and ACPI multiboot2 extensions.
Vladimir 'phcoder' Serbinenko [Wed, 22 Sep 2010 12:51:49 +0000 (14:51 +0200)]
Implement EFI and ACPI multiboot2 extensions.

* grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
new tags as supported.
(acpiv2_size): New function.
(grub_multiboot_get_mbi_size): Take new tags into account.
(grub_multiboot_make_mbi): Add new tags.
* include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.

14 years agoFix bugs in asm code
Vladimir 'phcoder' Serbinenko [Tue, 21 Sep 2010 22:53:34 +0000 (00:53 +0200)]
Fix bugs in asm code

14 years agoAlign scratch
Vladimir 'phcoder' Serbinenko [Tue, 21 Sep 2010 22:52:33 +0000 (00:52 +0200)]
Align scratch

14 years agoWrite total module size before compressing
Vladimir 'phcoder' Serbinenko [Tue, 21 Sep 2010 22:51:54 +0000 (00:51 +0200)]
Write total module size before compressing

14 years ago.../serial/common.c - added missing configuration
starous [Tue, 21 Sep 2010 20:00:44 +0000 (22:00 +0200)]
.../serial/common.c - added missing configuration

14 years ago.../serial/common.c - added missing configuration
starous [Tue, 21 Sep 2010 19:57:57 +0000 (21:57 +0200)]
.../serial/common.c - added missing configuration

14 years agoCompressor part
Vladimir 'phcoder' Serbinenko [Tue, 21 Sep 2010 19:35:46 +0000 (21:35 +0200)]
Compressor part

14 years agoAllow compression algorithm specification
Vladimir 'phcoder' Serbinenko [Tue, 21 Sep 2010 18:30:28 +0000 (20:30 +0200)]
Allow compression algorithm specification

14 years ago* grub-core/normal/menu_entry.c (run): Make sure we always return
Colin Watson [Tue, 21 Sep 2010 18:03:11 +0000 (19:03 +0100)]
* grub-core/normal/menu_entry.c (run): Make sure we always return
a value.

14 years agoMAke a separate scratch for decompressor
Vladimir 'phcoder' Serbinenko [Tue, 21 Sep 2010 17:39:51 +0000 (19:39 +0200)]
MAke a separate scratch for decompressor

14 years ago* grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
Colin Watson [Tue, 21 Sep 2010 15:58:08 +0000 (16:58 +0100)]
* grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
NumberOfPages is UINT64 according to the UEFI specification, not
UINTN.  Fix printf format.

14 years ago* grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
Colin Watson [Tue, 21 Sep 2010 15:13:04 +0000 (16:13 +0100)]
* grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
`err' to grub_usb_err_t.
Reported and tested by: KESHAV P.R.

14 years ago* grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
Colin Watson [Tue, 21 Sep 2010 12:41:23 +0000 (13:41 +0100)]
* grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
tpart non-const, so that we can assign to it.  (Since this is a
typedef, the constness refers to the pointer rather than what it
points to.)

14 years ago* conf/Makefile.common (CPPFLAGS_GNULIB): Add
Colin Watson [Tue, 21 Sep 2010 12:37:50 +0000 (13:37 +0100)]
* conf/Makefile.common (CPPFLAGS_GNULIB): Add
$(top_srcdir)/grub-core/gnulib as well as
$(top_builddir)/grub-core/gnulib.
Reported by: KESHAV P.R.

14 years ago* util/grub-install.in: Fix the bootloader ID option to be
Colin Watson [Tue, 21 Sep 2010 11:10:36 +0000 (12:10 +0100)]
* util/grub-install.in: Fix the bootloader ID option to be
consistently --bootloader-id, not --bootloader_id.
Reported by: KESHAV P.R.

14 years ago* grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
Colin Watson [Tue, 21 Sep 2010 10:14:06 +0000 (11:14 +0100)]
* grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
check hash checksum." consistently translatable.

14 years ago * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
Yves Blusseau [Tue, 21 Sep 2010 10:02:59 +0000 (12:02 +0200)]
* conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
    $(top_builddir).

14 years ago* grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
Colin Watson [Tue, 21 Sep 2010 09:56:16 +0000 (10:56 +0100)]
* grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
(GRUB_MOD_INIT): Register sha1sum command.
(GRUB_MOD_FINI): Unregister sha1sum command.

14 years ago Keep boot and grub directory names in sync with utils scripts
Yves Blusseau [Tue, 21 Sep 2010 09:42:30 +0000 (11:42 +0200)]
Keep boot and grub directory names in sync with utils scripts

    * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
    * config.h.in: Add previous macros.
    * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
    * util/grub-install.in: Use $bootdir and $grubdir variables.

14 years ago* grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
Colin Watson [Tue, 21 Sep 2010 09:36:44 +0000 (10:36 +0100)]
* grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
convert partition names to disk names if the new `convert' parameter
is set.
(grub_util_biosdisk_get_grub_dev): If opening the disk device
returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
disk in its own right.  This can happen with Xen disk images.