]> git.ipfire.org Git - thirdparty/grub.git/log
thirdparty/grub.git
14 years ago* grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Random fixes and some
Szymon Janc [Tue, 23 Aug 2011 17:49:01 +0000 (19:49 +0200)] 
* grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Random fixes and some
cleanup.

14 years ago* include/grub/file.h (grub_file_filter_id): Set
Szymon Janc [Mon, 22 Aug 2011 07:18:22 +0000 (09:18 +0200)] 
* include/grub/file.h (grub_file_filter_id): Set
GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.

14 years agoVarious bug fixes and improvements in lzopio. Should properly handle more
Szymon Janc [Sun, 21 Aug 2011 16:48:19 +0000 (18:48 +0200)] 
Various bug fixes and improvements in lzopio. Should properly handle more
files now. Also added support for lzop checksums verification.

14 years agoReturn correct adler32 value in read() call.
Szymon Janc [Sun, 21 Aug 2011 12:49:07 +0000 (14:49 +0200)] 
Return correct adler32 value in read() call.

14 years agomerge trunk
Szymon Janc [Sat, 20 Aug 2011 18:21:36 +0000 (20:21 +0200)] 
merge trunk

14 years agoAdd support for adler32 checksuming.
Szymon Janc [Sat, 20 Aug 2011 16:24:54 +0000 (18:24 +0200)] 
Add support for adler32 checksuming.

* grub-core/lib/adler32.c: New file.
* Makefile.util.def (library): Add grub-core/lib/adler32.c to common.
* util/import_gcry.py (cryptolist): Add adler32.

14 years agoAdd grub-fstest option to uncompress data for commands.
Szymon Janc [Sat, 20 Aug 2011 11:04:38 +0000 (13:04 +0200)] 
Add grub-fstest option to uncompress data for commands.

* util/grub-fstest.c (uncompress): New var.
(options): New option -u.

14 years agomerge trunk
Szymon Janc [Sat, 20 Aug 2011 10:02:35 +0000 (12:02 +0200)] 
merge trunk

14 years ago* grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
Szymon Janc [Sat, 20 Aug 2011 09:58:41 +0000 (11:58 +0200)] 
* grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.

14 years ago* grub-core/io/gzio.c (grub_gzio_open): Always return original io if
Szymon Janc [Sat, 20 Aug 2011 09:48:46 +0000 (11:48 +0200)] 
* grub-core/io/gzio.c (grub_gzio_open): Always return original io if
file type was not recognized correctly (not gzip or corrupted).

14 years agomerge trunk
Szymon Janc [Sat, 20 Aug 2011 07:49:15 +0000 (09:49 +0200)] 
merge trunk

14 years agoMore work on LZO for btrfs support. Some fixes and code refactoring.
Szymon Janc [Sat, 20 Aug 2011 00:05:08 +0000 (02:05 +0200)] 
More work on LZO for btrfs support. Some fixes and code refactoring.

14 years ago * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
Vladimir 'phcoder' Serbinenko [Fri, 19 Aug 2011 21:11:09 +0000 (23:11 +0200)] 
* grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
* include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.

14 years ago * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
Vladimir 'phcoder' Serbinenko [Fri, 19 Aug 2011 21:08:36 +0000 (23:08 +0200)] 
* grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
loongson.
* grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
video_radeon_fuloong2e.
* grub-core/video/radeon_fuloong2e.c: New file.
* include/grub/video.h (grub_video_id_t): Add new ID
GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.

14 years ago * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
Vladimir 'phcoder' Serbinenko [Fri, 19 Aug 2011 21:04:18 +0000 (23:04 +0200)] 
* include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
define.
* grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
that PRID matches the detected subplatform and reset the subplatform
if it doesn't.

14 years ago * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
Vladimir 'phcoder' Serbinenko [Fri, 19 Aug 2011 20:59:24 +0000 (22:59 +0200)] 
* grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.

14 years ago Fix PCI iterating on functions >= 4.
Vladimir 'phcoder' Serbinenko [Fri, 19 Aug 2011 20:56:49 +0000 (22:56 +0200)] 
Fix PCI iterating on functions >= 4.

* grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
* include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
Removed.
(GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
(grub_pci_read): Fix bitmask.
(grub_pci_read_word): Likewise.
(grub_pci_read_byte): Likewise.
(grub_pci_write): Likewise.
(grub_pci_write_word): Likewise.
(grub_pci_write_byte): Likewise.

14 years ago * configure.ac: Don't impose march=loongson2f on loongson platform. (It
Vladimir 'phcoder' Serbinenko [Fri, 19 Aug 2011 20:49:48 +0000 (22:49 +0200)] 
* configure.ac: Don't impose march=loongson2f on loongson platform. (It
can still be specified in TARGET_CFLAGS)

14 years ago Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
Vladimir 'phcoder' Serbinenko [Fri, 19 Aug 2011 20:46:11 +0000 (22:46 +0200)] 
Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.

* grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
* grub-core/boot/mips/loongson/fuloong.S: Rename to ...
* grub-core/boot/mips/loongson/fuloong2f.S: ... this.
(FULOONG): Rename to ...
(FULOONG2F): ... this. All users updated.
* grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
(machtype_fuloong2f_str): ... this.
(machtype_fuloong2e_str): New string.
Check for machtype_fuloong2e_str.
* grub-core/loader/mips/linux.c (loongson_machtypes)
[GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
* grub-core/term/serial.c (loongson_defserial)
[GRUB_MACHINE_MIPS_LOONGSON]: New array.
(grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
loongson_defserial.
* include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
Rename to ...
(GRUB_ARCH_MACHINE_FULOONG2F): ... this.
(GRUB_ARCH_MACHINE_FULOONG2E): New const.
* util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
to IMAGE_FULOONG2F_FLASH. All users updated.
(image_targets): Rename images.
* util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.

14 years agoMake enable of disk cache statistics code configurable.
Szymon Janc [Fri, 19 Aug 2011 19:28:09 +0000 (21:28 +0200)] 
Make enable of disk cache statistics code configurable.

* configure.ac: --enable-cache-stats added.
* config.h.in (DISK_CACHE_STATS): New define.
* grub-core/Makefile.core.def (cacheinfo): New command.
* include/grub/disk.h(grub_disk_cache_get_performance): New function.
* grub-core/commands/cacheinfo.c: New file.
* grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
moved to cacheinfo.c.
* grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
debug code.
* include/grub/disk.h: Likewise.

14 years ago* Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
Szymon Janc [Fri, 19 Aug 2011 18:06:42 +0000 (20:06 +0200)] 
* Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
* grub-core/Makefile.am: Likewise.

14 years ago* configure.ac: Fixed typo in --enable-cache-stats description.
Szymon Janc [Fri, 19 Aug 2011 15:24:18 +0000 (17:24 +0200)] 
* configure.ac: Fixed typo in --enable-cache-stats description.

14 years agoAdd initial support for lzop files decompression.
Szymon Janc [Wed, 17 Aug 2011 17:40:25 +0000 (19:40 +0200)] 
Add initial support for lzop files decompression.

* grub-core/Makefile.core.def (lzopio): New module.
* grub-core/io/lzopio.c: New file.
* include/grub/file.h (grub_file_filter_id): New compression filter
GRUB_FILE_FILTER_LZOPIO.

14 years ago * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
Vladimir 'phcoder' Serbinenko [Tue, 16 Aug 2011 21:12:20 +0000 (23:12 +0200)] 
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
non-zero pull.

14 years ago * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
Vladimir 'phcoder' Serbinenko [Tue, 16 Aug 2011 21:10:38 +0000 (23:10 +0200)] 
* grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
All users updated.
(grub_jfs_lookup_symlink): Use correct starting inode.

14 years ago * util/grub-setup.c (main): Add missing gcry initialisation.
Vladimir 'phcoder' Serbinenko [Tue, 16 Aug 2011 14:19:06 +0000 (16:19 +0200)] 
* util/grub-setup.c (main): Add missing gcry initialisation.

14 years ago Don't accept text modes on EFI when booting Linux.
Vladimir 'phcoder' Serbinenko [Tue, 16 Aug 2011 14:11:10 +0000 (16:11 +0200)] 
Don't accept text modes on EFI when booting Linux.

* grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
(grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.

14 years ago* util/grub-probe.c (probe): Canonicalise the path argument, fixing
Mario Limonciello [Mon, 15 Aug 2011 22:30:11 +0000 (23:30 +0100)] 
* util/grub-probe.c (probe): Canonicalise the path argument, fixing
use of "/path/.." as in grub-install for EFI as well as handling
symlinks correctly.
Fixes Debian bug #637768.

14 years ago* util/grub-probe.c: Remove duplicate #include.
Colin Watson [Mon, 15 Aug 2011 22:21:29 +0000 (23:21 +0100)] 
* util/grub-probe.c: Remove duplicate #include.

14 years agoAdd support for LZO compression in btrfs.
Szymon Janc [Sun, 14 Aug 2011 09:46:05 +0000 (11:46 +0200)] 
Add support for LZO compression in btrfs.

* Makefile.util.def (libgrubmods.a): Add minilzo.c and add required flags
to cflags in cppflags.
* Makefile.core.def (btrfs): Likewise.
* grub-core/fs/btrfs.c: Include minilzo.h.
(grub_btrfs_superblock): Add sectorsize, nodesize, leafsize, stripsize and
dummy5 field.
(GRUB_BTRFS_COMPRESSION_LZO): New define.
(grub_btrfs_extent_read): Add support for LZO compression type.

14 years ago* grub-core/fs/btrfs.c: Some code style fixes.
Szymon Janc [Sun, 14 Aug 2011 09:42:53 +0000 (11:42 +0200)] 
* grub-core/fs/btrfs.c: Some code style fixes.

14 years agoAdd helper functions for easier unaligned memory access.
Szymon Janc [Sun, 14 Aug 2011 09:41:19 +0000 (11:41 +0200)] 
Add helper functions for easier unaligned memory access.

* include/grub/types.h (grub_get_unaligned16): New function.
(grub_get_unaligned32): Likewise.
(grub_get_unaligned64): Likewise.

14 years agoImport minilzo library for LZO decompression support.
Szymon Janc [Sun, 14 Aug 2011 09:39:31 +0000 (11:39 +0200)] 
Import minilzo library for LZO decompression support.

* grub-core/lib/minilzo/lzoconf.h: New file.
* grub-core/lib/minilzo/lzodefs.h: Likewise.
* grub-core/lib/minilzo/minilzo.c: Likewise.
* grub-core/lib/minilzo/minilzo.h: Likewise.
* include/grub/types.h (GRUB_UCHAR_MAX): New define.
(GRUB_USHRT_MAX): Likewise.
(GRUB_UINT_MAX): Likewise.
* grub-core/lib/posix_wrap/limits.h (USHRT_MAX): New define.
(UINT_MAX): Likewise.
(CHAR_BIT): Likewise.
* grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
grub-core/lib/posix_wrap/limits.h
(UCHAR_MAX): Likewise.

14 years agomerge trunk
Szymon Janc [Sat, 13 Aug 2011 13:00:48 +0000 (15:00 +0200)] 
merge trunk

14 years ago2011-08-10 Robert Millan <rmh@gnu.org>
Robert Millan [Wed, 10 Aug 2011 20:24:02 +0000 (22:24 +0200)] 
2011-08-10  Robert Millan  <rmh@gnu.org>

        Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.

        * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
        function.
        [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
        (/dev/mfid[0-9]+) devices using get_mfi_disk_name().

14 years ago2011-08-03 Robert Millan <rmh@gnu.org>
Robert Millan [Wed, 3 Aug 2011 11:30:46 +0000 (13:30 +0200)] 
2011-08-03  Robert Millan  <rmh@gnu.org>

        * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
        la_array as packed.
        Reported by: Zachary Bedell

14 years ago* configure.ac: The Loongson port requires grub-mkfont due to its
Colin Watson [Tue, 26 Jul 2011 15:19:47 +0000 (16:19 +0100)] 
* configure.ac: The Loongson port requires grub-mkfont due to its
use of -DUSE_ASCII_FAILBACK.  Raise an error if it is not going to
be built.

14 years ago* util/grub-install.in: Don't source grub-mkconfig_lib until after
Colin Watson [Tue, 26 Jul 2011 10:59:47 +0000 (11:59 +0100)] 
* util/grub-install.in: Don't source grub-mkconfig_lib until after
processing arguments (otherwise help2man fails when GRUB has not yet
been installed).

14 years ago New script grub-mkstandalone.
Vladimir 'phcoder' Serbinenko [Mon, 25 Jul 2011 06:19:30 +0000 (08:19 +0200)] 
New script grub-mkstandalone.

* Makefile.util.def (grub-mkstandalone): New script.
* docs/man/grub-mkstandalone.h2m: New file.
* util/grub-mkstandalone.in: Likewise.

14 years ago Support ATA disks with 4K sectors.
Vladimir 'phcoder' Serbinenko [Mon, 25 Jul 2011 06:14:34 +0000 (08:14 +0200)] 
Support ATA disks with 4K sectors.

* include/grub/ata.h (grub_ata): New member log_sector_size.
* grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
(grub_ata_identify): Read sector size.
(grub_ata_readwrite): Use log_sector_size rather than hardcoded value.

14 years ago * util/grub-install.in: Don't use uhci outside of x86.
Vladimir 'phcoder' Serbinenko [Mon, 25 Jul 2011 06:06:20 +0000 (08:06 +0200)] 
* util/grub-install.in: Don't use uhci outside of x86.

14 years ago * util/grub-mkrescue.in: Add missing quotes.
Vladimir 'phcoder' Serbinenko [Mon, 25 Jul 2011 05:57:29 +0000 (07:57 +0200)] 
* util/grub-mkrescue.in: Add missing quotes.

14 years ago * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
Vladimir 'phcoder' Serbinenko [Mon, 25 Jul 2011 05:48:19 +0000 (07:48 +0200)] 
* grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
dereference.

14 years ago * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
Vladimir 'phcoder' Serbinenko [Sat, 23 Jul 2011 16:18:14 +0000 (18:18 +0200)] 
* grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.

14 years ago * include/grub/video.h: add missing EXPORT_FUND on
Vladimir 'phcoder' Serbinenko [Sat, 23 Jul 2011 15:18:31 +0000 (17:18 +0200)] 
* include/grub/video.h: add missing EXPORT_FUND on
grub_video_edid_checksum and grub_video_edid_preferred_mode.

14 years ago * include/grub/mips/kernel.h: Fix define conflict.
Vladimir 'phcoder' Serbinenko [Sat, 23 Jul 2011 15:14:38 +0000 (17:14 +0200)] 
* include/grub/mips/kernel.h: Fix define conflict.

14 years ago * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
Vladimir 'phcoder' Serbinenko [Sat, 23 Jul 2011 14:44:40 +0000 (16:44 +0200)] 
* grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
all four ways.

14 years agoPreferred resolution detection for VBE.
Colin Watson [Thu, 21 Jul 2011 18:46:44 +0000 (19:46 +0100)] 
Preferred resolution detection for VBE.

* grub-core/video/video.c (grub_video_edid_checksum): New function.
(grub_video_edid_preferred_mode): Likewise.  Try EDID followed by
the Flat Panel extension, in line with the X.org VESA driver.
* grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
New function.
(grub_vbe_bios_get_ddc_capabilities): Likewise.
(grub_vbe_bios_read_edid): Likewise.
(grub_vbe_get_preferred_mode): Likewise.
(grub_video_vbe_setup): When the mode is "auto", try to get the
preferred mode from VBE, and use the largest mode that is no larger
than the preferred mode (some BIOSes expose a preferred mode that is
not in their mode list!).  If this fails, fall back to 640x480 as a
safe conservative choice.
(grub_video_vbe_get_edid): New function.
(grub_video_vbe_adapter): Add get_edid.
* include/grub/video.h (struct grub_vbe_edid_info): New structure.
(struct grub_video_adapter): Add get_edid.
(grub_video_edid_checksum): Add prototype.
(grub_video_edid_preferred_mode): Likewise.
* include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
structure.

* grub-core/commands/videoinfo.c (print_edid): New function.
(grub_cmd_videoinfo): Print EDID if available.

* util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto".  This
is more appropriate on a wider range of platforms than 640x480.
* docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
documentation.

14 years ago * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
Vladimir 'phcoder' Serbinenko [Sun, 10 Jul 2011 14:06:31 +0000 (16:06 +0200)] 
* util/grub-install.in: Recognize ESP mounted at /boot/EFI.

14 years ago * po/POTFILES.in: Regenerate.
Vladimir 'phcoder' Serbinenko [Sun, 10 Jul 2011 13:56:56 +0000 (15:56 +0200)] 
* po/POTFILES.in: Regenerate.

14 years ago * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
Vladimir 'phcoder' Serbinenko [Sun, 10 Jul 2011 13:33:57 +0000 (15:33 +0200)] 
* grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
incorrect memory usage.

14 years ago * util/grub-install.in: Source grub-mkconfig_lib.
Vladimir 'phcoder' Serbinenko [Sun, 10 Jul 2011 13:32:43 +0000 (15:32 +0200)] 
* util/grub-install.in: Source grub-mkconfig_lib.

14 years ago Remove getroot.c from core on emu platform.
Vladimir 'phcoder' Serbinenko [Fri, 8 Jul 2011 11:33:12 +0000 (13:33 +0200)] 
Remove getroot.c from core on emu platform.

* grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
kern/emu/raid.c.
* grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
useless.
* grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
* util/getroot.c (get_win32_path): ... here.
* grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
* util/getroot.c (fini_libzfs): ... here.
* grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
* util/getroot.c (grub_get_libzfs_handle): ... here.
* grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
Moved from here...
* util/getroot.c (grub_find_zpool_from_dir): ... here.
* grub-core/kern/emu/misc.c
(grub_make_system_path_relative_to_its_root): Moved from here...
* util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
* grub-core/kern/emu/getroot.c: Moved from here ...
* util/getroot.c: ... here. All users updated.
* grub-core/kern/emu/raid.c: Moved from here ...
* util/raid.c: ... here. All users updated.

14 years ago * po/POTFILES.in: Regenerate.
Vladimir 'phcoder' Serbinenko [Fri, 8 Jul 2011 02:06:02 +0000 (04:06 +0200)] 
* po/POTFILES.in: Regenerate.

14 years ago Fix compilation on GNU/Linux.
Vladimir 'phcoder' Serbinenko [Fri, 8 Jul 2011 01:59:05 +0000 (03:59 +0200)] 
Fix compilation on GNU/Linux.

* grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
Disable geli.
(grub_util_get_grub_dev) [!FreeBSD]: Likewise.
(grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
* grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.

14 years ago LUKS and GELI support.
Vladimir Serbinenko [Thu, 7 Jul 2011 21:52:58 +0000 (23:52 +0200)] 
LUKS and GELI support.

* Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
grub-core/disk/luks.c, grub-core/disk/geli.c,
grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
grub-core/lib/arg.c.
(libgrubmods.a): Remove gcrypts cflags and cppflags.
Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
(grub-bin2h): Add libgcry.a.
(grub-mkimage): Likewise.
(grub-mkrelpath): Likewise.
(grub-script-check): Likewise.
(grub-editenv): Likewise.
(grub-mkpasswd-pbkdf2): Likewise.
(grub-pe2elf): Likewise.
(grub-fstest): Likewise.
(grub-mkfont): Likewise.
(grub-mkdevicemap): Likewise.
(grub-probe): Likewise.
(grub-ofpath): Likewise.
(grub-mklayout): Likewise.
(example_unit_test): Likewise.
(grub-menulst2cfg): Likewise.
* autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
* grub-core/Makefile.core.def (cryptodisk): New module.
(luks): Likewise.
(geli): Likewise.
* grub-core/disk/AFSplitter.c: New file.
* grub-core/disk/cryptodisk.c: Likewise.
* grub-core/disk/geli.c: Likewise.
* grub-core/disk/luks.c: Likewise.
* grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
grub_util_is_lvm.
(grub_util_get_dm_abstraction): New function.
(grub_util_follow_gpart_up): Likewise.
(grub_util_get_geom_abstraction): Likewise.
(grub_util_get_dev_abstraction): Use new functions.
(grub_util_pull_device): Pull GELI and LUKS.
(grub_util_get_grub_dev): Handle LUKS and GELI.
* grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
(grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
(follow_geom_up): Removed.
(grub_util_fd_seek): New function.
(open_device): Use grub_util_fd_seek.
(nread): Rename to ..
(grub_util_fd_read): ... this. All users updated.
* grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
(grub_crypto_cbc_decrypt): Likewise.
(grub_crypto_hmac_write): Likewise.
(grub_crypto_hmac_buffer): Likewise.
(grub_password_get): Extend to util.
* include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
New member modname.
(gcry_md_spec) [GRUB_UTIL]: Likewise.
* include/grub/cryptodisk.h: New file.
* include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
* include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
LUKS and GELI.
(grub_util_follow_gpart_up): New proto.
* include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
(grub_util_fd_read): Likewise.
(grub_cryptodisk_cheat_mount): Likewise.
(grub_util_cryptodisk_print_uuid): Likewise.
(grub_util_get_fd_sectors): Likewise.
* util/grub-fstest.c (mount_crypt): New var.
(fstest): Mount crypto if requested.
(options): New option -C.
(argp_parser): Parse -C.
(main): Init and fini gcry.
* util/grub-install.in: Support cryptodisk install.
* util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
* util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
cryptodisk.
(prepare_grub_to_access_device): Likewise.
* util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
* util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
(probe_cryptodisk_uuid): New function.
(probe_abstraction): Likewise.
(probe): Use new functions.
* util/import_gcry.py: Create Makefile.utilgcry.def.
Add modname member.

Also-By: Michael Gorven <michael@gorven.za.net>
Also-By: Clemens Fruhwirth <clemens@endorphin.org>
14 years ago Lazy device scanning.
Vladimir 'phcoder' Serbinenko [Thu, 7 Jul 2011 21:21:59 +0000 (23:21 +0200)] 
Lazy device scanning.

* Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
(grub-setup): Remove util/raid.c.
* grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
* grub-core/disk/lvm.c (scan_depth): New variable.
(grub_lvm_iterate): Rescan if necessary.
(find_lv): New function based on grub_lvm_open.
(grub_lvm_open): Use find_lv. Rescan on error.
(is_node_readable): New function.
(is_lv_readable): Likewise.
(grub_lvm_scan_device): Skip already found disks.
(do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
Stop if searched device is found and readable.
* grub-core/disk/raid.c (inscnt): New variable.
(scan_depth): Likewise.
(scan_devices): New function based on grub_raid_register. Abort if
looked for device is found.
(grub_raid_iterate): Rescan if needed.
(find_array): NEw function based on -grub_raid_open.
(grub_raid_open): Use find_array and rescan.
(insert_array): Set became_readable_at.
* grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
* grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
New function.
(grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
(grub_util_pull_device): New function.
(grub_util_get_grub_dev): Call grub_util_pull_device.
* util/raid.c: Moved to ..
* grub-core/kern/emu/raid.c: ... here.
(grub_util_raid_getmembers): New parameter "bootable".
All users updated. Support 1.x.
* include/grub/ata.h (grub_ata_dev): Change iterate prototype.
All users updated.
* include/grub/disk.h (grub_disk_pull_t): New enum.
(grub_disk_dev): Change iterate prototype.
All users updated.
* include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
New proto.
* include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
* include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
* include/grub/raid.h (grub_raid_array): New member became_readable_at.
* include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
All users updated.
* include/grub/util/raid.h: Removed.

14 years agoSimplify disk opening
Vladimir 'phcoder' Serbinenko [Thu, 7 Jul 2011 19:46:25 +0000 (21:46 +0200)] 
Simplify disk opening

14 years agomerge mainline into lazy
Vladimir 'phcoder' Serbinenko [Thu, 7 Jul 2011 10:21:53 +0000 (12:21 +0200)] 
merge mainline into lazy

14 years ago * po/POTFILES.in: Regenerate.
Vladimir 'phcoder' Serbinenko [Wed, 6 Jul 2011 20:15:58 +0000 (22:15 +0200)] 
* po/POTFILES.in: Regenerate.

14 years ago Unify sparc init with other ieee1275.
Vladimir 'phcoder' Serbinenko [Wed, 6 Jul 2011 18:05:26 +0000 (20:05 +0200)] 
Unify sparc init with other ieee1275.

* grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
instead of kern/sparc64/ieee1275/init.c.
* grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
[__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
* grub-core/kern/ieee1275/init.c [__sparc__]: Include
grub/machine/kernel.h.
(grub_ieee1275_original_stack) [__sparc__]: New variable.
(grub_claim_heap) [__sparc__]: Use sparc version.
(grub_machine_init): Moved args parsing to
(grub_parse_cmdline): ...this.
* grub-core/kern/sparc64/ieee1275/init.c: Removed.
* include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
New definition.
(GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.

Move BOOTP to separate file.

* grub-core/Makefile.core.def (net): Add net/bootp.c.
* grub-core/net/net.c: Move all BOOTP functions to
* grub-core/net/bootp.c: ... here.

Use frame interface on PXE.

* grub-core/Makefile.core.def (pxecmd): Removed.
(pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
* grub-core/commands/i386/pc/pxecmd.c: Removed.
* grub-core/i386/pc/pxe.c: Moved from here ...
* grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
* grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
* include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.

EFI network support.

* grub-core/Makefile.core.def (efinet): New module.
* grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
here...
* grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
All users updated.
* grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
(grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
* grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
* grub-core/net/drivers/efi/efinet.c: New file.
* include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
(grub_efi_net_config): New extern var.

Various cleanups and bugfixes.

* grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
error.
(grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
disk declared as partition.
* grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
leak on failure.
* grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
* grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
(grub_debug_zalloc): Likewise.
(grub_debug_realloc): Likewise.
(grub_debug_memalign): Likewise.
* grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
Check that target is IPv4.
* grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
local-mac-address as fallback.
* grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
memory leak.
* grub-core/net/ip.c (ipchksum): Rename to ...
(grub_net_ip_chksum): ... this. All users updated.
(grub_net_recv_ip_packets): Special handling for DHCP.
* util/grub-mkimage.c (generate_image): Zero-out aout header.

Unify prefix handling

* grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
(grub_machine_get_bootlocation): ... this.
* grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
(grub_machine_get_bootlocation): ... this.
(grub_prefix): New variable.
(prefix): Removed.
(root_dev): New variable.
(dir): Likewise.
(main): Use new variables.
* grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
Revamped into ...
(grub_machine_get_bootlocation): ... this.
* grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
* grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
(grub_machine_get_bootlocation): ... this.
(grub_machine_set_prefix): Removed.
* grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
* grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
Revamped into ...
(grub_machine_get_bootlocation): ... this.
* grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
(grub_set_prefix_and_root): ... this. All users updated.
* grub-core/kern/mips/init.c (grub_machine_set_prefix):
Revamped into ...
(grub_machine_get_bootlocation): ... this.
* include/grub/kernel.h (grub_machine_set_prefix): Removed.
(grub_machine_get_bootlocation): New proto.
* include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.

Less intrusive and more reliable seek on network implementation.

* grub-core/kern/file.c (grub_file_net_seek): Removed.
(grub_file_seek): Don't call grub_file_net_seek.
* grub-core/net/net.c (grub_net_fs_read): Renamed to ...
(grub_net_fs_read_real): .. this.
(grub_net_seek_real): Use net->offset.
(grub_net_fs_read): Seek if necessary.

Unify IEEE1275 netwotk config with the other platforms.

* grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
New variable.
(grub_machine_get_bootlocation): Support network.
* grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
Support type and device parsing.
(grub_ieee1275_get_device_type): New function.
* grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
into ...
(grub_ieee1275_net_config_real): ... this.
(grub_ofnet_probecards): Removed.
* grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
* include/grub/ieee1275/ofnet.h: Removed.
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
extern var.
(grub_ieee1275_get_device_type): New function.

Unify network device closing across platforms and make more robust.

* grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
grub_grubnet_fini.
* grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
already.
* grub-core/net/net.c (grub_net_network_level_interface_register):
Update num_ifaces.
(grub_net_card_unregister): Close all interfaces.
(receive_packets): Don't poll if no iterfaces are registered.
Open if necessary.
(grub_net_fini_hw): New function.
(grub_net_restore_hw): Likewise.
(fini_hnd): New variable.
(GRUB_MOD_INIT): Register preboot hook.
(GRUB_MOD_FINI): Run and unregister preboot hook.

Poll network cards when idle.

* grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
(grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
* grub-core/net/net.c (receive_packets): Save last poll time.
(grub_net_poll_cards_idle_real): New function.
(GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
(GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
* include/grub/kernel.h (grub_poll_cards_idle): New extern variable.

Rename ofnet interfaces.

* grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
(grub_ofnet_findcards): Use ofnet_%s names.

* util/grub-mknetdir.in: Support for EFI and IEEE1275.

Cleanup socket opening.

* grub-core/net/net.c (grub_net_fs_open): Rewritten.
(grub_net_fs_close): Likewise.
(grub_net_fs_read_real): Use eof member.
* include/grub/net/udp.h (+grub_net_udp_open): New proto.
(+grub_net_udp_close): New inline function.

* include/grub/net/tftp.h: Moved to the top of ...
* grub-core/net/tftp.c: ... here.
* include/grub/net/ip.h: Moved mostly to the top of ...
* grub-core/net/ip.c: ... here.
* include/grub/net/ethernet.h: Moved mostly to the top of ...
* grub-core/net/ethernet.c: ... here.

* grub-core/kern/device.c (grub_device_close): Free device->net->server.

* grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
FS name.

* include/grub/net/ip.h (ipv4_ini): Removed.
(ipv4_fini): Likewise.

* include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
(grub_net_send_ip_packets): Likewise.

14 years agoFix a memory leak
Vladimir 'phcoder' Serbinenko [Wed, 6 Jul 2011 16:21:24 +0000 (18:21 +0200)] 
Fix a memory leak

14 years agoLimit idle polling frequency
Vladimir 'phcoder' Serbinenko [Wed, 6 Jul 2011 16:21:07 +0000 (18:21 +0200)] 
Limit idle polling frequency

14 years agoFix a memory leak
Vladimir 'phcoder' Serbinenko [Wed, 6 Jul 2011 15:41:49 +0000 (17:41 +0200)] 
Fix a memory leak

14 years agoFix the usage of unsupported %zx
Vladimir 'phcoder' Serbinenko [Wed, 6 Jul 2011 15:41:19 +0000 (17:41 +0200)] 
Fix the usage of unsupported %zx

14 years agoFix compilation error
Vladimir 'phcoder' Serbinenko [Wed, 6 Jul 2011 15:40:56 +0000 (17:40 +0200)] 
Fix compilation error

14 years agoFix a memory leak
Vladimir 'phcoder' Serbinenko [Wed, 6 Jul 2011 15:40:36 +0000 (17:40 +0200)] 
Fix a memory leak

14 years agoFix a memory leak
Vladimir 'phcoder' Serbinenko [Wed, 6 Jul 2011 15:40:24 +0000 (17:40 +0200)] 
Fix a memory leak

14 years agoadd missing file
Vladimir 'phcoder' Serbinenko [Wed, 6 Jul 2011 13:02:19 +0000 (15:02 +0200)] 
add missing file

14 years agoMove bootp into a separate file
Vladimir 'phcoder' Serbinenko [Wed, 6 Jul 2011 11:52:35 +0000 (13:52 +0200)] 
Move bootp into a separate file

14 years agopoll cards when idle
Vladimir 'phcoder' Serbinenko [Wed, 6 Jul 2011 11:37:33 +0000 (13:37 +0200)] 
poll cards when idle

14 years agobuffer network files. Fix incorrect net_fini_hw and unregister calls
Vladimir 'phcoder' Serbinenko [Wed, 6 Jul 2011 11:13:45 +0000 (13:13 +0200)] 
buffer network files. Fix incorrect net_fini_hw and unregister calls

14 years agoSend TFTP_ERROR on tftp premature close. Several cleanups
Vladimir 'phcoder' Serbinenko [Wed, 6 Jul 2011 10:53:37 +0000 (12:53 +0200)] 
Send TFTP_ERROR on tftp premature close. Several cleanups

14 years ago * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
Vladimir 'phcoder' Serbinenko [Wed, 6 Jul 2011 00:50:35 +0000 (02:50 +0200)] 
* grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
grub_read_cmos prototype.

14 years agofix declarations in pxe
Vladimir 'phcoder' Serbinenko [Wed, 6 Jul 2011 00:49:04 +0000 (02:49 +0200)] 
fix declarations in pxe

14 years agomerge mainline into net
Vladimir 'phcoder' Serbinenko [Tue, 5 Jul 2011 23:35:41 +0000 (01:35 +0200)] 
merge mainline into net

14 years ago VGA text support in qemu-mips
Vladimir 'phcoder' Serbinenko [Tue, 5 Jul 2011 21:46:15 +0000 (23:46 +0200)] 
VGA text support in qemu-mips

* grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
* grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
text.
* grub-core/kern/i386/qemu/init.c: Renamed to ...
* grub-core/kern/vga_init.c: ... this.
* grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
(grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
* grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
Adjust.
* include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
GRUB_MACHINE_PCI_IO_BASE.

14 years ago MIPS qemu flash support.
Vladimir 'phcoder' Serbinenko [Tue, 5 Jul 2011 19:42:36 +0000 (21:42 +0200)] 
MIPS qemu flash support.

* grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
magic.
* grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
(grub_machine_init): Probe memory if its size isn't known.
* util/grub-mkimage.c (image_targets): Add flash targets.
(generate_image): Handle flash targets.

14 years ago MIPS qemu at_keyboard support.
Vladimir 'phcoder' Serbinenko [Tue, 5 Jul 2011 19:00:01 +0000 (21:00 +0200)] 
MIPS qemu at_keyboard support.

* gentpl.py (videoinkernel): Add qemu-mips.
* grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
* grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
* grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
modules.
* grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
[GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
* grub-core/term/serial.c (grub_serial_register)
[GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.

14 years agomerge mainline into net
Vladimir 'phcoder' Serbinenko [Tue, 5 Jul 2011 18:40:39 +0000 (20:40 +0200)] 
merge mainline into net

14 years ago CMOS support on sparc.
Vladimir 'phcoder' Serbinenko [Tue, 5 Jul 2011 18:24:20 +0000 (20:24 +0200)] 
CMOS support on sparc.

* gentpl.py (cmos): Add powerpc and sparc.
* grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
powerpc and sparc.
* grub-core/lib/cmos_datetime.c (grub_get_datetime)
[__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
(grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
grub_set_datetime_cmos.
* grub-core/lib/ieee1275/cmos.c: New file.
* grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
(find_rtc): Set no_ieee1275_rtc on error.
(grub_get_datetime): Call grub_get_datetime_cmos on error.
(grub_set_datetime): Call grub_set_datetime_cmos on error.
* include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
fail. Move value to argument. All users updated
(grub_cmos_write): Likewise.
(grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
(grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
* include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
grub_get_datetime_cmos and grub_set_datetime_cmos.

14 years agoReintroduce open/close of net cards. Clean up ofnet.
Vladimir 'phcoder' Serbinenko [Tue, 5 Jul 2011 14:37:14 +0000 (16:37 +0200)] 
Reintroduce open/close of net cards. Clean up ofnet.

14 years agoFix mod_gap definition
Vladimir 'phcoder' Serbinenko [Tue, 5 Jul 2011 13:10:47 +0000 (15:10 +0200)] 
Fix mod_gap definition

14 years agoPrevent garbage from getting into aout header
Vladimir 'phcoder' Serbinenko [Tue, 5 Jul 2011 12:55:28 +0000 (14:55 +0200)] 
Prevent garbage from getting into aout header

14 years agocleanup pxe and efi network release
Vladimir 'phcoder' Serbinenko [Tue, 5 Jul 2011 12:34:10 +0000 (14:34 +0200)] 
cleanup pxe and efi network release

14 years agoRestructurisations, cleanups and few bugfixes
Vladimir 'phcoder' Serbinenko [Sat, 2 Jul 2011 20:13:33 +0000 (22:13 +0200)] 
Restructurisations, cleanups and few bugfixes

14 years agoUse @PACKAGE@ instead of hardcoded name when sourcing grub-mkconfig_lib.
GrĂ©goire Sutre [Sat, 2 Jul 2011 19:22:19 +0000 (21:22 +0200)] 
Use @PACKAGE@ instead of hardcoded name when sourcing grub-mkconfig_lib.

14 years agoDon't react to adressed bootp packets unless in bootp transaction
Vladimir 'phcoder' Serbinenko [Sat, 2 Jul 2011 18:11:29 +0000 (20:11 +0200)] 
Don't react to adressed bootp packets unless in bootp transaction

14 years agoadd missing brackets in efi_wrap macroses
Vladimir 'phcoder' Serbinenko [Sat, 2 Jul 2011 16:57:24 +0000 (18:57 +0200)] 
add missing brackets in efi_wrap macroses

14 years agomerge mainline into net
Vladimir 'phcoder' Serbinenko [Sat, 2 Jul 2011 16:52:50 +0000 (18:52 +0200)] 
merge mainline into net

14 years agominor stylistic cleanup
Vladimir 'phcoder' Serbinenko [Sat, 2 Jul 2011 16:05:40 +0000 (18:05 +0200)] 
minor stylistic cleanup

14 years agoFix broken blksize negotiation, fix broken seek and change a way net device is filled...
Vladimir 'phcoder' Serbinenko [Sat, 2 Jul 2011 15:58:23 +0000 (17:58 +0200)] 
Fix broken blksize negotiation, fix broken seek and change a way net device is filled n i386-pc

14 years agoAutomatically determine prefix when netbooted on EFI
Vladimir 'phcoder' Serbinenko [Sat, 2 Jul 2011 14:56:35 +0000 (16:56 +0200)] 
Automatically determine prefix when netbooted on EFI

14 years agounify prefix handling across platforms
Vladimir 'phcoder' Serbinenko [Sat, 2 Jul 2011 12:09:36 +0000 (14:09 +0200)] 
unify prefix handling across platforms

14 years ago* grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
Colin Watson [Tue, 28 Jun 2011 16:05:41 +0000 (17:05 +0100)] 
* grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
default_bg_color rather than black.
(grub_gfxterm_fullscreen): Likewise.
(grub_gfxterm_background_color_cmd): Save new background color in
default_bg_color.

14 years ago * grub-core/Makefile.core.def (chain): Fix coreboot filename.
Vladimir 'phcoder' Serbinenko [Mon, 27 Jun 2011 17:30:16 +0000 (19:30 +0200)] 
* grub-core/Makefile.core.def (chain): Fix coreboot filename.

14 years ago * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
Vladimir 'phcoder' Serbinenko [Mon, 27 Jun 2011 17:26:52 +0000 (19:26 +0200)] 
* grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
mismerge.

14 years ago Chainloading on coreboot support.
Vladimir 'phcoder' Serbinenko [Mon, 27 Jun 2011 12:14:11 +0000 (14:14 +0200)] 
Chainloading on coreboot support.

* grub-core/Makefile.core.def (chain): Add coreboot.
* grub-core/loader/i386/coreboot/chainloader.c: New file.

14 years ago * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
Vladimir 'phcoder' Serbinenko [Mon, 27 Jun 2011 11:57:03 +0000 (13:57 +0200)] 
* grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
if it happens.

14 years ago Implement time command.
Vladimir 'phcoder' Serbinenko [Mon, 27 Jun 2011 10:31:37 +0000 (12:31 +0200)] 
Implement time command.

* grub-core/Makefile.core.def (time): New module.
* grub-core/commands/time.c: New file.
* grub-core/script/parser.y: Remove "time" keyword.
* grub-core/script/yylex.l: Likewise.