]>
git.ipfire.org Git - thirdparty/grub.git/log
Grégoire Sutre [Mon, 10 Jan 2011 00:08:40 +0000 (01:08 +0100)]
Teach grub-mkconfig to load fs modules for NetBSD.
Grégoire Sutre [Sun, 9 Jan 2011 22:23:25 +0000 (23:23 +0100)]
Handle openbsd and netbsd types being in part_bsd module.
Vladimir 'phcoder' Serbinenko [Sat, 8 Jan 2011 19:22:32 +0000 (20:22 +0100)]
* config.h.in (_LARGEFILE_SOURCE): Add missing define.
(_FILE_OFFSET_BITS): Likewise.
Reported by: Seth Goldberg.
Vladimir 'phcoder' Serbinenko [Sat, 8 Jan 2011 18:51:08 +0000 (19:51 +0100)]
grub-fuse
Grégoire Sutre [Sat, 8 Jan 2011 16:01:38 +0000 (17:01 +0100)]
Check for libdevmapper header
Vladimir 'phcoder' Serbinenko [Sat, 8 Jan 2011 15:33:49 +0000 (16:33 +0100)]
partitioned mdraid support (untested)
Vladimir 'phcoder' Serbinenko [Sat, 8 Jan 2011 00:56:09 +0000 (01:56 +0100)]
* grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
avoid aliasing.
(fzap_lookup): Likewise.
(dnode_get): Likewise.
(make_mdn): Likewise.
(zfs_mount): Likewise.
(fzap_iterate): Use temporary pointer to avoid aliasing.
(grub_zfs_read): Likewise.
* grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
* grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
pointers to avoid aliasing.
(grub_cmd_xnu_kernel64): Likewise.
(grub_xnu_load_driver): Likewise.
Vladimir 'phcoder' Serbinenko [Sat, 8 Jan 2011 00:50:06 +0000 (01:50 +0100)]
* grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
aliasing warning.
(grub_cmd_terminal_output): Likewise.
Reported and tested by: Grégoire Sutre.
Vladimir 'phcoder' Serbinenko [Sat, 8 Jan 2011 00:45:57 +0000 (01:45 +0100)]
* grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
warning.
Reported and tested by: Grégoire Sutre.
Vladimir 'phcoder' Serbinenko [Fri, 7 Jan 2011 23:44:38 +0000 (00:44 +0100)]
* configure.ac: Do CPU substitution even if it's specified explicitly.
Reported and tested by: Alain Greppin.
Vladimir 'phcoder' Serbinenko [Fri, 7 Jan 2011 23:39:12 +0000 (00:39 +0100)]
* grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
Reported and tested by: Alain Greppin.
Vladimir 'phcoder' Serbinenko [Fri, 7 Jan 2011 23:34:23 +0000 (00:34 +0100)]
Satisfy some bison versions need for inttypes.h.
* grub-core/lib/posix_wrap/inttypes.h: New file.
* grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
(int16_t): Likewise.
(int32_t): Likewise.
(int64_t): Likewise.
Reported and tested by: Alain Greppin.
Vladimir 'phcoder' Serbinenko [Fri, 7 Jan 2011 23:27:38 +0000 (00:27 +0100)]
* grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
Silence spurious warning.
Reported and tested by: Alain Greppin.
Szymon Janc [Fri, 7 Jan 2011 21:42:02 +0000 (22:42 +0100)]
* docs/grub.texi (Support automatic decompression): Update with xz
decompression support.
Colin Watson [Fri, 7 Jan 2011 17:26:15 +0000 (17:26 +0000)]
merge trunk
Colin Watson [Fri, 7 Jan 2011 17:24:25 +0000 (17:24 +0000)]
Always initialise *relroot in grub_find_root_device_from_mountinfo,
otherwise we free an uninitialised pointer if /proc is unmounted.
Reported by: Scott Moser.
Szymon Janc [Fri, 7 Jan 2011 16:09:39 +0000 (17:09 +0100)]
Improve loaders' kernel command line handling.
* grub-core/lib/cmdline.c: New file.
* include/grub/lib/cmdline.h: Likewise.
* grub-core/loader/i386/linux.c (grub_cmd_linux): Use
grub_create_loader_cmdline to create kernel command line.
* grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
* grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
* grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
* grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
(linux): Add lib/cmdline.c on common.
Vladimir 'phcoder' Serbinenko [Fri, 7 Jan 2011 16:06:42 +0000 (17:06 +0100)]
* grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
inopos might be unaligned.
Vladimir 'phcoder' Serbinenko [Fri, 7 Jan 2011 15:17:24 +0000 (16:17 +0100)]
* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
endian transformations.
* grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
Based on report by: Doug Nazar.
Doug Nazar [Fri, 7 Jan 2011 13:41:44 +0000 (14:41 +0100)]
* grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
array->members[i].start_sector.
* grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
Vladimir 'phcoder' Serbinenko [Fri, 7 Jan 2011 12:27:34 +0000 (13:27 +0100)]
* util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
Reported and tested by: Grégoire Sutre.
Colin Watson [Thu, 6 Jan 2011 18:08:01 +0000 (18:08 +0000)]
remove unused variable
Colin Watson [Thu, 6 Jan 2011 13:24:38 +0000 (13:24 +0000)]
* tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
avoid causing test failures by clearing the screen.
Colin Watson [Thu, 6 Jan 2011 11:09:17 +0000 (11:09 +0000)]
* grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
Fix prefix check to handle the case where dir ends with a slash
(most significantly, "/" itself).
Reported by: Michael Vogt.
Colin Watson [Wed, 5 Jan 2011 11:57:17 +0000 (11:57 +0000)]
merge trunk
Colin Watson [Wed, 5 Jan 2011 11:41:12 +0000 (11:41 +0000)]
include <grub/emu/getroot.h> for grub_find_device
Vladimir 'phcoder' Serbinenko [Wed, 5 Jan 2011 11:23:06 +0000 (12:23 +0100)]
Run terminfo_cls on initing terminfo output to clear the screen and
move the cursor to (0,0).
* grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
Call grub_terminfo_output_init.
* grub-core/term/serial.c (grub_serial_term_output): Set .init.
* grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
* include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
Vladimir 'phcoder' Serbinenko [Wed, 5 Jan 2011 00:28:28 +0000 (01:28 +0100)]
* util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
only when needed.
Vladimir 'phcoder' Serbinenko [Wed, 5 Jan 2011 00:25:01 +0000 (01:25 +0100)]
* grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
CTRL.
Vladimir 'phcoder' Serbinenko [Wed, 5 Jan 2011 00:14:32 +0000 (01:14 +0100)]
The E820 type 5 is BADRAM, not EXEC_CODE.
* grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
(GRUB_E820_BADRAM): New define.
* grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
into reserved. Propagate BADRAM.
* grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
(GRUB_E820_BADRAM): New define.
Vladimir 'phcoder' Serbinenko [Tue, 4 Jan 2011 18:08:03 +0000 (19:08 +0100)]
* grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
Ignore the memory post-4G.
(grub_relocator_firmware_alloc_region): Additional debug statement.
Vladimir 'phcoder' Serbinenko [Tue, 4 Jan 2011 17:15:27 +0000 (18:15 +0100)]
* grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
names.
Reported by: David Pravec.
Colin Watson [Tue, 4 Jan 2011 15:51:41 +0000 (15:51 +0000)]
merge trunk
Colin Watson [Tue, 4 Jan 2011 15:41:07 +0000 (15:41 +0000)]
merge trunk
Vladimir 'phcoder' Serbinenko [Tue, 4 Jan 2011 14:42:47 +0000 (15:42 +0100)]
* grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
BIOSes.
Vladimir 'phcoder' Serbinenko [Tue, 4 Jan 2011 14:39:59 +0000 (15:39 +0100)]
* grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
Prevent overflow.
(grub_reed_solomon_recover): Likewise.
Vladimir 'phcoder' Serbinenko [Tue, 4 Jan 2011 14:37:10 +0000 (15:37 +0100)]
* grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
Vladimir 'phcoder' Serbinenko [Tue, 4 Jan 2011 14:35:10 +0000 (15:35 +0100)]
* grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
variable.
Colin Watson [Tue, 4 Jan 2011 13:05:19 +0000 (13:05 +0000)]
* grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
descriptions of extract_legacy_entries_source and
extract_legacy_entries_configfile.
Reported by: Seung Soo, Ha.
Colin Watson [Mon, 3 Jan 2011 23:56:45 +0000 (23:56 +0000)]
* grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
on devices that do not implement function 0.
Vladimir 'phcoder' Serbinenko [Mon, 3 Jan 2011 15:03:13 +0000 (16:03 +0100)]
merge mainline into ahci
Vladimir 'phcoder' Serbinenko [Mon, 3 Jan 2011 14:59:20 +0000 (15:59 +0100)]
Fix finalisation/restore
Vladimir 'phcoder' Serbinenko [Mon, 3 Jan 2011 14:54:59 +0000 (15:54 +0100)]
add missing == 0
Dave Vasilevsky [Mon, 3 Jan 2011 14:30:41 +0000 (15:30 +0100)]
* grub-core/fs/hfsplus.c: Make parent unsigned.
(grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
overflows.
(grub_hfsplus_cmp_extkey): Likewise
Vladimir 'phcoder' Serbinenko [Mon, 3 Jan 2011 13:33:43 +0000 (14:33 +0100)]
* util/grub-install.in: Correctly use bootloader_id and not
GRUB_DISTRIBUTOR on efibootmgr line.
Vladimir 'phcoder' Serbinenko [Mon, 3 Jan 2011 13:16:42 +0000 (14:16 +0100)]
* util/grub-mkfont.c (main): Report errors in FT_New_Face.
phcoder [Mon, 3 Jan 2011 12:48:33 +0000 (13:48 +0100)]
Fix incorrect usage of variables in grub-install
phcoder [Mon, 3 Jan 2011 12:46:36 +0000 (13:46 +0100)]
First handling of ia64-efi in grub-mkimage
phcoder [Mon, 3 Jan 2011 01:28:14 +0000 (02:28 +0100)]
Fix compilation errors
Vladimir 'phcoder' Serbinenko [Sun, 2 Jan 2011 23:56:28 +0000 (00:56 +0100)]
Discard a bunch of junk code
phcoder [Sun, 2 Jan 2011 23:47:21 +0000 (00:47 +0100)]
Discard several spurious differences from mainline
phcoder [Sun, 2 Jan 2011 23:30:26 +0000 (00:30 +0100)]
Fix autogen
Vladimir 'phcoder' Serbinenko [Sun, 2 Jan 2011 23:04:39 +0000 (00:04 +0100)]
merge mainline to ia64
Vladimir 'phcoder' Serbinenko [Sun, 2 Jan 2011 22:55:50 +0000 (23:55 +0100)]
merge ia64-emu into ia64
phcoder [Sun, 2 Jan 2011 22:30:25 +0000 (23:30 +0100)]
Restructure module loading and many fixes. Now normal.mod loads successfully
phcoder [Sun, 2 Jan 2011 18:20:28 +0000 (19:20 +0100)]
Working hello.mod with extcmd.mod
phcoder [Sun, 2 Jan 2011 13:58:57 +0000 (14:58 +0100)]
support for registering functions from modules (not tested yet)
phcoder [Sun, 2 Jan 2011 13:39:23 +0000 (14:39 +0100)]
ltoff relocation support
phcoder [Sun, 2 Jan 2011 13:09:58 +0000 (14:09 +0100)]
Succesfully loaded return-only module on ia64-emu
Vladimir 'phcoder' Serbinenko [Sat, 1 Jan 2011 14:53:31 +0000 (15:53 +0100)]
Add missing cache.c
Vladimir 'phcoder' Serbinenko [Sat, 1 Jan 2011 14:28:39 +0000 (15:28 +0100)]
add moddi3 and divdi3
Vladimir 'phcoder' Serbinenko [Sat, 1 Jan 2011 14:13:03 +0000 (15:13 +0100)]
Always add libgcc.h
Ian Campbell [Fri, 31 Dec 2010 22:49:42 +0000 (22:49 +0000)]
* util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
Xen and reorder menu item wording to make it clearer that this entry
will launch Xen. Print separate messages when loading Xen and
Linux.
Vladimir 'phcoder' Serbinenko [Fri, 31 Dec 2010 14:23:06 +0000 (15:23 +0100)]
Check amiga partmap checksum
Vladimir 'phcoder' Serbinenko [Fri, 31 Dec 2010 14:22:36 +0000 (15:22 +0100)]
Simplify the AFFS checksum computation.
Vladimir 'phcoder' Serbinenko [Fri, 31 Dec 2010 14:05:55 +0000 (15:05 +0100)]
merge mainline into filesys
Vladimir 'phcoder' Serbinenko [Fri, 31 Dec 2010 14:02:07 +0000 (15:02 +0100)]
merge mainline into filesys branch
Vladimir 'phcoder' Serbinenko [Fri, 31 Dec 2010 14:00:45 +0000 (15:00 +0100)]
* grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
(amiga_partition_map_iterate): Check "PART" magic to avoid a very long
loop in case of incorrect amiga partmap.
Vladimir 'phcoder' Serbinenko [Fri, 31 Dec 2010 13:55:55 +0000 (14:55 +0100)]
* grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
(amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
Reported by:EHeM.
Vladimir 'phcoder' Serbinenko [Fri, 31 Dec 2010 11:37:35 +0000 (12:37 +0100)]
* grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
spurious warning.
Reported by: crocket
Vladimir 'phcoder' Serbinenko [Mon, 27 Dec 2010 09:43:04 +0000 (10:43 +0100)]
Add plan9 to OS support table
Vladimir 'phcoder' Serbinenko [Mon, 27 Dec 2010 06:19:51 +0000 (07:19 +0100)]
* grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
Preload EFIemu.
(grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
Vladimir 'phcoder' Serbinenko [Mon, 27 Dec 2010 06:18:24 +0000 (07:18 +0100)]
* grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
is loaded
(grub_cmd_xnu_kextdir): Likewise.
(grub_cmd_xnu_splash): Likewise.
Vladimir 'phcoder' Serbinenko [Mon, 27 Dec 2010 06:09:43 +0000 (07:09 +0100)]
Avoid using Reed-Solomon with 0 redundancy.
* grub-core/kern/i386/pc/startup.S: Remove 0-data check.
* grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
or 0 redundancy.
(grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
(grub_reed_solomon_recover): Likewise.
Vladimir 'phcoder' Serbinenko [Mon, 27 Dec 2010 06:06:41 +0000 (07:06 +0100)]
Don't use disk subsystem in freebsd_boot.
* grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
(freebsd_biosdev): Likewise.
(grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
(grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
Vladimir 'phcoder' Serbinenko [Sun, 26 Dec 2010 20:15:31 +0000 (21:15 +0100)]
Handling of files of unknown size is currently limited. They can't be
used e.g. for initrd or modules. Moreover gzip handling of not
easily seekable files is buggy. Disable unknown file size for now. May
be inefficient but works.
* grub-core/io/gzio.c (test_header): Always retrieve the file size.
* grub-core/io/xzio.c (grub_xzio_open): Likewise.
Mirko Parthey [Sun, 26 Dec 2010 19:49:08 +0000 (20:49 +0100)]
* grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
floppy probe.
Vladimir 'phcoder' Serbinenko [Sun, 26 Dec 2010 10:20:12 +0000 (11:20 +0100)]
merge mainline into ahci
Vladimir 'phcoder' Serbinenko [Sat, 25 Dec 2010 23:57:03 +0000 (00:57 +0100)]
fix a compilation error
Vladimir 'phcoder' Serbinenko [Sat, 25 Dec 2010 23:38:20 +0000 (00:38 +0100)]
freedos support
Jeroen Dekkers [Sat, 25 Dec 2010 21:32:54 +0000 (22:32 +0100)]
* grub-core/disk/raid.c (insert_array): Don't add spurious members.
Shea Levy [Sat, 25 Dec 2010 17:21:46 +0000 (18:21 +0100)]
* grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
Vladimir 'phcoder' Serbinenko [Sat, 25 Dec 2010 17:16:01 +0000 (18:16 +0100)]
* util/grub.d/30_os-prober.in: Don't emit drivemap directive for
Windows Server 2008.
Reported by: Devin Giddings.
Vladimir 'phcoder' Serbinenko [Sat, 25 Dec 2010 17:02:43 +0000 (18:02 +0100)]
Accept ports in state 1
Vladimir 'phcoder' Serbinenko [Sat, 25 Dec 2010 16:40:00 +0000 (17:40 +0100)]
set parms.write on disk write
Vladimir 'phcoder' Serbinenko [Sat, 25 Dec 2010 14:47:23 +0000 (15:47 +0100)]
Fix adressing mode mismatch
Vladimir 'phcoder' Serbinenko [Sat, 25 Dec 2010 13:09:36 +0000 (14:09 +0100)]
* grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
writing an error message because of async power management.
* grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
(grub_reboot): Likewise.
Vladimir 'phcoder' Serbinenko [Sat, 25 Dec 2010 12:44:31 +0000 (13:44 +0100)]
avoid throwing data away on pxefs_open. Reported by : Seth Goldberg
Vladimir 'phcoder' Serbinenko [Sat, 25 Dec 2010 11:11:54 +0000 (12:11 +0100)]
extend --disk-module to AHCI and USB
Vladimir 'phcoder' Serbinenko [Sat, 25 Dec 2010 02:47:51 +0000 (03:47 +0100)]
Move 0xE0 to callers rather than to have it in drivers
Vladimir 'phcoder' Serbinenko [Sat, 25 Dec 2010 02:22:12 +0000 (03:22 +0100)]
Remove unused pata ioaddress2
Vladimir 'phcoder' Serbinenko [Sat, 25 Dec 2010 02:12:49 +0000 (03:12 +0100)]
use DMA for AHCI commands
Vladimir 'phcoder' Serbinenko [Sat, 25 Dec 2010 02:06:07 +0000 (03:06 +0100)]
working AHCI (at last)
Vladimir 'phcoder' Serbinenko [Sat, 25 Dec 2010 01:53:20 +0000 (02:53 +0100)]
DMA ATA commands support
Vladimir 'phcoder' Serbinenko [Fri, 24 Dec 2010 18:48:55 +0000 (19:48 +0100)]
Fix several AHCI problems
Vladimir 'phcoder' Serbinenko [Fri, 24 Dec 2010 16:11:21 +0000 (17:11 +0100)]
rearrange wait_not_busy
Vladimir 'phcoder' Serbinenko [Fri, 24 Dec 2010 16:10:41 +0000 (17:10 +0100)]
fix ATAPI support
Vladimir 'phcoder' Serbinenko [Fri, 24 Dec 2010 16:09:56 +0000 (17:09 +0100)]
fix 3rd argument to scsi_iterate
Vladimir 'phcoder' Serbinenko [Fri, 24 Dec 2010 15:54:33 +0000 (16:54 +0100)]
Add missing buffer specifications
Vladimir 'phcoder' Serbinenko [Fri, 24 Dec 2010 15:16:01 +0000 (16:16 +0100)]
merge mainline into ahci