1 2014-09-08 Michael Chang <mchang@suse.com>
3 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
4 check; comparing &data->extent against addresses in the region it
5 points to is unpredictable.
7 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
9 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
11 * configure.ac: Remove -m64 from checks for -mcmodel=large and
12 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
13 already in TARGET_CFLAGS at this point, and they produce incorrect
14 results when building for x32.
15 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
16 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
17 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
18 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
20 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
22 * configure.ac: Remove several unnecessary semicolons.
24 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
26 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
27 Initialise pend to pacify GCC.
29 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
31 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
34 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
36 * grub-core/term/at_keyboard.c: Retry probing keyboard if
37 scancode setup failed.
39 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
41 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
43 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
45 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
46 safety to avoid triggerring VirtualBox bug.
48 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
50 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
52 Fixes hang on virtualbox.
54 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
56 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
57 kernels whose paths contain regex metacharacters.
58 * util/grub.d/10_kfreebsd.in: Likewise.
59 * util/grub.d/10_linux.in: Likewise.
60 * util/grub.d/20_linux_xen.in: Likewise.
62 Reported by: Heimo Stranner.
64 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
66 * docs/grub-dev.texi (Finding your way around): The build system no
67 longer uses AutoGen directly.
69 2014-06-21 Роман Пехов <roman_pekhov>
71 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
73 2014-06-21 Glenn Washburn <development@efficientek.com>
75 * util/grub-install.c: Fix handling of --disk-module.
77 2014-06-21 Stephane Rochoy <sheda>
79 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
82 2014-06-21 Stephane Rochoy <sheda>
84 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
85 EFI system table physical address.
87 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
89 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
91 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
93 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
95 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
97 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
100 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
102 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
104 Reported by: Yves Blusseau <blusseau@zetam.org>.
106 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
108 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
109 GDT in conventional memory.
111 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
113 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
114 UUID. Other parts of grub-mkconfig tolerate these, they were
115 previously allowed here up to commit
116 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
117 practice when the system has active LVM snapshots.
118 Fixes Ubuntu bug #1287436.
120 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
122 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
123 "logical_volumes" block a little more accurately.
125 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
127 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
129 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
131 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
134 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
136 Replace few instances of memcmp/memcpy in the code that should be
137 grub_memcmp/grub_memcpy.
139 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
141 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
144 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
146 btrfs: fix get_root key comparison failures due to endianness
148 * grub-core/fs/btrfs.c (get_root): Convert
149 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
151 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
153 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
155 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
156 no longer to be forgiving of trailing spaces on grub-probe output
157 lines, which among other things means that util/grub.d/10_linux.in
158 no longer detects LVM. To fix this, make grub-probe's output
159 delimiting more consistent. As a bonus, this improves the coverage
162 Fixes Debian bug #735935.
164 * grub-core/disk/cryptodisk.c
165 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
166 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
168 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
170 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
171 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
172 probe_mods): Adjust for extra user-data arguments.
173 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
174 probe_abstraction): Use configured delimiter. Update callers.
176 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
178 * util/grub-probe,c (options): Make -0 work again (broken by
180 (main): Simplify logic.
182 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
184 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
186 2014-03-26 Fu Wei <fu.wei@linaro.org>
188 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
190 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
192 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
193 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
195 Suggested by: Markus Müller.
197 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
199 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
200 if E820 failed to return any regions.
202 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
204 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
205 tables for low memory calculations.
207 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
209 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
212 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
214 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
217 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
219 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
222 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
224 Add bootpath parser for open firmware.
226 It enables net boot even when there is no bootp/dhcp server.
228 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
229 and call it at grub_ieee1275_net_config_real.
230 * grub-core/kern/ieee1275/init.c: Add bootpath to
231 grub_ieee1275_net_config.
232 * include/grub/ieee1275/ieee1275.h: Likewise.
235 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
237 Add grub_env_set_net_property function.
239 * grub-core/net/bootp.c: Remove set_env_limn_ro.
240 * grub-core/net/net.c: Add grub_env_set_net_property.
241 * include/grub/net.h: Likewise.
243 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
245 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
247 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
249 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
251 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
253 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
254 7 seconds to recover if last poweroff was bad.
256 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
258 * grub-core/disk/ahci.c: Properly handle transactions with no
261 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
263 * grub-core/disk/ahci.c: Add safety cleanups.
265 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
267 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
268 slots to avoid pointing to uninited area.
270 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
272 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
273 enabling busmaster for the end.
275 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
277 * util/grub-mkfont.c: Downgrade warnings about unhandled features
280 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
282 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
284 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
286 * .gitignore: add missing files and .exe variants.
288 2014-01-26 Mike Gilbert <floppym@gentoo.org>
290 grub-install: support for partitioned partx loop devices.
292 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
293 /dev/loopX as being the parent of /dev/loopXpY.
295 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
297 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
298 Ensure that pointers are inited to NULL and that pointers are not
301 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
303 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
304 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
305 * include/grub/emu/misc.h: ... and here.
306 * include/grub/err.h: ... and here.
307 * util/import_gcry.py: ... and here (in files g10lib.h).
309 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
311 * util/grub-mkimage.c: Make prefix argument mandatory.
313 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
315 Fix several translatable strings.
317 Suggested by: D. Prévot.
319 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
321 * util/grub-install.c: List available targets.
323 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
325 * util/grub-install.c (write_to_disk): Add an info message.
327 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
329 * Makefile.am: Allow adding extra files to generated Windows ZIP
330 archive by setting GRUB_WINDOWS_EXTRA_DIST.
332 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
334 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
335 Show detected font path in summary.
337 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
339 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
341 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
342 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
343 * grub-core/net/tftp.c (tftp_open): Likewise.
344 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
346 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
348 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
351 In net/net.c there is a while (1) that only exits if there is a stop
352 condition and more then 10 packages or if there is no package received.
354 If GRUB is idle and enter in this loop, the only condition to leave is
355 if it doesn't have incoming packages. In a network with heavy traffic
358 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
360 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
361 EPERM when modifying kern.geom.debugflags. It is only a problem for
362 such things as installing GRUB to the MBR, in which case there'll be
363 an error later anyway, not for opening files during tests.
365 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
367 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
368 instead of MOD_FILES.
369 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
370 both with and without .exe.
371 * grub-core/genemuinitheader.sh: Same.
373 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
375 * util/grub-install.c: Fix a typo.
377 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
379 * grub-core/normal/main.c (read_config_file): Buffer config file.
382 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
384 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
385 symbolic link to directory. It fails in Msys shell on Windows 2003.
387 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
389 * Makefile.am (default_payload.elf): Add modules
390 multiboot cbmemc linux16 gzio echo help.
392 2014-01-18 Mike Gilbert <floppym@gentoo.org>
394 * Makefile.util.def: Link grub-ofpathname with zfs libs.
396 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
398 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
401 Reported by: Andrey Borzenkov.
403 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
405 * include/grub/misc.h: Move macros for compiler features to ...
406 * include/grub/compiler.h: ... new file.
407 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
408 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
409 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
410 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
411 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
412 * grub-core/video/capture.c: Include <grub/misc.h>.
413 * include/grub/command.h: Include <grub/misc.h>.
414 * include/grub/dl.h: Include <grub/misc.h>.
415 * include/grub/procfs.h: Include <grub/misc.h>.
417 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
419 * configure.ac: Add support for BUILD_EXEEXT and use it ...
420 * Makefile.am: ... here.
421 * Makefile.util.def: ... and here.
422 * grub-core/Makefile.am: ... and here.
424 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
426 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
427 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
429 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
431 * grub-core/term/terminfo.c: Recognize keys F1-F12.
433 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
435 * configure.ac: Add support for BUILD_LDFLAGS.
436 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
437 * grub-core/Makefile.am: ... and here.
438 * INSTALL: Mention BUILD_LDFLAGS.
440 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
442 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
444 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
446 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
449 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
451 * NEWS: Add few missing entries.
453 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
455 * util/grub.d/00_header.in (make_timeout): Use && rather than test
457 * util/grub.d/10_windows.in: Likewise.
458 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
460 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
463 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
465 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
466 redundant preprocessor conditional.
468 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
470 * Makefile.util.def (grub-macbless): Change mansection to 8.
472 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
474 * grub-core/loader/arm64/linux.c: correctly set device path end length.
476 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
478 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
479 arm64 to comply with EFI specification. Also use grubaa64.efi for
481 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
483 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
485 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
486 on MinGW-64 when compiling for 32 bits.
488 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
490 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
492 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
494 * NEWS: Add few missing entries. Correct existing ones.
496 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
498 Don't abort() on unavailable coreboot tables if not running on coreboot.
500 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
502 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
505 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
507 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
508 mention of it from 2.02.
510 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
512 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
514 As these functions are used on pre-ARMv6 CPUs as well we don't want
515 to make assembler assume that architecture is higher than default one.
517 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
519 * NEWS: First draft of 2.02 entry.
521 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
523 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
524 * docs/grub.texi (Getting the source code): Likewise.
526 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
528 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
531 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
533 * configure.ac: Set version to 2.02~beta2.
535 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
537 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
539 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
541 * util/grub-probe.c: Improve help message and simplify list handling.
543 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
545 Fix buffer overflow in grub_efi_print_device_path.
547 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
549 Show SATA device path.
551 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
553 Revert grub-file usage in grub-mkconfig.
555 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
557 Make newly-created files other than grub.cfg world-readable.
559 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
561 * util/grub.d/00_header.in: Improve compatibility with old config.
563 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
565 Make rijndael.c respect aliasing rules.
567 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
569 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
571 Make grub_util_device_is_mapped_stat available in grub-emu core.
573 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
575 Add -Qn to TARGET_CFLAGS if it's supported.
576 Fixes compilation on cygwin.
578 Reported by: Andrey Borzenkov.
579 Suggested by: Andrey Borzenkov.
581 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
583 Save TARGET_CC version in modinfo.sh.
585 Suggested by: Andrey Borzenkov.
587 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
589 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
590 follow the same algorithm to avoid method mismatch. Don't assume
591 DMRAID- UUID to mean full disk but instead check that mapping is linear.
593 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
595 Declare GRUB_EFI_VENDOR_APPLE_GUID.
597 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
599 Dump type and vendor specific data when printing device path.
601 2013-12-23 Colin Watson <cjwatson@debian.org>
603 Update some documentation to refer to Git rather than Bazaar.
605 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
607 * po/README: Likewise. Fix spelling mistake.
609 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
611 Don't distribute config.h.
613 * Makefile.am (platform_HEADERS): Move to ...
614 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
615 failure when building from a distributed tarball.
617 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
619 * configure.ac: Fix spelling.
620 * grub-core/commands/parttool.c: Fix grammar.
621 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
622 Embedding Partition".
624 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
626 ARM64 support for grub-mkrescue.
628 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
630 Install modinfo.sh to keep build information around.
632 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
634 * grub-core/modinfo.sh.in: Add build config information.
636 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
638 ARM64 grub-file and grub-mkconfig support.
640 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
642 Remove leftover options defines.
644 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
646 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
648 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
650 * grub-core/loader/arm64/linux.c: Add missing bracket.
652 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
654 Add arm64-efi recognition to grub-file.
656 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
658 Fix ia64-efi recognition in grub-file.
660 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
662 Recognize raspberry pi kernel in grub-file.
664 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
666 Enable cache on ARM U-Boot port.
668 Without it the port is reidiculously slow.
670 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
672 Fix ARM cache maintainance.
674 More code was converted from ASM to C for easier handling.
676 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
678 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
681 Suggested by: Leif Lindholm.
683 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
685 * util/grub-mkconfig.in: Fix Xen platform conditions.
687 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
689 * util/grub-mkrescue.c: Split single help message string in several
690 strings used in previous shell version.
692 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
694 Add arm64 Linux loader.
696 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
698 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
700 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
702 Add module loading and parsing boot time checkpoints.
704 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
706 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
709 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
711 * util/grub-mkconfig.in: Skip non-executable files.
713 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
715 Workaround buggy timer in raspberry pie by using our own timer
718 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
720 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
721 Increase to 16 MiB to allow loading the whole memdisk.
723 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
725 Fix ARM Linux Loader on non-FDT platforms.
727 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
729 * configure.ac: Choose link format based on host_os on emu.
731 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
733 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
735 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
737 * grub-core/kern/emu/main.c: Build fix for emu.
739 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
741 Build fixes for argp.h with older gcc.
743 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
745 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
748 Suggested by: David Prévot.
750 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
752 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
754 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
756 Enable -Wformat=2 if it's supported.
758 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
760 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
761 -Wmissing-declarations if supported.
763 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
765 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
766 u32 as both HFS and HFS+ have 32-bit inodes.
768 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
770 * include/grub/misc.h (grub_strtol): Fix overflow.
772 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
774 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
775 as return type in both conditionals.
777 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
779 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
780 to use uint8_t for color.
782 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
784 * util/misc.c (grub_util_get_image_size): Check for overflow.
786 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
788 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
791 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
793 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
794 for pointer difference.
796 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
798 * util/import_gcry.py: Skip sample keys.
800 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
802 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
804 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
806 * configure.ac: Remove duplicate warning arguments.
808 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
810 Add missing static qualifiers.
812 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
814 Add missing includes.
816 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
818 Inline printf templates when possible to enable format checking.
820 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
822 * include/grub/crypto.h: Don't discard const attribute.
824 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
826 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
829 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
831 * grub-core/lib/crypto.c: Don't discard const attribute.
833 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
835 * grub-core/lib/disk.c: Fix potential overflow.
837 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
839 * grub-core/lib/arg.c: Don't discard const attribute.
841 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
843 * grub-core/kern/dl.c: Don't discard const attribute.
845 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
847 * grub-core/kern/disk.c: Fix potential overflow.
849 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
851 * conf/Makefile.common: Don't include non-existing directory
852 grub-core/lib/libgcrypt-grub/include.
854 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
856 Clarify several translatable messages.
858 2013-12-21 David Prévot <david@tilapin.org>
860 Correct some translatable strings.
862 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
864 * util/grub-mkrescue.c: Rephrase mkrescue description.
866 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
867 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
869 Clarify several translatable messages.
871 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
873 Be more verbose about some configure failures.
875 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
877 Fix various build problems on GNU/Hurd.
879 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
882 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
883 [__GNU__]: Add prototype.
884 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
885 long int using %ld rather than %d.
887 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
889 * util/grub-install.c: Inform user about install platform.
891 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
893 * configure.ac: Set version to 2.02~beta1.
895 2013-12-18 Allen Pais <allen.pais@oracle.com>
896 2013-12-18 Bob Picco <bob.picco@oracle.com>
898 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
900 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
902 Make grub_zlib_decompress handle incomplete chunks.
906 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
908 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
911 2013-12-18 Aleš Nesrsta <starous@volny.cz>
913 * grub-core/disk/usbms.c: Retry on unknown errors.
914 Reuse the same tag on retries.
916 2013-12-18 Aleš Nesrsta <starous@volny.cz>
918 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
920 Avoid confusing them with already completed transfers.
922 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
926 Due to XEN bug it prevents Linux boot. Remove it at least, until
929 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
931 * po/exclude.pot: Add 2 missing excludes.
933 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
935 Add missing license section in macbless.mod and macho.mod.
937 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
939 Allow compilation without thumb-interwork as long as no thumb is
940 involved or only thumb2 is used.
942 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
944 Use -Wl,--no-relax rather than -mno-relax for uniformity.
946 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
948 * INSTALL: Update comment as to why sparc64 clang isn't usable.
950 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
952 Add __attribute__ ((sysv_abi)) only if it's really needed.
954 Some compilers don't support it.
956 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
958 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
960 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
962 Remove -Wold-style-definition.
964 Not very useful and interaction of it with regexp depends on GCC
967 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
969 Make grub_util_get_windows_path_real static.
971 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
973 * grub-core/commands/fileXX.c: Silence cast-align.
974 * grub-core/loader/i386/xen_fileXX.c: Likewise.
976 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
978 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
979 rather than LL suffix.
981 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
983 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
985 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
987 * grub-core/loader/arm/linux.c: Use common initrd functions.
989 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
991 Decrease number of strings to translate.
993 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
995 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
997 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
999 Mark strings for translation and add remaining ones to exclude list.
1001 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1003 * util/grub-file.c (main): Fix sizeof usage.
1005 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1007 Silence spurious warning.
1009 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1011 Remove check_nt_hiberfil as it's been superseeded by file command.
1013 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1015 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1017 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1019 Implement syslinux parser.
1021 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1023 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1025 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1027 Support cpuid --pae.
1029 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1031 Use AT keyboard on Yeeloong 3A.
1033 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1035 Add Yeeloong 3A reboot and halt.
1037 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1039 Add Radeon Yeeloong 3A support.
1041 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1043 Add bonito 3A support.
1045 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1047 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1049 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1051 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1053 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1055 * grub-core/loader/macho.c: Fix compilation on non-i386.
1057 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1059 Add missing format_arg attribute to check that printf with translated
1060 messages has proper arguments.
1062 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1064 Use grub_xasprintf to format translated error messages containing
1067 2013-12-17 Jon McCune <jonmccune@google.com>
1069 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1071 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1073 Unify message for unsupported relocation.
1075 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1077 Mark miscompile error for translation.
1079 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1081 Use %I64 and not %ll when using OS printf if compiling for windows.
1083 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1085 Update Mac code to match new register_efi prototype.
1087 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1089 Implement better integration with Mac firmware.
1091 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1093 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1096 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1098 Include serial module in default_payload.elf.
1100 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1102 Add explicit thumb interwork bx in asm files.
1104 Shouldn't matter for armv >= 5 but let's be safe.
1106 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1108 Implement Truecrypt ISO loader.
1110 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1112 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1114 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1116 Implement grub_file tool and use it to implement generating of config
1119 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1121 Change to v1 xen grants.
1123 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1125 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1127 GRUB relied on %ebx being preserved across hypercall which isn't true.
1129 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1131 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1133 GRUB relied on %rdi being preserved across hypercall which isn't true.
1135 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1137 Implement XEN VFB support.
1139 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1141 Remove grub_bios_interrupt on coreboot.
1143 It's not used currently and cannot be used safely currently.
1145 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1147 Update exclude.pot and mark few strings for translation.
1149 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1151 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1153 Reported by: Jon McCune
1155 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1157 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1158 Add verbose information which firmware directories were tried.
1160 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1162 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1163 function to optionally redirect all three standard descriptors.
1164 Redefine grub_util_exec, grub_util_exec_redirect and
1165 grub_util_exec_redirect_null to use it.
1166 * include/grub/emu/exec.h: Define it.
1167 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1168 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1169 Use grub_util_exec_redirect_all to redirect error to NULL.
1171 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1173 * grub-core/tests/sleep_test.c: Silence spurious warning.
1175 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1177 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1178 linker trying to "fixup" the code.
1180 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1182 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1184 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1186 Add support for converting PE+ to Elf64.
1188 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1190 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1192 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1194 Remove practice of assigning random const pointers to device id.
1196 This is not required as cache code already checks driver id as well.
1198 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1200 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1203 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1205 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1206 mingw or cygwin as API already matches.
1208 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1210 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1212 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1214 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1217 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1219 Handle X86_64_PC64 relocation.
1221 Those are generated by some cygwin compilers.
1223 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1225 Determine the need for mingw-related stubs at compile time rather than
1226 using not very significant $target_os.
1228 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1230 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1231 may not work with ELF.
1233 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1235 Use unix functions for temporary files and special files on cygwin.
1237 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1239 Define functions explicitly rather than using --defsym in tests
1240 whenever possible. Respect locality in remaining cases.
1242 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1244 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1246 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1248 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1249 unlikely errors when getting EFI variables and make exhaustive search
1250 for all BootNNNN variables to find matching one.
1252 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1254 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1256 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1258 New functional test for sleep function.
1260 This test allows to check sleep without qemu. Keep qemu version as
1261 well as functional test won't notice if all clocks are going too fast
1264 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1266 Add explicit sysv_abi on amd64 asm routines.
1268 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1270 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1273 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1275 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1278 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1280 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1283 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1285 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1287 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1289 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1292 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1294 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1296 In case of quick removal of loopback and adding another one it may
1297 get same ID, confusing the cache system.
1299 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1301 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1304 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1306 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1307 than converting to long.
1309 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1311 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1313 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1315 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1316 than almost useless pointer.
1318 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1320 Add gcc_struct to all packed structures when compiling with mingw.
1322 Just "packed" doesn't always pack the way we expect.
1324 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1326 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1328 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1330 * util/grub-pe2elf.c: Fix handling of .bss.
1332 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1334 Implement windows flavour of EFI install routines.
1336 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1338 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1340 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1342 Change grub_install_register_efi interface to pass GRUB device.
1344 This allows grub_install_register_efi to request partition info
1347 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1349 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1351 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1353 Do not use TCHAR string functions as they are not available on cygwin.
1355 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1357 Workaround windows bug when querying EFI system partition parameters.
1359 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1361 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1364 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1366 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1368 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1370 Make i386-* other than i386-pc compileable under cygwin.
1372 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1374 Fix definition of grub_efi_hard_drive_device_path. Take care that
1375 existing code would work even if by some reason bogus definition is
1376 used by EFI implementations.
1378 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1380 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1382 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1384 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1387 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1389 * util/config.c: Remove trailing newline from distributor in simple
1392 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1394 * include/grub/efi/api.h: Rename protocol and interface to avoid
1397 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1399 * .gitignore: add .exe variants. add missing files. remove few outdated
1402 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1404 * grub-core/osdep/exec.c: Use unix version on cygwin.
1406 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1408 Implement multiboot2 EFI BS specification.
1410 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1412 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1413 Crash happened only in some cases like a string starting at the
1414 half of the screen of same length.
1416 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1418 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1419 with EFI counterpart.
1421 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1423 Propagate the EFI commits to x86-efi specific parts.
1425 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1427 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1429 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1431 Introduce grub_efi_packed_guid and use it where alignment is not
1434 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1436 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1437 unaligned u16 rather than u8[2].
1439 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1441 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1442 for relocation range.
1444 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1446 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1447 non-function pcrel21b relocation. It happens with .text.unlikely
1450 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1452 * make MAX_USABLE_ADDRESS platform-specific
1453 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1455 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1457 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1459 2013-12-09 Jon McCune <jonmccune@google.com>
1461 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1462 in grub-install and grub-bios-setup for x86 BIOS targets.
1464 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1466 Add missing compile and link options for sparc64-emu.
1468 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1470 Implement sparc64 trampolines (needed for sparc64-emu).
1472 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1474 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1475 range of R_SPARC_HI22.
1476 Implement R_SPARC_LM22.
1478 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1480 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1481 Do not explicitly check for symbol table as it's already checked in
1482 platform-independent layer.
1484 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1486 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1487 on ia64 as __clear_cache is a dummy on ia64.
1489 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1491 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1492 Do not explicitly check for symbol table as it's already checked in
1493 platform-independent layer.
1495 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1497 * util/grub-mkconfig.in: Add missing newline to output.
1499 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1501 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1502 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1504 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1506 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1507 compilation with GCC <= 4.2.
1508 * grub-core/kern/emu/argp_common.c: Likewise.
1510 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1512 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1513 right platform rather than leaking to sparc64-emu.
1515 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1517 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1518 But ensure that the variables in question are indeed unsigned.
1520 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1522 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1524 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1526 Remove grub_memalign on emu.
1528 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1530 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1531 truncate incomplete lines but instead flushes them.
1533 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1535 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1536 and implement windows variant.
1538 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1540 Fix mips-emu compilation.
1542 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1544 * configure.ac: Check for freetype library usability.
1546 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1550 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1552 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1554 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1556 * docs/grub.texi (Environment): Update color_normal and color_highlight
1557 defaults (light-gray instead of white).
1559 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1561 * grub-core/normal/main.c (INIT): Set default color to light-gray
1562 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1563 and apparently BIOS defaults.
1565 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1567 Transform -C option to grub-mkstandalone to --core-compress available
1568 in all grub-install flavours.
1570 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1572 Merge GRUBFS and GRUB_FS variables.
1574 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1576 Revert commit 69ca97c820, it caused failures when using OS device name
1577 in grub-install. Instead just strip off parenthesis in grub-install
1578 if (hdX) was passed.
1580 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1582 * util/grub-install.c (push_partmap_module): Add helper to convert
1583 partmap names to module names and use it in probe_mods(). Fixes
1584 failure to find partmap modules in diskfilter case.
1586 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1588 * configure.ac: Make unifont mandatory on coreboot.
1590 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1592 * configure.ac: Skip unifont 6.3 pcf and bdf.
1594 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1596 * Makefile.am: Remove partial font files if generation failed.
1598 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1600 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1602 * include/grub/util/misc.h: Define it ...
1603 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1605 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1607 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1610 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1612 Don't add -mlong-calls when compiling with clang.
1614 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1616 * configure.ac: Fix a typo.
1618 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1620 Revamp relocation handling.
1622 Move more code to common dl.c. Add missing veneers for arm and arm64.
1623 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1625 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1627 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1629 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1631 * INSTALL: Raise minimum python version to 2.6.
1632 * gentpl.py: Use python3-style print function.
1634 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1636 * util/grub-install.c: Mention Boot* variable.
1638 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1640 * grub-core/osdep/linux/hostdisk.c
1641 (grub_util_find_partition_start_os): Initialise start to avoid
1642 spurious compiler warning.
1644 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1646 On Linux, read partition start offsets from sysfs if possible, to
1647 cope with block device drivers that don't implement HDIO_GETGEO.
1648 Fixes Ubuntu bug #1237519.
1650 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1652 (sysfs_partition_start): Likewise.
1653 (grub_util_find_partition_start_os): Try sysfs_partition_start
1656 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1658 * grub-core/kern/fdt.c: Update struct size when adding node.
1660 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1662 Handle unaligned .bss on sparc64.
1664 Current code improperly assumes that both __bss_start and _end are
1665 aligned to 8-bytes. Eliminating this assumption and explicitly align
1668 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1670 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1671 so it doesn't land in the middle of loaded image.
1673 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1675 * configure.ac: Move all warning options that may be absent in
1676 gcc >= 3.1 to optional.
1678 Note: while this allows to compile with older GCC, official requirements
1679 remain the same and no support for older GCC.
1681 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1683 Copying the themes directory in grub-shell isn't
1684 parallel-test-friendly and breaks on the second test when the source
1685 directory is read-only (as in "make distcheck"). Instead, add a
1686 hidden --themes-directory option to grub-mkrescue et al, and use it
1689 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1691 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1692 as it's no longer necessarry.
1694 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1696 * configure.ac: Allow compilation with older GCC for ARM.
1698 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1700 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1701 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1704 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1706 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1708 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1710 Pass font config to config.h and not by TARGET_CFLAGS as adding
1711 arguments doesn't work if TARGET_CFLAGS is specified on command
1714 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1716 * configure.ac: Add -Wvla if compiler supports it.
1718 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1720 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1721 Remove variable length arrays.
1722 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1724 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1726 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1728 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1730 * include/grub/types.h: Declare all byteswaps as inline functions
1731 except compile-time ones.
1733 Solves variable shadowing in constructions like
1734 cpu_to_le (le_to_cpu(x) + 1).
1736 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1738 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1740 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1742 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1745 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1747 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1748 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1750 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1752 * grub-core/Makefile.core.def (setjmp): Distribute
1755 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1757 Add a new timeout_style environment variable and a corresponding
1758 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1759 controls hidden-timeout handling more simply than the previous
1760 arrangements, and pressing any hotkeys associated with menu entries
1761 during the hidden timeout will now boot the corresponding menu entry
1764 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1765 generates a warning, and if it shows the menu it will do so as if
1766 the second timeout were not present. Other combinations are
1767 translated into reasonable equivalents.
1769 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1771 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1773 * util/config.c: Add missing pointer adjustment.
1774 Reported by: qwertial
1776 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1778 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1779 directly, not via `cpu' link, to fix libgrub.pp generation.
1781 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1785 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1787 * docs/grub.texi (sleep): Document exit codes.
1789 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1791 Ensure that -mno-unaligned-access or some equivalent option is used.
1793 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1795 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1798 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1800 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1802 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1804 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1805 builds, since we don't have an EPS version of font_char_metrics.png.
1806 Add leading dot to image extension per the Texinfo documentation.
1808 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1810 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1811 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1812 * util/grub-gen-widthspec.c: Likewise.
1813 * util/grub-mkfont.c: Likewise.
1815 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1817 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1818 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1819 failed to install on (hdX).
1820 * util/grub-setup.c (get_device_name): Remove, not needed after
1823 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1825 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1827 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1829 * util/grub-fstest.c: Remove variable length arrays.
1831 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1833 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1835 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1837 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1838 computing crc32 rather than handling with md fundtions directly.
1840 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1842 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1843 checking fwstart.img rather than md fundtions directly.
1845 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1847 * util/grub-mkrescue.c (main): Check that fread succeeded.
1849 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1851 * conf/Makefile.common: Remove -mexplicit-relocs and
1852 -DUSE_ASCII_FALLBACK on yeeloong.
1854 -DUSE_ASCII_FALLBACK is already added by font snippets.
1855 -mexplicit-relocs isn't needed is compiler/assemblera are
1856 configured properly.
1857 If they're not we shouldn't attempt to fix it by ourselves.
1858 Binary compare between before and after shows no difference.
1860 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1862 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
1863 sources in dependencies directly.
1865 This was the only instance of "library" in core config. A bug was
1866 reported that -fno-stack-protector wasn't passed to it. Instead of
1867 figuring out why it failed just remove this construction used
1870 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1872 * grub-core/osdep/unix/password.c (grub_password_get): Check that
1875 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
1877 * docs/grub.texi (ls): Fix command description in case of a device name
1880 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1882 Eliminate variable length arrays in grub_vsnprintf_real.
1884 A bit tricky because this function has to continue to work without
1885 heap for short strings. Fixing prealloc to 32 arguments is reasonable
1886 but make all stack references use 32-bit offset rather than 8-bit one.
1887 So split va_args preparsing to separate function and put the prealloc
1890 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1892 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
1893 Fixes build for windows.
1895 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1897 * gentpl.py: Don't generate platform-dependent conditionals for
1898 platform-independent targets.
1900 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1902 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
1903 references to mdadm from otherwise generic code.
1904 (grub_util_exec_pipe): Likewise.
1905 (grub_util_exec_pipe_stderr): Likewise.
1906 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
1907 This function calls vgs, not mdadm; adjust variable names
1910 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1912 Generate Makefile.*.am directly from gentpl.py, eliminating the use
1913 of Autogen. The Autogen definitions files remain intact as they
1914 offer a useful abstraction.
1916 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1918 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
1919 into no-ops, and use it in programs that copy files but do not need
1920 to take special care to sync writes (grub-mknetdir, grub-rescue,
1923 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
1925 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
1926 than hardcoding /usr/local/bin/xorriso.
1928 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1930 Add PCI command activation to all PCI drivers as required for coreboot
1931 and maybe some other firmwares.
1933 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1935 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
1936 and non-Apple variants of efiemu compile.
1938 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
1940 * configure.ac: Add explicit check for linking format of
1941 efiemu64; save it as EFIEMU64_LINK_FORMAT.
1942 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
1943 hardcoding linking format.
1945 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1947 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
1950 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
1951 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1953 Add a --locale-directory option to grub-install and related tools.
1955 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
1956 --locale-directory option.
1957 (enum grub_install_options): Add
1958 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1959 * util/grub-install-common.c (grub_install_help_filter): Handle
1960 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1961 (grub_install_parse): Likewise.
1962 (get_localedir): New function to check for a user-provided option
1963 before trying grub_util_get_localedir.
1964 (copy_locales): Use get_localedir rather than
1965 grub_util_get_localedir. Handle differing locale directory layouts.
1966 (grub_install_copy_files): Likewise.
1968 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1970 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
1971 Don't rely on PATH_MAX.
1973 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1975 * grub-core/genmoddep.awk: Use more portable && rather than and.
1977 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1979 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
1980 an object after data. While it doesn't seem right solution, it
1981 works well enough and OSX isn't main compilation platform.
1983 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1985 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
1986 While it doesn't seem right solution, it works well enough and
1987 OSX isn't main compilation platform.
1989 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1991 * configure.ac: Add -static to LDFLAGS when using apple linker to
1992 prevent it from pulling in dynamic linker.
1994 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1996 Apple assembly doesn't handle symbol arithmetic well. So define an
1997 offset symbol in boot.S and use it.
1999 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2001 Apple assembly doesn't handle symbol arithmetic well. So instead
2002 of getting addres of kernel_sector + 4 define kernel_sector_high.
2003 It also makes code more readable.
2005 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2007 With Apple assembly in .macro environvemnt you have to use $$ instead
2008 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2009 to $$x on Apple and to $x on everything else.
2011 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2013 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2016 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2018 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2019 and non-Apple. This instruction is shorter and faster,
2020 so no reason not to use it on both.
2022 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2024 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2025 .text when compiling for Apple.
2027 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2029 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2031 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2033 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2034 %dx restore the probe worked on non-existant drive. Reorganize the
2035 code a little bit to free 2 bytes necessary for push/pop.
2037 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2039 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2040 Add missing cast to silence warning.
2042 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2044 * util/grub-install.c (update_nvram): Support --no-nvram flag
2047 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2049 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2051 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2053 * util/garbage-gen.c: Add missing include of sys/time.h.
2055 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2057 Don't add -mflush-func if it's not supported by compiler.
2059 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2061 Move common BIOS/coreboot memory map declarations to
2062 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2064 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2066 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2068 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2070 * INSTALL: Document why older clang versions aren't appropriate.
2072 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2074 * INSTALL: Document about clang for mips.
2076 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2078 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2081 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2083 Add *-xen to the list of grub-install-common platforms.
2085 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2087 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2090 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2092 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2094 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2096 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2097 with -mcmodel=large.
2099 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2101 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2102 range-checking for 32-bit quantities.
2104 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2106 * configure.ac: Compile with -fPIC when compiling with clang on
2109 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2111 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2112 when compiling with clang.
2114 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2116 clang emits calls to abort () under some unknown conditions.
2117 Export abort () when compiling with clang.
2119 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2121 * docs/grub-dev.texi: Document stack and heap sizes.
2123 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2125 * include/grub/i386/pc/memory.h: Decrease
2126 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2127 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2128 The binary doesn't change (checked). It's more to better reflect actual
2131 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2133 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2134 at compile time that enough of scratch size is available.
2136 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2138 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2139 Previously we misaligned stack by 8 in startup.S and compensated
2140 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2141 right behaviour is to align stack in startup.S and keep it aligned
2142 in callwrap.S. startup.S part was committed few commits before. This
2143 takes care of callwrap.S.
2144 Reported by: Gary Lin.
2146 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2148 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2149 .data and .bss. May happen if compiler and assembly use different
2152 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2154 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2157 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2159 Add support for a new magic symbol _gp_disp on mips to handle PIC
2162 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2164 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2166 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2168 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2169 when rest of GRUB is compiled for hisher stepping. Instead use
2170 .set mips3/.set mips1 around cache and sync opcodes.
2172 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2174 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2175 do essentially the same thing, do it in similar way.
2177 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2179 * util/grub-mkrescue.c (main): If a source directory is not
2180 specified, read platform-specific files from subdirectories of
2181 pkglibdir, not pkgdatadir.
2183 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2185 * grub-core/normal/progress.c: Remove unused file.
2187 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2189 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2192 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2194 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2197 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2199 * coreboot.cfg: Add missing file.
2201 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2203 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2205 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2207 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2208 selectively skipping systems.
2210 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2212 * Makefile.util.def (grub-mkimage): Add
2213 grub-core/osdep/aros/config.c to extra_dist.
2214 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2215 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2216 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2217 grub-core/gnulib-no-gets.diff.
2219 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2221 Add automated filesystem checking based on scripts I've used now for
2222 quite some time locally. Most of the test require root so they are
2223 skipped when run without necessarry privelegies.
2225 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2227 * util/grub-install.c (main): Adjust info messages to match
2228 installed paths of grub-bios-setup and grub-sparc64-setup.
2230 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2232 * util/grub-install-common.c (copy_locales): Consistently use
2233 grub_util_get_localedir () rather than LOCALEDIR.
2234 (grub_install_copy_files): Likewise.
2236 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2238 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2239 16-byte boundary, as required by the x86-64 ABI, before calling
2240 grub_main. In some cases, GCC emits code that assumes this
2241 alignment, which crashes if not aligned. The EFI firmware is also
2242 entitled to assume that stack alignment without checking.
2244 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2246 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2247 4k page boundaries as expected by firmware rather than 1k
2249 (grub_mmap_malign_and_register): Likewise.
2251 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2253 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2254 fragmentation 512M is enough.
2256 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2258 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2259 pointer to 32K. This is the size of cache element which is the most
2260 common allocation >1K. This way the pointer is always around blocks
2261 of 32K and so we keep performance while decreasing fragmentation.
2263 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2265 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2266 current memory when allocating large chunks. This significantly
2267 decreases memory fragmentation.
2269 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2271 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2273 * tests/lzocompress_test.in: Skip if lzop is not installed.
2274 * tests/xzcompress_test.in: Skip if xz is not installed.
2276 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2278 * util/grub-mkrescue.c (main): Fix typo.
2280 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2282 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2283 clock frequency to 200 MHz,
2285 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2287 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2289 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2291 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2292 Load config file from (cbfsdisk)/etc/grub.cfg.
2294 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2296 * util/grub-install-common.c (grub_install_copy_files): Fix module
2297 destination directory.
2299 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2301 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2302 files have not been built.
2304 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2306 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2307 Handle errors from mkstemp.
2308 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2310 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2312 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2313 on primary master on pseries.
2315 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2317 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2318 already loaded. This saves memory needed for tests,
2320 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2322 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2325 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2327 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2330 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2332 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2333 master since with some combinations of qemu and firmware only primary
2334 IDE channel is available.
2336 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2338 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2339 low-memory platforms where we don't have enough memory for them.
2340 * grub-core/tests/videotest_checksum.c: Likewise.
2342 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2344 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2345 already loaded. This saves memory needed for tests,
2347 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2349 Fix handling of install lists.
2351 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2353 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2355 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2357 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2358 the devices before accessing them.
2360 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2362 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2365 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2367 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2369 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2371 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2372 (grub_file_close): Free file->name.
2374 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2376 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2377 (grub_load_public_key): Likewise.
2378 (grub_verify_signature_real): Likewise.
2379 (grub_cmd_verify_signature): Likewise.
2381 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2383 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2386 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2388 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2389 (grub_longjmp): Restore r31.
2390 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2392 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2394 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2395 modules to be in line with make_image_abs.
2397 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2399 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2401 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2403 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2405 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2407 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2409 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2410 to leave some memory to firmware.
2412 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2414 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2415 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2416 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2419 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2421 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2422 now needs full arguments.
2424 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2426 * util/grub-mkrescue.c (main): Add trailing \n in
2427 .disk_label.contentDetails to be in line with previous shell script.
2429 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2431 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2433 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2435 * util/grub-install-common.c (grub_install_parse): Recognize
2436 --compress=none like shell script did.
2438 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2440 * include/grub/misc.h: Replace check for __sparc64__ with one for
2441 __sparc__ as __sparc64__ isn't actually defined.
2443 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2445 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2446 counterpart of fixing the naming of escc ports.
2448 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2450 * util/grub-install-common.c (platforms): Fix the order of entries and
2451 remove useless field val.
2453 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2455 * util/grub-install.c: Add new option --no-bootsector to skip
2456 installing of bootsector. Accept --grub-setup=/bin/true as
2457 backwards-compatible synonym.
2459 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2461 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2462 order of qsort arguments (number of elements vs. element size).
2464 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2466 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2467 the function of these files exceeds what can be sanely handled in shell
2468 in posix-comaptible way. Also writing it in C extends the functionality
2469 to non-UNIX-like OS and minimal environments.
2471 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2473 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2474 compiling to thumb2.
2475 * grub-core/kern/arm/cache_armv7.S: Likewise.
2476 * grub-core/lib/arm/setjmp.S: Likewise.
2478 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2480 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2481 in grub_uboot_syscall
2483 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2485 Decrease stack usage in lexer.
2487 We have only 92K of stack and using over 4K per frame is wasteful
2489 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2490 as macros so that compiler would remove useless structure on stack.
2491 Better solution would be to fix flex not to put this structure on
2492 the stack but flex is external program.
2494 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2496 Decrease stack usage in signature verification.
2498 We have only 92K of stack and using over 4K per frame is wasteful
2500 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2502 (grub_verify_signature_real): Likewise.
2504 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2506 Decrease stack usage in mdraid 0.9x.
2508 We have only 92K of stack and using over 4K per frame is wasteful
2510 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2513 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2515 Decrease stack usage in BtrFS.
2517 We have only 92K of stack and using over 4K per frame is wasteful
2519 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2522 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2524 Decrease stack usage in JFS.
2526 We have only 92K of stack and using over 4K per frame is wasteful
2528 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2529 stack. Note: this function is recursive.
2530 (grub_jfs_read_inode): Read only part we care about.
2532 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2534 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2537 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2539 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2541 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2543 * docs/grub.texi (Environment): Document cmdpath.
2545 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2547 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2548 Remove "unused" attribute from arguments, they are used.
2550 2013-11-15 Colin Watson <cjwatson@debian.org>
2552 * .gitignore: Only ignore grub-mk* at the top level.
2554 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2556 * util/grub-reboot.in (usage): Fix a typo.
2558 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2560 Replace libgcc version of ctz with our own.
2562 On upcoming arm64 port libgcc ctz* are not usable in standalone
2563 environment. Since we need ctz* for this case and implementation is
2564 in C we may as well use it on all concerned platforms.
2566 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2568 * configure.ac: Probe for linking format rather than guessing it based
2571 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2573 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2574 "1" prior to handoff.
2576 Reported by: M A Young.
2578 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2580 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2583 Reported by: M A Young.
2585 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2587 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2588 compilation on NetBSD.
2590 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2592 * acinclude.m4: Don't add -P on initial nm test.
2594 Note: even though this patch postdates Andrey's it bears 14 Nov as
2595 date due to timezone difference.
2597 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2599 * grub-core/Makefile.core.def (signature_test): Add missing
2602 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2604 * util/grub-install_header: Set localedir here, since this file is
2606 * util/grub-install.in: Remove setting of localedir.
2607 * util/grub-mkrescue.in: Likewise.
2609 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2611 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2613 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2615 * configure.ac: Move nm checks to the end.
2616 Call grub_PROG_NM_WORKS.
2617 * acinclude.m4: New check grub_PROG_NM_WORKS.
2618 Use $TARGET_CFLAGS -c when compiling test binary.
2620 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2622 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2625 2013-11-14 Matthew Garrett <mjg@redhat.com>
2627 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2628 cmdpath to firmware directory.
2630 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2632 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2633 at the start of second iteration.
2635 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2637 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2639 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2641 * Makefile.am (default_payload.elf): New target for easier coreboot
2644 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2646 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2647 clang (not necessarry with -no-integrated-as).
2648 * include/grub/symbol.h [__arm__]: Likewise.
2650 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2652 * configure.ac: Use -no-integrated-as on arm with clang.
2653 * INSTALL: Mention ARM compilation with clang.
2655 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2657 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2660 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2662 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2663 code for indirect block handling.
2665 Saves 185 bytes on compressed image.
2667 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2671 * Makefile.am: Remove build-grub-* in make clean.
2673 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2675 New files to gitignore.
2677 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2678 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2680 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2682 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2684 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2686 * .gitignore: fix rules for .dep* and add *.a post git migration
2688 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2690 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2693 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2695 * grub-core/kern/misc.c: Don't redirect divisions in the
2697 * include/grub/misc.h: Likewise.
2699 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2701 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2702 systems that require checking the return value of write.
2704 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2706 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2707 efibootmgr quiet when --debug is not used, rather than when it is.
2709 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2711 * gentpl.py (define_macro_for_platform_dependencies): Remove
2712 first (and thus unused) of two definitions for this function.
2713 (platform_dependencies): Likewise.
2715 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2717 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2718 functions, we only need to check this for the target, not the host.
2719 * configure.ac (grub_apple_cc): Likewise.
2721 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2723 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2724 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2725 asm to stay in arm even if surrounding is thumb.
2727 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2729 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2730 helper functions are needed for thumb.
2732 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2734 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2735 level / 3 division explicitly unsigned. Saves few bytes.
2737 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2739 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2741 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2743 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2746 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2748 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2749 grub_uboot_boot_data to asm part.
2751 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2753 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2755 (grub_uboot_syscall): Save/restore r9 and align stack.
2757 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2759 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2761 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2763 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2764 occurencies with END.
2766 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2768 * util/grub-editenv.c (help_filter, argp): Document how to delete
2769 the whole environment block.
2770 Reported by Dan Jacobson. Fixes Debian bug #726265.
2772 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2774 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2777 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2779 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2780 increment/decrement.
2782 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2784 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2785 compiling with clang.
2787 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2789 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2792 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2794 Redirect all divisions to grub_divmod64.
2796 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2798 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2800 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2802 Add missing includes of loader.h.
2804 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2806 * configure.ac: Allow disabling themes.
2808 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2810 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2812 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2814 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2815 until it becomes operational.
2817 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2819 * grub-core/Makefile.core.def (legacy_password_test): Disable
2820 on platforms where no legacycfg is compiled.
2821 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2822 load legacy_password_test.
2824 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2826 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2828 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2830 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2832 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2834 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2835 strict-aliasing warning.
2836 (fsync): Silence cast warning.
2838 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2840 * grub-core/commands/verify.c: Remove variable length arrays.
2841 Load gcry_dsa/gcry_rsa automatically.
2843 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2845 * grub-core/tests/signature_test.c: New test.
2847 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2849 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2852 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2854 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2855 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2857 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2859 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2861 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2863 * grub-core/fs/proc.c: Allow \0 in proc files.
2865 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2867 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
2869 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2871 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
2873 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2875 * grub-core/fs/ext2.c: Remove variable length arrays.
2877 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2879 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
2882 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2884 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
2885 * grub-core/disk/cryptodisk.c: Likewise.
2886 * grub-core/disk/geli.c: Likewise.
2887 * grub-core/disk/luks.c: Likewise.
2889 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2891 * grub-core/tests/legacy_password_test.c: New test.
2892 * grub-core/commands/legacycfg.c: Remove variable length arrays.
2894 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2896 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
2898 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2900 * grub-core/tests/pbkdf2_test.c: New test.
2902 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2904 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
2906 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2908 * grub-core/io/lzopio.c: Remove variable length arrays.
2910 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2912 * include/grub/crypto.h: Add maximums on hash size and cipher block
2915 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2917 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
2919 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2921 * grub-core/tests/xnu_uuid_test.c: New test.
2923 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2925 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
2928 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2930 * grub-core/commands/hashsum.c: Remove variable length arrays.
2932 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2934 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
2936 * tests/grub_func_test.in: Increase memory allocation.
2938 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2940 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
2941 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
2944 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2946 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
2947 (grub_util_get_fd_size_os): ...this.
2948 (grub_hostdisk_flush_initial_buffer): New empty function.
2950 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2952 * grub-core/gensyminfo.sh.in: Handle the case of portable output
2953 without --defined-only.
2955 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2957 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
2958 rip-relative addressing in prologue.
2960 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2962 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
2963 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
2965 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2967 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2968 Add missing semicolon.
2970 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2972 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
2974 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2976 * configure.ac: Check for lzma.h for enabling liblzma and allow
2979 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2981 Add missing includes of loader.h.
2983 2013-11-11 Fam Zheng <famcool@gmail.com>
2985 * util/grub.d/30_os-prober.in: Add minix entry.
2987 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2989 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
2990 right buffer for temporary load.
2992 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2994 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
2996 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2998 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3001 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3003 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3005 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3007 (LzmaDec_InitDicAndState): Make static.
3009 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3011 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3013 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3015 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3017 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3019 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3021 * docs/grub-dev.texi: Replace bzr references with git ones.
3023 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3025 * docs/grub.texi (Simple configuration): Remove reference to
3026 grub-reboot from saved default entry description - grub-default
3027 does not use it anymore.
3029 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3031 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3034 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3036 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3038 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3040 Fix grub_machine_fini bitrot.
3042 Reported by: Glenn Washburn.
3044 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3046 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3048 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3050 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3052 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3055 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3057 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3058 Add -march=core2 when testing compile of efiemu64.
3060 Thanks Andrey Borzenkov for spotting this.
3062 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3064 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3065 XEN PV environment and load kernels.
3067 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3069 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3070 * grub-core/loader/multiboot_mbi2.c: Likewise.
3072 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3074 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3077 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3079 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3081 Tested by: Denis 'GNUtoo' Carikli.
3083 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3085 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3087 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3089 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3090 Use to get rounded angle rather than truncated.
3092 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3094 * grub-core/term/serial.c: Add option for enabling/disabling
3095 RTS/CTS flow control.
3097 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3099 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3102 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3104 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3105 Use grub_fatal rather than divide by zero.
3106 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3108 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3110 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3112 (grub_fixed_fsf_divide): Likewise.
3114 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3116 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3117 division by-zero and senseless negative divisions.
3119 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3121 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3122 division by-zero and senseless negative divisions.
3123 (circprog_set_property): Don't accept negative num_ticks.
3125 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3127 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3128 division by-zero and senseless negative divisions.
3130 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3132 * configure.ac: Use elf_*_fbsd on kfreebsd.
3134 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3136 * grub-core/tests/div_test.c: New test.
3138 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3140 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3141 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3142 * grub-core/gfxmenu/view.c: Likewise.
3143 * grub-core/video/fb/video_fb.c: Introduce new functions:
3144 grub_video_set_area_status, grub_video_get_area_status,
3145 grub_video_set_region, grub_video_get_region.
3146 * grub-core/video/bochs.c: Likewise.
3147 * grub-core/video/capture.c: Likewise.
3148 * grub-core/video/video.c: Likewise.
3149 * grub-core/video/cirrus.c: Likewise.
3150 * grub-core/video/efi_gop.c: Likewise.
3151 * grub-core/video/efi_uga.c: Likewise.
3152 * grub-core/video/emu/sdl.c: Likewise.
3153 * grub-core/video/radeon_fuloong2e.c: Likewise.
3154 * grub-core/video/sis315pro.c: Likewise.
3155 * grub-core/video/sm712.c: Likewise.
3156 * grub-core/video/i386/pc/vbe.c: Likewise.
3157 * grub-core/video/i386/pc/vga.c: Likewise.
3158 * grub-core/video/ieee1275.c: Likewise.
3159 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3160 * include/grub/video.h: Likewise.
3161 * include/grub/video_fb.h: Likewise.
3162 * include/grub/fbfill.h: Updated render_target structure.
3163 grub_video_rect_t viewport, region, area
3164 int area_offset_x, area_offset_y, area_enabled
3165 * include/grub/gui.h: New helper function
3166 grub_video_bounds_inside_region.
3167 * docs/grub-dev.texi: Added information about new functions.
3169 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3171 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3174 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3176 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3178 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3180 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3182 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3183 simple division on arm and ia64.
3185 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3187 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3190 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3192 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3194 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3196 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3197 prefix symbol, not @.
3199 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3201 * INSTALL: Add note about older gcc and clang.
3203 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3205 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3207 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3209 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3210 NULL pointer dereference.
3212 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3214 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3217 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3219 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3222 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3224 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3226 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3227 * grub-core/disk/geli.c (ascii2hex): Likewise.
3229 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3231 * configure.ac: Run linker tests without -Werror.
3232 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3233 Change all occurences of -static-libgcc resp -lgcc to
3234 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3236 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3238 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3240 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3242 Allow compiling with clang (not really supported though).
3244 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3246 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3247 Add -mrtd -mregparm=3 on i386 when not using clang.
3248 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3250 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3252 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3254 * grub-core/lib/reed_solomon.c: Likewise.
3255 * include/grub/i386/gdb.h: Likewise.
3256 * include/grub/i386/pc/int.h: Likewise.
3257 * include/grub/i386/pc/pxe.h: Likewise.
3258 * include/grub/ieee1275/ieee1275.h: Likewise.
3260 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3262 Import libgcrypt 1.5.3.
3264 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3266 * configure.ac: Don't add -Wcast-align on x86.
3268 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3270 * configure.ac: Add -freg-struct-return on all platforms that
3273 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3275 * acinclude.m4: Use -Werror on parameter tests.
3276 * configure.ac: Likewise.
3278 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3280 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3282 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3284 * configure.ac: Check that -malign-loops works rather than assuming that
3285 either -falign-loops or -malign-loops work.
3287 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3289 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3291 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3293 * configure.ac: Prevent cflags leaking to subsequent tests by always
3294 resetting cflags to target_cflags in target tests.
3296 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3298 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3301 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3303 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3305 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3307 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3309 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3311 * grub-core/normal/cmdline.c (grub_cmdline_get):
3312 Remove nested functions.
3314 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3316 * tests/test_sha512sum.in: Make it work on emu.
3318 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3320 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3322 (grub_bidi_line_logical_to_visual): Likewise.
3324 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3326 Remove vestiges of -Wunsafe-loop-optimisations.
3328 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3329 -Wno-unsafe-loop-optimisations.
3330 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3332 * grub-core/io/gzio.c: Likewise.
3333 * grub-core/script/parser.y: Likewise.
3334 * grub-core/script/yylex.l: Likewise.
3335 * util/grub-mkfont.c: Likewise.
3337 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3339 * util/grub-mkfont.c (process_cursive): Remove nested function.
3341 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3343 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3344 (grub_boot_time): Likewise.
3346 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3348 * include/grub/symbol.h (FUNCTION): Use @function rather than
3350 (VARIABLE): Likewise.
3352 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3354 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3356 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3358 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3359 (parse_dhcp_vendor): Likewise.
3361 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3363 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3365 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3367 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3368 Define after defining type and not before.
3370 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3372 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3374 (grub_gcm_decrypt): Likewise.
3375 (algo_decrypt): Likewise.
3376 (grub_zfs_decrypt_real): Transform error type.
3378 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3380 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3382 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3384 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3385 (grub_usbms_cbi_reset): Likewise.
3386 (grub_usbms_bo_reset): Likewise.
3387 (grub_usbms_reset): Likewise.
3388 (grub_usbms_attach): Likewise.
3389 (grub_usbms_transfer_cbi): Likewise.
3391 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3393 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3394 "checksum = checksum;".
3396 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3398 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3401 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3403 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3406 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3408 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3410 (grub_ehci_fini_hw): Likewise.
3411 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3413 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3415 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3416 return grub_usb_err_t for cosistency. All users updated.
3418 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3420 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3421 assigning to itself.
3423 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3424 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3426 Issue separate DNS queries for ipv4 and ipv6
3428 Adding multiple questions on a single DNS query is not supportted by
3429 most DNS servers. This patch issues two separate DNS queries
3430 sequentially for ipv4 and then for ipv6.
3432 Fixes: https://savannah.gnu.org/bugs/?39710
3434 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3435 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3436 * (grub_net_dns_lookup): Now using separated dns packages.
3437 * (grub_cmd_nslookup): Add error condition.
3438 * (grub_cmd_list_dns): Print DNS option.
3439 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3440 --prefer-ipv4, and --prefer-ipv6.
3441 * include/grub/net.h (grub_dns_option_t): New enum.
3442 * (grub_net_network_level_address): option added.
3444 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3446 * grub-core/video/fb/video_fb.c: Merge two blit functions
3449 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3451 * grub-core/term/terminfo.c: Add sequences for home and end.
3453 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3455 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3458 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3460 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3463 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3465 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3466 e-mail by Per Öberg.
3468 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3470 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3473 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3475 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3477 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3479 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3481 * docs/grub.texi: Document usage of menuentry id.
3483 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3485 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3487 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3489 * grub-core/commands/i386/nthibr.c: New command.
3491 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3493 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3495 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3497 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3500 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3502 Support GRUB_DISABLE_SUBMENU config.
3504 Inspired by patch from Prarit Bhargava.
3506 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3508 * docs/grub.texi: Mention RSA support.
3510 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3512 * grub-core/commands/verify.c: Add RSA support.
3514 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3516 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3517 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3518 device is known to be ATAPI.
3520 2013-11-03 Mike Frysinger <vapier>
3522 * configure.ac: Don't add target-prefix.
3524 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3526 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3529 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3531 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3532 if language is English.
3534 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3536 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3538 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3540 * configure.ac: Don't add -m32/-m64 on emu.
3544 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3545 broken linux headers.
3547 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3549 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3551 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3553 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3554 Reed-Solomon recovery if more than half of redundancy info is 0.
3556 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3558 * util/grub-mount.c: Handle symlinks to directories.
3560 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3562 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3563 find_file recursively for symlink.
3565 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3567 * tests/util/grub-shell.in: Copy themes.
3569 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3571 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3573 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3575 * configure.ac: Use 0x8000 for address instead of 8000.
3577 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3579 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3582 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3584 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3587 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3589 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3591 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3593 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3594 file_progress_read_hook.
3595 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3597 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3599 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3602 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3604 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3606 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3608 Rewrite blocklist functions in order to get progress when
3609 reading large extents and decrease amount of blocklist hook calls.
3611 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3613 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3616 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3618 Support --base-clock for serial command to handle weird cards with
3619 non-standard base clock.
3621 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3623 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3625 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3626 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3627 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3628 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3629 + strcpy rather than strncpy.
3631 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3633 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3634 (check_pool_label): Likewise. Fixes overflow.
3635 (nvlist_find_value): Fix comparison.
3637 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3639 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3640 more appropriate functions.
3642 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3644 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3647 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3649 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3651 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3653 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3656 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3658 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3660 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3662 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3663 (initialize_tables): reset tl and td to NULL after freeing.
3665 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3667 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3669 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3671 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3674 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3676 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3678 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3680 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3683 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3685 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3686 a page in protected space.
3688 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3690 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3691 allocate space for zero-sized modules.
3693 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3695 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3697 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3699 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3701 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3703 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3704 safeguards. Fixes a crash with i386/pc/console.c.
3706 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3708 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3709 and grub_hostfs_init.
3711 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3713 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3714 windows method on other platforms without good stat as well.
3716 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3718 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3720 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3722 Make / in btrfs refer to real root, not the default volume.
3723 Modify mkrelpath to work even if device is mounted with subvolid option.
3725 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3727 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3729 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3732 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3734 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3737 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3739 * docs/autoiso.cfg: New file.
3741 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3743 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3744 COND_GRUB_PE2ELF conditions.
3746 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3748 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3749 "vnd", "rd" and "fd" disks.
3751 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3753 Move grub_disk_write out of kernel into disk.mod.
3755 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3757 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3760 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3762 * grub-core/kern/misc.c (grub_abort): Make static
3764 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3766 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3767 transform invalid unicode codepoints.
3769 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3771 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3774 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3776 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3778 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3780 Consolidate cpuid code.
3782 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3784 Move cpuid code to cpuid.h and TSC code to tsc.c.
3786 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3788 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3790 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3792 * util/grub-mkconfig.in: Replace $0 with $self.
3793 * util/grub-reboot.in: Likewise.
3794 * util/grub-set-default.in: Likewise.
3796 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3798 * docs/osdetect.cfg: New file.
3800 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3802 * tests/util/grub-shell.in: Add new --debug option.
3804 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3806 * tests/test_unset.in: New test.
3808 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3810 * tests/test_sha512sum.in: New test.
3812 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3814 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3815 * include/grub/misc.h: Remove strncat.
3816 * grub-core/lib/posix_wrap/string.h: Likewise.
3818 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3820 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3821 Try to handle more than 0xFFFF packets.
3822 Reported by: Bernhard Übelacker <bernhardu>.
3823 He also spotted few overflows in first version of this patch.
3825 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3827 * tests/date_unit_test.c: New test.
3829 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3831 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3832 of first three years after start of validity of unixtime.
3834 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3836 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3837 division as the one making more sense.
3838 (update_screen): Likewise.
3839 (complete): Likewise.
3841 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3843 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3845 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3847 Make char and string width grub_size_t rather than grub_ssize_t.
3849 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3851 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3853 (grub_history_replace): Likewise.
3855 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3857 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3860 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3862 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
3865 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3867 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
3868 Use unsigned divisions rather than signed variants.
3870 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3872 * grub-core/video/readers/png.c (grub_png_convert_image): Use
3873 unsigned arithmetics.
3876 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3878 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
3880 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3882 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
3883 rather than signed one.
3884 (recovery): Likewise.
3886 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3888 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
3890 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3892 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
3895 2013-10-25 Jon McCune <jonmccune@google.com>
3897 * docs/grub.texi: Cleanup security documentation around signatures.
3899 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3901 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
3903 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3905 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
3908 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3910 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
3911 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
3912 functions when compiling for kernel.
3914 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3916 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
3917 unsigned long long when using %llu.
3919 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3921 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
3922 terminal after updating progress.
3924 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3926 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
3927 argument. We don't disable Gate A20 in this code.
3929 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3931 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
3932 Conceptually based on change in branch "vbe-on-coreboot".
3934 2013-10-24 Robert Millan <rmh@gnu.org>
3936 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
3937 numeric constants with their symbolic equivalent.
3938 Taken from branch "vbe-on-coreboot".
3940 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3942 * docs/grub.texi: Fix ordering and use pxref rather than xref.
3944 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3946 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
3947 divmod64 for offset division.
3949 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3951 Rename .bzrignore to .gitignore. Add "*.o" rule.
3953 * .bzrignore: Renamed to...
3954 * .gitignore: ...this.
3956 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3958 Add new progress module that displays the load progress of files.
3960 * grub-core/lib/progress.c: New file.
3961 * grub-core/Makefile.core.def (progress): New module.
3962 * grub-core/kern/file.c (grub_file_open): File name added.
3963 * (grub_file_read): Progress hook added.
3964 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
3965 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
3966 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
3967 * include/grub/file.h (struct grub_file): Add progress module members.
3968 * include/grub/term.h (struct grub_term_output): Likewise.
3969 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
3970 Terminal velocity added.
3971 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
3972 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
3973 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
3974 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
3975 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
3976 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
3977 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
3978 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
3979 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
3980 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
3981 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
3982 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
3984 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3986 Verify signatures of signatures unless --skip-sig is specified.
3988 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3990 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3993 Saves 70 bytes on compressed image.
3995 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3997 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4000 Saves 10 bytes on compressed image.
4002 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4004 * grub-core/kern/misc.c (grub_isprint): Move to ...
4005 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4007 Saves 20 bytes on compressed image due to remving exporting.
4009 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4011 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4013 Saves 5 bytes on compressed image.
4015 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4017 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4020 Saves 379 bytes on compressed image.
4022 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4024 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4026 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4028 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4030 Saves 40 bytes on compressed image.
4032 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4034 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4035 mask rather than 64-bit type.
4037 Saves 20 bytes on compressed image.
4039 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4041 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4042 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4044 Saves 273 bytes on compressed image.
4046 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4048 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4049 variable length arrays.
4051 Saves 50 bytes on compressed image.
4053 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4055 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4057 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4059 * grub-core/fs/ufs.c: Remove variable length arrays.
4061 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4063 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4065 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4067 * grub-core/fs/zfs.c: Remove variable length arrays.
4068 Reduces zfs.mod by 160 bytes (208 compressed).
4070 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4072 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4074 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4076 * grub-core/net/arp.c: Remove variable length arrays.
4077 * grub-core/net/bootp.c: Likewise.
4078 * grub-core/net/dns.c: Likewise.
4079 * grub-core/net/icmp6.c: Likewise.
4080 * grub-core/net/net.c: Likewise.
4082 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4084 * grub-core/fs/ntfs.c: Remove variable length arrays.
4085 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4088 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4090 * grub-core/fs/hfs.c: Remove variable length arrays.
4091 Reduces hfs.mod by 8 bytes (52 compressed).
4093 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4095 * grub-core/fs/udf.c: Remove variable length arrays.
4096 Increases udf.mod by 128 bytes (but decreases by 13 when
4099 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4101 * grub-core/fs/iso9660.c: Remove variable length arrays.
4102 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4105 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4107 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4108 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4111 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4113 * grub-core/fs/xfs.c: Remove variable length arrays.
4114 Reduces xfs.mod by 40 bytes (43 compressed).
4116 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4118 * grub-core/fs/fshelp.c: Remove variable length arrays.
4119 Reduces fshelp.mod by 116 bytes (23 compressed).
4121 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4123 * grub-core/normal/completion.c: Remove variable length arrays.
4124 * grub-core/normal/menu_entry.c: Likewise.
4126 Reduces normal.mod by 496 bytes.
4128 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4130 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4131 by 356 bytes (158 compressed).
4133 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4135 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4136 by 364 bytes (169 compressed).
4138 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4140 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4141 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4142 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4144 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4146 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4147 bitmasks to small structures of size chosen to fit in registers.
4149 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4151 * conf/Makefile.common: Use -freg-struct-return on i386. This
4152 decreases code size and improves performance.
4154 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4156 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4158 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4160 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4162 Simplify expressions to save around 256 bytes in kernel.img.
4163 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4165 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4167 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4168 Use GRUB_UTIL_FD_O_* rather than O_*.
4170 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4172 Add haiku-specific functions.
4174 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4176 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4178 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4180 Move stat () and device mode checking into OS-dependent files as
4181 long as performance doesn't suffer.
4183 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4185 Split make_system_path_relative_to_its_root into separate file
4186 relpath.c from getroot.c as it's common between unix and haiku
4187 but otherwise haiku doesn't use any functions from unix getroot.c.
4189 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4191 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4193 (grub_util_is_special_file): Likewise.
4195 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4197 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4198 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4200 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4202 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4203 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4205 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4207 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4208 (load_image): Likewise.
4210 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4212 * util/grub-render-label.c: Move backend part to ...
4213 * util/render-label.c: ... here.
4215 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4217 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4218 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4220 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4222 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4224 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4226 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4227 CD-ROM in case when it's declared as having subpartitions.
4229 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4231 Don't add -lm on haiku.
4233 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4235 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4238 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4240 * configure.ac: Use -melf_*_haiku as target on haiku.
4242 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4244 * Makefile.util.def: Add util/setup.c to extra_dist.
4246 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4248 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4249 unknown types through.
4251 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4253 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4254 (grub_util_check_char_device): Likewise.
4255 * include/grub/emu/getroot.h: Likewise.
4257 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4259 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4260 memset rather than inline static function.
4262 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4264 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4265 not doing embedded decompressor.
4267 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4269 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4271 * grub-core/kern/disk.c: Likewise.
4272 * grub-core/kern/misc.c: Likewise.
4273 * include/grub/parser.h: Likewise.
4274 * include/grub/script_sh.h: Likewise.
4275 * include/grub/zfs/zfs.h: Likewise.
4277 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4279 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4281 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4283 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4284 defined before trying to use it.
4286 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4288 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4291 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4293 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4294 Use __unused__ rather than __used__ on gcc < 3.2.
4296 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4298 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4300 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4302 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4304 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4306 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4308 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4309 * include/grub/emu/misc.h: Likewise.
4311 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4313 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4316 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4318 * grub-core/tests/checksums.h: Regenerated due to progress bar
4319 get_minimal_size changes.
4321 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4323 Added `tr' command support.
4325 * grub-core/commands/tr.c: New file.
4326 * grub-core/Makefile.core.def: Build rules for new module.
4328 * tests/grub_cmd_tr.in: New test.
4329 * Makefile.util.def: Build rules for new test.
4331 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4333 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4335 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4337 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4338 * docs/gurb.texi: Likewise.
4340 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4342 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4343 Pixmap highlighted section with east and west slices was displayed
4344 incorrectly due to negative width of the central slice.
4346 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4348 * docs/grub.texi: Graphical options information update.
4349 Removed outdated. Updated current. Inserted missed.
4351 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4353 * docs/grub.texi: Mention few new platform-specific commands.
4355 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4357 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4358 currently used so this doesn't really have any effect.
4359 Reported by: Douglas Ray <dougray>
4361 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4363 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4364 compilation but prevents gcc from displaying messages in non-Latin
4366 * conf/Makefile.common: Likewise.
4368 2013-10-16 Hiroyuki YAMAMORI
4370 Handle Japanese special keys.
4371 Reported by: Hiroyuki YAMAMORI.
4372 Codes supplied by: Hiroyuki YAMAMORI.
4374 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4376 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4378 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4380 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4381 * docs/grub.texi: Likewise.
4383 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4385 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4386 value in case of incomplete read.
4387 (grub_util_fd_write): Likewise.
4389 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4391 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4393 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4395 * util/grub-editenv.c (create_envblk_file): More from here ...
4396 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4398 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4400 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4401 canonicalize file name before doing the rest.
4403 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4405 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4408 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4410 Define grub_util_is_directory/regular/special_file and
4411 use OS-dependent versions rather than to rely on stat().
4413 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4415 * util/grub-mkimage.c: Move backend part to ...
4416 * util/mkimage.c: ... here.
4418 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4420 Allow compilation with mingw64 albeit with warnings due to lack of
4423 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4424 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4425 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4426 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4428 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4430 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4432 Remove leftover references to some of the system headers.
4434 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4436 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4439 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4441 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4444 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4446 Split out blocklist retrieving from setup.c to
4447 grub-core/osdep/blocklist.c and add windows implementation since
4448 generic version doesn't work on NTFS on Windows due to aggressive
4451 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4453 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4456 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4458 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4459 Cut tailing newline. Remove arbitrary limitation. Always use
4460 grub_util_tchar_to_utf8.
4462 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4464 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4465 * tests/printf_unit_test.c (printf_test): Add %% tests.
4466 Reported by: Paulo Flabiano Smorigo.
4468 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4470 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4473 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4475 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4476 use nvlist_lookup_string and don't use nvlist_print.
4478 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4480 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4481 closedir to handle filename charset translation.
4483 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4485 * include/grub/emu/hostdisk.h: Move file operations to
4486 * include/grub/emu/hostfile.h: ... here.
4488 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4490 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4493 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4495 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4497 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4499 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4500 and remove export.h.
4502 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4504 * grub-core/kern/emu/error.c: Removed.
4505 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4506 explicitly as it's already in libgnu.a.
4508 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4510 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4511 config-util.h include.
4513 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4515 Split emunet into platform-dependent and GRUB-binding parts. Keep
4516 platform-dependent part in kernel for easy access to OS functions.
4518 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4520 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4523 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4525 * grub-core/osdep/windows/emuconsole.c: New file.
4527 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4529 * conf/Makefile.extra-dist: Add osdep/*/init.c
4531 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4533 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4535 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4537 * util/grub-probe.c (probe): Separate different drives in hint-str
4538 by spaces and not newlines.
4539 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4541 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4543 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4546 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4548 Pass-through unknown E820 types. It required reorganisation of mmap
4551 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4553 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4555 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4557 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4560 2013-10-14 qwertial <qwertial>
4562 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4564 2013-10-14 Jon McCune <jonmccune@google.com>
4566 * docs/grub.texi: Document new signatures possibility.
4568 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4570 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4572 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4574 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4576 (grub_util_tchar_to_utf8): Likewise.
4578 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4580 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4581 * grub-core/kern/emu/main.c: Add missing include.
4582 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4583 Don't call grub_util_init_nls.
4584 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4587 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4589 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4592 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4594 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4596 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4598 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4600 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4602 Add a wrapper for fopen. On unix-like systems just pass-through. On
4603 windows use unicode version.
4605 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4607 Move set_program_name and init_nls to host_init. On windows
4608 fix in this fuction console and argument charset as well.
4610 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4612 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4613 GRUB_ENABLE_CRYPTODISK.
4615 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4616 GRUB_ENABLE_CRYPTODISK.
4617 * util/grub-mkconfig_lib.in: Likewise.
4619 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4621 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4623 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4625 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4626 error when enabling debug.
4628 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4630 * configure.ac: Use -melf_*_obsd on openbsd.
4632 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4634 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4636 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4638 * include/grub/misc.h: Use gnu_printf rather than printf as format
4639 template since our functions are independent of libc.
4641 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4643 * util/grub-setup.c (setup): Move copying of partition table as
4644 futher up as possible to avoid possible overwrite by floppy routines.
4646 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4648 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4650 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4652 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4653 * docs/grub.texi: Likewise.
4655 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4657 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4658 it's mostly unused. Move vestiges to the callers.
4660 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4662 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4663 version of salt and hash. Use grub_snprintf rather than snprintf.
4665 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4667 * docs/grub.texi: Fix problem with braces.
4669 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4671 * conf/Makefile.extra-dist: Fix extra-dist list.
4672 * grub-core/Makefile.core.def: Likewise.
4674 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4676 * docs/grub.texi: Document disk names used on Windows and AROS.
4678 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4680 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4682 * grub-core/osdep/aros/hostdisk.c: Likewise.
4684 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4686 Avoid including hostfile.h when not necessarry as it pulls
4687 in OS-specific headers which may redefine generic names
4690 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4692 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4693 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4694 scrollbar_bottom_pad
4695 * docs/grub.texi: Likewise.
4697 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4699 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4701 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4703 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4705 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4707 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4709 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4712 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4714 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4717 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4719 Move OS-specific driver configuration to grub_util_fd_open. This
4720 moves OS-dependent parts from kern/emu/hostdisk.c to
4721 grub-core/osdep/*/hostdisk.c.
4723 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4725 * util/grub-mkimage.c (generate_image): Use size_t instead of
4727 * util/grub-mkimagexx.c (locate_sections): Likewise.
4728 (load_image): Likewise.
4730 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4732 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4734 (grub_util_write_image): Likewise.
4736 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4738 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4739 get random when no RNG is available.
4740 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4742 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4744 * include/grub/util/lvm.h: Removed.
4746 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4748 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4749 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4751 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4753 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4755 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4757 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4759 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4761 * grub-core/net/drivers/emu/emunet.c: Move to ..
4762 * grub-core/osdep/linux/emunet.c: ..here.
4764 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4766 * util/ieee1275/ofpath.c: Move to ...
4767 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4768 * grub-core/osdep/basic/ofpath.c: ..here.
4770 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4772 Move password-querying (util-version) routines to grub-core/osdep.
4774 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4776 Move sleep routines to grub-core/osdep.
4778 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4780 Move OS-dependent files to grub-core/osdep and document it.
4782 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4784 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4785 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4787 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4789 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4791 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4793 * util/misc.c: Remove leftover inclusion of malloc.h.
4795 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4797 * include/grub/setjmp.h: Remove leftover GRUBOF.
4799 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4801 * util/raid.c: Fold into ...
4802 * util/getroot_linux.c: ... here. Make all functions static.
4804 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4806 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4807 macros to GRUB ones.
4809 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4811 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4812 occasional bug. If there are too many boot entries or too low
4813 scrollbar height then we need to use another formula to calculate
4814 the position and size of the scrollbar thumb.
4816 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4818 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4820 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4822 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4823 * docs/grub.texi: Likewise.
4825 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4827 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4830 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4832 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4833 minimal width calculations.
4835 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4837 * docs/grub.texi: Update note on colors on emu console.
4839 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4841 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4842 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4843 it's FS and not GRUB limitation.
4845 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4847 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4849 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4851 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4853 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4855 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4856 kernels by version order.
4858 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4860 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
4862 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4864 Add AROS hostdisk and getroot routines.
4866 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4868 Make cryptodisk and diskfilter probe data retrievable programmatically
4869 and not just printable.
4871 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4873 Split random retrieving code into separate files.
4875 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4877 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
4880 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4882 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
4884 * grub-core/tests/fake_input.c: Likewise.
4885 * grub-core/tests/cmdline_cat_test.c: Likewise.
4887 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4889 * grub-core/video/capture.c: Do not do finalization when .fini
4890 is called as there is explicit capture_end.
4892 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4894 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
4895 changing windows to avoid crash.
4897 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4899 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
4901 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4903 * po/exclude.pot: Add several strings to exclude.
4905 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4907 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
4909 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4911 * autogen.sh: Add ./util/grub-gen-widthspec.c and
4912 ./util/grub-gen-asciih.c to exclude list.
4914 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4916 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
4917 and don't mark error strings for translation.
4919 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4921 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
4922 properly in case of missing block size.
4924 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4926 * grub-core/lib/arm/setjmp.S: Add missing license section.
4928 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4930 * po/swiss.sed: Add replacement for key names and for term computer.
4932 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
4934 * grub-core/gfxmenu/theme_loader.c: New global options for the
4935 theme background image handling. desktop-image-scale-method,
4936 desktop-image-h-align, desktop-image-v-align.
4937 * grub-core/gfxmenu/view.c: Likewise.
4938 * include/gfxmenu_view.h: Likewise.
4939 * include/bitmap_scale.h: Proportional scale functions introduced.
4940 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
4941 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
4942 cases of unexpected input variables for scale functions.
4943 * docs/grub.texi: Updated documentation for new options.
4945 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
4947 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
4949 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4951 * grub-core/tests/checksums.h: Corrected due to changes in
4952 bilinear interpolation function.
4954 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4956 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
4957 to eliminate artefacts in bilinear interpolation.
4959 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4961 * grub-core/video/readers/tga.c: Support paletted tga.
4963 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4965 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
4966 incorrect cbcr setting when in color mode.
4968 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4970 * grub-core/video/readers/png.c: Support paletted images and clean up
4973 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4975 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
4976 usage of wrong table which resulted in mishandling of 4-byte
4979 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4981 * grub-core/term/terminfo.c: Add Home and End key sequences.
4983 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4985 * grub-core/video/readers/png.c (grub_png_decode_image_header):
4986 Fix formula for computing total number of bytes.
4988 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4990 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
4991 image processing, fix big-endian and support grayscale.
4993 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4995 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
4996 Correctly will with maximum transparency when using index color.
4998 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5000 * grub-core/video/readers/png.c: Support grayscale
5002 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5004 * grub-core/video/readers/jpeg.c: Support grayscale.
5006 2013-09-26 Jon McCune <jonmccune@google.com>
5008 * grub-core/commands/loadenv.c: Support skipping signature check
5009 and variable names filtering.
5011 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5013 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5014 * grub-core/kern/emu/hostfs.c: Likewise.
5015 * util/getroot_unix.c: Likewise.
5017 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5019 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5020 Migrate all explicit defines to this new one.
5022 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5024 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5025 grub_util_fd_strerror when using grub_util_fd_*.
5026 (grub_util_fd_open_device): Likewise.
5027 (grub_util_biosdisk_read): Likewise.
5028 (grub_util_biosdisk_write): Likewise.
5029 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5030 (grub_util_fd_strerror): Likewise.
5031 (grub_util_fd_sync): Likewise.
5032 (grub_util_fd_close): Likewise.
5033 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5034 (grub_util_fd_close): Likewise.
5035 (grub_util_fd_strerror): Likewise.
5036 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5037 function proto rather than macro.
5038 (grub_util_fd_sync): Likewise.
5039 (grub_util_fd_open): Likewise.
5040 (grub_util_fd_strerror): New proto.
5042 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5044 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5045 platforms on which it doesn't work.
5047 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5049 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5050 stat immediately to where it's used.
5052 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5054 * util/getroot.c (grub_util_check_block_device): Move to ...
5055 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5056 * util/getroot.c (grub_util_check_char_device): Move to ...
5057 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5059 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5061 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5064 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5066 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5068 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5070 * docs/grub.texi (File name syntax): Document ZFS filenames
5071 (/volume@snapshot/...).
5073 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5075 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5076 Always return full path. Fixes a problem with mkrelpath.
5078 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5080 * util/grub-install.in: Add GPT PReP support.
5081 * util/grub-probe.c (probe): Support GPT partition type.
5082 (main): Support -t gpt_parttype.
5084 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5086 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5088 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5090 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5092 2013-09-23 Tim Hardeck <thardeck>
5094 * util/grub.d/10_hurd.in: Filter out character for the class.
5095 * util/grub.d/10_kfreebsd.in: Likewise.
5096 * util/grub.d/10_linux.in: Likewise.
5097 * util/grub.d/20_linux_xen.in: Likewise.
5099 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5101 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5104 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5106 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5109 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5111 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5112 doesn't use posix_wrap. Keep literal -fno-builtin however.
5114 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5116 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5118 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5121 * configure.ac: Do not enable -Wmissing-noreturn as its
5122 usefulness is limited and creates problems on some OS notably with
5123 code generated by bison.
5125 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5128 * configure.ac: Do not explicitly enable -Waddress as it's not
5129 supported by all gcc and when it is, it's already enabled by -Wall.
5131 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5133 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5134 desactivated use of EDID at all.
5136 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5139 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5140 video if no text is available.
5142 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5145 * configure.ac: Substitute TARGET_RANLIB.
5147 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5150 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5152 Based on patches from AROS.
5154 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5157 * grub-core/Makefile.am: Override STRIP and RANLIB.
5158 * configure.ac: compute TARGET_RANLIB.
5159 * INSTALL: Document TARGET_RANLIB
5161 Based on patches from AROS.
5163 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5165 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5166 that floppies are unpartitioned.
5168 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5170 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5171 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5173 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5175 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5176 less nice but more portable.
5177 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5179 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5181 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5183 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5185 (grub_cryptodisk_cheat_insert): Likewise.
5186 (grub_cryptodisk_close): Likewise.
5188 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5190 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5191 Use windows path for DEFAULT_DIRECTORY.
5193 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5195 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5196 difference was likely just gcc version, not anything mingw-related.
5198 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5200 Use Winapi on both cygwin and mingw32 to share more code between both.
5202 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5204 * util/grub-install.in: Add --grub-editenv option.
5205 * util/grub-install_header (grub_compress_file): Explicitly check for
5206 plain file to avoid cp error.
5208 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5210 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5211 names; fix LVM driver name (lvm, not lv).
5212 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5215 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5217 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5218 files rather than one file with loads of #if's.
5219 * util/getroot.c: Likewise.
5221 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5223 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5225 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5227 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5228 GNU/Hurd to the list of checked PRNG.
5230 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5232 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5234 2013-09-21 Ales Nesrsta <starous@volny.cz>
5236 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5238 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5240 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5241 * grub-core/disk/lvm.c: Add LVM UUIDs.
5242 * util/getroot.c: Use LVM UUIDs whenever possible.
5244 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5246 * docs/grub.texi (Networking commands): Add documentation for
5247 network related commands.
5249 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5251 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5252 to determine if device is handled by devmapper.
5253 (convert_system_partition_to_system_disk): Likewise.
5254 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5255 already done in grub_util_open_dm.
5257 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5259 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5260 Clean up stack manipulation (sync_caches_armv*)
5262 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5264 * util/lvm.c: Remove since unused. Remove remaining references.
5266 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5268 Handle the case of partitioned LVM properly.
5270 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5271 Stop on meeting LVM, mpath or DMRAID.
5272 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5273 (read_device_map): Likewise.
5274 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5275 device is full disk rather than erroring out on LVM and similar cases.
5277 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5279 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5281 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5283 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5285 Reported by: Leif Lindholm
5287 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5288 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5290 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5293 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5295 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5296 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5298 2013-09-18 Douglas Ray <dougray@cpan.org>
5300 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5303 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5305 * docs/grub.texi: Fix broken link.
5307 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5309 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5310 to break endless loop.
5312 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5314 * util/grub-fstest.c: Fix several printf formats.
5315 * util/grub-mkimage.c: Likewise.
5316 * util/grub-mkimagexx.c: Likewise.
5317 * util/grub-script-check.c: Likewise.
5319 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5321 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5324 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5326 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5328 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5330 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5331 removed in current versions cygwin_conv_*.
5333 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5335 * configure.ac: Disable efiemu runtime on cygwin.
5337 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5339 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5340 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5342 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5344 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5347 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5349 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5351 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5354 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5356 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5357 when on x86 and not cygwin.
5358 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5361 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5363 * configure.ac: Set CPP to build one when checkoing for freetype for
5366 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5368 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5369 [!GRUB_BUILD]: Remove has_argument.
5371 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5373 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5374 Replace with a dummy.
5376 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5378 * configure.ac: Don't change host_os from mingw to cygwin.
5380 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5382 * configure.ac: Change target_os from windows to cygwin.
5384 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5386 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5388 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5389 (build-grub-gen-asciih): Likewise.
5390 (build-grub-gen-widthspec): Likewise.
5391 * Makefile.util.def (grub-pe2elf): Remove.
5392 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5393 * configure.ac: Separate tests for build.
5394 Move ./build-grub-pe2elf to grub-core.
5396 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5397 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5399 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5401 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5402 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5403 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5405 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5407 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5408 mingw32 as well based on grub_util_get_disk_size.
5409 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5410 grub_util_get_fd_size.
5412 (fsync): Moved to ...
5413 * grub-core/kern/emu/misc.c (fsync): ... here.
5415 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5417 * include/grub/mm.h (grub_extend_alloc): Remove.
5418 * grub-core/loader/i386/pc/plan9.c: Use own version of
5419 grub_extend_alloc with appropriate types.
5421 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5423 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5425 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5427 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5429 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5431 Fix dependencies on cygwin.
5433 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5434 dependencies when used and defined.
5435 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5437 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5439 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5440 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5442 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5444 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5445 implementation available to cause compile-time rather than runtime
5448 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5450 * util/grub-fstest.c: Don't check for symlinks on windows.
5452 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5454 * INSTALL: Mention unavailability of man pages when cross-compiling.
5456 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5458 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5460 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5462 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5464 * INSTALL: Document cross-compilation.
5465 * acinclude.m4: Determine whether nm support -P and --defined-only.
5466 * configure.ac: Add TARGET_ to all variables pertaining to target
5467 that don't have it yet.
5468 * gentpl.py: Likewise.
5469 * grub-core/Makefile.am: Likewise.
5470 * grub-core/genmod.sh.in: Likewise.
5471 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5474 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5476 * configure.ac: Remove -Wempty-body. It's not essential and needs
5479 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5481 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5482 * util/getroot.c: Likewise.
5484 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5486 * grub-core/disk/ahci.c: Add needed explicit cast.
5487 * grub-core/lib/backtrace.c: Likewise.
5488 * grub-core/net/ip.c: Likewise.
5489 * grub-core/net/tcp.c: Likewise.
5490 * grub-core/net/udp.c: Likewise.
5492 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5494 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5496 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5498 * util/import_gcry.py: Add final newline in visibility.h.
5500 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5502 * conf/Makefile.common: Fix typo.
5504 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5506 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5508 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5510 * Makefile.am (widthspec.h): Fix typo.
5511 * util/grub-gen-widthspec.c: Likewise.
5513 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5515 Move ascii.h and widthspec.h generation to a separate build-time-only
5518 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5520 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5521 Always fill bootdisk info and improve check for NetBSD disklabel.
5523 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5525 * conf/Makefile.extra-dist: Add util/bin2h.c.
5526 Reported by: floppym.
5528 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5530 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5532 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5534 * configure.ac: Disable unifont and starfield if no freetype was found.
5536 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5538 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5539 on NetBSD and OpenBSD.
5541 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5543 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5545 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5547 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5548 reduced. Inheritant options are processed during the theme loading.
5550 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5552 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5554 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5556 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5558 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5560 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5563 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5565 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5566 remove-potcdate.sed.
5568 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5570 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5571 unused attribute from pull argument.
5573 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5575 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5578 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5580 * util/getroot.c (pull_lvm_by_command): add --separator option
5581 to vgs call to disable padding of output to 10 characters.
5583 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5585 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5587 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5590 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5592 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5595 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5597 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5598 full Canadian cross. Tested with build=x86_64, host=arm,
5599 target=ppc-ieee1275.
5601 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5603 * configure.ac: Error if no $BUILD_CC could be found.
5606 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5608 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5611 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5613 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5614 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5616 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5618 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5619 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5620 falling back to the partition device, otherwise a later call to this
5621 function may fail spuriously.
5622 Reported by Axel Beckert. Fixes Debian bug #708614.
5624 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5626 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5628 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5630 Prevent shadowing of stdlib's devname(3) on BSD.
5632 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5633 and devlast to diskname and disklast, respectively.
5635 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5637 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5639 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5641 * docs/grub.texi: Introduce terminal window position options:
5642 terminal-left: terminal window's left position
5643 terminal-top: terminal window's top position
5644 terminal-width: terminal window's width
5645 terminal-height: terminal window's height
5646 terminal-border: terminal window's border width
5647 * grub-core/gfxmenu/theme-loader.c: Likewise.
5648 * include/grub/gfxmenu_view.h: Likewise.
5649 * po/exlude.pot: Likewise.
5650 * grub-core/gfxmenu/view.c: Likewise.
5651 Also updated minimal window size.
5652 Also terminal_sanity_check function has been introduced.
5653 * grub-core/tests/checksums.h: Update (terminal window height
5654 is adjusted now for low resolution screen)
5656 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5658 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5661 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5663 * po/exclude.pot: Add few recent exceptions.
5665 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5667 * tests/grub_func_test.in: Add unicode.pf2.
5669 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5671 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5672 standard rather than noral color, in line with other terminals.
5674 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5676 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5679 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5681 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5683 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5685 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5686 inappropriate printf.
5688 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5690 * .bzrignore: Remove grub-core/lib/dtc-grub,
5691 grub-core/Makefile.libfdt.def
5692 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5694 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5696 * include/grub/video.h (grub_video_register): Keep double-linked as
5697 well as single-linked invariants.
5698 Reported by: qwertial.
5700 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5702 * grub-core/commands/nativedisk.c (get_uuid): Handle
5703 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5705 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5707 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5708 maximum of NW, N, NE heights instead of N's height and maximum of
5709 NW, W, SW widths instead of W's width. (So the box will be always
5712 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5714 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5715 Fix misuse of variable count.
5717 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5718 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5719 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5721 New ports to arm-uboot and arm-efi.
5722 Mostly by Leif Lindholm with some additions from
5723 Francesco Lavra and cleanup by Vladimir Serbinenko.
5725 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5727 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5729 Reported by: Leon Drugi.
5731 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5733 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5734 Reported by: Paulo Flabiano Smorigo.
5736 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5738 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5740 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5742 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5744 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5746 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5748 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5750 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5752 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5754 * grub-core/net/bootp.c: Export net_* variables.
5755 * grub-core/net/net.c: Likewise.
5757 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5759 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5761 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5763 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5765 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5767 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5769 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5771 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5773 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5775 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5778 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5780 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5783 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5785 * grub-core/fs/zfs/zfs_lz4.c: New file.
5786 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5788 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5790 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5792 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5794 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5795 (check_pool_label): Likewise.
5796 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5798 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5800 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5802 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5804 * docs/grub.texi (Commands): Document postition parameters
5805 for menuentry command.
5807 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5809 * util/grub-mknetdir.in: Remove stray line from help output.
5811 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5813 Remove early sm712 init as there is no reason for it (the "watchdog"
5814 effect was due to wrong GPIO map).
5816 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5818 * grub-core/commands/pcidump.c: Remove static variables.
5820 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5822 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5824 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5826 * configure.ac: Move delimiter after the infos.
5828 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5830 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5832 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5834 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5835 not filling whole 8x16 space.
5837 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5839 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5841 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5843 * configure.ac: Indicate which liblzma is used if any.
5845 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
5846 2013-06-21 Craig Sanders <savannah@taz.net.au>
5848 * util/grub-reboot.in: Document submenu usage.
5850 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5852 * .bzrignore: Update with a number of new test-related files.
5854 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5856 * util/grub-script-check.c: Fail on scripts containing no
5857 commands, to guard against corrupted grub-mkconfig setups that
5858 produce no useful output.
5859 * tests/grub_script_no_commands.in: New test.
5860 * Makefile.util.def (grub_script_no_commands): Add.
5861 Reported by Hans Putter. Fixes Debian bug #713886.
5863 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5865 * grub-core/disk/diskfilter.c: Forgot to remove comment
5866 from previous commit.
5868 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5870 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5871 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
5873 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5875 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
5877 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5879 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
5880 rescan diskfilter devices until nothing new is found.
5882 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5884 Fix casts when compiling coreboot-specific code for 64-bit EFI.
5886 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5888 Don't try to detect cbfs on *-emu.
5890 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5892 * grub-core/term/gfxterm.c: USe right background color when scrolling.
5894 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5896 Add support for processed coreboot payload chainloading.
5898 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5900 Enable coreboot information commands even when not loaded as
5901 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
5903 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5905 Support for cbfs. Also factor out the part which is common
5906 for all archives to a separate module. This splits tar from cpio
5907 as they are very different but keeps cpio, cpio_be, odc and newc
5908 together since they're very similar.
5910 2013-06-15 David Michael <fedora.dm0@gmail.com>
5912 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
5913 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
5915 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5917 * tests/grub_script_eval.in: Really add the eval test.
5919 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
5921 Move flavour-specific parts out of common cpio.c file and
5922 rename remaining to cpio_common.c
5924 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5926 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
5927 off new function grub_script_execute_new_scope. Change callers to use
5928 either of them as appropriate.
5929 * grub-core/commands/eval.c: New command eval.
5930 * docs/grub.texi (Commands): Document it.
5932 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5934 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
5935 to fetch values when listing.
5937 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5939 Fix make dist on non-pc.
5941 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
5943 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
5944 without a device name.
5946 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5948 Remove enable_executable_check as it's not needed anymore.
5949 Reported by: dougray.
5951 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5953 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
5954 ambigouos RAID before discovering RAIDs on top of it.
5957 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5959 Fix typo (failback vs fallback).
5961 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
5963 * util/grub.d/30_os-prober.in: Add support for probing EFI
5964 System Partition (as of os-prober 1.58).
5966 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5968 * configure.ac: Add yet another path to unifont. For parabola.
5970 2013-05-30 Josh Triplett <josh@joshtriplett.org>
5972 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
5973 handling to copy the killed characters to the kill buffer as
5974 UCS4 stored as grub_uint32_t rather than as 8-bit characters
5975 stored as char. Eliminates UCS4 truncation and corruption
5976 observed when killing characters with Ctrl-u and yanking them
5979 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5981 Detach optional parts of gfxterm and integrate in with coreboot init.
5983 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5985 Move blit and fill dispatcher to appropriate files to decrease export
5986 and relocation overhead.
5988 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5990 * grub-core/font/font.c, include/grub/font.h: Inline simple font
5993 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5995 * grub-core/Makefile.am: Fix compilation problem with some
5998 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6000 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6002 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6004 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6007 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6009 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6012 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6014 * grub-core/partmap/dfly.c: New partition map.
6016 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6018 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6020 Reported by: Francesco Lavra.
6022 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6024 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6025 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6027 * conf/Makefile.common: define dist_grubconf_DATA
6029 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6031 Progressively skip menu elements on small terminals rather
6034 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6036 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6037 to avoid losing last column.
6039 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6041 * po/exclude.pot: Add missing string "%C".
6043 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6045 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6048 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6050 * util/grub-install.in: Gettextize "Not found" message.
6052 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6055 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6057 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6059 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6061 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6063 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6065 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6067 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6069 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6070 attribute since structure is not necessarily aligned.
6072 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6074 * docs/grub.texi (Device syntax): Clarify description of network
6077 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6079 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6080 for vasprintf presence.
6082 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6084 * util/grub-install.in: Handle efibootmgr presence check.
6085 Reported by: Leif Lindholm.
6087 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6089 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6090 new strings to translate.
6092 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6094 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6095 yet another string (pun intended) to translate.
6097 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6099 * po/POTFILES-shell.in: Autogenerate it.
6101 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6103 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6105 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6107 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6110 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6112 * docs/grub.texi (Network): Add description of net_default_interface,
6113 net_default_ip and net_default_mac. Rewrite variables description
6114 to emphasize that they are per-interface.
6116 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6118 New test: cmdline and cat.
6120 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6122 * grub-core/commands/cat.c: Show UTF-8 characters.
6124 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6126 * conf/Makefile.common: Poison float and double on non-emu.
6128 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6130 * configure.ac: Don't disable extended registers on emu.
6132 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6134 * configure.ac: Don't use extended registers on x86_64.
6135 Reported by: Peter Jones.
6137 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6139 * grub-core/term/efi/console.c: Fix compile error.
6141 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6143 Compressed HFS+ support.
6145 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6147 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6150 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6154 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6156 * grub-core/tests/setjmp_test.c: New test.
6158 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6160 New variables 'net_default_*' to determine MAC/IP of default interface.
6162 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6164 * tests/gettext_strings_test.in: A test to check for strings not
6165 marked for translation.
6167 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6169 * autogen.sh: Exclude unused libgcrypt files from translation.
6171 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6173 Simplify few strings.
6175 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6177 Mark few forgotten strings for translation.
6179 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6181 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6184 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6186 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6188 * grub-core/video/readers/tga.c: Likewise.
6190 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6192 * tests/priority_queue_unit_test.cc: New test.
6194 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6196 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6199 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6201 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6202 variable for one time boot menu entry.
6204 2013-05-05 Bean <bean123ch@gmail.com>
6206 * grub-core/commands/testspeed.c: New command testspeed.
6208 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6210 Factor-out human-size printing.
6212 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6214 Agglomerate more mallocs to speed-up gfxterm.
6216 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6218 Speed-up gfxterm by slightly agglomerating mallocs.
6220 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6224 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6226 Speed-up gfxterm by saving intermediate results in index+alpha
6229 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6231 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6234 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6236 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6237 line of timeout as it may contain the rest of long line.
6239 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6241 * grub-core/normal/main.c: Fix freed memory dereference.
6243 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6245 Fix several memory leaks.
6247 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6249 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6251 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6253 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6255 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6257 Fix test -a and -o precedence.
6258 Reported by: adrian15.
6260 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6262 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6264 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6266 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6267 and add it as source to functional_test module.
6269 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6271 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6273 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6275 New series of tests for gfxterm and gfxmenu.
6277 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6279 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6280 the theme path relative to $prefix/themes.
6282 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6284 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6286 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6288 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6290 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6293 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6295 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6296 grub_gfxmenu_timeout_notifications.
6297 (grub_gfxmenu_view_destroy): Likewise.
6299 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6301 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6303 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6305 Several fixes to ieee1275 and big-endian video.
6307 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6309 Add missing exports on mips.
6311 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6313 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6314 if no unifont is found.
6315 Restore original keyboard.
6317 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6319 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6320 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6322 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6324 First automated video test (running videotest and comparing results)
6326 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6328 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6329 instead of 2 to have full RGB/CMY test pattern.
6331 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6335 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6337 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6338 ARCS. All users updated.
6340 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6342 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6344 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6346 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6348 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6350 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6351 Reported by: qwertial.
6353 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6355 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6356 with syntax "XXX deg"/"XXX °".
6358 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6360 Make PCI init in i386-qemu port more robust.
6362 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6364 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6365 cached view is reused.
6366 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6369 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6371 Unify more code in grub-install_header.
6373 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6377 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6379 Enforce disabling of firmware disk drivers when native drivers kick in.
6381 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6383 * grub-core/commands/nativedisk.c: Customize the list of modules on
6384 platform. Don't try to search for disks already using native drivers.
6386 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6388 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6391 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6393 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6394 handling of variables containing backslash.
6396 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6398 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6400 Reported by: qwertial.
6402 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6404 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6406 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6408 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6410 Reported by: qwertial.
6412 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6414 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6416 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6418 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6420 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6422 New command `nativedisk'.
6424 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6426 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6427 * grub-core/loader/i386/bsd.c: Likewise.
6429 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6431 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6433 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6435 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6436 grub_get_unaligned16 rather than shifts.
6438 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6440 * grub-core/kern/file.c: Use const char * rather than casting to
6443 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6445 * grub-core/commands/probe.c: Add missing grub_device_close.
6447 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6449 * INSTALL: Document linguas.sh.
6451 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6453 Remove POTFILES.in and regenerate it in autogen.sh.
6455 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6457 Move --directory/--override-directorry to grub-install_header and unify.
6459 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6461 * grub-core/term/morse.c: Macroify dih and dah.
6463 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6465 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6467 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6469 * grub-core/term/ns8250.c: Systematically probe ports by writing
6470 to SR before using them.
6472 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6474 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6476 (check_sas): Get sas_adress info.
6478 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6480 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6483 2013-04-27 Leon Drugi <eyak>
6485 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6488 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6490 Core compression test.
6492 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6494 Implement grub_machine_get_bootlocation for ARC.
6496 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6498 Improve AHCI detection and command issuing.
6500 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6504 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6506 Make 'make check' work on emu.
6508 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6510 Replace libcurses with our own vt100 handling for the ease of testing
6511 and decreasing prerequisites.
6513 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6515 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6517 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6519 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6520 compile when not needed.
6522 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6524 * tests/pseries_test.in: New test.
6526 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6528 Add test to check that different boot mediums work.
6530 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6532 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6533 ofw limited ISO support.
6535 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6537 * configure.ac: Fix loongson conditional.
6539 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6543 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6545 Add serial on ARC platform.
6547 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6549 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6552 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6554 * tests/partmap_test.in: Add missing double semicolon.
6556 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6558 * util/grub-mkrescue.in: Fix loongson filename.
6560 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6562 * util/grub-mkrescue.in: Move all files that don't have a location
6563 set in stone under /boot/grub. Use ISO hard links rather than copies
6566 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6568 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6571 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6573 Make check work on mips-arc.
6575 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6577 * util/grub-mkrescue.in: Alias sashARCS as sash.
6579 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6581 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6584 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6586 * util/grub-install.in: Fix target fo qemu_mips.
6587 Fix extension on EFI.
6589 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6591 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6592 in front of chosen entry to mark it even if highlighting is lost.
6594 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6596 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6597 gfxpayload=keep if cbfb is active.
6599 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6601 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6603 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6605 Add missing video ids to coreboot and ieee1275 video.
6607 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6609 * util/grub-mkrescue.in: Add mips-arc support.
6611 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6613 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6615 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6617 Move mips-arc link address. Previous link address was chosen
6618 in belief that RAM on SGI platforms grows down while in fact it
6619 grows up from an unusual base.
6621 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6623 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6624 Fix a type which prevented CD-ROM and floppy boot.
6626 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6628 Support coreboot framebuffer.
6630 * grub-core/video/i386/coreboot/cbfb.c: New file.
6632 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6634 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6635 detecting too small regions.
6637 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6639 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6641 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6643 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6645 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6647 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6649 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6650 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6651 * grub-core/loader/powerpc/ieee1275/linux.c
6652 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6654 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6656 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6657 Look for /boot-rom as well as /rom/boot-rom.
6659 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6661 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6662 handling when creating text_layer failed.
6663 * grub-core/video/video.c (grub_video_create_render_target):
6664 Set result to 0 on error.
6665 (grub_video_delete_render_target): Do not dereference NULL.
6667 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6669 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6670 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6671 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6672 (grub_linux_load64): Mask out 2 high bits.
6674 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6676 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6679 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6681 Add support for pseries and other bootinfo machines to grub-mkrescue.
6683 Tested by: Paulo Flabiano Smorigo.
6685 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6687 * util/grub-mkrescue.in: Add GPT for EFI boot.
6689 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6691 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6692 It improves performance in qemu.
6694 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6696 * build-aux/snippet: Add missing gnulib files.
6698 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6700 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6702 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6704 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6706 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6707 2013-04-15 Peter Jones <pjones@redhat.com>
6709 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6711 Based on patch by Peter Jones.
6713 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6715 Fix DMRAID partition handling.
6717 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6719 * tests/grub_cmd_date.in: Skip on sparc64.
6721 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6723 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6724 firmware error messages.
6726 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6728 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6729 source and destination differ.
6731 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6733 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6736 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6738 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6739 match config-util.h to avoid warnings and increase compatibility.
6741 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6742 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6744 Add option to compress files on install/image creation.
6746 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6748 * docs/grub-dev.texi: Rearrange menu to match the section order.
6749 Reported by: Bryan Hundven.
6751 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6753 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6755 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6757 Move GRUB out of system area when using xorriso 1.2.9 or later.
6759 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6761 * tests/grub_cmd_date.in: Add missing exit 1.
6763 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6765 * tests/partmap_test.in: Skip on sparc64.
6767 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6769 Support grub-shell on sparc64.
6771 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6773 Support mkrescue on sparc64.
6775 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6777 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6778 Needed on OpenBIOS due to incomplete device tree.
6780 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6782 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6783 would be otherwise excluded.
6785 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6787 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6788 Inline name defines used only once.
6790 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6792 Fix memory leaks in ofnet.
6793 Reported by: Francesco Lavra.
6795 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6797 * docs/man/grub-glue-efi.h2m: Add missing file.
6799 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6801 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6803 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6805 Better support Apple Intel Macs on CD.
6807 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6809 Replace stpcpy with grub_stpcpy in tools.
6811 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6813 Handle Japanese special keys.
6814 Reported by: Hiroyuki YAMAMORI.
6815 Codes supplied by: Hiroyuki YAMAMORI.
6817 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6819 * util/grub-mkimage.c: Document memdisk implying --prefix.
6821 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6823 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6824 much we can do about it anyway.
6826 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6828 Fix handling of split transfers.
6830 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6832 * grub-core/net/http.c: Fix bad free.
6834 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6836 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6839 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6841 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6843 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6845 * tests/util/grub-shell.in: Fix it on powerpc.
6847 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6849 Turn off QEMU ACPI-way since new releases don't have shutdown port
6852 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6854 * docs/grub.texi: Update coreboot status info.
6856 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6858 * tests/grub_cmd_date.in: New test for datetime.
6860 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6862 * tests/partmap_test.in: Fix missing qemudisk setting.
6864 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6866 Support i386-ieee1275 grub-mkrescue and make check on it.
6868 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6870 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
6873 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6875 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
6876 GRUB_CMDLINE_XEN_DEFAULT.
6877 Reported by: Marc Warne (GigaTux) <gigatux>
6879 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6883 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6885 Use ACPI shutdown intests as traditional port was removed.
6887 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
6889 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
6892 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6894 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
6895 Fix few warining messages and leaks while on it.
6897 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
6899 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
6900 links under grub-core/lib/libgcrypt-grub/mpi.
6902 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6904 Fix ia64-efi image generation on big-endian machines. Deduplicate
6905 some code while on it.
6906 Reported by: Leif Lindholm.
6908 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6910 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
6913 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6915 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
6917 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
6919 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
6922 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6924 * grub-core/normal/term.c: Few more fixes for menu entry editor
6926 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6928 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6930 * grub-core/normal/term.c: Few more fixes for menu entry editor
6932 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6934 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6936 * conf/Makefile.extra-dist (EXTRA_DIST): Add
6937 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
6939 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6941 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
6942 instead of hardcoding grub.mo.
6944 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
6946 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
6948 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6950 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
6951 grub-core/disk/geli.c.
6953 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6955 * util/grub-mkfont.c: Prefer enum to #define.
6957 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6959 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
6961 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6963 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
6965 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6967 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
6969 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6971 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
6973 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6975 * include/grub/bsdlabel.h: Use enums.
6977 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6979 Move GRUB_CHAR_BIT to types.h.
6981 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6983 * docs/grub.texi: Document more user commands.
6985 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6987 * docs/grub.texi: Document menuentry --id option.
6989 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
6991 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
6993 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6995 Unify file copying setup across different install scripts. Add
6996 options for performing partial install.
6998 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6999 2013-04-04 Peter Jones <pjones@redhat.com>
7001 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7003 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7005 Use TSC as a possible time source on i386-ieee1275.
7007 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7009 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7012 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7014 * util/grub-setup.c (setup): Handle some corner cases.
7016 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7018 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7020 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7022 * grub-core/commands/verify.c: Save verified file to avoid it being
7023 tampered with after verification was done.
7025 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7027 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7028 reported width by one to compensate for curesor algorithm problem.
7030 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7032 Fix screen corruption in menu entry editor and simplify the code
7035 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7037 * util/grub-mount.c (fuse_init): Return error if fuse_main
7040 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7042 * include/grub/elf.h: Add missing ARM relocation codes and fix
7045 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7047 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7049 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7050 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7052 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7053 into account when calculating radius.
7055 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7057 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7059 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7061 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7063 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7065 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7066 missing closing bracket.
7068 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7070 * INSTALL: Mention xorriso requirement.
7072 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7074 * grub-core/commands/verify.c: Fix hash algorithms values for
7075 the first three hashes - they start with 1, not with 0.
7077 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7079 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7080 Try terminating EFI services several times due to quirks in some
7083 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7085 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7086 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7087 BankField extended opcodes.
7088 (get_sleep_type): Add minimal scope handling (just enough to
7089 handle setting the scope to the root path).
7090 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7091 * include/grub/acpi.h: Add enumeration values for Event, Device,
7092 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7094 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7096 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7099 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7101 * grub-core/disk/ahci.c: Give more time for AHCI request.
7103 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7105 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7108 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7110 Replace the region at 0 from coreboot tables to available in BSD
7113 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7115 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7118 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7120 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7123 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7125 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7126 handling of multi-device filesystems.
7128 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7130 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7133 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7135 Add new 'proc' filesystem framework and put luks_script into it.
7137 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7139 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7142 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7144 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7146 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7148 Add ability to generate newc additions on runtime.
7150 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7152 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7155 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7157 * po/POTFILES.in: Regenerate.
7159 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7161 * grub-core/commands/verify.c (hashes): Add several hashes
7164 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7166 Slight improve in USB-related boot-time checkpoints.
7168 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7170 * grub-core/commands/boottime.c: Fix copyright header.
7172 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7174 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7175 coreboot tables content. Support for cbmemc.
7177 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7179 Fix a conflict between ports structures with 2 controllers of
7182 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7184 * include/grub/boottime.h: Add missing file.
7186 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7188 Initialize USB ports in parallel to speed-up boot.
7190 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7192 Fix USB devices not being detected when requested
7193 due to delayed attach.
7195 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7197 Implement boot time analysis framework.
7199 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7201 Remove get_endpoint_descriptor and change all functions needing
7202 descriptor to just receive it as argument rather than endpoint
7205 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7207 Better estimate the maximum USB transfer size.
7209 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7211 Resend a packet if we got the wrong buffer in status.
7213 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7215 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7216 multiplication rather than division.
7218 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7220 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7223 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7225 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7226 operations to have intended shifts and not divisions.
7228 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7230 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7231 intended shifts rather than division.
7233 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7235 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7236 computation for some years before epoch. Avode confusing division
7239 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7241 * grub-core/video/i386/pc/vbe.c
7242 (grub_video_vbe_print_adapter_specific_info): Replace division by
7245 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7247 Adjust types in gdb module to have intended unsigned shifts rather than
7250 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7252 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7253 maximum size is 4G - 1 on hfs
7255 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7257 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7259 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7261 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7264 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7266 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7267 causing gcc error with gcc 4.7.1.
7269 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7271 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7272 dereference null pointer. While the code is technically correct, gcc
7273 may eliminate a null check if pointer is already dereferenced.
7275 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7277 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7279 * grub-core/normal/term.c (read_terminal_list): Likewise.
7281 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7283 Lift up core size limits on some platforms. Fix potential memory
7284 corruption with big core on small memory systems. Document remaining
7287 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7289 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7292 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7294 Remove all trampoline support. Add -Wtrampolines when
7295 present. Remove symbols used for trampolines to make
7296 link fail if trampolines are present.
7298 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7300 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7301 append out of its parent.
7303 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7305 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7308 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7310 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7311 all vars to a macro. All users updated.
7313 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7315 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7318 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7320 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7322 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7324 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7326 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7328 Move to more hookless approach in IEEE1275 devices handling.
7330 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7332 * grub-core/kern/term.c (grub_term_normal_color),
7333 (grub_term_highlight_color): Add back lost defaults.
7335 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7337 Make elfload not use hooks. Opt for flags and iterators instead.
7339 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7341 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7342 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7344 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7346 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7348 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7350 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7351 hook pass-through parameter. All users updated and unnested.
7353 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7355 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7358 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7360 * grub-core/fs/hfs.c: Remove nested functions.
7362 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7364 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7365 the context through.
7366 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7368 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7370 * util/grub-editenv.c (list_variables): Move print_var out of its
7373 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7375 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7378 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7380 * grub-core/gentrigtables.c: Make tables const.
7382 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7384 Remove nested functions from videoinfo iterators.
7386 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7388 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7389 for 64-bit platforms.
7391 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7393 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7394 a FOR_CHILDREN macro.
7396 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7398 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7399 platform from firmware path.
7401 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7403 Enable linux16 on non-BIOS systems for i.a. memtest.
7405 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7407 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7409 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7411 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7412 Fix end of table condition.
7414 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7416 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7419 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7421 * grub-core/fs/jfs.c: Remove nested functions.
7423 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7425 * grub-core/fs/minix.c: Remove nested functions.
7427 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7429 * grub-core/fs/iso9660.c: Remove nested functions.
7431 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7433 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7436 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7438 * util/grub-fstest.c: Remove nested functions.
7440 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7442 * grub-core/loader/machoXX.c: Remove nested functions.
7444 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7446 Remove nested functions from disk and file read hooks.
7448 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7449 (struct grub_disk): Add read_hook_data member.
7450 * include/grub/file.h (struct grub_file): Likewise.
7451 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7456 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7458 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7459 Fix off by one error in enumerating extended partitions.
7461 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7463 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7464 memory leak if device name is not found.
7466 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7468 * grub-core/normal/menu_entry.c (update_screen): remove
7469 unused variable `off' which caused scroll down arrow to be always shown.
7471 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7473 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7474 access to unallocated memory.
7476 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7478 * Makefile.util.def: Add partmap/msdos.c to common library.
7479 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7480 * grub-core/disk/ldm.c: Check for existence of
7481 GRUB_PC_PARTITION_TYPE_LDM.
7483 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7485 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7486 sizes and display sector size.
7488 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7490 Implement new command cmosdump.
7492 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7494 Support Openfirmware disks with non-512B sectors.
7496 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7498 * (grub_ofdisk_get_block_size): New function.
7499 * (grub_ofdisk_prepare): Use the correct block size.
7500 * (grub_ofdisk_read): Likewise.
7501 * (grub_ofdisk_write): Likewise.
7502 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7505 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7507 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7509 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7511 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7514 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7516 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7519 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7521 Implement USBDebug (full USB stack variant).
7523 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7525 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7526 unless they have unexpected values.
7528 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7530 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7533 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7535 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7536 zero-out of port structure.
7538 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7540 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7541 of extended attributes.
7543 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7545 * util/grub-install.in: change misleading comment about
7548 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7550 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7551 when menu highlight color isn't set.
7553 2013-01-27 C. Masloch <pushbx@38.de>
7555 Improve FreeDOS direct loading support compatibility.
7557 * include/grub/i386/relocator.h (grub_relocator16_state):
7559 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7561 (grub_relocator16_boot): Handle %ebp.
7562 * grub-core/lib/i386/relocator16.S: Likewise.
7563 * grub-core/loader/i386/pc/freedos.c:
7564 Load BPB to pass kernel which partition to load from.
7565 Check that kernel file is not too large.
7566 Set register dl to BIOS unit number as well.
7568 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7570 * util/grub-reboot.in (usage): Document the need for
7572 * util/grub-set-default.in (usage): Likewise.
7573 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7575 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7577 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7578 than defining WORDS_BIGENDIAN manually.
7580 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7582 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7585 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7587 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7589 (blit_comb: add_device_width): Likewise.
7591 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7593 Remove nested functions from USB iterators.
7595 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7596 (grub_usb_controller_iterate_hook_t): Likewise.
7597 (grub_usb_iterate): Add hook_data argument.
7598 (grub_usb_controller_iterate): Likewise.
7599 (struct grub_usb_controller_dev.iterate): Likewise.
7601 Update all implementations and callers.
7603 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7605 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7606 margin when not needed.
7608 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7610 Make color variables global instead of it being per-terminal.
7612 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7614 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7617 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7619 Fix powerpc and sparc64 build failures caused by un-nesting memory
7622 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7624 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7625 parameter declarations.
7627 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7629 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7631 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7633 Improve spkmomdem reliability by adding a separator between bytes.
7635 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7637 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7638 an Acer registration utility with several sightings in the wild.
7639 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7641 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7643 Remove nested functions from filesystem directory iterators.
7645 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7646 (struct grub_fs.dir): Add hook_data argument.
7648 Update all implementations and callers.
7650 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7652 * docs/grub.texi (Multi-boot manual config): Fix typo for
7655 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7657 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7658 until after its use in generate_image.
7660 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7662 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7663 initrd size to addr_min, since the initrd will be allocated after
7666 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7668 * conf/Makefile.common: Fix autogen rules to pass definition
7669 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7671 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7673 * include/grub/elf.h: Update ARM definitions based on binutils.
7675 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7677 Split long USB transfers into short ones.
7679 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7681 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7682 is interrupted by ESC.
7684 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7686 * util/grub-script-check.c (main): Uniform the error message.
7688 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7690 Remove nested functions from ELF iterators.
7692 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7694 Remove nested functions from device iterators.
7696 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7697 (grub_arc_iterate_devs): Add hook_data argument.
7698 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7699 (struct grub_ata_dev.iterate): Add hook_data argument.
7700 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7701 (grub_device_iterate): Add hook_data argument.
7702 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7703 (struct grub_disk_dev.iterate): Add hook_data argument.
7704 (grub_disk_dev_iterate): Likewise.
7705 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7707 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7709 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7711 (struct grub_partition_map.iterate): Add hook_data argument.
7712 (grub_partition_iterate): Likewise.
7713 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7714 (struct grub_scsi_dev.iterate): Add hook_data argument.
7718 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7720 Fix typos for "developer" and "development".
7722 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7724 Add license header to spkmodem-recv.c.
7726 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7728 Rewrite spkmodem to use PIT for timing. Double the speed.
7730 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7732 Add new command pcidump.
7734 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7736 New terminal outputs using serial: morse and spkmodem.
7738 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7740 Improve bidi handling in entry editor.
7742 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7744 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7745 argument to prevent name collision.
7747 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7749 Remove nested functions from script reading and parsing.
7751 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7752 getline_data argument, passed to getline.
7753 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7754 getline_data argument, passed to grub_parser_split_cmdline.
7755 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7756 lexerstate->getline_data to lexerstate->getline.
7757 (grub_script_lexer_init): Add getline_data argument, saved in
7758 lexerstate->getline_data.
7759 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7760 argument, passed to grub_script_parse.
7761 * grub-core/script/script.c (grub_script_parse): Add getline_data
7762 argument, passed to grub_script_lexer_init.
7763 * include/grub/parser.h (grub_parser_split_cmdline): Update
7764 prototype. Update all callers to pass appropriate getline data.
7765 (struct grub_parser.parse_line): Likewise.
7766 (grub_rescue_parse_line): Likewise.
7767 * include/grub/reader.h (grub_reader_getline_t): Add void *
7769 * include/grub/script_sh.h (struct grub_lexer_param): Add
7770 getline_data member.
7771 (grub_script_parse): Update prototype. Update all callers to pass
7772 appropriate getline data.
7773 (grub_script_lexer_init): Likewise.
7774 (grub_normal_parse_line): Likewise.
7776 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7778 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7779 static instead of nested. Rename to ...
7780 (grub_parser_execute_getline): ... this.
7781 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7783 * grub-core/normal/main.c (read_config_file: getline): Make static
7784 instead of nested. Rename to ...
7785 (read_config_file_getline): ... this.
7786 (grub_normal_read_line): Add unused data argument.
7787 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7788 getline): Make static instead of nested. Rename to ...
7789 (grub_script_execute_sourcecode_getline): ... this.
7790 * util/grub-script-check.c (main: get_config_line): Make static
7793 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7795 Remove nested functions from memory map iterators.
7797 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7798 argument, passed to hook.
7799 * grub-core/kern/i386/coreboot/mmap.c
7800 (grub_linuxbios_table_iterate): Likewise.
7801 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7803 (grub_machine_mmap_iterate): Add hook_data argument.
7804 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7805 Add hook_data argument, passed to hook.
7806 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7808 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7810 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7812 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7814 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7816 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7818 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7819 (grub_machine_mmap_iterate): Likewise.
7820 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7821 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7823 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7824 Remove NESTED_FUNC_ATTR from here and from all users.
7825 (grub_mmap_iterate): Update prototype.
7826 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7827 pass appropriate hook data.
7828 (grub_machine_mmap_iterate): Likewise.
7830 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7831 static instead of nested.
7832 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7834 (lsmmap_hook): ... this.
7835 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7837 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7838 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7839 heap_init): Likewise.
7840 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7842 (mmap_iterate_hook): ... this.
7843 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7845 * grub-core/lib/ieee1275/relocator.c
7846 (grub_relocator_firmware_get_max_events: count): Likewise.
7847 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7849 (grub_relocator_firmware_fill_events_iter): ... this.
7850 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7851 hook): Likewise. Rename to ...
7852 (grub_relocator_alloc_chunk_align_iter): ... this.
7853 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7855 (generate_e820_mmap_iter): ... this.
7856 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7858 (count_hook): ... this.
7859 (grub_linux_boot: hook): Likewise. Rename to ...
7860 (grub_linux_boot_mmap_find): ... this.
7861 (grub_linux_boot: hook_fill): Likewise. Rename to ...
7862 (grub_linux_boot_mmap_fill): ... this.
7863 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
7864 hook): Likewise. Rename to ...
7865 (grub_fill_multiboot_mmap_iter): ... this.
7866 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
7867 hook): Likewise. Rename to ...
7868 (count_hook): ... this.
7869 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
7870 hook): Likewise. Rename to ...
7871 (grub_fill_multiboot_mmap_iter): ... this.
7872 * grub-core/loader/powerpc/ieee1275/linux.c
7873 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
7874 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
7875 Likewise. Rename to ...
7876 (alloc_phys_choose): ... this.
7877 (determine_phys_base: get_physbase): Likewise.
7878 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
7879 find_hook): Likewise.
7880 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
7881 (malloc_hook: count_hook): Likewise.
7882 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
7883 Likewise. Rename to ...
7884 (lower_hook): ... this.
7885 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7886 (upper_hook): ... this.
7887 (grub_mmap_get_post64: hook): Likewise. Rename to ...
7888 (post64_hook): ... this.
7889 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
7890 Likewise. Rename to ...
7891 (lower_hook): ... this.
7892 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7893 (upper_hook): ... this.
7894 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
7895 (grub_mmap_iterate: fill_hook): Likewise.
7896 (fill_mask): Pass addr and mask within a single struct.
7897 (grub_cmd_badram: hook): Make static instead of nested. Rename
7899 (badram_iter): ... this.
7900 (grub_cmd_cutmem: hook): Likewise. Rename to ...
7901 (cutmem_iter): ... this.
7903 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7905 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
7906 delimit path in strings using quotes.
7907 * util/getroot.c (grub_guess_root_devices): Likewise.
7908 (grub_make_system_path_relative_to_its_root): Likewise.
7909 * util/grub-probe.c (probe): Likewise.
7910 * util/ieee1275/ofpath.c (find_obppath): Likewise.
7911 (xrealpath): Likewise.
7913 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7915 Fix compilation with older compilers.
7917 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
7918 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
7920 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
7921 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
7922 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
7924 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
7925 * include/grub/crypto.h: Add type defines.
7926 * util/import_gcrypth.sed: Remove duplicate type defines.
7928 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7930 New command list_trusted.
7932 * grub-core/commands/verify.c (grub_cmd_list): New function.
7934 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7936 * util/grub-mkimage.c (generate_image): Fix "size of public key"
7939 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7941 Remove nested functions from PCI iterators.
7943 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
7944 passed to hook. Update all callers to pass appropriate hook data.
7945 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
7946 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
7947 Remove NESTED_FUNC_ATTR from here and from all users.
7948 (grub_pci_iterate): Update prototype.
7949 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
7950 instead of nested. Rename to ...
7951 (grub_cs5536_find_iter): ... this.
7952 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
7953 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
7955 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
7957 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
7959 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
7961 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
7962 * grub-core/video/radeon_fuloong2e.c
7963 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
7964 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
7965 find_card): Likewise.
7966 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
7969 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7971 * grub-core/commands/verify.c: Mark messages for translating.
7973 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7975 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
7978 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7980 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
7983 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7985 * autogen.sh: Do not try to delete nonexistant files.
7986 * util/import_gcrypth.sed: Add some missing header removals.
7988 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
7990 Clean up dangling references to grub-setup.
7991 Fixes Ubuntu bug #1082045.
7993 * docs/grub.texi (Images): Refer generally to grub-install rather
7994 than directly to grub-setup.
7995 (Installing GRUB using grub-install): Remove direct reference to
7997 (Device map) Likewise.
7998 (Invoking grub-install): Likewise.
7999 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8000 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8001 * util/grub-install.in (usage): Likewise.
8003 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8004 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8006 * configure.ac: Remove grub_setup output variable.
8008 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8010 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8011 grub-setup to grub-sparc64-setup.
8013 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8015 Import gcrypt public-key cryptography and implement signature checking.
8017 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8019 * grub-core/fs/ntfs.c: Ue more appropriate types.
8020 * grub-core/fs/ntfscomp.c: Likewise.
8021 * include/grub/ntfs.h: Likewise.
8023 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8025 Support Apple FAT binaries on non-Apple platforms.
8027 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8028 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8030 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8033 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8035 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8038 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8040 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8041 explicitly zeroing elements.
8042 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8043 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8044 of elements in a structure already allocated using grub_zalloc.
8045 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8047 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8049 * docs/grub.texi (grub_cpu): New subsection.
8050 (grub_platform): Likewise.
8052 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8054 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8056 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8058 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8061 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8063 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8064 * grub-core/fs/ntfscomp.c: Likewise.
8065 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8066 (grub_ntfs_comp): Likewise.
8068 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8070 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8072 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8073 of groups_per_block. All users updated.
8075 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8077 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8078 grub_error properly.
8079 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8080 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8082 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8084 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8085 always in /boot/zfs.
8086 Reported by: Yuta Satoh.
8088 2013-01-03 Yuta Satoh <nigoro>
8090 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8093 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8095 * configure.ac: Extend -Wno-trampolines to host.
8097 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8099 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8102 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8104 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8105 (Invoking grub-script-check): Likewise.
8107 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8109 * docs/grub.texi (Invoking grub-mount): New section.
8110 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8112 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8114 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8115 test failures, so that a failing unit test correctly causes 'make
8118 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8120 Fix failing printf test.
8122 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8123 '$' in the correct order when collecting type information.
8125 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8127 * docs/grub.texi (configfile): Explain environment variable
8129 (source): New section.
8130 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8132 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8134 Remove several trivially-unnecessary uses of nested functions.
8136 * grub-core/commands/i386/pc/sendkey.c
8137 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8139 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8141 (legacy_file_getline): ... this.
8142 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8144 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8145 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8147 (probe_dummy_iter): ... this.
8148 * grub-core/kern/i386/coreboot/mmap.c
8149 (grub_linuxbios_table_iterate: check_signature): Likewise.
8150 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8151 check_varstate): Likewise. Mark inline.
8152 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8153 an additional parameter.
8154 (find_long: fnd_long): Likewise. Pass two additional parameters.
8155 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8156 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8157 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8158 Likewise. Rename to ...
8159 (grub_cmos_find_port_iter): ... this.
8160 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8162 (find_rtc_iter): ... this.
8164 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8165 function directly into the function body, since it is only called
8168 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8170 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8171 __attribute__ ((unused)).
8172 * grub-core/video/bochs.c (find_card): Likewise.
8173 * grub-core/video/cirrus.c (find_card): Likewise.
8174 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8175 * grub-core/video/sis315pro.c (find_card): Likewise.
8176 * grub-core/video/sm712.c (find_card): Likewise.
8178 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8180 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8181 Fixes Savannah bug #37821.
8183 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8185 Apply program name transformations at build-time rather than at
8186 run-time. Fixes Debian bug #696465.
8188 * acinclude.m4 (grub_TRANSFORM): New macro.
8189 * configure.ac: Create output variables with transformed names for
8191 * util/bash-completion.d/grub-completion.bash.in: Use
8192 pre-transformed variables for program names.
8193 * util/grub-install.in: Likewise.
8194 * util/grub-kbdcomp.in: Likewise.
8195 * util/grub-mkconfig.in: Likewise.
8196 * util/grub-mkconfig_lib.in: Likewise.
8197 * util/grub-mknetdir.in: Likewise.
8198 * util/grub-mkrescue.in: Likewise.
8199 * util/grub-mkstandalone.in: Likewise.
8200 * util/grub-reboot.in: Likewise.
8201 * util/grub-set-default.in: Likewise.
8202 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8203 * tests/util/grub-shell-tester.in: Remove unused assignment.
8204 * tests/util/grub-shell.in: Likewise.
8205 * util/grub.d/00_header.in: Likewise.
8207 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8209 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8211 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8213 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8215 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8217 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8218 Reported by: Eriks Latosheks <foresterlv>.
8220 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8222 * docs/grub.texi (Network): Update instructions on generating netboot
8225 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8227 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8228 around device name if necessarry.
8230 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8232 * util/grub-install.in: Follow the symbolic link parameter added
8233 to the file command.
8235 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8237 * util/grub-install.in: Remove stale TODO.
8239 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8241 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8242 dynamic allocation for the bootpath buffer.
8244 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8246 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8249 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8251 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8252 argument rather than font name. All users updated.
8253 (grub_gfxterm_set_window): Likewise.
8255 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8257 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8260 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8262 * util/getroot.c (convert_system_partition_to_system_disk): Support
8265 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8267 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8268 infinite loop on corrupted FS.
8270 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8272 Fix big-endian mtime.
8274 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8275 together sec and usec.
8276 (grub_ufs_dir): Use correct byteswapping for UFS time.
8278 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8280 Support big-endian UFS1.
8282 * Makefile.util.def (libgrubmods): Add ufs_be.c
8283 * grub-core/Makefile.core.def (ufs1_be): New module.
8284 * grub-core/fs/ufs_be.c: New file.
8285 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8288 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8290 * include/grub/types.h: Fix functionality unaffecting typo in
8291 GRUB_TARGET_WORDSIZE conditional macro.
8293 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8295 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8297 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8299 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8300 that /netbsd appears first (when it exists).
8302 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8304 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8305 Fixes Savannah bug #37558.
8307 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8309 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8310 description of extract_entries_configfile.
8312 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8314 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8316 (grub_cmd_linux): Likewise.
8317 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8318 preferred_lifetime. Update all users.
8320 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8322 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8323 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8325 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8327 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8328 errors from grub-probe to /dev/null, not stdout.
8330 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8332 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8335 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8337 * util/grub-install.in: Make the error message if $source_dir
8338 doesn't exist more useful.
8340 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8342 Fix grub-emu build on FreeBSD.
8344 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8345 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8347 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8348 implementation is currently Linux-specific.
8349 * util/getroot.c (exec_pipe): Define only on Linux or when either
8350 libzfs or libnvpair is unavailable.
8351 (find_root_devices_from_poolname): Remove unused path variable.
8353 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8355 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8356 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8357 should fit before end == 63.
8359 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8361 * util/grub-setup.c (write_rootdev): Remove unused core_img
8362 parameter. Update all callers.
8363 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8364 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8367 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8369 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8370 (grub_add_tab): New function.
8371 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8372 * util/grub.d/10_illumos.in: Likewise.
8373 * util/grub.d/10_kfreebsd.in: Likewise.
8374 * util/grub.d/10_linux.in: Likewise.
8375 * util/grub.d/10_netbsd.in: Likewise.
8376 * util/grub.d/10_windows.in: Likewise.
8377 * util/grub.d/10_xnu.in: Likewise.
8378 * util/grub.d/20_linux_xen.in: Likewise.
8379 * util/grub.d/30_os-prober.in: Likewise.
8381 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8383 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8384 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8385 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8386 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8387 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8389 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8390 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8392 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8394 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8396 Reported by: BURETTE, Bernard.
8398 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8400 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8403 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8405 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8406 IEEE1275 machines. Fixes powerpc-emu compilation.
8407 * include/grub/terminfo.h: Likewise.
8409 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8411 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8413 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8415 (efiemu_set_variable): Make vendor_guid a const pointer.
8417 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8419 Don't require grub-mkconfig_lib to generate manpages for programs.
8421 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8422 dependencies, don't add grub-mkconfig_lib.
8423 (program): Pass empty adddeps.
8424 (script): Pass grub-mkconfig_lib as adddeps.
8426 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8428 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8429 * util/getroot.c (grub_find_device): Likewise.
8430 (get_mdadm_uuid): Likewise.
8431 (grub_util_is_imsm): Likewise.
8432 (grub_util_pull_device): Likewise.
8433 * util/grub-probe.c (probe): Likewise.
8435 2012-09-10 Benoit Gschwind <gschwind>
8437 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8438 (devs): Add devpath_8.
8440 2012-09-08 Peter Jones <pjones@redhat.com>
8442 * grub-core/Makefile.core.def (efifwsetup): New module.
8443 * grub-core/commands/efi/efifwsetup.c: New file.
8444 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8445 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8447 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8449 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8451 * configure.ac: Add SuSe path.
8453 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8457 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8459 * util/import_gcry.py: Sort cipher_files, to make build system
8460 generation more deterministic.
8462 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8464 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8465 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8466 (grub_set_datetime): Likewise.
8468 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8470 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8473 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8475 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8477 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8479 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8481 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8483 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8484 required for checkouts from bzr, but it may be useful for users or
8485 distributors wishing to update translations against a tarball
8486 distribution, and it can be helpful for the tarball to be a superset
8489 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8491 * Makefile.am (EXTRA_DIST): Add
8492 grub-core/tests/boot/linux.init-mips.S,
8493 grub-core/tests/boot/linux.init-ppc.S, and
8494 grub-core/tests/boot/linux-ppc.cfg.
8496 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8498 * grub-core/mmap/mips/loongson: Remove empty directory.
8500 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8502 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8505 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8507 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8510 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8512 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8514 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8516 * po/POTFILES.in: Regenerated.
8518 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8520 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8521 (NetBSD): New subsection.
8523 2012-07-22 Ales Nesrsta <starous@volny.cz>
8525 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8526 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8528 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8530 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8531 * util/grub.d/10_hurd.in: Add missing quoting.
8532 * util/grub.d/10_illumos.in: Likewise.
8533 * util/grub.d/10_kfreebsd.in: Likewise.
8534 * util/grub.d/10_linux.in: Likewise.
8535 * util/grub.d/20_linux_xen.in: Likewise.
8537 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8539 New command `lsefi'.
8541 * grub-core/Makefile.core.def (lsefi): New module.
8542 * grub-core/commands/efi/lsefi.c: New file.
8543 * include/grub/efi/api.h: Add more GUIDs.
8545 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8547 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8548 (grub_bsd_elf32_hook): Likewise.
8549 (grub_bsd_elf64_size_hook): Likewise.
8550 (grub_bsd_elf64_hook): Likewise.
8551 (grub_bsd_load_elf): Likewise.
8553 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8555 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8556 if hash function is unavailable.
8557 (dec_stream_header): Likewise.
8559 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8561 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8564 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8566 Fix coreboot compilation.
8568 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8569 (grub_vga_text_init_real): ... this.
8570 (grub_vga_text_fini): Rename to ...
8571 (grub_vga_text_fini_real): ... this.
8573 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8575 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8577 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8579 * grub-core/lib/legacy_parse.c: Support clear and testload.
8581 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8583 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8585 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8587 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8589 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8591 * grub-core/net/tftp.c (ack): Fix endianness problem.
8592 (tftp_receive): Likewise.
8593 Reported by: Michael Davidsaver.
8595 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8597 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8599 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8601 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8602 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8603 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8605 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8607 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8609 Reported by: Stuart Hayes.
8611 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8613 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8615 * grub-core/Makefile.core.def (mda_text): New module.
8616 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8617 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8618 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8619 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8621 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8622 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8623 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8625 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8627 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8629 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8631 * grub-core/term/i386/vga_common.c: Removed.
8632 * include/grub/i386/vga_common.h: Likewise.
8633 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8634 (grub_vga_cr_bw_read): Likewise.
8635 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8636 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8637 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8638 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8639 grub_vga_cr_read/grub_vga_cr_write.
8640 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8642 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8644 * configure.ac: Bump version to 2.00.
8645 * grub-core/normal/main.c (features): Add feature_200_final.
8647 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8648 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8650 * NEWS: Fix unclarity and language mistakes.
8652 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8654 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8655 additional size to 3 pages.
8656 Reported by: Stuart Hayes.
8658 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8660 * NEWS: Add 2.00 entry.
8662 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8664 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8665 put explicit "/" for empty path.
8666 (wildcard_expand): Improve dprintf.
8668 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8670 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8671 it's equal to currnode. This can happen with "" symlink.
8673 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8675 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8676 echo shell command by printf command.
8678 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8680 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8681 the value returned by firmware is the maximal position, not diumension.
8682 (grub_terminfo_output_state): Use a more sane fallback.
8684 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8686 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8688 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8690 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8691 frequency to 150 MHz.
8693 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8697 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8699 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8701 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8703 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8705 Handle slash in HFS label.
8707 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8708 (grub_hfs_dir): Tanslate slash.
8709 (grub_hfs_label): Don't translate slash.
8711 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8713 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8714 network protocol listing since it introduces problematic dependency on
8717 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8719 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8721 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8723 Init video early on yeeloong to avoid being rebooted by watchdog.
8725 * grub-core/Makefile.am (gensm712): New target.
8726 (sm712_start.S): Likewise.
8727 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8728 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8729 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8731 * include/grub/vga.h: Move registry definitions to...
8732 * include/grub/vgaregs.h: ... here.
8734 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8736 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8739 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8741 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8742 platforms with firmware disk drivers in the core.
8744 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8746 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8747 informative verbose message.
8748 (read_lv): Handle 64-bit segment size.
8750 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8752 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8754 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8756 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8757 character but still remove trainling spaces.
8758 (grub_fat_label): Ignore archive flag.
8760 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8762 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8763 cast between linux_kernel_header and linux_kernel_params.
8765 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8767 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8769 (grub_raid6_recover_func_t): Likewise.
8770 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8771 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8773 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8775 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8777 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8781 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8782 [__NetBSD__]: Add explicit cast before bitshift.
8784 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8786 * configure.ac: Bump to 2.00~rc1.
8788 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8790 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8793 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8794 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8796 * docs/grub.texi: Fix search syntax.
8797 (Multi-boot manual config): Put msdos rather than GPT example.
8798 Grammar corrections.
8800 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8802 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8804 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8806 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8808 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8810 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8811 message on double free. Put the value of magic in case of mismatch.
8813 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8815 Speed-up video on yeeloong.
8817 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8819 (grub_video_sm712_video_fini): Unmap cached_ptr.
8820 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8821 (grub_video_sm712_set_active_render_target): Removed.
8822 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8823 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8826 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8828 Avoid flushing the same line multiple times on loongson.
8830 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8831 Step in 32 bytes and not 1 byte.
8832 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8835 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8837 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8840 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8842 Implement flow control for http.
8844 * grub-core/net/http.c (parse_line): Handle response 206.
8845 (http_receive): Stall if too many packets are in the queue.
8846 (http_establish): Fix range header.
8847 (http_seek): Fix double free.
8848 (http_close): Likewise.
8849 (http_packets_pulled): New function.
8850 (grub_http_protocol): Set http_seek
8851 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8852 (ack_real): Set window depending on i_stall.
8853 (grub_net_send_tcp_packet): Likewise.
8854 (grub_net_tcp_stall): New function.
8855 (grub_net_tcp_unstall): Likewise.
8856 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8857 (grub_net_tcp_unstall): Likewise.
8859 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8861 * grub-core/net/tftp.c: Decrease stall to 50 packets.
8863 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8865 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
8867 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8869 * tests/util/grub-shell.in: Fix a typo.
8871 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8873 Implement flow control for tftp.
8875 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
8876 packets but stop only if stop condition is satisfied.
8877 (grub_net_fs_read_real): Call packets_pulled after real read. Use
8878 `stall' instead of `eof' as stop condition.
8879 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
8880 (http_err): Likewise.
8881 * grub-core/net/tftp.c (ack): Replace the first argument with data
8883 (tftp_receive): Stall if too many packets are in wait queue.
8884 (tftp_packets_pulled): New function.
8885 (grub_tftp_protocol): Set packets_pulled.
8886 * include/grub/net.h (grub_net_packets): New field count.
8887 (grub_net_put_packet): Increment count.
8888 (grub_net_remove_packet): Likewise.
8889 (grub_net_app_protocol): New field `packets_pulled'.
8890 (grub_net): New field `stall'.
8892 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8894 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
8895 sync part to handle them.
8897 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8899 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
8900 * grub-core/net/drivers/ieee1275/ofnet.c
8901 (grub_ieee1275_net_config_real): Likewise.
8903 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8905 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
8906 the direct route for server/gateway.
8908 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8910 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
8911 IP address to server name since we may not hame the DNS.
8913 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8915 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
8916 freeing random buffer on failure.
8917 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
8919 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8921 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
8923 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8925 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
8927 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
8928 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
8929 Handle malloc error correctly.
8931 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8933 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
8936 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8938 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
8941 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8943 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
8944 none is explicitly specified.
8946 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8948 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
8951 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8953 Respect netmask from bootp/dhcp.
8955 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
8956 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
8957 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
8959 (grub_net_add_ipv4_local): ... this.
8960 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
8961 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
8962 (grub_net_add_ipv4_local): New proto.
8964 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8966 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
8967 determining EFI memory map size.
8969 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8971 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
8973 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8975 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
8976 when looking for partition separator.
8978 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8980 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8983 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8985 Restructure FAT driver to avoid hook in label reading as it hits a
8988 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
8989 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
8990 (grub_fat_iterate_dir): Split into ...
8991 (grub_fat_iterate_init): ... this, ...
8992 (grub_fat_iterate_fini): ... this, ...
8993 (grub_fat_iterate_dir_next): ... and this. All users updated.
8995 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8997 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
8998 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
8999 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9000 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9001 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9002 New fields last_key and last_key_time.
9003 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9004 extended key-esc into extended key-extended key.
9006 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9008 Avoid unnecessary memcpy of whole video buffer.
9010 * grub-core/video/fb/video_fb.c (dirty): New struct.
9011 (framebuffer): Add members current_dirty and previous_dirty.
9012 (dirty): New function.
9013 (grub_video_fb_fill_rect): Update dirty.
9014 (common_blitter): Likewise.
9015 (grub_video_fb_scroll): Likewise.
9016 (doublebuf_blit_update_screen): Copy only dirty part.
9017 (doublebuf_pageflipping_update_screen): Likewise.
9018 (grub_video_fb_doublebuf_blit_init): Init dirty.
9019 (doublebuf_pageflipping_init): Likewise.
9020 (grub_video_fb_setup): Likewise.
9022 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9024 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9027 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9029 Fix wildcard regexp dot and other special characters handling.
9030 Reported by: Robert Mabee.
9032 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9033 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9034 (split_path): Trigger expansion on '?'.
9035 (unescape): New function.
9036 (wildcard_expand): Unescape parts copied without globbing.
9037 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9038 (grub_script_arglist_to_argv): Don't unescape expansions.
9040 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9042 * include/grub/net.h (grub_net_card): New member txbufsize.
9043 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9044 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9045 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9046 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9048 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9049 compatible property to check for macs. Set
9050 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9051 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9052 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9053 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9054 (send_card_buffer): Use txbuf.
9055 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9056 nested function out of the parent while on it.
9058 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9060 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9062 (grub_ieee1275_net_config_real): Fix config pointer.
9064 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9066 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9067 filename parsing to non-block devices.
9069 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9071 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9073 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9075 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9078 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9080 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9081 UUID search command even if hints probing failed.
9083 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9085 * po/POTFILES.in: Regenerated.
9087 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9089 Speed-up video on fuloong.
9091 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9093 (grub_pci_device_unmap_range): Handle non-cached address.
9094 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9096 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9097 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9098 (grub_video_sis315pro_set_active_render_target): Removed.
9099 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9100 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9101 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9103 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9106 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9108 * docs/grub.texi (Multi-boot manual config): New section.
9110 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9112 Avoid slow read-back from VRAM.
9114 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9116 * grub-core/video/fb/video_fb.c
9117 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9118 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9119 (front_target): Remove front_target. Add pages.
9120 (grub_video_fb_init): Skip setting front_pages.
9121 (grub_video_fb_fini): Likewise.
9122 (doublebuf_blit_update_screen): Use pages.
9123 (grub_video_fb_doublebuf_blit_init): Likewise.
9124 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9125 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9126 (grub_video_fb_setup): Prefer doublebuffing.
9128 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9130 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9133 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9137 * tests/util/grub-shell.in: Handle loongson.
9138 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9140 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9141 Reboot instead of shutdown if REBOOT is defined.
9143 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9145 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9146 sized ports since unlike on real hardware qemu supports only 32-bit
9149 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9151 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9152 * util/grub-mkrescue.in: Handle loongson.
9154 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9156 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9157 Set is_part appropriately.
9158 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9159 names. Canonicalize partition without full disk.
9161 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9163 Revert usb-quiesce since it's wrong.
9165 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9166 (grub_ofdisk_init): Don't do quiesce.
9168 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9170 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9171 PowerMac workaround to Xserves as well.
9172 Information supplied by: Benjamin Herrenschmidt.
9174 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9176 Don't assume that beginning address is also the entry point on ppc.
9178 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9179 (grub_linux_boot): Use linux_entry.
9180 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9181 (grub_linux_load64): Likewise.
9183 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9185 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9187 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9189 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9190 needlessly lose the console.
9192 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9194 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9197 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9199 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9200 than current grub_get_rtc() not implemented when booted with
9201 coreboot without TSC.
9203 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9204 Add machine/time.h to kernel headers on loongson.
9205 * grub-core/Makefile.core.def (kernel): Remove
9206 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9207 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9208 (grub_get_rtc): Likewise.
9209 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9210 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9211 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9212 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9213 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9214 rather than installing known non-working time source.
9215 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9216 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9217 * include/grub/time.h: Don't include machine/time.h.
9218 * include/grub/efi/time.h: Removed.
9219 * include/grub/i386/efi/time.h: Likewise.
9220 * include/grub/i386/ieee1275/time.h: Likewise.
9221 * include/grub/powerpc/ieee1275/time.h: Likewise.
9222 * include/grub/sparc64/ieee1275/time.h: Likewise.
9223 * include/grub/x86_64/efi/time.h: Likewise.
9225 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9227 Remove dot on i and j when combining with above diacritics.
9229 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9231 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9232 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9233 with dotless variants when any combining above is present.
9235 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9237 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9238 text and not binary.
9240 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9242 Stop polling as soon as we have the packet we were waiting for.
9244 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9246 * grub-core/net/arp.c (have_pending): New var.
9247 (pending_req): Likewise.
9248 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9250 (grub_net_arp_receive): Set have_pending.
9251 * grub-core/net/dns.c (recv_data): New field stop.
9252 (recv_hook): Set stop.
9253 (grub_net_dns_lookup): Init stop and use as stop condition.
9254 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9256 * grub-core/net/net.c (grub_net_poll_cards): New argument
9257 stop_condition. Stop when it goes true.
9258 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9260 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9262 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9264 Keep TX and RX buffers on EFI rather than always allocate new ones.
9266 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9267 card. All users updated.
9268 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9269 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9270 (get_card_packet): Likewise.
9271 (grub_efinet_findcards): Init new fields.
9273 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9275 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9276 compilation error on sparc64.
9278 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9280 Use ITC on IA64 rather than broken routine based on daytime.
9282 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9284 (grub_get_rtc) [__ia64__]: Likewise.
9285 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9286 (get_itc): New function.
9287 (grub_rtc_get_time_ms): Likewise.
9288 (grub_machine_init): Calibrate ITC.
9289 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9290 Keep only on non-ia64. Don't export since it's broken and used only
9291 if TSC is unavailable.
9293 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9295 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9297 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9298 Skip if parent is unused.
9300 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9302 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9304 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9306 Fix wildcard escaping.
9308 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9309 * grub-core/script/execute.c (wildcard_escape): .. to here.
9311 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9312 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9314 * grub-core/script/execute.c (gettext_append): Always escape.
9315 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9316 * grub-core/script/yylex.l: Don't cut away the escaping.
9317 * tests/grub_script_echo1.in: Add tests with wildcard.
9319 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9321 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9322 (ftdi_hw_configure): Likewise.
9323 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9325 (real_config): Handle 1.5 stop bits.
9326 (pl2303_hw_configure): Likewise.
9328 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9330 * Makefile.am: Add ppc linux bootcheck.
9331 * grub-core/tests/boot/linux-ppc.cfg: New file.
9332 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9334 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9336 * tests/grub_script_expansion.in: Skip network protocols.
9338 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9340 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9342 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9344 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9348 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9350 ESCC serial driver for conducting sautomated tests in qemu.
9351 Not tested on real hardware.
9353 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9354 * grub-core/term/ieee1275/escc.c: New file.
9355 * grub-core/Makefile.core.def (escc): New module.
9357 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9359 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9361 (serial_hw_fetch): Don't read invalid handle.
9362 (serial_hw_put): Don't write into invalid handle.
9364 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9366 Add a 1.5 stop bits value.
9368 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9369 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9370 GRUB_SERIAL_STOP_BITS_1_5.
9372 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9374 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9375 value rather than let it uninited.
9377 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9379 * grub-core/commands/wildcard.c (+check_file): New function.
9380 (wildcard_expand): Don't expand to non-existing files, expand with
9381 suffix and not attempt to expand if not needed.
9383 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9385 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9386 out of partitions containing other partitions.
9388 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9390 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9391 on some qemu versions with GRUB.
9393 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9395 (grub_openbsd_bootarg_pcibios): New struct.
9396 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9399 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9401 * tests/util/grub-shell.in: Trim firmware output on EFI.
9403 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9405 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9406 and coreboot since it's already in kernel.
9408 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9410 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9411 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9412 to here. New return value start. All users updated.
9413 Recursively scan linear mappings.
9414 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9416 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9417 Use grub_util_get_dm_node_linear_info.
9418 * util/getroot.c (convert_system_partition_to_system_disk): Use
9419 grub_util_info rather than grub_dprintf.
9420 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9422 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9424 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9426 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9427 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9429 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9431 * include/grub/types.h (grub_set_unaligned64): New function.
9432 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9435 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9437 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9438 (grub_ofdisk_fini): Quiesce USB devices.
9440 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9442 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9445 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9447 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9449 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9451 * grub-core/disk/pata.c (grub_pata_pio_read)
9452 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9453 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9455 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9457 Extend automated tests to qemu-mips.
9459 * Makefile.am: reorganise tests and enable qemu-mips.
9460 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9461 * grub-core/tests/boot/linux.init-mips.S: New file.
9462 * tests/partmap_test.in: Handle ata0 disks.
9463 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9466 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9468 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9470 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9473 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9475 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9476 (grub_halt): Likewise.
9477 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9479 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9481 * grub-core/term/serial.c (grub_serial_register)
9482 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9483 the behaviour in line with x86 platforms.
9485 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9487 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9488 (grub_ata_strncpy): Likewise.
9489 (grub_ata_identify): Add missing byteswaps.
9491 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9493 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9495 (screen_read_char): Likewise.
9496 (grub_vga_text_cls): Likewise.
9498 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9500 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9502 (make_file_path): Likewise.
9504 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9506 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9508 Tested by: Paulo Flabiano Smorigo.
9509 Crucial information about API supplied by: Coleen <Last name unknown>.
9510 Reviewed by: Coleen <Last name unknown>.
9512 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9514 * util/grub-mkimage.c: Disable -Wcast-align.
9516 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9518 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9521 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9523 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9525 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9527 * util/grub-probe.c (escape_of_path): Fix double free.
9529 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9531 * grub-core/commands/videoinfo.c (hook): Show pitch.
9533 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9535 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9537 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9539 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9540 (probe): Add ieee1275 to OFW devices.
9542 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9544 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9546 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9548 Handle IBM OFW path.
9550 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9552 (of_path_of_scsi): Handle vdevice.
9554 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9556 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9557 Allocate in multiples of 16 to avoid adding a few bytes free region the
9560 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9562 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9563 Allocate in multiples of 16 to avoid adding a few bytes free region the
9565 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9567 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9569 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9571 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9572 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9574 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9576 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9578 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9580 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9581 resulted in \\ at the end of the line.
9583 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9585 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9586 (grub_parser_cmdline_state): Likewise.
9587 (grub_parser_split_cmdline): Likewise.
9589 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9591 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9592 /dev/root and /dev/dm-*.
9594 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9596 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9597 fix partially stale display.
9599 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9601 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9604 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9606 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9607 Fix MBR remapping workaround.
9608 (grub_util_biosdisk_read) [__linux__]: Likewise.
9610 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9612 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9614 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9616 * configure.ac: Bump to beta6.
9618 2012-05-31 Christer Weinigel <christer@weinigel.se>
9620 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9622 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9624 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9625 (grub_cmd_linux): Likewise.
9627 2012-05-31 Christer Weinigel <christer@weinigel.se>
9631 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9632 (GRUB_EHCI_MULT_TWO): Likewise.
9633 (GRUB_EHCI_MULT_THREE): Likewise.
9634 (GRUB_EHCI_CMASK_MASK): New enum value.
9635 (GRUB_EHCI_SMASK_MASK): Likewise.
9636 (GRUB_EHCI_CMASK_OFF): Likewise.
9637 (GRUB_EHCI_SMASK_OFF): Likewise.
9638 (grub_ehci_pci_iter): Enable periodic schedule.
9639 (grub_ehci_parse_notrun): Likewise.
9640 (grub_ehci_restore_hw): Likewise.
9641 (grub_ehci_setup_qh): Set flags for low speed transfers.
9642 (grub_ehci_find_qh): Use periodic list for low speed.
9643 (grub_ehci_setup_transfer): Check periodic queue as well.
9644 (grub_ehci_check_transfer): Likewise.
9645 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9647 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9649 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9652 2012-05-31 Peter Jones <pjones@redhat.com>
9654 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9655 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9656 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9658 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9660 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9661 uninited variable. Allocate at least setup_sects.
9663 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9665 Fix handling of EFI with big memory maps.
9667 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9668 (real_mode_mem): Likewise.
9669 (real_mode_target): Likewise.
9670 (real_mode_pages): Likewise.
9671 (prot_mode_pages): Likewise.
9672 (linux_params): New var.
9673 (linux_cmdline): Likewise.
9674 (free_pages): Don't set real mode variables.
9675 (allocate_pages): Don't allocate real mode memory.
9676 (grub_e820_add_region): Remove the limit.
9677 (grub_linux_boot): Allocate and copy real mode memory.
9678 (grub_linux_unload): Free linux_cmdline.
9679 (grub_cmd_linux): Use temporary storage for parameters.
9680 (grub_cmd_initrd): Likewise.
9681 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9682 (linux_kernel_params): Make it 1K big.
9684 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9686 * Makefile.util.def: Remove -Wno-format.
9687 * grub-core/Makefile.core.def: Likewise.
9689 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9691 * tests/cmp_unit_test.c: Add missing failure message.
9692 * tests/example_unit_test.c: Likewise.
9693 * tests/printf_unit_test.c: Likewise.
9695 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9697 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9698 relaxation of protective MBR requirements.
9700 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9702 * configure.ac: Add condition for COND_HOST_XNU.
9703 * Makefile.util.def (10_xnu): New script.
9704 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9706 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9708 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9711 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9713 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9714 Binary on other platforms stays identical.
9716 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9718 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9721 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9723 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9725 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9727 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9728 rather than defining size_t ourselves to avoid conflict.
9730 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9732 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9733 initialisation to avoid __bzero reference.
9735 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9737 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9739 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9740 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9741 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9742 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9743 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9745 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9747 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9748 * grub-core/kern/misc.c: Likewise.
9749 * grub-core/loader/i386/xnu.c: Likewise.
9750 * include/grub/i386/tsc.h: Likewise.
9751 * include/grub/symbol.h: Likewise.
9753 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9755 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9756 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9759 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9761 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9762 Implement Apple flavour.
9763 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9765 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9767 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9768 (memmove) [__APPLE__]: Likewise.
9769 (memcpy) [__APPLE__]: Likewise.
9770 (memset) [__APPLE__]: Likewise.
9771 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9772 (memmove) [__APPLE__]: Likewise.
9773 (memcpy) [__APPLE__]: Likewise.
9774 (memset) [__APPLE__]: Likewise.
9776 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9778 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9781 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9783 * grub-core/normal/main.c (read_config_file): Provide config_file and
9785 * util/grub.d/41_custom.in: Use config_directoy when available.
9787 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9789 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9790 (grub_bfs_dir): Likewise.
9792 2012-05-27 Peter Jones <pjones@redhat.com>
9794 The old code gives arguments to a printf function which can't work
9795 correctly, and the compiler complains.
9797 * grub-core/tests/example_functional_test.c (example_test): Add
9799 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9800 * include/grub/test.h (grub_test_assert_helper): New declaration.
9801 (grub_test_assert): Use grub_test_assert_helper.
9803 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9805 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9806 (exfctest): ... this to avoid overlong filenames.
9809 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9811 Handle "." and ".." on squashfs.
9813 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9814 Make inode numbers into stack.
9815 (grub_squash_read_symlink): Use stack.
9816 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9817 (make_root_node): Fill stack.
9818 (grub_squash_open): Use stack.
9820 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9822 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9825 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9827 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9828 stderr on test calls.
9830 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9832 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9834 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9836 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9838 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9840 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9843 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9845 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9846 (grub_hfsplus_iterate_dir): Add "." and "..".
9848 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9850 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9851 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9853 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9855 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9856 (find_path): Handle "." and "..".
9858 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9860 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9861 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
9862 (grub_affs_iterate_dir): Handle hardlinks.
9864 2012-05-26 Matthew Garrett <mjg@redhat.com>
9866 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
9867 (grub_efi_console_fini): Likewise.
9868 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
9869 (grub_video_gop_fill_mode_info): Rename to ...
9870 (grub_video_gop_fill_real_mode_info): ... this.
9871 (grub_video_gop_fill_mode_info): New function.
9872 (grub_video_gop_setup): Setup double framebuffer.
9873 (grub_video_gop_get_info_and_fini): Use original framebuffer.
9875 (grub_video_gop_swap_buffers): Copy framebuffer.
9876 (grub_video_gop_fini): Free offscreen buffer.
9877 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
9879 (grub_efi_gop_blt_pixel): New struct.
9881 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9883 * gentpl.py: Remove error disabling for objconv.
9885 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9887 * configure.ac: Remove -Wunitialized as it's not available on older
9890 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9892 Fix extent overflow comparator.
9894 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
9895 (grub_hfsplus_read_block): Set type.
9896 (grub_hfsplus_cmp_extkey): Compare type.
9898 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
9900 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
9902 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9904 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
9907 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9909 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
9910 (dejavu_bold_14.pf2): New target.
9912 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9914 * configure.ac: Fix djvu font detection.
9916 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9918 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
9919 ext* instead of ext2.
9921 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9923 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
9926 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
9928 * docs/grub-dev.texi: Remove dot from .png.
9930 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9932 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
9933 protective entry in any slot.
9934 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
9935 if protective entry is found in any slot.
9937 Protective entry in non-first slot make no sense but is a widespread
9940 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9942 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
9944 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9946 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
9948 (grub_reiserfs_open): Don't free root.
9950 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9952 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
9953 after freeing for safety.
9955 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9957 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
9958 Reported by: Jordan Uggla.
9960 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
9962 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
9963 actual implementation. Specifically, clarify that the grub menu will
9964 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
9967 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
9969 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
9972 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9974 Remove unjustified hard dependency of normal.mod on gfxterm.
9976 * include/grub/term.h (grub_term_output): New member fullscreen.
9977 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
9978 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
9979 (grub_gfxterm): Set .fullscreen.
9980 * grub-core/normal/menu.c (menu_init): Use fullscreen.
9981 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
9983 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9985 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
9986 mentioning possible problems with non-ASCII (non-compliant) ISOs.
9987 Mention case-insensitive AFFS, SFS and JFS.
9989 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9991 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
9993 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9995 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
9998 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10000 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10001 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10003 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10005 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10006 (grub_jfs_mount): Fill caseins.
10007 (grub_jfs_find_file): Respect caseins.
10009 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10011 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10014 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10016 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10017 New argument origpath. All users updated.
10019 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10021 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10022 (read_attr): Ensure that we read start of possibly compressed block.
10024 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10026 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10027 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10030 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10032 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10033 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10034 (dejavu.pf2): Replace with ...
10035 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10038 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10040 * util/grub.d/20_linux_xen.in: Add missing line.
10042 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10044 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10045 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10046 (grub_utf16_to_utf8): Likewise.
10048 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10050 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10051 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10052 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10053 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10054 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10055 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10057 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10059 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10062 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10064 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10065 (grub_udf_read_symlink): Handle read_string failure.
10067 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10069 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10072 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10074 Fix handling of UDF symlinks.
10076 * grub-core/fs/udf.c (read_string): New argument outbuf.
10078 (grub_ufs_read_symlink): Rename to ...
10079 (grub_udf_read_symlink): ... this. All users updated.
10080 Handle symlinks with more than one component.
10082 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10084 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10085 symlinks. Replace leading colon with a slash.
10087 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10089 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10092 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10094 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10095 match in inner node.
10097 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10099 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10100 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10101 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10102 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10103 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10104 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10105 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10106 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10107 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10109 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10111 Use grub-probe and not cmp to check that disk is empty.
10113 * util/grub-install.in: Use grub-probe for zero-check.
10114 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10115 (probe): Handle PRINT_ZERO_CHECK.
10116 (argp_parser): Handle -t zero_check.
10118 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10120 Flush block cache on adding disk to device map.
10122 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10123 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10125 (read_device_map): Likewise.
10126 (open_device): Flush on opening.
10128 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10130 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10131 (handle_symlink): Fix off-by-one error.
10132 Canonicalize the target.
10133 (grub_cpio_dir): Canonicalize the name.
10136 (grub_cpio_open): Canonicalize the name.
10138 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10140 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10143 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10145 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10146 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10148 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10150 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10151 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10154 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10156 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10159 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10161 Fix UFS1 big file support.
10163 * grub-core/fs/ufs.c (INODE): Removed.
10164 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10166 (INODE_MODE): Simplify.
10167 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10168 (grub_ufs_lookup_symlink): Don't use INODE.
10170 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10172 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10174 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10175 (grub_minix_data): Replace log_block_size with block_size.
10176 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10177 (grub_minix_mount): Fill block_size.
10179 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10181 * configure.ac: Bump to beta5.
10183 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10185 Fix wrapped HFS+ handling.
10187 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10188 blocks_start. All users updated.
10189 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10191 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10193 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10195 Fix long symlinks on reiserfs.
10197 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10198 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10199 (grub_reiserfs_iterate_dir): Save size for non-directories.
10200 (grub_reiserfs_open): Don't reread stat block as we already know the
10202 (grub_reiserfs_read): Split into...
10203 (grub_reiserfs_read_real): ... and ...
10204 (grub_reiserfs_read): ...this.
10206 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10208 Fix non-indexed JFS.
10210 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10211 (grub_jfs_data): New field namecomponentlen.
10212 (grub_jfs_mount): Fill namecomponentlen.
10213 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10215 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10217 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10218 * tests/grub_script_echo1.in: Add tests.
10220 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10222 * util/grub-install.in: Ignore empty devicetree directory.
10224 2012-05-08 Bean <bean123ch@gmail.com>
10226 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10228 (free_rsm): Free header as well.
10229 (free_old_fragments): Fix memory leak.
10230 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10231 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10232 (destroy_pq): Likewise.
10233 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10235 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10237 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10238 resulting hash as a precaution.
10240 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10242 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10243 '_' in variable names.
10244 * grub-core/net/net.c (grub_net_network_level_interface_register):
10247 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10249 Fix AFFS with non-512B blocks.
10251 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10252 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10253 (grub_affs_data): Replace blocksize with log_blocksize.
10254 (grub_affs_read_block): Fix non-512B blocks.
10255 (grub_affs_read_symlink): Likewise.
10256 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10257 (grub_affs_read): Fix non-512B blocks.
10258 (grub_affs_label): Likewise.
10259 (grub_affs_mtime): Likewise.
10260 (grub_affs_mount): Fix block detection routine.
10262 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10264 Add filesystem mtime to AFFS.
10266 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10267 (aftime2ctime): New function.
10268 (grub_affs_dir): Use aftime2ctime.
10269 (grub_affs_label): Fix return value.
10270 (grub_affs_mtime): New function.
10271 (grub_affs_fs): Add mtime.
10273 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10275 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10278 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10280 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10283 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10285 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10287 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10289 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10291 (FLAGS_CASE_SENSITIVE): New enum value.
10292 (cache_entry): New struct.
10293 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10294 cache_size and cache.
10295 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10296 Add log_blocksize and fshelp_flags.
10297 (grub_sfs_read_extent): Handle non-512 blocks.
10298 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10299 (grub_sfs_read_file): Handle non-512 blocks.
10300 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10302 (grub_sfs_read_symlink): Handle non-512 blocks.
10303 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10304 (grub_sfs_dir): Free cache.
10305 (grub_sfs_close): Likewise.
10307 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10309 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10312 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10314 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10316 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10318 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10320 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10322 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10323 (grub_sfs_read_extent): Likewise.
10324 (grub_sfs_read_block): Likewise.
10325 (grub_sfs_mount): Likewise.
10326 (grub_sfs_iterate_dir): Likewise.
10327 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10328 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10330 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10332 Fix errors on compressed NTFS with 512B clusters.
10334 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10336 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10338 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10339 Relax check for inline extents.
10340 (ntfscomp): Return correct -1 on error and not 0.
10342 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10344 * util/grub-install.in: Fix handling of prefix containing spaces.
10346 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10348 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10349 (grub_squash_read_data): Fix offset byte-swapping.
10351 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10353 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10354 per common usage and preffered in several parts of code.
10355 (grub_memcmp): Likewise.
10356 (grub_strncmp): Likewise.
10357 * include/grub/misc.h (grub_strcasecmp): Likewise.
10358 (grub_strncasecmp): Likewise.
10359 * Makefile.util.def (cmp_test): New test.
10360 (grub_script_strcmp): Likewise.
10361 * tests/cmp_unit_test.c: New file.
10362 * tests/grub_script_strcmp.in: Likewise.
10363 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10365 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10367 * include/grub/pci.h: Move enums into no-asm part.
10369 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10371 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10373 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10375 * util/getroot.c (find_hurd_root_device): Try to make error message
10376 and comments to translators clearer.
10378 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10380 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10382 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10384 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10387 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10389 * docs/grub.cfg: Update.
10391 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10393 * docs/grub.texi (PXE): Remove not present variables.
10395 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10397 * grub-core/net/net.c (defserver_set_env): New function.
10398 (defserver_get_env): Likewise.
10399 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10401 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10403 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10406 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10408 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10409 * grub-core/kern/emu/hostdisk.c: Likewise.
10411 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10413 Handle hurd userspace partitions.
10415 * util/getroot.c (find_hurd_root_device): New function.
10416 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10418 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10420 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10422 Reported by: Bastian Blank.
10424 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10426 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10427 crossing page boundary.
10429 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10431 Fix B-tree search in BFS, especially in presence of non-ASCII
10434 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10435 (find_in_b_tree): Use standard bsearch + btree algorithm.
10437 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10439 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10442 2012-05-03 Matthew Garrett <mjg@redhat.com>
10443 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10445 Suspend broadcom cards in order to stop their DMA.
10447 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10448 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10449 (pci): Don't build on x86 EFI.
10450 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10451 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10453 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10454 stop_broadcom if running on EFI.
10455 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10456 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10457 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10458 (grub_pci_find_capability): New proto.
10460 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10462 * docs/grub.texi: Remove dot from the extension as it apparently
10463 doesn't work with some makeinfo versions.
10465 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10467 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10468 with GRUB expectance.
10470 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10472 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10474 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10476 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10477 zero after directory block since last entry may be not 0-terminated if
10478 it ends on block boundary. Use continue instead of if spanning whole
10481 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10483 Support 4K sectors UDF inline files.
10485 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10486 (grub_udf_extended_file_entry): Likewise.
10487 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10489 (get_fshelp_size): New function.
10490 (grub_udf_read_icb): Read whole block.
10491 (grub_udf_iterate_dir): Likewise.
10492 (grub_udf_dir): Likewise.
10493 (grub_udf_open): Likewise.
10495 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10497 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10499 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10501 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10502 inline symlinks in addition to workaround.
10504 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10506 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10508 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10510 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10512 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10514 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10516 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10518 Fix reiserfs big seek times.
10520 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10521 exact. All users updated.
10522 (grub_reiserfs_read): Use nearest btree search for seeking.
10523 Fix return value on error.
10525 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10527 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10529 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10530 * docs/grub.texi: Update menuentry description.
10532 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10534 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10535 crash when embedding onto filesystem.
10537 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10539 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10542 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10544 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10546 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10548 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10551 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10552 2012-05-01 Bean <bean123ch@gmail.com>
10554 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10556 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10558 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10559 Special behaviour for len = 0 to read whole file isn't used anywhere and
10560 can cause buffer ovewrflows in several places.
10562 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10564 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10566 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10568 Handle RAIDZ on non-512B sectors.
10570 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10571 max_children_ashift.
10572 (fill_vdev_info_real): Fill max_children_ashift.
10573 (read_device): Use max_children_ashift.
10575 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10577 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10579 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10581 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10583 * docs/grub.texi: Update device.map parts.
10585 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10587 Don't scan into non-diskfilter devices having diskfilter names.
10589 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10590 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10592 (scan_disk_hook): New function.
10594 2012-04-29 Bean <bean123ch@gmail.com>
10596 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10599 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10601 * configure.ac: Detect starfield theme font path
10602 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10604 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10606 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10607 geometry on serial consoles.
10609 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10611 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10612 because of network consoles.
10614 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10616 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10619 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10621 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10622 falls on Q syndrom.
10624 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10626 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10627 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10629 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10631 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10632 Allocate at lest 8192 for temporary buffer as required for lzo.
10634 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10636 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10637 to cluster_bits, since it's already added in.
10638 (grub_fat_read_data): Likewise.
10640 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10642 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10643 as long as cluster size is multiple of 512 bytes.
10645 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10647 * util/grub-mkrescue.in: Fix locale directory.
10649 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10651 * grub-core/kern/emu/hostdisk.c (map): Make static.
10653 2012-04-23 Bean <bean123ch@gmail.com>
10655 * util/grub-fstest.c (fstest): Add missing break.
10657 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10661 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10662 not define nr variable.
10663 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10664 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10665 grub_find_device): Do not define.
10667 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10669 Fix kfreebsd compile and behaviour.
10671 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10673 * util/getroot.c: Fix wait.h include.
10674 (grub_guess_root_devices): Error if grub_find_device fails.
10675 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10676 (grub_util_get_dev_abstraction): Likewise.
10677 (grub_util_pull_device): Likewise.
10678 (grub_util_get_grub_dev): Likewise.
10679 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10681 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10683 Fix and unify wholedisk detection.
10685 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10686 is_part. All users updated.
10687 (device_is_wholedisk): Removed.
10688 (grub_util_biosdisk_get_grub_dev): Use is_part.
10690 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10692 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10695 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10697 * configure.ac: Bump to beta4.
10699 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10701 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10702 --fs-uuid --set UUID syntax.
10704 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10706 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10709 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10711 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10713 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10715 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10717 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10719 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10721 2012-04-18 Bean <bean123ch@gmail.com>
10723 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10726 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10728 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10730 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10731 corresponding to GRUB partitions.
10732 (grub_util_biosdisk_write): Likewise.
10734 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10736 Scan mdraid before LVM.
10738 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10739 (grub_diskfilter_register_front): ... this.
10740 (grub_diskfilter_register_back): New function.
10741 All users of grub_diskfilter_register updated.
10743 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10745 * util/grub-install.in: Fix an automatic target detection bug.
10747 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10749 * util/grub-install.in: New option --efi-directory.
10751 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10753 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10754 boot services if we have no other choice.
10756 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10758 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10760 * tests/util/grub-shell.in: Update to --directory.
10762 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10764 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10766 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10768 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10769 (grub_minix_read_file): Likewise.
10770 (grub_minix_read_inode): Likewise.
10771 (grub_minix_find_file): Likewise.
10772 (grub_minix_dir): Likewise.
10774 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10776 * util/grub-setup.c (setup): Fix partition handling and blocklist
10779 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10781 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10782 redundant buggy overlap check.
10784 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10786 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10789 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10791 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10792 kh.loadflags on pre-2.00 kernels.
10794 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10796 Terminate UNDI and PXE before launching the payload to avoid problems
10799 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10800 (grub_loader_flags): ... this. All users updated.
10801 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10802 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10803 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10804 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10806 (grub_pxe_restore): Likewise.
10807 (fini_hnd): New var.
10808 (GRUB_MOD_INIT): Register shutdown hook.
10809 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10810 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10811 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10812 (grub_loader_set): Rename second argument to flags.
10814 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10816 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10818 (grub_get_num_of_utf8_bytes): New function.
10819 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10820 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10822 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10823 (grub_ucs4_to_utf8): Change return type.
10825 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10827 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10829 * grub-core/fs/bfs.c (hop_level): Likewise.
10830 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10832 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10834 * grub-core/lib/adler32.c: Recode due to license unclearness.
10836 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10838 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10839 (test_header): Likewise.
10841 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10843 Fix --help formatting.
10845 * util/grub-mkconfig_lib.in (print_option_help): New function.
10846 (grub_fmt): Likewise.
10847 * util/grub-install.in: Use print_option_help and grub_fmt.
10848 * util/grub-kbdcomp.in: Likewise.
10849 * util/grub-mkconfig.in: Likewise.
10850 * util/grub-mknetdir.in: Likewise.
10851 * util/grub-mkrescue.in: Likewise.
10852 * util/grub-mkstandalone.in: Likewise.
10853 * util/grub-reboot.in: Likewise.
10854 * util/grub-set-default.in: Likewise.
10855 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10857 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10859 * linguas.sh: Remove autogenerated *.po.
10861 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10863 * po/README: Move language fetcing to ...
10864 * linguas.sh: ... here.
10865 * po/README: Point to linguas.sh.
10867 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10869 * po/README: Exclude ko.po due to disclaimer problems.
10871 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10873 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
10875 (grub_gettext_translate_real): Handle 0th string.
10876 (grub_gettext_translate): Ensure that "" isn't translated.
10878 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10880 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
10881 TRANSLATORS comment.
10882 (grub_diskfilter_print_partmap): Propagate changing of error into
10885 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10887 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
10888 to uint64_t to prevent overflow.
10889 (grub_diskfilter_lv): Increase start_extent and extent_count
10890 to uint64_t to prevent overflow.
10892 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10894 * configure.ac: Increase version.
10896 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10898 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
10900 * po/Rules-translit: New file.
10901 * po/arabic.sed: Likewise.
10902 * po/cyrillic.sed: Likewise.
10903 * po/greek.sed: Likewise.
10904 * po/hebrew.sed: Likewise.
10905 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
10906 * po/Makefile.in.in: Add extra_dist4.
10908 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10910 Handle big-endian minixfs (fixes minixfs tests on bigendian).
10912 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
10913 modify names. Introduce MODE_BIGENDIAN.
10914 * grub-core/fs/minix_be.c: New file.
10915 * grub-core/fs/minix2_be.c: Likewise
10916 * grub-core/fs/minix3_be.c: Likewise.
10917 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
10919 * grub-core/Makefile.core.def (minix_be): New module.
10920 (minix2_be): Likewise.
10921 (minix3_be): Likewise.
10923 2012-04-01 Felix <email@hamburg.de>
10925 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
10926 (devs): Add MBP 2011.
10928 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10930 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
10932 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10934 * grub-core/normal/cmdline.c (print_completion): New field
10936 (grub_cmdline_get): Handle width properly.
10938 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10940 * grub-core/commands/lsacpi.c (options): Add missing terminator.
10942 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10944 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
10945 after 29th of February.
10947 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10949 Fix exfat endianness handling.
10951 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
10952 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
10953 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
10954 Byte-swap utf16 when necessary.
10955 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
10957 2012-03-31 Anton Blanchard <anton@samba.org>
10958 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10960 Fix btrfs endianness handling.
10962 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
10963 (lower_bound): Make root uint64_t. Use root in le.
10964 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
10965 (find_path): Fix template key init.
10966 (grub_btrfs_dir): Fix mtime byteswap.
10967 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
10969 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10971 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
10972 recursion_depth. Break infinite resursions. All users updated.
10974 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10976 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
10978 Reported by: Peter Jones.
10980 2012-03-31 Anton Blanchard <anton@samba.org>
10982 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
10985 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10987 * util/grub-install.in: Fix nvram call for PreP.
10989 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10991 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
10992 the error when some elements are missing into a warning.
10994 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10996 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
10998 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11000 * docs/grub.texi (Invoking grub-probe): New section.
11001 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11003 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11005 Fix tab and wide character handling in editor and menu.
11007 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11008 agglomerate control characters with combining marks.
11009 (bidi_line_wrap): Allow break on tab.
11010 (grub_unicode_get_comb_start): New function.
11011 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11013 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11015 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11016 fixed_tab_size. All users updated.
11017 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11018 (grub_term_getcharwidth): Handle \t.
11019 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11022 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11024 Handle big-endian mdraid.
11026 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11027 * grub-core/Makefile.core.def (mdraid09_be): New module.
11028 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11029 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11030 * grub-core/disk/mdraid_linux_be.c: New file.
11032 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11034 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11036 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11038 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11039 missing quotes which caused confusion among translators.
11041 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11043 * util/grub-mkconfig_lib.in: Fix typo.
11045 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11047 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11049 * tests/grub_script_leading_whitespace.in: New file.
11050 * Makefile.util.def (grub_script_leading_whitespace): New test.
11052 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11054 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11057 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11059 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11060 starts with control character.
11062 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11064 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11066 (grub_gdb_outbuf): Likewise.
11068 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11070 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11071 zero terminator. Fixes a crash.
11073 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11075 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11077 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11078 images independently of preffered adderss field.
11080 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11082 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11083 * grub-core/commands/regexp.c: Likewise.
11084 * grub-core/loader/i386/linux.c: Likewise.
11085 * grub-core/partmap/msdos.c: Likewise.
11086 * grub-core/script/execute.c: Likewise.
11087 * grub-core/term/gfxterm.c: Likewise.
11089 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11091 Add variable parsing in $"..." and fix several mismatches with bash.
11093 * Makefile.util.def (grub_script_gettext): New test.
11094 * grub-core/script/execute.c (parse_string): New function.
11095 (gettext_append): Likewise.
11096 (grub_script_arglist_to_argv): Use gettext_append.
11097 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11098 * tests/grub_script_gettext.in: New file.
11100 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11102 Fix handling of leading spaces in scripts.
11104 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11106 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11107 other than skipping \r. All users updated.
11108 * tests/grub_script_echo1.in: Add space-related tests.
11109 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11111 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11113 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11115 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11117 * configure.ac: Bump up the version to beta2.
11119 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11121 Fix gettext reload bugs (e.g. inability to disable gettext
11124 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11125 main_context and secondary_context. All functions updated.
11126 (grub_gettext_translate): Rename to ...
11127 (grub_gettext_translate_real): ... this. Return NULL on failed
11129 (grub_gettext_translate): Handle secondary context.
11130 (grub_gettext_delete_list): Close file and zero-out the context.
11131 (grub_mofile_open): Don't call grub_gettext_delete_list.
11133 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11134 if locale="" to avoid pointless error message.
11135 (grub_gettext_env_write_lang): Update lang even if load fails.
11136 Handle secondary context.
11137 (grub_gettext_reread_prefix): New function.
11138 (read_main): Likewise.
11139 (read_secondary): Likewise.
11140 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11141 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11142 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11143 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11145 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11147 * configure.ac: Decrease warning level to avoid spurious warnings and
11148 to be able to compile with GCC 4.2.
11149 * Makefile.util.def: Remove -Wno-error=logical-op.
11151 2012-03-10 William Bittner <william.bittner@gmail.com>
11153 * util/import_unicode.py: Add missing brackets around string for
11156 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11158 Fix efi chainloader on network root.
11160 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11162 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11165 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11167 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11168 unused show_text member.
11169 * docs/grub.texi: Document "text" property.
11171 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11173 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11176 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11178 Fix IMSM handling on Fedora.
11180 * util/getroot.c (grub_util_is_imsm): New function.
11181 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11183 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11185 * Makefile.am: Strip gold section.
11186 * conf/Makefile.common: Likewise.
11187 * gentpl.py: Likewise.
11188 * grub-core/Makefile.core.def: Likewise.
11189 * grub-core/genmod.sh.in: Likewise.
11191 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11193 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11194 * util/grub.d/20_linux_xen.in: Likewise.
11195 Based on Debian patch.
11197 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11199 * util/grub.d/10_linux.in: Fix syntax error resulting in
11200 Richard Laager's patch.
11201 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11203 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11205 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11208 2012-03-10 Richard Laager <rlaager@wiktel.com>
11210 * util/grub.d/10_linux.in: Fix ZFS root passing.
11212 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11214 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11215 * grub-core/commands/xnu_uuid.c: Likewise.
11216 * grub-core/loader/efi/appleloader.c: Likewise.
11217 * grub-core/script/execute.c: Likewise.
11218 * grub-core/script/main.c: Likewise.
11219 * util/grub-mkfont.c: Likewise.
11221 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11223 * util/grub-mkfont.c (options): Use more appropriate "select" that
11224 "set" for face index.
11226 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11228 * util/grub-editenv.c (options): Gettextize command summaries.
11230 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11232 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11233 "out of memory" error messagge.
11235 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11237 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11238 of diskfilter for diskfilter on diskfilter support.
11240 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11242 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11244 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11246 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11249 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11251 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11253 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11255 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11257 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11259 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11262 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11264 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11266 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11268 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11270 * util/grub-install.in: Fix and gettextize error message.
11272 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11274 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11276 * util/grub-mount.c (options): Likewise.
11278 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11280 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11282 * grub-core/commands/search_wrap.c (options): Likewise.
11284 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11286 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11288 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11290 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11292 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11295 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11297 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11298 "temporary" since it's used in identifier and is limited in space.
11300 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11302 * po/POTFILES.in: Regenerate. Include *.h since they contain
11303 translatable strings as well.
11305 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11307 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11308 byte-swap on big-endian.
11309 Reported by: Lennart Sorensen
11311 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11313 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11314 (allocate_pages): Improve dprintf.
11315 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11316 code32_start. Fill code32_start and kernel_alignment in params.
11317 (grub_cmd_initrd): Use prot_init_space.
11319 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11321 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11323 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11325 * util/grub-install.in: Add missing dot at the end of sentence.
11327 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11329 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11330 * grub-core/commands/videotest.c: Likewise.
11331 * grub-core/loader/i386/linux.c: Likewise.
11333 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11335 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11337 Reported by: Milo Casagrande.
11339 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11341 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11342 * grub-core/commands/gptsync.c: Likewise.
11343 * grub-core/commands/hashsum.c: Likewise.
11344 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11345 * grub-core/commands/legacycfg.c: Likewise.
11346 * grub-core/io/gzio.c: Likewise.
11347 * grub-core/net/net.c: Likewise.
11348 * grub-core/term/gfxterm.c: Likewise.
11349 * grub-core/term/terminfo.c: Likewise.
11350 * grub-core/tests/test_blockarg.c: Likewise.
11351 * grub-core/video/video.c: Likewise.
11352 * util/grub-install.in: Likewise.
11353 * util/grub-mkfont.c: Likewise.
11355 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11357 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11359 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11361 * grub-core/commands/search_wrap.c (options): Fix a typo.
11362 Reported by: David Prévot.
11364 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11366 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11369 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11371 * util/grub-script-check.c (main): Fix a syntax error message which was
11374 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11376 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11378 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11380 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11383 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11385 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11387 * util/grub-mount.c (options): Likewise.
11389 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11391 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11393 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11395 * grub-core/net/http.c: Add TRANSLATORS comments.
11396 * grub-core/normal/cmdline.c: Likewise.
11397 * grub-core/normal/misc.c: Likewise.
11398 * grub-core/partmap/msdos.c: Likewise.
11399 * grub-core/parttool/msdospart.c: Likewise.
11400 * grub-core/script/execute.c: Likewise.
11401 * grub-core/script/main.c: Likewise.
11402 * grub-core/term/terminfo.c: Likewise.
11403 * grub-core/video/bitmap.c: Likewise.
11404 * util/grub-install.in: Likewise.
11405 * util/grub-mkimage.c: Likewise.
11406 * util/grub-mklayout.c: Likewise.
11407 * util/grub-setup.c: Likewise.
11409 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11411 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11412 with similar messages in grub-fstest.
11414 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11416 * util/grub-install.in: Unify "option requires an argument" message
11417 with similar messages in other files.
11418 * util/grub-mkconfig.in: Likewise.
11420 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11422 * util/grub-set-default.in: Replace printf with gettext_printf (the
11423 string in in question is already translated from grub-reboot)
11425 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11427 * configure.ac: Bump up the version to beta1.
11429 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11431 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11432 case when min_align = 0.
11434 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11436 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11437 and fix a case when line_start overflows.
11439 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11441 * util/grub-reboot.in (usage): Mention id posibility.
11442 * util/grub-set-default.in (usage): Likewise.
11444 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11446 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11447 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11448 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11449 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11450 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11451 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11452 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11454 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11456 * grub-core/commands/menuentry.c (options): Remove
11457 GRUB_ARG_OPTION_REPEATABLE.
11458 Reported by: Andreas Vogel
11460 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11462 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11464 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11466 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11469 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11471 Use sort -V by the idea of Georgi Georgiev.
11473 * util/grub-mkconfig_lib.in (version_sort): New function.
11474 (version_test_numeric): Use version_sort.
11476 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11478 Use submenus in grub-mkconfig.
11480 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11481 * util/grub-mkconfig_lib.in (grub_quote): New function.
11482 (gettext_printf): Use gettext and not gettext_quoted to fix several
11484 * util/grub.d/10_hurd.in: Use submenus.
11485 * util/grub.d/10_kfreebsd.in: Likewise.
11486 * util/grub.d/10_linux.in: Likewise.
11487 * util/grub.d/10_netbsd.in: Likewise.
11488 * util/grub.d/20_linux_xen.in: Likewise.
11489 * util/grub.d/30_os-prober.in: Likewise.
11490 * util/grub.d/10_illumos.in: Add missing quoting.
11491 * util/grub.d/10_windows.in: Likewise.
11493 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11495 Fix menu title instability bug.
11497 * grub-core/commands/menuentry.c (options): New option --id.
11498 (grub_normal_add_menu_entry): New argument id. All users updated.
11499 (grub_cmd_menuentry): Handle --id.
11500 (grub_menu_init): Accept unknown arguments.
11501 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11502 feature_menuentry_options.
11503 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11505 (get_entry_number): Match with id as well.
11506 * include/grub/menu.h (grub_menu_entry): New member id.
11507 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11508 * util/grub.d/00_header.in: Define menuentry_id_option.
11509 * util/grub.d/10_hurd.in: Define id.
11510 * util/grub.d/10_illumos.in: Likewise.
11511 * util/grub.d/10_kfreebsd.in: Likewise.
11512 * util/grub.d/10_linux.in: Likewise.
11513 * util/grub.d/10_netbsd.in: Likewise.
11514 * util/grub.d/10_windows.in: Likewise.
11515 * util/grub.d/20_linux_xen.in: Likewise.
11516 * util/grub.d/30_os-prober.in: Likewise.
11518 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11520 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11521 "scope" with "body".
11523 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11525 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11526 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11527 prot_size and prot_file_size.
11529 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11531 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11532 All users updated. If easily=1 require raid-5/-6 to be full.
11533 (is_node_readable): Likewise.
11534 (scan_devices): Scan incomplete but readable LVs at the end.
11535 (grub_diskfilter_memberlist): Pull missing devices.
11536 (insert_array): Skip scanning until device is complete or scan is
11538 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11540 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11541 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11543 2012-03-03 Matthew Garrett <mjg@redhat.com>
11544 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11546 Avoid EFI boot services when loading Linux.
11548 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11549 avoid_efi_bootservices. All users updated.
11550 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11551 argument avoid_efi_bootservices. All users updated.
11552 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11553 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11554 align, min_align, relocatable, prefered_address. All users updated.
11555 Allocate avoiding boot services if kernel is relocatable.
11556 (grub_cmd_linux): Check if kernel is relocatable.
11557 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11558 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11559 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11560 avoid_efi_boot_services.
11561 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11562 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11563 (linux_kernel_params): Likewise.
11565 2012-03-03 Matthew Garrett <mjg@redhat.com>
11566 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11570 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11572 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11573 modes. Set gop_handle.
11574 (grub_video_gop_get_edid): New function.
11575 (grub_gop_get_preferred_mode): Likewise.
11576 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11577 (grub_video_efi_gop_adapter): Set .get_edid.
11578 * include/grub/efi/edid.h: New file.
11579 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11581 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11583 * util/grub-install.in: Load efivars unconditionally.
11585 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11587 * po/Rules-piglatin: Change suffix from .po-update-en to
11588 .po-update-en-piglatin.
11590 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11594 * po/piglatin.sed: New file.
11595 * po/en@piglatin.header: Likewise.
11596 * po/Rules-piglatin: Likewise.
11597 * po/README: Add en@piglatin to autogenerated languages.
11599 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11601 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11603 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11604 "Check" since we don't check anything.
11605 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11607 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11608 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11609 (grub_md_sha512_real): Likewise.
11611 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11613 * grub-core/commands/gptsync.c: Fix typographic quoting.
11614 * grub-core/commands/ieee1275/suspend.c: Likewise.
11615 * grub-core/commands/parttool.c: Likewise.
11616 * grub-core/commands/search_wrap.c: Likewise.
11617 * grub-core/commands/videoinfo.c: Likewise.
11618 * grub-core/gfxmenu/gui_label.c: Likewise.
11619 * grub-core/hello/hello.c: Likewise.
11620 * grub-core/kern/emu/main.c: Likewise.
11621 * grub-core/net/net.c: Likewise.
11622 * grub-core/normal/menu.c: Likewise.
11623 * grub-core/normal/menu_text.c: Likewise.
11624 * grub-core/normal/misc.c: Likewise.
11625 * util/grub-editenv.c: Likewise.
11626 * util/grub-install.in: Likewise.
11627 * util/grub-kbdcomp.in: Likewise.
11628 * util/grub-mkconfig.in: Likewise.
11629 * util/grub-mknetdir.in: Likewise.
11630 * util/grub-mkrescue.in: Likewise.
11631 * util/grub-mkstandalone.in: Likewise.
11632 * util/grub-reboot.in: Likewise.
11633 * util/grub-set-default.in: Likewise.
11634 * util/grub-setup.c: Likewise.
11635 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11637 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11639 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11640 * grub-core/commands/keystatus.c: Likewise.
11641 * grub-core/commands/loadenv.c: Likewise.
11642 * grub-core/commands/probe.c: Likewise.
11643 * grub-core/commands/regexp.c: Likewise.
11644 * grub-core/commands/true.c: Likewise.
11645 * grub-core/commands/videoinfo.c: Likewise.
11646 * grub-core/disk/cryptodisk.c: Likewise.
11647 * grub-core/disk/ldm.c: Likewise.
11648 * grub-core/disk/loopback.c: Likewise.
11649 * grub-core/disk/luks.c: Likewise.
11650 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11651 * grub-core/kern/disk.c: Likewise.
11652 * grub-core/kern/emu/hostdisk.c: Likewise.
11654 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11656 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11657 * util/grub-install.in: Add missing quote in the comment.
11659 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11661 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11662 * grub-core/commands/lsmmap.c: Likewise.
11663 * grub-core/commands/minicmd.c: Likewise.
11664 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11665 * grub-core/commands/regexp.c: Likewise.
11666 * grub-core/gdb/gdb.c: Likewise.
11667 * grub-core/term/gfxterm.c: Likewise.
11668 * util/grub-mkconfig.in: Likewise.
11669 * util/grub-mkfont.c: Likewise.
11670 * util/grub-mklayout.c: Likewise.
11671 * util/grub-mknetdir.in: Likewise.
11672 * util/grub-mkrescue.in: Likewise.
11673 * util/grub.d/30_os-prober.in: Likewise.
11675 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11677 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11678 with "Direct color" and "Packed" with "Packed pixel".
11679 (grub_cmd_videoinfo): Simplify legend.
11681 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11683 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11684 absolutely unclear error message.
11686 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11688 * util/grub-mkstandalone.in: Remove confusing leftover print.
11690 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11692 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11694 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11695 (GRUB_MOD_INIT): Likewise.
11696 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11698 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11700 * util/grub-install.in (usage): Likewise.
11701 Spell ID in whole letters.
11702 Add missing ending dot.
11704 * util/grub-reboot.in: Fix capitalisation.
11705 * util/grub-set-default.in: Likewise.
11707 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11709 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11710 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11711 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11712 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11713 Disable -Werror for -Wdeprecated-declarations.
11714 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11715 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11716 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11717 (grub_util_get_grub_dev): Make luks handling dependent on
11718 HAVE_DEVICE_MAPPER and not __linux__.
11719 (get_win32_path): Fix format security.
11720 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11721 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11722 Don't try grub_find_zpool_from_dir.
11723 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11724 #ifdef-out paresdir.
11726 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11728 * util/grub-pe2elf.c (usage): Add missing noreturn.
11729 (write_section_data): Rename name to shname to avoid shadowing.
11730 (write_symbol_table): Rename name to symname to avoid shadowing.
11731 Fix write_reloc_section call.
11733 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11735 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11736 to ensure that it's after the last byte of .text.
11738 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11740 * util/ieee1275/ofpath.c (my_isdigit): New function.
11741 (trailing_digits): Use my_isdigit.
11742 (strip_trailing_digits): Likewise.
11744 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11746 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11747 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11749 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11751 * grub-core/kern/i386/pc/startup.S: Define __start.
11753 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11755 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11756 strip already transforms he format.
11758 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11760 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11762 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11764 * util/grub-install.in: Add missing gettext init.
11765 * util/grub-kbdcomp.in: Likewise.
11766 * util/grub-mkconfig.in: Likewise.
11767 * util/grub-mknetdir.in: Likewise.
11768 * util/grub-mkrescue.in: Likewise.
11769 * util/grub-mkstandalone.in: Likewise.
11770 * util/grub-reboot.in: Likewise.
11771 * util/grub-set-default.in: Likewise.
11772 * util/grub.d/00_header.in: Likewise.
11773 * util/grub.d/10_hurd.in: Likewise.
11774 * util/grub.d/10_windows.in: Likewise.
11775 * util/grub.d/30_os-prober.in: Likewise.
11776 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11778 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11780 * po/Rules-swiss: Fix header comment.
11782 2012-02-29 Andreas Vogel <anvoit>
11784 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11785 resulted in leak of arguments.
11787 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11789 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11790 reed_solomon_size const definition instead of computing it since
11791 Apple assembler doesn't support the later.
11793 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11795 * gentpl.py (kernel): Rewrite Apple part.
11797 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11799 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11801 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11803 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11805 (load_image): Likewise.
11807 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11809 * configure.ac: Fix a typo in previous commit.
11811 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11813 Don't add -Wl,-N on Apple platform.
11815 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11816 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11818 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11820 * grub-core/Makefile.core.def (lzma_decompress): Use
11821 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11823 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11825 * grub-core/genmod.sh.in: Rewrite the Apple part.
11827 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11829 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11832 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11834 * acinclude.m4 (grub_CHECK_PIC): New test.
11835 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11837 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11839 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11840 to avoid the warning.
11842 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11844 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11845 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11846 after. All users updated.
11848 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11850 Use the common size routine in hostfs so we can read disks as well.
11852 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11853 (grub_util_get_fd_size): ... this. Return size in bytes.
11855 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11856 grub_util_get_fd_size.
11858 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11860 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11861 Add blocksize retrieval.
11863 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11865 * configure.ac: Restore CFLAGS after efiemu check.
11867 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11869 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
11872 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11874 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
11876 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11878 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
11879 (grub_cmd_halt): Likewise.
11881 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11883 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
11884 for local arithmetics.
11885 Break %sp init into 2 instructions.
11886 Add 0 byte at the end.
11888 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11890 * grub-core/disk/diskfilter.c (read_segment): Initialise err
11893 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11895 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
11898 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11900 * grub-core/disk/ldm.c (make_vg): Init part.name.
11901 (grub_ldm_detect): Silence spurious warning.
11902 (grub_util_is_ldm): Likewise.
11904 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11906 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
11907 sane value to avoid a spurious warning.
11909 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11911 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
11912 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
11914 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11916 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
11917 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
11919 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11921 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
11922 hardcoding the relevant info.
11924 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11926 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
11927 missing const qualifiers.
11928 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
11930 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11932 * util/getroot.c [__APPLE__]: Add missing includes.
11933 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
11935 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11937 * util/grub-mkimage.c (generate_image): Silence spurious warning.
11939 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11941 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
11944 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11946 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
11948 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11950 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
11951 and grub_file_close call.
11953 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11955 Add LZSS Mach-O support (needed for new xnu kernelcache).
11957 * grub-core/Makefile.core.def (xnu): Add file lzss.c
11958 * grub-core/loader/lzss.c: New file.
11959 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
11960 on Mach-O open failure.
11961 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
11962 Don't free cmdsXX in uncompressedXX is set.
11963 (grub_macho_file): Init new fields.
11964 New argument is_64bit. All users updated.
11965 Handle compressed. Error out if no suitable architecture is found.
11967 (grub_macho_open): New argument is_64bit. All users updated.
11968 * grub-core/loader/macho32.c: Add defines for new fields.
11969 * grub-core/loader/macho64.c: Likewise.
11970 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
11971 (grub_macho_parse): Handle compressed.
11972 Defer actual processing if compressed.
11973 (grub_macho_cmds_iterate): Decompress if compressed. New argument
11974 "filename". All users updated.
11975 (grub_macho_size): New argument "filename". All users updated.
11976 (grub_macho_get_entry_point): Likewise.
11977 (grub_macho_load): Handle compressed.
11978 * include/grub/macho.h (grub_macho_lzss_header): New struct.
11979 (GRUB_MACHO_LZSS_OFFSET): New define.
11980 (grub_decompress_lzss): New proto.
11981 * include/grub/machoload.h (grub_macho_file): New fields to handle
11983 (grub_macho_contains_macho64): Remove proto.
11984 (grub_macho_contains_macho32): Likewise.
11985 * util/grub.d/30_os-prober.in: Use kernel cache if available.
11987 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11989 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
11991 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11995 * Makefile.am (starfield_theme_files): New var.
11996 (starfield_DATA): Use starfield_theme_files.
11997 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
11998 Add bootcheck-related files.
11999 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12000 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12001 and font_char_metrics.txt.
12002 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12003 (setjmp): Add lib/ia64/longjmp.S.
12004 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12005 * po/POTFILES.in: Regenerate.
12006 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12007 DISTFILES.common.extra1.
12008 * util/devicemap.c: Removed.
12009 * grub-core/lib/i386/relocator_backward.S: Likewise.
12010 * util/import_gcry.py: Remove unused files. Add extra_dist for
12013 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12015 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12016 grub_gettext_delete_list before changing grub_gettext_max to avoid
12017 running out of array bounds.
12019 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12021 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12022 grub_vga_text_init/grub_vga_text_fini.
12024 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12026 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12028 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12030 * configure.ac: Bump to 2.00~beta0.
12032 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12034 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12035 missing initialisation.
12037 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12039 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12041 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12043 Support v2 xnu boot arguments.
12045 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12046 New argument fsbfreq_out.
12047 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12048 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12050 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12052 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12053 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12054 (grub_xnu_boot_params): Rename to ...
12055 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12056 (grub_xnu_boot_params_v2): New struct.
12058 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12060 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12061 zeroing of CRC field before computing CRC.
12063 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12065 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12066 Change order of allocations to decrease fragmentation.
12068 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12070 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12072 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12074 Use write-combining MTRR to speed up video with buggy BIOSes.
12076 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12077 (cpuid): New define.
12080 (mtrr_base): Likewise.
12081 (mtrr_mask): Likewise.
12082 (grub_vbe_enable_mtrr_entry): New function.
12083 (grub_vbe_enable_mtrr): Likewise.
12084 (grub_vbe_disable_mtrr): Likewise.
12085 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12086 control off to BIOS.
12087 (grub_video_vbe_init): Fill mtrr.
12088 (grub_video_vbe_fini): Disable mtrr.
12089 (grub_video_vbe_get_info_and_fini): Likewise.
12090 (grub_video_vbe_setup): Enable mtrr.
12092 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12094 * include/grub/partition.h (grub_partition_map): Change prototype of
12095 embed to take a maximum value for nsectors.
12096 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12097 * include/grub/fs.h (grub_fs): Likewise.
12098 * grub-core/partmap/msdos.c (embed_signatures): New array.
12099 (pc_partition_map_embed): Check for and avoid sectors matching any
12100 of the signatures in embed_signatures, up to max_nsectors.
12101 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12102 returned sector map to max_nsectors.
12103 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12104 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12105 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12106 * util/grub-setup.c (setup): Allow for the embedding area being
12107 split into multiple blocklists. Tell dest_partmap->embed the
12108 maximum number of sectors we care about.
12110 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12112 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12113 Specify blocklist_install and reserver_first_sector for all fs.
12114 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12117 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12119 * util/grub-install.in: Clarify strings.
12120 Fix source dir check.
12122 2012-02-27 Richard Laager <rlaager@wiktel.com>
12124 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12125 "zfs" and "fuse.zfs" as synonyms.
12127 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12129 * configure.ac: Put platform and target_cpu substitutions back since
12130 they are used for directories.
12132 2012-02-27 Richard Laager <rlaager@wiktel.com>
12133 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12135 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12136 * util/grub.d/20_linux_xen.in: Likewise.
12138 2012-02-27 Richard Laager <rlaager@wiktel.com>
12140 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12143 2012-02-27 Richard Laager <rlaager@wiktel.com>
12145 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12148 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12150 Don't use insecure popen in getroot.
12152 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12153 (exec_pipe): ... here.
12154 (find_root_devices_from_poolname): Use exec_pipe.
12156 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12158 Remove platform and target_cpu replacement.
12160 * configure.ac: Remove platform and target_cpu substitutions.
12161 * tests/util/grub-shell.in: Use modinfo.
12162 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12165 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12167 Autodetect platform in grub-install but allow override.
12169 * util/grub-install.in: Autodetect platform. Support --target and
12170 --directory. Read platform from modinfo.sh.
12172 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12174 Support btrfs multi-volume probe.
12176 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12177 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12178 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12179 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12180 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12181 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12182 grub_find_root_devices_from_btrfs if on btrfs.
12184 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12186 Remove any awareness of *.c util files about target.
12188 * Makefile.util.def (grub-setup): Split to ...
12189 (grub-bios-setup): ... and this.
12190 (grub-sparc64-setup): ... and this.
12191 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12192 * docs/man/grub-setup.h2m: Split into ...
12193 * docs/man/grub-sparc64-setup.h2m: ... this.
12194 * docs/man/grub-bios-setup.h2m: ... and this.
12195 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12196 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12197 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12198 (grub_target_addr_t): Remove.
12199 (grub_target_size_t): Remove.
12200 (grub_target_ssize_t): Remove.
12201 * util/grub-install.in: Use new grub-*-setup.
12202 * util/grub-mkimagexx.c (Elf_Word): New define.
12203 (Elf_Half): Likewise.
12204 (Elf_Section): Likewise.
12205 (ELF_ST_TYPE): Likewise.
12206 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12207 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12209 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12211 Replace grub_target_addr with more appropriate types.
12213 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12214 grub_target_addr with grub_addr.
12215 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12216 grub_target_addr with grub_port.
12217 (grub_cmd_write): Likewise.
12218 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12219 grub_target_addr with grub_addr.
12220 (grub_cmd_write): Likewise.
12221 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12223 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12225 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12226 const qualifier for vendor_guid.
12228 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12230 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12232 (efiemu_memequal): Likewise.
12233 (find_variable): Likewise.
12235 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12237 Fix missing console prototype on qemu-mips.
12239 * include/grub/mips/qemu_mips/console.h: New file.
12241 2012-02-27 Matthew Garrett <mjg@redhat.com>
12242 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12244 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12245 * include/grub/efi/efi.h: Likewise.
12246 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12247 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12248 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12249 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12250 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12251 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12253 2012-02-27 Matthew Garrett <mjg@redhat.com>
12255 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12257 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12259 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12262 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12264 * configure.ac: Remove inappropriate use of program_transform_name
12265 on grubdir and bootdir but allow explicit specification of those
12268 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12270 * util/grub-mknetdir.in (grub_prefix): Removed.
12271 (subdir): Use @bootdirname@ and @grubdirname@.
12273 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12275 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12277 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12279 * po/POTFILES.in: Regenerated.
12281 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12283 Remove improper use of program_transform_name on pkglibrootdir.
12285 * configure.ac (pkglibrootdir): Removed.
12286 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12287 * util/grub-mkimage.c: Likewise.
12289 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12291 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12294 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12296 * util/grub-install.in: Use file identifier if no UUID is available
12297 or user explicitly prompted for it.
12299 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12301 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12302 (freebsd_get_zfs): New function.
12303 (grub_freebsd_boot): Pass zfs UUID.
12304 (grub_cmd_freebsd): Set zfs UUID.
12306 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12308 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12311 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12313 Add configure flag to control libzfs integration.
12315 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12317 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12319 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12321 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12324 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12326 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12327 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12328 be used on non-modules.
12330 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12331 Rename to grub_boot_init.
12332 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12333 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12334 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12335 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12336 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12337 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12338 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12339 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12341 (grub_machine_init): Remove empty inits.
12342 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12344 (grub_machine_init): Remove empty inits.
12345 * grub-core/term/arc/console.c: Remove explicit proto.
12346 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12347 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12348 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12349 grub_at_keyboard_fini.
12350 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12351 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12352 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12354 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12355 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12356 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12358 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12359 * grub-core/term/serial.c (GRUB_MOD_INIT)
12360 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12361 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12363 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12364 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12365 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12366 grub_terminfo_fini.
12367 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12368 (GRUB_MOD_FINI): Likewise.
12369 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12370 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12371 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12372 grub_video_radeon_fuloong2e_fini.
12373 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12374 [LOONGSON]: Rename to grub_video_sis315pro_init.
12375 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12376 grub_video_sis315pro_fini.
12377 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12378 [LOONGSON]: Rename to grub_video_sm712_init.
12379 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12380 grub_video_sm712_fini.
12381 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12382 (grub_at_keyboard_fini): Likewise.
12383 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12384 Don't declare grub_{modname}_init.
12385 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12386 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12388 (grub_keylayouts_fini) [!EMU]: Likewise.
12389 * include/grub/serial.h (grub_serial_init) [!EMU]:
12391 (grub_serial_fini) [!EMU]: Likewise.
12392 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12394 (grub_terminfo_fini) [!EMU]: Likewise.
12395 * include/grub/video.h (grub_font_init) [!EMU]:
12397 (grub_font_fini) [!EMU]: Likewise.
12398 (grub_gfxterm_init) [!EMU]: Likewise.
12399 (grub_gfxterm_fini) [!EMU]: Likewise.
12400 (grub_video_sm712_init) [!EMU]: Likewise.
12401 (grub_video_sm712_fini) [!EMU]: Likewise.
12402 (grub_video_sis315pro_init) [!EMU]: Likewise.
12403 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12404 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12405 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12407 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12409 Make nand a prefix for nand devices.
12411 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12413 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12415 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12416 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12418 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12420 * include/grub/env.h (grub_env_find): Remove prototype.
12421 * grub-core/kern/env.c (grub_env_find): Make static.
12422 (grub_env_set): Remove useless set.
12424 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12426 * grub-core/kern/i386/realmode.S: Remove useless align.
12428 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12430 * include/grub/dl.h (grub_dl_load_file): Don't export.
12432 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12434 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12437 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12439 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12441 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12442 not reloading whole superblock but only the part which is really needed.
12443 Remove useless grub_errors.
12444 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12447 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12449 Don't export grub_get_rtc.
12451 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12452 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12454 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12456 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12458 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12460 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12461 argument since it can be deduced from diskfilter. All users updated.
12463 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12467 * include/grub/list.h (grub_prio_list): Removed.
12468 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12469 GRUB_COMMAND_PRIO_MASK.
12470 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12471 GRUB_COMMAND_FLAG_ACTIVE.
12472 (grub_prio_list_insert): Removed.
12473 (grub_prio_list_remove): Likewise.
12474 (GRUB_AS_PRIO_LIST): Likewise.
12475 (GRUB_AS_PRIO_LIST_P): Likewise.
12476 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12477 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12478 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12479 * grub-core/kern/command.c (grub_register_command_prio): Inline
12480 the prio_list code.
12481 (grub_unregister_command): Likewise.
12483 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12485 Fix interrupt mixup from previous commit.
12487 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12488 (grub_realidt): New var.
12489 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12491 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12493 (grub_relocator16_boot): Set grub_relocator16_idt.
12494 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12495 (LOCAL(realidt)): ... this.
12496 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12497 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12498 (grub_realidt): New variable.
12500 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12502 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12503 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12504 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12505 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12507 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12508 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12509 * po/POTFILES.in: Regenerate.
12511 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12513 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12516 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12518 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12520 (add_length): Likewise.
12522 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12523 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12525 GDB serial and backtrace support.
12527 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12528 (prot_to_real): Likewise.
12529 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12530 * grub-core/Makefile.core.def (backtrace): New module.
12532 * grub-core/gdb/cstub.c: New file.
12533 * grub-core/gdb/gdb.c: Likewise.
12534 * grub-core/gdb/i386/idt.c: Likewise.
12535 * grub-core/gdb/i386/machdep.S: Likewise.
12536 * grub-core/gdb/i386/signal.c: Likewise.
12537 * grub-core/lib/i386/backtrace.c: Likewise.
12538 * grub-core/lib/backtrace.c: Likewise.
12539 * include/grub/backtrace.h: Likewise.
12540 * include/grub/gdb.h: Likewise.
12541 * include/grub/i386/gdb.h: Likewise.
12543 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12545 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12547 (add_length): Likewise.
12548 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12549 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12551 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12552 __argp_get_display_len.
12554 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12556 $"..." support in scripts.
12558 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12559 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12560 * grub-core/script/yylex.l: Likewise.
12561 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12564 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12566 * gentpl.py: Remove obsolete pkglib_DATA handling.
12568 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12570 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12573 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12574 * util/grub-kbdcomp.in: Likewise.
12575 * util/grub-mkconfig.in: Likewise.
12576 * util/grub-mkconfig_lib.in: Likewise.
12577 * util/grub-mknetdir.in: Likewise.
12578 * util/grub-mkrescue.in: Likewise.
12579 * util/grub-mkstandalone.in: Likewise.
12580 * util/grub-reboot.in: Likewise.
12581 * util/grub-set-default.in: Likewise.
12582 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12584 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12586 Remove GRUB_PREFIX.
12588 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12589 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12590 used for backward compatibility.
12592 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12594 Add new all_video module.
12596 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12597 * grub-core/Makefile.core.def (all_video): New module.
12598 * grub-core/genmoddep.awk: Generate dependency of all_video from
12600 * grub-core/lib/fake_module.c: New file.
12601 * grub-core/normal/main.c (features): Add feature_all_video_module.
12602 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12603 don't do explicit search again.
12604 insmod all_video in load_video if available.
12606 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12608 Another round of string clarification and adding TRANSLATORS comments.
12610 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12612 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12614 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12616 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12618 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12619 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12621 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12623 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12624 trailing newline implicitly. All users updated.
12626 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12628 Implement serial on IEEE1275 and EFI.
12630 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12631 on emu. Mention arc and emu as the only platforms without serial
12633 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12634 ieee1275 platforms.
12635 * grub-core/term/efi/serial.c: New file.
12636 * grub-core/term/ieee1275/serial.c: Likewise.
12637 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12638 specification if no ns8250 driver is available.
12639 (grub_cmd_serial): Likewise.
12640 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12641 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12642 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12643 (grub_efi_parity_type_t): New type.
12644 (grub_efi_stop_bits_t): Likewise.
12645 (grub_efi_serial_io_interface): New struct.
12646 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12647 available for all interfaces.
12648 Add EFI and IEEE1275 fields.
12649 (grub_ofserial_init): New proto.
12650 (grub_efiserial_init): Likeiwse.
12651 * util/grub.d/00_header.in: Don't check for the presence of serial
12654 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12656 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12657 name as if it was an alias.
12659 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12661 * grub-core/commands/lsacpi.c (options): Fix typo.
12663 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12665 Convert grub-emu to argp.
12667 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12669 * util/argp_common.c: Rename to ...
12670 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12671 Add missing includes.
12672 * grub-core/kern/emu/main.c: Convert to argp.
12673 * po/POTFILES.in: Regenerate.
12674 * util/grub-install.in (usage): Make first letter lowcase in messages
12676 * util/grub-setup.c (options): Likewise.
12678 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12680 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12681 Put back accidently commented-out code.
12683 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12685 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12686 loop check using Brent algorithm.
12687 (grub_hfsplus_btree_search): Likewise.
12689 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12691 * util/grub-install.in: Fix usage of wrong device for PreP install.
12693 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12695 * conf/Makefile.common (CFLAGS_GNULIB): Add
12696 -Wno-unsafe-loop-optimizations.
12697 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12699 * grub-core/commands/legacycfg.c: Add pragma to skip
12700 -Wunsafe-loop-optimizations.
12701 (check_password_md5_real): Fix loop counter type.
12702 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12704 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12705 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12707 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12708 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12709 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12711 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12712 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12713 avoid possible infinite loops.
12714 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12715 and -Wunsafe-loop-optimizations.
12716 * grub-core/script/yylex.l: Likewise.
12717 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12718 (print_glyphs): Avoid infinite loops.
12719 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12721 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12723 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12724 to avoid infinite loop.
12725 (disp_acpi_rsdt_table): Likewise.
12727 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12729 * grub-core/font/font.c (grub_font_load): Add support for default
12730 path for fonts ($prefix/fonts).
12731 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12732 for checking if string is a path.
12733 * grub-core/normal/main.c (features): Add feature_default_font_path.
12734 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12735 * util/grub.d/00_header.in: Use default directory if possible.
12736 * util/grub-install.in: Install unicode.pf2.
12738 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12740 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12741 * po/Rules-swiss: New file.
12742 * po/swiss.sed: Likewise.
12744 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12746 * grub-core/fs/btrfs.c (find_device): Fix typos.
12747 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12748 * util/grub-mkrelpath.c (argp_parser): Likewise.
12749 Reported by: Yuri Chornoivan.
12751 2012-02-23 Dalet Omega <daletomega@gmail.com>
12753 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12754 for usual informative messages.
12756 2012-02-23 Dalet Omega <daletomega@gmail.com>
12760 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12761 * conf/Makefile.common: Define starfielddir.
12762 * configure.ac: Configure starfield.
12763 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12764 * themes/starfield/README: Likewise.
12765 * themes/starfield/blob_w.png: Likewise.
12766 * themes/starfield/boot_menu_c.png: Likewise.
12767 * themes/starfield/boot_menu_e.png: Likewise.
12768 * themes/starfield/boot_menu_n.png: Likewise.
12769 * themes/starfield/boot_menu_ne.png: Likewise.
12770 * themes/starfield/boot_menu_nw.png: Likewise.
12771 * themes/starfield/boot_menu_s.png: Likewise.
12772 * themes/starfield/boot_menu_se.png: Likewise.
12773 * themes/starfield/boot_menu_sw.png: Likewise.
12774 * themes/starfield/boot_menu_w.png: Likewise.
12775 * themes/starfield/slider_c.png: Likewise.
12776 * themes/starfield/slider_n.png: Likewise.
12777 * themes/starfield/slider_s.png: Likewise.
12778 * themes/starfield/src/blob_nw.xcf: Likewise.
12779 * themes/starfield/src/bootmenu/: Likewise.
12780 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12781 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12782 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12783 * themes/starfield/src/slider_c.xcf: Likewise.
12784 * themes/starfield/src/slider_n.xcf: Likewise.
12785 * themes/starfield/src/slider_s.xcf: Likewise.
12786 * themes/starfield/src/terminalbox/: Likewise.
12787 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12788 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12789 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12790 * themes/starfield/starfield.png: Likewise.
12791 * themes/starfield/terminal_box_c.png: Likewise.
12792 * themes/starfield/terminal_box_e.png: Likewise.
12793 * themes/starfield/terminal_box_n.png: Likewise.
12794 * themes/starfield/terminal_box_ne.png: Likewise.
12795 * themes/starfield/terminal_box_nw.png: Likewise.
12796 * themes/starfield/terminal_box_s.png: Likewise.
12797 * themes/starfield/terminal_box_se.png: Likewise.
12798 * themes/starfield/terminal_box_sw.png: Likewise.
12799 * themes/starfield/terminal_box_w.png: Likewise.
12800 * themes/starfield/theme.txt: Likewise.
12802 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12804 * util/grub.d/00_header.in: Add missing export theme.
12806 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12808 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12810 Reported by: Eren D.
12812 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12814 * conf/Makefile.common (grubdatadir): Removed.
12815 (Makefile.am): Move eveything grubdata to pkgdata.
12817 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12819 * grub-core/commands/acpihalt.c (get_sleep_type):
12820 Remove unused variable.
12822 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12824 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12825 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12826 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12827 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12828 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12829 i18n with gettext no-op.
12830 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12831 GRUB_ACPI_OPCODE_STRING_CONST.
12832 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12833 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12835 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12837 * po/POTFILES.in: Regenerate.
12839 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12841 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12842 -Wno-error=missing-noreturn.
12844 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12846 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12847 condition to avoid possibly infinite loops.
12848 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12849 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12851 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12853 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12854 condition to avoid possibly infinite loops.
12856 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12858 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12861 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12863 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
12865 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12867 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
12869 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12871 * util/bin2h.c (usage): Add missing attribute noreturn.
12873 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12875 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
12876 if the size isn't divisible by 512.
12878 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12880 Make list_push and list_remove functions rather than inline functions
12881 to decrease size and avoid aliasing violations.
12883 * include/grub/list.h (grub_list_push): Move to ...
12884 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
12885 * include/grub/list.h (grub_list_remove): Move to ...
12886 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
12888 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12890 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
12891 and -Wunused-result.
12893 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12895 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
12896 Reported by: Seth Goldberg
12898 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12900 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
12902 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12904 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
12905 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
12907 * docs/grub.texi (Simple configuration): Document
12908 GRUB_CMDLINE_GNUMACH.
12910 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12912 * conf/Makefile.common (platform_SCRIPTS): New variable.
12913 (platform_PROGRAMS): Likewise.
12914 * gentpl.py: Mark *,module and *.image for install.
12915 * grub-core/gdb_grub.in: Add a notice of expected environment.
12916 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
12917 (gmodule.pl): Likewise.
12919 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12921 Replace grub_checkkey with grub_getkey_noblock.
12923 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
12924 (grub_getkey_noblock): ... this. All users updated.
12926 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12928 * grub-core/kern/emu/console.c: Move to ...
12929 * grub-core/term/emu/console.c: ...here.
12930 (grub_ncurses_getkey): Fix return value if no key is detected.
12932 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12934 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
12935 (grub_unit_test_fini): Likewise.
12936 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
12938 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12940 * include/grub/test.h (GRUB_UNIT_TEST)
12942 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12944 * grub-core/script/execute.c (grub_script_break): Clarify logic.
12945 Better error handling.
12946 (grub_script_return): Likewise.
12947 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12949 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12951 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
12952 rimplicit redifinition.
12954 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12956 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
12959 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12961 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
12962 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
12965 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12967 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
12968 as GRUB_ERR_BUG. Don't malloc if no device is available.
12970 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12972 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
12973 Mark calling with invalid term as GRUB_ERR_BUG.
12975 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12977 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
12978 packets rather than raising an error.
12980 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12982 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
12985 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12987 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
12988 diagnostic to dprintf.
12989 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12991 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12993 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
12996 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12998 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
12999 (grub_ntfs_iterate_dir): Likewise.
13001 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13003 Efiemu stylistic fixes and gettext.
13005 * grub-core/efiemu/i386/loadcore32.c
13006 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13007 * grub-core/efiemu/i386/loadcore64.c
13008 (grub_arch_efiemu_relocate_symbols64): Likewise.
13009 * grub-core/efiemu/i386/pc/cfgtables.c
13010 (grub_machine_efiemu_init_tables): Likewise.
13011 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13012 (grub_efiemu_loadcore_initXX): Add a filename argument.
13014 Improved error message.
13015 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13016 Add a filename argument.
13018 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13019 Reclassify double relocation as GRUB_ERR_BUG.
13021 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13023 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13026 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13028 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13031 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13033 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13035 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13037 Improve string. Gettextize.
13039 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13041 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13043 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13045 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13047 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13048 [GRUB_UTIL]: New function.
13049 (insert_array) [GRUB_UTIL]: Store partmaps.
13050 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13052 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13053 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13054 (probe_abstraction): Print diskfilter and not raid.
13055 Reported by: Lennart Sorensen
13057 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13059 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13060 * util/grub-mkimagexx.c (MASK3): New define.
13061 (add_value_to_slot_20b): Use MASK3.
13062 (add_value_to_slot_21): Likewise.
13063 (relocate_addresses): Fix format specification.
13064 (load_image): Explicitly init symtab_section.
13066 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13068 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13069 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13071 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13073 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13075 Reported by: Lennart Sorensen
13077 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13079 * gentpl.py: Add missing license header.
13080 * docs/grub.texi: Update copyright year.
13082 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13084 Source grub-mkconfig_lib from the build directory at build time.
13085 Suggested by: Vladimir Serbinenko.
13087 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13088 * util/grub-install.in: Define pkgdatadir if not already set, and source
13089 grub-mkconfig_lib from there.
13090 * util/grub-kbdcomp.in: Likewise.
13091 * util/grub-mkconfig.in: Likewise.
13092 * util/grub-mknetdir.in: Likewise.
13093 * util/grub-mkrescue.in: Likewise.
13094 * util/grub-mkstandalone.in: Likewise.
13095 * util/grub-reboot.in: Likewise.
13096 * util/grub-set-default.in: Likewise.
13097 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13099 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13101 Increase warning level.
13103 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13104 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13105 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13106 (TARGET_CFLAGS): Likewise.
13107 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13108 * grub-core/Makefile.core.def (decompressor_xz): Add
13109 -Wno-unreachable-code.
13110 (normal): Add -Wno-redundant-decls.
13111 (xzio): Add -Wno-unreachable-code.
13112 (lzopio): Add -Wno-redundant-decls -Wno-error.
13113 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13114 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13115 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13116 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13117 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13118 * grub-core/kern/i386/coreboot/init.c: Add exception to
13119 -Wsuggest-attribute=noreturn.
13120 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13121 * grub-core/kern/ia64/dl_helper.c: Likewise.
13122 * grub-core/kern/mips/dl.c: Likewise.
13123 * grub-core/kern/sparc64/dl.c: Likewise.
13124 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13125 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13126 (memcmp): Likewise.
13127 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13128 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13129 * grub-core/loader/mips/linux.c: Likewise.
13130 * grub-core/loader/multiboot_elfxx.c: Likewise.
13131 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13132 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13133 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13134 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13136 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13137 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13140 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13142 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13145 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13147 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13148 Avoid improper use of strings.
13149 (grub_cmd_legacy_initrdnounzip): Likewise.
13151 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13153 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13155 (grub_util_info): Likewise.
13156 (grub_util_error): Likewise.
13158 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13160 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13161 * util/grub-fstest.c (fstest): Likewise.
13163 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13165 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13166 (grub_md_sha512_real): Likewise.
13167 (grub_util_get_geli_uuid): Likewise.
13168 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13169 (grub_util_biosdisk_open): Fix format specification.
13170 Respect format security.
13171 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13172 (xrealloc): Likewise.
13173 (xasprintf): Likewise.
13175 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13177 * util/import_gcry.py: Include grub/crypto.h in init.c.
13179 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13181 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13182 (generate_image): Make prefix a const char *.
13183 Fix format specifications. Respect format security.
13184 Avoid void * arithmetics.
13186 (argp_parser): Remove unused variable. Respect format security.
13187 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13188 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13189 (count_funcs): Remove unused variable.
13190 (relocate_addresses): Fix format specification.
13191 Disable x86-64 with elf32. Remove unused variables.
13192 (add_fixup_entry): Avoid shadowing.
13193 (make_reloc_section): Fix format specification.
13195 (locate_sections): Fix format specifications.
13196 (load_image): Avoid shadowing.
13198 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13200 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13201 Fix format specifications. Respect format security.
13202 Don't translate already translated grub_errmsg.
13203 (argp_parser): Remove unused variable
13205 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13207 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13209 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13211 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13212 (main): Likewise. Use xmalloc. Respect format security.
13214 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13216 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13218 (argp_parser): Remove unused variable.
13220 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13222 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13223 (add_pixel): Make static.
13224 (add_font): Likewise.
13225 (write_string_section): Make name and str a const char *.
13226 (write_be16_section): Make name a const char *.
13227 (print_glyphs): Make static.
13228 (write_font_ascii_bitmap): Likewise.
13229 (write_font_width_spec): Likewise.
13230 (write_font_pf2): Likewise.
13231 (argp_parser): Remove unused variable.
13232 Respect format security.
13233 (main): Avoid shadowing. Respect format security.
13235 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13237 * util/grub-editenv.c (argp_parser): Make static.
13238 (create_envblk_file): Use xmalloc.
13239 (open_envblk_file): Likewise.
13240 Resepect format security.
13241 (set_variables): Respect format security.
13243 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13245 * util/getroot.c (grub_find_device): Respect format security.
13246 (get_mdadm_uuid): Remove unused variable.
13247 (grub_util_pull_device): Dont call gettext on already translated
13249 (find_system_device): Remove unused variable.
13250 (grub_util_get_grub_dev): Likewise.
13251 (grub_make_system_path_relative_to_its_root): Respect format security.
13253 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13255 * util/grub-fstest.c (execute_command): Make first argument
13257 (read_file): Avoid shadowing.
13258 Reuse underlying error message if device open fails.
13259 (cmd_cmp): Respect format security.
13260 (root): Make const char *.
13261 (fstest): Remove args argument and use global copy.
13262 Respect format security.
13263 (argp_parser): Make static.
13264 (main): Make default_root const char *.
13266 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13268 * util/grub-mount.c (root): Make const char *.
13269 (execute_command): Make first argument a const char *.
13270 (fuse_init): Respect format security.
13271 (argp_parser): Make static. Remove unused variable.
13272 (main): Make default_root a const char *.
13273 Respect format security.
13275 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13277 * util/grub-probe.c (probe): Don't call gettext on already translated
13279 Remove unused variables.
13280 (argp_parser): Remove unused variable.
13282 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13284 * util/grub-script-check.c (argp_parser): Remove unused variable.
13285 (main): Rename read to curread to avoid shadowing.
13287 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13289 * util/misc.c (grub_util_write_image_at): Fix format specification.
13290 (grub_util_write_image): Likewise.
13291 (grub_script_execute_argument_to_string): Removed (unused).
13292 (grub_script_execute_menuentry): Likewise.
13293 (grub_putchar): Likewise.
13295 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13297 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13298 (FUNCTION) [GRUB_UTIL]: Likewise.
13299 (VARIABLE) [GRUB_UTIL]: Likewise.
13301 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13303 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13304 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13306 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13308 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13311 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13313 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13314 (LzmaEnc_SaveState): Removed (unused).
13315 (LzmaEnc_RestoreState): Likewise.
13316 (LzmaEnc_InitPriceTables): Made static.
13317 (LzmaEnc_Construct): Likewise.
13318 (LzmaEnc_FreeLits): Likewise.
13319 (LzmaEnc_Destruct): Likewise.
13320 (LzmaEnc_Init): Likewise.
13321 (LzmaEnc_InitPrices): Likewise.
13322 (LzmaEnc_Finish): Likewise.
13323 (LzmaEnc_PrepareForLzma2): Removed (unused).
13324 (LzmaEnc_MemPrepare): Likewise.
13325 (LzmaEnc_GetNumAvailableBytes): Likewise.
13326 (LzmaEnc_GetCurBuf): Likewise.
13327 (LzmaEnc_CodeOneMemBlock): Likewise.
13329 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13331 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13332 (grub_util_ldm_embed): Likewise.
13334 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13336 * util/grub-editenv.c (print_var): Rename name to varname to
13338 (main): Rename index to curindex to avoid shadowing.
13339 Make filename a const char *.
13341 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13343 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13344 to arg_getline to avoid shadowing.
13346 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13348 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13349 disk_ to avoid shadowing.
13351 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13353 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13354 curindex to avoid shadowing.
13356 (MatchFinder_GetNumAvailableBytes): Make static.
13358 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13360 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13363 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13365 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13366 argument from encrypt to do_encrypt to avoid shadowing.
13368 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13370 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13371 incorrect nesting of #if's.
13373 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13375 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13376 checks which are always false on some platforms.
13377 (grub_cmd_lsacpi): Likewise.
13378 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13379 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13382 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13384 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13385 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13387 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13389 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13390 re_dfa_t to avoid breaking alignment invariants.
13391 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13392 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13394 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13396 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13397 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13399 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13401 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13404 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13406 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13407 conserve alignment invariants.
13408 (grub_ehci_ehcc_read16): Likewise.
13409 (grub_ehci_oper_read32): Likewise.
13410 (grub_ehci_oper_write32): Likewise.
13411 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13412 Conserve alignment invariants.
13414 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13416 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13417 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13420 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13422 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13423 Remove unused variable.
13425 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13427 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13430 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13432 * include/grub/net.h: Remove double declarations.
13434 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13436 Remove "payload" command in ia64 Linux loader since I couldn't
13437 find any evidence of it being used for anything.
13438 Replace "relocate" command with an environment variable
13440 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13442 (ia64_boot_payload): Removed.
13443 (last_payload): Likewise.
13444 (RELOCATE_OFF): Likewise.
13445 (RELOCATE_ON): Likewise.
13446 (RELOCATE_FORCE): Likewise.
13447 (relocate): Likewise.
13448 (free_pages): Don't free payloads.
13449 (grub_load_elf64): Use common error messages.
13450 Use "linux_relocate" variable.
13451 Increase the space after boot_params.
13452 (grub_cmd_payload): Removed.
13453 (grub_cmd_relocate): Likewise.
13454 (grub_cmd_fpswa): Improve messages.
13455 (cmd_payload): Removed.
13456 (cmd_relocate): Likewise.
13457 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13458 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13460 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13462 Convert UHCI to DMA framework.
13464 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13465 (grub_uhci_pci_iter): Fill new members
13466 (grub_alloc_td): Use P2V and V2P functions.
13467 (grub_free_queue): Likewise.
13468 (grub_alloc_qh): Likewise.
13469 (grub_uhci_setup_transfer): Likewise.
13470 (grub_uhci_check_transfer): Likewise.
13472 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13474 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13475 Remove assignment in if while on it.
13477 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13479 * util/grub-mkstandalone.in: Fix modules directory.
13481 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13483 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13485 (argp_parser): Accept "auto" as compression specification.
13487 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13489 Fix `help' with unloaded modules.
13491 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13492 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13493 (grub_dyncmd_dispatcher): Small stylistic fix.
13494 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13495 explicit help is requested.
13497 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13499 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13500 Explicitly init restart while on it.
13502 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13504 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13507 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13509 * util/grub-mknetdir.in: Use . rather than source for POSIX
13512 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13514 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13516 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13518 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13521 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13523 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13526 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13528 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13530 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13532 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13533 iteration of partitions.
13535 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13537 Improve gettext support. Stylistic fixes and error handling fixes while
13540 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13542 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13543 part. Instead setup the correct stack in RM.
13544 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13546 * include/grub/i386/relocator_private.h: New file.
13548 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13550 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13552 * util/grub-fstest.c (options): Add missing DEVICE part.
13554 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13556 Clarify and unify messages.
13558 * grub-core/commands/hashsum.c (options): Unify messages.
13559 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13560 literal-only message as translatable.
13561 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13562 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13563 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13565 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13566 key, not the key used to unlock. Clarify what it's used for.
13567 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13568 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13569 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13570 * util/grub-editenv.c (options): Unify "verbose" message.
13571 * util/grub-fstest.c (read_file): Unify error message.
13572 (fstest): Add quotes around commands.
13573 (options): Unify "verbose" message.
13574 * util/grub-install.in: Add quotes around variable name.
13575 * util/grub-kbdcomp.in: Unify error message.
13576 * util/grub-mkfont.c (main): Likewise.
13577 * util/grub-mkrescue.in: Likewise.
13578 * util/grub-mklayout.c (options): Unify "verbose" message.
13579 * util/grub-mkstandalone.in: Unify help and verbose messages.
13580 * util/grub-mount.c (options): Unify "verbose" message.
13581 * util/grub-probe.c (options): Likewise.
13582 * util/grub-script-check.c (options): Likewise.
13583 * util/grub-setup.c (setup): Unify no-terminator message.
13584 (options): Use DEVICE and not DEV.
13585 Unify "verbose" message.
13586 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13588 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13590 Improve and unify messages.
13592 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13593 name. All users updated.
13594 Print filename in error.
13595 (read_device_map): Print filename in error.
13596 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13597 (grub_util_get_os_disk): Likewise.
13598 (grub_util_biosdisk_get_grub_dev): Likewise.
13599 (grub_util_check_block_device): Likewise.
13600 (grub_util_check_char_device): Likewise.
13601 (grub_make_system_path_relative_to_its_root): Likewise.
13602 * util/grub-editenv.c (create_envblk_file): Likewise.
13603 (open_envblk_file): Likewise.
13604 (write_envblk): Likewise.
13605 * util/grub-fstest.c (cmd_cp): Likewise.
13606 (cmd_cat): Likewise.
13607 (cmd_cmp): Likewise.
13608 * util/grub-menulst2cfg.c (main): Likewise.
13609 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13610 (write_font_width_spec): Likewise.
13611 (write_font_pf2): Likewise.
13612 * util/grub-mkimage.c (generate_image): New argument outname.
13614 Remove unreacheable message.
13615 (options): Unify messages.
13616 (help_filter): Likewise.
13617 * util/grub-mklayout.c (usage): Removed (unused).
13618 (main): Print filename in error.
13619 * util/grub-mkrescue.in: Fix wrong quoting.
13620 * util/grub-setup.c (setup): Print filename in error.
13621 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13622 (check_sas): Likewise.
13623 * util/misc.c (grub_util_get_fp_size): Removed.
13624 (grub_util_get_image_size): Print filename in error.
13625 (grub_util_read_at): Removed.
13626 (grub_util_read_image): Print filename in error.
13627 (grub_util_load_image): Likewise.
13628 (grub_util_write_image_at): New argument filename. All users updated.
13629 Print filename in error.
13630 (grub_util_write_image): New argument filename. All users updated.
13631 Print filename in error.
13632 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13633 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13635 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13637 * grub-core/Makefile.core.def (pxechain): New module.
13638 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13639 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13641 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13642 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13644 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13646 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13647 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13648 * include/grub/err.h (grub_error_saved): New struct.
13649 (grub_errmsg): Make array size explicit.
13650 * include/grub/misc.h (grub_error_save): New function.
13651 (grub_error_load): Likewise.
13652 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13653 (grub_error_push): Update `errno' member name.
13654 (grub_error_pop): Likewise
13655 * grub-core/net/tftp.c (tftp_data): New member save_err.
13656 (tftp_receive): Save error.
13657 (tftp_open): Restore error.
13659 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13661 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13662 to real mode down to execute A20-related code in protected mode as
13665 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13667 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13668 NULL when the argument `level' has an unexpected value.
13670 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13672 Move platform-dependent files from $prefix to $prefix/$platform.
13674 * config.h.in (GRUB_TARGET_CPU): New definition.
13675 (GRUB_PLATFORM): Likewise.
13676 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13677 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13678 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13679 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13680 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13681 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13682 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13683 * grub-core/normal/term.c (read_terminal_list): Likewise.
13684 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13686 (grub_gettext_init_ext): Likewise.
13687 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13689 * util/grub-install.in: Update directories.
13690 * util/grub-mknetdir.in: Likewise.
13691 * util/grub-mkrescue.in: Likewise.
13693 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13695 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13696 grub_error framework. All users updated.
13698 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13700 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13701 lists (by always binsearching), improve caching (cache strings
13702 used for binsearch, not only results), improve
13703 maintainability (by using more structured binary search) and correct
13706 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13708 * grub-core/script/execute.c (grub_script_return): Fix warning.
13710 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13712 * grub-core/script/execute.c (grub_script_return): Fix potential
13714 Reported by: Jim Meyering.
13716 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13718 * po/POTFILES.in: Regenerate.
13719 * util/grub-install.in: Gettextize the strings missed in first pass.
13721 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13723 * Makefile.util.def (grub-mkdevicemap): Removed.
13724 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13725 * include/grub/util/deviceiter.h: Removed.
13726 * util/deviceiter.c: Likewise.
13727 * util/getroot.c (grub_util_get_os_disk): New function.
13728 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13729 replacement for EFI.
13730 * util/grub-mkdevicemap.c: Removed.
13731 * util/grub-probe.c (probe): Handle PRINT_DISK.
13732 (argp_parser): Handle -t disk.
13734 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13736 * util/grub-mkfont.c: Migrate to argp.
13737 * util/grub-mklayout.c: Likewise.
13738 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13739 * util/grub-mkrelpath.c: Likewise.
13740 * util/grub-probe.c: Likewise.
13741 * util/grub-script-check.c: Likewise.
13743 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13745 * util/grub-reboot.in: Add missing datarootdir.
13746 Add missing newline.
13747 * util/grub-set-default.in: Add missing datarootdir.
13748 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13749 * util/grub-mkrescue.in: Likewise.
13751 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13753 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13755 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13757 * util/grub-kbdcomp.in: Add decent help and gettextize.
13758 * docs/man/grub-kbdcomp.h2m: New file.
13760 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13762 Migrate grub-mkimage.c to argp.
13764 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13765 (grub-setup): Likewise.
13766 * util/grub-setup.c (print_version): Move to ...
13767 * util/argp_common.c (print_version): ... here.
13768 * util/grub-setup.c (argp_program_version_hook): Move to ...
13769 * util/argp_common.c (argp_program_version_hook): ... here.
13770 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13772 * util/grub-mkimage.c (main): Migrate to argp.
13774 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13776 * util/grub-mkrescue.in: Use same message as
13777 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13778 for better translations.
13780 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13782 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13783 options with generic grub-mkrescue.in with the goal of future
13786 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13788 * grub-core/kern/mm.c: Add missing include of i18n.h
13789 * grub-core/lib/relocator.c: Likewise.
13791 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13793 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13795 (allocate_pages): Check return value.
13796 Replace fatal with error.
13797 (grub_linux_boot): Replace printf with dprintf.
13798 Check find_mmap_size return value.
13799 Replace fatal with error.
13800 Don't call grub_machine_fini.
13801 (grub_load_elf64): Replace printf with dprintf.
13802 (grub_cmd_linux): Likewise.
13803 (grub_cmd_initrd): Likewise.
13804 (grub_cmd_payload): Likewise.
13806 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13808 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13810 * grub-core/video/radeon_fuloong2e.c
13811 (grub_video_radeon_fuloong2e_setup): Likewise.
13812 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13813 * grub-core/video/video.c (grub_video_set_mode): Don't override
13814 standard out of memory message.
13816 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13818 NetBSD disk wedge support.
13820 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13821 [__NetBSD__]: Handle NetBSD disk wedges.
13822 * util/getroot.c (convert_system_partition_to_system_disk)
13823 [__NetBSD__]: Likewise.
13825 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13827 * util/grub-mkconfig.in: Use umask rather than chmod to create
13828 grub.cfg.new to avoid insecure grub.cfg.
13830 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13832 * grub-core/commands/ls.c: Gettextize.
13833 * grub-core/commands/setpci.c: Likewise.
13834 * grub-core/commands/videotest.c: Likewise.
13835 * grub-core/disk/geli.c: Likewise.
13836 * grub-core/kern/mm.c: Likewise.
13837 * grub-core/lib/relocator.c: Likewise.
13838 * grub-core/loader/efi/appleloader.c: Likewise.
13839 * grub-core/loader/i386/xnu.c: Likewise.
13840 * grub-core/loader/ia64/efi/linux.c: Likewise.
13841 * grub-core/loader/xnu.c: Likewise.
13842 * grub-core/net/dns.c: Likewise.
13843 * grub-core/net/net.c: Likewise.
13844 * grub-core/script/lexer.c: Likewise.
13845 * grub-core/script/parser.y: Likewise.
13846 * grub-core/script/yylex.l: Likewise.
13847 * util/getroot.c: Likewise.
13848 * util/grub-setup.c: Likewise.
13850 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13852 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13855 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13857 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13859 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13861 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
13863 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
13864 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
13866 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13868 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
13869 * util/grub-install.in: Gettextize.
13870 * util/grub-mkconfig.in: Likewise.
13871 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
13873 (grub_warn): Gettextize.
13874 * util/grub-mknetdir.in: Gettextize.
13875 * util/grub-mkrescue.in: Likewise.
13876 * util/grub-mkstandalone.in: Likewise.
13877 * util/grub-reboot.in: Likewise.
13878 * util/grub-set-default.in: Likewise.
13879 * util/grub.d/00_header.in: Likewise.
13880 * util/grub.d/10_hurd.in: Likewise.
13881 * util/grub.d/10_kfreebsd.in: Likewise.
13882 * util/grub.d/10_linux.in: Likewise.
13883 * util/grub.d/10_netbsd.in: Likewise.
13884 * util/grub.d/10_windows.in: Likewise.
13885 * util/grub.d/20_linux_xen.in: Likewise.
13886 * util/grub.d/30_os-prober.in: Likewise.
13887 * po/POTFILES-shell.in: Regenerate.
13889 2012-02-03 Richard Laager <rlaager@wiktel.com>
13891 * util/grub-mkimage.c (main): Fix format-security warning.
13892 * util/grub-mkrelpath.c (main): Likewise.
13893 * util/grub-probe.c (main): Likewise.
13895 2012-02-03 Richard Laager <rlaager@wiktel.com>
13897 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
13899 Put back lost PRINT_DRIVE.
13901 2012-02-03 Richard Laager <rlaager@wiktel.com>
13903 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
13904 (grub_guess_root_devices): Replace strlen with sizeof.
13906 (find_root_devices_from_poolname): Remove unused variable.
13909 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13911 Support install on multi-device filesystems.
13913 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
13914 (grub_guess_root_devices): ...this. Return char **. All users updated.
13915 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
13917 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
13918 (find_root_devices_from_poolname): ... here.
13919 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
13921 (grub_guess_root_device): Rename to ...
13922 (grub_guess_root_devices): ... this. Return char **. All users updated.
13923 * util/grub-install.in: Handle multi-device filesystems.
13924 * util/grub-probe.c (probe). Make device_names a char **. Add delim
13925 argument. All users updated.
13926 Handle multi-device filesystems.
13927 Use 'delim' as separator.
13928 Remove device check to allow filesystems on file.
13929 (main): Support -0 argument. Handle multi-device.
13930 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
13931 Fix a cross-device check while on it.
13932 (arguments): Remove root_dev.
13933 (argp_parser): Remove -r.
13934 (main): Remove root_dev.
13936 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13938 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
13940 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13942 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
13944 Reported by: NODA, Kai <nodakai>.
13946 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13950 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
13952 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
13953 (grub_ehci_setup_qh): Likewise.
13954 (grub_ehci_find_qh): Likewise.
13955 (grub_ehci_transaction): Likewise.
13956 (grub_ehci_setup_transfer): Likewise.
13957 (grub_ehci_check_transfer): Likewise.
13958 (grub_ehci_portstatus): Likewise.
13959 (grub_ehci_detect_dev): Likewise.
13960 (grub_ehci_transfer_controller_data): New field td_last_phys.
13961 (grub_ehci_setup_transfer): Fill td_last_phys.
13962 (grub_ehci_check_transfer): Use td_last_phys.
13964 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
13966 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
13967 if no submenu is present.
13969 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13973 * include/grub/usb.h (grub_usbms_protocol_t): New values
13974 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
13975 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
13976 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
13977 (grub_usbms_dev): Add subclass, protocol and intrpt.
13978 Remove in_maxsz and out_maxsz.
13979 (grub_usbms_reset): Rename to ...
13980 (grub_usbms_bo_reset): .. this.
13981 (grub_usbms_cbi_cmd): New function.
13982 (grub_usbms_cbi_reset): Likewise.
13983 (grub_usbms_reset): Likewise.
13984 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
13985 (grub_usbms_transfer): Rename to ...
13986 (grub_usbms_transfer_bo): ... this.
13987 (grub_usbms_transfer_cbi): Likewise.
13988 (grub_usbms_transfer): Likewise.
13990 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13991 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13993 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
13994 the support for the CS5536 modification thereos and few bugfixes.
13996 * grub-core/Makefile.core.def (ehci): New module.
13997 * grub-core/bus/usb/ehci.c: New file.
13998 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
13999 port and hubaddr. All users updated.
14000 Save port and hubaddr into dev structure.
14001 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14003 * include/grub/pci.h (grub_dma_phys2virt): New function.
14004 (grub_dma_virt2phys): Likewise.
14005 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14007 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14009 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14010 check as some mkfs implementations omit it.
14012 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14014 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14016 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14018 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14019 Add new member volname2.
14020 (grub_jfs_label): Use volname2 if available.
14022 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14024 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14025 over last_mounted as seen in image generated by mkfs.nilfs2.
14026 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14028 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14030 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14031 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14032 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14034 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14036 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14039 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14041 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14042 subvolume name (by removing a bogus and useless check).
14044 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14046 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14047 sizeof while on it.
14049 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14051 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14052 (grub_scsi_read_capacity10): ... this.
14053 (grub_scsi_read_capacity16): New function.
14054 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14056 Fix off-by-one error.
14057 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14059 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14060 (grub_scsi_read_capacity10): ... this.
14061 (grub_scsi_read_capacity_data): Rename to ...
14062 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14063 (grub_scsi_read_capacity16): New struct.
14064 (grub_scsi_read_capacity16_data): Likewise.
14065 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14066 grub_scsi_cmd_read_capacity10.
14067 New command grub_scsi_cmd_read_capacity16.
14069 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14071 SCSI >2TiB support.
14073 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14074 (grub_scsi_write16): Likewise.
14075 (grub_scsi_read): Use read16 when necessary.
14076 (grub_scsi_write): Likewise.
14077 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14078 (grub_scsi_write16): Likewise.
14079 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14081 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14083 SCSI write support (for usbms mainly).
14085 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14087 (grub_scsi_write): Implement.
14088 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14090 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14092 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14095 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14097 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14099 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14101 * po/POTFILES.in: Regenerate.
14103 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14105 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14106 with grub_printf to avoid unnecessary fatal failure.
14108 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14110 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14111 (INT_MAX): Likewise.
14112 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14113 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14114 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14115 (strcpy): Likewise.
14116 (strstr): Likewise.
14117 (strchr): Likewise.
14118 (strncpy): Likewise.
14119 (strcat): Likewise.
14120 (strncat): Likewise.
14121 (strcoll): Likewise.
14122 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14123 (GRUB_INT_MAX): Likewise.
14125 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14127 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14129 (optimize_utf8): Likewise.
14130 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14132 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14134 * grub-core/boot/i386/pc/lnxboot.S: Use
14135 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14136 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14138 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14140 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14142 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14144 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14145 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14146 now to avoid double free.
14147 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14149 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14150 * util/grub-probe.c (escape_of_path): Always return a new copy.
14151 (print_full_name): Escape path.
14152 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14153 Fix hints on abstractions.
14155 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14157 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14158 Don't add "root" line if no compatibility hont is available.
14159 Suggested by: Seth Goldberg.
14161 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14163 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14164 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14165 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14166 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14168 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14170 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14172 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14174 * util/grub-pe2elf.c (ehdr): Make static.
14176 (num_sections): Likewise.
14177 (offset): Likewise.
14179 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14181 Eliminate ofpath limits and possible overflows.
14183 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14184 (OF_PATH_MAX): Removed.
14185 (MAX_DISK_CAT): New const.
14186 (find_obppath): Use allocated rather than preallocated buffer.
14187 Return result. Argument of_path removed. All users updated.
14188 Add missing fdstat.
14189 (xrealpath): New function.
14190 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14191 Allocate rather than use preallocated buffer. All users updated.
14192 (__of_path_common): Use allocated rather than preallocatecd buffer.
14193 Return result. Argument of_path removed. All users updated.
14194 (vendor_is_ATA): Read only needed part form the file.
14195 (check_sas): Allocate depending on contents rather than fixed.
14196 (main) [STANDALONE]: Handle NULL result.
14198 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14200 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14202 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14204 Cryptodisk write support.
14206 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14207 (grub_cryptodisk_decrypt): Moved logic to ...
14208 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14209 (grub_cryptodisk_write): Implement.
14210 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14211 (grub_util_fd_write): ... this. Make global.
14212 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14214 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14216 * include/grub/list.h (grub_list_remove): Don't crash if element is
14219 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14221 Rename ofconsole to console.
14223 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14224 as sysnonym to console.
14225 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14226 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14227 Rename grub_ofconsole_ to grub_console_. All users updated
14228 (grub_console_term_output): Rename "ofconsole" to "console".
14229 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14232 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14234 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14236 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14237 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14238 GRUB_DISK_DEVICE_FILE_ID.
14240 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14242 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14243 and improve performance.
14245 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14247 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14248 missing ieee1275/ prefix on whole disk.
14250 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14252 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14253 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14255 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14257 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14259 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14261 Merge common RAID and LVM logic to an abstract diskfilter.
14262 Add LDM support using the same framework.
14264 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14265 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14266 (libgrubmods): Remove grub-core/disk/raid.c and
14267 grub-core/partmap/gpt.c.
14268 * grub-core/Makefile.core.def (ldm): New module.
14269 (raid): Renamed to diskfilter. All users updated.
14270 * grub-core/disk/raid.c: Moved to ...
14271 * grub-core/disk/diskfilter.c: ... here.
14272 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14274 (find_array): Renamed to ...
14275 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14276 (grub_is_array_readable): Renamed to ...
14277 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14278 (insert_array): New argument id.
14279 (is_node_readable): New function.
14280 (scan_device): Rename to ...
14281 (scan_disk): .. this. Restrict to one disk.
14282 (scan_devices): New function.
14283 (grub_diskfilter_iterate): Support multi-LV.
14284 Skip invisible and nameless LVs.
14285 (grub_diskfilter_memberlist): Support multi-LV.
14286 (grub_diskfilter_read_node): New function.
14287 (grub_raid_read): Most of logic moved to ...
14288 (read_segment): ... here
14289 (read_lv): New function.
14290 (grub_diskfilter_get_vg_by_uuid): New function.
14291 (grub_diskfilter_make_raid): Likewise.
14292 * grub-core/disk/ldm.c: New file.
14293 * grub-core/disk/lvm.c (vg_list): Removed.
14294 (lv_count): Likewise.
14295 (scan_depth): Likewise.
14296 (is_lv_readable): Likewise.
14297 (grub_lvm_getvalue): Advance pointer past the number.
14298 (find_lv): Removed.
14299 (do_lvm_scan): Refactored into ...
14300 (grub_lvm_detect): ... this. Support raid.
14301 (grub_lvm_iterate): Removed.
14302 (grub_lvm_memberlist): Likewise.
14303 (grub_lvm_open): Likewise.
14304 (grub_lvm_close): Likewise.
14305 (read_lv): Likewise.
14306 (read_node): Likewise.
14307 (is_node_readable): Likewise.
14308 (is_lv_readable): Likewise.
14309 (grub_lvm_read): Likewise.
14310 (grub_lvm_write): Likewise.
14311 (grub_lvm_dev): Use diskfilter
14312 (GRUB_MOD_INIT): Likewise.
14313 (GRUB_MOD_FINI): Likewise.
14314 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14316 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14317 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14318 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14319 grub_diskfilter_read_node.
14320 Fix a bug with xor.
14321 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14322 grub_diskfilter_read_node.
14323 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14324 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14325 (grub_disk_dev_iterate): Move from here...
14326 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14327 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14329 (grub_hostdisk_find_partition_start): Likewise.
14330 (grub_hostdisk_os_dev_to_grub_drive): New function.
14331 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14332 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14333 * util/getroot.c (make_device_name): ... here.
14334 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14336 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14337 * grub-core/kern/emu/hostdisk.c
14338 (convert_system_partition_to_system_disk): Move to ...
14339 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14340 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14341 * util/getroot.c (device_is_wholedisk): ... here.
14342 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14343 * util/getroot.c (find_system_device): ... here.
14344 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14346 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14347 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14349 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14351 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14353 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14354 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14355 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14357 * include/grub/raid.h: Renamed to ...
14358 * include/grub/diskfilter.h: ... this.
14359 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14360 (GRUB_RAID_LAYOUT_*): Make into array.
14361 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14362 (grub_diskfilter_vg): New struct.
14363 (grub_diskfilter_pv_id): Likewise.
14364 (grub_raid_member): Removed.
14365 (grub_raid_array): Likewise.
14366 (grub_diskfilter_pv): New struct.
14367 (grub_diskfilter_lv): Likewise.
14368 (grub_diskfilter_segment): Likewise.
14369 (grub_diskfilter_node): Likewise.
14370 (grub_diskfilter_get_vg_by_uuid): New proto.
14371 (grub_raid_register): Inline.
14372 (grub_diskfilter_unregister): Likewise.
14373 (grub_diskfilter_make_raid): New proto.
14374 (grub_diskfilter_vg_register): Likewise.
14375 (grub_diskfilter_read_node): Likewise.
14376 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14377 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14378 (grub_util_is_ldm): Likewise.
14379 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14380 (grub_hostdisk_find_partition_start): Likewise.
14381 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14382 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14384 (grub_gpt_partition_map_iterate): New proto.
14385 * include/grub/lvm.h (grub_lvm_vg): Removed.
14386 (grub_lvm_pv): Likewise.
14387 (grub_lvm_lv): Likewise.
14388 (grub_lvm_segment): Likewise.
14389 (grub_lvm_node): Likewise.
14390 * util/getroot.c [...]
14391 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14392 (probe_abstraction): Likewise.
14393 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14394 (main): Remove dead logic.
14396 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14398 Simplify root device discover and don't fail when trying to open
14401 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14403 (get_diskname_from_path): Likewise.
14404 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14407 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14409 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14411 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14413 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14416 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14418 * util/grub-install.in: Add missing \.
14419 Reported by: gentoofan
14421 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14423 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14424 (direct_read): Use correct compressed size.
14425 (grub_squash_read_data): Likewise.
14427 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14429 * docs/grub.texi (Platform limitations): New section.
14430 (Platform-specific operations): Likewise.
14431 * docs/grub-dev.texi (Porting): Likewise.
14433 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14435 IEEE1275 disk write support.
14437 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14439 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14440 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14441 and seek loginc to ...
14442 (grub_ofdisk_prepare): ... here.
14443 (grub_ofdisk_write): Implement.
14445 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14447 ARC disk write support.
14449 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14450 (reopen): New argument writable. All users updated.
14451 Handle required access mode.
14452 (grub_arcdisk_write): Implement.
14453 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14454 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14456 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14458 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14459 (read_sblock): Don't attempt to read superblocks outside the disk size.
14461 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14463 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14464 first superblock to find the second one when possible.
14466 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14468 * util/grub-install.in: Fix an ARC bug.
14469 Print a warning if no platform-specific setup is available.
14471 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14473 Use static allocation rather than scratch pointer in reed_solomon.
14474 It decreases its size significantly and avoids a variable in .text.
14476 * grub-core/lib/reed_solomon.c (scratch): Removed.
14477 (chosenstat): New const or static array.
14479 (errpot): Likewise.
14480 (errpos): Likewise.
14483 (errvals): Likewise.
14484 (eqstat): Likewise.
14485 (pol_evaluate): Replace x with log_x argument. All users updated.
14486 (syndroms): Removed.
14487 (gauss_solve): Use statically allocated arrays.
14488 (rs_recover): Likewise.
14489 Calculate syndroms directly.
14490 (decode_block): Use statically allocated arrays.
14491 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14492 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14494 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14496 Eliminate fixed limit on reed solomon decoder length.
14498 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14499 rather than hardcoding the address.
14500 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14501 no_reed_solomon_length.
14502 Move gate_a20 to no-reed-solomon part.
14503 Don't force a particular size of no reed-solomon part.
14504 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14506 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14507 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14509 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14511 * grub-core/commands/wildcard.c (match_files): Handle filenames
14512 without explicit device.
14513 (wildcard_expand): Don't add explicit device if not already present.
14514 * tests/grub_script_echo1.in: Add a new expansion test.
14516 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14518 Replace single-linked with double-linked lists. It results in more
14519 compact and more efficient code.
14521 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14522 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14523 (grub_list_remove): Moved from here ...
14524 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14525 (grub_prio_list_insert): Set prev.
14526 * include/grub/list.h (grub_list): Add prev. All users updated.
14528 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14530 Handle newer autotools. Add some missing quotes while on it.
14532 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14533 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14534 (pkgdata_DATA): ... here.
14535 * Makefile.util.def (update-grub_lib): Removed.
14536 * conf/Makefile.common (pkglib_DATA): Removed.
14537 (pkglib_SCRIPTS): Likewise.
14538 (pkgdata_DATA): New variable.
14539 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14541 Add missing quotes.
14542 Remove unused variable while on it.
14543 * tests/util/grub-shell.in: Likewise.
14544 * util/grub-install.in: Likewise.
14545 * util/grub-mkconfig.in: Likewise.
14546 * util/grub-mknetdir.in: Likewise.
14547 * util/grub-mkrescue.in: Likewise.
14548 * util/grub-mkstandalone.in: Likewise.
14549 * util/grub.d/00_header.in: Likewise.
14550 * util/grub.d/10_hurd.in: Likewise.
14551 * util/grub.d/10_illumos.in: Likewise.
14552 * util/grub.d/10_kfreebsd.in: Likewise.
14553 * util/grub.d/10_linux.in: Likewise.
14554 * util/grub.d/10_netbsd.in: Likewise.
14555 * util/grub.d/10_windows.in: Likewise.
14556 * util/grub.d/20_linux_xen.in: Likewise.
14557 * util/grub.d/30_os-prober.in: Likewise.
14558 * util/update-grub_lib.in: Removed.
14560 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14562 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14563 a workaround for intel problem.
14565 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14566 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14567 2012-01-23 pfsmorigo
14569 * util/grub-install.in: Support dd'in into PreP partition.
14570 * util/grub-probe.c (probe): Support discovering partition type.
14571 (main): Support -t msdos_parttype.
14573 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14575 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14576 infinite recursion using counter.
14577 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14578 init to skip it if the magic check fails.
14579 (dec_stream_header): Init s->crc32.
14581 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14582 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14583 2012-01-22 Richard Laager <rlaager@wiktel.com>
14585 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14587 (find_bestub): Determine correct size.
14588 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14589 (scan_disk): Align the size down.
14590 Call check pool before find_bestub to have ashift.
14592 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14594 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14595 dprintf in no-malloc zone.
14597 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14599 * configure.ac: Add back in test for limits.h.
14601 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14603 Support 4K-sector NTFS.
14605 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14606 (grub_ntfs_data): Remove blocksize.
14607 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14608 Remove data argument. All users updated.
14610 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14612 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14613 being in .text to avoid dprel references.
14614 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14615 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14616 (grub_arch_highmemsize): Likewise.
14617 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14618 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14619 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14621 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14623 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14625 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14626 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14628 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14630 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14632 (grub_set_datetime_cmos): Likewise.
14634 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14636 Make XZ compression parameters dependent on target and not host CPU.
14638 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14639 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14641 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14643 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14644 set but not used variable.
14646 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14648 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14649 created when no uuid support is compiled into mkfs.reiser.
14651 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14653 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14654 (utf8_to_macroman): Do the opposite.
14655 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14657 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14659 * configure.ac: Refise build qemu_mips w/o unifont.
14661 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14663 Eliminate grub_min/grub_max prone to overflow usage.
14665 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14666 (poll_nonroot_hub): Likewise.
14667 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14668 (grub_affs_label): Likewise.
14669 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14670 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14671 (grub_hfs_label): Likewise.
14672 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14673 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14674 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14675 (zap_leaf_array_get): Likewise.
14676 (dnode_get_path): Likewise.
14677 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14678 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14679 * grub-core/script/execute.c (grub_script_break): Likewise.
14680 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14682 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14683 * include/grub/misc.h (grub_min): Removed.
14684 (grub_max): Likewise.
14686 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14688 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14691 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14693 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14695 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14697 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14699 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14701 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14702 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14704 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14706 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14707 rather than a hack for grub_strncasemap.
14709 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14711 Support multiple initrds
14712 Note: part of this was accidently committed in r3739.
14714 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14716 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14717 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14718 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14719 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14720 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14722 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14724 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14725 disks with unknown size.
14726 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14728 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14730 Remove defines pertaining to arbitrary limits not affecting GRUB
14733 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14734 (EXT2_MAX_SYMLINKCNT): Likewise.
14735 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14736 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14737 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14738 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14739 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14740 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14741 (DN_MAX_OBJECT_SHIFT): Likewise.
14742 (DN_MAX_OFFSET_SHIFT): Likewise.
14743 (DN_MAX_OBJECT): Likewise.
14744 (DNODES_PER_LEVEL_SHIFT): Likewise.
14745 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14746 (SPA_MAXBLOCKSIZE): Likewise.
14747 (SPA_BLOCKSIZES): Likewise.
14748 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14749 (MZAP_MAX_BLKSZ): Likewise.
14751 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14753 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14754 handle NULL appropriately.
14757 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14761 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14763 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14764 * configure.ac: Fix efiemu check.
14766 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14768 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14770 Reported by: adamwill
14772 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14774 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14776 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14778 Fix handling of wide characters in gfxterm.
14780 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14781 (clear_char): Likewise.
14782 (paint_char): Skip code == NULL chars.
14783 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14785 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14787 * grub-core/normal/charset.c: Move comment to right place.
14789 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14791 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14792 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14793 (grub_affs_mount): Revert the correct version checking.
14795 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14797 * docs/grub.texi (Unicode): Mention several other unsupported features.
14799 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14801 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14802 case statements as compile-time one.
14803 (direct_read): Prevent spurious warnings.
14804 (grub_squash_read_data): Likewise.
14806 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14808 Various squash4 fixes and LZO and XZ support.
14810 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14811 Add xzembed source files.
14812 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14813 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14814 (grub_squash_inode): New subtype long_dir.
14815 (SQUASH_TYPE_LONG_DIR): New inode type.
14816 (COMPRESSION): New enum.
14817 (XZBUFSIZ): New const.
14818 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14819 (read_chunk): Use data->decompress.
14820 (zlib_decompress): New function.
14821 (lzo_decompress): Likewise.
14822 (xz_decompress): Likewise.
14823 (squash_mount): Set new data fields.
14824 (grub_squash_iterate_dir): Handle long dir.
14825 (squash_unmount): Free xzdec and xzbuf.
14826 (grub_squash_open): Check ino type.
14827 (direct_read): Stylistic fixes. Use data->decompress.
14828 (grub_squash_read_data): Likewise.
14829 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14830 (get_byte): Likewise.
14831 (grub_zlib_disk_read): Removed.
14832 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14833 (GRUB_POSIX_BOOL_DEFINED): New define.
14834 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14835 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14836 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14837 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14839 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14841 Don't override more informative errors.
14843 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14844 * grub-core/font/font.c (open_section): Likewise.
14845 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14846 filename. Don't override errors.
14847 (grub_cmd_openbsd_ramdisk): Don't override errors.
14848 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14849 (grub_cmd_initrd): Likewise.
14850 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14851 (grub_cmd_initrd): Likewise.
14852 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14853 (grub_cmd_linux): Likewise.
14854 (grub_cmd_initrd): Likewise.
14855 (grub_cmd_payload): Likewise.
14856 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14857 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14858 (grub_cmd_module): Likewise.
14859 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14860 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14861 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
14862 (grub_cmd_xnu_mkext): Likewise.
14863 (grub_cmd_xnu_ramdisk): Likewise.
14864 (grub_xnu_check_os_bundle_required): Likewise.
14865 (grub_xnu_load_kext_from_dir): Likewise.
14866 (grub_cmd_xnu_kextdir): Likewise.
14867 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
14869 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14871 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
14872 as 1024 in block size field. Found on one of my test images.
14873 Small optimisation while on it.
14875 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14877 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
14878 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
14879 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
14880 performance fixes while on it.
14881 (grub_sfs_close): Fix memory leak while on it.
14882 (grub_sfs_label): Convert Latin1 to UTF-8.
14884 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14886 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
14887 space to avoid overflows.
14888 (grub_hfs_label): Convert from macroman to UTF-8.
14890 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14892 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
14894 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14896 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
14898 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14900 * unicode: Import Unicode 6.0 data.
14902 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14904 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
14907 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14909 Avoid cutting in the middle of UTF-8 character.
14911 * include/grub/charset.h (grub_getend): New function.
14912 * grub-core/script/function.c (grub_script_function_find): Use
14914 * grub-core/normal/completion.c (add_completion): Likewise.
14916 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14918 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
14919 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
14920 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
14921 (GRUB_UNICODE_TAG_END): Likewise.
14922 (GRUB_UNICODE_LAST_VALID): Likewise.
14924 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14926 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
14927 len and make it smaller. All users updated.
14928 * util/import_unicode.py: Put length and not end character.
14931 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14933 Make better Unicode-compliant and unify some UTF-8 code pathes.
14935 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
14937 (grub_is_valid_utf8): Use grub_utf8_process.
14938 Check resulting code range.
14939 (grub_utf8_to_ucs4): Use grub_utf8_process.
14940 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
14943 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14945 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
14947 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14949 * docs/grub.texi (Filesystems): Mention AFS.
14951 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14953 * docs/grub.texi (Filesystems): Clarify restrictions.
14954 (Regexp): Mention non-Unicode regexp behaviour.
14955 (Other): Mention non-Unicode matching behaviour.
14957 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14959 Make HFS implementation use MacRoman.
14961 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
14962 (macroman): New const array.
14963 (macroman_to_utf8): New function.
14964 (utf8_to_macroman): Likewise.
14965 (grub_hfs_find_dir): Use utf8_to_macroman.
14966 (grub_hfs_dir): Use macroman_to_utf8.
14967 Set case_insensitive.
14969 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14971 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
14973 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14975 Integrate hints into autogeneration scripts.
14977 * docs/grub.texi (Filesystems): Add a hostdisk example.
14978 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
14979 (grub-probe): Add ofpath.
14980 * gentpl.py: Remove group nosparc64.
14981 * grub-core/commands/search.c (cache_entry): New struct.
14983 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
14984 * grub-core/commands/search_wrap.c (options): Add platform-specific
14986 (grub_cmd_search): Handle platform-specific hints.
14987 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
14988 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
14989 (grub_util_biosdisk_data): Likewise.
14990 (grub_util_biosdisk_open): Set device_map.
14991 (read_device_map): Handle "" as indication of no map.
14993 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
14994 (grub_util_biosdisk_get_compatibility_hint): New function.
14995 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
14996 * include/grub/emu/hostdisk.h
14997 (grub_util_biosdisk_get_compatibility_hint): New proto.
14998 * util/grub-install.in: Don't call grub-mkdevicemap.
14999 Add platform-specific hint to load.cfg.
15000 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15001 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15002 hints. Set root preliminary to compatibility hint, not to OS name.
15003 * util/grub-probe.c (PRINT_*): Add hints.
15004 (print): Make static.
15005 (escape_of_path): New function.
15006 (guess_bios_drive): Likewise.
15007 (guess_efi_drive): Likewise.
15008 (guess_baremetal_drive): Likewise.
15009 (print_full_name): Likewise.
15010 (probe): Handle hints.
15012 * util/ieee1275/devicemap.c: Removed.
15013 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15015 (grub_util_devname_to_ofpath): Return NULL on failure.
15017 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15019 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15021 * po/POTFILES.in: Regenerated.
15023 Allow purely long options
15025 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15026 (SHORT_ARG_USAGE): Likewise.
15027 (grub_arg_show_help): Compare opt with help_options.
15028 (parse_option): Receive opt as argument. If makes big simplificatons.
15031 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15033 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15034 Restructure to avoid warning.
15036 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15038 * util/grub-install.in: Account for possible escaped comma in device
15041 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15043 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15046 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15048 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15049 allocation and zero-setting.
15050 (grub_ieee1275_get_devname): Check that alias is complete.
15052 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15054 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15055 unaligned segments.
15057 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15059 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15061 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15062 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15063 Add ieee1275 prefix.
15065 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15067 * docs/grub.texi (Filesystems): Update.
15069 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15071 Support odc, newc and bigendian cpio formats.
15073 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15074 * grub-core/Makefile.core.def (newc): New module.
15076 (cpio_be): Likewise.
15077 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15079 (MAGIC2): Likewise.
15080 (head) [MODE_ODC]: Adapt for the format.
15081 (head) [MODE_NEWC]: Likewise.
15082 (head) [!MODE_*]: Write fields of interest as arrays.
15083 (MAGIC_USTAR): Removed.
15084 (read_number) [MODE_NEWC]: Change to hex.
15085 (read_number) [!MODE_*]: Parse binary arrays.
15086 (grub_cpio_find_file): Factor out the code for better structure and
15087 always use read_number.
15088 (grub_cpio_mount): Use MAGIC and MAGIC2.
15089 (grub_cpio_dir): Exit on first hook non-0 return.
15090 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15091 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15092 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15093 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15094 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15095 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15096 * grub-core/fs/newc.c: New file.
15097 * grub-core/fs/odc.c: Likewise.
15098 * grub-core/fs/cpio_be.c: Likewise.
15100 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15102 Fix handling of tar numbers occupying the whole field.
15104 * grub-core/fs/cpio.c (read_number): New function.
15105 (grub_cpio_find_file): Use read_number instead of strtoull.
15107 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15109 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15110 occupying the whole field size.
15112 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15114 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15116 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15118 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15120 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15122 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15123 TARGET_IMG_LDFLAGS.
15125 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15127 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15128 (mountinfo_entry): Increase the field size to take escaping into
15130 (find_root_device_from_libzfs): Add one byte to size of strings for
15133 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15135 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15137 * util/grub-setup.c (setup): Likewise.
15139 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15141 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15144 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15146 * docs/grub.texi (Internationalisation): New section.
15148 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15150 * docs/grub.texi (Loopback booting): New section.
15152 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15154 * util/grub-mkstandalone.in: Fix minor typo errors.
15156 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15158 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15160 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15161 net/icmp.c and net/icmp6.c.
15162 (http): New module.
15163 (priority_queue): Likewise.
15164 * grub-core/io/bufio.c: Rewritten.
15165 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15166 TYPE_WITH_CONFIGFILE_OPTION.
15167 (legacy_commands): Add bootp and dhcp.
15168 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15169 (grub_legacy_parse): Likewise.
15170 * grub-core/lib/priority_queue.c: New file.
15171 * grub-core/net/arp.c: Add missing license header.
15172 (arp_find_entry): Removed.
15173 (arp_find_entry): Likewise.
15174 (grub_net_arp_resolve): Rename to ...
15175 (grub_net_arp_send_request): ...this.
15176 (grub_net_arp_receive): New card argument.
15177 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15178 Set router and DNS server.
15179 (grub_net_configure_by_dhcp_ack): Handle routing information.
15180 (grub_cmd_bootp): Set checksum.
15181 (grub_bootp_init): Remove net_dhcp.
15182 * grub-core/net/dns.c: New file.
15183 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15185 (get_card_packet): Handle allocation.
15186 (grub_efinet_findcards): Set mtu.
15187 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15188 (get_card_packet): Handle allocation.
15189 (emucard): Set mtu.
15190 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15191 (GRUB_MOD_INIT): Set mtu.
15192 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15194 (get_card_packet): Handle allocation.
15195 (grub_ofnet_findcards): Set mtu.
15196 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15198 (grub_net_recv_ethernet_packet): Handle IPv6.
15199 * grub-core/net/http.c: New file.
15200 * grub-core/net/icmp.c: Likewise.
15201 * grub-core/net/icmp6.c: Likewise.
15202 * grub-core/net/ip.c (ip6addr): New type.
15203 (ip6hdr): Likewise.
15204 (reassemble): Likewise.
15205 (cmp): New function.
15206 (reassembles): New variable.
15207 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15208 (id): New variable.
15209 (send_fragmented): New function.
15210 (grub_net_send_ip_packet): Rename to ...
15211 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15213 (grub_net_recv_ip_packets): Rename to ...
15214 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15215 (free_rsm): New function.
15216 (free_old_fragments): Likewise.
15217 (grub_net_recv_ip4_packets): New function.
15218 (grub_net_send_ip6_packet): Likewise.
15219 (grub_net_send_ip_packet): Likewise.
15220 (grub_net_recv_ip6_packets): Likewise.
15221 (grub_net_recv_ip_packets): Likewise.
15222 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15223 (LINK_LAYER_CACHE_SIZE): New const.
15224 (link_layer_find_entry): New function.
15225 (grub_net_link_layer_add_address): Likewise.
15226 (grub_net_link_layer_resolve_check): Likewise.
15227 (grub_net_link_layer_resolve): Likewise.
15228 (grub_net_ipv6_get_slaac): Likewise.
15229 (grub_net_ipv6_get_link_local): Likewise.
15230 (grub_cmd_ipv6_autoconf): Likewise.
15231 (parse_ip): Handle one number representation.
15232 (parse_ip6): New functoion.
15233 (match_net): Handle IPv6.
15234 (grub_net_resolve_address): Handle IPv6 and DNS.
15235 (grub_net_resolve_net_address): Handle IPv6.
15236 (route_cmp): New function.
15237 (grub_net_route_address): Find best route.
15238 (grub_net_addr_to_str): Handle IPv6.
15239 (grub_net_addr_cmp): New function.
15240 (grub_net_add_addr): Register local route.
15241 (print_net_address): Handle net address.
15242 (grub_net_poll_cards): Retransmit TCP.
15243 (grub_net_poll_cards_idle_real): Likewise.
15244 (have_ahead): New function.
15245 (grub_net_seek_real): Use underlying seek.
15246 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15247 * grub-core/net/tcp.c: New file.
15248 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15249 (cmp): New function.
15251 (tftp_receive): Handle unordered input.
15252 (destroy_pq): New function.
15253 (tftp_close): Close pq.
15254 * grub-core/net/udp.c: Put missing license header.
15255 (grub_net_udp_socket): New function.
15256 (udp_socket_register): Likewise.
15257 (grub_net_udp_close): Likewise.
15258 (grub_net_recv_udp_packet): Check checksum.
15259 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15260 * include/grub/misc.h (grub_memchr): New function.
15261 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15262 (grub_net_card_driver): Return buf in recv.
15263 (grub_net_slaac_mac_list): New struct.
15264 (grub_network_level_protocol_id): Add ipv6.
15265 (grub_net_network_level_addr): Likewise.
15266 (grub_net_network_level_net_addr): Likewise.
15267 (grub_net_app_protocol): Add seek.
15268 (grub_net_socket): Removed.
15269 (grub_net_sockets): Likewise.
15270 (grub_net_socket_register): Likewise.
15271 (grub_net_socket_unregister): Likewise.
15272 (FOR_NET_SOCKETS): Likewise.
15273 (grub_net_add_addr): Add const.
15274 (GRUB_NET_BOOTP_*): New enum.
15275 (grub_net_addr_cmp): New proto.
15276 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15277 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15278 (grub_net_hwaddr_to_str): NEw proto.
15279 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15280 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15281 (grub_dns_init): New proto.
15282 (grub_dns_fini): Likewise.
15283 (grub_net_tcp_retransmit): Likewise.
15284 (grub_net_link_layer_add_address): Likewise.
15285 (grub_net_link_layer_resolve_check): Likewise.
15286 (grub_net_link_layer_resolve): Likewise.
15287 (grub_net_dns_lookup): Likewise.
15288 (grub_net_add_dns_server): Likewise.
15289 (grub_net_remove_dns_server): Likewise.
15290 (GRUB_NET_TRIES): New const.
15291 (GRUB_NET_INTERVAL): Likewise.
15292 * include/grub/net/arp.h: Mostly rewritten.
15293 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15294 * include/grub/net/ip.h: Mostly rewritten.
15295 * include/grub/net/netbuff.h: Indent.
15296 * include/grub/net/tcp.h: New file.
15297 * include/grub/net/udp.h: Mostly rewritten.
15298 * include/grub/priority_queue.h: New file.
15299 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15300 (grub_swap_bytes64_compile_time): Likewise.
15301 (grub_cpu_to_be16_compile_time): Likewise.
15302 (grub_cpu_to_be32_compile_time): Likewise.
15303 (grub_cpu_to_be64_compile_time): Likewise.
15304 (grub_be_to_cpu64_compile_time): Likewise.
15306 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15308 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15309 UINT_TO_PTR with cast.
15311 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15313 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15316 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15318 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15321 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15323 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15326 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15328 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15329 Add missing const attribute.
15330 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15332 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15335 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15337 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15339 (serpent_setkey): Likewise.
15340 (serpent_encrypt_internal): Likewise.
15341 (serpent_decrypt_internal): Likewise.
15342 (serpent_encrypt): Don't put an alignment-increasing cast.
15343 (serpent_decrypt): Likewise.
15344 (serpent_test): Likewise.
15346 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15348 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15350 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15352 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15354 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15356 (PTR_TO_UINT64): Likewise.
15357 (PTR_TO_UINT32): Likewise.
15359 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15361 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15363 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15366 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15368 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15369 text_width > available width a bit more gracefully.
15371 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15373 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15374 current address calculation.
15376 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15378 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15380 (encode_block): Likewise.
15382 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15384 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15387 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15389 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15390 non-RS part to avoid RS messing with GDT.
15391 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15392 Increase to suit in realmode routines.
15394 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15396 * grub-core/kern/i386/realmode.S: Increase alignment.
15397 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15399 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15401 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15403 (syndroms): Compute 0 syndrom.
15404 (rs_recover): Use 0 syndrom.
15406 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15408 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15410 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15412 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15415 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15417 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15419 (get_top_pad): Likewise.
15420 (get_right_pad): Likewise.
15421 (get_bottom_pad): Likewise.
15423 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15425 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15427 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15429 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15430 attribute as the structure isn't guaranteed to be properly aligned.
15431 (grub_efi_pci_device_path): Likewise.
15432 (grub_efi_pccard_device_path): Likewise.
15433 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15434 specify the size of `memory_type'.
15435 (grub_efi_vendor_device_path): Likewise.
15436 (grub_efi_controller_device_path): Likewise.
15437 (grub_efi_acpi_device_path): Likewise.
15438 (grub_efi_expanded_acpi_device_path): Likewise.
15439 (grub_efi_atapi_device_path): Likewise.
15440 (grub_efi_scsi_device_path): Likewise.
15441 (grub_efi_fibre_channel_device_path): Likewise.
15442 (grub_efi_1394_device_path): Likewise.
15443 (grub_efi_usb_device_path): Likewise.
15444 (grub_efi_usb_class_device_path): Likewise.
15445 (grub_efi_i2o_device_path): Likewise.
15446 (grub_efi_mac_address_device_path): Likewise.
15447 (grub_efi_ipv4_device_path): Likewise.
15448 (grub_efi_ipv6_device_path): Likewise.
15449 (grub_efi_infiniband_device_path): Likewise.
15450 (grub_efi_uart_device_path): Likewise.
15451 (grub_efi_vendor_messaging_device_path): Likewise.
15452 (grub_efi_hard_drive_device_path): Likewise.
15453 (grub_efi_cdrom_device_path): Likewise.
15454 (grub_efi_vendor_media_device_path): Likewise.
15455 (grub_efi_file_path_device_path): Likewise.
15456 (grub_efi_protocol_device_path): Likewise.
15457 (grub_efi_piwg_device_path): Likewise.
15458 (grub_efi_bios_device_path): Likewise.
15460 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15462 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15463 (grub_ucs4_to_utf8_alloc): Likewise.
15464 (grub_ucs4_to_utf8): Likewise.
15465 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15466 (grub_ucs4_to_utf8_alloc): Likewise.
15468 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15470 AFFS never uses unicode.
15472 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15473 (grub_latin1_to_utf8): New inline function.
15474 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15476 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15478 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15481 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15483 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15484 (grub_squash_dirent_header): Likewise.
15485 (read_chunk): Don't double swap.
15486 (grub_squash_iterate_dir): Fix swap sizes.
15488 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15490 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15492 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15494 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15495 (grub_hfs_iterate_dir): Likewise.
15497 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15499 Fix video on platforms where unaligned access is forbidden.
15500 Make several optimisations while on it.
15502 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15503 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15504 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15505 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15507 (grub_video_fbblit_replace_16bit_1bit):
15508 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15509 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15510 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15511 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15512 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15513 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15514 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15515 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15516 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15517 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15518 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15519 (grub_video_fbblit_replace_index_RGB888): Likewise.
15520 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15521 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15522 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15523 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15524 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15525 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15526 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15528 (grub_video_fbblit_blend_XXX565_1bit):
15529 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15530 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15531 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15533 * grub-core/video/fb/video_fb.c (common_blitter)
15534 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15535 (grub_video_fb_create_render_target_from_pointer)
15536 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15537 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15538 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15540 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15542 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15544 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15545 HH22 and HM10 relocations.
15547 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15549 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15551 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15553 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15554 allocation succeeded.
15556 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15558 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15559 argument a u8 pointer. All users updated.
15560 Handle unaligned buffers.
15562 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15564 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15565 add_part to workaround compiler bug.
15567 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15569 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15571 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15573 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15574 Reserve alignment invariants.
15575 (grub_multiboot_load): Likewise.
15576 (retrieve_video_parameters): Likewise.
15577 (grub_multiboot_make_mbi): Likewise.
15579 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15581 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15584 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15586 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15587 (grub_pata_pio_write): Likewise.
15589 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15591 Add noreturn attributes and remove unreachable code.
15593 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15595 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15596 code. Mark as noreturn.
15597 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15598 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15599 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15601 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15602 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15603 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15604 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15605 * include/grub/kernel.h (grub_main): Mark as noreturn.
15606 * include/grub/reader.h (grub_rescue_run): Likewise.
15608 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15610 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15611 redundant declaration.
15613 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15615 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15616 redundant declaration.
15617 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15619 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15621 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15622 to ensure alignment.
15623 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15624 alignment. Ensure tmp alignment.
15625 (grub_cmd_hdparm): Ensure buf alignment.
15626 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15627 to ensure alignment.
15628 (grub_ata_dumpinfo): Ensure text alignment.
15629 (grub_atapi_identify): Preserve alignment invariant.
15630 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15632 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15634 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15635 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15636 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15637 * include/grub/misc.h (grub_reboot)
15638 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15639 (grub_halt) [__mips__]: Likewise.
15641 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15643 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15644 Remove redundant declaration.
15645 (grub_mmap_get_post64): Likewise.
15646 (grub_mmap_get_upper): Likewise.
15647 (grub_mmap_get_lower): Likewise.
15649 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15651 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15652 uint32_t * to ensure alignment.
15653 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15655 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15657 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15658 uint16_t * to ensure alignment.
15659 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15662 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15664 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15665 to ensure alignment.
15666 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15668 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15670 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15671 Handle unaligned pointers.
15674 (fixup): Use byte access instead of v16at.
15675 (find_attr): Fix imporper usage of v32at.
15676 (read_data): Likewise.
15677 (list_file): Handle byte-swapping and unaligned strings.
15678 (grub_ntfs_label): Likewise.
15680 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15682 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15683 as it's not necessarily aligned.
15685 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15687 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15688 redundant declaration.
15689 (grub_serial_init): Likewise.
15690 (grub_terminfo_init): Likewise.
15692 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15694 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15696 (ZAP_HASH_IDX): Likewise.
15697 (ZAP_LEAF_HASH_SHIFT): Likewise.
15698 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15699 (LEAF_HASH): Likewise.
15700 (ZAP_LEAF_NUMCHUNKS): Likewise.
15701 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15702 alignment invariants. Return pointer. All users updated.
15703 (ZAP_LEAF_ENTRY): Make into inline function.
15706 (xor_out): Use grub_crypto_xor.
15707 (dnode_get_path): Use grub_get_unaligned.
15708 (nvlist_find_value): Likewise.
15709 (grub_zfs_nvlist_lookup_uint64): Likewise.
15710 (grub_zfs_nvlist_lookup_string): Likewise.
15711 (get_nvlist_size): Likewise.
15712 (grub_zfs_open): Likewise.
15713 (fill_fs_info): Likewise.
15714 (grub_zfs_dir): Likewise.
15715 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15716 alignment invariants.
15717 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15718 necessarily aligned.
15720 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15722 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15724 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15726 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15727 arithmetic to conserve alignment invariants.
15729 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15731 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15732 redundant declaration.
15733 (grub_efiemu_mm_obtain_request): Likewise.
15734 (grub_efiemu_prepare): Likewise.
15736 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15738 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15741 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15743 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15744 case of aunaligned recptr.
15745 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15747 (grub_hfsplus_btree_search): Handle unaligned index.
15749 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15751 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15752 to get freetag and skip.
15754 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15756 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15758 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15759 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15761 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15763 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15764 name for checksum and fix allocation algorithm.
15766 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15768 * include/grub/types.h (grub_properly_aligned_t): New type.
15769 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15770 (grub_get_unaligned16): Add explicit casts.
15771 (grub_get_unaligned32): Likewise.
15772 (grub_get_unaligned64): Likewise.
15773 (grub_set_unaligned16): New function.
15774 (grub_set_unaligned32): Likewise.
15776 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15778 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15780 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15782 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15783 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15784 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15786 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15788 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15791 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15793 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15794 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15796 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15798 Unify and improve RAID and crypto xor.
15800 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15801 changed to grub_crypto_xor
15802 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15803 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15804 Use bigger types when possible.
15806 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15808 * grub-core/disk/raid.c (scan_devices): Fix condition.
15810 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15812 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15813 Make name a const ptr.
15815 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15817 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15818 first argument a const pointer.
15819 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15820 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15822 (grub_children_iterate): Likewise.
15823 (grub_machine_mmap_iterate): Remove redundant declaration.
15825 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15827 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15828 (grub_cmd_acpi) [!x86]: Disable EBDA.
15830 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15832 Enable UTF8 in gnulib regexp.
15834 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15835 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15836 (isupper): Use grub_isupper.
15837 (isascii): New inline function.
15838 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15839 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15840 * grub-core/normal/charset.c (grub_utf8_process): New function.
15841 (grub_utf8_to_utf16): Use grub_utf8_process.
15842 (grub_encode_utf8_character): New function.
15843 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15844 * include/grub/charset.h (grub_utf8_process): New declaration.
15845 (grub_encode_utf8_character): Likewise.
15846 * include/grub/misc.h (grub_islower): New inline function.
15847 (grub_isupper): Likewise.
15848 (grub_strchrsub): Moved down to fix the definitions.
15850 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15852 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15855 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15857 * include/grub/loader.h (grub_loader_register_preboot_hook):
15858 Use struct preboot * and not void * for handle. All users updated.
15859 (grub_loader_unregister_preboot_hook): Likewise.
15861 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15863 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
15864 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
15865 UTF-16-BE. All users updated.
15866 (grub_hfsplus_cmp_catkey): Fix unicode handling.
15867 (grub_hfsplus_iterate_dir): Likewise.
15868 (grub_hfsplus_label): Likewise.
15870 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15872 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
15874 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
15876 Add missing const qualifiers.
15878 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
15879 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
15880 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
15881 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
15882 (grub_lvm_check_flag): Likewise.
15883 * grub-core/efiemu/i386/coredetect.c
15884 (grub_efiemu_get_default_core_name): Likewise
15885 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
15886 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
15887 * grub-core/fs/ntfs.c (fixup): Likewise.
15888 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
15889 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
15890 (fzap_lookup): Likewise.
15891 (zap_lookup): Likewise.
15892 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
15893 * grub-core/lib/legacy_parse.c (check_option): Likewise.
15894 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
15895 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
15896 (grub_freebsd_add_meta_module): Likewise.
15897 (grub_cmd_freebsd_module): Likewise.
15898 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
15899 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
15900 (grub_xnu_writetree_get_size): Likewise.
15901 (grub_xnu_writetree_toheap_real): Likewise.
15902 (grub_xnu_find_key): Likewise.
15903 (grub_xnu_create_key): Likewise.
15904 (grub_xnu_create_value): Likewise.
15905 (grub_xnu_register_memory): Likewise.
15906 (grub_xnu_check_os_bundle_required): Likewise.
15907 (grub_xnu_scan_dir_for_kexts): Likewise.
15908 (grub_xnu_load_kext_from_dir): Likewise.
15909 * grub-core/normal/color.c (color_list): Likewise.
15910 * grub-core/normal/completion.c (current_word): Likewise.
15911 * grub-core/normal/menu_entry.c (insert_string): Likewise.
15912 * grub-core/term/serial.c (grub_serial_find): Likewise.
15913 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
15914 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
15916 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
15917 (grub_freebsd_add_meta_module): Likewise.
15918 * include/grub/lib/arg.h (grub_arg_option): Likewise.
15919 * include/grub/net.h (grub_net_card_driver): Likewise.
15920 (grub_net_card): Likewise.
15921 (grub_net_app_protocol): Likewise.
15922 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
15923 * include/grub/serial.h (grub_serial_find): Likewise.
15924 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
15925 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
15926 (grub_xnu_create_value): Likewise.
15927 (grub_xnu_find_key): Likewise.
15928 (grub_xnu_scan_dir_for_kexts): Likewise.
15929 (grub_xnu_load_kext_from_dir): Likewise.
15931 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
15932 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
15933 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
15934 Moved from here ...
15935 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
15937 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
15939 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
15941 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
15943 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
15944 (read_device): Fix size calculation.
15946 2011-11-25 Robert Millan <rmh@gnu.org>
15948 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
15949 (find_root_device_from_libzfs): Add zpool output parser to be used
15950 as fallback when libzfs isn't available.
15952 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
15954 * po/Makefile.in.in: Add missing escape-continuation.
15956 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
15958 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
15960 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15962 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
15964 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15966 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
15968 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15970 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
15972 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15974 * grub-core/lib/adler32.c: Add missing license specification.
15975 * grub-core/lib/crc64.c: Likewise.
15976 * grub-core/loader/i386/pc/plan9.c: Likewise.
15977 * grub-core/partmap/plan.c: Likewise.
15979 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
15981 Add facility to debug GRUB with gdb under qemu.
15983 * grub-core/gdb_grub.in: New file.
15984 * grub-core/gmodule.pl.in: Likewise.
15985 * grub-core/Makefile.core.def (gmodule.pl): New script.
15986 (gdb_grub): Likewise.
15988 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15990 * util/grub-mount.c (argp_parser): Accept relative pathes.
15991 * util/grub-fstest.c (argp_parser): Likewise.
15993 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15997 * Makefile.util.def (libgrubmods): Add
15998 grub-core/partmap/plan.c.
15999 * docs/grub.texi: Notice Plan9 support.
16000 * grub-core/Makefile.core.def (plan9): New module.
16001 (part_plan): Likewise.
16002 * grub-core/loader/i386/pc/plan9.c: New file.
16003 * grub-core/partmap/plan.c: Likewise.
16004 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16006 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16007 * include/grub/mm.h (grub_extend_alloc): New inline function.
16009 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16011 Make Reed-Solomon faster by using power of generator representation of
16014 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16015 (gf_double_t): Likewise.
16016 (gf_invert): Removed.
16017 (gf_powx): New array.
16018 (gf_powx_inv): Likewise.
16019 (scratch): Move higher.
16020 (gf_reduce): Removed.
16021 (gf_mul): Use powx.
16022 (gf_invert): Likewise.
16023 (init_inverts): Replaced with ...
16024 (init_powx): ...this. All users updated.
16025 (pol_evaluate): Replace multiplications with additions.
16026 (rs_encode): Likewise.
16027 (gauss_eliminate): Call gf_invert.
16028 (grub_reed_solomon_add_redundancy): Call init_powx.
16029 (grub_reed_solomon_recover): Call init_powx unconditionally.
16031 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16033 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16035 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16037 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16038 disk->partiton for safety.
16040 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16042 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16044 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16046 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16048 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16050 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16052 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16054 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16056 Fix spaces handling in proc/self/mountinfo.
16058 * util/getroot.c (unescape): New function.
16059 (grub_find_root_device_from_mountinfo): Use unescape.
16061 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16063 Support ZFS embedding.
16065 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16066 (grub_zfs_fs): Register grub_zfs_embed.
16068 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16070 Fix MIPS compilation.
16072 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16073 * include/grub/offsets.h: Rename decompressor fields from
16074 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16075 * util/grub-mkimage.c (image_targets): Use new names.
16077 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16079 Defer multiboot device parsing until we're in compressed part.
16081 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16082 bsd_part. setdevice has fallen into disuse.
16083 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16084 (bsd_part): Likewise.
16085 (boot_dev): New variable.
16086 (multiboot_trampoline): Don't parse multiboot device.
16087 Pass multiboot device in %edx.
16088 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16090 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16092 * grub-core/kern/i386/pc/startup.S: Save edx.
16093 (grub_boot_drive): Removed.
16094 (grub_install_dos_part): Likewise.
16095 (grub_install_bsd_part): Likewise.
16096 (grub_boot_device): New variable.
16097 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16098 (grub_install_bsd_part): Likewise.
16099 (grub_boot_drive): Likewise.
16100 (grub_boot_device): New variable.
16101 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16103 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16104 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16105 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16106 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16107 * util/grub-install.in: Remove redundant condition.
16109 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16111 Fix bug introduced by previous commit.
16113 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16115 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16117 Use decompressors framework on i386-pc. It increases core size
16118 by 46 bytes but improves compatibility and maintainability.
16120 * grub-core/Makefile.core.def (lzma_decompress): New image.
16121 (kernel): Add i386_pc_ldflags.
16122 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16123 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16124 to real_to_prot, prot_to_real and device info.
16125 * include/grub/offsets.h: Renamed decompressor offsets.
16126 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16127 (image_target_desc): Remove raw_size and rename decompressor fields.
16128 (compress_kernel): Handle lzma.
16129 (generate_image): Handle decompressors on i386-pc.
16131 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16133 * configure.ac: Add -fno-asynchronous-unwind-tables.
16135 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16137 Move assembly code to C by using intwrap. It increases core size
16138 by 88 bytes but improves compatibility and maintainability.
16140 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16141 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16142 ... here. Translated to C.
16143 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16144 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16145 ... here. Translated to C.
16146 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16147 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16148 ... here. Translated to C.
16149 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16150 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16151 ... here. Translated to C.
16152 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16153 * grub-core/term/i386/pc/console.c (grub_console_cls):
16154 ... here. Translated to C.
16155 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16156 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16157 ... here. Translated to C.
16158 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16159 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16161 * grub-core/term/i386/pc/console.c (int10_9): New function.
16162 (grub_console_putchar): Likewise.
16163 * include/grub/i386/pc/console.h: Removed the not anymore shared
16166 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16168 Move grub_chainloader_real_boot out of the kernel.
16170 * grub-core/Makefile.am: Remove machine/loader.h.
16171 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16173 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16175 (grub_relocator16_keep_a20_enabled): Likewise.
16176 (grub_relocator16_boot): Fill new variables.
16177 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16178 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16180 (grub_chainloader_unload): Likewise.
16181 (grub_chainloader_cmd): Likewise.
16182 * include/grub/i386/pc/loader.h: Removed.
16183 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16184 and esi. All initialisers updated.
16186 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16187 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16189 * Makefile.util.def (grub-mount): New util.
16190 * .bzrignore: Add grub-mount.
16191 * configure.ac: Check for fuse and enable grub-mount if available.
16192 * docs/man/grub-mount.h2m: New file.
16193 * util/grub-mount.c: Likewise.
16195 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16197 * grub-core/commands/efi/fixvideo.c: Gettextize.
16198 * grub-core/commands/hashsum.c: Likewise.
16199 * grub-core/commands/i386/cmostest.c: Likewise.
16200 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16201 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16202 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16203 * grub-core/commands/lsmmap.c: Likewise.
16204 * grub-core/commands/menuentry.c: Likewise.
16205 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16206 * grub-core/commands/setpci.c: Likewise.
16207 * grub-core/loader/i386/bsd.c: Likewise.
16208 * grub-core/loader/i386/linux.c: Likewise.
16209 * util/getroot.c: Likewise.
16210 * util/grub-editenv.c: Likewise.
16211 * util/grub-fstest.c: Likewise.
16212 * util/grub-mkfont.c: Likewise.
16213 * util/grub-mkimage.c: Likewise.
16214 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16215 * util/grub-pe2elf.c: Likewise.
16216 * util/grub-probe.c: Likewise.
16217 * util/grub-setup.c: Likewise.
16218 * util/ieee1275/ofpath.c: Likewise.
16219 * util/misc.c: Likewise.
16220 * util/raid.c: Likewise.
16222 2011-11-11 Robert Millan <rmh@gnu.org>
16224 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16225 __attribute__((unused)) from `os_dev', which *is* being used.
16227 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16229 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16231 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16232 GRUB_IA64_DL_GOT_ALIGN.
16233 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16234 GRUB_IA64_DL_TRAMP_ALIGN.
16236 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16238 Replace grub_fatal with normal errors in i386 linux loader.
16240 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16241 (allocate_pages): Check find_efi_mmap_size return value.
16242 (grub_e820_add_region): Return error.
16243 (grub_linux_boot): Check mmap return value.
16245 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16247 * grub-core/commands/acpihalt.c: Gettextized.
16248 * grub-core/commands/cacheinfo.c: Likewise.
16249 * grub-core/commands/cmp.c: Likewise.
16250 * grub-core/commands/efi/loadbios.c: Likewise.
16251 * grub-core/commands/gptsync.c: Likewise.
16252 * grub-core/commands/ieee1275/suspend.c: Likewise.
16253 * grub-core/commands/legacycfg.c: Likewise.
16254 * grub-core/commands/memrw.c: Likewise.
16255 * grub-core/commands/minicmd.c: Likewise.
16256 * grub-core/commands/parttool.c: Likewise.
16257 * grub-core/commands/time.c: Likewise.
16258 * grub-core/commands/videoinfo.c: Likewise.
16259 * grub-core/disk/geli.c: Likewise.
16260 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16261 * grub-core/disk/luks.c: Likewise.
16262 * grub-core/disk/lvm.c: Likewise.
16263 * grub-core/font/font_cmd.c: Likewise.
16264 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16265 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16266 * grub-core/gfxmenu/view.c: Likewise.
16267 * grub-core/kern/emu/hostdisk.c: Likewise.
16268 * grub-core/kern/emu/main.c: Likewise.
16269 * grub-core/kern/emu/misc.c: Likewise.
16270 * grub-core/kern/emu/mm.c: Likewise.
16271 * grub-core/kern/mips/arc/init.c: Likewise.
16272 * grub-core/kern/mips/loongson/init.c: Likewise.
16273 * grub-core/kern/partition.c: Likewise.
16274 * grub-core/lib/i386/halt.c: Likewise.
16275 * grub-core/lib/mips/arc/reboot.c: Likewise.
16276 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16277 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16278 * grub-core/loader/i386/xnu.c: Likewise.
16279 * grub-core/loader/multiboot.c: Likewise.
16280 * grub-core/net/bootp.c: Likewise.
16281 * grub-core/net/net.c: Likewise.
16282 * grub-core/normal/term.c: Likewise.
16283 * grub-core/partmap/bsdlabel.c: Likewise.
16284 * grub-core/parttool/msdospart.c: Likewise.
16285 * grub-core/term/gfxterm.c: Likewise.
16286 * grub-core/term/terminfo.c: Likewise.
16287 * grub-core/video/i386/pc/vbe.c: Likewise.
16288 * util/grub-menulst2cfg.c: Likewise.
16289 * util/grub-mkdevicemap.c: Likewise.
16290 * util/grub-mklayout.c: Likewise.
16291 * util/grub-mkrelpath.c: Likewise.
16292 * util/grub-script-check.c: Likewise.
16293 * util/ieee1275/grub-ofpathname.c: Likewise.
16294 * util/resolve.c: Likewise.
16296 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16298 Support %1$d syntax.
16300 * tests/printf_unit_test.c: New file.
16301 * Makefile.util.def (printf_test): New test.
16302 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16304 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16306 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16309 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16311 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16313 * grub-core/font/font.c (grub_font_load): Likewise.
16315 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16317 * util/grub-macho2img.c: Add comment concerning gettext.
16318 * grub-core/lib/legacy_parse.c: Likewise.
16320 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16322 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16323 (grub_xvasprintf): Likewise.
16325 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16327 Add const keyword to grub_env_get and gettextize week days.
16329 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16330 (grub_read_hook_datetime): Return const char *.
16331 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16333 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16335 (grub_get_weekday_name): Return const char *. Call gettext.
16336 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16337 char * and len as the argument. All users updated.
16338 (grub_script_argv_split_append): Receive const char *.
16339 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16340 * include/grub/env.h (grub_env_get): Likewise.
16341 (grub_env_read_hook_t): Return const char *.
16342 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16343 (grub_script_argv_split_append): Likewise.
16345 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16347 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16349 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16351 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16352 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16354 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16356 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16359 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16361 Fix mips compilation.
16363 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16365 (hashes): Use in embed decoder as well (for sizes).
16366 (dec_stream_header): Fix embed decompressor logic.
16367 (dec_stream_footer): Likewise.
16369 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16371 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16372 an error and not a fatal on unrecognised relocation types.
16374 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16376 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16377 Issue error rather than printf on unknown arguments.
16379 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16381 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16384 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16386 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16389 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16391 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16392 leftover debug printf.
16394 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16396 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16398 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16400 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16403 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16405 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16407 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16409 Allow all modules to perform serial IO
16411 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16412 * include/grub/serial.h (grub_serial_port_configure): New inline
16414 (grub_serial_port_fetch): Likewise.
16415 (grub_serial_port_put): Likewise.
16416 (grub_serial_port_fini): Likewise.
16417 (grub_serial_find): New proto.
16419 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16421 Put symlink at the end of the node and fix a potential
16424 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16425 Make symlink into an array.
16426 (set_rockridge): Set have_symlink and alloc_dirents.
16427 (grub_iso9660_read_symlink): Use new layout.
16428 (grub_iso9660_iterate_dir): Fix memory corruption.
16430 (grub_iso9660_dir): Set have_symlink.
16431 (grub_iso9660_open): Likewise.
16433 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16435 Remove local keyword.
16437 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16438 (version_test_gt): Likewise.
16439 (version_find_latest): Likewise.
16440 (gettext_printf): Likewise.
16441 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16443 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16445 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16447 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16449 Fix ZFS memory and resource leaks.
16451 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16454 (fill_vdev_info): New parameter inserted. All users updated.
16455 (check_pool_label): Likewise.
16456 (scan_disk): Likewise.
16457 (scan_devices): Close non-inserted disks.
16458 (fzap_iterate): Free l.
16459 (unmount_device): Free children descripto memory.
16461 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16463 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16464 argument (access out of bounds).
16466 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16468 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16471 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16473 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16476 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16478 Fix several memory leaks.
16480 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16481 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16482 (grub_cpio_dir): Likewise.
16483 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16484 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16485 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16486 (grub_romfs_label): Likewise.
16487 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16488 (squash_unmount): New function.
16489 (grub_squash_dir): Fix memory leak.
16490 (grub_squash_open): Likewise.
16491 (grub_squash_read): Likewise.
16492 (grub_squash_mtime): Likewise.
16493 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16494 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16495 * util/grub-fstest.c (fstest): Likewise.
16497 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16499 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16500 avoid accessing beyond the array.
16502 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16504 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16506 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16508 Several AFFS fixes.
16510 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16511 (GRUB_AFFS_FLAG_FFS): Removed.
16512 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16513 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16514 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16515 (grub_fshelp_node): Make block 32-bit.
16516 Add block_cache and last_block_cache.
16517 (grub_affs_read_block): Fill and use block cache.
16518 (grub_affs_read_file): Removed.
16519 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16521 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16523 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16525 (grub_affs_close): Free block cache.
16526 (grub_affs_read): Use grub_fshelp_read_file directly.
16528 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16530 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16533 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16535 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16537 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16540 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16542 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16544 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16545 byteswap when needed.
16547 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16549 Fix FreeBSD compilation.
16551 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16552 to avoid circular dependency.
16553 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16554 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16555 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16557 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16559 Fix ZFS crypto error types.
16561 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16562 (grub_gcm_decrypt): Likewise.
16563 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16566 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16570 * Makefile.util.def (10_illumos): New script.
16571 * configure.ac: Set COND_HOST_ILLUMOS.
16572 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16573 Support Illumos calls.
16574 (find_partition_start) [__sun__]: Likewise.
16575 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16576 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16577 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16578 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16580 * util/grub-probe.c (probe) [__sun__]: Do character check.
16581 * util/grub.d/10_illumos.in: New file.
16583 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16585 Support escaped commas in hostdisk.
16587 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16588 (find_grub_drive): Use unescape_cmp.
16589 (make_device_name): Escape commas.
16591 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16593 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16595 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16597 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16600 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16602 Support trampoline jumps on powerpc.
16604 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16606 (grub_dl_load_segments): Set mod->sz.
16607 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16609 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16611 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16613 (trampoline): New struct.
16614 (trampoline_template): New const.
16615 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16616 * include/grub/dl.h (grub_dl): Add sz element.
16617 [__powerpc__]: Follow __ia64__.
16618 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16619 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16620 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16621 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16623 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16625 ZFS crypto support.
16627 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16628 * grub-core/Makefile.core.def (zfscrypt): New module.
16629 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16630 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16631 it. All users updated.
16632 (grub_zfs_decrypt): New var.
16633 (grub_zfs_load_key): Likewise.
16634 (zio_checksum_functions): Add SHA256+MAC.
16635 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16636 (zio_read): Handle encrypted blocks.
16637 (zap_verify): Remove incorrect check.
16638 (fzap_iterate): Handle non-standard fzap.
16639 (zap_iterate): Likewise.
16640 (zap_iterate_u64): New function.
16641 (dnode_get_fullpath): Load keys.
16642 * grub-core/fs/zfs/zfscrypt.c: New file.
16643 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16644 (grub_crypto_ecb_encrypt): Make input const.
16645 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16646 (grub_crypto_ecb_encrypt): Make input const.
16647 (GRUB_CIPHER_AES): New macro.
16648 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16649 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16650 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16651 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16652 prefix. All users updated.
16653 (grub_zfs_add_key): New proto.
16654 (grub_zfs_decrypt): Likewise.
16655 (grub_zfs_load_key): Likewise.
16656 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16657 * util/grub-fstest.c (options): Add -K option.
16658 (argp_parser): Likewise.
16660 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16662 Support zle compression on ZFS.
16664 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16665 (decomp_table): Add zle.
16666 * include/grub/zfs/zio.h (zio_compress): Add zle.
16668 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16670 Support BtrFS embedding.
16672 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16673 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16674 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16675 * util/grub-setup.c (setup): Use fs embedding if available.
16676 Add additional sanity check.
16678 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16680 * util/grub-install.in: Fix condition for config_opt.
16682 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16684 Support third redundancy strip on raidz3.
16686 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16687 Return error on singularity. All users updated.
16688 (read_device): Don't stop on 3rd failure on raidz3.
16690 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16692 Support case-insensitive ZFS subvolumes.
16694 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16696 (zap_hash): Likewise.
16697 (name_cmp): New function.
16698 (zap_leaf_array_equal): New parameter case_insensitive.
16700 (zap_leaf_lookup): Likewise.
16701 (fzap_lookup): Likewise.
16702 (zap_lookup): Likewise.
16703 (dnode_get_path): New parameter case_insensitive. Retrieve case
16704 sensitiviness of a volume. All users updated.
16705 (dnode_get_fullpath): New parameter case_insensitive.
16707 (grub_zfs_dir): Set info.case_insensitiveness.
16709 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16711 Support second redundancy strip on raidz(2,3).
16713 * grub-core/fs/zfs/zfs.c (powx): New array.
16714 (powx_inv): Likewise.
16716 (xor_out): New function.
16717 (gf_mul): Likewise.
16718 (recovery): Likewise.
16719 (read_device): Use second redundancy strip.
16721 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16723 Use a power of generator representation of GF(256) multiplication group
16724 to save space time and complexity.
16726 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16727 (raid6_table2): Likewise.
16729 (powx_inv): Likewise.
16731 (grub_raid_block_mul): Replace with ...
16732 (grub_raid_block_mulx): ...this.
16733 (grub_raid6_init_table): Rewritten.
16734 (grub_raid6_recover): Use power of generator representation.
16736 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16738 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16739 for the right device.
16741 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16743 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16744 expected by grub-mkimage and it's more clear since there is no implicit
16747 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16749 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16751 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16753 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16755 * util/grub-mkrescue.in: Fix handling xorriso option.
16757 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16759 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16762 2011-11-03 crocket <crockabiscuit@gmail.com>
16764 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16766 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16768 XZ CRC64 and SHA256 support.
16770 * Makefile.util.def (libgrubmods): Add crc64.c.
16771 * grub-core/Makefile.core.def (crc64): New module.
16772 * grub-core/lib/crc64.c: New file.
16773 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16774 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16776 (MAX_HASH_SIZE): New define.
16777 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16778 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16779 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16780 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16781 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16782 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16783 Handle non-crc32 hashes.
16784 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16785 (dec_stream_header): Handle non-crc32 hashes.
16786 (dec_stream_footer): Likewise.
16787 (dec_block_header): Likewise.
16788 (dec_main): Likewise.
16789 (xz_dec_init): Likewise.
16790 (xz_dec_reset): Likewise.
16791 (xz_dec_end): Likewise.
16792 * util/import_gcry.py: Add CRC64 line.
16794 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16796 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16799 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16801 Make reiserfs label retrieval similar to other *_label functions.
16803 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16804 (REISERFS_MAX_LABEL_LENGTH): Removed.
16805 (REISERFS_LABEL_OFFSET): Likewise.
16806 (grub_reiserfs_label): Rewritten.
16808 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16810 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16813 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16815 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16817 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16819 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16820 drive failure on both raidz and raidz2.
16822 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16824 Fix RAIDZ(2) for >= 5 devices.
16826 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16827 asize argument. All users updated.
16829 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16833 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16834 (fill_vdev_info_real): Set ashift.
16835 (read_device): Rewrite RAIDZ part based on reverse engineering.
16837 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16839 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16840 don't report potentially unavialiable fields in debug output.
16841 (find_path): Fix double-free and memory leak.
16843 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16845 Read label on UFS1.
16847 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16848 (grub_ufs_fs): Always set .label.
16850 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16854 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16855 (grub_ufs_data): New field log2_blksz.
16856 (grub_ufs_read_file): Use shifts.
16857 (grub_ufs_mount): Check block size and logarithm it.
16859 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16861 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
16864 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16866 Handle symlinks and long names on tar and cpio.
16868 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
16869 (ATTR_FILE): Likewise.
16870 (ATTR_DIR): Likewise.
16871 (ATTR_LNK): Likewise.
16872 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
16873 (grub_cpio_find_file): Fill mode, handle linkname field as well as
16875 (grub_cpio_mount): Zero-fill data.
16876 (handle_symlink): New function.
16877 (grub_cpio_dir): Handle symlinks.
16878 (grub_cpio_open): Likewise.
16879 (grub_cpio_close) [MODE_USTAR]: Free linkname.
16881 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16883 Fix iso9660 filename limitations and fix memory leaks.
16885 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
16886 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
16888 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16890 Fix JFS file name length limitations.
16892 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
16893 (grub_jfs_diropen): Fix maximum filename length.
16894 (grub_jfs_getent): Fix filename length.
16895 (grub_jfs_lookup_symlink): Fix size checks.
16897 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16899 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
16902 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16904 Leverage BFS implementation to read AFS.
16906 * Makefile.util.def (libgrubmods): Add afs.c.
16907 * grub-core/Makefile.core.def (afs): New module
16908 * grub-core/fs/afs.c: New file.
16909 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
16911 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16913 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
16915 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16917 * grub-core/fs/bfs.c: Run indent.
16919 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16921 BFS implementation based on the specification.
16923 * grub-core/fs/bfs.c: New file.
16924 * Makefile.util.def (libgrubmods): Add bfs.c.
16925 * grub-core/Makefile.core.def (bfs): New module.
16927 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16929 * util/grub-fstest.c (cmd_cp): Clarify error message.
16930 (cmd_cmp): Likewise.
16932 2011-10-30 Yves Blusseau <blusseau@zetam.org>
16934 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
16937 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
16939 Remove afs and befs because of copyright problem.
16941 * grub-core/fs/afs.c: Removed.
16942 * grub-core/fs/afs_be.c: Removed.
16943 * grub-core/fs/befs.c: Removed.
16944 * grub-core/fs/befs_be.c: Removed.
16945 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
16946 * grub-core/Makefile.core.def (afs): Removed.
16947 (afs_be): Likewise.
16949 (befs_be): Likewise.
16951 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16953 Prefer rockridge over Joliet.
16955 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
16957 (set_rockridge): ... here.
16958 (grub_iso9660_mount): Check rockridge on the primary label when
16959 discovering. Ignore Joliet if Rockridge is present.
16961 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16963 Use shifts in nilfs2.
16965 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
16966 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
16967 (grub_nilfs2_palloc_entries_per_group): Replace with ...
16968 (grub_nilfs2_log_palloc_entries_per_group): ... this.
16969 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
16970 (grub_nilfs2_entries_per_block): Replaced with ...
16971 (grub_nilfs2_log_entries_per_block_log): ... this.
16972 (grub_nilfs2_blocks_per_group): Replaced with ...
16973 (grub_nilfs2_blocks_per_group_log): ... this.
16974 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
16975 (grub_nilfs2_blocks_per_desc_block_log): ... this.
16976 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
16977 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
16978 (grub_nilfs2_palloc_entry_offset): Replaced ...
16979 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
16980 (grub_nilfs2_dat_translate): Use shifts.
16981 (grub_nilfs2_read_inode): Likewise.
16982 (GRUB_MOD_INIT): Ensure that logs are correct.
16984 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16986 Use shifts in minix filesystem.
16988 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
16989 (GRUB_MINIX_ZONE2SECT): Likewise.
16990 (grub_minix_data): Replace block_size with log_block_size.
16991 (grub_minix_read_file): Use shifts.
16992 (grub_minix_mount): Check block size and take a logarithm.
16994 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16996 Use shifts in squash4.
16998 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
16999 (squash_mount): Check block size and take logarithm.
17000 (direct_read): Use shifts.
17002 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17004 Correct befs block counting logic.
17006 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17007 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17008 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17009 (grub_afs_read_inode): Use block_shift.
17010 (RANGE_SHIFT): New definition.
17011 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17012 unexpected conditions, use shifts and appropriate types.
17013 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17015 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17017 * grub-core/disk/raid.c (scan_devices): Check partition.
17018 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17020 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17022 Support BFS (befs) UUID.
17024 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17025 (grub_afs_small_data_element_header): New struct.
17026 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17027 (grub_afs_read_attribute) [MODE_BFS]: New function.
17028 (grub_afs_iterate_dir): Allocate for complete inode.
17029 (grub_afs_mount): Likewise.
17030 (grub_afs_uuid) [MODE_BFS]: New function.
17031 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17033 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17035 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17036 (zfs_unmount): Fix memory leak.
17038 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17040 Support NTFS reparse points.
17042 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17043 (symlink_descriptor): New struct.
17044 (grub_ntfs_read_symlink): New function.
17045 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17046 (grub_ntfs_open): Likewise.
17048 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17050 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17052 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17054 fstest xnu_uuid subcommand.
17056 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17057 grub-core/commands/xnu_uuid.c.
17058 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17059 (fstest): Handle xnu_uuid.
17060 (options): Document xnu_uuid.
17061 (argp_parser): Parse xnu_uuid.
17063 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17065 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17066 -l argument. Add newline at the end if printing.
17067 (GRUB_MOD_INIT): Document -l.
17069 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17071 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17073 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17075 ZFS multi-device and version 33 support.
17077 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17078 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17079 (grub_zfs_data): Add multidev-ice-related fields.
17080 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17081 (dva_get_offset): Make dva const.
17082 (zfs_fetch_nvlist): New function.
17083 (fill_vdev_info_real): Likewise.
17084 (fill_vdev_info): Likewise.
17085 (check_pool_label): Likewise.
17086 (scan_disk): Likewise.
17087 (scan_devices): Likewise.
17088 (read_device): Likewise.
17089 (read_dva): Likewise.
17090 (zio_read_gang): Use read_dva.
17091 (zio_read_data): Likewise.
17092 (zap_leaf_lookup): Add missing endian conversion.
17093 (zap_verify): Add missing endian conversion. All users updated.
17094 (fzap_lookup): Likewise.
17095 (fzap_iterate): Likewise.
17096 (dnode_get_path): Handle SA bonus.
17097 (nvlist_find_value): Make input const. All users updated.
17098 (unmount_device): New function.
17099 (zfs_unmount): Use unmount_device.
17100 (zfs_mount): Use scan_disk.
17101 (zfs_mtime): New function.
17102 (grub_zfs_open): Handle system attributes.
17103 (fill_fs_info): Likewise.
17104 (grub_zfs_dir): Likewise.
17105 (grub_zfs_fs): Add mtime.
17106 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17107 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17108 (SA_MTIME_OFFSET): Likewise.
17109 (SA_SYMLINK_OFFSET): Likewise.
17110 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17111 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17112 (fstest): Support zfsinfo.
17113 (argp_parser): Likewise.
17115 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17117 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17120 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17124 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17125 sharing the same block. Iterate over correct number of indices.
17126 (dnode_get_path): Handle symlinks correctly.
17128 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17130 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17132 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17134 Read label on HFS+.
17136 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17137 (grub_hfsplus_btree_search): Fix types.
17138 (grub_hfsplus_label): Implement.
17140 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17142 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17144 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17146 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17148 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17150 Fix symlink handling on iso9660.
17152 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17154 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17155 (grub_iso9660_read_symlink): Moved most of code ...
17156 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17158 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17160 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17161 Use union to avoid breaking strict-aliasing rules.
17163 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17165 Support multi-extent iso files.
17167 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17169 (grub_fshelp_node): Revamp. All users updated.
17170 (FLAG_*): New enum.
17171 (read_node): New function.
17172 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17174 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17175 (get_node_size): New function.
17176 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17178 Fix memory leak on . and ..
17179 (grub_iso9660_read): Use read_node.
17180 (grub_iso9660_close): Free node.
17182 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17184 Fix tar 4G limit and handle paths containing dot.
17186 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17187 (canonicalize): New function.
17188 (grub_cpio_find_file): Use canonicalize. Store offs in
17190 (grub_cpio_dir): Use grub_disk_addr_t.
17191 (grub_cpio_open): Likewise.
17193 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17195 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17197 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17199 (grub_squash_inode): Add long_file and block_size.
17200 (grub_squash_cache_inode): New struct.
17201 (grub_squash_dirent): Make types into enum.
17202 (SQUASH_TYPE_LONG_REGULAR): New type.
17203 (grub_squash_frag_desc): Add field size.
17204 (SQUASH_BLOCK_FLAGS): New enum.
17205 (grub_squash_data): Use grub_squash_cache_inode.
17206 (grub_fshelp_node): Make ino_chunk 64-bit.
17207 (read_chunk): Minor argument change. All users updated.
17208 (squash_mount): Use correct le_to_cpu.
17209 (grub_squash_open): Handle LONG_REGULAR.
17210 (direct_read): New function.
17211 (grub_squash_read_data): Handle blocks correctly.
17213 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17215 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17217 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17219 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17221 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17223 Fix 2G limit on ZFS.
17225 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17227 (uberblock_verify): Likewise.
17228 (dmu_read): Likewise.
17229 (grub_zfs_read): Likewise. Remove invalid cast.
17231 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17233 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17234 (grub_jfs_blkno): Fix incorrect shift.
17235 (grub_jfs_read_file): Use more appropriate types.
17237 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17239 Support triple indirect on minix2 and minix3.
17241 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17242 Declare triple_indir_zone.
17243 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17246 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17250 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17251 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17252 Rename ctime to mtime. All users updated.
17253 (grub_minix_get_file_block): Fix types and double indirect computations.
17255 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17257 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17258 if no label is found.
17259 (grub_fat_iterate_dir): Fix file size type.
17260 (grub_fat_iterate_dir): Likewise.
17262 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17264 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17266 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17267 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17269 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17271 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17273 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17275 * util/import_gcry.py: Accept space between # and include.
17277 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17279 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17281 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17283 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17285 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17286 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17288 * grub-core/script/yylex.l: Add fine-grained #pragma.
17290 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17292 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17293 New inline function.
17294 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17296 (memset) [GRUB_UTIL]: Likewise.
17297 (memcmp) [GRUB_UTIL]: Likewise.
17299 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17301 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17302 inline function rather than a define.
17304 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17306 * util/grub-setup.c: Add missing include.
17308 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17310 * util/ieee1275/grub-ofpathname.c: Add missing include.
17312 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17314 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17315 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17318 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17320 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17323 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17325 * util/grub-install.in: Add datarootdir as per automake manual
17327 * util/grub-mknetdir.in: Likewise.
17329 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17331 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17333 * util/grub.d/10_kfreebsd.in: Likewise.
17334 * util/grub.d/10_linux.in: Likewise.
17335 * util/grub.d/10_netbsd.in: Likewise.
17336 * util/grub.d/10_windows.in: Likewise.
17337 * util/grub.d/20_linux_xen.in: Likewise.
17339 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17341 Remove redundant grub_kernel_image_size.
17343 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17345 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17346 the small code. It moves it only by few bytes but simplifies the code.
17347 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17349 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17350 (grub_kernel_image_size): Removed.
17351 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17352 (grub_kernel_image_size): Removed.
17353 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17354 compiled with Apple toolchain.
17355 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17356 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17357 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17358 (grub_total_module_size): Likewise.
17359 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17361 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17362 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17363 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17364 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17365 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17366 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17367 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17368 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17370 (grub_total_module_size): Removed.
17371 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17372 (image_targets): Likewise.
17373 Set .compressed_size to no field on sparc.
17374 (generate_image): Remove kernel_image_size handling.
17376 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17378 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17379 NULL pointer dereference.
17381 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17383 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17384 done with a dedicated section.
17386 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17387 Ensure the correct position of boot_path.
17388 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17389 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17391 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17392 * include/grub/boot.h: Removed. All references removed.
17393 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17395 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17397 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17399 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17402 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17404 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17406 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17408 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17409 Don't add the bogus brackets.
17411 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17415 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17416 * grub-core/Makefile.core.def (exfat): New module.
17417 * grub-core/fs/exfat.c: New file.
17418 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17419 (GRUB_FAT_ATTR_*): Make into an enum.
17420 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17421 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17422 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17423 (GRUB_FAT_MAXFILE): Removed.
17424 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17425 (grub_current_fat_bpb_t): New type.
17426 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17427 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17428 (grub_fat_dir_node_t): New type.
17429 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17430 (fat_log2) [MODE_EXFAT]: Removed.
17431 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17432 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17433 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17434 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17435 (grub_fat_label) [MODE_EXFAT]: New function.
17436 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17437 reserved_first_sector to 0.
17439 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17441 Move grub_reboot out of the kernel.
17443 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17444 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17445 * grub-core/lib/efi/reboot.c: ... here.
17446 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17447 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17448 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17449 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17450 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17451 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17452 * grub-core/lib/ieee1275/reboot.c: ... here.
17453 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17454 * grub-core/lib/mips/arc/reboot.c: ... here.
17455 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17456 * grub-core/lib/mips/loongson/reboot.c: ...here.
17457 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17458 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17459 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17460 * include/grub/i386/reboot.h: New file.
17461 * include/grub/mips/loongson/ec.h: Fix includes.
17462 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17463 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17464 * grub-core/lib/i386/reboot.c: New file.
17466 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17468 Make grub_prefix into module to fix the arbitrary limit and save
17471 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17472 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17473 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17474 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17475 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17476 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17477 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17478 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17479 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17480 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17481 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17482 * include/grub/ia64/efi/kernel.h: Removed.
17483 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17484 (grub_prefix): Removed.
17485 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17486 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17487 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17488 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17489 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17490 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17491 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17492 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17493 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17494 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17495 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17496 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17497 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17498 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17499 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17500 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17501 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17502 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17503 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17504 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17505 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17506 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17507 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17508 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17509 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17510 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17511 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17512 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17513 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17515 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17517 (image_targets): Likewise.
17518 (generate_image): Put prefix as a module.
17520 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17522 Replace grub_module_iterate with FOR_MODULES.
17524 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17525 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17526 (grub_efi_modules_addr): ...this.
17527 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17528 (grub_efi_init): Set grub_modbase.
17529 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17530 (grub_modbase): New variable.
17531 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17532 (grub_modbase): New variable.
17533 (grub_machine_init): Set grub_modbase.
17534 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17535 (grub_modbase): New variable.
17536 (grub_machine_init): Set grub_modbase.
17537 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17538 (grub_modbase): New variable.
17539 (grub_machine_init): Set grub_modbase.
17540 * grub-core/kern/main.c (grub_module_iterate): Remove.
17541 (grub_modules_get_end): Use grub_modbase.
17542 (grub_load_modules): Use FOR_MODULES.
17543 (grub_load_config): Likewise.
17544 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17545 (grub_modbase): New variable.
17546 (grub_machine_init): Set grub_modbase.
17547 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17548 (grub_modbase): New variable.
17549 (grub_machine_init): Set grub_modbase.
17550 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17552 (grub_modbase): New variable.
17553 (grub_machine_init): Set grub_modbase.
17554 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17555 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17556 (grub_module_iterate): Likewise.
17557 (grub_modbase): New variable declaration.
17558 (FOR_MODULES): New macro.
17560 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17562 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17563 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17565 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17567 Fix few obvious type discrepancies.
17569 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17570 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17571 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17573 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17574 and connected types.
17575 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17577 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17578 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17579 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17580 and connected types.
17582 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17584 Fix python 3.x incompatibilities.
17586 * gentpl.py: Put brackets around print strings.
17587 * util/import_gcry.py: Open explicitly as utf-8.
17588 Use in instead of has_key.
17590 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17592 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17593 (GRUB_XFS_INO_AGBITS): Make into inline function.
17594 (GRUB_XFS_INO_INOINAG): Likewise.
17595 (GRUB_XFS_INO_AG): Likewise.
17596 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17597 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17598 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17599 (GRUB_XFS_EXTENT_SIZE): Likewise.
17600 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17601 (GRUB_XFS_NEXT_DIRENT): Likewise.
17602 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17603 (grub_xfs_read_file): Fix offset type.
17605 2011-10-15 Robert Millan <rmh@gnu.org>
17607 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17609 2011-10-15 Robert Millan <rmh@gnu.org>
17611 Fix build problem on FreeBSD and GNU/kFreeBSD.
17613 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17615 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17617 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17619 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17621 (grub_hfsplus_btree_recoffset): Likewise.
17622 (grub_hfsplus_btree_recptr): Likewise.
17623 (grub_hfsplus_find_block): Likewise.
17624 (grub_hfsplus_btree_search): Likewise.
17625 (grub_hfsplus_read_block): Likewise.
17626 (grub_hfsplus_read_file): Likewise.
17627 (grub_hfsplus_mount): Likewise.
17628 (grub_hfsplus_btree_iterate_node): Likewise.
17629 (grub_hfsplus_btree_search): Likewise.
17630 (grub_hfsplus_iterate_dir): Likewise.
17631 (grub_hfsplus_read): A small code simplification.
17633 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17635 * grub-core/kern/emu/hostdisk.c
17636 (convert_system_partition_to_system_disk): Don't assume that children
17637 of mapper nodes are mapper nodes.
17639 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17641 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17642 * include/grub/misc.h (grub_isxdigit): New function.
17643 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17644 switched to grub_isxdigit.
17645 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17646 number starting with a letter.
17648 2011-10-09 Robert Millan <rmh@gnu.org>
17650 LVM support for FreeBSD and GNU/kFreeBSD.
17652 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17654 (LVM_DEV_MAPPER_STRING): Move from here ...
17655 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17656 * util/getroot.c: Include `<grub/util/lvm.h>'.
17657 (grub_util_get_dev_abstraction): Enable
17658 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17659 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17660 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17661 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17663 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17665 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17666 when LVM abstraction is required for ${GRUB_DEVICE}.
17668 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17670 Add support for LZO compression in GRUB:
17671 - import of minilzo library,
17672 - LZO decompression for btrfs,
17673 - lzop files decompression.
17675 * grub-core/io/lzopio.c: New file.
17676 * grub-core/lib/adler32.c: Likewise.
17677 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17678 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17679 * grub-core/lib/minilzo/minilzo.c: Likewise.
17680 * grub-core/lib/minilzo/minilzo.h: Likewise.
17681 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17682 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17683 grub-core/lib/minilzo/minilzo.c to common.
17684 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17685 cflags in cppflags.
17686 * grub-core/Makefile.core.def (btrfs): Likewise.
17687 * grub-core/Makefile.core.def (lzopio): New module.
17688 (adler32): Likewise.
17689 * grub-core/fs/btrfs.c: Include minilzo.h.
17690 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17691 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17692 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17693 (grub_btrfs_lzo_decompress): New function.
17694 (grub_btrfs_extent_read): Add support for LZO compression type.
17695 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17696 (GRUB_USHRT_MAX): Likewise.
17697 (GRUB_UINT_MAX): Likewise.
17698 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17699 (UINT_MAX): Likewise.
17700 (CHAR_BIT): Likewise.
17701 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17702 grub-core/lib/posix_wrap/limits.h
17703 (UCHAR_MAX): Likewise.
17704 * include/grub/file.h (grub_file_filter_id): New compression filter
17705 GRUB_FILE_FILTER_LZOPIO.
17706 * include/grub/file.h (grub_file_filter_id): Set
17707 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17708 * include/grub/types.h (grub_get_unaligned16): New function.
17709 (grub_get_unaligned32): Likewise.
17710 (grub_get_unaligned64): Likewise.
17711 * util/import_gcry.py (cryptolist): Add adler32.
17713 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17715 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17716 in perspective decreases the complexity of build system and fixes
17717 compilation right now.
17719 2011-10-01 Ales Nesrsta <starous@volny.cz>
17721 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17722 (fixed problem related to using UHCI with coreboot).
17724 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17726 * gentpl.py: Use Autogen macros so that the output template file
17727 (Makefile.tpl) size is reduced.
17729 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17731 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17734 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17736 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17737 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17739 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17741 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17744 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17746 Remove extra declaration of sleep for mingw32.
17748 * util/misc.c (sleep) [__MINGW32__]: Removed.
17749 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17751 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17753 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17755 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17757 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17758 (grub_netbsd_btinfo_bootwedge): New struct.
17759 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17761 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17763 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17765 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17768 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17770 Fix incorrect identifiers in bash-completion.
17772 * util/bash-completion.d/grub-completion.bash.in
17773 (_grub_mkpasswd-pbkdf2): Rename to ...
17774 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17775 (_grub_script-check): Rename to ...
17776 (_grub_script_check): ... this. All users updated.
17778 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17780 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17781 Return 0 if disk isn't biosdisk.
17783 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17785 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17787 * Makefile.util.def (grub-fstest): Likewise.
17789 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17791 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17792 Get sector size from disk label.
17794 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17796 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17797 */README* as well as README*.
17798 Reported by: Axel Beckert.
17800 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17802 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17803 case of less than 256 MiB of RAM.
17805 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17807 * grub-core/commands/wildcard.c (make_regex): Handle @.
17809 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17811 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17813 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17815 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17816 AC_LANG_CONFTEST macros.
17818 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17820 Add grub-fstest option to uncompress data for commands.
17822 * util/grub-fstest.c (uncompress): New var.
17823 (options): New option -u.
17825 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17827 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17828 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17830 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17832 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17833 file type was not recognized correctly (not gzip or corrupted).
17835 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17837 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17838 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17840 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17842 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17844 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17845 video_radeon_fuloong2e.
17846 * grub-core/video/radeon_fuloong2e.c: New file.
17847 * include/grub/video.h (grub_video_id_t): Add new ID
17848 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17850 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17852 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17854 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17855 that PRID matches the detected subplatform and reset the subplatform
17858 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17860 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
17862 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17864 Fix PCI iterating on functions >= 4.
17866 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
17867 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
17869 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
17870 (grub_pci_read): Fix bitmask.
17871 (grub_pci_read_word): Likewise.
17872 (grub_pci_read_byte): Likewise.
17873 (grub_pci_write): Likewise.
17874 (grub_pci_write_word): Likewise.
17875 (grub_pci_write_byte): Likewise.
17877 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17879 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
17880 can still be specified in TARGET_CFLAGS)
17882 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17884 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
17886 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
17887 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
17888 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
17889 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
17890 (FULOONG): Rename to ...
17891 (FULOONG2F): ... this. All users updated.
17892 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
17893 (machtype_fuloong2f_str): ... this.
17894 (machtype_fuloong2e_str): New string.
17895 Check for machtype_fuloong2e_str.
17896 * grub-core/loader/mips/linux.c (loongson_machtypes)
17897 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
17898 * grub-core/term/serial.c (loongson_defserial)
17899 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
17900 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
17901 loongson_defserial.
17902 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
17904 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
17905 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
17906 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
17907 to IMAGE_FULOONG2F_FLASH. All users updated.
17908 (image_targets): Rename images.
17909 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
17911 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17913 Make enable of disk cache statistics code configurable.
17915 * configure.ac: --enable-cache-stats added.
17916 * config.h.in (DISK_CACHE_STATS): New define.
17917 * grub-core/Makefile.core.def (cacheinfo): New command.
17918 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
17919 * grub-core/commands/cacheinfo.c: New file.
17920 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
17921 moved to cacheinfo.c.
17922 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
17924 * include/grub/disk.h: Likewise.
17926 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17928 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
17929 * grub-core/Makefile.am: Likewise.
17931 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17933 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
17936 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17938 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
17940 (grub_jfs_lookup_symlink): Use correct starting inode.
17942 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17944 * util/grub-setup.c (main): Add missing gcry initialisation.
17946 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17948 Don't accept text modes on EFI when booting Linux.
17950 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
17951 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
17953 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
17954 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17956 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
17957 use of "/path/.." as in grub-install for EFI as well as handling
17958 symlinks correctly.
17959 Fixes Debian bug #637768.
17961 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17963 * util/grub-probe.c: Remove duplicate #include.
17965 2011-08-10 Robert Millan <rmh@gnu.org>
17967 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
17969 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
17971 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
17972 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
17974 2011-08-03 Robert Millan <rmh@gnu.org>
17976 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
17977 la_array as packed.
17978 Reported by: Zachary Bedell
17980 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17982 * configure.ac: The Loongson port requires grub-mkfont due to its
17983 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
17986 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17988 * util/grub-install.in: Don't source grub-mkconfig_lib until after
17989 processing arguments (otherwise help2man fails when GRUB has not yet
17992 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17994 New script grub-mkstandalone.
17996 * Makefile.util.def (grub-mkstandalone): New script.
17997 * docs/man/grub-mkstandalone.h2m: New file.
17998 * util/grub-mkstandalone.in: Likewise.
18000 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18002 Support ATA disks with 4K sectors.
18004 * include/grub/ata.h (grub_ata): New member log_sector_size.
18005 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18006 (grub_ata_identify): Read sector size.
18007 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18009 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18011 * util/grub-install.in: Don't use uhci outside of x86.
18013 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18015 * util/grub-mkrescue.in: Add missing quotes.
18017 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18019 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18022 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18024 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18026 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18028 * include/grub/video.h: add missing EXPORT_FUND on
18029 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18031 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18033 * include/grub/mips/kernel.h: Fix define conflict.
18035 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18037 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18040 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18042 Preferred resolution detection for VBE.
18044 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18045 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18046 the Flat Panel extension, in line with the X.org VESA driver.
18047 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18049 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18050 (grub_vbe_bios_read_edid): Likewise.
18051 (grub_vbe_get_preferred_mode): Likewise.
18052 (grub_video_vbe_setup): When the mode is "auto", try to get the
18053 preferred mode from VBE, and use the largest mode that is no larger
18054 than the preferred mode (some BIOSes expose a preferred mode that is
18055 not in their mode list!). If this fails, fall back to 640x480 as a
18056 safe conservative choice.
18057 (grub_video_vbe_get_edid): New function.
18058 (grub_video_vbe_adapter): Add get_edid.
18059 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18060 (struct grub_video_adapter): Add get_edid.
18061 (grub_video_edid_checksum): Add prototype.
18062 (grub_video_edid_preferred_mode): Likewise.
18063 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18066 * grub-core/commands/videoinfo.c (print_edid): New function.
18067 (grub_cmd_videoinfo): Print EDID if available.
18069 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18070 is more appropriate on a wider range of platforms than 640x480.
18071 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18074 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18076 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18078 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18080 * po/POTFILES.in: Regenerate.
18082 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18084 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18085 incorrect memory usage.
18087 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18089 * util/grub-install.in: Source grub-mkconfig_lib.
18091 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18093 Remove getroot.c from core on emu platform.
18095 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18097 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18099 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18100 * util/getroot.c (get_win32_path): ... here.
18101 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18102 * util/getroot.c (fini_libzfs): ... here.
18103 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18104 * util/getroot.c (grub_get_libzfs_handle): ... here.
18105 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18107 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18108 * grub-core/kern/emu/misc.c
18109 (grub_make_system_path_relative_to_its_root): Moved from here...
18110 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18111 * grub-core/kern/emu/getroot.c: Moved from here ...
18112 * util/getroot.c: ... here. All users updated.
18113 * grub-core/kern/emu/raid.c: Moved from here ...
18114 * util/raid.c: ... here. All users updated.
18116 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18118 * po/POTFILES.in: Regenerate.
18120 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18122 Fix compilation on GNU/Linux.
18124 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18126 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18127 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18128 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18130 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18131 2011-07-07 Michael Gorven <michael@gorven.za.net>
18132 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18134 LUKS and GELI support.
18136 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18137 grub-core/disk/luks.c, grub-core/disk/geli.c,
18138 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18139 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18140 grub-core/lib/arg.c.
18141 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18142 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18143 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18144 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18145 (grub-bin2h): Add libgcry.a.
18146 (grub-mkimage): Likewise.
18147 (grub-mkrelpath): Likewise.
18148 (grub-script-check): Likewise.
18149 (grub-editenv): Likewise.
18150 (grub-mkpasswd-pbkdf2): Likewise.
18151 (grub-pe2elf): Likewise.
18152 (grub-fstest): Likewise.
18153 (grub-mkfont): Likewise.
18154 (grub-mkdevicemap): Likewise.
18155 (grub-probe): Likewise.
18156 (grub-ofpath): Likewise.
18157 (grub-mklayout): Likewise.
18158 (example_unit_test): Likewise.
18159 (grub-menulst2cfg): Likewise.
18160 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18161 * grub-core/Makefile.core.def (cryptodisk): New module.
18164 * grub-core/disk/AFSplitter.c: New file.
18165 * grub-core/disk/cryptodisk.c: Likewise.
18166 * grub-core/disk/geli.c: Likewise.
18167 * grub-core/disk/luks.c: Likewise.
18168 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18170 (grub_util_get_dm_abstraction): New function.
18171 (grub_util_follow_gpart_up): Likewise.
18172 (grub_util_get_geom_abstraction): Likewise.
18173 (grub_util_get_dev_abstraction): Use new functions.
18174 (grub_util_pull_device): Pull GELI and LUKS.
18175 (grub_util_get_grub_dev): Handle LUKS and GELI.
18176 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18177 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18178 (follow_geom_up): Removed.
18179 (grub_util_fd_seek): New function.
18180 (open_device): Use grub_util_fd_seek.
18181 (nread): Rename to ..
18182 (grub_util_fd_read): ... this. All users updated.
18183 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18184 (grub_crypto_cbc_decrypt): Likewise.
18185 (grub_crypto_hmac_write): Likewise.
18186 (grub_crypto_hmac_buffer): Likewise.
18187 (grub_password_get): Extend to util.
18188 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18189 New member modname.
18190 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18191 * include/grub/cryptodisk.h: New file.
18192 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18193 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18195 (grub_util_follow_gpart_up): New proto.
18196 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18197 (grub_util_fd_read): Likewise.
18198 (grub_cryptodisk_cheat_mount): Likewise.
18199 (grub_util_cryptodisk_print_uuid): Likewise.
18200 (grub_util_get_fd_sectors): Likewise.
18201 * util/grub-fstest.c (mount_crypt): New var.
18202 (fstest): Mount crypto if requested.
18203 (options): New option -C.
18204 (argp_parser): Parse -C.
18205 (main): Init and fini gcry.
18206 * util/grub-install.in: Support cryptodisk install.
18207 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18208 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18210 (prepare_grub_to_access_device): Likewise.
18211 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18212 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18213 (probe_cryptodisk_uuid): New function.
18214 (probe_abstraction): Likewise.
18215 (probe): Use new functions.
18216 * util/import_gcry.py: Create Makefile.utilgcry.def.
18217 Add modname member.
18219 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18221 Lazy device scanning.
18223 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18224 (grub-setup): Remove util/raid.c.
18225 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18226 * grub-core/disk/lvm.c (scan_depth): New variable.
18227 (grub_lvm_iterate): Rescan if necessary.
18228 (find_lv): New function based on grub_lvm_open.
18229 (grub_lvm_open): Use find_lv. Rescan on error.
18230 (is_node_readable): New function.
18231 (is_lv_readable): Likewise.
18232 (grub_lvm_scan_device): Skip already found disks.
18233 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18234 Stop if searched device is found and readable.
18235 * grub-core/disk/raid.c (inscnt): New variable.
18236 (scan_depth): Likewise.
18237 (scan_devices): New function based on grub_raid_register. Abort if
18238 looked for device is found.
18239 (grub_raid_iterate): Rescan if needed.
18240 (find_array): NEw function based on -grub_raid_open.
18241 (grub_raid_open): Use find_array and rescan.
18242 (insert_array): Set became_readable_at.
18243 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18244 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18246 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18247 (grub_util_pull_device): New function.
18248 (grub_util_get_grub_dev): Call grub_util_pull_device.
18249 * util/raid.c: Moved to ..
18250 * grub-core/kern/emu/raid.c: ... here.
18251 (grub_util_raid_getmembers): New parameter "bootable".
18252 All users updated. Support 1.x.
18253 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18255 * include/grub/disk.h (grub_disk_pull_t): New enum.
18256 (grub_disk_dev): Change iterate prototype.
18258 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18260 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18261 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18262 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18263 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18265 * include/grub/util/raid.h: Removed.
18267 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18269 * po/POTFILES.in: Regenerate.
18271 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18273 Unify sparc init with other ieee1275.
18275 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18276 instead of kern/sparc64/ieee1275/init.c.
18277 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18278 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18279 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18280 grub/machine/kernel.h.
18281 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18282 (grub_claim_heap) [__sparc__]: Use sparc version.
18283 (grub_machine_init): Moved args parsing to
18284 (grub_parse_cmdline): ...this.
18285 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18286 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18288 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18290 Move BOOTP to separate file.
18292 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18293 * grub-core/net/net.c: Move all BOOTP functions to
18294 * grub-core/net/bootp.c: ... here.
18296 Use frame interface on PXE.
18298 * grub-core/Makefile.core.def (pxecmd): Removed.
18299 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18300 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18301 * grub-core/i386/pc/pxe.c: Moved from here ...
18302 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18303 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18304 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18306 EFI network support.
18308 * grub-core/Makefile.core.def (efinet): New module.
18309 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18311 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18313 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18314 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18315 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18316 * grub-core/net/drivers/efi/efinet.c: New file.
18317 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18318 (grub_efi_net_config): New extern var.
18320 Various cleanups and bugfixes.
18322 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18324 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18325 disk declared as partition.
18326 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18328 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18329 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18330 (grub_debug_zalloc): Likewise.
18331 (grub_debug_realloc): Likewise.
18332 (grub_debug_memalign): Likewise.
18333 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18334 Check that target is IPv4.
18335 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18336 local-mac-address as fallback.
18337 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18339 * grub-core/net/ip.c (ipchksum): Rename to ...
18340 (grub_net_ip_chksum): ... this. All users updated.
18341 (grub_net_recv_ip_packets): Special handling for DHCP.
18342 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18344 Unify prefix handling
18346 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18347 (grub_machine_get_bootlocation): ... this.
18348 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18349 (grub_machine_get_bootlocation): ... this.
18350 (grub_prefix): New variable.
18352 (root_dev): New variable.
18354 (main): Use new variables.
18355 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18357 (grub_machine_get_bootlocation): ... this.
18358 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18359 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18360 (grub_machine_get_bootlocation): ... this.
18361 (grub_machine_set_prefix): Removed.
18362 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18363 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18365 (grub_machine_get_bootlocation): ... this.
18366 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18367 (grub_set_prefix_and_root): ... this. All users updated.
18368 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18370 (grub_machine_get_bootlocation): ... this.
18371 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18372 (grub_machine_get_bootlocation): New proto.
18373 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18375 Less intrusive and more reliable seek on network implementation.
18377 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18378 (grub_file_seek): Don't call grub_file_net_seek.
18379 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18380 (grub_net_fs_read_real): .. this.
18381 (grub_net_seek_real): Use net->offset.
18382 (grub_net_fs_read): Seek if necessary.
18384 Unify IEEE1275 netwotk config with the other platforms.
18386 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18388 (grub_machine_get_bootlocation): Support network.
18389 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18390 Support type and device parsing.
18391 (grub_ieee1275_get_device_type): New function.
18392 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18394 (grub_ieee1275_net_config_real): ... this.
18395 (grub_ofnet_probecards): Removed.
18396 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18397 * include/grub/ieee1275/ofnet.h: Removed.
18398 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18400 (grub_ieee1275_get_device_type): New function.
18402 Unify network device closing across platforms and make more robust.
18404 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18406 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18408 * grub-core/net/net.c (grub_net_network_level_interface_register):
18410 (grub_net_card_unregister): Close all interfaces.
18411 (receive_packets): Don't poll if no iterfaces are registered.
18413 (grub_net_fini_hw): New function.
18414 (grub_net_restore_hw): Likewise.
18415 (fini_hnd): New variable.
18416 (GRUB_MOD_INIT): Register preboot hook.
18417 (GRUB_MOD_FINI): Run and unregister preboot hook.
18419 Poll network cards when idle.
18421 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18422 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18423 * grub-core/net/net.c (receive_packets): Save last poll time.
18424 (grub_net_poll_cards_idle_real): New function.
18425 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18426 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18427 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18429 Rename ofnet interfaces.
18431 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18432 (grub_ofnet_findcards): Use ofnet_%s names.
18434 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18436 Cleanup socket opening.
18438 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18439 (grub_net_fs_close): Likewise.
18440 (grub_net_fs_read_real): Use eof member.
18441 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18442 (+grub_net_udp_close): New inline function.
18444 * include/grub/net/tftp.h: Moved to the top of ...
18445 * grub-core/net/tftp.c: ... here.
18446 * include/grub/net/ip.h: Moved mostly to the top of ...
18447 * grub-core/net/ip.c: ... here.
18448 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18449 * grub-core/net/ethernet.c: ... here.
18451 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18453 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18456 * include/grub/net/ip.h (ipv4_ini): Removed.
18457 (ipv4_fini): Likewise.
18459 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18460 (grub_net_send_ip_packets): Likewise.
18462 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18464 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18465 grub_read_cmos prototype.
18467 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18469 VGA text support in qemu-mips
18471 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18472 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18473 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18475 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18476 * grub-core/kern/vga_init.c: ... this.
18477 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18478 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18479 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18481 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18482 GRUB_MACHINE_PCI_IO_BASE.
18484 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18486 MIPS qemu flash support.
18488 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18490 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18491 (grub_machine_init): Probe memory if its size isn't known.
18492 * util/grub-mkimage.c (image_targets): Add flash targets.
18493 (generate_image): Handle flash targets.
18495 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18497 MIPS qemu at_keyboard support.
18499 * gentpl.py (videoinkernel): Add qemu-mips.
18500 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18501 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18502 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18504 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18505 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18506 * grub-core/term/serial.c (grub_serial_register)
18507 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18509 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18511 CMOS support on sparc.
18513 * gentpl.py (cmos): Add powerpc and sparc.
18514 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18516 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18517 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18518 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18519 grub_set_datetime_cmos.
18520 * grub-core/lib/ieee1275/cmos.c: New file.
18521 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18522 (find_rtc): Set no_ieee1275_rtc on error.
18523 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18524 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18525 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18526 fail. Move value to argument. All users updated
18527 (grub_cmos_write): Likewise.
18528 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18529 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18530 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18531 grub_get_datetime_cmos and grub_set_datetime_cmos.
18533 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18535 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18536 sourcing grub-mkconfig_lib.
18537 * util/update-grub_lib.in: Likewise.
18538 * util/grub.d/00_header.in: Likewise.
18539 * util/grub.d/10_hurd.in: Likewise.
18540 * util/grub.d/10_kfreebsd.in: Likewise.
18541 * util/grub.d/10_linux.in: Likewise.
18542 * util/grub.d/10_netbsd.in: Likewise.
18543 * util/grub.d/10_windows.in: Likewise.
18544 * util/grub.d/20_linux_xen.in: Likewise.
18545 * util/grub.d/30_os-prober.in: Likewise.
18547 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18549 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18550 default_bg_color rather than black.
18551 (grub_gfxterm_fullscreen): Likewise.
18552 (grub_gfxterm_background_color_cmd): Save new background color in
18555 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18557 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18559 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18561 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18564 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18566 Chainloading on coreboot support.
18568 * grub-core/Makefile.core.def (chain): Add coreboot.
18569 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18571 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18573 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18576 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18578 Implement time command.
18580 * grub-core/Makefile.core.def (time): New module.
18581 * grub-core/commands/time.c: New file.
18582 * grub-core/script/parser.y: Remove "time" keyword.
18583 * grub-core/script/yylex.l: Likewise.
18585 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18587 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18589 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18591 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18592 when handling leftovers.
18594 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18596 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18597 so that help2man doesn't fail.
18599 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18601 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18602 type in pointers on sparc64.
18603 (get_card_packet): Likewise.
18605 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18607 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18609 (grub_cmd_videoinfo): Fetch current video mode.
18611 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18613 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18614 because of underlying system restrictions.
18616 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18618 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18621 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18623 Coreboot video support.
18625 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18627 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18628 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18630 * grub-core/kern/i386/int.S: ... here.
18631 * grub-core/video/i386/pc/vbe.c: Updated includes.
18632 * grub-core/video/i386/pc/vga.c: Likewise.
18633 * include/grub/i386/coreboot/memory.h
18634 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18635 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18636 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18637 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18638 Disable interrupts.
18639 * include/grub/i386/pc/vga.h: Removed. All users updated.
18641 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18643 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18644 definitions for dprintf.
18645 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18647 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18649 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18651 (get_card_packet): Likewise.
18653 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18655 Display the path of the file when file is not found
18657 * grub-core/fs/fat.c: Display the filename when file is not found.
18658 * grub-core/fs/fshelp.c: Likewise.
18659 * grub-core/fs/hfs.c: Likewise.
18660 * grub-core/fs/jfs.c: Likewise.
18661 * grub-core/fs/minix.c: Likewise.
18662 * grub-core/fs/ufs.c: Likewise.
18663 * grub-core/fs/btrfs.c: Likewise.
18664 * grub-core/commands/i386/pc/play.c: Likewise.
18666 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18668 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18669 pointer checks before calling grub_free().
18670 * grub-core/commands/wildcard.c (match_devices): Likewise.
18671 * grub-core/commands/wildcard.c (match_files): Likewise.
18672 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18673 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18674 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18675 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18676 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18677 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18678 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18679 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18680 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18682 2011-06-25 Patrick <p55@mailinator.com>
18684 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18686 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18688 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18689 (grub_pxe_send): Likewise.
18690 (GRUB_MOD_INIT): Fix types.
18692 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18694 * grub-core/io/xzio.c: Fix code style issues
18696 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18697 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18699 Network infrastructure.
18700 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18702 * include/grub/net/arp.h: New file.
18703 * include/grub/net/device.h: Likewise.
18704 * include/grub/net/ethernet.h: Likewise.
18705 * include/grub/net/ip.h: Likewise.
18706 * include/grub/net/netbuff.h: Likewise.
18707 * include/grub/net/tftp.h: Likewise.
18708 * include/grub/net/udp.h: Likewise.
18709 * include/grub/ieee1275/ofnet.h: Likewise.
18710 * include/grub/emu/export.h: Likewise.
18711 * include/grub/net.h: Likewise.
18712 * grub-core/net/arp.c: Likewise.
18713 * grub-core/net/ethernet.c: Likewise.
18714 * grub-core/net/ip.c: Likewise.
18715 * grub-core/net/udp.c: Likewise.
18716 * grub-core/net/tftp.c: Likewise.
18717 * grub-core/net/netbuff.c: Likewise.
18718 * grub-core/net/net.c: Likewise.
18719 * grub-core/net/drivers/emu/emunet.c: Likewise.
18720 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18721 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18723 * grub-core/Makefile.core.def (net): New module.
18726 (emunet): Likewise.
18727 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18729 * grub-core/kern/device.c (grub_net_open) : New variable.
18730 (grub_device_open): Handle network device.
18731 (grub_device_close): Likewise.
18732 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18733 (grub_grubnet_fini): Likewise.
18734 (grub_file_seek): Seek in network device.
18735 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18736 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18738 (grub_machine_fini): Call grub_grubnet_fini.
18739 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18741 (grub_ieee1275_get_aliasdevname): New function.
18742 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18743 Add unofficial Solaris network info.
18744 (grub_multiboot_make_mbi): Likewise.
18745 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18746 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18747 * include/grub/device.h (grub_fs): Removed.
18748 * include/grub/err.h (grub_err_t): Add network-related values.
18749 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18750 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18751 (grub_ieee1275_get_aliasdevname): New proto.
18752 * include/grub/net.h: Rewritten.
18754 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18756 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18759 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18761 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18762 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18763 it truncates the output.
18764 Reported by: Ximin Luo.
18766 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18768 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18770 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18772 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18773 partmap before abstraction.
18775 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18777 * util/grub-mkconfig_lib.in: Add missing quotes.
18779 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18781 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18782 old method if mountinfo would return /dev/root and /dev/root doesn't
18785 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18789 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18790 (decomp_table): Add zlib entries.
18791 (zio_read): USe 8 bits for compression function rather than 3.
18792 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18794 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18796 * grub-core/disk/ahci.c: Add missing license statements.
18797 * grub-core/fs/romfs.c: Likewise.
18798 * grub-core/lib/ia64/setjmp.S: Likewise.
18799 * grub-core/loader/i386/pc/freedos.c: Likewise.
18800 * grub-core/loader/ia64/efi/linux.c: Likewise.
18801 * grub-core/video/colors.c: Likewise.
18802 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18804 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18808 * grub-core/Makefile.core.def (ata_pthru): Removed.
18809 (ahci): New module.
18811 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18813 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18815 (grub_hdparm_do_check_powermode_cmd): Likewise.
18816 (grub_hdparm_do_smart_cmd): Likewise.
18817 (grub_hdparm_set_val_cmd): Likewise.
18818 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18819 * grub-core/disk/ahci.c: New file.
18820 * grub-core/disk/ata.c: Factor out the low-level part into ...
18821 * grub-core/disk/pata.c: ... here.
18822 * grub-core/disk/ata_pthru.c: Contents moved to ...
18823 * grub-core/disk/pata.c: ... here.
18824 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18825 (grub_scsi_iterate): Use grub_scsi_names.
18826 (grub_scsi_open): Likewise.
18827 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18828 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18829 (grub_ata_regs_t): New struct.
18830 (grub_disk_ata_pass_through_parms): Likewise.
18831 (grub_ata_device): Renamed to ...
18832 (grub_ata): ... this.
18833 (grub_ata_dev): New struct.
18834 Removed all low-level inline functions.
18835 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18836 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18837 iterate hooks and open. All users updated.
18838 * util/grub-install.in: Handle AHCI disk module.
18840 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18842 Add support for DRI and RSTn markers in JPEG files.
18844 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18845 (JPEG_MARKER_RST0): Likewise.
18846 (JPEG_MARKER_RST1): Likewise.
18847 (JPEG_MARKER_RST2): Likewise.
18848 (JPEG_MARKER_RST3): Likewise.
18849 (JPEG_MARKER_RST4): Likewise.
18850 (JPEG_MARKER_RST5): Likewise.
18851 (JPEG_MARKER_RST6): Likewise.
18852 (JPEG_MARKER_RST7): Likewise.
18853 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18854 (grub_jpeg_decode_dri): New function.
18855 (grub_jpeg_decode_sos): Move image data related part into
18856 grub_jpeg_decode_data function.
18857 (grub_jpeg_decode_data): New function.
18858 (grub_jpeg_reset): New function.
18859 (grub_jpeg_decode_jpeg): Handle new markers.
18861 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18863 * util/ieee1275/ofpath.c (check_sas): Close fd.
18864 (main): Free of_path.
18865 Reported by: David Volgyes <dvolgyes>.
18867 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18869 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
18870 Reported by: David Volgyes <dvolgyes>.
18872 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18874 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
18876 Reported by: David Volgyes <dvolgyes>.
18878 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18880 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
18882 Reported by: David Volgyes <dvolgyes>.
18884 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18886 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
18887 Prevent memory leak.
18889 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18891 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
18892 (main): Close file.
18893 Reported by: David Volgyes <dvolgyes>.
18895 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18897 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
18898 to continue if allocation is failed.
18900 Reported by: David Volgyes <dvolgyes>.
18902 2011-06-23 David Volgyes <dvolgyes>
18904 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
18907 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18909 Fix spurious warning.
18911 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
18912 (acorn_partition_map_find): Use .bin member.
18914 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18916 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
18917 /dev/root as a valid device.
18919 2011-06-23 Jim Meyering <meyering@redhat.com>
18921 Avoid NULL deref in grub_device_open.
18923 * grub-core/kern/device.c (grub_device_open): Don't dereference
18924 a NULL pointer upon failed grub_env_get.
18926 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18928 Support non-512B sectors and agglomerate reads.
18930 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
18931 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
18932 (disk_io_guid): Removed.
18933 (make_devices): Locate solely by BlockIO.
18934 (grub_efidisk_open): Fill log_sector_size and total_sectors.
18935 (grub_efidisk_read): Use read_blocks.
18936 (grub_efidisk_write): Use write_blocks.
18937 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
18939 (get_safe_sectors): Handle non-512B sectors.
18940 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
18942 (grub_biosdisk_write): Handle non-512B sectors.
18943 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
18944 (grub_scsi_read): Remove special non-512B block handling (now handled
18946 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
18947 and do sanity checks.
18948 (grub_disk_adjust_range): Handle non-512B sectors.
18949 (transform_sector): New function.
18950 (grub_disk_read_small): Likewise.
18951 (grub_disk_read): Rewritten.
18952 (grub_disk_write): Handle non-512B sectors.
18953 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
18955 (open_device): Use log_sector_size.
18956 (grub_util_biosdisk_read): Likewise.
18957 (grub_util_biosdisk_write): Likewise.
18958 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
18960 (pc_partition_map_embed): Likewise.
18961 * include/grub/disk.h (grub_disk): New field log_sector_size.
18962 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
18963 (GRUB_DISK_CACHE_BITS): Increased to 6.
18964 * util/grub-fstest.c (fstest): New command testload.
18965 (argp_parser): Likewise.
18967 2011-06-16 Robert Millan <rmh@gnu.org>
18969 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
18970 `ata' driver on kernel of FreeBSD 9.
18972 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
18973 (get_ataraid_disk_name): New functions.
18974 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
18975 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
18976 get_ataraid_disk_name() and get_ada_disk_name().
18978 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
18980 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
18983 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
18985 * docs/grub.texi (Obtaining and Building GRUB): Substitute
18986 `ftp.gnu.org' for `alpha.gnu.org'.
18988 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18990 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
18991 partitions under /dev/disk/by-id/.
18993 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18995 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
18996 after ten consecutive open failures. Scanning all the way up to
18997 10000 is excessive and can cause serious performance problems in
18998 some configurations.
18999 Fixes Ubuntu bug #787461.
19001 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19003 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19006 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19007 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19009 Don't stat devices unless we have to.
19011 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19012 dir == /dev/mapper.
19013 (grub_guess_root_device): Use already known os_dev if possible.
19014 * grub-core/kern/emu/hostdisk.c
19015 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19016 if device is known to be a dm one.
19018 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19020 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19021 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19022 Reported by: Pawel Tecza.
19024 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19026 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19027 (lsefisystab): Likewise.
19029 (lsefimmap): Likewise.
19030 (hdparm): Enable on qemu-mips.
19031 (setjmp): Add ia64 nodist.
19032 (serial): Simplify tags.
19034 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19036 * Makefile.util.def (grub-ofpathname): Install manual page.
19038 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19040 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19042 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19044 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19046 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19048 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19051 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19053 Use full 64-bit division.
19055 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19056 (grub_divmod64): ... this.
19057 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19060 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19062 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19065 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19067 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19068 to avoid accidents when debugging with 'sh -x'.
19069 * grub-core/gensyminfo.sh.in: Likewise.
19070 * tests/example_scripted_test.in: Likewise.
19071 * tests/grub_cmd_regexp.in: Likewise.
19072 * tests/grub_script_blanklines.in: Likewise.
19073 * tests/grub_script_dollar.in: Likewise.
19074 * tests/grub_script_expansion.in: Likewise.
19075 * tests/grub_script_final_semicolon.in: Likewise.
19076 * tests/partmap_test.in: Likewise.
19077 * tests/util/grub-shell-tester.in: Likewise.
19078 * tests/util/grub-shell.in: Likewise.
19080 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19082 Move gfxmenu color handling to video, so that gfxterm can use it
19085 * grub-core/gfxmenu/named_colors.c: Move to ...
19086 * grub-core/video/colors.c: ... here. Rename
19087 grub_gui_get_named_color to grub_video_get_named_color.
19088 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19089 * grub-core/video/colors.c (my_isxdigit): ... here.
19090 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19092 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19093 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19095 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19097 * include/grub/gui.h (grub_gui_color_t): Move to ...
19098 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19099 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19100 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19101 * include/grub/gui.h (grub_gui_map_color): Move to ...
19102 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19103 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19105 * include/grub/video.h (grub_video_get_named_color): ... here.
19106 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19107 * include/grub/video.h (grub_video_parse_color): ... here.
19109 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19111 (gfxmenu): Remove gfxmenu/named_colors.c.
19112 (video) [videomodules]: Add video/colors.c.
19114 Add a background_color command.
19116 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19118 (GRUB_MOD_INIT): Register background_color command.
19119 (GRUB_MOD_FINI): Unregister background_color command.
19120 (redraw_screen_rect): Allow blend/replace of text layer to be
19121 controlled independently from whether there is a background bitmap.
19122 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19125 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19127 Patch BPB in ntldr and chainloader --bpb.
19129 * grub-core/fs/fat.c: Include grub/fat.h.
19130 (grub_fat_bpb): Moved to ...
19131 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19132 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19134 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19136 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19138 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19140 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19141 (GRUB_MOD_INIT): Show --bpb.
19142 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19143 * grub-core/normal/main.c (features): New variable.
19144 (GRUB_MOD_INIT): Set feature_* variables.
19145 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19147 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19149 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19151 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19154 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19156 FreeDOS direct loading support.
19158 * docs/grub.texi (Supported OS): Add FreeDOS.
19159 * grub-core/Makefile.core.def (freedos): New module.
19160 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19162 (grub_relocator16_boot): Handle %ebx.
19163 * grub-core/lib/i386/relocator16.S: Likewise.
19164 * grub-core/loader/i386/pc/freedos.c: New file.
19166 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19168 Long Linux command line support.
19170 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19171 (maximal_cmdline_size): New variable.
19172 (allocate_pages): Use maximal_cmdline_size.
19173 (grub_cmd_linux): Set and use maximal_cmdline_size.
19174 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19175 (allocate_pages): Use maximal_cmdline_size.
19176 (grub_cmd_linux): Set and use maximal_cmdline_size.
19177 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19178 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19181 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19182 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19184 Improve devmapper support
19186 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19187 (grub_util_is_lvm): New function.
19188 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19189 than lvm if not dmraid.
19190 Handle mapped md nodes.
19191 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19192 (grub_util_device_is_mapped): ... this. Make always available. All users
19194 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19195 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19197 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19199 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19201 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19203 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19204 * grub-core/modinfo.sh.in: New file.
19205 * grub-core/Makefile.core.def (modinfo.sh): New script.
19206 * util/grub-mknetdir.in: Use modinfo.sh.
19207 * util/grub-mkrescue.in: Likewise.
19209 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19211 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19212 Fix potential usage of Elf32 instead of Elf64 when compiling on
19213 32-bit architecture. Add endianness macros while on it.
19215 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19217 Use mipsel- rather than mips- in directories involving mipsel ports to
19218 allow both endiannesses coexist.
19220 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19221 mips. All conditions adjusted.
19222 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19224 * util/grub-install.in: Adjust conditions to take renaming into account.
19225 * util/grub-mkimage.c (image_targets): Likewise. New target
19226 mips-qemu_mips-elf for bigendian mips.
19228 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19230 Avoid unnecessary copying on MIPS.
19232 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19233 early if src == dest.
19234 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19235 compression is none.
19237 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19239 Reduce memory footprint on SGI by putting modules before the kernel
19240 as opposed to after.
19242 * grub-core/Makefile.core.def (kernel): Increase linking address.
19243 (none_decompress): Likewise.
19244 (xz_decompress): Likewise.
19245 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19247 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19249 (grub_arch_modules_addr): New function.
19250 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19251 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19252 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19254 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19255 (grub_total_modules_size): ... this. Make global.
19256 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19257 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19259 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19260 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19261 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19262 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19263 * util/grub-mkimage.c (image_target_desc): New flag
19264 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19265 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19266 (generate_image): Handle images with modules before kernel.
19268 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19270 Prevent potential loss of memory map by overwrite on qemu-mips.
19272 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19273 Save ram size in $s4.
19274 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19275 All users changed to grub_arch_memsize.
19276 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19278 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19279 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19280 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19283 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19285 * .bzrignore: Remove grub-dumpbios.
19287 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19289 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19290 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19291 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19292 existing options which append).
19293 * docs/grub.texi (Simple configuration): Document new options.
19294 Reported by: Ian Jackson. Fixes Debian bug #617538.
19296 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19298 * util/grub-fstest.c (cmd_cat): New function.
19299 (fstest): Handle CMD_CAT.
19300 (options): Add cat.
19301 (argp_parser): Handle cat.
19303 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19305 * Makefile.util.def (grub-bin2h): Don't install.
19306 * docs/man/grub-bin2h.h2m: Remove.
19308 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19310 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19313 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19315 Reenable qemu-mips port.
19317 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19318 Fix small arc bug while on it.
19319 * gentpl.py: Handle qemu_mips.
19320 * grub-core/Makefile.am: Likewise.
19321 * grub-core/Makefile.core.def: Likewise.
19322 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19323 inappropriate includes.
19324 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19325 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19326 * grub-core/kern/main.c (grub_modules_get_end)
19327 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19328 * grub-core/kern/mips/qemu-mips: Moved to ..
19329 * grub-core/kern/mips/qemu_mips: ... this.
19330 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19331 (grub_machine_init): Call terminfo_init and serial_init.
19332 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19333 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19335 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19337 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19338 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19339 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19340 * include/grub/mips/qemu_mips/cmos.h: New file.
19341 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19342 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19344 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19345 Use correct mips-style address.
19346 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19347 (GRUB_TICKS_PER_SECOND): Removed.
19348 (grub_get_rtc): Likewise.
19349 (grub_cpu_idle): Likewise.
19350 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19352 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19353 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19354 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19355 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19356 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19357 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19358 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19359 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19361 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19365 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19366 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19368 * configure.ac: New target mips-arc.
19369 * gentpl.py: Likewise.
19370 * grub-core/Makefile.am: Likewise.
19371 * grub-core/Makefile.core.def: Likewise.
19372 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19373 (none_decompress): Likewise.
19374 (lsdev): New module.
19375 (datetime): Use lib/arc/datetime.c on ARC.
19376 (part_dvh): New module.
19377 * grub-core/commands/arc/lsdev.c: New file.
19378 * grub-core/disk/arc/arcdisk.c: Likewise.
19379 * grub-core/kern/mips/arc/init.c: Likewise.
19380 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19382 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19384 (grub_arch_dl_relocate_symbols): Likewise.
19385 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19386 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19387 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19389 * grub-core/lib/arc/datetime.c: New file.
19390 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19391 pci.h on non-loongson.
19392 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19393 (grub_linux_boot): Set unused registers to 0.
19394 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19395 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19396 * grub-core/mmap/mips/uppermem.c: ...here.
19397 * grub-core/partmap/dvh.c: New file.
19398 * grub-core/term/arc/console.c: Likewise.
19399 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19400 (grub_terminfo_set_current): Add terminal "arc".
19401 (grub_terminfo_readkey): Support ARC sequences.
19402 * include/grub/arc/arc.h: New file.
19403 * include/grub/arc/console.h: Likewise.
19404 * include/grub/disk.h (grub_disk_dev_id): Add
19405 GRUB_DISK_DEVICE_ARCDISK_ID.
19406 * include/grub/mips/arc/kernel.h: New file.
19407 * include/grub/mips/arc/memory.h: Likewise.
19408 * include/grub/mips/arc/time.h: Likewise.
19409 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19410 * include/grub/mips/kernel.h (grub_halt): ... here.
19411 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19413 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19414 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19415 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19416 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19418 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19420 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19421 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19422 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19423 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19424 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19425 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19426 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19427 (grub_phys_addr_t): Moved from here ...
19428 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19429 (grub_vtop): Moved from here ...
19430 * include/grub/mips/memory.h (grub_vtop): ... here.
19431 (grub_map_memory): Moved from here ...
19432 * include/grub/mips/memory.h (grub_map_memory): ... here.
19433 (grub_unmap_memory): Moved from here ...
19434 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19435 (grub_machine_mmap_iterate): Moved from here ...
19436 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19437 (grub_mmap_get_lower): Moved from here ...
19438 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19439 (grub_mmap_get_upper): Moved from here ...
19440 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19441 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19443 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19444 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19446 * include/grub/mips/time.h (grub_get_rtc): ... here.
19447 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19449 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19450 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19452 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19453 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19455 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19456 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19457 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19458 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19459 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19460 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19461 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19462 (GRUB_MACHINE_LINK_ADDR): Likewise.
19463 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19465 * util/grub-install.in: Run dvhtool on ARC.
19466 * util/grub-mkimage.c (image_targets): Add mips-arc.
19467 (generate_image): Handle ECOFF output for mips-arc.
19469 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19471 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19474 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19476 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19477 after enabling port.
19479 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19481 Skip incorrect USB devices.
19483 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19485 * include/grub/usb.h (grub_usb_err_t): New enum value
19486 GRUB_USB_ERR_BADDEVICE.
19488 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19490 Fuloong video init support.
19492 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19494 (grub_vga_read_arx): New function.
19495 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19497 (framebuffer): New members io, mmioptr and mmiobase.
19498 (read_sis_cmd): New function.
19499 (write_sis_cmd): Likewise.
19500 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19501 rather than 640x400.
19502 * grub-core/video/sis315_init.c: New file.
19504 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19506 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19508 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19509 to grub_dl_register_symbol.
19511 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19513 Fix compilation errors.
19515 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19516 potentially unused.
19517 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19518 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19519 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19520 to loongson machines.
19522 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19524 Several FS mtime support.
19526 * grub-core/fs/affs.c (grub_affs_time): New struct.
19527 (grub_affs_file): New field mtime.
19528 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19529 type. Removed 'size'. New field 'di'. All users updated.
19530 (grub_affs_mount): Simplify checsum checking.
19531 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19532 (grub_affs_dir): Handle mtime.
19533 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19534 (grub_cpio_dir): Likewise.
19535 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19536 (grub_hfs_filerec): New field mtime.
19537 (grub_hfs_dir): Handle mtime.
19538 (grub_hfs_mtime): New function.
19539 (grub_hfs_fs): Register grub_hfs_mtime.
19540 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19541 (grub_iso9660_dir): New field mtime.
19542 (grub_fshelp_node): New field dirent.
19543 (iso9660_to_unixtime): New function.
19544 (iso9660_to_unixtime2): Likewise.
19545 (grub_iso9660_read_symlink): Use node->dirent.
19546 (grub_iso9660_iterate_dir): Likewise.
19547 (grub_iso9660_dir): Set mtime.
19548 (grub_iso9660_mtime): New function.
19549 (grub_iso9660_fs): Register grub_iso9660_mtime.
19550 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19551 (grub_jfs_inode): New fields atime, ctime and mtime.
19552 (grub_jfs_dir): Set mtime.
19553 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19554 * grub-core/fs/ntfs.c (list_file): Set mtime.
19555 (grub_ntfs_dir): Likewise.
19556 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19557 (grub_reiserfs_iterate_dir): Set mtime.
19558 (grub_reiserfs_dir): Likewise.
19559 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19560 (grub_fshelp_node): Likewise.
19561 (grub_sfs_iterate_dir): Set mtime.
19562 (grub_sfs_dir): Likewise.
19563 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19564 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19565 (grub_xfs_inode): New fields atime, mtime, ctime.
19566 (grub_xfs_dir): Set mtime.
19567 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19568 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19569 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19571 Support UDF symlinks.
19573 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19574 (grub_ufs_read_symlink): New function. All users updated.
19576 Check amiga partmap checksum.
19578 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19579 (grub_amiga_partition): Likewise.
19580 (amiga_partition_map_checksum): New function.
19581 (amiga_partition_map_iterate): Check checksum.
19583 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19587 * Makefile.util.def (libgrubmods.a): Add romfs.
19588 * grub-core/Makefile.core.def (romfs): New module.
19589 * grub-core/fs/romfs.c: New file.
19591 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19593 Squashfs v4 support.
19595 * Makefile.util.def (libgrubmods.a): Add squash4.
19596 * grub-core/Makefile.core.def (squash4): New module.
19597 * grub-core/fs/squash4.c: New file.
19598 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19599 disk_input_start, disk_input.
19600 (get_byte): Handle disk_input.
19601 (grub_zlib_disk_read): New function.
19602 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19604 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19605 2011-05-15 Feiran Zheng <famcool@gmail.com>
19607 * Makefile.util.def (libgrubmods.a): Add minix3.
19608 * grub-core/Makefile.core.def (minix3): New module.
19609 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19610 (GRUB_MINIX_BSIZE): Removed.
19611 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19612 (grub_minix_ino_t): New type.
19613 (grub_minix_le_to_cpu_ino): New macro.
19614 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19615 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19616 (grub_minix_data): New field block_size.
19617 (grub_minix_read_file): Handle 64-bit correctly.
19618 * grub-core/fs/minix3.c: New file.
19620 2011-05-15 Tristan Gingold <gingold@free.fr>
19621 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19622 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19626 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19627 * configure.ac: Add ia64-efi target.
19628 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19629 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19630 * gentpl.py: Add ia64_efi platform.
19631 Rename x86_efi to efi and Add ia64-efi. All users updated.
19632 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19633 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19634 Remove kern/generic/rtc_get_time_ms.c on EFI.
19635 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19636 kern/ia64/dl_helper.c on ia64-efi.
19637 Add kern/emu/cache.c on emu.
19638 (linux): Use on loader/ia64/efi/linux.c on ia64.
19639 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19640 whether symbol is a function.
19641 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19642 (grub_symbol): New field 'isfunc'.
19643 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19644 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19645 (grub_dl_load_segments): Place all sections into the same region.
19646 [__ia64__]: Create trampolines and got.
19647 [GRUB_MACHINE_EMU]: Call mprotect.
19648 (grub_dl_resolve_symbols): Resolve symbol type as well.
19649 [__ia64__]: Create function descriptors.
19650 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19651 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19652 (grub_get_rtc): New function.
19653 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19654 * grub-core/kern/emu/cache.S: Renamed to ...
19655 * grub-core/kern/emu/cache_s.S: ... this.
19656 [__ia64__]: Add a nop.
19657 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19658 [__ia64__]: New function.
19659 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19660 * grub-core/kern/ia64/dl.c: New file.
19661 * grub-core/kern/ia64/dl_helper.c: Likewise.
19662 * grub-core/kern/ia64/efi/init.c: New file.
19663 * grub-core/kern/ia64/efi/startup.S: Likewise.
19664 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19665 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19666 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19667 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19668 * grub-core/loader/ia64/efi/linux.c: New file.
19669 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19670 (GRUB_MOD_DEP): Likewise.
19671 (grub_dl) [__ia64__]: New fields got and tramp.
19672 (grub_dl): New field 'base'.
19673 (grub_dl_register_symbol): New argument isfunc. All users updated.
19674 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19675 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19676 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19677 (grub_ia64_dl_get_tramp_got_size): New proto.
19678 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19679 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19680 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19681 * include/grub/efi/api.h: Skip call wrappers on ia64.
19682 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19683 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19684 * include/grub/elf.h (ELF_ST_INFO): New definition.
19685 * include/grub/ia64/efi/kernel.h: New file.
19686 * include/grub/ia64/efi/memory.h: Likewise.
19687 * include/grub/ia64/efi/time.h: Likewise.
19688 * include/grub/ia64/kernel.h: Likewise.
19689 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19690 * include/grub/ia64/time.h: New file.
19691 * include/grub/ia64/types.h: Likewise.
19692 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19693 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19695 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19696 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19697 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19698 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19700 (EFI64_HEADER_SIZE): New definition. All users updated.
19701 (image_targets): Add ia64-efi.
19702 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19703 jumpers_addr. All users updated.
19704 Create function descriptors.
19705 (count_funcs): New function.
19706 (unaligned_uint32): New struct.
19707 (MASK20): New definition.
19708 (MASK19): Likewise.
19709 (MASKF21): Likewise.
19710 (add_value_to_slot_20b): New function.
19711 (add_value_to_slot_21_real): Likewise.
19712 (add_value_to_slot_21): Likewise.
19713 (ia64_kernel_trampoline): New struct.
19714 (nopm): New variable.
19716 (make_trampoline): New function.
19717 (relocate_addresses): Handle ia64.
19718 (make_reloc_section): Likewise.
19719 (load_image): Likewise.
19721 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19723 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19724 warning. Move variables before code while on it.
19726 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19730 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19731 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19732 * grub-core/boot/mips/loongson/fuloong.S: New file.
19733 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19734 Explicitly init CS5536.
19735 [FULOONG]: Don't use serial until CS5536 is available.
19736 Set GPIO based on dumps.
19737 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19738 [FULOONG]: Handle GPIO and memory controller differences.
19739 Parse machine type in $a2.
19740 * grub-core/boot/mips/startup_raw.S: Determine and save the
19742 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19743 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19744 init on architecture type.
19745 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19746 SIS315E. Don't init at_keyboard on fuloong.
19747 (grub_halt): Support Fuloong.
19748 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19749 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19750 (loongson_machtypes): New array.
19751 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19753 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19754 config. All users updated. Handle CS5536 serial.
19755 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19756 default port on machine type. Register serial as inactive.
19757 * grub-core/video/sis315pro.c: New file.
19758 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19760 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19761 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19762 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19763 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19764 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19765 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19767 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19768 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19770 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19771 (grub_arch_machine): New extern var.
19772 * include/grub/mips/loongson/serial.h
19773 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19774 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19775 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19776 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19777 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19778 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19779 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19780 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19781 * include/grub/term.h (grub_term_register_input_inactive): New inline
19783 (grub_term_register_output_inactive): Likewise.
19784 * include/grub/video.h (grub_video_driver_id): New value
19785 GRUB_VIDEO_DRIVER_SIS315PRO.
19786 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19787 New field "names". All users updated.
19788 New field value IMAGE_FULOONG_FLASH.
19789 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19791 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19793 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19794 and add some clarification.
19796 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19798 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19799 platforms if kernel is compressed.
19801 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19803 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19804 unused modules since currently referrence counter isn't reliable and
19805 there isn't much memory to recover there anyway.
19807 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19809 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19810 rather than resetting it to allow modules to reference themselves
19813 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19815 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19816 counter on dependencies since grub_dl_unref already handles this.
19818 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19820 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19821 on error if not already done.
19823 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19825 Fix few potential memory misusage.
19827 * grub-core/font/font.c (load_font_index): Don't free char_index to
19829 (grub_font_load): Zero-fill font at alloc for safety.
19830 Close file on error.
19831 (free_font): Free bmp_idx.
19833 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19835 * docs/grub.texi (Installation): Fix several outdated claims.
19837 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19839 Handle module_license on windows.
19841 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19843 (insert_string): Make argument const char * instead of char *.
19844 (write_section_data): Handle long section names.
19845 Handle module_license.
19847 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19849 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19850 handle class-free menuentries.
19851 (grub_normal_add_menu_entry): Add a check to be sure.
19853 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19855 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19858 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19860 * configure.ac: Bump version to 1.99.
19862 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19864 Give ATA device a bit more time on first try in order to allow disks
19867 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
19868 if dev->present is 1. Reset dev->present on failure.
19869 (grub_ata_device_initialize): Set dev->present to 1.
19870 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
19871 (grub_ata_device): New member 'present'.
19873 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19875 * util/grub-mkimage.c (generate_image): Update hash.
19877 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19879 Flush caches on DMA memory.
19881 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
19882 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
19883 (grub_dma_free): Likewise.
19884 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
19886 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19888 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
19889 to avoid asm treating ld and sd as macros.
19891 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19893 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
19896 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19898 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
19899 grub_decompress_core since later would fail if grub_decompress_core
19902 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19904 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
19905 R_MIPS_JALR since it's used by newer compiler.
19907 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
19909 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
19911 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19913 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
19914 file_path to 0 for surety.
19915 (grub_chainloader_boot): Set exit_data to NULL.
19916 Unset the loader once done.
19917 (grub_cmd_chainloader): Fix confusing error message if file is empty.
19919 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19921 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
19922 unknown key into a dprintf.
19924 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19926 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
19927 on first non-existant partition.
19929 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19931 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
19933 Reported by: Mark Korenberg.
19935 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19937 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
19940 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19942 * util/grub-mkimage.c (main): Explicitely flush and sync the output
19943 before closing to ensure that it will be readable by grub-setup.
19945 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19947 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
19948 (devpath_1): Use MAKE_PIWG_PATH.
19949 (devpath_2): Likewise.
19950 (devpath_3): Likewise.
19951 (devpath_4): Likewise.
19952 (devpath_5): Likewise.
19953 (devpath_6): Likewise.
19955 The appleldr.mod was checked that to be binary identical to previous
19958 2011-05-05 Zach <mikezackles>
19960 Support 2010 Macbooks.
19962 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
19963 (devs): Add devpath_6.
19965 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19967 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
19968 /dev/random. /dev/urandom is good enough for our purposes (salting).
19970 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19972 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
19974 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19976 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
19979 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19981 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
19982 and not 0 on failure.
19984 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19986 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
19987 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
19988 disk; otherwise grub_fs_probe will not fall back to the next
19990 (grub_pxefs_open): Likewise, for consistency.
19991 Reported and tested by: Ezekiel Grave.
19993 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19995 * tests/partmap_test.in: Don't hardcode path to parted.
19996 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
19998 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20000 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20001 of `ls' to find out which devices are available.
20003 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20005 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20006 than source address for efi mmap buffer.
20008 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20010 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20011 wrong action on non-detecting the magic.
20013 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20015 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20016 already supplied by another part of the module (fixes compilation on
20019 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20021 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20022 match the one used by mdadm.
20024 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20026 * po/README: Add instructions for creating po/LINGUAS.
20028 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20030 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20033 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20034 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20035 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20036 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20037 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20038 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20039 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20040 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20041 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20042 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20043 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20044 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20045 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20046 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20047 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20048 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20049 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20050 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20051 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20052 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20053 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20054 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20056 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20058 * grub-core/kern/emu/getroot.c
20059 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20060 test that was incorrectly reintroduced in r3214.
20061 Reported by: Ian Dall. Fixes Savannah bug #33133.
20063 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20065 Fix stack pointer handling in 16-bit relocator.
20067 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20068 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20069 Fixes Ubuntu bug #683904.
20071 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20073 * configure.ac: Bump version to 1.99~rc2.
20075 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20077 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20078 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20079 * grub-core/lib/x86_64/setjmp.S: Likewise.
20080 * grub-core/lib/mips/setjmp.S: Likewise.
20081 * grub-core/lib/powerpc/setjmp.S: Likewise.
20082 * grub-core/lib/sparc64/setjmp.S: Likewise.
20084 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20086 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20087 * grub-core/lib/efi/datetime.c: Likewise.
20089 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20091 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20093 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20094 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20095 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20097 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20099 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20101 (grub_gfxterm_term_init): Likewise.
20103 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20105 Take into account the decorations the computing menu entry width.
20107 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20108 (grub_gfxmenu_create_box): Register get_border_width.
20109 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20111 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20114 2011-04-18 Endres Puschner <code@e7p.de>
20116 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20117 Don't skip first class.
20119 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20121 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20123 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20125 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20127 Complete 64-bit division support.
20129 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20130 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20131 * include/grub/misc.h (grub_divmod64): Rename to ...
20132 (grub_divmod64_full): ... this.
20133 (grub_divmod64): New inline function.
20135 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20137 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20139 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20141 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20142 performing the necessary test.
20144 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20146 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20147 (kfreebsd.elf): Likewise.
20148 (pc-chainloader.elf): Likewise.
20149 (ntldr.elf): Likewise.
20151 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20153 Identify RAID by its UUID rather than (guessed) name.
20155 * grub-core/disk/raid.c (ascii2hex): New function.
20156 (grub_raid_open): Accept mduuid/%s specification.
20157 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20158 (get_mdadm_uuid): ... this.
20159 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20161 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20163 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20166 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20168 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20170 * util/grub.d/20_linux_xen.in: Likewise.
20172 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20174 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20175 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20177 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20178 Build a list of relevant visible mounts using the mnt_id and
20179 parent_mnt_id fields, and then scan that list at the end.
20181 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20183 * docs/grub.texi (normal): New section.
20184 (normal_exit): New section.
20185 (Embedded configuration): Add reference to normal.
20186 (GRUB only offers a rescue shell): Likewise.
20187 * docs/grub-dev.texi (Error Handling): Fix typo.
20189 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20191 * NEWS: Drop obsolete entry about probe-only btrfs support.
20193 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20195 * util/import_gcry.py: Fix typo.
20197 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20199 * NEWS: Add btrfs support.
20201 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20202 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20204 BtrFS support. Written by me (Vladimir) with important bugfixes and
20205 even more important testing by Colin.
20207 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20208 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20209 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20210 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20211 mem_input_off and mem_input. All users updated to accept in-RAM input.
20212 (gzio_seek): New function.
20213 (test_zlib_header): Likewise.
20214 (grub_gzio_read): Likewise.
20215 (grub_zlib_decompress): Likewise.
20216 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20217 Accept partial and non-virtual mounts.
20218 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20219 avoid receiving /dev/dm-X as device.
20220 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20221 Handle bind and partial mounts.
20222 * grub-core/lib/crc.c: New file.
20223 * include/grub/deflate.h: Likewise.
20224 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20226 * include/grub/lib/crc.h: New file.
20228 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20230 Implement automatic module license checking according to new GNU
20233 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20234 (grub_dl_load_core): Use grub_dl_check_license.
20235 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20236 (GRUB_MOD_LICENSE): Likewise.
20237 (GRUB_MOD_DUAL_LICENSE): Likewise.
20238 All modules updated.
20240 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20242 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20243 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20245 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20247 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20249 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20251 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20253 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20256 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20258 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20259 parenthesis in the middle of the filename.
20261 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20263 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20264 rather than trying to put initrd way too high.
20265 Reported by: Ryan Lortie <desrt@desrt.ca>
20267 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20269 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20270 improperly removed string.
20272 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20274 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20276 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20277 (open_device) Likewise.
20278 (grub_util_biosdisk_close): Likewise.
20279 Reported by: Mark Korenberg.
20281 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20283 * util/grub-mkconfig_lib.in: Add missing quotes.
20285 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20287 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20290 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20292 Dynamically count the number of lines for the lower banner.
20294 * grub-core/normal/menu_entry.c (per_term_screen): New member
20296 (print_down): Use num_entries.
20297 (update_screen): Likewise.
20298 (grub_menu_entry_run): Set num_entries.
20299 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20301 (grub_print_message_indented): Move real part to ...
20302 (grub_print_message_indented_real): ... here. Additional argument
20304 (draw_border): Additional argument num_entries.
20305 (print_message): Additional argument dry_run.
20306 (print_entries): Receive menu viewer data.
20307 (grub_menu_init_page): New argment num_entries.
20308 (menu_text_set_chosen_entry): Use num_entries.
20309 (grub_menu_try_text): Likewise.
20310 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20312 (grub_ucs4_count_lines): New function.
20313 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20314 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20315 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20316 (grub_term_border_height): Likewise.
20317 (grub_term_num_entries): Likewise.
20319 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20321 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20322 Remove now unused string.
20324 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20326 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20328 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20330 (Comment): Fix typo.
20331 (Getting started): General copy-editing.
20332 (Typical Development Experience): Likewise.
20333 (Error Handling): Likewise.
20334 (Video API): Likewise.
20336 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20338 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20341 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20343 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20346 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20348 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20349 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20352 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20354 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20355 grub_strcpy since the lines aren't necessarily 0-terminated.
20357 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20359 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20362 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20364 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20365 (GRUB_MOD_INIT): DEVICE isn't optional.
20367 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20369 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20370 word on new line if it's too long anyway. Fixes a hang.
20372 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20374 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20376 * util/grub-setup.c (main): Reuse md device name if available.
20377 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20378 not GRUB name as argument.
20379 Based on patch by: Florian Wagner <fwagner>.
20381 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20383 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20384 Place mbi on low memory for better compatibility.
20386 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20388 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20390 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20391 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20393 * autogen.sh: Ensure that collate and ctype locale is C.
20394 * conf/Makefile.common: Likewise.
20396 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20398 * grub-core/normal/menu.c: Add missing include.
20400 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20402 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20404 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20406 * util/grub-mkconfig.in: Ignore emacsen backup.
20408 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20410 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20412 (grub_util_biosdisk_close): Likewise.
20414 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20416 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20417 const attribute and use grub_isdigit.
20419 2011-04-06 Andrey <dev_null@ukr.net>
20421 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20424 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20426 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20427 useful grub_dprintf's.
20429 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20431 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20433 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20435 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20437 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20439 Output errors if theme loading failed.
20441 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20442 grub_gfxterm_fullscreen on error paths to ...
20443 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20444 theme loading error.
20446 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20448 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20449 space for older compilers.
20450 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20452 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20454 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20455 and report them as not RAID members since they are useless for GRUB.
20456 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20458 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20460 Increase LVM implementation robustness in order not to crash on
20461 configurations like pvmove. Previously code assumed that in some places
20462 only lvs or only pvs are used whereas it seems that they are used
20465 * grub-core/disk/lvm.c (read_node): New function.
20466 (read_lv): Use read_node.
20467 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20468 Match volumes only at the end when all lvs are found. Take both
20469 pvs (first) and lvs (second) into account.
20470 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20471 mirror_* into node_*. All users updated.
20472 (grub_lvm_stripe): Merge this ...
20473 (grub_lvm_mirror): ... and this ...
20474 (grub_lvm_node): ... into this. All users updated.
20476 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20478 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20479 of function to allow further scanning for LVMs.
20481 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20483 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20484 on failed seek as it breaks open fd reusage.
20486 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20488 * util/grub-install.in: Add a recommendation to use --recheck before
20491 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20493 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20496 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20498 GRUB developper manual based on existing Internals section and
20499 contributions by the various authors with active copyright assignment.
20501 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20502 * docs/font_char_metrics.png: New file.
20503 * docs/font_char_metrics.txt: Likewise.
20504 * docs/grub-dev.texi: Likewise.
20505 * docs/grub.texi (Internals): Move from here ...
20506 * docs/grub-dev.texi: ... here.
20508 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20510 Store the loopback device as data on loopback grub_disk structures,
20511 rather than the file it points to. This fixes use of freed memory
20512 if an existing loopback device is replaced.
20514 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20515 disk->data, not dev->file.
20516 (grub_loopback_read): Adjust file assignment to match.
20517 Fixes Ubuntu bug #742967.
20519 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20521 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20522 when replacing an existing device.
20524 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20526 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20527 memory corruptions.
20529 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20531 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20532 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20533 (grub_jfs_read_inode): Likewise.
20534 (grub_jfs_opendir): Likewise. Remove now useless casts.
20535 (grub_jfs_getent): Likewise.
20536 Make ino a grub_uint32_t rather than int.
20537 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20538 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20539 division and module with bit operations.
20540 (grub_jfs_find_file): Make ino a grub_uint32_t.
20541 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20543 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20545 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20546 warning. (This was in fact always initialised before use, but GCC
20547 wasn't smart enough to prove that.)
20548 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20550 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20552 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20554 (efi_wrap_1): Likewise.
20555 (efi_wrap_2): Likewise.
20556 (efi_wrap_3): Likewise.
20557 (efi_wrap_4): Likewise.
20558 (efi_wrap_5): Likewise.
20559 (efi_wrap_6): Likewise.
20560 (efi_wrap_10): Likewise.
20561 Based on information by: Red Hat/Peter Jones.
20563 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20565 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20566 set-but-not-used variable.
20568 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20570 * docs/grub.texi (Simple configuration): Be more explicit about
20571 GRUB_DEFAULT, and add an example.
20572 Reported by: Leslie Rhorer.
20574 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20576 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20579 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20581 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20582 * util/grub.d/20_linux_xen.in: Likewise.
20584 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20586 * util/grub.d/10_linux.in: Try alternative config filenames where
20587 we parse config file.
20588 * util/grub.d/20_linux_xen.in: Likewise.
20590 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20592 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20593 * util/grub.d/20_linux_xen.in: Likewise.
20595 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20597 * grub-core/disk/raid.c (insert_array): Add few potentially
20598 useful grub_util_info.
20599 (grub_raid_register): Likewise.
20601 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20603 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20604 Preserve partition number in mdadm code path.
20606 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20608 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20609 few potentially useful grub_util_info.
20611 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20613 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20615 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20617 * docs/grub.texi (default): Use @example rather than nested
20618 itemized lists to avoid breaking gendocs.
20620 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20622 * docs/grub.texi (Future): Update.
20624 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20626 * docs/grub.texi (Environment): New chapter.
20627 (Changes from GRUB Legacy): Link to "Environment block" section for
20628 details of limitations.
20629 (Simple configuration): Likewise. Link to documentation of gfxmode
20630 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20632 (Shell-like scripting): Note that normal variables are stored in the
20634 (gettext): Link to documentation of lang and locale_dir.
20635 (list_env): New section.
20636 (load_env): New section.
20637 (save_env): New section.
20639 (Reporting bugs): Fix typo.
20641 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20643 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20646 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20648 * grub-core/term/at_keyboard.c (set_scancodes)
20649 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20651 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20653 * docs/grub.texi (Menu-specific commands): Remove some semantics
20654 that were true in GRUB Legacy but not in GRUB 2.
20655 (submenu): New section.
20656 (false): New section.
20657 (read): New section.
20658 (true): New section.
20660 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20662 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20664 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20666 * docs/grub.texi (Simple configuration): Explain some of the
20667 current limitations of grub-mkconfig.
20668 Reported by: Leslie Rhorer.
20670 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20672 Old macs search for boot.efi rather than for bootia32.efi.
20674 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20675 * util/grub-mkrescue.in: Likewise.
20676 Suggested by: Peter Jones.
20678 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20680 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20682 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20684 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20685 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20686 (grub_lvm_mirror): New struct.
20687 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20688 (grub_lvm_iterate): Iterate only visible volumes.
20689 (grub_lvm_read): Factor out to ..
20690 (read_lv): ... this. Support mirrors.
20691 (grub_lvm_read): New wrapper function.
20692 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20693 stripped or mirrored.
20695 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20697 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20699 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20701 * docs/grub.texi (loopback): New section.
20703 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20705 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20708 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20710 * docs/grub.texi (BIOS installation): New section, partly based on
20711 previous text in other sections.
20712 (Installing GRUB using grub-install): Replace BIOS discussion with a
20714 (Images): Likewise.
20716 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20718 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20719 [HAVE_DIOCGDINFO]: Add safety checks.
20721 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20723 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20724 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20726 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20728 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20729 real_sb->size is zero (e.g. RAID-0), get the disk size from
20730 real_sb->data_size instead.
20731 Fixes Ubuntu bug #743136.
20733 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20735 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20736 printf clauses for printing size and start.
20738 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20740 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20741 Reported and tested by: Timothy Nikkel.
20743 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20745 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20746 (dirty_region_add_real): ... this.
20747 (dirty_region_add): Don't discard margin refresh when performing
20750 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20752 * grub-core/lib/relocator.c (allocate_regstart)
20753 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20754 terminals are capabple of malloc-free operation.
20755 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20756 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20758 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20760 * util/grub-setup.c: Copy the partition table zone if floppy support
20761 is disabled, even if no partition table is found.
20763 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20764 during POST if an invalid partition table is contained in the PBR
20765 of the active partition when GRUB is installed to a partition.
20767 2011-03-28 Colin Watson <cjwatson@debian.org>
20769 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20772 2011-03-28 Colin Watson <cjwatson@debian.org>
20774 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20775 to be specific about what kind of RAID device we're scanning for.
20777 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20779 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20780 return freed string.
20782 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20784 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20786 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20788 Use libgeom on FreeBSD to detect partitions.
20790 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20791 (grub-mkrelpath): Likewise.
20792 (grub-script-check): Likewise.
20793 (grub-editenv): Likewise.
20794 (grub-mkpasswd-pbkdf2): Likewise.
20795 (grub-fstest): Likewise.
20796 (grub-mkfont): Likewise.
20797 (grub-mkdevicemap): Likewise.
20798 (grub-probe): Likewise.
20799 (grub-setup): Likewise.
20800 (grub-ofpathname): Likewise.
20801 (grub-mklayout): Likewise.
20802 (example_unit_test): Likewise.
20803 (grub-menulst2cfg): Likewise.
20804 * grub-core/Makefile.core.def (grub-emu): Likewise.
20805 (grub-emu-lite): Likewise.
20806 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20807 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20808 define HAVE_DIOCGDINFO.
20809 (follow_geom_up) [FreeBSD]: New function.
20810 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20811 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20812 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20813 unconditionally of HAVE_DIOCGDINFO.
20815 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20817 Fix FreeBSD compilation problem.
20819 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20820 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20822 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20824 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20825 Switch back to page zero before loading a kernel, since some kernel
20826 drivers expect that.
20827 Thanks to: Felix Kuehling.
20829 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20831 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20832 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20833 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20835 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20837 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20838 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20840 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20842 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20843 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20844 malloc is disabled.
20846 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20848 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20849 for modules headers when counting the needed allocation size.
20851 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20853 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20854 if no ASCII character is found to prevent crash.
20856 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20858 * grub-core/video/bitmap.c (match_extension): Ignore case.
20860 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20862 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
20864 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20866 * grub-core/script/parser.y: Declare "time" as valid argument.
20868 2011-03-23 Peter Jones <pjones@redhat.com>
20870 Fix incorrect assert failure reporting.
20872 * grub-core/tests/example_functional_test.c (example_test): Add
20874 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
20875 (failure_start): ...this. Check that malloc succeeded.
20876 Don't call xvasprintf. Return failure struct.
20877 (failure_append_vtext): New function.
20878 (failure_append_text): Likewise.
20879 (add_failure): Likewise.
20880 (grub_test_assert_helper): Likewise.
20881 * include/grub/test.h (grub_test_assert_helper): New declaration.
20882 (grub_test_assert): Macro rewritten.
20884 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20886 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
20888 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20890 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
20892 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20894 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
20895 into GRUB-style one.
20897 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20899 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
20900 error and not grub_errno.
20901 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
20903 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20905 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
20906 GRUB_USB_SPEED_NONE in case of failure and not the error code.
20908 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20910 * grub-core/efiemu/i386/pc/cfgtables.c
20911 (grub_machine_efiemu_init_tables): Make declaration a prototype.
20912 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
20913 (grub_xnu_unlock): Likewise.
20914 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
20916 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20918 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
20919 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
20920 * grub-core/commands/hashsum.c (aliases): Likewise.
20921 * grub-core/commands/setpci.c (pci_registers): Likewise.
20922 * grub-core/disk/usbms.c (attach_hook): Likewise.
20923 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
20924 (zio_checksum_table): Likewise.
20925 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
20926 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
20927 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
20928 * grub-core/lib/relocator.c (leftovers): Likewise.
20929 (extra_blocks): Likewise.
20930 * grub-core/loader/i386/bsd.c (relocator): Likewise.
20931 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
20932 (modules_last): Likewise.
20933 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
20934 (devices): Likewise.
20935 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
20936 (modules_last): Likewise.
20937 * grub-core/normal/auth.c (users): Likewise.
20938 * grub-core/normal/context.c (initial_menu): Likewise.
20939 (current_menu): Likewise.
20940 * grub-core/normal/crypto.c (crypto_specs): Likewise.
20941 * grub-core/term/serial.c (grub_serial_ports): Likewise.
20942 (grub_serial_terminfo_input_template): Likewise.
20943 (grub_serial_terminfo_output_template): Likewise.
20944 (grub_serial_terminfo_input): Likewise.
20945 (grub_serial_terminfo_output): Likewise.
20946 (registered): Likewise.
20947 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
20949 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20951 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
20952 grub_video_mode_type_t.
20953 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
20954 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
20955 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
20957 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20959 * util/grub-install.in: Correct the x86-64 name as x86_64.
20961 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
20963 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
20964 initial chunk read from the kernel always includes GRUB's multiboot
20965 header, which is now outside the first sector.
20967 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20969 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
20970 cached mmap_size, so that this works correctly when called multiple
20972 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
20974 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20976 * docs/grub.texi (Simple configuration): Tidy up formatting.
20978 2011-03-07 Szymon Janc <szymon@janc.net.pl>
20980 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
20981 Set-but-not-used variable removed.
20983 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20985 Workaround yet another IEEE1275 bug.
20987 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
20988 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
20989 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
20990 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
20992 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20993 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
20995 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20997 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21000 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21002 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21003 empty, since in that case we can only generate either nothing or a
21004 syntactically invalid configuration file.
21005 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21007 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21009 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21010 (Making a GRUB bootable CD-ROM): Likewise.
21011 (Invoking grub-mkrescue): New section.
21012 Reported by: Yann Dirson. Fixes Debian bug #612585.
21014 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21016 * util/grub-install.in: Remove unnecessary brackets from tr
21018 * util/grub.d/10_hurd.in: Likewise.
21019 * util/grub.d/10_kfreebsd.in: Likewise.
21020 * util/grub.d/10_linux.in: Likewise.
21021 * util/grub.d/20_linux_xen.in: Likewise.
21022 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21024 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21026 * include/grub/file.h (not_easly_seekable): Rename to ...
21027 (not_easily_seekable): ... this. Update all users.
21029 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21031 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21034 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21036 * util/grub-mkimage.c (generate_image): Refuse to create the images
21037 bigger than the actual flash (512K) in Loongson machines. 512K is also
21038 the biggest chip supported by them.
21040 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21042 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21044 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21046 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21047 super_offset field.
21049 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21051 * util/grub-install.in: Ignore install device on platforms
21052 where it doesn't make sense. Always use UUIDs except on pc, efi and
21054 Reported by: Daniel Kahn Gillmor.
21056 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21058 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21060 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21062 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21063 (iterate_real): Don't rely on partition being non-NULL.
21065 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21067 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21068 supported platforms. Put a compile time assert for this rather than
21069 generate a warning with 32-bit shift.
21071 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21073 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21074 logical expression more readable.
21076 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21078 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21079 even if some elements have a name.
21080 Reported by: Alexander GQ Gerasiov.
21082 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21084 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21085 path unreadable if `grub-probe -t abstraction' fails, for example if
21086 memberlist fails on an LVM volume group.
21087 Reported by: Darius Jahandarie.
21089 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21091 * docs/grub.texi (Simple configuration): Document
21092 GRUB_PRELOAD_MODULES.
21094 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21096 * .bzrignore: Remove nonexistent grub-pbkdf2.
21098 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21100 * configure.ac: Bump version to 1.99~rc1.
21102 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21104 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21107 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21109 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21112 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21114 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21116 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21118 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21121 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21123 Fix compilation on cygwin.
21125 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21126 -R .drectve on cygwin.
21127 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21128 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21129 (COND_CYGWIN): New condition.
21130 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21131 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21132 not @TARGET_OBJ2ELF@.
21133 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21134 type to determine whether aux is to be used.
21136 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21138 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21139 realpath'ed device string.
21140 Handle floppy (somewhat).
21141 Issue error in unknown case rather than garbage.
21142 Reported by: Axel Beckert.
21144 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21146 * util/grub.d/00_header.in (load_video): Handle the case when no video
21148 Thanks to: Axel Beckert.
21150 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21152 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21153 variable. Fixes problem on big endian platforms.
21155 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21157 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21158 It doesn't work well there.
21160 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21162 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21164 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21165 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21168 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21170 Use alias->path rather than buggy "canon".
21172 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21173 (ofdisk_hash_add): New argument curcan. All users updated.
21175 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21177 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21179 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21181 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21182 loadmask before doing any calculations. Use correct type for offset.
21183 (grub_linux_load64): Likewise.
21185 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21187 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21189 (console_grub_equivalences_unshift): Likewise.
21190 Reported by: Daniel Dehennin.
21192 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21194 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21195 (set_env_limn_ro): Likewise.
21196 (GRUB_MOD_INIT): Likewise.
21197 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21198 ARRAY_SIZE while on it.
21199 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21200 * grub-core/normal/context.c (grub_env_export): Move from here ...
21201 * grub-core/kern/env.c (grub_env_export): ... here.
21202 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21204 * grub-core/kern/main.c (grub_main): Export root and prefix.
21205 * include/grub/env.h (grub_env_export): Export.
21206 Reported by: Seth Goldberg.
21208 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21210 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21211 Take into account space used by ELF sections and multiboot palette.
21212 Reported by: Grégoire Sutre.
21214 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21218 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21220 Pass more appropriate video id to Linux.
21222 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21223 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21225 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21226 shift params->lfb_size.
21227 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21229 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21231 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21233 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21235 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21236 separator and pass bootpath/devid even if only one of them is available.
21237 Reported by: Seth Goldberg.
21239 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21241 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21242 implementations bug on them.
21244 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21246 (filter_memory_map): Likewise.
21248 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21250 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21251 Reported by: nebuchadnezzar.
21253 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21255 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21256 Reported by: nebuchadnezzar.
21258 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21260 Submenu default support.
21262 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21263 auto_boot. All users updated.
21265 Handle chosen and default with submenus.
21266 (grub_menu_execute_with_fallback): Declared static.
21267 Don't notify failure if autobooted. Upper level does it.
21268 (menuentry_eq): New function.
21269 (get_entry_number): Use menuentry_eq.
21270 (show_menu): New parameter "autobooted". All users updated.
21271 (grub_show_menu): Likewise.
21272 * include/grub/normal.h (grub_show_menu): Likewise.
21273 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21274 (grub_menu_execute_with_fallback): Likewise.
21276 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21278 * util/grub-mklayout.c (usage): Update help text.
21280 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21282 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21284 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21286 * util/grub-menulst2cfg.c (main): Trim the line.
21288 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21290 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21291 (grub_machine_init): Don't check amount of low memory as reportedly
21292 INT 12h can be broken and if low memory is too low we wouldn't have
21293 gotten into grub_machine_init anyway.
21295 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21297 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21298 (grub_machine_mmap_iterate): Take low memory into account
21300 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21302 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21304 Reported by: TiCPU.
21306 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21308 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21311 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21313 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21314 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21316 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21318 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21319 openbsd and netbsd types being in part_bsd module.
21321 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21323 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21324 (_FILE_OFFSET_BITS): Likewise.
21325 Reported by: Seth Goldberg.
21327 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21329 * configure.ac: Check for libdevmapper header.
21331 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21333 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21335 (fzap_lookup): Likewise.
21336 (dnode_get): Likewise.
21337 (make_mdn): Likewise.
21338 (zfs_mount): Likewise.
21339 (fzap_iterate): Use temporary pointer to avoid aliasing.
21340 (grub_zfs_read): Likewise.
21341 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21342 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21343 pointers to avoid aliasing.
21344 (grub_cmd_xnu_kernel64): Likewise.
21345 (grub_xnu_load_driver): Likewise.
21347 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21349 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21351 (grub_cmd_terminal_output): Likewise.
21352 Reported and tested by: Grégoire Sutre.
21354 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21356 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21358 Reported and tested by: Grégoire Sutre.
21360 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21362 * configure.ac: Do CPU substitution even if it's specified explicitly.
21363 Reported and tested by: Alain Greppin.
21365 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21367 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21368 Reported and tested by: Alain Greppin.
21370 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21372 Satisfy some bison versions need for inttypes.h.
21374 * grub-core/lib/posix_wrap/inttypes.h: New file.
21375 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21376 (int16_t): Likewise.
21377 (int32_t): Likewise.
21378 (int64_t): Likewise.
21379 Reported and tested by: Alain Greppin.
21381 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21383 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21384 Silence spurious warning.
21385 Reported and tested by: Alain Greppin.
21387 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21389 * docs/grub.texi (Support automatic decompression): Update with xz
21390 decompression support.
21392 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21394 Improve loaders' kernel command line handling.
21396 * grub-core/lib/cmdline.c: New file.
21397 * include/grub/lib/cmdline.h: Likewise.
21398 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21399 grub_create_loader_cmdline to create kernel command line.
21400 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21401 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21402 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21403 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21404 (linux): Add lib/cmdline.c on common.
21406 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21408 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21409 inopos might be unaligned.
21411 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21413 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21414 endian transformations.
21415 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21416 Based on report by: Doug Nazar.
21418 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21420 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21421 array->members[i].start_sector.
21422 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21424 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21426 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21427 Reported and tested by: Grégoire Sutre.
21429 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21431 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21432 avoid causing test failures by clearing the screen.
21434 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21436 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21437 Fix prefix check to handle the case where dir ends with a slash
21438 (most significantly, "/" itself).
21439 Reported by: Michael Vogt.
21441 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21443 Run terminfo_cls on initing terminfo output to clear the screen and
21444 move the cursor to (0,0).
21446 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21447 Call grub_terminfo_output_init.
21448 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21449 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21450 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21452 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21454 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21457 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21459 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21462 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21464 The E820 type 5 is BADRAM, not EXEC_CODE.
21466 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21467 (GRUB_E820_BADRAM): New define.
21468 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21469 into reserved. Propagate BADRAM.
21470 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21471 (GRUB_E820_BADRAM): New define.
21473 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21475 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21476 Ignore the memory post-4G.
21477 (grub_relocator_firmware_alloc_region): Additional debug statement.
21479 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21481 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21483 Reported by: David Pravec.
21485 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21487 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21490 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21492 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21494 (grub_reed_solomon_recover): Likewise.
21496 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21498 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21500 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21502 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21505 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21507 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21508 descriptions of extract_legacy_entries_source and
21509 extract_legacy_entries_configfile.
21510 Reported by: Seung Soo, Ha.
21512 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21514 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21515 on devices that do not implement function 0.
21517 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21519 * grub-core/fs/hfsplus.c: Make parent unsigned.
21520 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21522 (grub_hfsplus_cmp_extkey): Likewise
21524 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21526 * util/grub-install.in: Correctly use bootloader_id and not
21527 GRUB_DISTRIBUTOR on efibootmgr line.
21529 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21531 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21533 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21535 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21536 Xen and reorder menu item wording to make it clearer that this entry
21537 will launch Xen. Print separate messages when loading Xen and
21540 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21542 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21543 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21544 loop in case of incorrect amiga partmap.
21546 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21548 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21549 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21552 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21554 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21556 Reported by: crocket
21558 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21560 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21562 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21564 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21566 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21568 (grub_cmd_xnu_kextdir): Likewise.
21569 (grub_cmd_xnu_splash): Likewise.
21571 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21573 Avoid using Reed-Solomon with 0 redundancy.
21575 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21576 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21578 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21579 (grub_reed_solomon_recover): Likewise.
21581 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21583 Don't use disk subsystem in freebsd_boot.
21585 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21586 (freebsd_biosdev): Likewise.
21587 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21588 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21590 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21592 Handling of files of unknown size is currently limited. They can't be
21593 used e.g. for initrd or modules. Moreover gzip handling of not
21594 easily seekable files is buggy. Disable unknown file size for now. May
21595 be inefficient but works.
21597 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21598 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21600 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21602 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21605 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21607 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21609 2010-12-25 Shea Levy <shlevy>
21611 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21613 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21615 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21616 Windows Server 2008.
21617 Reported by: Devin Giddings.
21619 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21621 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21622 writing an error message because of async power management.
21623 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21624 (grub_reboot): Likewise.
21626 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21628 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21629 keep unit tests from failing when they shouldn't.
21631 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21633 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21634 previous patch increased the size of the RS code by 20 bytes (at
21635 least with gcc-4.4), so increase this by 20 bytes to match.
21636 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21638 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21640 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21641 scratch area. Make sure to initialise chosen in standalone mode as
21642 well as non-standalone.
21643 Reported by: Robert Hooker and Andy Whitcroft.
21644 Tested by: Andy Whitcroft.
21646 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21648 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21649 constructing a new unescaped string and passing it to grub_xputs in
21650 one go, rather than passing characters to grub_printf one at a time.
21652 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21654 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21655 initialising utf16.
21657 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21659 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21660 comment. Add an extra layer of quotation, requiring the output of
21661 this function to be used in a printf format string.
21662 (gettext_printf): New function.
21663 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21664 Extract translatable strings from here-documents and use a temporary
21665 variable instead, so that xgettext can find them.
21666 * util/grub.d/10_kfreebsd.in: Likewise.
21667 * util/grub.d/10_linux.in: Likewise.
21668 * util/grub.d/20_linux_xen.in: Likewise.
21670 * po/grub.d.sed: New file.
21671 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21672 arguments. Set c-format flags on all strings extracted from
21673 util/grub.d/ (xgettext refuses to include these itself for strings
21674 it extracted from a shell file, but these really are c-format).
21676 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21678 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21679 Avoid next pointing to nowhere.
21681 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21683 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21684 rather than assuming than rootblock is exactly in the middle.
21685 (grub_affs_label): Likewise.
21687 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21689 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21690 reserved_first_sector to 0.
21691 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21692 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21693 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21695 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21697 Fix handling of UTF-16 UDF labels.
21699 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21700 (read_string): .. here.
21701 (grub_udf_label): Use read_string.
21703 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21705 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21706 editor under argument scope.
21707 Reported by: Jordan Uggla
21709 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21711 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21713 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21715 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21716 line, and other keys scroll an entire page (previous handling was
21717 for \r and \n to scroll a page and other keys to scroll two lines).
21719 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21721 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21722 Set ptrdest to correct get_physical_target_address rather than
21723 incorrect get_virtual_current_address.
21725 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21727 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21728 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21730 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21732 * .bzrignore: Ignore grub-core/rs_decoder.S.
21734 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21736 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21737 .mo/.mo.gz opening sequence to ...
21738 (grub_mofile_open_lang): ... here.
21739 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21740 * util/grub.d/00_header.in (grub_lang): Include country part of
21742 Reported by: Mario Limonciello.
21744 2010-12-09 Robert Millan <rmh@gnu.org>
21746 * NEWS: Document addition of ZFS support.
21748 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21750 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21751 rather than `/ 2', as the latter requires -Wa,--divide which would
21752 require bumping our minimum binutils version.
21754 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21756 * util/grub-script-check.c (main): Print script line number on
21759 2010-12-01 Robert Millan <rmh@gnu.org>
21761 * grub-core/fs/zfs/zfs.c: New file.
21762 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21763 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21764 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21765 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21767 * include/grub/zfs/dmu.h: Likewise.
21768 * include/grub/zfs/dmu_objset.h: Likewise.
21769 * include/grub/zfs/dnode.h: Likewise.
21770 * include/grub/zfs/dsl_dataset.h: Likewise.
21771 * include/grub/zfs/dsl_dir.h: Likewise.
21772 * include/grub/zfs/sa_impl.h: Likewise.
21773 * include/grub/zfs/spa.h: Likewise.
21774 * include/grub/zfs/uberblock_impl.h: Likewise.
21775 * include/grub/zfs/vdev_impl.h: Likewise.
21776 * include/grub/zfs/zap_impl.h: Likewise.
21777 * include/grub/zfs/zap_leaf.h: Likewise.
21778 * include/grub/zfs/zfs.h: Likewise.
21779 * include/grub/zfs/zfs_acl.h: Likewise.
21780 * include/grub/zfs/zfs_znode.h: Likewise.
21781 * include/grub/zfs/zil.h: Likewise.
21782 * include/grub/zfs/zio.h: Likewise.
21783 * include/grub/zfs/zio_checksum.h: Likewise.
21785 * Makefile.util.def: Build ZFS into libgrubmods.
21786 * grub-core/Makefile.core.def: Build zfs.mod.
21788 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21790 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21792 * grub-core/commands/wildcard.c (match_files): Likewise.
21794 2010-11-30 Robert Millan <rmh@gnu.org>
21796 * grub-core/loader/i386/bsd.c
21797 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21798 whether kernel is loaded using grub_loader_is_loaded(), rather
21799 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21800 certain error conditions.
21802 2010-11-30 Robert Millan <rmh@gnu.org>
21804 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21805 (grub_cmd_echo): Call grub_refresh() after printing a message.
21807 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21809 Avoid using tricks for initialising endian variables.
21811 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21813 (GRUB_MOD_INIT): Don't byte-swap.
21814 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21815 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21816 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21817 (grub_swap_bytes32_compile_time): Likewise.
21818 (grub_cpu_to_le32_compile_time): Likewise.
21819 (grub_cpu_to_le16_compile_time): Likewise.
21821 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21823 * util/grub-setup.c (setup): Stop recommending --force. People who
21824 understand the dangers of blocklists are able to find this option
21825 anyway and the ones who don't shouldn't use it anyway.
21827 2010-11-26 Robert Millan <rmh@gnu.org>
21829 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21832 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21834 Fix LVM-on-RAID probing.
21836 * util/grub-probe.c (probe): Remember which disk was detected as
21837 RAID (perhaps an LVM physical volume). Use that disk's raidname
21838 rather than that of the top-level disk.
21840 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21842 Fix cmdline argument quotes for setparams command of menuentry
21845 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21846 quotes for arguments.
21847 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
21848 grub_strchrsub function instead.
21850 * include/grub/misc.h (grub_strchrsub): New function.
21852 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21854 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21855 effort by skipping "." and ".." entries up-front.
21856 Suggested by: Michael Lazarev.
21858 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21860 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21861 ldflags to ldadd, to fix link line ordering.
21862 (none_decompress): Likewise.
21864 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21866 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
21868 (grub-emu-lite): Remove kern/emu/cache.S.
21870 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21872 * util/deviceiter.c (compare_devices): If the by-id link for a
21873 device couldn't be resolved, fall back to sorting by the by-id link
21874 rather than segfaulting.
21875 Reported and tested by: Daniel Mierswa.
21877 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21879 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
21880 ldflags, to fix link line ordering.
21882 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21884 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
21885 linkers are picky about this.
21887 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21889 * grub-core/Makefile.am (command.lst): Adjust sed expression
21890 ordering so that extended and priority commands aren't treated as
21893 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21895 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21896 Remove byte-swapping function calls, which are not valid in
21897 structure initialisers.
21898 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
21900 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
21901 grub_gpt_partition_type_bios_boot.
21903 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21905 Fix test program build on GNU/kFreeBSD.
21907 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
21908 $(LIBNVPAIR)' library dependencies.
21910 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21912 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
21914 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21916 * util/grub-install.in: Remove excessive quoting that broke
21917 installations to RAID devices.
21919 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21921 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
21922 bootloader version instead of 0.
21924 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21926 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
21929 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21931 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
21932 retrieve the metadat sector if size isn't known.
21933 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21935 2010-11-18 Robert Millan <rmh@gnu.org>
21937 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
21938 with grub_memcmp().
21940 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
21942 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
21944 Reported by: Jordan Uggla.
21946 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21948 Make better UTF compliant.
21950 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
21951 sequences as incorrect.
21952 (grub_is_valid_utf8): Likewise.
21953 (grub_utf8_to_ucs4): Likewise.
21954 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
21955 (grub_ucs4_to_utf8_alloc): Likewise.
21956 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
21958 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21960 Make legacy_source behave like source.
21962 * grub-core/commands/legacycfg.c (legacy_file): Don't call
21964 (grub_cmd_legacy_source): Call grub_show_menu if needed.
21966 2010-11-16 Colin Watson <cjwatson@debian.org>
21968 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
21969 (-Wunused implies -Wunused-parameter, but not vice versa).
21971 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
21973 * configure.ac: Make error messages less confusing by testing for
21974 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
21975 accepted, but produces a diagnostic if something else is wrong).
21977 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21979 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
21980 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
21982 (grub_keyboard_controller_init)
21983 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
21984 read the initial state since controller isn't inited yet.
21986 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21988 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
21989 allocate_regbeg may need to create new chunk header.
21991 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21993 Fix quoting in legacy parser.
21995 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
21997 (grub_legacy_parse): Likewise.
21998 Reported by: Jordan Uggla.
21999 Tested by: Jordan Uggla.
22001 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22003 Don't add -lgcc on i386 and x86_64.
22005 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22006 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22007 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22009 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22011 * configure.ac: Add -Wno-trampolines when supported.
22013 2010-11-14 Modestas Vainius <modax@debian.org>
22015 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22018 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22020 Add generic logical block size support for UDF.
22022 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22023 (GRUB_UDF_BLKSZ): Removed.
22024 (struct grub_udf_data): New field "lbshift" to hold the logical block
22025 size of the file system in log2 format. All users updated.
22026 (sblocklist): Change type to unsigned.
22027 (grub_udf_mount): Change type of "sblklist" to unsigned.
22028 Move AVDP search before VRS recognition, because the latter requires
22029 knowledge of the logical block size, which is detected during the
22031 Detect and validate logical block size during AVDP search, adding
22032 support for block sizes 512, 1024 and 4096.
22033 Make VRS recognition independent of block size.
22035 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22037 Properly handle deleted files on UDF.
22039 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22040 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22043 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22045 Support reading files larger than 2 GiB.
22047 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22048 "offset" to grub_off_t.
22049 (grub_udf_read_file): Likewise for parameter "pos".
22051 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22053 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22055 (Simple configuration): Refer to Changes from GRUB Legacy about
22056 save_env availability.
22058 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22060 * util/grub-install.in: Ignore empty partition table detection
22061 instead of trying to include part_ module.
22063 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22065 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22066 LVM on RAID support.
22068 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22070 Properly define WORDS_BIGENDIAN in wrapped environments.
22072 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22074 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22076 Reported by: Manoel Rebelo Abranches.
22077 Tested by: Manoel Rebelo Abranches.
22079 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22081 * util/grub-mkconfig.in: Fix quoting.
22083 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22085 Support big ext2 files.
22087 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22088 (grub_ext2_read_block): Support triple indirect blocks.
22089 (grub_ext2_read_file): Use 64-bit types and read size_high.
22090 (grub_ext2_open): Read size_high.
22091 Reported by: Ximin Luo.
22092 Tested by: Manoel Rebelo Abranches.
22094 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22096 * util/grub-install.in: Handle filenames containing spaces.
22097 Reported by: Jordan Uggla.
22098 Tested by: Jordan Uggla.
22100 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22102 * util/grub-mkconfig.in (grub_script_check): New variable.
22103 Use grub_script_check instead of grub-script-check.
22104 Reported by: Barry Jackson.
22106 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22108 * docs/grub.texi (menu): Correct the order.
22109 Reported by: D. Hugh Redelmeier.
22111 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22113 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22116 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22118 * include/grub/elfload.h (grub_elf32_size): New parameter.
22120 Return maximum segments alignment.
22121 (grub_elf64_size): Likewise.
22122 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22123 Return maximum segments alignment.
22124 (grub_elf64_size): Likewise.
22125 * grub-core/loader/powerpc/ieee1275/linux.c:
22126 (grub_linux_claimmap_iterate): New function. Uses the
22127 "available" property in the "memory" node for memory allocation
22128 for kernel in the PowerPC loader.
22129 (grub_linux_load32): Correctly find linux entry point offset.
22130 (grub_linux_load64): Likewise.
22132 2010-11-07 Robert Millan <rmh@gnu.org>
22134 On mips-yeeloong, build with -march=loongson2f when this flag is
22135 available (GCC >= 4.4).
22136 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22138 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22139 or otherwise add -march=mips3.
22141 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22143 Suppress shell expansion on echo '*' and echo "*" like cases.
22144 Reported by: Jordan Uggla.
22146 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22147 string arguments before shell expansion.
22148 * tests/grub_cmd_echo.in: New testcases.
22150 2010-11-07 Robert Millan <rmh@gnu.org>
22152 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22155 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22157 * grub-core/kern/emu/hostdisk.c
22158 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22160 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22162 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22163 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22164 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22166 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22168 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22170 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22172 * util/grub-install.in: Replace useless recomendation to pass
22173 --modules with a recomendation to report a bug.
22175 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22177 Properly register serial terminfo.
22178 Reported by: Jordan Uggla
22180 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22182 (grub_serial_terminfo_output_template): Likewise.
22183 (grub_cmd_serial): Register "serial" with terminfo.
22184 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22185 grub_serial_terminfo_output.
22187 2010-11-05 Robert Millan <rmh@gnu.org>
22189 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22192 2010-11-05 Robert Millan <rmh@gnu.org>
22194 On Yeeloong, pass machine type information to Linux.
22196 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22197 (LOONGSON_MACHTYPE): New macro, set to
22198 "machtype=lemote-yeeloong-2f-8.9inches".
22199 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22200 additional argument to Linux.
22202 2010-11-04 Robert Millan <rmh@gnu.org>
22204 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22205 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22206 (its SATA disks are detected as slaveless IDE master drives on
22208 Reported by Carsten Aulbert.
22210 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22212 * util/bin2h.c (main): Fix spelling error in generated output.
22214 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22216 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22218 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22220 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22221 vga= option is supplied.
22223 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22225 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22226 * util/grub.d/10_kfreebsd.in: Likewise.
22227 * util/grub.d/10_linux.in: Likewise.
22228 * util/grub.d/20_linux_xen.in: Likewise.
22230 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22232 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22233 argument as an argument to no-argument option.
22235 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22237 * util/grub.d/10_linux.in: Add missing load_video with explicit
22238 GRUB_GFXPAYLOAD_LINUX.
22240 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22242 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22244 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22246 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22247 elements with invlid index.
22248 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22249 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22251 * include/grub/raid.h (grub_raid_member): New struct.
22252 (grub_raid_array): Transform devices and start_sector into usage of
22253 grub_raid_member. All users updated
22254 (allocated_devs): New member.
22256 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22258 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22261 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22263 NetBSD build fix for getline function conflict from gnulib.
22265 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22266 components that depend on gnulib headers.
22267 (libgrubmods.a): Renamed from earlier libgrub.a.
22268 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22270 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22272 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22273 install rather than creating a broken install.
22275 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22277 * util/grub-setup.c (argp): Remove misleading example of installing to
22280 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22282 * util/grub-setup.c (setup): Clarify the error message.
22284 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22286 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22288 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22290 * grub-core/kern/emu/misc.c
22291 (grub_make_system_path_relative_to_its_root)
22292 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22294 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22296 * grub-core/kern/emu/misc.c
22297 (grub_make_system_path_relative_to_its_root): Revert r2882.
22299 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22301 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22302 useless field head. All users updated.
22303 (free_subchunk): Correct handling of IN_REGION subchunk.
22305 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22307 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22308 (Supported kernels): Likewise.
22310 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22312 Make mktemp invocations portable.
22314 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22315 exit if mktemp fails.
22316 * tests/grub_script_blockarg.in: Likewise.
22317 * tests/partmap_test.in: Likewise.
22318 * tests/util/grub-shell-tester.in: Likewise.
22319 * tests/util/grub-shell.in: Likewise.
22320 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22321 * Makefile.am: Likewise, and chain shell commands with `&&'
22323 * util/grub-mkrescue.in: Use the same explicit template as above, and
22324 exit if mktemp fails.
22326 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22328 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22329 Linux kernel, reported by Dennis Schridde.
22331 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22333 * grub-core/normal/auth.c (grub_auth_check_authentication):
22334 Set-but-not-used variable removed.
22336 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22338 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22339 32-bit linux protocol.
22341 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22343 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22344 cursor shape for sanity.
22346 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22348 * docs/grub.texi (Installation): Document buggy BIOS install.
22350 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22352 * docs/grub.texi (Installation): Indent.
22354 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22356 * util/grub-setup.c (setup): New parameter allow_floppy.
22357 (arguments): New member allow_floppy.
22358 (argp_parser): Handle --allow-floppy.
22359 (main): Pass allow_floppy.
22360 * util/grub-install.in: New option --allow-floppy passed though to
22363 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22365 * util/grub-install.in: Handle partitionless disks.
22367 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22369 * util/grub-setup.c (setup): Don't clean blocklists before readability
22372 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22374 * docs/grub.texi (Installation): Document embedding zone. Remove
22375 obsolete grub-install example.
22377 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22379 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22380 Set-but-not-used variable ifdef'ed.
22381 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22382 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22384 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22385 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22386 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22387 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22388 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22389 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22390 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22391 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22392 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22393 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22394 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22397 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22399 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22400 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22403 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22405 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22406 synonym to _S5_. Needed for some DSDTs.
22408 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22410 Userspace ACPI parser debugging.
22412 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22413 headers and add relevant defines. Don't include standard headers.
22414 (main) [GRUB_DSDT_TEST]: New function.
22415 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22416 Don't declare functions.
22418 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22420 Remove dead grub_efi_mm_fini.
22422 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22423 (ALLOCATED_PAGES_SIZE): Likewise.
22424 (MAX_ALLOCATED_PAGES): Likewise.
22425 (allocated_pages): Likewise.
22426 (grub_efi_allocate_pages): Don't record allocated pages.
22427 (grub_efi_free_pages): Likewise.
22428 (grub_efi_mm_init): Likewise.
22429 (grub_efi_mm_fini): Removed.
22431 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22433 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22434 (grub_efi_mm_init): Take into account the memory map size increase.
22436 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22438 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22439 (serial_hw_put): Wait based on real time rather than port reads. Don't
22441 * include/grub/serial.h (grub_serial_port): New field broken.
22443 2010-10-16 Robert Millan <rmh@gnu.org>
22445 * grub-core/kern/emu/misc.c
22446 (grub_make_system_path_relative_to_its_root): Fix premature return
22447 when processing non-root ZFS filesystems.
22448 Reported by Sergio Talens-Oliag.
22450 2010-10-15 Robert Millan <rmh@gnu.org>
22452 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22453 guarantee compressed ones are processed first.
22455 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22457 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22458 grub_efiemu_autocore.
22460 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22462 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22464 (grub_console_getkey): Use correct jae opcode rather than ja.
22466 2010-10-12 Robert Millan <rmh@gnu.org>
22468 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22469 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22470 variable. All references updated.
22472 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22474 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22476 Correctly distinguish mdraid flavours.
22478 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22479 (insert_array): New argument raid.
22480 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22481 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22482 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22484 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22486 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22487 handling of special keys.
22489 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22491 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22492 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22494 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22496 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22497 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22499 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22500 Use right endpoint when querying descriptor.
22502 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22504 Clear out 0x80 color bit on EFI.
22506 Reported by: decoder and meta tech.
22508 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22509 (grub_console_setcolorstate): Clear out 0x80 bit.
22510 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22511 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22512 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22514 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22516 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22519 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22521 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22522 mo_file after freeing.
22524 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22526 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22528 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22530 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22533 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22535 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22538 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22540 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22542 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22543 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22544 and terminfo.h when needed.
22545 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22546 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22547 (terminfo): Enable only on terminfokernel.
22548 (extcmd): Likewise.
22549 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22550 * include/grub/lib/arg.h: Likewise.
22551 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22552 incorrect usage of ->.
22554 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22556 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22557 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22559 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22561 Fix coreboot compilation.
22563 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22564 Take VBE info into account even if only text is supported.
22565 (fill_vbe_info): Take into account the case when only VGA text
22567 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22568 on coreboot, multiboot and qemu.
22570 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22572 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22574 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22576 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22578 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22581 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22583 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22584 if they were BSD-style.
22586 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22588 * grub-core/boot/i386/pc/lnxboot.S: Replace
22589 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22590 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22592 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22594 Write embedding zone using Reed-Solomon.
22596 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22597 * grub-core/Makefile.am (rs_decoder.S): New target.
22598 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22599 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22600 (multiboot): Move to RS part.
22601 (post_reed_solomon): New label.
22602 (grub_boot_drive): Move to non-RS part since it's modified in memory
22604 Include rs_decoder.S.
22605 * grub-core/lib/reed_solomon.c: New file.
22606 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22608 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22609 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22610 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22611 * include/grub/partition.h (grub_partition_map): Change prototype of
22612 embed to allow returning additional sectors.
22613 * include/grub/reed_solomon.h: New file.
22614 * util/grub-setup.c (setup): Handle Reed-Solomon.
22616 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22618 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22619 i386 and x86-64 definedness tests.
22621 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22623 Fix generation of kernel_syms.lst
22625 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22628 2010-09-26 Robert Millan <rmh@gnu.org>
22630 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22632 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22633 the pool is an array of devices, iterate through it and return the
22634 first device that passes a stat() test (instead of blindly returning
22637 2010-09-26 Robert Millan <rmh@gnu.org>
22639 Build fixes for GNU/kFreeBSD.
22641 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22642 to programs that require ZFS conversion.
22643 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22644 kernels that don't have FLOPPY_MAJOR.
22646 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22648 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22650 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22652 Fix grub-emu build.
22654 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22655 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22656 mdraid09 and mdraid1x.
22658 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22660 Re-enable grub-extras.
22662 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22663 avoid confusing Automake. Run autogen only twice, once for the top
22664 level and once for grub-core. Add Makefile.util.def and
22665 Makefile.core.def from extra modules to the appropriate autogen
22666 invocations. If Makefile.common exists in an extra module, include
22667 it in both Makefile.util.am and grub-core/Makefile.core.am;
22668 similarly, include any Makefile.util.common file in Makefile.util.am
22669 and any Makefile.core.common file in grub-core/Makefile.core.am.
22670 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22671 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22672 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22673 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22675 * gentpl.py (gvar_add): Turn GVARS into a set.
22676 (global_variable_initializers): Sort global variables on output.
22677 (vars_init): New function.
22678 (first_time): Likewise.
22679 (library): Ensure that non-global variable initialisations are
22680 emitted before the first time we emit code for a library block.
22681 Append to variables rather than setting them. Only emit
22682 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22683 each conditional path.
22684 (program): installdir() emits an Autogen macro, so must be passed to
22685 var_add rather than gvar_add.
22687 (script): Likewise.
22688 (rules): New function, centralising handling for different target
22689 types. Set up Guile association lists for first_time and vars_init,
22690 and send most output to a diversion so that variable initialisations
22691 can be emitted first.
22692 (module_rules): Use new rules function.
22693 (kernel_rules): Likewise.
22694 (image_rules): Likewise.
22695 (library_rules): Likewise.
22696 (program_rules): Likewise.
22697 (script_rules): Likewise.
22698 (data_rules): Likewise.
22700 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22702 * .bzrignore: Add contrib and grub-core/contrib. Remove
22703 grub-core/Makefile.gcry.am.
22705 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22707 * grub-core/lib/LzFind.c: Add missing include.
22708 * grub-core/lib/LzmaEnc.c: Likewise.
22709 * grub-core/script/lexer.c: Likewise.
22710 * grub-core/script/yylex.l: Likewise.
22711 * util/grub-macho2img.c: Likewise.
22712 * util/grub-menulst2cfg.c: Likewise.
22713 * util/grub-mklayout.c: Likewise.
22714 * util/grub-mkpasswd-pbkdf2.c
22715 * util/grub-mkrelpath.c: Likewise.
22716 * util/resolve.c: Likewise.
22718 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22720 * Makefile.util.def (example_unit_test): Add
22721 grub-core/gnulib/libgnu.a.
22723 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22725 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22727 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22729 Support xz compression on yeeloong.
22731 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22732 * configure.ac: Check for LZMA.
22733 * grub-core/Makefile.core.def (xz_decompress): New target.
22734 (none_decompress): Likewise.
22735 * grub-core/boot/decompressor/minilib.c: New file.
22736 * grub-core/boot/decompressor/none.c: Likewise.
22737 * grub-core/boot/decompressor/xz.c: Likewise.
22738 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22739 * grub-core/kern/mips/cache_flush.S: Likewise.
22740 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22741 * grub-core/kern/mips/startup.S: Move first stage to ...
22742 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22744 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22745 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22746 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22747 Allocate statically.
22748 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22749 Allocate statically or use scratch. Don't check CRC32.
22750 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22751 Allocate statically. Don't check CRC32.
22752 * include/grub/decompressor.h: New file.
22753 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22755 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22756 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22757 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22758 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22759 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22760 * util/grub-mkimage.c (grub_compression_t): New type.
22761 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22762 (image_target_desc): New field default_compression.
22763 (image_targets): Adjust yeeloong targets.
22764 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22765 (compress_kernel): New parameter comp.
22766 (generate_image): Likewise. Handle new compression case.
22767 (options): New option --compression
22769 (main): Handle new option.
22771 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22773 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22775 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22777 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22778 typo in __i386__ conditional.
22780 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22782 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22785 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22787 Implement EFI and ACPI multiboot2 extensions.
22789 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22790 new tags as supported.
22791 (acpiv2_size): New function.
22792 (grub_multiboot_get_mbi_size): Take new tags into account.
22793 (grub_multiboot_make_mbi): Add new tags.
22794 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22796 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22798 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22799 Added missing configuration of USB device.
22801 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22803 * grub-core/normal/menu_entry.c (run): Make sure we always return
22806 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22808 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22809 NumberOfPages is UINT64 according to the UEFI specification, not
22810 UINTN. Fix printf format.
22812 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22814 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22815 `err' to grub_usb_err_t.
22816 Reported and tested by: KESHAV P.R.
22818 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22820 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22821 tpart non-const, so that we can assign to it. (Since this is a
22822 typedef, the constness refers to the pointer rather than what it
22825 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22827 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22828 $(top_srcdir)/grub-core/gnulib as well as
22829 $(top_builddir)/grub-core/gnulib.
22830 Reported by: KESHAV P.R.
22832 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22834 * util/grub-install.in: Fix the bootloader ID option to be
22835 consistently --bootloader-id, not --bootloader_id.
22836 Reported by: KESHAV P.R.
22838 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22840 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22841 check hash checksum." consistently translatable.
22843 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22845 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22848 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22850 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22851 (GRUB_MOD_INIT): Register sha1sum command.
22852 (GRUB_MOD_FINI): Unregister sha1sum command.
22854 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22856 Keep boot and grub directory names in sync with utils scripts
22858 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22859 * config.h.in: Add previous macros.
22860 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22861 * util/grub-install.in: Use $bootdir and $grubdir variables.
22863 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22865 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
22866 convert partition names to disk names if the new `convert' parameter
22868 (grub_util_biosdisk_get_grub_dev): If opening the disk device
22869 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
22870 disk in its own right. This can happen with Xen disk images.
22872 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22874 * util/grub-editenv.c: Update strings to avoid warnings when generating
22876 * util/grub-setup.c: Likewise.
22878 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22880 * configure.ac: Change version to 1.99~beta0.
22882 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22884 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22886 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
22888 * include/multiboot.h: Resynced with specification.
22889 * include/multiboot2.h: Likewise.
22891 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22893 Fix po directory handling.
22895 * configure.ac: Create po/Makefile.in rather than po/Makefile.
22896 * grub-core/gnulib/Makefile.am: Import gettext module.
22897 * m4/gnulib-cache.m4: Likewise.
22898 * m4/gnulib-comp.m4: Likewise.
22899 * m4/gettext.m4: New file, from gnulib.
22900 * m4/glibc2.m4: Likewise.
22901 * m4/iconv.m4: Likewise.
22902 * m4/intdiv0.m4: Likewise.
22903 * m4/intl.m4: Likewise.
22904 * m4/intldir.m4: Likewise.
22905 * m4/intlmacosx.m4: Likewise.
22906 * m4/intmax.m4: Likewise.
22907 * m4/inttypes-pri.m4: Likewise.
22908 * m4/lcmessage.m4: Likewise.
22909 * m4/lib-ld.m4: Likewise.
22910 * m4/lib-link.m4: Likewise.
22911 * m4/lib-prefix.m4: Likewise.
22912 * m4/lock.m4: Likewise.
22913 * m4/nls.m4: Likewise.
22914 * m4/po.m4: Likewise.
22915 * m4/printf-posix.m4: Likewise.
22916 * m4/progtest.m4: Likewise.
22917 * m4/threadlib.m4: Likewise.
22918 * m4/uintmax_t.m4: Likewise.
22919 * m4/visibility.m4: Likewise.
22920 * po/Makefile.am: Remove.
22921 * po/Makefile.in.in: New file, from gettext.
22922 ($(DOMAIN).pot-update): Support POTFILES-shell.
22923 * po/Makevars: New file.
22924 * po/POTFILES-shell: Rename to ...
22925 * po/POTFILES-shell.in: ... this. Update.
22926 * po/POTFILES: Rename to ...
22927 * po/POTFILES.in: ... this. Update.
22928 * po/Rules-quot: New file, from gettext.
22929 * po/boldquot.sed: Likewise.
22930 * po/en@boldquot.header: Likewise.
22931 * po/en@quot.header: Likewise.
22932 * po/insert-header.sin: Likewise.
22933 * po/quot.sed: Likewise.
22934 * po/remove-potcdate.sin: Likewise.
22936 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22938 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
22940 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22942 * util/grub.d/20_linux_xen.in: Use submenus.
22944 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22948 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
22949 parameter submenu. All users updated.
22950 * grub-core/normal/main.c (free_menu): Rename to ...
22951 (grub_normal_free_menu): ... this. Made global.
22952 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
22954 * grub-core/normal/menu_entry.c (screen): New field submenu.
22955 (make_screen): Set submenu.
22956 (run): Open new context if requested.
22957 * include/grub/menu.h (grub_menu_entry): New field submenu.
22958 * include/grub/normal.h (grub_normal_free_menu): New proto.
22960 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22962 Menu entries extractor.
22964 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
22966 (GRUB_MOD_INIT): Register new variants.
22967 (GRUB_MOD_FINI): Unregister new variants.
22968 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
22969 into grub_cmd_legacy_source.
22970 (grub_cmd_legacy_source): Implement extractor variants.
22971 (GRUB_MOD_INIT): Register new variants.
22972 (GRUB_MOD_FINI): Unregister new variants.
22973 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
22975 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
22976 search as an extractor.
22977 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
22978 test as an extractor.
22979 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
22981 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
22982 (grub_env_new_context): New function.
22983 (grub_env_context_open): Likewise.
22984 (grub_env_extractor_open): Likewise.
22985 (grub_env_extractor_close): Likewise.
22986 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
22987 grub_extractor_level.
22988 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
22989 * include/grub/env.h (grub_env_extractor_open): New proto.
22990 (grub_env_extractor_close): Likewise.
22991 * include/grub/normal.h (grub_extractor_level): New external variable.
22993 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22995 Make cutmem accept a region specification.
22996 Suggested by: Samuel Thibault
22998 * grub-core/mmap/mmap.c (parsemem): New function.
22999 (grub_cmd_cutmem): Handle new arguments.
23001 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23003 New command cutmem.
23005 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23006 (GRUB_MOD_INIT): Register new command.
23007 (GRUB_MOD_FINI): Unregister new command.
23009 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23011 Support some annoying BSD and Minix subpartitions.
23013 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23014 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23015 Properly handle concatenation.
23016 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23017 * grub-core/normal/completion.c (iterate_partition): Likewise.
23018 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23019 contain partition. All users updated.
23020 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23022 (grub_openbsdlabel_partition_map): Likewise.
23023 (bsdlabel_partition_map_iterate): Rename to ..
23024 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23025 (bsdlabel_partition_map_iterate): New function.
23026 (netopenbsdlabel_partition_map_iterate): Likewise.
23027 (netbsdlabel_partition_map_iterate): Likewise.
23028 (openbsdlabel_partition_map_iterate): Likewise.
23029 (GRUB_MOD_INIT): Register new partmaps.
23030 (GRUB_MOD_FINI): Unregister new partmaps.
23031 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23032 (grub_partition_msdos_iterate): ... this. All users updated.
23033 Don't support embedding other than in a minix partition.
23034 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23036 * include/grub/partition.h (grub_partition): New field msdostype.
23037 * util/grub-install.in: Handle openbsd and netbsd types being in
23040 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23042 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23044 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23045 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23046 (mdraid09): ... this.
23047 (mdraid1x): New module.
23048 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23049 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23051 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23053 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23056 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23058 * grub-core/commands/efi/lsefimmap.c: Correct header.
23061 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23063 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23064 as printf format strings; the translations might contain '%' which
23065 could cause a crash.
23067 * util/grub-fstest.c (argp_parser): Likewise.
23068 * util/grub-setup.c (argp_parser): Likewise.
23071 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23073 Use argp in grub-fstest.
23075 * util/grub-fstest.c: Don't include getopt.h.
23077 (root): New variable.
23078 (args_count): Likewise.
23080 (num_disks): Likewise.
23081 (images): Likewise.
23083 (debug_str): Likewise.
23085 (options): Transformed to argp.
23087 (main): Split argument parsing into ...
23088 (argp_parser): ... this. Changed to argp format.
23089 (argp): New variable.
23090 (main): Use argp_parse.
23092 2010-09-20 Tristan Gingold <gingold@free.fr>
23093 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23094 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23096 * grub-core/commands/efi/lsefimmap.c: New file.
23097 * grub-core/Makefile.core.def (lsefimmap): New module.
23098 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23100 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23102 Pause the execution (10s max) if any errors are displayed so the user
23103 has a chance to see them.
23105 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23106 (grub_print_error): Increment grub_err_printed_errors.
23107 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23108 execution if any errors were displayed.
23109 (show_menu): Remove old code for pause.
23110 * grub-core/normal/menu_entry.c (run): Likewise.
23111 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23113 (grub_normal_get_char_counter): Likewise.
23114 * include/grub/err.h (grub_err_printed_errors): New external variable.
23115 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23117 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23119 Support multiboot VBE info.
23121 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23122 Take VBE info into account.
23123 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23124 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23125 Call fill_vbe_info when appropriate.
23126 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23127 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23129 (grub_multiboot_get_mbi_size): Take new tags into account.
23130 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23131 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23132 Call fill_vbe_tag when appropriate.
23133 (grub_multiboot_make_mbi): Properly align tags.
23134 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23136 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23138 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23140 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23142 Suport manual terminal geometry specification.
23144 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23145 Save state in grub_ofconsole_terminfo_output.
23146 (grub_ofconsole_term): Use grub_terminfo_getwh.
23147 (grub_ofconsole_getwh): Removed.
23148 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23149 (grub_serial_term): Use grub_terminfo_getwh.
23150 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23151 (options): New struct.
23152 (OPTION_*): New enum.
23153 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23154 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23156 (grub_terminfo_getwh): New proto.
23157 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23159 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23161 Handle legacy "terminal" command.
23163 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23165 (legacy_commands): Add terminal and title.
23166 (grub_legacy_parse): Handle terminal. Simplify title handling.
23168 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23170 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23171 parameters overflow.
23173 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23175 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23178 * docs/grub.texi (Shell-like scripting): Document `!'.
23179 (Network): Simplify using new i386-pc-pxe format. Mention
23184 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23186 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23187 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23190 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23192 * grub-core/commands/efi/lsefisystab.c: Correct header.
23193 * grub-core/commands/efi/lssal.c: Likewise.
23194 * grub-core/commands/testload.c: Likewise.
23196 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23198 * util/grub-mkrescue.in: Add explicit root argument to --set to
23199 prevent the UUID being interpreted as an argument to --set (matches
23200 previous change to prepare_grub_to_access_device).
23202 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23204 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23205 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23206 the verbosity of later #ifs.
23207 (find_partition_start): Define this function on FreeBSD too.
23208 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23210 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23213 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23215 * util/grub-editenv.c: Use argp instead of getopt.
23217 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23219 * util/grub-setup.c: Use argp instead of getopt.
23221 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23223 Use gnulib-tool to create gnulib source files.
23225 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23226 grub-core/gnulib directories
23227 * .bzignore: Add **/.deps and autogenerated gnulib files
23228 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23229 of gnulib macros, add grub-core/gnulib/Makefile
23230 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23231 include m4 directory to aclocal.
23232 * Makefile.util.def: Remove direct compilation of gnulib source files
23233 and use the new grub-core/gnulib/libgnu.a.
23234 * build-aux/config.rpath: move config.rpath from top directory to
23236 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23238 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23239 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23240 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23242 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23245 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23247 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23248 grub-core/genmod.sh and grub-core/gensyminfo.sh
23250 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23252 Add a test for echo command options.
23254 * tests/grub_cmd_echo.in: New test.
23255 * Makefile.util.def: Rules for new test.
23257 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23259 Remove crc.mod and move crc command to hashsum.mod.
23260 Remove lib/crc.c - users updated to use gcrypt implementation.
23262 * grub-core/commands/crc.c: Removed.
23263 * grub-core/Makefile.core.def (crc): Module removed.
23264 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23265 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23266 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23267 * grub-core/lib/crc.c: Removed.
23268 * include/grub/lib/crc.h: Removed.
23269 * Makefile.util.def (crc): Remove lib/crc.c
23270 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23271 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23272 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23273 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23274 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23275 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23277 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23279 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23281 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23283 Split config.h for util and core.
23285 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23286 (ADDR32): Likewise.
23287 (DATA32): Likewise.
23288 (BSS_START_SYMBOL): Likewise.
23289 (END_SYMBOL): Likewise.
23290 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23291 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23292 * config.h.in: New file.
23293 * configure.ac: Use config-util.h as config define file.
23294 Rename MACHINE into GRUB_MACHINE. All users updated.
23295 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23297 (NESTED_FUNC_ATTR): Likewise.
23298 Substitue new variables.
23299 (COND_HAVE_ASM_USCORE): New conditional.
23300 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23301 (kernel_syms.lst): Use ASM_PREFIX.
23302 * grub-core/kern/emu/console.c: Include config-util.h.
23303 * grub-core/kern/emu/misc.c: Likewise.
23304 * grub-core/kern/emu/mm.c: Likewise.
23305 * include/grub/emu/misc.h: Likewise.
23306 * include/grub/libgcc.h: Likewise.
23308 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23310 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23312 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23313 Fix GRUB_TERM_KEY_* constants usage.
23314 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23316 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23318 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23320 * grub-core/bus/usb/uhci.c: Remove empty define.
23321 (grub_uhci_check_transfer): Add missing cast.
23322 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23324 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23326 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23328 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23330 * grub-core/Makefile.core.def (legacycfg): Add
23331 lib/i386/pc/vesa_modes_table.c on emu.
23333 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23335 Reduce number of temporary files generated by build system.
23337 * grub-core/gencmdlist.sh: Removed.
23338 * grub-core/genfslist.sh: Removed.
23339 * grub-core/genhandlerlist.sh: Removed.
23340 * grub-core/genmodsrc.sh: Removed.
23341 * grub-core/genpartmaplist.sh: Removed.
23342 * grub-core/genparttoollist.sh: Removed.
23343 * grub-core/gentermiinallist.sh: Removed.
23344 * grub-core/genvideolist.sh: Removed.
23346 * grub-core/genmod.sh.in: New file.
23347 * grub-core/gensyminfo.sh.in: New file.
23349 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23350 * conf/Makefile.extra-dist: Update with new files.
23351 * gentpl.py: Remove rules related to unnecessary temporary files.
23352 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23354 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23356 * grub-core/bus/usb/uhci.c: Remove empty #define.
23357 * grub-core/genmoddep.awk: Updated with new syminfo format.
23358 * util/bash-completion.d/Makefile.am: Add config.log to
23361 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23363 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23365 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23367 * util/grub-mkconfig.in: Check the config script for syntax errors
23370 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23371 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23373 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23375 * util/grub-install.in: Add EFI and IEEE1275 support.
23376 * util/i386/efi/grub-install.in: Removed.
23377 * util/ieee1275/grub-install.in: Likewise.
23379 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23381 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23382 (grub_cmd_cmosclean): Likewise.
23383 (GRUB_MOD_INIT): Register command cmosclean.
23384 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23385 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23387 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23388 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23389 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23391 Add keyboard layouts support.
23393 * Makefile.util.def (grub-mklayout): New file.
23394 (grub-kbdcomp): New script.
23395 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23396 Add keyboard_layouts.h.
23397 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23398 commands/boot.c on yeeloong.
23399 (keylayouts): New module.
23400 * grub-core/bus/usb/ohci.c
23401 * grub-core/bus/usb/uhci.c
23402 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23403 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23404 (attach_root_port): Likewise.
23405 (poll_nonroot_hub): Likewise.
23406 (grub_usb_poll_devices): Likewise.
23407 (detach_device): Close transfer.
23408 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23410 (grub_usb_bulk_setup_readwrite): Likewise.
23411 (grub_usb_bulk_finish_readwrite): Likewise.
23412 * grub-core/commands/keylayouts.c: New file.
23413 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23414 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23416 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23417 support scancode 2.
23418 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23419 * include/grub/keyboard_layouts.h: New file.
23420 * util/grub-mklayout.c: New file.
23421 * util/grub-kbdcomp.in: Likewise.
23423 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23425 Unify memory types.
23427 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23428 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23430 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23431 (grub_upper_mem): Likewise.
23432 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23433 * include/grub/memory.h (grub_memory_type_t): New enum.
23436 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23438 * grub-core/Makefile.core.def (lsapm): New module.
23439 * grub-core/commands/i386/pc/lsapm.c: New file.
23440 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23441 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23443 * include/grub/i386/pc/apm.h: New file.
23444 * include/multiboot.h (multiboot_apm_info): New struct.
23446 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23448 GRUB-legacy configuration file support.
23450 * Makefile.util.def (grub-menulst2cfg): New util.
23451 * docs/man/grub-menulst2cfg.h2m: New file.
23452 * grub-core/Makefile.core.def (legacycfg): New module.
23453 * grub-core/commands/legacycfg.c: New file.
23454 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23455 (grub_normal_add_menu_entry): ... this.
23456 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23457 (grub_normal_set_password): ...this.
23458 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23459 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23460 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23461 * grub-core/lib/legacy_parse.c: New file.
23462 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23463 * include/grub/i386/pc/vesa_modes_table.h: New file.
23464 * include/grub/legacy_parse.h: Likewise.
23465 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23466 * util/grub-menulst2cfg.c: New file.
23468 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23470 * grub-core/kern/emu/hostdisk.c
23471 (convert_system_partition_to_system_disk): Initialise node.
23473 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23475 * grub-core/kern/emu/hostdisk.c
23476 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23478 Reported and based on patch by: Modestas Vainius.
23480 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23482 Fix DM-RAID probing with recent versions of device-mapper udev
23485 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23486 canonicalise device paths under /dev/mapper/.
23487 (convert_system_partition_to_system_disk): Compare the
23488 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23489 path, since device nodes under /dev/mapper/ are often symlinks.
23491 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23493 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23495 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23497 * configure.ac: Avoid some annoying error messages if freetype-config
23498 program is not found.
23500 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23502 Support RAID on virtio devices, and others.
23504 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23506 [__MINGW32__] (grub_find_device): ... this.
23507 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23508 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23509 reasonable default if dir is NULL.
23510 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23512 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23513 (grub_guess_root_device): Update callers.
23514 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23516 * util/raid.c (grub_util_getdiskname): Remove.
23517 (grub_util_raid_getmembers): Use grub_find_device rather than
23518 grub_util_getdiskname.
23520 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23522 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23523 needing to be compiled with serial support.
23524 (ls): Indicate that multiple files are accepted.
23525 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23526 indicate that multiple files are accepted.
23528 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23530 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23531 libgrub_a_init.c, and util/bash-completion.d/grub.
23533 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23535 * util/grub-setup.c (setup): Fix incorrect container semantics.
23537 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23539 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23541 Reported by: J. Nick Terry
23543 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23545 Move embedding routines to partmap sources files.
23547 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23548 [GRUB_UTIL]: New variable.
23549 (gpt_partition_map_iterate): Set part.parent.
23550 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23551 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23552 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23554 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23555 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23556 (grub_partition_map) [GRUB_UTIL]: New field embed.
23557 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23558 (setup): Use ->embed.
23560 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23562 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23564 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23565 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23567 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23569 Add function to get completions from usage.
23571 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23572 completions from usage. Use LC_ALL=C to get options properly.
23574 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23576 * grub-core/gnulib/basename-lgpl.c: Imported.
23577 * grub-core/gnulib/basename.c: Likewise.
23578 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23579 * grub-core/gnulib/dirname.c: Likewise.
23580 * grub-core/gnulib/dirname.h: Likewise.
23581 * grub-core/gnulib/stripslash.c: Likewise.
23583 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23585 * grub-core/gnulib/error.c: Resynced.
23586 * grub-core/gnulib/getopt.c: Likewise.
23587 * grub-core/gnulib/getopt_int.h: Likewise.
23588 * grub-core/gnulib/regex.h: Likewise.
23589 * grub-core/gnulib/regex_internal.c: Likewise.
23590 * grub-core/gnulib/regex_internal.h: Likewise.
23592 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23594 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23595 CRC calculations and validity checks.
23596 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23599 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23601 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23603 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23605 Fix incorrect echo options handling.
23606 Reported by: Yves Blusseau.
23608 * include/grub/command.h (grub_command_flags_t): New flags
23609 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23610 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23611 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23613 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23615 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23617 (GRUB_COMMAND_FLAG_MENU): Likewise.
23618 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23619 (GRUB_COMMAND_FLAG_TITLE): Removed.
23620 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23621 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23622 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23623 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23624 (grub_command_flags_t): New enum. All users updated.
23626 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23628 Fix solaris compilation.
23630 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23631 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23632 (grub-emu-list): Likewise.
23634 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23636 Remove deprecated root command.
23638 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23641 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23643 * util/i386/pc/grub-setup.c: Merge this ...
23644 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23645 * util/grub-setup.c: ... into this.
23646 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23649 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23651 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23654 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23656 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23659 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23661 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23662 explicit root argument to set to prevent UUID to be interpreted as
23665 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23667 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23669 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23671 Don't export grub_gate_a20.
23673 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23674 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23676 (grub_gate_a20): ... this. All users updated.
23677 * include/grub/i386/pc/init.h: Removed. All users updated.
23679 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23681 Create euro.pf2 which supports most European languages.
23683 * Makefile.am (grubdata_DATA): Add euro.pf2.
23684 (euro.pf2): New target.
23685 (CLEANFILES): Add euro.pf2.
23687 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23689 * configure.ac: Disable emu-usb by default to prevent inadvertent
23692 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23694 Disable usbserial on grub-emu since our libusb code isn't good enough
23697 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23698 (usbserial_pl2303): Likewise.
23699 (usbserial_ftdi): Likewise.
23701 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23703 * include/grub/disk.h (grub_disk): Remove has_partitions.
23705 * disk/loopback.c (grub_loopback): Remove has_partitions.
23707 (options): Remove partitions. All users updated.
23708 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23709 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23710 actual partition table is found.
23712 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23714 Remove readability checks (too many false negatives).
23716 * util/grub-install.in: Remove readability checks.
23717 * util/grub-mkconfig.in: Likewise.
23718 * util/grub.d/10_hurd.in: Likewise.
23719 * util/grub.d/10_kfreebsd.in: Likewise.
23720 * util/grub.d/10_linux.in: Likewise.
23721 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23724 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23726 Enable acpi shutdown on all ACPI platforms.
23728 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23729 on coreboo, multiboot and EFI.
23730 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23731 (grub_acpi_halt): Likewise.
23732 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23733 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23734 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23735 * grub-core/lib/i386/halt.c (grub_halt)
23736 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23738 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23740 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23743 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23745 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23746 * grub-core/video/efi_uga.c: Likewise.
23748 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23750 Filter devaliases and never open same device twice.
23752 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23753 (last_ihandle): Likewise.
23754 (ofdisk_hash_ent): New member shortest.
23755 (ofdisk_hash_add): Add canonical path too.
23756 (scan): New function.
23757 (grub_ofdisk_iterate): Iterate over hashed entries.
23758 (compute_dev_path): Don't add :0.
23759 (grub_ofdisk_open): Don't really open the disk.
23760 (grub_ofdisk_close): Avoid closing unrelated disk.
23761 (grub_ofdisk_read): Implement reopen logic.
23762 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23764 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23767 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23771 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23772 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23773 right address. Add sparc64_ieee1275_ldflags.
23774 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23775 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23776 to grub_host_to_target_addr
23777 (load_image): Likewise.
23779 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23781 * grub-core/normal/completion.c (complete_file): Handle device
23783 Fix based on patch by Doug Nazar.
23785 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23787 grub-mknetdir script.
23789 * Makefile.util.def (grub-mknetdir): New module.
23790 * tests/util/grub-shell.in: Support boot=net
23791 * util/grub-mknetdir.in: New file.
23793 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23795 videoinfo on non-vbe.
23797 * grub-core/Makefile.core.def (vbeinfo): Removed.
23798 (vbetest): Removed.
23799 (videoinfo): New module.
23800 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23801 * grub-core/commands/i386/pc/vbetest.c: Removed.
23802 * grub-core/commands/videoinfo.c: New file.
23803 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23805 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23807 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23808 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23809 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23810 mode_number. New parameter mode. All users updated.
23811 (grub_video_gop_iterate): New function.
23812 (grub_video_efi_gop): New member iterate.
23813 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23814 (grub_vbe_set_video_mode): Remove setting useless fields.
23815 (vbe2videoinfo): New function.
23816 (grub_video_vbe_iterate): Likewise.
23817 (grub_video_vbe_setup): Use vbe2videoinfo.
23818 (grub_video_vbe_print_adapter_specific_info): New function.
23819 (grub_video_vbe_adapter): New fields iterate and
23820 print_adapter_specific_info.
23821 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23823 (grub_video_mode_info): New field mode_number.
23824 (grub_video_adapter): New fields iterate and
23825 print_adapter_specific_info.
23827 2010-09-13 Tristan Gingold <gingold@free.fr>
23828 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23829 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23831 * grub-core/commands/efi/lsefisystab.c: New file.
23832 * grub-core/commands/efi/lssal.c: Likewise.
23833 * grub-core/Makefile.core.def (lsacpi): New module.
23834 (lsefisystab): Likewise.
23835 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23836 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23837 (grub_efi_sal_system_table): New struct.
23838 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23839 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23840 (grub_efi_sal_system_table_platform_features): Likewise.
23841 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23842 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23843 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23844 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23846 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23848 Support explicit user claim that a device is BIOS-visible.
23850 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23851 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23852 * grub-core/kern/emu/hostdisk.c
23853 (convert_system_partition_to_system_disk): Support mdX.
23854 (find_system_device): New parameter add. All users updated.
23855 (grub_util_biosdisk_is_present): New function.
23856 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23859 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23861 Search hints support.
23863 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
23866 2010-09-13 Yves Blusseau <blusseau@zetam.org>
23868 Bash completion script for util commands
23870 * Makefile.am: Add util/bash-completion.d directory
23871 * configure.ac: Likewise.
23872 * util/bash-completion.d/Makefile.am: New file.
23873 * util/bash-completion.d/grub-completion.bash.in: Likewise.
23875 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23877 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
23878 (print_backlog): set backlog_ucs4 and backlog_glyphs.
23879 Reported by: Yves Blusseau.
23881 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23883 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
23884 partition size and offset.
23886 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23888 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
23890 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23892 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
23894 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23896 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
23897 (grub_xvasprintf): Likewise.
23899 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23901 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
23903 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23905 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
23906 args ending with NULL.
23908 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23910 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
23913 2010-09-11 Szymon Janc <szymon@janc.net.pl>
23915 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
23917 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23919 Shutdown using ACPI.
23921 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
23922 * grub-core/commands/acpihalt.c: New file.
23923 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
23924 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
23925 (grub_acpi_halt): New proto.
23926 (GRUB_ACPI_SLP_EN): New const.
23927 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
23928 (GRUB_ACPI_OPCODE_*): New enum.
23929 (GRUB_ACPI_EXTOPCODE_*): Likewise.
23931 2010-09-11 Tristan Gingold <gingold@free.fr>
23932 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
23933 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23935 * commands/lsacpi.c: New file.
23936 * grub-core/Makefile.core.def (lsacpi): New module.
23937 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
23938 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
23939 (grub_acpi_madt_entry_header): New struct.
23940 (grub_acpi_madt): Likewise.
23941 (grub_acpi_madt_entry_interrupt_override): Likewise.
23942 (grub_acpi_madt_entry_sapic): Likewise.
23943 (grub_acpi_madt_entry_lsapic): Likewise.
23944 (grub_acpi_madt_entry_platform_int_source): Likewise.
23945 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
23946 (PRIuGRUB_UINT32_T): Likewise.
23947 (PRIxGRUB_UINT64_T): Likewise.
23949 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23951 Implement loading palette on ieee1275_fb.
23953 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
23954 (have_setcolors): Likewise.
23955 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
23956 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
23957 (grub_video_ieee1275_set_palette): Implement.
23959 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23960 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
23962 * util/grub-install.in (grub_partition): New variable.
23963 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
23964 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
23965 Fixes a bug reported by Yves Blusseau.
23967 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23971 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
23972 =grub_cpu_flush_cache on all mips and not only yeeloong.
23973 * configure.ac (COND_mips): New conditional.
23974 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
23976 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
23977 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
23978 [GRUB_LINKER_HAVE_INIT]: New function.
23979 (grub_emu_post_init): Likewise.
23980 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
23981 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
23982 * include/grub/cache.h (_mips): Include mips/cache.h.
23983 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
23984 LVM and RAID prototypes.
23985 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
23986 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
23989 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23991 * util/grub-install.in: Don't try to verify core.img until after
23992 running grub-mkimage to create it.
23994 2010-09-10 Robert Millan <rmh@gnu.org>
23996 * util/grub.d/10_hurd.in: Add misc readability checks.
23997 * util/grub.d/10_kfreebsd.in: Likewise.
23998 * util/grub.d/10_linux.in: Likewise.
24000 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24002 * util/grub-install.in: ${imgext} won't be defined here until the
24003 install branch is merged. For the meantime, only verify core.img on
24004 i386-pc and sparc64-ieee1275 platforms.
24006 2010-09-10 Robert Millan <rmh@gnu.org>
24008 Solaris support in grub_find_zpool_from_dir(). Thanks
24009 Seth Goldberg for referring to getextmntent() facility.
24011 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24013 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24015 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24016 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24017 method for finding zpool name.
24019 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24021 grub-fstest needs the host and hostfs modules while other utilities
24022 actively require those modules to be absent, so grub-fstest needs
24023 its own initialisation and finalisation code.
24025 * Makefile.am (grub_fstest.pp): New target.
24026 (grub_fstest_init.lst): Likewise.
24027 (grub_fstest_init.c): Likewise.
24028 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24030 2010-09-10 Robert Millan <rmh@gnu.org>
24032 * configure.ac: Check for `struct statfs.f_fstypename' and
24033 `struct statfs.f_mntfromname'.
24035 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24036 kFreeBSD-specific code.
24038 2010-09-10 Robert Millan <rmh@gnu.org>
24040 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24041 on ZFS. Now non-main filesystems are supported as / too.
24043 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24045 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24046 and grub-core/disk/host.c to ...
24047 (grub-fstest): ... here. Having the host disk implementation
24048 present confuses grub-probe and other utility programs.
24050 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24051 when writing to a file, not when writing to stdout.
24053 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24055 * tests/partmap_test.in: New test for partitions.
24056 * Makefile.util.def: Rules for new test.
24058 2010-09-09 Robert Millan <rmh@gnu.org>
24060 * util/grub-probe.c (probe): Fix a pair of unhandled error
24063 2010-09-09 Robert Millan <rmh@gnu.org>
24065 Basic Btrfs support (detection and UUID).
24067 * grub-core/fs/btrfs.c: New file.
24068 * Makefile.util.def (library): Register btrfs.c.
24069 * grub-core/Makefile.core.def: Likewise.
24071 2010-09-08 Robert Millan <rmh@gnu.org>
24073 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24074 with (optional) parameters to specify device and relative path.
24075 * util/grub-install.in: Use is_path_readable_by_grub() to
24076 verify readability of a few critical files.
24077 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24078 verify readability of grub.cfg.new.
24080 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24082 Split minix.mod into minix.mod and minix2.mod.
24084 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24085 * grub-core/Makefile.core.def (minix2): New module.
24086 * grub-core/fs/minix.c: Use definitions instead of runtime version
24088 * grub-core/fs/minix2.c: New file.
24090 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24092 Add new --boot-directory option to replace --root-directory
24094 * util/grub-install.in: Add new --boot-directory option
24095 * util/grub-reboot.in: Likewise.
24096 * util/grub-set-default.in: Likewise.
24098 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24100 * util/grub-mkconfig.in: Use new variable.
24102 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24104 * configure.ac: Define some useful variables.
24106 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24108 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24109 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24110 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24111 Use terminfo and don't use cursor-on/cursor-off unless it's known
24113 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24114 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24116 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24118 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24119 starts with "(,", fill the drive containing the loaded image in
24120 between those two characters, but expect that a full partition
24121 specification including partition map names will follow.
24123 2010-09-08 Robert Millan <rmh@gnu.org>
24125 * configure.ac: Remove `--enable-grub-fstest' option.
24126 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24128 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24129 `grub-fstest' instead of `grub-probe' for readability verification.
24130 * util/grub-probe.c (probe): Remove readability verification kludge.
24132 2010-09-08 Robert Millan <rmh@gnu.org>
24134 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24135 initializing `GRUB_FS'.
24137 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24139 Not command (!) support to GRUB script.
24141 * tests/grub_script_not.in: New test.
24142 * Makefile.util.def: Rules for new test.
24144 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24145 ! command as a special case.
24146 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24148 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24150 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24153 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24155 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24157 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24159 * docs/grub.texi (Shell-like scripting): Documentation for break,
24160 continue, shift and return commands.
24162 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24164 Rename CD-ROM to cd on BIOS.
24166 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24168 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24170 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24172 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24173 * util/grub-probe.c (main): Likewise.
24174 * util/i386/pc/grub-setup.c (main): Likewise.
24175 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24176 Reported and debugged by: alexxy
24178 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24180 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24183 2010-09-05 Jo Shields <directhex@apebox.org>
24185 * util/grub.d/30_os-prober.in: Add missing classes.
24187 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24189 * docs/grub.texi (Theme file format): Document new position format.
24191 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24193 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24194 a table. Use @code instead of @verbatim.
24196 2010-09-05 Colin D Bennett <colin@gibibit.com>
24198 Gfxmenu documentation.
24200 * docs/grub.texi (Theme file format): New chapter.
24202 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24204 * grub-core/Makefile.core.def (xzio): New module.
24205 * grub-core/io/xzio.c: New file.
24206 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24207 * grub-core/lib/xzembed/xz_config.h: Likewise.
24208 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24209 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24210 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24211 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24212 * grub-core/lib/xzembed/xz_private.h: Likewise.
24213 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24214 * include/grub/file.h (grub_file_filter_id): New compression filter
24215 GRUB_FILE_FILTER_XZIO.
24217 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24219 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24220 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24223 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24225 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24226 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24228 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24230 Uncompressed checksum support.
24232 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24233 (check_list): New parameter uncompress.
24234 (grub_cmd_hashsum): Handle --uncompress.
24236 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24238 Reintroduce testload.
24240 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24242 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24243 (GRUB_MOD_INIT): New function.
24244 (GRUB_MOD_FINI): Likewise.
24245 * grub-core/Makefile.core.def (testload): New module.
24247 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24249 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24250 (uint8_t): New type.
24251 (uint16_t): Likewise.
24252 (uint32_t): Likewise.
24253 (uint64_t): Likewise.
24255 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24257 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24259 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24261 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24263 (grub_gzfile_open): Removed. All users updated.
24264 (GRUB_MOD_INIT): New function.
24265 (GRUB_MOD_FINI): Likewise.
24266 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24267 (grub_file_filters_enabled): Likewise.
24268 (grub_file_open): Handle filters.
24269 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24270 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24271 * include/grub/file.h (grub_file_filter_id_t): New type.
24272 (grub_file_filter_t): Likewise.
24273 (grub_file_filters_all): New extern variable.
24274 (grub_file_filters_enabled): Likewise.
24275 (grub_file_filter_register): New inline function.
24276 (grub_file_filter_unregister): Likewise.
24277 (grub_file_filter_disable): Likewise.
24278 (grub_file_filter_disable_compression): Likewise.
24279 * include/grub/gzio.h: Removed.
24281 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24283 Filename expansion support for wildcards in GRUB script.
24285 * tests/grub_script_expansion.in: New test.
24286 * Makefile.util.def: Rule for new test.
24288 * grub-core/commands/wildcard.c: New file, implements filename
24289 expansion support for GRUB script.
24290 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24291 * grub-core/script/argv.c: Cosmetic changes.
24292 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24293 Refactored to perform wildcard expansion on arguments.
24294 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24297 * tests/util/grub-shell.in: Fix quoting for read input.
24299 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24301 Support for updating environment variables with matched substrings
24304 * tests/grub_cmd_regexp.in: New test.
24305 * Makefile.util.def: Rule for new test.
24307 * grub-core/commands/regexp.c: New option -s to update environment
24308 variables with regexp matches.
24310 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24312 * include/grub/file.h (grub_file): New member not_easly_seekable.
24313 (grub_file_seekable): New inline function.
24314 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24316 (grub_gzio_open): Set not_easly_seekable.
24317 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24318 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24320 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24322 Support for options to appear multiple times on cmdline.
24324 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24325 * grub-core/commands/extcmd.c: Support for repeatable option.
24326 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24327 repeatable option support.
24329 Refactor menuentry into a regular command.
24331 * grub-core/commands/menuentry.c: New file, menuentry command
24333 * grub-core/Makefile.core.def: Rule update for normal.mod.
24334 * grub-core/normal/main.c: Moved menuentry creation to
24335 grub-core/commands/menuentry.c.
24336 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24337 (grub_menu_execute_entry_real): Removed.
24338 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24340 (grub_script_execute_menuentry): Removed.
24341 * grub-core/script/parser.y (menuentry): Removed.
24342 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24343 * grub-core/script/yylex.l (menuentry): Removed.
24344 * include/grub/menu.h (grub_menu_init): New prototype.
24345 (grub_menu_fini): New prototype.
24346 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24347 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24348 (grub_script_execute_sourcecode): New prototype.
24350 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24352 "return" command for GRUB script functions.
24354 * tests/grub_script_return.in: New test.
24355 * Makefile.util.def: Rules for new test.
24357 * grub-core/script/execute.c (grub_script_return): New function.
24358 * grub-core/script/main.c: Register/unregister return commaond.
24359 * include/grub/script_sh.h (grub_script_return): New prototype.
24361 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24363 "setparams" command to update positional parameters.
24365 * tests/grub_script_setparams.in: New test.
24366 * Makefile.util.def: Rules for new test.
24368 * grub-core/script/argv.c (grub_script_argv_make): New function.
24369 * grub-core/script/execute.c (replace_scope): New function.
24370 (grub_script_setparams): New function.
24371 * grub-core/script/lexer.c: Remove unused variables.
24372 * grub-core/script/main.c: Register/unregister setparams command.
24373 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24374 (grub_script_setparams): New prototype.
24376 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24378 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24381 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24383 Support for passing block of commands as an argument to extcmds.
24385 * Makefile.util.def: Rules for new test.
24386 * tests/grub_script_blockarg.in: New test.
24387 * grub-core/tests/test_blockarg.c: New file, block argument
24388 command used in the test.
24390 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24391 (grub_register_extcmd_prio): New function prototype.
24392 (grub_extcmd_dispatcher): New function prototype.
24393 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24395 * include/grub/script_sh.h (struct grub_script): New members
24396 `children', `next_siblings' and `refcnt' for block arguments and
24397 reference counting.
24398 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24399 (grub_script_arg): New member `script' for block argument.
24400 (grub_script_argv): New member `script' for block argument.
24401 (grub_parser_param): New member `scripts' for block argument.
24402 (grub_script_mem_free): New extern function prototype.
24403 (grub_script_ref): New function prototype.
24404 (grub_script_unref): New function prototype.
24406 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24407 extcmd form to support block arguments.
24408 * grub-core/script/argv.c: Block arguments support.
24409 * grub-core/script/execute.c: Likewise.
24410 * grub-core/script/lexer.c: Likewise.
24411 * grub-core/script/main.c: Likewise.
24412 * grub-core/script/script.c: Likewise.
24413 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24416 * grub-core/commands/acpi.c: Update extcmd implementations with
24417 grub_extcmd_context_t.
24418 * grub-core/commands/cat.c: Likewise.
24419 * grub-core/commands/echo.c: Likewise.
24420 * grub-core/commands/extcmd.c: Likewise.
24421 * grub-core/commands/hashsum.c: Likewise.
24422 * grub-core/commands/hdparm.c: Likewise.
24423 * grub-core/commands/help.c: Likewise.
24424 * grub-core/commands/hexdump.c: Likewise.
24425 * grub-core/commands/i386/cpuid.c: Likewise.
24426 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24427 * grub-core/commands/i386/pc/halt.c: Likewise.
24428 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24429 * grub-core/commands/iorw.c: Likewise.
24430 * grub-core/commands/keystatus.c: Likewise.
24431 * grub-core/commands/loadenv.c: Likewise.
24432 * grub-core/commands/ls.c: Likewise.
24433 * grub-core/commands/lspci.c: Likewise.
24434 * grub-core/commands/memrw.c: Likewise.
24435 * grub-core/commands/probe.c: Likewise.
24436 * grub-core/commands/search_wrap.c: Likewise.
24437 * grub-core/commands/setpci.c: Likewise.
24438 * grub-core/commands/sleep.c: Likewise.
24439 * grub-core/disk/loopback.c: Likewise.
24440 * grub-core/hello/hello.c: Likewise.
24441 * grub-core/loader/i386/bsd.c: Likewise.
24442 * grub-core/loader/xnu.c: Likewise.
24443 * grub-core/term/gfxterm.c: Likewise.
24444 * grub-core/term/serial.c: Likewise.
24445 * grub-core/tests/lib/functional_test.c: Likewise.
24447 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24449 Multi-line quoted strings support.
24451 * grub-core/script/lexer.c (append_newline): Removed.
24452 (grub_script_lexer_yywrap): Refactored.
24453 (grub_script_lexer_init): Refactored.
24454 * grub-core/script/yylex.l (yywrap): New function.
24455 (grub_lexer_resplit): New function.
24456 (grub_lexer_unput): New function.
24457 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24459 * tests/grub_script_echo1.in: Added few more testcases.
24461 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24463 * grub-core/kern/misc.c: Don't add abort alias in utils.
24464 Reported by: echoline.
24466 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24468 Add missing files into "make dist" tarball for other platforms.
24470 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24471 * conf/Makefile.common (dist_noinst_DATA): New variable.
24472 * conf/Makefile.extra-dist: Added missing make dist files.
24473 * grub-core/Makefile.core.def: Likewise.
24475 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24477 Compress grub_prefix.
24479 * grub-core/boot/i386/pc/lnxboot.S: Use
24480 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24481 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24482 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24483 GRUB_MACHINE_PREFIX_END. All users updated.
24484 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24485 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24487 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24488 * util/grub-mkimage.c (image_target_desc): Change data_end to
24489 prefix_end. All users updated.
24491 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24493 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24495 (grub_openbsd_boot): Likewise.
24496 (grub_netbsd_boot): Likewise.
24497 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24498 (grub_xnu_boot): Likewise.
24500 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24502 * configure.ac: Clean LIBS variable after tests.
24504 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24506 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24508 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24510 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24511 echo if libdevmapper will be used.
24513 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24515 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24516 constant for the same file.
24518 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24520 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24522 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24524 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24527 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24529 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24530 required by the boot protocol.
24532 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24533 ebp and edi members.
24534 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24535 state.ebp and state.edi.
24536 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24537 %ebp and %edi according to grub_relocator32_ebp and
24538 grub_relocator32_edi respectively.
24539 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24542 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24544 Add i386-pc-pxe image target.
24546 * util/grub-mkimage.c (image_target_desc): New enum value
24548 (image_targets): New target i386-pc-pxe.
24549 (generate_image): Handle i386-pc-pxe image.
24551 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24555 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24556 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24558 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24559 (grub_pxe_pxenv): Correct type.
24561 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24563 * NEWS: Document most of the important changes since 1.98.
24565 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24567 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24568 generated manual page) a little.
24570 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24572 * docs/grub.texi: Add myself as an author.
24574 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24576 * Makefile.util.def (libgrub.a): Add missing sunpc.
24577 Reported by: Seth Goldberg.
24579 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24581 Interrupt wrapping and code simplifications.
24583 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24584 x86_noieee1275 which are functionaly equivalent in this case.
24585 (grub-install): Make source on each platform explicit. Enable on
24587 * gentpl.py (x86_efi_pc): Removed group.
24588 (x86_noefi): Likewise.
24589 (i386_noefi): Likewise.
24590 (x86_noieee1275): Likewise.
24591 (i386_noieee1275): Likewise.
24592 (i386_noefi_noieee1275): Likewise.
24593 (i386_pc_qemu_coreboot): Likewise.
24594 (i386_coreboot_multiboot): Likewise.
24595 (i386_pc_coreboot_multiboot_qemu): Likewise.
24596 (x86_noefi_mips): Likewise.
24597 (noieee1275): Likewise.
24598 (ieee1275_mips): Likewise.
24599 (noemu_noieee1275): Likewise.
24602 (videoinkernel): Likewise.
24603 (videomodules): Likewise.
24604 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24605 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24606 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24607 include/grub/loader.h, include/grub/msdos_partition.h,
24608 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24609 include/grub/machine/console.h, include/grub/machine/vga.h,
24610 include/grub/machine/vbe.h, include/grub/machine/init.h,
24611 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24612 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24613 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24614 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24615 * grub-core/Makefile.core.def (kernel): Explicit the source for
24616 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24617 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24618 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24619 Use videoinkernel tag.
24620 (usb): Enable on all usb.
24621 (usbserial_common): Likewise.
24622 (usbserial_pl2303): Likewise.
24623 (usbserial_ftdi): Likewise.
24624 (uhci): Enable on all x86.
24625 (ohci): Enable on all pci.
24626 (cmostest): Enable on all CMOS.
24627 (acpi): Include commands/acpi.c on all platforms.
24628 (halt): Add relevant lib/*/halt.c.
24629 (hdparm): Enable on all pci.
24631 (usbtest): Enable on all usb.
24632 (ata): Enable on all pci.
24633 (ata_pthru): Likewise.
24634 (usbms): Enable on all usb.
24635 (usb_keyboard): Likewise.
24636 (font): Use tag videomodules.
24638 (datetime): Use tag cmos. Enable on all noemu.
24639 (mmap): Use tags common and x86.
24640 (gfxterm): Use tag videomodules.
24641 (bitmap): Likewise.
24642 (bitmap_scale): Likewise.
24643 (video_fb): Likewise.
24645 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24646 adjust padding accordingly. All users updated.
24647 (grub_ohci_transaction): Fix bad format specification.
24648 (GRUB_MOD_INIT): Add asserts for struct size.
24649 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24650 (grub_alloc_td): Likewise.
24651 (grub_free_queue): Likewise.
24652 (grub_uhci_transfer): Likewise.
24653 (grub_uhci_transaction): Fix bad format specification.
24654 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24655 (grub_usb_bulk_readwrite): Likewise.
24656 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24657 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24659 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24661 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24662 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24663 Transformed into C.
24664 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24665 Moved from here ...
24666 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24667 ... here. Transformed into C. Made static.
24668 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24669 Moved from here ...
24670 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24671 ... here. Transformed into C. Made static.
24672 * grub-core/kern/i386/pc/startup.S
24673 (grub_biosdisk_check_int13_extensions): Moved from here ...
24674 * grub-core/disk/i386/pc/biosdisk.c
24675 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24677 * grub-core/kern/i386/pc/startup.S
24678 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24679 * grub-core/disk/i386/pc/biosdisk.c
24680 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24681 Transformed into C. Made static.
24682 * grub-core/kern/i386/pc/startup.S
24683 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24684 * grub-core/disk/i386/pc/biosdisk.c
24685 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24686 Transformed into C. Made static.
24687 * grub-core/kern/i386/pc/startup.S
24688 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24689 * grub-core/disk/i386/pc/biosdisk.c
24690 (grub_biosdisk_get_diskinfo_standard): ... here.
24691 Transformed into C. Made static.
24692 * grub-core/kern/i386/pc/startup.S
24693 (grub_biosdisk_get_num_floppies): Moved from here ...
24694 * grub-core/disk/i386/pc/biosdisk.c
24695 (grub_biosdisk_get_num_floppies): ... here.
24696 Transformed into C. Made static.
24697 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24699 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24700 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24701 Transformed into C. Made static.
24702 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24703 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24704 Transformed into C. Made static.
24705 * grub-core/kern/i386/ieee1275/init.c: Removed.
24706 * grub-core/kern/i386/misc.S: Likewise.
24707 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24708 Splitted from here ...
24709 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24710 Transformed into C. Made static. All users updated.
24711 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24712 Transformed into C. Made static. All users updated.
24713 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24715 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24716 Transformed into C. Made static. All users updated.
24717 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24719 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24720 Transformed into C. Made static. All users updated.
24721 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24722 Removed (replaced by C version).
24723 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24725 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24726 Transformed into C. Made static.
24727 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24729 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24730 ... here. Transformed into C.
24731 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24733 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24734 ... here. Transformed into C.
24735 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24737 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24738 ... here. Transformed into C. Made static.
24739 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24741 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24742 ... here. Transformed into C.
24743 * grub-core/kern/i386/pc/startup.S
24744 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24745 * grub-core/video/i386/pc/vbe.c
24746 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24747 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24749 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24750 ... here. Transformed into C.
24751 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24753 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24754 ... here. Transformed into C.
24755 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24757 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24758 ... here. Transformed into C.
24759 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24761 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24762 ... here. Transformed into C.
24763 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24765 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24766 ... here. Transformed into C. Made static.
24767 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24769 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24770 ... here. Transformed into C. Made static.
24771 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24773 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24774 ... here. Transformed into C. Made static.
24775 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24776 pxe_rm_entry as third argument.
24777 (grub_bios_interrupt): New function.
24778 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24779 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24780 of calling grub_stop.
24781 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24782 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24783 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24784 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24785 * grub-core/lib/i386/halt.c: Moved from here ...
24786 * grub-core/lib/i386/halt.c: ... here.
24787 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24788 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24789 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24791 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24792 * include/grub/i386/coreboot/init.h: Removed.
24793 * include/grub/i386/multiboot/init.h: Likewise.
24794 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24795 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24796 * include/grub/i386/pc/int.h: New file.
24797 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24798 (grub_pxe_scan): Removed.
24799 (grub_pxe_call): Update prototype.
24800 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24802 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24803 * include/grub/i386/qemu/init.h: Removed.
24804 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24806 (grub_halt): Likewise.
24807 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24808 (grub_reboot): Likewise.
24809 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24810 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24811 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24813 2010-08-30 Robert Millan <rmh@gnu.org>
24815 * NEWS: Document addition of ZFS support in `grub-install' and
24818 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24820 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24823 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24825 Remove leftover embedding of font objects.
24827 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24828 * util/grub-install.in (font): Removed.
24829 * util/grub-mkimage.c (generate_image): Remove font support. All users
24832 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24834 Remove leftover embedding of font objects.
24836 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24837 * util/grub-install.in (font): Removed.
24838 * util/grub-mkimage.c (generate_image): Remove font support. All users
24841 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24843 * docs/grub.texi (Network): Fix reference to pxe_blksize.
24844 Reported by: Ian Turner
24846 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24848 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24849 timeout to avoid indefinite boot stalling.
24851 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24853 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24854 (grub_env_write_color_highlight): Likewise.
24856 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24858 * grub-core/normal/term.c (print_more): Return to normal and not
24859 to standard state after printing "---MORE---".
24861 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24863 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
24864 Mask out the bit 0x80 since it has other meaning that specifiing color.
24866 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24868 New relocator. Allows for more kernel support and more straightforward
24871 * Makefile.am (BOOTTARGET): New variable.
24872 (QEMU32): Likewise.
24873 (linux.init.x86_64): New target.
24874 (linux.init.i386): Likewise.
24875 (multiboot.elf): Likewise.
24876 (kfreebsd.elf): Likewise.
24877 (kfreebsd.aout): Likewise.
24878 (pc-chainloader.elf): Likewise.
24879 (pc-chainloader.bin): Likewise.
24880 (ntldr.elf): Likewise.
24881 (ntldr.bin): Likewise.
24882 (multiboot2.elf): Likewise.
24883 (kfreebsd.init.x86_64): Likewise.
24884 (kfreebsd.init.i386): Likewise.
24885 (knetbsd.init.i386): Likewise.
24886 (kopenbsd.init.i386): Likewise.
24887 (knetbsd.init.x86_64): Likewise.
24888 (kopenbsd.init.x86_64): Likewise.
24889 (linux-initramfs.i386): Likewise.
24890 (linux-initramfs.x86_64): Likewise.
24891 (kfreebsd-mfsroot.i386.img): Likewise.
24892 (knetbsd.image.i386): Likewise.
24893 (kopenbsd.image.i386): Likewise.
24894 (kopenbsd.image.x86_64): Likewise.
24895 (knetbsd.miniroot-image.i386.img): Likewise.
24896 (kfreebsd-mfsroot.x86_64.img): Likewise.
24897 (knetbsd.image.x86_64): Likewise.
24898 (knetbsd.miniroot-image.x86_64.img): Likewise.
24899 (kfreebsd-mfsroot.i386.gz): Likewise.
24900 (bootcheck-kfreebsd-i386): Likewise.
24901 (kfreebsd-mfsroot.x86_64.gz): Likewise.
24902 (bootcheck-kfreebsd-x86_64): Likewise.
24903 (knetbsd.miniroot-image.i386.gz): Likewise.
24904 (bootcheck-knetbsd-i386): Likewise.
24905 (bootcheck-kopenbsd-i386): Likewise.
24906 (bootcheck-kopenbsd-x86_64): Likewise.
24907 (knetbsd.miniroot-image.x86_64.gz): Likewise.
24908 (bootcheck-knetbsd-x86_64): Likewise.
24909 (bootcheck-linux-i386): Likewise.
24910 (bootcheck-linux-x86_64): Likewise.
24911 (bootcheck-linux16-i386): Likewise.
24912 (bootcheck-linux16-x86_64): Likewise.
24913 (bootcheck-multiboot): Likewise.
24914 (bootcheck-multiboot2): Likewise.
24915 (bootcheck-kfreebsd-aout): Likewise.
24916 (bootcheck-pc-chainloader): Likewise.
24917 (bootcheck-ntldr): Likewise.
24918 (CLEANFILES): Add new targets.
24919 (BOOTCHECKS): New variable.
24920 (.PHONY): Add bootchecks.
24921 (SUCCESSFUL_BOOT_STRING): New variable.
24922 (BOOTCHECK_TIMEOUT): Likewise.
24923 (bootcheck): New target
24924 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
24925 * configure.ac: Correct efiemu excuse.
24926 * docs/grub.texi (Supported kernels): New chapter.
24927 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
24928 include/grub/mm_private.h. Simplify inclusion of
24929 include/grub/boot.h, include/grub/loader.h
24930 and include/grub/msdos_partition.h
24931 (KERNEL_HEADER_FILES) [i386_coreboot]:
24932 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
24933 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
24934 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
24935 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
24936 include/grub/machine/loader.h.
24937 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
24938 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
24940 (pci.mod): Enable on i386-multiboot.
24941 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
24942 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
24944 (relocator.mod): Rewritten.
24945 (aout.mod): Enable on all x86.
24946 (bsd.mod): Likewise.
24947 (ntldr.mod): New module.
24948 (linux.mod): Use loader/i386/linux.c on all x86.
24949 (xnu.mod): Enable on all x86.
24950 (vga_text.mod): disable on EFI and QEMU.
24951 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
24952 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
24953 * grub-core/efiemu/loadcore.c: Likewise.
24954 * grub-core/efiemu/main.c: Likewise.
24955 (grub_efiemu_exit_boot_services): Removed.
24956 (grub_efiemu_finish_boot_services): Likewise.
24957 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
24959 * grub-core/efiemu/i386/nocfgtables.c: New file.
24960 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
24961 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
24962 (grub_efi_finish_boot_services): Moved from here ...
24963 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
24964 Fille finish memory map and related data.
24965 (finish_mmap_buf): New variable.
24966 (grub_efi_uintn_t finish_mmap_size): Likewise.
24967 (grub_efi_uintn_t finish_key): Likewise.
24968 (grub_efi_uintn_t finish_desc_size): Likewise.
24969 (grub_efi_uint32_t finish_desc_version): Likewise.
24970 (grub_efi_is_finished): Likewise.
24971 (grub_efi_get_memory_map): Use saved memory map if EFI is already
24973 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
24974 (grub_elf64_phdr_iterate): Likewise.
24975 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
24976 (grub_os_area_size): Likewise.
24977 (grub_machine_init): Don't reserve os area.
24978 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
24979 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
24980 * grub-core/kern/i386/loader.S: Removed.
24981 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
24982 (grub_os_area_size): Likewise.
24983 (grub_machine_init): Don't reserve os area.
24984 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
24985 Don't call grub_dl_unload_all.
24986 Don't include loader.S.
24987 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
24988 Declare the memory after _end as available.
24989 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
24990 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
24991 (GRUB_MM_ALLOC_MAGIC): Moved from here...
24992 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
24993 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
24994 * include/grub/mm_private.h (grub_mm_header): ... here.
24995 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
24996 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
24997 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
24998 (grub_mm_region): ..here. Removed addr. Added pre_size.
25000 * grub-core/kern/mm.c (base): Renamed to ...
25001 (grub_mm_base): ... this. Made global.
25002 (grub_real_malloc): Alloc from end of region.
25003 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25004 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25005 * grub-core/kern/powerpc/cache_flush.S: ... here.
25006 * grub-core/lib/efi/relocator.c: New file.
25007 * grub-core/lib/i386/relocator.c: Rewritten.
25008 * grub-core/lib/i386/relocator16.S: New file.
25009 * grub-core/lib/i386/relocator32.S: Likewise.
25010 * grub-core/lib/i386/relocator64.S: Likewise.
25011 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25012 * grub-core/lib/i386/relocator_common.S: New file.
25013 * grub-core/lib/ieee1275/relocator.c: Likewise.
25014 * grub-core/lib/mips/relocator.c: Rewritten.
25015 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25016 stylistic adjustments.
25017 * grub-core/lib/powerpc/relocator.c: New file.
25018 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25019 * grub-core/lib/relocator.c: Rewritten.
25020 * grub-core/lib/x86_64/relocator_asm.S: New file.
25021 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25022 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25023 (bsd_tag): New struct.
25024 (tags): New variable.
25025 (tags_last): Likewise.
25026 (netbsd_module): New struct.
25027 (netbsd_mods): New variable.
25028 (netbsd_mods_last): Likewise.
25029 (openbsd_opts): New parameter "serial".
25030 (OPENBSD_SERIAL_ARG): New definition.
25031 (netbsd_opts): New parameter "serial".
25032 (NETBSD_SERIAL_ARG): New definition.
25033 (grub_freebsd_add_meta): Reorganised into ...
25034 (grub_bsd_add_meta): ...this. All users updated.
25035 (grub_freebsd_add_mmap): Reorganised into ...
25036 (generate_e820_mmap): ...this...
25037 (grub_bsd_add_mmap): ...and this. All users updated.
25038 (grub_freebsd_list_modules): Use tags.
25039 (grub_netbsd_add_meta_module): New function.
25040 (grub_netbsd_list_modules): Likewise.
25041 (grub_freebsd_boot): Use relocator and finish EFI.
25042 (grub_openbsd_boot): Likewise.
25043 (grub_netbsd_setup_video): New function.
25044 (grub_netbsd_add_modules): Likewise.
25045 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25047 (grub_bsd_unload): Unload tags.
25048 (grub_bsd_load_aout): Use relocator.
25049 (grub_bsd_elf32_size_hook): New function.
25050 (grub_bsd_elf32_hook): Use relocator.
25051 (grub_bsd_elf64_size_hook): New function.
25052 (grub_bsd_elf64_hook): Use relocator.
25053 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25054 (grub_bsd_load): Zero-out openbsd_ramdisk.
25055 (grub_bsd_load): Use relocator.
25056 (grub_cmd_openbsd): Support serial.
25057 (grub_cmd_netbsd): Support modules.
25058 (grub_cmd_freebsd_module): Use relocator.
25059 (grub_netbsd_module_load): New function.
25060 (grub_cmd_netbsd_module): Likewise.
25061 (grub_cmd_openbsd_ramdisk): Likewise.
25062 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25064 (GRUB_MOD_FINI): Unregister new commands.
25065 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25066 (grub_freebsd_load_elfmodule_obj): Use relocator.
25067 (grub_freebsd_load_elfmodule): Likewise.
25068 (grub_freebsd_load_elf_meta): Likewise.
25069 (grub_netbsd_load_elf_meta): New function.
25070 (grub_openbsd_find_ramdisk): Likewise.
25071 * grub-core/loader/i386/bsd_helper.S: Removed.
25072 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25073 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25074 * grub-core/loader/i386/efi/linux.c: Likewise.
25075 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25076 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25077 (DEFAULT_VIDEO_MODE): Likewise.
25078 (real_mode_target): New variable.
25079 (prot_mode_target): Likewise.
25080 (initrd_mem_target): Likewise.
25081 (relocator): Likewise.
25082 (efi_mmap_buf): Likewise.
25083 (efi_mmap_size): Likewise.
25084 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25085 (free_pages): Use relocator.
25086 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25087 (grub_linux_setup_video): Return error.
25088 (grub_linux_trampoline_start): Removed.
25089 (grub_linux_trampoline_end): Likewise.
25090 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25091 andd video parameters depending on firmware.
25092 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25093 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25094 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25095 (grub_cmd_initrd): Use relocator.
25096 * grub-core/loader/i386/linux_trampoline.S: Removed.
25097 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25098 (elf_sec_entsize): Likewise.
25099 (elf_sec_shstrndx): Likewise.
25100 (elf_sections): Likewise.
25101 (grub_multiboot_load): Use relocator.
25102 (grub_multiboot_get_mbi_size): Account for sections.
25103 (grub_multiboot_make_mbi): Use relocator and support sections.
25104 (grub_multiboot_add_elfsyms): New function.
25105 (grub_multiboot_free_mbi): Free sections.
25106 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25107 (grub_linux_real_target): Likewise.
25108 (grub_linux_real_chunk): Likewise.
25109 (grub_linux16_prot_size): Likewise.
25110 (grub_linux16_boot): Use relocator.
25111 (grub_linux_unload): Unload relocator.
25112 (grub_cmd_linux): Use relocator.
25113 (grub_cmd_initrd): Likewise.
25114 * grub-core/loader/i386/pc/ntldr.c: New file.
25115 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25116 Don't try to guess CPU frequency.
25117 (grub_xnu_set_video): Stretch bitmap.
25118 (grub_xnu_boot): Use relocator.
25119 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25120 (grub_linux_unload): Free relocator.
25121 (grub_linux_load32): Use relocator.
25122 (grub_linux_load64): Likewise.
25123 (grub_cmd_initrd): Likewise.
25124 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25125 (grub_multiboot_unload): Unload relocator.
25126 (grub_cmd_multiboot): Use relocator.
25127 (grub_cmd_module): Likewise.
25128 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25129 Use relocator and support sections.
25130 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25131 (elf_sec_entsize): Likewise.
25132 (elf_sec_shstrndx): Likewise.
25133 (elf_sections): Likewise.
25134 (grub_multiboot_load): Use relocator.
25135 (grub_multiboot_get_mbi_size): Account for sections.
25136 (grub_multiboot_make_mbi): Use relocator and support sections.
25137 (grub_multiboot_add_elfsyms): New function.
25138 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25139 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25140 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25141 Prototype changed. All users updated.
25142 (grub_xnu_align_heap): Simplified.
25143 (grub_xnu_writetree_toheap): Likewise.
25144 (grub_xnu_unload): Unload relocator.
25145 (grub_cmd_xnu_kernel): Use relocator.
25146 (grub_cmd_xnu_kernel64): Likewise.
25147 (grub_xnu_register_memory): Simplified.
25148 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25149 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25151 (grub_console_checkkey): Likewise.
25152 (grub_console_getkey): Likewise.
25153 (grub_console_getwh): Likewise.
25154 (grub_console_getxy): Likewise.
25155 (grub_console_gotoxy): Likewise.
25156 (grub_console_cls): Likewise.
25157 (grub_console_setcolorstate): Likewise.
25158 (grub_console_setcursor): Likewise.
25159 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25160 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25161 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25162 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25163 * grub-core/tests/boot/kernel-8086.S: Likewise.
25164 * grub-core/tests/boot/kernel-i386.S: Likewise.
25165 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25166 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25167 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25168 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25169 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25170 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25171 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25172 * grub-core/tests/boot/linux.cfg: Likewise.
25173 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25174 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25175 * grub-core/tests/boot/linux16.cfg: Likewise.
25176 * grub-core/tests/boot/multiboot.cfg: Likewise.
25177 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25178 * grub-core/tests/boot/ntldr.cfg: Likewise.
25179 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25180 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25181 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25183 * include/grub/dl.h (grub_dl_unload_all): Removed.
25184 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25185 (grub_efi_finish_boot_services): Change prototype.
25186 (grub_efi_is_finished): New variable.
25187 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25189 (grub_efiemu_finish_boot_services): Removed.
25190 (grub_machine_efiemu_init_tables): New prototype.
25191 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25192 (grub_elf64_phdr_iterate): Likewise.
25193 * include/grub/i386/bsd.h: Include relocator.h.
25194 (freebsd_tag_header): New struct.
25195 (grub_openbsd_bios_mmap): Removed.
25196 (grub_unix_real_boot): Removed.
25197 (grub_freebsd_load_elfmodule32): Changed prototype.
25198 (grub_freebsd_load_elfmodule_obj64): Likewise.
25199 (grub_freebsd_load_elf_meta32): Likewise.
25200 (grub_freebsd_load_elf_meta64): Likewise.
25201 (grub_freebsd_add_meta): Removed.
25202 (grub_netbsd_load_elf_meta32): New prototype.
25203 (grub_netbsd_load_elf_meta64): Likewise.
25204 (grub_bsd_add_meta): Likewise.
25205 (grub_openbsd_ramdisk_descriptor): New struct.
25206 (grub_openbsd_find_ramdisk32): New prototype.
25207 (grub_openbsd_find_ramdisk64): Likewise.
25208 * include/grub/i386/coreboot/loader.h: Removed.
25209 * include/grub/i386/efi/loader.h: Likewise.
25210 * include/grub/i386/ieee1275/loader.h: Likewise.
25211 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25213 * include/grub/i386/loader.h: Removed.
25214 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25216 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25217 (grub_phys_addr_t): New type.
25218 (grub_vtop): New inline function.
25219 (grub_map_memory): Likewise.
25220 (grub_unmap_memory): Likewise.
25221 * include/grub/i386/multiboot/loader.h: Removed.
25222 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25223 (NETBSD_BTINFO_CONSOLE): New definition.
25224 (NETBSD_BTINFO_SYMTAB): Likewise.
25225 (NETBSD_BTINFO_MODULES): Likewise.
25226 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25227 (grub_netbsd_bootinfo): New struct.
25228 (grub_netbsd_btinfo_common): Use explicit bitsize.
25229 (grub_netbsd_btinfo_mmap_entry): Removed.
25230 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25231 (grub_netbsd_btinfo_bootdisk): New struct.
25232 (grub_netbsd_btinfo_symtab): Likewise.
25233 (grub_netbsd_btinfo_serial): Likewise.
25234 (grub_netbsd_btinfo_modules): Likewise.
25235 (grub_netbsd_btinfo_framebuf): Likewise.
25236 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25237 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25239 (grub_openbsd_bootargs): Use explicit bitsize.
25240 (grub_openbsd_bootarg_console): New struct.
25241 (GRUB_OPENBSD_COM_MAJOR): New definition.
25242 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25243 * include/grub/i386/pc/efiemu.h: Removed.
25244 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25245 * include/grub/i386/qemu/loader.h: Removed.
25246 * include/grub/i386/relocator.h: Rewritten.
25247 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25248 * include/grub/mips/memory.h: New file.
25249 * include/grub/mips/multiboot.h: Rewritten.
25250 * include/grub/mips/relocator.h: Rewritten.
25251 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25252 (grub_vtop): New function.
25253 (grub_map_memory): Likewise.
25254 (grub_unmap_memory): Likewise.
25255 * include/grub/misc.h (ALIGN_DOWN): New definition.
25256 * include/grub/mm.h (grub_mm_check_real): New proto.
25257 (GRUB_MM_CHECK): New definition.
25258 * include/grub/mm_private.h: New file.
25259 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25260 (grub_multiboot_get_mbi_size): Removed.
25261 (grub_multiboot_make_mbi): Change prottype.
25262 (grub_multiboot_set_accepts_video): New proto.
25263 (grub_multiboot_add_elfsyms): Likewise.
25264 (grub_multiboot_payload_eip): New variable.
25265 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25267 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25269 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25270 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25271 * include/grub/powerpc/ieee1275/loader.h: Removed.
25272 * include/grub/powerpc/memory.h: New file.
25273 * include/grub/powerpc/relocator.h: Likewise.
25274 * include/grub/relocator.h: Likewise.
25275 * include/grub/relocator_private.h: Likewise.
25276 * include/grub/sparc64/ieee1275/loader.h: Removed.
25277 * include/grub/x86_64/memory.h: New file.
25278 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25279 (grub_xnu_heap_malloc): Likewise.
25280 (grub_xnu_heap_real_start): Removed.
25281 (grub_xnu_heap_start): Likewise.
25282 (grub_xnu_relocator): New variable.
25283 (grub_xnu_heap_target_start): Likewise.
25284 * tests/util/grub-shell.in: Support non-pc.
25285 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25287 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25289 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25291 (grub_bidi_logical_to_visual): Check that malloc succeded.
25292 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25294 (grub_xputs_normal): Likewise.
25296 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25298 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25301 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25303 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25305 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25307 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25309 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25311 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25314 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25316 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25318 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25320 * grub-core/normal/term.c (print_more): Fix a memory leak.
25321 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25322 (grub_xputs_normal): Likewise.
25324 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25326 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25327 the begining of the string
25329 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25331 * grub-core/script/script.c (grub_script_parse): Free parsed on
25334 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25336 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25339 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25341 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25344 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25346 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25347 (scroll_up): Fix a memory leak.
25349 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25351 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25354 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25356 Handle USB pendrives exposed as floppies.
25358 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25360 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25361 Check for partitions on all devices.
25363 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25365 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25366 (readkey): Likewise.
25368 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25370 Multiple variable names support to "export" command.
25372 * normal/context.c (grub_cmd_export): "export" command supports
25373 multiple variable names.
25375 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25377 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25378 --target=drive output to Mach device name.
25380 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25382 New Automake based build system for GRUB.
25384 * ABOUT-NLS: New file.
25385 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25386 in Makefile.util.def file.
25387 * Makefile.util.def: New file. Autogen build definitions file for
25389 * conf/Makefile.common: New file. Common variables for GRUB host
25390 utils and target modules.
25391 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25392 * docs/Makefile.am: New file. Automake file for docs.
25393 * gentpl.py: New file. Python script to generate Autogen
25395 * grub-core/Makefile.am: New file. GRUB target modules' rules
25396 that doesn't fit in Makefile.core.def file.
25397 * grub-core/Makefile.core.def: New file. Autogen build
25398 definitions file for GRUB target modules.
25399 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25400 specific setjmp.S file.
25401 * po/Makefile.am: New file.
25403 * .bzrignore: New ignores.
25404 * INSTALL: New requirements, without Ruby.
25405 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25406 * autogen.sh: Updated to invoke autogen as necessary.
25407 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25408 and defines for Automake conditionals.
25409 * geninit.sh: Refactoring.
25411 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25413 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25416 * include/grub/test.h: Fix functional test modules' naming.
25417 * grub-core/tests/example_functional_test.c: Fix test module name.
25419 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25420 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25421 * util/grub-editenv.c: Likewise.
25422 * util/grub-fstest.c: Likewise.
25423 * util/grub-mkdevicemap.c: Likewise.
25424 * util/grub-mkfont.c: Likewise.
25425 * util/grub-mkimage.c: Likewise.
25426 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25427 * util/grub-probe.c: Likewise.
25428 * util/grub-script-check.c: Likewise.
25429 * util/i386/pc/grub-setup.c: Likewise.
25430 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25432 * tests/util/grub-shell.in: Fix override directory path.
25433 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25434 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25436 * util/lvm.c: Update #includes.
25437 * util/raid.c: Likewise.
25438 * util/resolve.c: Likewise.
25439 * grub-core/bus/emu/pci.c: Likewise.
25440 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25441 * grub-core/lib/posix_wrap/string.h: Likewise.
25442 * grub-core/kern/emu/main.c: Likewise.
25444 * grub-core/gensymlist.sh: New file. Script for generating kernel
25446 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25448 * grub-core/gentrigtables.c: Fix unused variable warnings.
25450 * Makefile.in: Removed.
25451 * conf/any-emu.rmk: Removed.
25452 * conf/common.rmk: Removed.
25453 * conf/i386-coreboot.rmk: Removed.
25454 * conf/i386-efi.rmk: Removed.
25455 * conf/i386-ieee1275.rmk: Removed.
25456 * conf/i386-multiboot.rmk: Removed.
25457 * conf/i386-pc.rmk: Removed.
25458 * conf/i386-qemu.rmk: Removed.
25459 * conf/i386.rmk: Removed.
25460 * conf/mips-yeeloong.rmk: Removed.
25461 * conf/mips.rmk: Removed.
25462 * conf/powerpc-ieee1275.rmk: Removed.
25463 * conf/sparc64-ieee1275.rmk: Removed.
25464 * conf/tests.rmk: Removed.
25465 * conf/x86-efi.rmk: Removed.
25466 * conf/x86_64-efi.rmk: Removed.
25467 * gendistlist.sh: Removed.
25468 * geninitheader.sh: Removed.
25469 * genkernsyms.sh.in: Removed.
25470 * genmk.rb: Removed.
25471 * gensymlist.sh.in: Removed.
25472 * mkinstalldirs: Removed.
25474 * grub-core/boot: ... to here.
25476 * grub-core/bus: ... to here.
25477 * commands: Moved ...
25478 * grub-core/commands: ... to here.
25480 * grub-core/disk: ... to here.
25481 * efiemu: Moved ...
25482 * grub-core/efiemu: ... to here.
25484 * grub-core/font: ... to here.
25486 * grub-core/fs: ... to here.
25487 * gencmdlist.sh: Moved ...
25488 * grub-core/gencmdlist.sh: ... to here.
25489 * genemuinit.sh: Moved ...
25490 * grub-core/genemuinit.sh: ... to here.
25491 * genemuinitheader.sh: Moved ...
25492 * grub-core/genemuinitheader.sh: ... to here.
25493 * genfslist.sh: Moved ...
25494 * grub-core/genfslist.sh: ... to here.
25495 * genhandlerlist.sh: Moved ...
25496 * grub-core/genhandlerlist.sh: ... to here.
25497 * genmoddep.awk: Moved ...
25498 * grub-core/genmoddep.awk: ... to here.
25499 * genmodsrc.sh: Moved ...
25500 * grub-core/genmodsrc.sh: ... to here.
25501 * genpartmaplist.sh: Moved ...
25502 * grub-core/genpartmaplist.sh: ... to here.
25503 * genparttoollist.sh: Moved ...
25504 * grub-core/genparttoollist.sh: ... to here.
25505 * genterminallist.sh: Moved ...
25506 * grub-core/genterminallist.sh: ... to here.
25507 * gentrigtables.c: Moved ...
25508 * grub-core/gentrigtables.c: ... to here.
25509 * genvideolist.sh: Moved ...
25510 * grub-core/genvideolist.sh: ... to here.
25511 * gettext: Moved ...
25512 * grub-core/gettext: ... to here.
25513 * gfxmenu: Moved ...
25514 * grub-core/gfxmenu: ... to here.
25515 * gnulib: Moved ...
25516 * grub-core/gnulib: ... to here.
25518 * grub-core/hello: ... to here.
25520 * grub-core/hook: ... to here.
25522 * grub-core/io: ... to here.
25524 * grub-core/kern: ... to here.
25526 * grub-core/lib: ... to here.
25527 * loader: Moved ...
25528 * grub-core/loader: ... to here.
25530 * grub-core/mmap: ... to here.
25531 * normal: Moved ...
25532 * grub-core/normal: ... to here.
25533 * partmap: Moved ...
25534 * grub-core/partmap: ... to here.
25535 * parttool: Moved ...
25536 * grub-core/parttool: ... to here.
25537 * script: Moved ...
25538 * grub-core/script: ... to here.
25540 * grub-core/term: ... to here
25541 * tests/example_functional_test.c: Moved ...
25542 * grub-core/tests/example_functional_test.c: ... to here.
25543 * tests/lib/functional_test.c: Moved ...
25544 * grub-core/tests/lib/functional_test.c: ... to here.
25545 * tests/lib/test.c: Moved ...
25546 * grub-core/tests/lib/test.c: ... to here.
25548 * grub-core/video: ... to here.
25550 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25552 Replace --enable-grub-emu-modules with grub-emu-lite.
25554 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25557 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25558 * kern/emu/full.c: New file. For grub-emu specific initialization.
25559 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25560 * kern/emu/main.c: Call initialization function grub_emu_init.
25562 * Makefile.in: Include grub-emu-lite in install.
25563 * commands/parttool.c: Use grub_no_autoload to differentiate
25564 between grub-emu and grub-emu-lite.
25565 * include/grub/misc.h: New variable grub_no_autoload.
25567 * conf/any-emu.rmk: New rules for grub-emu-lite.
25568 * configure.ac: Remove --enable-grub-emu-modules.
25569 * genmk.rb: Cleanup unnecessary rules.
25570 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25572 * normal/main.c: Don't load list files on grub-emu-lite.
25573 * util/misc.c (grub_arch_sync_caches): Removed.
25575 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25577 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25578 grub-mkimage rather than grub-mkelfimage.
25579 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25581 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25583 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25584 a key after CapsLock or NumLock. It's just a qemu bug.
25586 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25588 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25589 needed by libusb wrapper.
25591 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25593 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25595 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25597 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25598 --nounzip is passed.
25600 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25602 USB hotunplugging and USB serial support.
25604 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25605 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25606 (grub_uhci_transfer): Respect timeout and set *actual.
25607 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25608 non-standard length.
25609 (grub_usb_device_attach): Autoload modules.
25610 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25611 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25612 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25614 (grub_usb_add_hub): Fill nports and children.
25615 (attach_root_port): Receive hub instead of controller.
25616 All users updated. Fill hub->devices.
25617 (grub_usb_root_hub): Allocate hub->devices.
25618 (detach_device): New function.
25619 (poll_nonroot_hub): Fill children and detach devices.
25620 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25621 actual arguments. All users updated.
25622 (grub_usb_bulk_read_extended): New function.
25623 * bus/usb/serial/common.c: New file.
25624 * bus/usb/serial/ftdi.c: Likewise.
25625 * bus/usb/serial/pl2303.c: Likewise.
25626 * commands/terminal.c (handle_command): Support wildcard.
25627 * commands/usbtest.c: Output "Unknown" instead of empty string.
25628 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25629 (usbserial_common_mod_SOURCES): New variable.
25630 (usbserial_common_mod_CFLAGS): Likewise.
25631 (usbserial_common_mod_LDFLAGS): Likewise.
25632 (pkglib_MODULES): Add usbserial_pl2303.mod.
25633 (usbserial_pl2303_mod_SOURCES): New variable.
25634 (usbserial_pl2303_mod_CFLAGS): Likewise.
25635 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25636 (pkglib_MODULES): Add usbserial_ftdi.mod.
25637 (usbserial_ftdi_mod_SOURCES): New variable.
25638 (usbserial_ftdi_mod_CFLAGS): Likewise.
25639 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25640 (pkglib_MODULES): Add serial.mod.
25641 (serial_mod_SOURCES): New variable.
25642 (serial_mod_CFLAGS): Likewise.
25643 (serial_mod_LDFLAGS): Likewise.
25644 * conf/i386-pc.rmk: Likewise.
25645 * conf/mips-yeeloong.rmk: Likewise.
25646 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25647 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25648 * disk/usbms.c (first_available_slot): New variable.
25649 (grub_usbms_attach): Don't reuse free slots due to potential cache
25651 * include/grub/serial.h: Moved to ..
25652 * include/grub/ns8250.h: ...this.
25653 * include/grub/serial.h: New file.
25654 * include/grub/term.h (grub_term_poll_usb): New variable.
25655 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25656 readkey. All users updated.
25657 (grub_terminfo_output_state): Pass term to put.
25658 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25659 (grub_usb_controller_dev): Add timeout and actual arguments to
25660 transfer. All users updated.
25661 (grub_usb_interface): New field detach_data.
25662 (grub_usb_device): New fields children and nports.
25663 (grub_usb_ep_type_t): New type.
25664 (grub_usb_get_ep_type): New function.
25665 (grub_usb_bulk_read_extended): Likewise.
25666 * include/grub/usbdesc.h (grub_usb_desc): New type.
25667 * include/grub/usbserial.h: New file.
25668 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25669 * kern/term.c (grub_term_poll_usb): New variable.
25670 (grub_getkey): Call grub_term_poll_usb if set.
25671 (grub_checkkey): Likewise.
25672 (grub_getkeystatus): Likewise.
25673 * term/serial.c: Moved controller-specific parts to ...
25674 * term/ns8250.c: ... here.
25675 * term/serial.c: Mostly rewritten.
25676 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25679 2010-08-20 Robert Millan <rmh@gnu.org>
25681 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25682 a separate module and maybe other interesting combinations.
25684 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25685 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25686 (kfreebsd_entry): Add generic filesystem module load routine.
25687 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25689 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25691 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25692 "numcenter" (I misunderstood the purpose of this entry).
25693 * docs/grub.texi (sendkey): Likewise.
25695 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25697 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25698 status flag options; simply omitting the option is equivalent and
25699 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25700 (keysym_table): Rename "num5numlock" to "numlock".
25701 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25702 can uniformly say that only the last of multiple `sendkey'
25703 invocations has any effect.
25704 * docs/grub.texi (sendkey): New section.
25706 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25708 * commands/i386/pc/sendkey.c (options): Fix three typos.
25710 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25712 Implement sendkey support.
25714 * commands/i386/pc/sendkey.c: New file.
25715 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25716 (sendkey_mod_SOURCES): New variable.
25717 (sendkey_mod_CFLAGS): Likewise.
25718 (sendkey_mod_LDFLAGS): Likewise.
25720 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25722 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25723 fix warnings from Autoconf.
25725 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25727 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25728 to avoid false positives with some assemblers that output things
25729 like "someprefix_func" as part of their output.
25731 2010-08-15 Robert Millan <rmh@gnu.org>
25733 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25735 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25736 grub_get_libzfs_handle() errors.
25738 2010-08-14 Robert Millan <rmh@gnu.org>
25740 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25741 filesystem is not ZFS.
25743 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25745 Fix for misspelled color names defaulting to black/black (bug
25746 reported by Doug Nazar)
25748 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25749 status to prototype.
25750 * normal/color.c (grub_parse_color_name_pair): Return failure
25752 (grub_env_write_color_normal): Ignore bad color names.
25753 (grub_env_write_color_highlight): Likewise.
25754 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25756 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25758 "shift" command support to GRUB script.
25760 * include/grub/script_sh.h (grub_script_shift): New prototype.
25761 * script/execute.c (grub_script_shift): New function.
25762 * script/main.c (grub_script_init): Register shift command.
25763 (grub_script_fini): Unregister shift command.
25764 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25766 * tests/grub_script_shift.in: New testcase.
25767 * conf/tests.rmk: Rules for new testcase.
25769 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25771 "continue" command support to GRUB script.
25773 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25774 (grub_script_break): Continue support.
25775 * script/main.c (grub_script_init): Register continue command.
25776 (grub_script_fini): Unregister continue command.
25778 * tests/grub_script_continue.in: New testcase.
25779 * conf/tests.rmk: Rules for new testcase.
25781 2010-08-12 BVK Chaitanya <bvk@dbook>
25783 "break" command support to GRUB script.
25785 * conf/common.rmk: Rule updates to grub-script-check.
25786 * include/grub/misc.h (grub_min): New function.
25787 * include/grub/script_sh.h (grub_script_init): New prototype.
25788 (grub_script_fini): New prototype.
25789 (grub_script_break): New prototype.
25790 * script/main.c (grub_script_init): New function.
25791 (grub_script_fini): New function.
25792 * script/execute.c (grub_script_break): New function.
25793 * normal/main.c: Calls to grub_script_{init,fini}.
25794 * util/grub-script-check.c (grub_script_break): New function.
25796 * tests/grub_script_break.in: New testcase.
25797 * conf/tests.rmk: Rules for new test case.
25799 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25801 Function parameters support to GRUB script.
25803 * script/yylex.l (VARIABLE): Regular expression update.
25804 * script/function.c (grub_script_function_call): Moved ...
25805 * script/execute.c (grub_script_function_call): ... to here.
25806 (grub_script_execute_arglist_to_argv): Removed.
25807 (grub_script_arglist_to_argv): New function.
25808 * script/argv.c: New file.
25809 (grub_script_argv_free): New function.
25810 (grub_script_argv_next): Likewise.
25811 (grub_script_argv_append): Likewise.
25812 (grub_script_argv_split_append): Likewise.
25813 * include/grub/script_sh.h (grub_script_argv): New struct.
25814 (grub_script_argv_free): New function.
25815 (grub_script_argv_next): Likewise.
25816 (grub_script_argv_append): Likewise.
25817 (grub_script_argv_split_append): Likewise.
25819 * conf/common.rmk (normal.mod): New source script/argv.c.
25821 * tests/grub_script_echo1.in: More tests.
25822 * tests/grub_script_vars1.in: Likewise.
25823 * tests/grub_script_functions.in: New test case.
25824 * conf/tests.rmk: Rules for new testcase.
25826 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25828 Remove grub_script_cmdblock struct.
25830 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25831 * script/parser.y: Likewise.
25832 * script/execute.c: Rename cmdblock suffix to cmdlist.
25833 * script/script.c: Likewise.
25834 * util/grub-script-check.c: Likewise.
25836 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25838 * .bzrignore: add grub-macho2img
25840 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25842 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25844 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25846 Remove the dump of sm712 initialisation sequence.
25848 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25849 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25850 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25851 (GRUB_VGA_CR_*): Added many registers.
25852 (GRUB_VGA_SR_*): Likewise.
25853 (GRUB_VGA_GR_*): Likewise.
25854 (grub_vga_write_arx): New function.
25855 (grub_video_hw_config): New struct.
25856 (grub_vga_set_geometry): New function.
25857 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25858 GRUB_PCI_CLASS_SUBCLASS_VGA.
25859 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25860 * video/sm712.c (grub_sm712_write_reg): New function
25861 (grub_sm712_read_reg): Likewise.
25862 (grub_sm712_sr_write): Likewise.
25863 (grub_sm712_gr_write): Likewise.
25864 (grub_sm712_cr_write): Likewise.
25865 (grub_sm712_write_arx): Likewise.
25866 (grub_sm712_cr_shadow_write): Likewise.
25867 (grub_sm712_write_dda_lookup): Likewise.
25868 (grub_video_sm712_setup): Initialise the video rather then
25869 blindly replay the dump.
25870 (main) [TEST]: Add a routine to be able to compile as standalone for
25872 * video/sm712_init.c (sm712_init): Removed.
25873 (sm712_sr_seq1): New array.
25874 (sm712_sr_seq2): Likewise.
25876 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25878 * include/grub/vga.h: Add missing grub/pci.h include.
25880 2010-08-10 Yves Blusseau <blusseau@zetam.org>
25882 * util/grub-macho2img.c (main): fix typo
25884 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25886 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
25887 (grub_vga_gr_read): Likewise.
25888 (grub_vga_cr_write): Likewise.
25889 (grub_vga_cr_read): Likewise.
25890 (grub_vga_sr_write): Likewise.
25891 (grub_vga_sr_read): Likewise.
25892 (grub_vga_palette_read): Likewise.
25893 (grub_vga_palette_write): Likewise.
25894 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
25895 (grub_sm712_sr_read): New function.
25896 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
25897 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
25899 2010-08-09 Robert Millan <rmh@gnu.org>
25901 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
25902 out unused variables on non-ZFS build.
25904 2010-08-08 Robert Millan <rmh@gnu.org>
25906 Fix path generation for sub-filesystems in ZFS.
25908 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
25911 2010-08-08 Robert Millan <rmh@gnu.org>
25913 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
25915 2010-08-08 Robert Millan <rmh@gnu.org>
25917 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
25918 exist, issue a proper error message (rely on `ls' for translated
25921 2010-08-08 Robert Millan <rmh@gnu.org>
25923 Fix grub-probe invocation.
25925 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
25927 2010-08-04 Robert Millan <rmh@gnu.org>
25929 * configure.ac: Remove checks for getfsstat() and getmntany().
25930 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
25931 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
25932 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
25933 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
25934 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
25936 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
25937 via find_mount_point_from_dir() and getfsstat() / getmntany().
25939 2010-08-04 Robert Millan <rmh@gnu.org>
25941 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25942 (grub_find_zpool_from_mount_point): Merge into ...
25943 (grub_find_zpool_from_dir): ... this.
25944 * kern/emu/misc.c: Likewise.
25947 (grub_make_system_path_relative_to_its_root): Replace
25948 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
25949 with grub_find_zpool_from_dir().
25950 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
25952 2010-08-04 Robert Millan <rmh@gnu.org>
25954 Support OpenSolaris in ZFS device resolution.
25956 * configure.ac: Check for getmntany().
25957 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
25958 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
25961 2010-08-03 Robert Millan <rmh@gnu.org>
25963 Fix grub-emu build.
25965 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
25966 * include/grub/emu/misc.h: ... here.
25968 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
25969 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
25971 * util/misc.c: Remove `<grub/util/libzfs.h>'.
25972 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
25973 (grub_get_libzfs_handle): Move to ...
25974 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
25975 (grub_get_libzfs_handle): ... here.
25977 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
25979 * script/execute.c (grub_script_execute_cmdline): Check for NULL
25980 as command name case.
25982 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
25984 * disk/raid.c (insert_array): Select unique numbers for named arrays
25985 as well, for use as keys in the disk cache.
25987 2010-08-01 Robert Millan <rmh@gnu.org>
25989 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
25990 kFreeBSD device name, except on ZFS where the filesystem label is
25992 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
25993 `/boot/zfs/zpool.cache'.
25994 Set mountfrom kernel variable using ${kfreebsd_device}.
25996 2010-08-01 Robert Millan <rmh@gnu.org>
25998 Make it even harder to use uninitialized `libzfs_handle' (and
25999 make the interface a bit simpler).
26001 * include/grub/util/misc.h (grub_util_init_libzfs)
26002 (libzfs_handle): Remove.
26003 (grub_get_libzfs_handle): New prototype.
26005 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26007 (grub_util_init_libzfs): Remove.
26008 (grub_get_libzfs_handle): New function.
26010 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26011 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26012 accessing `libzfs_handle' directly.
26014 2010-08-01 Robert Millan <rmh@gnu.org>
26016 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26017 (grub_find_zpool_from_mount_point): New function prototypes.
26019 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26020 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26022 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26023 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26024 `static' attribute.
26026 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26027 finding zpool from mount point into ...
26028 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26030 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26031 requested path is part of a ZFS pool, use
26032 grub_find_zpool_from_mount_point() to detect its filesystem name,
26033 and generate a path with `/fsname@path' syntax.
26035 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26037 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26038 (void) rather than () so that this is a proper prototype.
26040 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26042 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26044 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26046 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26047 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26049 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26051 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26053 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26055 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26057 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26059 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26060 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26061 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26062 disable gfxpayload.
26063 (Shell-like scripting): Add real content.
26064 (Serial terminal): Suggest `terminal_input serial; terminal_output
26065 serial' rather than putting the two commands on separate lines,
26066 since console input will be inoperative after the first command.
26067 (menuentry): Document --class, --users, and --hotkey options.
26068 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26069 Vladimir Serbinenko).
26071 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26072 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26074 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26076 2010-08-01 Robert Millan <rmh@gnu.org>
26078 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26079 (grub_find_zpool_from_mount_point): New function prototypes.
26081 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26082 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26084 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26085 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26086 `static' attribute.
26088 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26089 finding zpool from mount point into ...
26090 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26092 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26093 requested path is part of a ZFS pool, use
26094 grub_find_zpool_from_mount_point() to detect its filesystem name,
26095 and generate a path with `/fsname@path' syntax.
26097 2010-08-01 Robert Millan <rmh@gnu.org>
26099 Prevent accidental use of uninitialized libzfs_handle.
26101 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26102 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26103 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26105 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26107 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26108 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26110 2010-08-01 Robert Millan <rmh@gnu.org>
26112 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26114 2010-07-31 Robert Millan <rmh@gnu.org>
26116 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26118 2010-07-31 Robert Millan <rmh@gnu.org>
26120 * kern/emu/misc.c: Add missing license header.
26122 2010-07-31 Robert Millan <rmh@gnu.org>
26124 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26126 * include/grub/util/libnvpair.h: Include `<config.h>'.
26127 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26128 declaring libnvpair prototypes ourselves.
26129 * include/grub/util/libzfs.h: Include `<config.h>'.
26130 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26131 declaring libzfs prototypes ourselves.
26133 (libzfs_handle): Moved to ...
26134 * include/grub/util/misc.h (libzfs_handle): ... here.
26135 Include `<grub/util/libzfs.h>'.
26137 2010-07-30 Robert Millan <rmh@gnu.org>
26139 * include/grub/emu/misc.h: Add missing license header.
26141 2010-07-30 Robert Millan <rmh@gnu.org>
26143 Enable `grub-probe -t device' resolution on ZFS.
26145 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26146 * include/grub/util/libnvpair.h: New file.
26147 * include/grub/util/libzfs.h: New file.
26149 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26150 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26151 `<grub/util/libnvpair.h>'.
26152 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26154 (find_mount_point_from_dir): New static function.
26155 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26157 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26158 find_root_device_from_libzfs() before ressorting to find_root_device().
26160 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26162 * util/misc.c: Include `<grub/util/libzfs.h>'.
26163 (grub_util_init_libzfs): New function.
26164 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26165 [HAVE_LIBZFS] (fini_libzfs): New static function.
26166 (grub_util_init_libzfs): New function.
26167 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26169 2010-07-30 Robert Millan <rmh@gnu.org>
26171 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26172 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26173 `warn_unused_result' attribute.
26174 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26175 (grub_xasprintf, grub_xvasprintf): Likewise.
26176 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26178 2010-07-29 Robert Millan <rmh@gnu.org>
26180 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26181 (probe): Handle `PRINT_FS_LABEL'.
26182 (main): Handle `-t fs_label'.
26184 2010-07-29 Robert Millan <rmh@gnu.org>
26186 * configure.ac: Remove grub-mkisofs checks.
26188 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26190 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26191 Reported by: Lennart Sorensen.
26193 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26195 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26196 prior to terminal_input/terminal_output separation. It's been over 1.5
26197 years and those versions weren't widely deployed.
26199 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26201 * disk/raid.c (insert_array): Don't count named arrays when looking
26202 for unused array numbers.
26203 Reported and tested by: Michael Guntsche.
26205 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26207 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26208 implementation of this so that grub-emu links again, with a note
26209 that this should support hotplugging in the future.
26211 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26213 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26215 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26217 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26219 (grub_loopback_close): Remove empty function.
26220 (grub_loopback_dev): Remove close method.
26222 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26224 Disable EFI cursor when the EFI console becomes inactive.
26226 * term/efi/console.c (grub_efi_console_init): New function.
26227 (grub_efi_console_fini): New function.
26228 (grub_console_term_output): Register init and fini methods.
26230 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26232 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26235 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26237 * disk/loopback.c (grub_loopback): Replace filename with file.
26238 (delete_loopback): Handle new semantics.
26239 (grub_cmd_loopback): Likewise.
26240 (grub_loopback_iterate): Likewise.
26241 (grub_loopback_close): Likewise.
26243 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26245 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26247 Reported by: Tito Keitel.
26249 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26251 * docs/grub.texi (Naming convention): Document new naming convention.
26253 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26254 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26256 Generate device.map in something closer to the old ordering.
26258 * util/deviceiter.c (struct device): New declaration.
26259 (compare_file_names): Rename to ...
26260 (compare_devices): ... this. Sort by kernel name in preference to
26261 the stable by-id name, but keep the latter as a fallback comparison.
26262 Update header comment.
26263 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26264 of `struct device' rather than of plain file names.
26266 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26268 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26271 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26273 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26275 (setv1table): Likewise.
26277 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26279 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26280 removing the homehost if present.
26281 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26282 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26283 removing the homehost if present.
26284 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26286 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26288 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26289 parameter. Set its pointer target to 0.
26290 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26291 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26292 `data_offset' value from the superblock for 1.x metadata.
26293 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26294 data on the device.
26295 (insert_array): Record the start sector of data on the device.
26296 (grub_raid_register): Pass start_sector parameters to
26297 grub_raid_list->detect and insert_array.
26298 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26300 (struct grub_raid): Add start_sector parameter to `detect'.
26302 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26303 __attribute__ ((packed)), leaving a comment.
26304 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26305 (grub_mdraid_detect_09): ... here and ...
26306 (grub_mdraid_detect_1x): ... here.
26308 2010-07-20 Peter Henn <peter.henn@web.de>
26310 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26311 chunk size and disk size, which are already given as sector counts
26312 as distinct from the 0.90 units. Fetch the correct device number
26313 from the role table instead of using the table index.
26315 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26317 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26318 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26319 (WriteMostly1): New macro.
26320 Set array->name to NULL for metadata format 0.90. Add support for
26321 metadata 1.x. Fix some comments.
26322 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26324 * util/getroot.c (grub_util_get_grub_dev): Add support for
26325 /dev/md/name style devices.
26327 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26329 * .bzrignore: Ignore 20_linux_xen.
26331 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26333 * util/import_unicode.py: Remove unnecessary imports.
26335 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26337 Hotplugging and USB hub support.
26339 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26340 (grub_ohci): Likewise.
26341 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26342 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26343 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26344 (GRUB_OHCI_CTRL_EDS): Likewise.
26345 (GRUB_OHCI_BULK_EDS): Likewise.
26346 (GRUB_OHCI_TDS): Likewise.
26347 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26348 (grub_ohci_ed_phys2virt): New function.
26349 (grub_ohci_virt_to_phys): Likewise.
26350 (grub_ohci_td_phys2virt): Likewise.
26351 (grub_ohci_td_virt2phys): Likewise.
26352 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26354 (grub_ohci_find_ed): New function.
26355 (grub_ohci_alloc_td): Likewise.
26356 (grub_ohci_free_td): Likewise.
26357 (grub_ohci_free_tds): Likewise.
26358 (grub_ohci_transfer): Use previously allocated memory.
26359 (grub_ohci_portstatus): Reset status changed bit.
26360 (grub_ohci_detect_dev): Supply status changed.
26361 (grub_ohci_fini_hw): Free memory.
26362 (grub_ohci_restore_hw): Reallocate memory.
26363 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26364 Reset status change.
26365 (grub_uhci_detect_dev): Supply status_change.
26366 * bus/usb/usb.c (attach_hooks): New var.
26367 (grub_usb_device_attach): New function.
26368 (grub_usb_register_attach_hook_class): Likewise.
26369 (grub_usb_unregister_attach_hook_class): Likewise.
26370 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26371 (grub_usb_add_hub): Reset connection changed bit.
26372 (attach_root_port): New function.
26373 (grub_usb_root_hub): Likewise.
26374 (poll_nonroot_hub): Likewise.
26375 (grub_usb_poll_devices): Likewise.
26376 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26377 * disk/usbms.c (grub_usbms_open): Use device hooks.
26378 (grub_usbms_iterate) :Poll devices.
26379 (grub_usbms_finddevs): Split into ...
26380 (grub_usbms_attach): ... this ...
26381 (grub_usbms_attach): ... and this.
26382 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26384 (grub_usb_interface): New fields attached and detach_hook.
26385 (grub_usb_attach_hook_class): New type.
26386 (grub_usb_attach_desc): New struct.
26387 (grub_usb_register_attach_hook_class): New function.
26388 (grub_usb_unregister_attach_hook_class): Likewise.
26389 (grub_usb_poll_devices): Likewise.
26390 (grub_usb_device_attach): Likewise.
26391 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26392 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26394 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26396 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26397 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26398 delta determination style. Works with most NetBSD partitions too.
26400 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26402 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26403 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26405 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26407 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26409 2010-07-14 Anton Blanchard <anton@samba.org>
26411 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26414 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26416 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26418 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26420 * kern/partition.c (grub_partition_check_containment): New function to
26421 check that a partition is physically contained in a parent. Since
26422 offsets are relative (and non-negative), this reduces to checking that
26423 the partition ends before its parent.
26424 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26425 (grub_partition_iterate): Likewise.
26426 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26428 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26429 partitions that start before their parent, and add debug printfs.
26431 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26433 * Makefile.in (.SUFFIX): Spell correctly, as ...
26434 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26435 bare module name without `.mod', e.g. `test') tried to invoke a
26438 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26440 * README: Point to the Info manual.
26442 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26444 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26445 2nd superblock position from partition size.
26447 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26449 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26450 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26451 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26454 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26456 Restructure SCSI .id handling.
26457 Reported and tested by: Aleš Nesrsta.
26459 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26460 (grub_atapi_dev): Changed .name to "ata". New field .id.
26461 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26462 (grub_usbms_dev): New field .id.
26463 * disk/scsi.c (grub_scsi_iterate): Generate name.
26464 (grub_scsi_open): Parse name.
26465 * include/grub/scsi.h (grub_make_scsi_id): New function.
26466 (grub_scsi_dev): Change iterate and open to number instead of naming
26467 busses. All users updated.
26468 (grub_scsi): Remove name. Add .bus.
26470 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26472 * commands/help.c (grub_cmd_help): Fix a typo.
26474 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26476 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26477 Reported and tested by: Colin Watson.
26479 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26481 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26484 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26486 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26488 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26490 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26493 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26495 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26496 and disk/raid6_recover.c.
26497 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26498 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26500 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26502 * term/gfxterm.c (repaint_schedulded): Rename to ...
26503 (repaint_scheduled): ... this. Update all callers.
26504 (repaint_was_schedulded): Rename to ...
26505 (repaint_was_scheduled): ... this. Update all callers.
26507 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26509 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26510 which we expect to be handled by upper layers.
26512 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26514 * bus/usb/usbhub.c: #include time.h header.
26516 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26518 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26519 entry_name also for entries without stat blocks (e.g. ".."); fixes
26520 corruption of the first entry in a directory.
26522 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26524 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26525 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26526 doesn't work otherwise.
26528 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26530 * docs/grub.texi (Features): Update list of supported file systems.
26531 (GNU/Linux): Update for GRUB 2.
26532 (Serial terminal): Remove mention of --disable-serial, which was a
26533 GRUB Legacy configure option. Update instructions to use
26534 `terminal_input' and `terminal_output' rather than `terminal'.
26535 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26536 configuration' and `Installing GRUB using grub-install'.
26537 (Menu entry editor): Update for GRUB 2.
26538 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26539 Document new -a, -u, and -v options.
26540 (initrd): New section.
26541 (initrd16): New section.
26542 (linux): New section.
26543 (linux16): New section.
26544 (search): The `var' argument to `--set' is optional.
26545 (GRUB only offers a rescue shell): Go into a little more detail on
26548 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26550 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26552 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26554 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26555 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26557 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26559 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26560 install_prefix, in line with install_dos_part and install_bsd_part.
26561 Add new prefix variable, which is copied to install_prefix after
26562 comparing core.img in memory with the one read from disk in the
26563 no-embedding case, and use that rather than overwriting
26564 install_prefix immediately when installing to a partition.
26565 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26568 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26570 * configure.ac: Avoid == in test command, it's not portable.
26571 * util/grub.d/30_os-prober.in: Likewise.
26573 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26575 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26577 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26579 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26580 multiple (top-level) partmaps.
26582 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26584 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26585 Reported by: Tino Keitel.
26587 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26589 Bidi and diacritics support.
26591 * Makefile.in (widthspec.bin): New target.
26592 (widthspec.h): Likewise.
26593 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26594 * autogen.sh: Generate unidata.c.
26595 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26596 * commands/ls.c (grub_ls_list_devices): Likewise.
26597 (grub_ls_list_files): Likewise.
26598 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26599 (grub_mini_cmd_lsmod): Likewise.
26600 * commands/read.c: Likewise.
26601 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26602 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26603 * lib/arg.c (grub_arg_show_help): Likewise.
26604 * lib/crypto.c (grub_password_get): Likewise.
26605 * normal/auth.c (grub_username_get): Likewise.
26606 * normal/misc.c (grub_normal_print_device_info): Likewise.
26607 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26608 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26609 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26610 (normal/charset.c_DEPENDENCIES): New variable.
26611 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26612 (pkglib_MODULES): Remove charset.mod.
26613 (charset_mod_SOURCES): Removed.
26614 (charset_mod_CFLAGS): Likewise.
26615 (charset_mod_LDFLAGS): Likewise.
26616 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26617 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26619 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26620 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26621 (kernel_img_HEADERS): Add terminfo.h.
26622 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26623 Fill ->font. Reverse ascii bitmaps.
26624 (grub_font_get_xheight): New function.
26625 * font/font.c (grub_font_get_string_width): Moved from here ...
26626 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26627 * font/font.c (grub_font_draw_string): Moved from here ...
26628 * gfxmenu/font.c (grub_font_draw_string): ... here.
26629 * font/font.c (grub_font_dup_glyph): New function.
26630 (grub_font_blit_glyph): Likewise.
26631 (grub_font_blit_glyph_mirror): Likewise.
26632 (blit_comb): Likewise.
26633 (grub_font_construct_dry_run): Likewise.
26634 (grub_font_get_constructed_device_width): Likewise.
26635 (grub_font_construct_glyph): Likewise.
26636 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26637 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26638 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26639 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26640 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26641 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26642 (grub_font_get_xheight): New proto.
26643 (grub_font_get_constructed_device_width): Likewise.
26644 (grub_font_construct_glyph): Likewise.
26645 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26646 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26647 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26648 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26649 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26650 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26651 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26652 (grub_console_getcharwidth): Likewise.
26653 * include/grub/misc.h (grub_xputs): New proto.
26654 (grub_puts): Inlined.
26655 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26656 (grub_normal_get_line_counter): Removed.
26657 (grub_install_newline_hook): Likewise.
26658 (grub_normal_get_char_counter): New proto.
26659 (grub_normal_reset_more): Likewise.
26660 (grub_xputs_normal): Likewise.
26661 * include/grub/powerpc/ieee1275/console.h: Removed.
26662 * include/grub/sparc64/ieee1275/console.h: Likewise.
26663 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26664 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26665 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26666 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26667 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26668 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26669 (grub_term_input): Pass reference to self. All users updated.
26670 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26671 Pass reference to self. New fields normal_color, highlight_color and
26672 data. All users updated.
26673 (grub_putchar): Removed.
26674 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26675 (grub_unicode_estimate_width): New function.
26676 (grub_term_getcharwidth): Add defaults.
26677 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26678 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26679 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26680 (grub_cls): Remove EXPORT_FUNC.
26681 (grub_setcolorstate): Inline.
26682 (grub_newline_hook): Removed.
26683 * include/grub/terminfo.h: Rewritten. All users updated.
26684 * include/grub/unicode.h: New file.
26685 * include/grub/video.h (grub_video_signed_rect): New type.
26686 * kern/emu/console.c (grub_console_highlight_color): Removed.
26687 (grub_console_normal_color): Likewise.
26688 (grub_console_standard_color): Made static.
26689 (grub_ncurses_putchar): Remove mapping.
26690 (grub_ncurses_getcharwidth): Removed.
26691 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26692 (grub_ncurses_setcolor): Removed.
26693 (grub_ncurses_getcolor): Likewise.
26694 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26695 (grub_console_putchar): ... this.
26696 (grub_console_putchar): Handle argument difference.
26697 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26698 console_init_early and console_init_lately.
26699 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26700 * kern/misc.c (grub_puts): Removed.
26701 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26702 (grub_vsnprintf_real): Remove str = NULL support.
26703 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26704 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26705 * kern/term.c (grub_putcode): Renamed to ...
26706 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26707 (grub_putchar): Removed.
26708 (grub_xputs_dumb): New function.
26709 (grub_xputs): New variable.
26710 * lib/charset.c: Move from here ...
26711 * normal/charset.c: ... to here.
26712 (grub_ucs4_to_utf8): New function.
26713 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26714 (join_types): New variable.
26715 (unpack_join): New function.
26716 (bidi_types): New variable.
26717 (unpack_bidi): New function.
26718 (get_bidi_type): Likewise.
26719 (get_join_type): Likewise.
26720 (is_mirrored): Likewise.
26721 (grub_unicode_get_comb_type): Likewise.
26722 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26723 (is_type_after): Likewise.
26724 (grub_unicode_aglomerate_comb): Likewise.
26725 (bidi_line_wrap): Likewise.
26726 (grub_bidi_line_logical_to_visual): Likewise.
26727 (grub_bidi_logical_to_visual): Likewise.
26728 (grub_unicode_mirror_code): Likewise.
26729 (grub_unicode_shape_code): Likewise.
26730 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26731 Don't use grub_putchar.
26732 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26733 (grub_normal_reader_init): Likewise.
26734 (grub_xputs_saved): New variable.
26735 (GRUB_MOD_INIT): Set grub_xputs.
26736 (GRUB_MOD_FINI): Restore grub_xputs.
26737 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26738 (menu_init): Avoid printing gfxmenu error.
26739 (show_menu): Use grub_normal_get_char_counter.
26740 * normal/menu_entry.c (update_screen): Fix out-of-array.
26741 (complete): Avoid NULL dereferencing.
26742 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26743 * normal/menu_text.c (print_spaces): Removed.
26744 (grub_print_ucs4): Likewise.
26745 (grub_print_message_indented): Use grub_print_ucs4.
26746 (print_message): Use grub_putcode.
26747 (print_entry): Hanlde diacritics.
26748 * normal/term.c (term_state): New type.
26749 (grub_more_lines): Removed.
26750 (term_states): New variable.
26751 (grub_normal_line_counter): Renamed to ..
26752 (grub_normal_char_counter): ...this. All users updated.
26753 (grub_normal_get_line_counter): Renamed to ...
26754 (grub_normal_get_char_counter): ... this.
26755 (grub_normal_reset_more): New function.
26756 (process_newline): Removed.
26757 (print_more): New function.
26758 (grub_install_newline_hook): Removed.
26759 (map_code): New function.
26760 (grub_puts_terminal): Use grub_print_ucs4.
26761 (putglyph): New function.
26762 (putcode_real): Likewise.
26763 (grub_putcode): Use putcode_real.
26764 (get_maxwidth): New function.
26765 (get_startwidth): Likewise.
26766 (print_ucs4_terminal): Likewise.
26767 (find_term_state): Likewise.
26768 (put_glyphs_terminal): Likewise.
26769 (print_backlog): Likewise.
26770 (print_ucs4_real): Likewise.
26771 (grub_print_ucs4): Likewise.
26772 (grub_xputs_normal): Likewise.
26773 * term/efi/console.c (grub_console_putchar): Output diacritics.
26774 (grub_console_getcharwidth): Removed.
26775 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26776 * term/gfxterm.c (clear_char): Free chars.
26777 (scroll_up): Avoid leaking memory.
26778 (grub_gfxterm_putchar): Support diacritics.
26779 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26780 * term/i386/pc/console.c (grub_console_term_output): Declare as
26781 GRUB_TERM_CODE_TYPE_VGA.
26782 * term/i386/pc/vga.c (grub_vga_term): Declare as
26783 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26784 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26785 GRUB_TERM_CODE_TYPE_VGA.
26786 * term/i386/vga_common.c (map_char): Removed.
26787 (grub_console_putchar): Likewise.
26788 (grub_console_getcharwidth): Likewise.
26789 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26790 (colors): Reordered to match terminfo.
26791 (grub_ofconsole_normal_color): Removed.
26792 (grub_ofconsole_writeesc): Likewise.
26793 (grub_ofconsole_highlight_color): Likewise.
26794 (grub_ofconsole_getcharwidth): Likewise.
26795 (grub_ofconsole_setcolorstate): Likewise.
26796 (grub_ofconsole_setcolor): Likewise.
26797 (grub_ofconsole_getcolor): Likewise.
26798 (grub_ofconsole_readkey): Renamed to ...
26799 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26801 (grub_ofconsole_checkkey): Removed.
26802 (grub_ofconsole_getkey): Likewise.
26803 (grub_ofconsole_getxy): Likewise.
26804 (grub_ofconsole_gotoxy): Likewise.
26805 (grub_ofconsole_cls): Likewise.
26806 (grub_ofconsole_refresh): Likewise.
26807 (grub_ofconsole_terminfo_input): New struct.
26808 (grub_ofconsole_terminfo_output): Likewise.
26809 (grub_ofconsole_term_input): Use terminfo.
26810 (grub_ofconsole_term_output): Likewise.
26811 (grub_console_init): Split into ...
26812 (grub_console_init_early): ...this and ...
26813 (grub_console_init_lately): ...this. Use terminfo.
26814 (grub_ofconsole_putchar): Renamed to ...
26815 (put): ... this. Remove mapping.
26816 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26817 * term/serial.c: Simplify using terminfo.
26820 (keep_track): Likewise.
26821 (registered): Likewise.
26822 (input_buf): Likewise.
26823 (npending): Likewise.
26824 (serial_translate_key_sequence): Likewise.
26825 (fill_input_buf): Likewise.
26826 (grub_serial_checkkey): Likewise.
26827 (grub_serial_getkey): Likewise.
26828 (grub_serial_getxy): Likewise.
26829 (grub_serial_gotoxy): Likewise.
26830 (grub_serial_putchar): Likewise.
26831 (grub_serial_cls): Likewise.
26832 (grub_serial_setcolorstate): Likewise.
26833 (grub_serial_setcursor): Likewise.
26834 (serial_hw_init): Use serial_hw_fetch.
26835 (grub_serial_terminfo_input): New variable.
26836 (grub_serial_terminfo_output): Likewise.
26837 (grub_serial_term_input): Use terminfo.
26838 (grub_serial_term_output): Likewise.
26839 * term/terminfo.c (putstr): Use put.
26840 (grub_terminfo_all_free): New function
26841 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26842 (grub_terminfo_output_register): New function.
26843 (grub_terminfo_output_unregister): Likewise.
26844 (grub_terminfo_getxy): Likewise.
26845 (grub_terminfo_readkey): Likewise.
26846 (grub_terminfo_checkkey): Likewise.
26847 (grub_terminfo_getkey): Likewise.
26848 (grub_terminfo_input_init): Likewise.
26849 (print_terminfo): Likewise.
26850 (grub_cmd_terminfo): Handle encoding.
26851 (grub_terminfo_gotoxy): Track position.
26852 (grub_terminfo_cls): Likewise.
26853 (grub_terminfo_putchar): Likewise.
26854 (grub_terminfo_setcolorstate): Handle colors
26855 (grub_terminfo_cursor_on): This ...
26856 (grub_terminfo_cursor_off): ... and this merged into ...
26857 (grub_terminfo_setcursor): ... this.
26858 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26859 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26860 * unicode/BidiMirroring.txt: Likewise.
26861 * unicode/UnicodeData.txt: Likewise.
26862 * unicode/COPYING: Likewise.
26863 * util/grub-editenv.c (grub_putchar): Removed.
26864 (grub_xputs_real): New function.
26865 (grub_xputs): New variable.
26866 * util/grub-fstest.c (grub_putchar): Removed.
26867 (grub_xputs_real): New function.
26868 (grub_xputs): New variable.
26869 * util/grub-mkdevicemap.c (grub_putchar): Removed.
26870 (grub_xputs_real): New function.
26871 (grub_xputs): New variable.
26872 * util/grub-probe.c (grub_putchar): Removed.
26873 (grub_xputs_real): New function.
26874 (grub_xputs): New variable.
26875 * util/grub-script-check.c (grub_putchar): Removed.
26876 (grub_xputs_real): New function.
26877 (grub_xputs): New variable.
26878 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
26879 (grub_xputs_real): New function.
26880 (grub_xputs): New variable.
26881 * util/import_unicode.py: New file.
26882 * util/grub-mkfont.c (ft_errmsgs): New array.
26883 (grub_glyph_info): Make bitmap a pointer.
26884 (file_formats): New type WIDTH_SPEC.
26885 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
26886 (options): Add width-spec.
26888 (add_char): Renamed to ...
26889 (add_glyph): ... this.
26890 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
26891 (glyph_replace): New type.
26892 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
26893 (add_char): New function.
26894 (add_subst): Likewise.
26895 (process_cursive): Likewise.
26896 (add_font): Handle GSUB.
26897 (write_font_width_spec): New function.
26898 (main): Sort glyphs.
26899 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
26900 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
26901 * kern/term.c (grub_cls): Moved from here...
26902 * normal/term.c (grub_cls): ... here.
26904 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26906 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
26907 suitable for using within the format argument of printf when
26908 converting grub_size_t.
26909 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
26910 "x" to convert grub_size_t arguments.
26912 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26914 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
26916 (list_get_minimal_size): Take selection box into account.
26918 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26920 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
26923 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26925 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
26926 devices when iterating over /dev/disk/by-id; they will be handled
26927 later if appropriate, which they aren't always (e.g. LVM).
26929 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26931 * include/grub/misc.h (grub_reboot): Declare as noreturn.
26932 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
26934 (grub_halt): Likewise.
26935 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
26937 (grub_halt): Don't return, even if all of shut-down, power-off, and
26940 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26942 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
26943 arguments, not three.
26945 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26947 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
26948 * util/grub.d/10_linux.in: Use it to check for LVM, so that
26949 LVM-on-RAID is handled correctly.
26951 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26953 * docs/grub.texi (Changes from GRUB Legacy): New section.
26954 (Future): Fix typo.
26956 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26958 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
26959 grub.d/README accidentally ends up executable for one reason or
26960 another. Ignore it.
26962 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26964 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
26965 (gpt_partition_map_iterate): Support non-512B sectors.
26967 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26969 * kern/efi/init.c (grub_efi_init): Disable watchdog.
26970 Tested by: Seth Goldberg.
26972 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26974 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
26975 Properly align mbi.
26976 Reported by: Seth Goldberg.
26978 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26980 * util/grub-mkrescue.in: Avoid module duplication.
26982 2010-07-01 Sean Finney <seanius@seanius.net>
26984 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
26986 2010-07-01 Sean Finney <seanius@seanius.net>
26988 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
26990 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26992 * disk/lvm.c (grub_lvm_checkvalue): New function.
26993 (grub_lvm_check_flag): Likewise.
26995 2010-07-01 Robert Millan <rmh@gnu.org>
26997 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
26998 Support 'p' as partition separator on kernel of FreeBSD (used
27000 (grub_util_biosdisk_get_grub_dev): Likewise.
27002 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27004 Yeeloong firmware port.
27006 * boot/mips/yeeloong/fwstart.S: New file.
27007 * bus/cs5536.c (gpiodump): New const.
27008 (set_io_space): New function.
27009 (set_iod): Likewise.
27010 (set_p2d): Likewise.
27011 (grub_cs5536_init_geode): Likewise.
27012 * commands/mips/yeeloong/lsspd.c: New file.
27013 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27014 (serial_mod_SOURCES): New variable.
27015 (serial_mod_CFLAGS): Likewise.
27016 (serial_mod_LDFLAGS): Likewise.
27017 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27018 term/terminfo.c and term/tparm.c.
27019 (pkglib_IMAGES): Add fwstart.img.
27020 (fwstart_img_SOURCES): New variable.
27021 (fwstart_img_CFLAGS): Likewise.
27022 (fwstart_img_ASFLAGS): Likewise.
27023 (fwstart_img_LDFLAGS): Likewise.
27024 (fwstart_img_FORMAT): Likewise.
27025 (pkglib_MODULES): Add lsspd.mod.
27026 (lsspd_mod_SOURCES): New variable.
27027 (lsspd_mod_CFLAGS): Likewise.
27028 (lsspd_mod_LDFLAGS): Likewise.
27029 (pkglib_MODULES): Add halt.mod.
27030 (halt_mod_SOURCES): New variable.
27031 (halt_mod_CFLAGS): Likewise.
27032 (halt_mod_LDFLAGS): Likewise.
27033 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27034 (serial_mod_SOURCES): Removed.
27035 (serial_mod_CFLAGS): Likewise.
27036 (serial_mod_LDFLAGS): Likewise.
27037 * disk/ata.c (check_device): New function.
27038 (grub_ata_device_initialize): Use check_device.
27039 (grub_ata_iterate): Recheck devices.
27040 (grub_ata_open): Likewise.
27041 (grub_atapi_iterate): Likewise.
27042 (grub_atapi_open): Likewise.
27043 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27044 (GRUB_ATA_CH1_PORT1): Likewise.
27045 (GRUB_ATA_CH0_PORT2): Likewise.
27046 (GRUB_ATA_CH1_PORT2): Likewise.
27047 * include/grub/mips/loongson.h: New file.
27048 * include/grub/mips/yeeloong/ec.h: Likewise.
27049 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27050 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27051 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27052 * include/grub/misc.h (grub_halt): Declare as noreturn.
27053 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27054 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27055 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27056 (UART_ENABLE_DTRRTS): Likewise.
27057 (UART_ENABLE_MODEM): Removed.
27058 (UART_ENABLE_OUT2): New const.
27059 * include/grub/term.h (grub_term_register_input_active): New function.
27060 (grub_term_register_output_active): Likewise.
27061 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27063 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27064 (init_pci): New function.
27065 (grub_machine_init): Execute platform init when firmware. Init serial.
27066 (grub_halt): Implement.
27067 (grub_exit): Likewise.
27068 (grub_reboot): Likewise.
27069 * term/serial.c (serial_hw_init): Update macros.
27070 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27071 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27072 (image_targets): New target mipsel-yeeloong-flash.
27073 (generate_image): Support IMAGE_YEELOONG_FLASH.
27074 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27075 (grub_video_sm712_setup): Init card.
27076 (grub_video_sm712_set_palette): Removed.
27077 * video/sm712_init.c: New file.
27079 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27081 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27082 PATH when running help2man and then run it on the unadorned
27083 executable names, rather than passing $(builddir)/* paths to
27084 help2man. This avoids the build directory ending up in generated
27087 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27089 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27090 to avoid accidents when debugging with 'sh -x'.
27091 * util/grub-mkrescue.in: Likewise.
27092 * util/grub.d/00_header.in: Likewise.
27093 * util/grub.d/10_hurd.in: Likewise.
27094 * util/grub.d/10_kfreebsd.in: Likewise.
27095 * util/grub.d/10_linux.in: Likewise.
27096 * util/grub.d/10_netbsd.in: Likewise.
27097 * util/grub.d/10_windows.in: Likewise.
27098 * util/grub.d/20_linux_xen.in: Likewise.
27099 * util/grub.d/30_os-prober.in: Likewise.
27100 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27102 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27104 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27105 last character in the buffer.
27106 Reported by: Vladimir Serbinenko.
27108 2010-06-29 Robert Millan <rmh@gnu.org>
27110 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27111 (Command-line and menu entry commands): Document `badram' command.
27113 2010-06-28 Robert Millan <rmh@gnu.org>
27115 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27116 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27117 command using ${GRUB_BADRAM} as parameter.
27119 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27121 * docs/grub.texi (Device map): New section.
27122 (Themes): New section (stub).
27123 * Makefile.in (docs/grub.info): The info documentation now builds
27124 without errors. Make sure it stays that way.
27126 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27128 Use normal parser for menu entries.
27129 Reported by: Thomas Frauendorfer
27131 * include/grub/parser.h (grub_parser_execute): Don't export.
27132 * normal/menu.c (grub_menu_execute_entry_real): New function.
27133 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27135 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27137 * docs/grub.texi (Embedded configuration): New section (replacing
27138 old "Preset Menu" stub).
27139 (Images): New section.
27140 (configfile): Note that any menu entries defined in `file' are shown
27143 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27145 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27147 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27149 * util/grub-install.in: Add --debug-image= option.
27151 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27153 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27156 * util/deviceiter.c (check_device): Rename to ...
27157 (check_device_readable_unique): ... this. Update all callers.
27158 Maintain and check a list of which devices (by canonicalized name)
27159 have already been seen.
27160 (clear_seen_devices): New function.
27161 (compare_file_names) [__linux__]: New function.
27162 (grub_util_iterate_devices): Clear the list of seen devices on exit
27163 and (just in case) on entry.
27164 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27165 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27166 seen-devices list, superseded by general code in check_device.
27168 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27170 * commands/cat.c (options): New variable.
27171 (grub_cmd_cat): Parse options. If the --dos option is given, print
27172 DOS-style "\r\n" line endings as simple newlines (Debian bug
27174 (GRUB_MOD_INIT): Use extcmd.
27175 (GRUB_MOD_FINI): Likewise.
27176 * docs/grub.texi (cat): Document --dos.
27178 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27180 XEN with Linux grub-mkconfig support.
27182 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27183 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27184 GRUB_CMDLINE_XEN_DEFAULT.
27185 * util/grub.d/20_linux_xen.in: New file.
27187 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27189 Initialise VGA video on qemu ourselves.
27191 * boot/i386/qemu/boot.S: Don't call 0xc000.
27192 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27193 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27194 (kernel_img_HEADERS): Add pci.h.
27195 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27196 * configure.ac: Force unifont on qemu and yeeloong.
27197 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27198 (grub_vga_palette_write): Use correct register.
27199 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27200 Call grub_qemu_init_cirrus.
27201 * kern/i386/qemu/init.c: New file.
27202 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27204 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27206 2010-06-26 Pavel Roskin <proski@gnu.org>
27208 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27211 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27213 * docs/grub.texi (Simple configuration): Explain that
27214 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27215 set to `true' to disable their respective recovery entries, not
27218 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27220 Make the `source' command slightly faster.
27222 * normal/main.c (grub_normal_execute): Don't re-read list files when
27225 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27227 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27228 field position and mask size to red fields from mode_info, not
27230 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27231 Remove redundant tag->common.framebuffer_type assignment.
27232 Reported by: Seth Goldberg.
27234 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27236 Sync up other versions of the Linux loader with Robert Millan's
27237 change of 2010-01-09, "Make loader output a bit more user-friendly".
27239 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27241 (grub_cmd_linux): Likewise.
27242 (grub_cmd_initrd): Likewise.
27243 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27244 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27246 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27248 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27249 larger than MEMORY_MAP_SIZE.
27251 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27253 Fix parallel build.
27255 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27257 * script/parser.y: #include grub_script.tab.h header.
27259 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27261 Support >3GiB and <16MiB RAM in i386-qemu.
27263 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27264 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27265 (grub_lower_mem): Removed.
27266 (grub_upper_mem): Likewise.
27267 (mem_size): Made static.
27268 (above_4g): New variable.
27269 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27270 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27273 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27275 Cirrus 5446 and Bochs video cards support.
27277 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27279 (video_cirrus_mod_SOURCES): New variable.
27280 (video_cirrus_mod_CFLAGS): Likewise.
27281 (video_cirrus_mod_LDFLAGS): Likewise.
27282 (video_bochs_mod_SOURCES): Likewise.
27283 (video_bochs_mod_CFLAGS): Likewise.
27284 (video_bochs_mod_LDFLAGS): Likewise.
27285 * include/grub/vga.h: New file.
27286 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27287 (grub_video_fb_set_page_t): New type.
27288 (grub_video_fb_setup): New prototype.
27289 (grub_video_fb_swap_buffers): Likewise.
27290 (grub_video_fb_get_info_and_fini): Likewise.
27291 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27292 (CRTC_DATA_PORT): Likewise.
27293 (CRTC_CURSOR): Likewise.
27294 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27295 (CRTC_CURSOR_ADDR_LOW): Likewise.
27296 (CRTC_CURSOR_DISABLE): Likewise.
27297 (update_cursor): Use grub_vga_cr_write.
27298 (grub_vga_text_setcursor): Likewise.
27299 * video/bochs.c: New file.
27300 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27301 (palette): Likewise.
27302 (palette_size): Likewise.
27303 (framebuffer): New variable.
27304 (grub_video_fb_init): Use 'framebuffer'.
27305 (grub_video_fb_fini): Likewise.
27306 (grub_video_fb_get_info): Likewise.
27307 (grub_video_fb_get_palette): Likewise.
27308 (grub_video_fb_set_palette): Likewise.
27309 (grub_video_fb_set_viewport): Likewise.
27310 (grub_video_fb_get_viewport): Likewise.
27311 (grub_video_fb_map_color): Likewise.
27312 (grub_video_fb_map_rgb): Likewise.
27313 (grub_video_fb_map_rgba): Likewise.
27314 (grub_video_fb_unmap_color): Likewise.
27315 (grub_video_fb_unmap_color_int): Likewise.
27316 (grub_video_fb_fill_rect): Likewise.
27317 (grub_video_fb_blit_bitmap): Likewise.
27318 (grub_video_fb_blit_render_target): Likewise.
27319 (grub_video_fb_scroll): Likewise.
27320 (grub_video_fb_create_render_target): Likewise.
27321 (grub_video_fb_doublebuf_blit_init): Likewise.
27322 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27323 (doublebuf_pageflipping_update_screen): New function.
27324 (doublebuf_pageflipping_init): Likewise.
27325 (grub_video_fb_setup): Likewise.
27326 (grub_video_fb_swap_buffers): Likewise.
27327 (grub_video_fb_get_info_and_fini): Likewise.
27328 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27330 (doublebuf_pageflipping_commit): Restructured into ...
27331 (doublebuf_pageflipping_set_page): ... this.
27332 (doublebuf_pageflipping_update_screen): Removed.
27333 (doublebuf_pageflipping_init): Likewise.
27334 (double_buffering_init): Likewise.
27335 (grub_video_vbe_setup): Use grub_video_fb_setup.
27336 (grub_video_vbe_swap_buffers): Removed.
27337 (grub_video_vbe_set_active_render_target): Likewise.
27338 (grub_video_vbe_get_active_render_target): Likewise.
27339 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27340 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27341 grub_video_fb_set_active_render_target and
27342 grub_video_fb_get_active_render_target.
27343 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27344 (SEQUENCER_DATA_PORT): Likewise.
27345 (MAP_MASK_REGISTER): Likewise.
27346 (CRTC_ADDR_PORT): Likewise.
27347 (CRTC_DATA_PORT): Likewise.
27348 (START_ADDR_HIGH_REGISTER): Likewise.
27349 (START_ADDR_LOW_REGISTER): Likewise.
27350 (GRAPHICS_ADDR_PORT): Likewise.
27351 (GRAPHICS_DATA_PORT): Likewise.
27352 (READ_MAP_REGISTER): Likewise.
27353 (INPUT_STATUS1_REGISTER): Likewise.
27354 (INPUT_STATUS1_VERTR_BIT): Likewise.
27355 (get_map_mask): Use grub_vga_sr_read.
27356 (set_map_mask): Use grub_vga_sr_write.
27357 (set_read_map): Use grub_vga_gr_write.
27358 (set_start_address): Use grub_vga_cr_write.
27359 * video/sm712.c (framebuffer): Remove leftover fields.
27361 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27363 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27364 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27365 instead. Replace the gfxterm backend check with a check that
27366 ${GRUB_PREFIX}/video.lst is non-empty.
27367 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27369 (load_video): New generated function. Call it before loading
27370 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27371 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27372 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27373 * docs/grub.texi (Simple configuration): Document
27374 GRUB_VIDEO_BACKEND.
27376 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27378 Use video functions in linux and xnu loaders.
27380 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27381 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27382 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27383 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27384 loader/i386/pc/linux.c.
27385 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27386 (find_line_len): Removed.
27387 (find_framebuf): Likewise.
27388 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27389 * loader/i386/efi/xnu.c: Removed.
27390 * loader/i386/pc/xnu.c: Moved from here...
27391 * loader/i386/xnu.c: ...here.
27393 Enable priorities in video drivers.
27395 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27396 (grub_video_adapter): New field prio.
27397 (grub_video_register): Respect prio when inserting.
27398 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27399 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27400 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27401 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27402 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27403 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27404 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27408 * include/grub/video.h (grub_video_driver_id_t): New value
27409 GRUB_VIDEO_DRIVER_SDL.
27410 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27412 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27414 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27415 argument to printf.
27416 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27418 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27420 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27421 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27423 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27425 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27426 directly, and recommend grub-install instead.
27427 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27429 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27431 Fix i386-pc prefix handling with nested partitions (Debian bug
27432 #585068). Note that the case where the core image is booted using
27433 multiboot and relocated from its original location still requires
27436 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27437 with "(,", fill the boot drive in between those two characters, but
27438 expect that a full partition specification including partition map
27440 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27441 specified, write a prefix without the drive name but including a
27442 full partition specification.
27444 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27446 * util/grub-mkconfig.in: Ignore non-option arguments, for
27447 compatibility with older versions (before 2010-06-12) which did the
27448 same. In particular, this makes it easier to ship an update-grub
27449 wrapper which is compatible with that used with GRUB Legacy (Debian
27452 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27454 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27455 for manual page generation.
27457 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27459 * po/POTFILES: Remove leftover commands/handler.c.
27461 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27463 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27464 left this script non-functional.
27466 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27468 * docs/man/grub-emu.h2m: New file.
27470 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27472 * docs/grub.texi (Commands): Document reduced command set in rescue
27474 (cpuid): New section.
27476 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27478 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27479 new partition naming style.
27480 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27482 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27484 Add "-o grub.iso" like cmdline options support.
27486 * util/grub-install.in: Improve cmdline option parsing.
27487 * util/grub-mkconfig.in: Likewise.
27488 * util/grub-mkrescue.in: Likewise.
27489 * util/grub-reboot.in: Likewise.
27490 * util/grub-set-default.in: Likewise.
27491 * util/i386/efi/grub-install.in: Likewise.
27492 * util/ieee1275/grub-install.in: Likewise.
27493 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27495 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27497 * .bzrignore: Ignore 41_custom.
27499 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27501 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27503 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27505 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27506 prototype declarations.
27508 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27509 generating fs, partmap, and video lists.
27510 * include/grub/fs.h (grub_fs_register): Omit prototype if
27511 GRUB_LST_GENERATOR is defined.
27512 * include/grub/partition.h (grub_partition_map_register): Likewise.
27513 * include/grub/video.h (grub_video_register): Likewise.
27515 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27517 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27519 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27521 * util/grub-mkrescue.in: Support --xorriso argument.
27523 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27525 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27526 Suggested by: Thomas Schmitt.
27528 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27530 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27531 Suggested by: Thomas Schmitt.
27533 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27535 custom.cfg support.
27537 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27538 * util/grub.d/41_custom.in: New file.
27540 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27542 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27543 been merged back into normal.
27545 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27547 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27548 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27550 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27552 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27553 when generating manual pages.
27554 * docs/man/grub-bin2h.h2m: New file.
27555 * docs/man/grub-editenv.h2m: New file.
27556 * docs/man/grub-fstest.h2m: New file.
27557 * docs/man/grub-install.h2m: New file.
27558 * docs/man/grub-macho2img.h2m: New file.
27559 * docs/man/grub-mkconfig.h2m: New file.
27560 * docs/man/grub-mkdevicemap.h2m: New file.
27561 * docs/man/grub-mkfont.h2m: New file.
27562 * docs/man/grub-mkimage.h2m: New file.
27563 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27564 * docs/man/grub-mkrelpath.h2m: New file.
27565 * docs/man/grub-mkrescue.h2m: New file.
27566 * docs/man/grub-ofpathname.h2m: New file.
27567 * docs/man/grub-pe2elf.h2m: New file.
27568 * docs/man/grub-probe.h2m: New file.
27569 * docs/man/grub-reboot.h2m: New file.
27570 * docs/man/grub-script-check.h2m: New file.
27571 * docs/man/grub-set-default.h2m: New file.
27572 * docs/man/grub-setup.h2m: New file.
27574 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27576 Use FOR_* macros instead of *_iterate whenever possible.
27578 * commands/handler.c: Removed.
27579 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27580 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27581 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27582 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27583 (grub_probe_SOURCES): Remove kern/parser.c.
27584 (util/grub-script-check.c_DEPENDENCIES): Removed.
27585 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27586 and grub_script_check_init.c.
27587 (grub_script_check_init.lst): Removed.
27588 (grub_script_check_init.h): Likewise.
27589 (grub_script_check_init.c): Likewise.
27590 (pkglib_MODULES): Remove handler.mod and sh.mod.
27591 (handler_mod_SOURCES): Removed.
27592 (handler_mod_CFLAGS): Likewise.
27593 (handler_mod_LDFLAGS): Likewise.
27594 (normal_mod_SOURCES): Remove normal/handler.c.
27595 Add script/main.c, script/script.c, script/execute.c,
27596 script/function.c, script/lexer.c, grub_script.tab.c
27597 and grub_script.yy.c.
27598 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27599 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27600 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27601 (grub_setup_SOURCES): Remove kern/parser.c.
27602 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27603 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27604 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27605 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27606 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27607 (grub_setup_SOURCES): Remove kern/parser.c.
27608 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27609 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27610 * include/grub/command.h (grub_command_iterate): Removed.
27611 (FOR_COMMANDS): New macro.
27612 * include/grub/dl.h (grub_dl): New member next.
27613 (grub_dl_iterate): Removed.
27614 (grub_dl_head): New variable declaration.
27615 (FOR_DL_MODULES): New macro.
27616 * include/grub/fs.h: Include list.h.
27617 (grub_fs): Make next first element.
27618 (grub_fs_list): New variable declaration.
27619 (grub_fs_register): Make inline.
27620 (grub_fs_unregister): Likewise.
27621 (grub_fs_iterate): Removed.
27622 (FOR_FILESYSTEMS): New macro.
27623 * include/grub/handler.h: Removed.
27624 * include/grub/list.h (grub_list_hook_t): Removed.
27625 (grub_list_test_t): Likewise.
27626 (grub_list_pop): Likewise.
27627 (grub_list_iterate): Likewise.
27628 (grub_list_insert): Likewise.
27629 (FOR_LIST_ELEMENTS): New macro.
27630 * include/grub/parser.h (grub_parser_class): Removed.
27631 (grub_parser_register): Likewise.
27632 (grub_parser_unregister): Likewise.
27633 (grub_parser_get_current): Likewise.
27634 (grub_parser_set_current): Likewise.
27635 (grub_register_rescue_parser): Likewise.
27636 (grub_rescue_parse_line): New function.
27637 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27638 * include/grub/script_sh.h (grub_script_function_list): New variable
27640 (FOR_SCRIPT_FUNCTIONS): New macro.
27641 (grub_script_function_iterate): Removed.
27642 (grub_normal_parse_line): New prototype.
27643 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27644 (FOR_DISABLED_TERM_INPUTS): Likewise.
27645 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27646 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27647 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27649 (grub_video_register): Inline.
27650 (grub_video_unregister): Likewise.
27651 (grub_video_adapter_list): New variable declaration.
27652 (grub_video_iterate): Removed.
27653 (FOR_VIDEO_ADAPTERS): New macro.
27654 * kern/dl.c (grub_dl_list): Removed. All users updated.
27655 (grub_dl_iterate): Removed.
27656 * kern/fs.c (grub_fs_list): Make global.
27657 (grub_fs_register): Removed.
27658 (grub_fs_unregister): Likewise.
27659 (grub_fs_iterate): Likewise.
27660 * kern/handler.c: Removed.
27661 * kern/list.c (grub_list_pop): Removed.
27662 (grub_list_iterate): Likewise.
27663 (grub_list_insert): Likewise.
27664 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27665 (grub_prio_list_insert): Don't use grub_list_insert.
27666 * kern/main.c (grub_register_rescue_parser): Don't call
27667 grub_register_rescue_parser.
27668 * kern/parser.c (grub_parser_class): Removed.
27669 (grub_parser_execute): Use grub_rescue_parse_line.
27670 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27671 (grub_rescue_parser): Removed.
27672 (grub_register_rescue_parser): Likewise.
27673 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27674 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27675 (grub_auth_check_authentication): Likewise.
27676 * normal/completion.c (iterate_command): Removed.
27677 (grub_normal_do_completion): Use FOR_COMMANDS.
27678 * normal/handler.c: Removed.
27679 * normal/main.c (read_config_file): Remove parser changing.
27680 (grub_normal_execute): Don't call read_handler_list.
27681 (grub_normal_read_line_real): Statically allocate prompt.
27682 (grub_cmdline_run): Use grub_normal_parse_line.
27683 (GRUB_MOD_FINI): Don't call free_handler_list.
27684 * normal/menu_entry.c (run): Likewise.
27685 * script/function.c (grub_script_function_list): Make global.
27686 (grub_script_function_iterate): Removed.
27687 * script/main.c (grub_normal_parse_line): Make global.
27688 (grub_sh_parser): Removed.
27689 (GRUB_MOD_INIT): Likewise.
27690 (GRUB_MOD_FINI): Likewise.
27691 * tests/lib/functional_test.c (grub_functional_test): Use
27693 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27694 (grub_test_run): Use FOR_LIST_ELEMENTS.
27695 * tests/lib/unit_test.c (main): Likewise.
27696 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27698 * util/grub-fstest.c (grub_term_input_class): Removed.
27699 (grub_term_output_class): Likewise.
27700 * util/grub-probe.c: Likewise.
27701 * util/i386/pc/grub-setup.c: Likewise.
27702 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27703 * util/grub-script-check.c (main): Don't call grub_init_all and
27705 * video/video.c (grub_video_adapter_list): Make global.
27706 (grub_video_register): Removed.
27707 (grub_video_unregister): Likewise.
27708 (grub_video_iterate): Likewise.
27710 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27712 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27713 reported by Henrique Ferreiro.
27715 2010-06-09 Robert Millan <rmh@gnu.org>
27717 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27718 ones, when both are available.
27720 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27722 Make --version uniform and avoid hard-coded program name.
27724 * util/grub-mkimage.c (main): Use `program_name' instead of
27726 * util/i386/pc/grub-setup.c (main): Likewise.
27727 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27728 * util/grub-install.in: Save the basename of $0 in $self, and use the
27729 latter in informational messages. Use the same format for --version
27730 as the binary programs.
27731 * util/grub-mkconfig.in: Likewise.
27732 * util/grub-mkrescue.in: Likewise.
27733 * util/grub-reboot.in: Likewise.
27734 * util/grub-set-default.in: Likewise.
27735 * util/i386/efi/grub-install.in: Likewise.
27736 * util/ieee1275/grub-install.in: Likewise.
27737 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27739 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27741 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27742 embedding area. Use <= instead of == when checking for non-emptiness.
27744 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27746 * configure.ac: Add `.' to the directories searched for unifont.
27748 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27750 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27753 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27755 * docs/grub.texi (History): Expand to cover GRUB 2.
27756 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27757 commands, not `terminal'.
27758 (serial): Likewise.
27759 (terminal_input): New section.
27760 (terminal_output): New section.
27761 (uppermem): New section (stub).
27762 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27764 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27766 * docs/grub.texi (Security): Menu entries are unrestricted by
27767 default, not restricted to superusers as I had previously thought.
27768 Reword to account for this.
27770 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27772 * kern/emu/misc.c (device_mapper_null_log): New function.
27773 (grub_device_mapper_supported): New function.
27774 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27776 * kern/emu/hostdisk.c (find_partition_start): Check whether
27777 device-mapper is supported before trying to use it.
27778 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27780 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27782 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27783 (File name syntax): Likewise.
27784 (help): --all is no longer supported in GRUB 2. Be more precise
27785 about pattern matching.
27787 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27789 * normal/completion.c (grub_normal_do_completion): When completing
27790 arguments to "set" and the current word contains an equals sign,
27791 skip to after the equals sign before starting completion.
27793 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27795 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27797 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27799 * docs/grub.texi (Network): New section.
27800 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27801 `(nd)' as in GRUB Legacy.
27802 (pxe_unload): New section.
27804 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27806 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27807 in the rescue shell, so recommend using `set' instead. Thanks,
27810 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27812 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27813 (password): New section.
27814 (password_pbkdf2): New section.
27815 (search): New section.
27816 (Security): New section.
27817 (Troubleshooting): New section, currently very incomplete.
27818 (Invoking grub-mkpasswd-pbkdf2): New section.
27819 (Internals): New section, currently very incomplete.
27821 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27823 * util/grub.d/00_header.in: Add some more quoting (of
27824 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27826 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27828 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27830 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27831 to `count', fixing variable shadowing that broke the -c option.
27833 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27835 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27836 in case they contain spaces.
27838 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27840 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27841 "part_" to partmap module names, in line with grub-install.
27842 Reported by: Jindřich Makovička (Debian bug #584426).
27844 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27846 * util/grub-mkimage.c: Make target-related error messages slightly
27847 more helpful; -O talks about "format". Explicitly point to the use
27848 of -O if no target is specified.
27849 Reported by: Didier Raboud (Debian bug #584415).
27851 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
27853 * INSTALL: Document several build requirements for optional features
27854 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27856 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27858 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27859 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27860 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
27862 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27864 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
27865 Thanks to Jordan Uggla for spotting this.
27867 2010-06-02 Aleš Nesrsta <starous@volny.cz>
27869 Finally make USB usable.
27871 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
27872 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
27873 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
27874 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
27875 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
27876 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
27877 (GRUB_OHCI_FSMPS): Likewise.
27878 (GRUB_OHCI_PERIODIC_START): Likewise.
27879 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
27880 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
27881 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
27882 (GRUB_OHCI_SET_PORT_RESET): Likewise.
27883 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
27884 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
27885 (grub_ohci_transaction): Likewise.
27886 (grub_ohci_transfer): Improve condition detection algorithms.
27887 Handle toggle property. Program the transactions correctly.
27888 Improve error handling. Various important fixups.
27889 (grub_ohci_portstatus): Put register writes in right order.
27890 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
27891 (grub_uhci_transfer): Don't show "failed" message on success.
27892 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
27894 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
27895 determine its size.
27896 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
27897 before initialization is completed. Use IN direction for empty
27898 transfers. Use last_trans and compute toggle.
27899 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
27900 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
27901 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
27902 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
27903 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
27904 (grub_usb_device): Increase toggle to 256.
27905 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
27906 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
27907 GRUB_USBMS_SUBCLASS_SFF8070.
27908 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
27909 (grub_scsi_inquiry): New member page and alloc_length.
27910 (grub_scsi_request_sense): New structure.
27911 (grub_scsi_request_sense_data): Likewise.
27912 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
27914 * disk/scsi.c (grub_scsi_request_sense): New function.
27915 (grub_scsi_test_unit_ready): Likewise.
27916 (grub_scsi_inquiry): Fill new fields.
27917 (grub_scsi_read_capacity): Likewise.
27918 (grub_scsi_read10): Add request sense at the end.
27919 (grub_scsi_read12): Likewise.
27920 (grub_scsi_write10): Likewise.
27921 (grub_scsi_write12): Likewise.
27922 (grub_scsi_open): Add Test Unit Ready.
27923 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
27924 Support additional subclasses. Con't clear halt yet. Activate the
27925 proper config. Calculate LUNs correctly.
27926 (grub_usbms_transfer): Various important fixups.
27928 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27930 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
27931 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
27932 (grub_ohci_fini_hw): New function.
27933 (grub_ohci_restore_hw): Likewise.
27934 (GRUB_MOD_INIT(ohci)): Register preboot hook.
27935 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
27936 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
27938 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27940 Dedicated DMA allocations.
27942 * bus/pci.c (grub_memalign_dma32): New function
27943 (grub_dma_free): Likewise.
27944 (grub_dma_get_virt): Likewise.
27945 (grub_dma_get_phys): Likewise.
27946 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
27947 (grub_ohci_pci_iter): Use dma32_alloc.
27948 (grub_ohci_transfer): Likewise.
27949 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
27950 (grub_usb_bulk_readwrite): Likewise.
27951 * include/grub/pci.h: Add declarations.
27953 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27957 * bus/cs5536.c: New file.
27958 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
27959 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
27960 (cs5536_mod_SOURCES): New variable.
27961 (cs5536_mod_CFLAGS): Likewise.
27962 (cs5536_mod_LDFLAGS): Likewise.
27963 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
27965 (kernel_img_SOURCES): Add bus/cs5536.c.
27966 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
27968 (usb_mod_SOURCES): New variable.
27969 (usb_mod_CFLAGS): New variable.
27970 (usb_mod_LDFLAGS): New variable.
27971 (usbtest_mod_SOURCES): New variable.
27972 (usbtest_mod_CFLAGS): New variable.
27973 (usbtest_mod_LDFLAGS): New variable.
27974 (ohci_mod_SOURCES): New variable.
27975 (ohci_mod_CFLAGS): New variable.
27976 (ohci_mod_LDFLAGS): New variable.
27977 (usbms_mod_SOURCES): New variable.
27978 (usbms_mod_CFLAGS): New variable.
27979 (usbms_mod_LDFLAGS): New variable.
27980 (usb_keyboard_mod_SOURCES): New variable.
27981 (usb_keyboard_mod_CFLAGS): New variable.
27982 (usb_keyboard_mod_LDFLAGS): New variable.
27983 * include/grub/smbus.h: New file.
27984 * include/grub/cs5536.h: New file.
27986 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27988 * util/grub.d/00_header.in: Add safety check to make sure that
27989 ${locale_dir} exists before trying to probe it.
27991 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27993 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
27994 per the GNU Coding Standards; this is now too obscure to be worth
27997 (chainloader): Remove cross-reference to `SCO UnixWare'.
27999 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28001 * docs/grub.texi (Chain-loading): New section.
28002 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28003 adjusted for GRUB 2.
28004 (SCO UnixWare): Likewise.
28006 (chainloader): Add reference to `Block list syntax'.
28007 (drivemap): New section.
28008 (parttool): New section.
28010 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28012 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28014 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28015 (Installing GRUB using grub-install): Remove reference to the grub
28016 shell; mention `grub-mkimage' and `grub-setup' instead.
28017 (Invoking grub-install): Likewise.
28018 (Interface): Add reference to `Menu entry editor'.
28019 (serial): Remove `--device' option.
28021 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28023 * docs/grub.texi (Configuration): New section, documenting
28024 configuration file generation using grub-mkconfig. I've left a slot
28025 for documenting the full shell scripting format but have not yet
28026 started on writing that up.
28027 (Invoking grub-mkconfig): New section.
28029 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28031 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28032 (GNU GRUB manual): Likewise.
28033 (General commands): Update description of `terminfo' for GRUB 2.
28035 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28037 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28038 (GRUB_MOD_INIT): Fix capitalisation.
28039 * docs/grub.texi (Command-line and menu entry commands): Document
28040 gettext and gptsync commands.
28042 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28044 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28045 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28047 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28049 Add btrfs probing support, currently only in the single-device case.
28051 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28053 (grub_guess_root_device): Call find_root_device_from_mountinfo
28054 before looking in /dev.
28056 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28058 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28059 GRUB_DISK_SIZE_UNKNOWN.
28060 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28062 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28064 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28065 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28066 corrupted or not synced properly.
28068 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28070 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28071 Reported by: Seth Goldberg.
28073 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28075 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28077 Reported by: Seth Goldberg.
28079 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28081 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28082 Reported by: Seth Goldberg.
28084 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28086 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28087 64-bit address as signed on MIPS.
28089 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28091 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28092 to the empty string.
28094 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28096 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28098 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28099 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28100 * kern/misc.c (__enable_execute_stack): Disable on
28103 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28105 Make grub-probe work with symbolic links under /dev/mapper as well
28106 as with real block devices. The Linux world seems to be (at best)
28107 in transition here, and GRUB shouldn't get caught in the middle.
28109 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28112 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28114 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28115 input files (in which case exit zero).
28117 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28119 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28120 return NULL for various reasons even if it has a maximum-length
28121 buffer: for example, there might be a symlink loop, or the path
28122 might exceed PATH_MAX. If this happens, return NULL.
28124 2010-05-27 Robert Millan <rmh@gnu.org>
28126 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28127 partmap module to handle cross-partmap setups.
28128 Reported by Orestes Mas. Gràcies!
28130 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28132 * util/grub-mkrescue.in: Initialise override_dir rather than
28133 assuming that it's unset or empty in the environment.
28135 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28137 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28138 variable index into p_index to suppress a warning with -Wshadow.
28140 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28142 * INSTALL: Added flex >= 2.5.35 requirement.
28144 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28146 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28148 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28152 * commands/i386/cmostest.c: New file.
28153 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28154 (cmostest_mod_SOURCES): New variable.
28155 (cmostest_mod_CFLAGS): Likewise.
28156 (cmostest_mod_LDFLAGS): Likewise.
28157 * conf/i386-pc.rmk: Likewise.
28158 * docs/grub.texi (Vendor power-on keys): New section.
28159 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28160 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28161 and GRUB_BUTTON_CMOS_ADDRESS.
28162 * util/grub.d/00_header.in: Handle powering-on by separate button.
28164 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28166 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28167 Removed drawing_scrollbar argument. All users updated
28169 Reported by Jo Shields
28171 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28173 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28174 buffer since gfxterm handles double repaint.
28176 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28178 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28179 * term/gfxterm.c (real_scroll): Likewise.
28181 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28183 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28184 before calling BIOS.
28186 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28188 * include/grub/i18n.h: Always enable grub_gettext.
28190 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28192 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28193 partition naming style.
28195 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28197 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28198 not the first option.
28200 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28202 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28204 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28206 * util/misc.c: Move inclusion of <limits.h> to ...
28207 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28209 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28211 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28212 Fix merge error in NetBSD code.
28213 (find_partition_start) [__NetBSD__]: Likewise.
28215 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28217 Fix grub-mkrescue usage unit testing.
28219 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28221 2010-05-18 Christian Franke <franke@computer.org>
28223 * util/grub.d/10_windows.in: Use path names instead of
28224 drive letters to prevent warning from Cygwin 1.7.
28225 Add drivemap command to menuentry if needed.
28227 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28229 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28230 gnumach and gnumach.gz.
28232 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28234 * include/grub/i18n.h (gettext): Inline instead of using #define.
28235 (grub_gettext): Likewise.
28238 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28240 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28241 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28242 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28243 (main): Add a slash after pkglibdirroot.
28245 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28247 * util/grub-install.in: Add missing "in" keyword.
28249 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28251 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28252 Reported by: Seth Goldberg.
28254 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28256 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28258 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28260 * configure.ac: Check for Linux device-mapper support.
28262 * util/hostdisk.c (device_is_mapped): New function.
28263 (find_partition_start): New function, partly broken out from
28264 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28265 device-mapper support added.
28266 (linux_find_partition): Use find_partition_start.
28267 (convert_system_partition_to_system_disk): Add `st' argument.
28268 Support Linux /dev/mapper/* devices if device-mapper support is
28269 available; only DM-RAID devices are understood at present.
28270 (find_system_device): Add `st' argument. Pass it to
28271 convert_system_partition_to_system_disk.
28272 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28273 find_system_device and convert_system_partition_to_system_disk. Use
28274 find_partition_start.
28276 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28277 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28278 * util/deviceiter.c [__linux__]: Define MINOR.
28279 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28280 * util/mkdevicemap.c (grub_putchar): New function.
28281 (grub_getkey): New function.
28282 (grub_refresh): New function.
28283 (main): Set debug=all if -v -v is used.
28285 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28287 Fix build with non-GNU libcs.
28289 * util/misc.c (canonicalize_file_name): Move to ...
28290 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28291 grub_make_system_path_relative_to_its_root.
28293 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28295 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28296 we handle finding grub-mkimage. Default to finding grub-mkimage in
28297 ${bindir} with program_transform_name applied, and provide a
28298 --grub-mkimage option to override this.
28300 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28302 Remove grub-mkisofs.
28304 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28305 (grub_mkisofs_SOURCES): Removed.
28306 (grub_mkisofs_CFLAGS): Removed.
28307 * util/mkisofs/defaults.h: Removed.
28308 * util/mkisofs/eltorito.c: Likewise.
28309 * util/mkisofs/exclude.h: Likewise.
28310 * util/mkisofs/hash.c: Likewise.
28311 * util/mkisofs/include/: Likewise.
28312 * util/mkisofs/include/fctldefs.h: Likewise.
28313 * util/mkisofs/include/mconfig.h: Likewise.
28314 * util/mkisofs/include/prototyp.h: Likewise.
28315 * util/mkisofs/include/statdefs.h: Likewise.
28316 * util/mkisofs/iso9660.h: Likewise.
28317 * util/mkisofs/joliet.c: Likewise.
28318 * util/mkisofs/match.c: Likewise.
28319 * util/mkisofs/match.h: Likewise.
28320 * util/mkisofs/mkisofs.c: Likewise.
28321 * util/mkisofs/mkisofs.h: Likewise.
28322 * util/mkisofs/msdos_partition.h: Likewise.
28323 * util/mkisofs/multi.c: Likewise.
28324 * util/mkisofs/name.c: Likewise.
28325 * util/mkisofs/rock.c: Likewise.
28326 * util/mkisofs/tree.c: Likewise.
28327 * util/mkisofs/write.c: Likewise.
28329 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28331 Unify grub-mkimage accross platforms.
28333 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28334 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28335 (grub_mkelfimage_SOURCES): Removed.
28336 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28337 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28338 (bin_UTILITIES): Add grub-mkimage.
28339 (grub_mkimage_SOURCES): New variable.
28340 (kernel_img_HEADERS): Remove machine/kernel.h.
28341 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28342 (pkglib_PROGRAMS): Add kernel.img.
28343 (kernel_img_HEADERS): Add machine/kernel.h.
28344 (kernel_img_FORMAT): Removed.
28345 (bin_UTILITIES): Remove grub-mkimage.
28346 (grub_mkimage_SOURCES): Removed.
28347 (grub_mkimage_CFLAGS): Likewise.
28348 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28349 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28350 (pkglib_PROGRAMS): Add kernel.img.
28351 (bin_UTILITIES): Remove grub-mkimage.
28352 (grub_mkimage_SOURCES): Removed.
28353 (grub_mkimage_CFLAGS): Likewise.
28354 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28355 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28356 (pkglib_PROGRAMS): Add kernel.img.
28357 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28358 (pkglib_PROGRAMS): Add kernel.img.
28359 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28360 (grub_mkimage_SOURCES): Removed.
28361 (grub_mkimage_CFLAGS): Likewise.
28362 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28363 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28364 (pkglib_PROGRAMS): Add kernel.img.
28365 (bin_UTILITIES): Remove grub-mkimage.
28366 (grub_mkimage_SOURCES): Removed.
28367 (grub_mkimage_CFLAGS): Likewise.
28368 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28369 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28370 (grub_mkimage_SOURCES): Removed.
28371 (grub_mkimage_CFLAGS): Likewise.
28372 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28373 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28374 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28375 (grub_pe32_optional_header): ... this.
28376 (grub_pe64_optional_header): ... and this. All users updated.
28377 (GRUB_PE32_PE32_MAGIC): Split into ..
28378 (GRUB_PE32_PE32_MAGIC): .. this.
28379 (GRUB_PE32_PE64_MAGIC): .. and this.
28380 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28381 * include/grub/elf.h (PT_GNU_STACK): New definition.
28382 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28383 * include/grub/i386/efi/kernel.h: Likewise.
28384 * include/grub/i386/kernel.h: Likewise.
28385 * include/grub/i386/pc/kernel.h: Likewise.
28386 * include/grub/i386/qemu/boot.h: Likewise.
28387 * include/grub/mips/kernel.h: Likewise.
28388 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28389 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28390 * include/grub/powerpc/kernel.h: Likewise.
28391 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28392 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28393 * include/grub/sparc64/kernel.h: Likewise.
28394 * include/grub/x86_64/efi/kernel.h: Likewise.
28395 * include/grub/x86_64/kernel.h: Likewise.
28396 * include/grub/offsets.h: New file.
28397 * include/grub/kernel.h (grub_module_info): Split into ...
28398 (grub_module_info32): ... this.
28399 (grub_module_info64): ... and this.
28400 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28401 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28402 (grub_boot_blocklist): Moved from here ...
28403 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28404 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28405 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28406 * include/grub/types.h (grub_target_to_host16): Removed.
28407 (grub_target_to_host32): Likewise.
28408 (grub_target_to_host64): Likewise.
28409 (grub_host_to_target16): Likewise.
28410 (grub_host_to_target32): Likewise.
28411 (grub_host_to_target64): Likewise.
28412 (grub_host_to_target_addr): Likewise.
28414 Support grub-mkrescue for efi, coreboot and qemu.
28416 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28417 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28418 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28419 * util/grub-mkrawimage.c: Moved from here ...
28420 * util/grub-mkimage.c: ... here. All users updated.
28421 (ALIGN_ADDR): Use image_target.
28422 (TARGET_NO_FIELD): New const.
28423 (image_target_desc): New type.
28424 (image_targets): New array.
28425 (grub_target_to_host64): Use image_target.
28426 (grub_target_to_host32): Likewise.
28427 (grub_target_to_host16): Likewise.
28428 (grub_host_to_target64): Likewise.
28429 (grub_host_to_target32): Likewise.
28430 (grub_host_to_target16): Likewise.
28431 (grub_host_to_target_addr): Likewise.
28432 (generate_image): Handle multiimage.
28433 (main): Require -O parameter. All users updated.
28434 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28435 util/efi/grub-mkimage.c
28436 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28437 New option --rom-directory.
28439 * util/i386/efi/grub-mkimage.c: Removed.
28440 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28441 (grub_target_to_host32): Likewise.
28442 (grub_target_to_host64): Likewise.
28443 (grub_host_to_target16): Likewise.
28444 (grub_host_to_target32): Likewise.
28445 (grub_host_to_target64): Likewise.
28446 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28447 (grub_target_to_host32): Likewise.
28448 (grub_target_to_host64): Likewise.
28449 (grub_host_to_target16): Likewise.
28450 (grub_host_to_target32): Likewise.
28451 (grub_host_to_target64): Likewise.
28453 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28455 Source tree is reorganized for emu build.
28457 * include/grub/util/console.h: Move from here...
28458 * include/grub/emu/console.h: ...to here.
28459 * include/grub/util/getroot.h: Move from here...
28460 * include/grub/emu/getroot.h: ...to here.
28461 * include/grub/util/hostdisk.h: Move from here...
28462 * include/grub/emu/hostdisk.h: ...to here.
28463 * util/console.c: Move from here...
28464 * kern/emu/console.c: ...to here.
28465 * util/getroot.c: Move from here...
28466 * kern/emu/getroot.c: ...to here.
28467 * util/grub-emu.c: Move from here...
28468 * kern/emu/main.c: ...to here.
28469 * util/hostdisk.c: Move from here...
28470 * kern/emu/hostdisk.c: ...to here.
28471 * util/hostfs.c: Move from here...
28472 * kern/emu/hostfs.c: ...to here.
28473 * util/mm.c: Move from here...
28474 * kern/emu/mm.c: ...to here.
28475 * util/pci.c: Move from here...
28476 * bus/emu/pci.c: ...to here.
28477 * util/sdl.c: Move from here...
28478 * video/emu/sdl.c: ...to here.
28479 * util/time.c: Move from here...
28480 * kern/emu/time.c: ...to here.
28481 * util/usb.c: Move from here...
28482 * bus/usb/emu/usb.c: ...to here.
28484 * include/grub/emu/misc.h: New header for grub-emu functions.
28485 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28487 * conf/any-emu.rmk: Rule updates for above renames.
28488 * conf/common.rmk: Likewise.
28489 * conf/i386-pc.rmk: Likewise.
28490 * conf/i386-qemu.rmk: Likewise.
28491 * conf/mips.rmk: Likewise.
28492 * conf/sparc64-ieee1275.rmk: Likewise.
28493 * conf/x86-efi.rmk: Likewise.
28495 * disk/lvm.h: #include updates for above renames.
28496 * util/grub-mkrelpath.c: Likewise.
28497 * util/grub-probe.c: Likewise.
28498 * util/i386/pc/grub-setup.c: Likewise.
28499 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28500 * kern/emu/console.c: Likewise.
28501 * kern/emu/getroot.c: Likewise.
28502 * kern/emu/hostdisk.c: Likewise.
28503 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28505 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28506 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28507 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28508 * util/misc.c: Remove grub-emu functions.
28510 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28513 Reported by: Thorsten Grützmacher.
28515 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28517 (circprog_set_property): Register and unregister timeout hook.
28518 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28519 (label_destroy): Free template. and unregister hook.
28520 (label_set_state): New function.
28521 (label_set_property): Handle templates and hooks.
28522 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28524 (progress_bar_set_property): Register and unregister timeout hook.
28525 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28526 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28527 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28528 (update_timeout_visit): Removed.
28529 (update_timeouts): New function.
28530 (redraw_timeouts): Likewise.
28531 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28532 (grub_gfxmenu_clear_timeout): Likewise.
28533 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28534 (grub_gfxmenu_timeout_notify): Likewise.
28535 (grub_gfxmenu_timeout_notifications): New external variable.
28536 (grub_gfxmenu_timeout_register): New function.
28537 (grub_gfxmenu_timeout_unregister): Likewise.
28539 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28541 Transform (broken) vga terminal into (working) vga video driver.
28543 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28544 video/i386/pc/vga.c.
28545 * include/grub/video.h (grub_video_driver_id):
28546 Add GRUB_VIDEO_DRIVER_VGA.
28547 * term/i386/pc/vga.c: Renamed to ...
28548 * video/i386/pc/vga.c: ...this
28549 (DEBUG_VGA): Removed.
28550 (CHAR_WIDTH): Likewise.
28551 (CHAR_HEIGHT): Likewise.
28552 (TEXT_WIDTH): Likewise.
28553 (TEXT_HEIGHT): Likewise.
28554 (DEFAULT_FG_COLOR): Likewise.
28555 (DEFAULT_BG_COLOR): Likewise.
28556 (colored_char): Likewise.
28559 (cursor_state): Likewise.
28560 (fg_color): Likewise.
28561 (bg_color): Likewise.
28562 (text_buf): Likewise.
28565 (framebuffer): New variable.
28566 (set_read_map): Disabled.
28567 (setup): New variable.
28568 (is_target): Likewise.
28569 (grub_vga_mod_init): Likewise.
28570 (grub_vga_mod_fini): Likewise.
28571 (check_vga_mem): Likewise.
28572 (write_char): Likewise.
28573 (write_cursor): Likewise.
28574 (scroll_up): Likewise.
28575 (grub_vga_putchar): Likewise.
28576 (grub_vga_getcharwidth): Likewise.
28577 (grub_vga_getwh): Likewise.
28578 (grub_vga_getxy): Likewise.
28579 (grub_vga_gotoxy): Likewise.
28580 (grub_vga_cls): Likewise.
28581 (grub_vga_setcolorstate): Likewise.
28582 (grub_vga_setcursor): Likewise.
28583 (grub_video_vga_init): New function.
28584 (grub_video_vga_setup): Likewise.
28585 (grub_video_vga_fini): Likewise.
28586 (update_target): Likewise.
28587 (grub_video_vga_blit_bitmap): Likewise.
28588 (grub_video_vga_blit_render_target): Likewise.
28589 (grub_video_vga_set_active_render_target): Likewise.
28590 (grub_video_vga_get_active_render_target): Likewise.
28591 (grub_video_vga_swap_buffers): Likewise.
28592 (grub_video_vga_set_palette): Likewise.
28593 (grub_video_vga_get_info_and_fini): Likewise.
28594 (grub_vga_term): Removed.
28595 (grub_video_vga_adapter): New variable.
28596 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28597 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28599 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28601 * video/readers/jpeg.c: Indented.
28603 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28605 Various jpeg cleanups.
28607 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28608 (grub_jpeg_decode_quan_table): Use sizeof.
28609 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28611 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28613 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28614 tables. Ignore non-last ac bit.
28615 (grub_jpeg_decode_quan_table): Likewise.
28617 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28619 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28620 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28621 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28622 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28623 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28624 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28626 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28628 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28631 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28633 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28635 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28637 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28640 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28642 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28645 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28647 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28650 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28652 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28654 2010-05-01 Christian Franke <franke@computer.org>
28656 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28657 Remove broken Cygwin path conversion.
28658 * util/misc.c: [__CYGWIN__] Add include and define.
28659 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28661 (make_system_path_relative_to_its_root): Simplify loop, replace early
28663 [__CYGWIN__] Add conversion to win32 path.
28664 Include "/" case in trailing slash removal.
28666 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28668 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28669 Reported by: Seth Goldberg
28671 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28673 * commands/help.c (grub_cmd_help): Fix a typo.
28674 Reported by: Seth Goldberg
28676 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28678 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28680 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28681 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28682 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28683 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28684 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28685 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28686 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28687 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28688 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28689 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28690 * normal/context.c (GRUB_MOD_INIT): Likewise.
28691 * normal/main.c (GRUB_MOD_INIT): Likewise.
28692 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28693 * term/serial.c (GRUB_MOD_INIT): Likewise.
28694 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28696 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28698 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28701 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28703 * commands/iorw.c: New file.
28704 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28705 (iorw_mod_SOURCES): New variable.
28706 (iorw_mod_CFLAGS): Likewise.
28707 (iorw_mod_LDFLAGS): Likewise.
28709 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28713 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28714 * normal/main.c (hotkey_aliases): New variable.
28715 (grub_normal_add_menu_entry): Parse "--hotkey".
28716 * normal/menu_text.c (run_menu): Handle hotkeys.
28718 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28720 * kern/i386/coreboot/init.c (grub_machine_init): Call
28721 grub_machine_mmap_init on qemu.
28723 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28725 * boot/i386/qemu/boot.S: Add a missing .code16.
28727 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28729 Use LBIO on coreboot.
28731 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28732 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28733 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28735 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28736 grub_machine_mmap_init on coreboot.
28737 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28738 GRUB_LINUXBIOS_MEMBER_LINK.
28739 (grub_machine_mmap_iterate): Fix declaration.
28740 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28742 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28744 Split coreboot and multiboot ports.
28746 * conf/i386-multiboot.rmk: New file.
28747 * configure.ac: Add multiboot port.
28748 * include/grub/i386/multiboot/boot.h: New file.
28749 * include/grub/i386/multiboot/console.h: Likewise.
28750 * include/grub/i386/multiboot/init.h: Likewise.
28751 * include/grub/i386/multiboot/kernel.h: Likewise.
28752 * include/grub/i386/multiboot/loader.h: Likewise.
28753 * include/grub/i386/multiboot/memory.h: Likewise.
28754 * include/grub/i386/multiboot/serial.h: Likewise.
28755 * include/grub/i386/multiboot/time.h: Likewise.
28756 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28757 * loader/multiboot.c: Likewise.
28758 * loader/multiboot_mbi2.c: Likewise.
28759 * util/grub-mkrescue.in: Generate multiboot rescue.
28761 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28763 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28765 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28767 Merge handling of input and output terminals. Fix a hang.
28769 * commands/terminal.c (abstract_terminal): New struct.
28770 (handle_command): New function. Based on grub_cmd_terminal_input.
28771 (grub_cmd_terminal_input): Use handle_command.
28772 (grub_cmd_terminal_output): Use handle_command.
28774 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28776 Fix comment handling.
28778 * tests/grub_script_comments.in: New testcase.
28779 * conf/tests.rmk: Rules for new testcase.
28780 * script/yylex.l: Updated flex rules.
28782 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28784 * docs/grub.texi (play): Document that zero pitches produce rests.
28785 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28788 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28790 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28793 2010-04-26 Christian Franke <franke@computer.org>
28795 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28796 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28797 (grub_get_prefix): Remove function.
28798 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28799 make_system_path_relative_to_its_root ().
28800 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28802 2010-04-24 Christian Franke <franke@computer.org>
28804 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28805 (kernel_img_LDFLAGS): Remove -static-libgcc.
28807 2010-04-24 Christian Franke <franke@computer.org>
28809 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28810 and CHECK_END_SYMBOL if grub-emu is built.
28811 Unset TARGET_OBJ2ELF if grub-emu is built
28812 without module support.
28814 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28818 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28819 (grub_fstest_SOURCES): Likewise.
28820 (pkglib_MODULES): Add nilfs2.mod.
28821 (nilfs2_mod_SOURCES): New variable.
28822 (nilfs2_mod_CFLAGS): Likewise.
28823 (nilfs2_mod_LDFLAGS): Likewise.
28824 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28825 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28826 * fs/nilfs2.c: New file.
28828 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28830 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28833 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28835 Add grub-mkconfig support for NetBSD.
28837 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28838 * util/grub-mkconfig.in: export new NetBSD specific variables.
28839 * po/POTFILES-shell: added 10_netbsd.in.
28840 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28842 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28844 Fix emu build with grub-emu-pci and grub-emu-modules.
28846 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28848 * include/grub/libpciaccess.h: New file.
28849 * conf/any-emu.rmk: Update kernel headers for emu build.
28851 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28853 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28855 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28857 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28859 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28861 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
28862 Retrieve chosen/bootpath if bootpath isn't hardcoded.
28863 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
28864 util/ieee1275/ofpath.c.
28865 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
28866 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
28867 * include/grub/sparc64/ieee1275/boot.h
28868 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
28869 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
28870 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
28871 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
28873 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
28874 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
28875 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
28878 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
28880 * util/grub-mkconfig.in: Corrected two == equality tests.
28881 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
28882 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
28883 expect a number appended to it.
28884 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
28885 expects a number appended to it.
28887 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28889 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
28891 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28893 * util/hostdisk.c (make_device_name): Change to new partition naming.
28895 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
28897 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
28899 2010-04-17 Christian Franke <franke@computer.org>
28901 * Makefile.in: Add missing localedir setting.
28903 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
28905 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
28906 mistake in r2156. Noticed by Anthony Fok.
28908 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
28910 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28912 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
28914 Fix a spurious, uninitialized variable warning.
28916 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
28917 Initialize variable, shdr.
28918 (grub_freebsd_load_elfmodule): Likewise.
28919 (grub_freebsd_load_elf_meta): Likewise.
28921 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
28923 Fix for escaped dollar in double quoted strings.
28925 * script/yylex.l: Updated flex rules.
28926 * conf/tests.rmk: Rule for new testcase.
28927 * tests/grub_script_dollar.in: New testcase.
28929 2010-04-13 Carles Pina i Estany <carles@pina.cat>
28930 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
28932 Enclose all translated strings in grub.cfg in single quotes, and
28933 escape them appropriately (Ubuntu bug #552921).
28935 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
28936 * util/grub.d/10_hurd.in: Use it.
28937 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28938 * util/grub.d/10_linux.in (linux_entry): Likewise.
28940 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28942 Fix cygwin compilation.
28944 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
28945 * include/grub/misc.h (__register_frame_info)
28946 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
28947 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28948 * kern/misc.c (__register_frame_info)
28949 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
28950 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28952 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28954 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
28956 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28958 Unify libgcc processing.
28960 * Makefile.in (kernel_img_LDFLAGS): New variable.
28961 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
28962 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
28964 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
28965 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
28966 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
28967 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
28968 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
28969 overwriting. Remove -lgcc and -static-libgcc
28970 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
28971 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28972 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28973 (kernel_img_LDFLAGS): Append instead of overwriting.
28974 Remove -lgcc and -static-libgcc
28975 * conf/sparc64-ieee1275.rmk: Likewise.
28976 * include/grub/powerpc/libgcc.h: Move to ...
28977 * include/grub/libgcc.h: .. this.
28978 * include/grub/libgcc.h: Don't export most of the function on x86.
28979 (__bswapsi2): New export.
28980 (__bswapdi2): Likewise.
28981 * include/grub/mips/libgcc.h: Removed.
28982 * include/grub/sparc64/libgcc.h: Likewise.
28984 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28986 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
28987 disk_info_msg (conflicts with gettexting into languages with cases).
28989 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
28991 Add grub-probe support for NetBSD.
28993 * util/getroot.c (find_root_device): Convert block device to
28994 character device on NetBSD.
28995 * util/probe.c (probe): Require character device on NetBSD.
28996 * util/hostdisk.c: NetBSD specific headers.
28997 (configure_device_driver): new function to tune device driver
28998 parameters (currently only for NetBSD floppy driver).
28999 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29000 via disklabel ioctl).
29001 (open_device): call configure_device_driver on NetBSD.
29002 (convert_system_partition_to_system_disk): NetBSD specific code.
29003 (device_is_wholedisk): Likewise.
29004 (grub_util_biosdisk_get_grub_dev): Likewise.
29005 (make_device_name): Fixed a typo in bsd_part_str.
29006 * configure.ac: check for opendisk() and getrawpartition() on
29007 NetBSD and set LIBUTIL.
29008 * Makefile.in: add LIBUTIL to LIBS.
29010 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29014 * util/grub-script-check.c: Better help message.
29016 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29020 * configure.ac: Flex version check.
29021 * conf/common.rmk: Add -Wno-error to sh.mod.
29022 * script/yylex.l: Remove all #pragma.
29024 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29026 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29028 Reported by: Seth Goldberg.
29030 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29032 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29033 Rename "module" to "module2".
29034 Reported by: Seth Goldberg.
29036 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29038 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29040 Reported by: Seth Goldberg.
29042 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29044 * lib/posix_wrap/locale.h: Add missing file.
29045 Reported by: Seth Goldberg.
29047 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29049 grub-emu module load support.
29051 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29052 NO_DYNAMIC_MODULES switched to this.
29053 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29054 (CFLAGS): Likewise.
29055 * conf/any-emu.rmk: Generate symlist.
29056 (kernel_img_HEADERS): Add util/datetime.h.
29057 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29058 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29059 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29060 kern/$(target_cpu)/cache.S.
29061 * configure.ac (grub-emu-modules): New option.
29062 * genmk.rb: Handle multiple source lists.
29063 * include/grub/sdl.h: New file.
29064 * include/grub/libusb.h: Likewise.
29065 * util/grub-emu.c (main): Hanle (host) root.
29066 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29067 GRUB_ERR_UNKNOWN_DEVICE.
29068 * util/misc.c: Move mm functions to ...
29069 * util/mm.c: ... here. All users updated.
29071 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29073 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29074 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29076 (maintainer-clean): Remove libgcrypt-grub.
29078 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29080 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29082 2010-04-09 EFI Coder <eficoder@hotmail.com>
29084 * normal/menu_text.c (print_message): Clean up the message and show
29085 the Fn information when on EFI
29086 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29088 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29090 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29092 * normal/crypto.c (read_crypto_list): Likewise.
29093 * normal/dyncmd.c (read_command_list): Likewise.
29094 * normal/term.c (read_terminal_list): Likewise.
29095 * normal/main.c (read_lists): Use explicit prefix.
29096 (read_lists_hook): Use read_lists.
29097 (grub_normal_execute): Likewise.
29099 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29101 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29102 Reported by: Thomas Schmitt.
29103 Add -no-emul-boot to grub-mkisofs parameters.
29105 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29107 * font/font.c: Indented.
29109 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29111 Elif support to GRUB script (by Deepak Vankadaru).
29113 * tests/grub_script_if.in: New testcase.
29114 * conf/tests.rmk: Rule for new testcase.
29115 * script/parser.y: Grammar rules for elif.
29117 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29119 While and until loops support to GRUB script.
29121 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29122 (grub_script_create_cmdwhile): New function prototype.
29123 (grub_script_execute_cmdwhile): New function prototype.
29124 * script/execute.c (grub_script_execute_cmdwhile): New function.
29125 * script/parser.y (command): New commands.
29126 (whilecmd): New grammar rule.
29127 (untilcmd): New grammar rule.
29128 * script/script.c (grub_script_create_cmdwhile): New function.
29129 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29132 * tests/grub_script_while1.in: New testcase.
29133 * conf/tests.rmk: Rule for new testcase.
29135 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29137 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29140 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29142 GRUB_BACKGROUND support.
29144 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29145 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29147 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29149 Load fonts and modules for gfxmenu in grub-mkconfig.
29150 Idea by: Mario Vazquez
29152 * util/grub.d/00_header.in: Load pf2 and image modules.
29154 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29156 grub-mkconfig multiple terminal support.
29158 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29159 * util/grub.d/00_header.in: Likewise.
29161 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29163 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29164 we use cd $(srcdir).
29166 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29168 * util/grub.d/10_linux.in: Only use the first word of
29169 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29170 spaces in GRUB_DISTRIBUTOR.
29171 * util/grub.d/10_kfreebsd.in: Likewise.
29172 * util/grub.d/10_hurd.in: Likewise.
29174 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29176 Fix unit testing framework for Qemu 0.12.
29178 * tests/util/grub-shell.in: Remove -serial stdio option.
29180 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29182 POSIX header file wrappers.
29184 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29186 * lib/posix_wrap/ctype.h: Likewise.
29187 * lib/posix_wrap/errno.h: Likewise.
29188 * lib/posix_wrap/langinfo.h: Likewise.
29189 * lib/posix_wrap/limits.h: Likewise.
29190 * lib/posix_wrap/localcharset.h: Likewise.
29191 * lib/posix_wrap/stdint.h: Likewise.
29192 * lib/posix_wrap/stdio.h: Likewise.
29193 * lib/posix_wrap/stdlib.h: Likewise.
29194 * lib/posix_wrap/string.h: Likewise.
29195 * lib/posix_wrap/sys/types.h: Likewise.
29196 * lib/posix_wrap/unistd.h: Likewise.
29197 * lib/posix_wrap/wchar.h: Likewise.
29198 * lib/posix_wrap/wctype.h: Likewise.
29199 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29200 (grub_script.yy.h): Likewise.
29201 * script/yylex.l: Remove POSIX emulation #defines.
29202 * Makefile.in (POSIX_CFLAGS): New variable.
29203 (GNULIB_UTIL_CFLAGS): Likewise.
29207 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29208 (regexp_mod_SOURCES): New variable.
29209 (regexp_mod_CFLAGS): Likewise.
29210 (regexp_mod_LDFLAGS): Likewise.
29211 * commands/regexp.c: New file.
29212 * gnulib/regcomp.c: New file. Imported from gnulib.
29213 * gnulib/regex.c: Likewise.
29214 * gnulib/regex_internal.c: Likewise.
29215 * gnulib/regex_internal.h: Likewise.
29216 * gnulib/regexec.c: Likewise.
29217 * gnulib/regex.h: Likewise.
29219 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29221 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29222 unsupported video mode types.
29224 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29226 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29228 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29230 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29231 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29233 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29235 Remove unused grub_vga_get_font.
29237 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29238 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29240 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29242 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29243 * include/grub/misc.h: Likewise.
29245 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29247 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29248 for which failure is fatal.
29250 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29252 * util/grub-install.in: Use mkdir -p to create grub directory.
29253 * util/i386/efi/grub-install.in: Likewise.
29254 * util/ieee1275/grub-install.in: Likewise.
29256 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29258 * Makefile.in (LEX): new variable.
29260 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29262 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29263 `=' and added double quotes on operands of this equality test.
29265 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29267 * Makefile.in (uninstall): Remove a leftover debug echo.
29268 Reported by: Grégoire Sutre
29270 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29272 MIPS multiboot2 support.
29274 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29275 (multiboot2_mod_SOURCES): New variable.
29276 (multiboot2_mod_CFLAGS): Likewise.
29277 (multiboot2_mod_LDFLAGS): Likewise.
29278 (multiboot2_mod_ASFLAGS): Likewise.
29279 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29281 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29282 (MULTIBOOT_MBI_REGISTER): Likewise.
29283 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29284 (MULTIBOOT_ELF32_MACHINE): Likewise.
29285 (MULTIBOOT_ELF64_MACHINE): Likewise.
29286 * include/grub/mips/multiboot.h: New file.
29287 * include/grub/video.h (grub_video_driver_id): New type
29288 GRUB_VIDEO_DRIVER_SM712.
29289 (grub_video_get_info_and_fini): Export.
29290 (grub_video_get_palette): Likewise.
29291 (grub_video_get_driver_id): Likewise.
29292 * include/multiboot2.h: Resynced with spec.
29293 * loader/i386/multiboot.c: Moved from here ...
29294 * loader/multiboot.c: ... here. All users updated.
29295 (grub_multiboot_boot): Use platform-specific macros.
29296 * loader/i386/multiboot_elfxx.c: Moved from here ...
29297 * loader/multiboot_elfxx.c: ... here. All users updated.
29298 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29299 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29300 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29302 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29304 Import gnulib argp module.
29306 * gnulib/argp-ba.c: New file.
29307 * gnulib/argp-eexst.c: Likewise.
29308 * gnulib/argp-fmtstream.c: Likewise.
29309 * gnulib/argp-fmtstream.h: Likewise.
29310 * gnulib/argp-fs-xinl.c: Likewise.
29311 * gnulib/argp-help.c: Likewise.
29312 * gnulib/argp-namefrob.h: Likewise.
29313 * gnulib/argp-parse.c: Likewise.
29314 * gnulib/argp-pin.c: Likewise.
29315 * gnulib/argp-pv.c: Likewise.
29316 * gnulib/argp-pvh.c: Likewise.
29317 * gnulib/argp-version-etc.c: Likewise.
29318 * gnulib/argp-version-etc.h: Likewise.
29319 * gnulib/argp-xinl.c: Likewise.
29320 * gnulib/argp.h: Likewise.
29322 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29324 * kern/device.c (grub_device_iterate): Clear errors after failed
29327 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29329 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29330 returned by firmware.
29332 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29334 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29335 compilation on coreboot and qemu
29337 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29339 * include/multiboot2.h: Resync with spec.
29341 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29343 Multiboot2 tag support
29345 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29346 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29347 Remove loader/multiboot_loader.c.
29348 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29349 (grub_multiboot2_real_boot): Likewise.
29350 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29351 (grub_get_multiboot_mmap_count): New proto.
29352 (grub_fill_multiboot_mmap): Likewise.
29353 (grub_multiboot_set_video_mode): Likewise.
29354 (grub_multiboot_set_console): Likewise.
29355 (grub_multiboot_load): Likewise.
29356 (grub_multiboot_load_elf): Likewise.
29357 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29358 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29359 * include/multiboot.h: Resynced with specification.
29360 * include/multiboot2.h: Resynced with specification.
29361 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29362 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29363 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29364 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29366 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29367 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29368 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29370 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29372 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29373 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29375 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29376 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29377 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29379 * loader/i386/multiboot_mbi2.c: New file.
29381 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29383 Resync with gnulib.
29385 * Makefile.in (GNULIB_CFLAGS): New variable.
29386 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29387 (grub_script_check_CFLAGS): New variable.
29388 * gnulib/alloca.h: Resync with gnulib.
29389 * gnulib/error.c: Likewise.
29390 * gnulib/error.h: Likewise.
29391 * gnulib/fnmatch.c: Likewise.
29392 * gnulib/fnmatch_loop.c: Likewise.
29393 * gnulib/getdelim.c: Likewise.
29394 * gnulib/getline.c: Likewise.
29395 * gnulib/getopt.c: Likewise.
29396 * gnulib/getopt1.c: Likewise.
29397 * gnulib/getopt_int.h: Likewise.
29398 * gnulib/gettext.h: Likewise.
29399 * gnulib/progname.c: Likewise.
29400 * gnulib/progname.h: Likewise.
29402 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29404 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29405 which is the case with --disabled-nls.
29407 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29408 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29409 * util/misc.c: Likewise.
29410 * util/mkisofs/mkisofs.c: Likewise.
29411 * util/mkisofs/mkisofs.h: Likewise.
29413 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29415 Simplify Apple CC support.
29417 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29418 Add 0 byte at the end not to have a symbol with empty target.
29419 * mmap/i386/pc/mmap_helper.S: Likewise.
29420 * genmk.rb: Ignore errors 2030 and 2050.
29421 * kern/i386/pc/startup.S: Use LOCAL when possible.
29423 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29425 Testcase and the fix for final semicolon on cmdline.
29427 * tests/grub_script_final_semicolon.in: New testcase.
29428 * conf/tests.rmk: Rules for the new testcase.
29429 * script/parser.y: Grammar fix.
29431 2010-03-26 BVK Chaitanya <bvk@localhost>
29433 Blank lines testcase for GRUB script.
29435 * tests/grub_script_blanklines.in: New testcase.
29436 * conf/tests.rmk: Rules for the new testcase.
29438 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29440 Don't use __FILE__.
29442 * genmk.rb: Add -DGRUB_FILE to all C targets.
29443 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29444 * include/grub/list.h: Likewise.
29445 * include/grub/misc.h: Likewise.
29446 * include/grub/mm.h: Likewise.
29447 * include/grub/test.h: Likewise.
29448 * kern/mm.c: Likewise.
29449 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29451 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29453 Sunpc partitions support.
29455 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29456 (grub_fstest_SOURCES): Likewise.
29457 (pkglib_MODULES): Add part_sunpc.mod.
29458 (part_sunpc_mod_SOURCES): New variable.
29459 (part_sunpc_mod_CFLAGS): Likewise.
29460 (part_sunpc_mod_LDFLAGS): Likewise.
29461 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29462 * partmap/sunpc.c: New file.
29464 2010-03-26 BVK Chaitanya <bvk@localhost>
29466 For loop support to GRUB script.
29468 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29469 (grub_script_create_cmdfor): New function prototype.
29470 (grub_script_execute_cmdfor): New function prototype.
29471 * script/execute.c (grub_script_execute_cmdfor): New function.
29472 * script/parser.y (command): New for command.
29473 (forcmd): New grammar rule.
29474 * script/script.c (grub_script_create_cmdfor): New function.
29475 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29477 * tests/grub_script_for1.in: New testcase.
29478 * conf/tests.rmk: Rules for new testcase.
29480 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29484 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29485 'partition' is NULL, grub_partition_get_start already does that.
29486 * commands/loadenv.c (check_blocklists): Likewise.
29487 (write_blocklists): Likewise.
29488 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29489 (grub_fstest_SOURCES): Likewise.
29490 (pkglib_MODULES): Add part_bsd.mod.
29491 (part_bsd_mod_SOURCES): New variable.
29492 (part_bsd_mod_CFLAGS): Likewise.
29493 (part_bsd_mod_LDFLAGS): Likewise.
29494 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29495 (grub_emu_SOURCES): Likewise.
29496 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29497 * include/grub/bsdlabel.h: New file.
29498 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29500 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29501 (grub_partition_map_list): New variable.
29502 (grub_partition_map_register): Inline.
29503 (grub_partition_map_unregister): Likewise.
29504 (FOR_PARTITION_MAPS): New macro.
29505 (grub_partition_map_iterate): Removed.
29506 (grub_partition_get_start): Handle nested partitions.
29507 * include/grub/msdos_partition.h: Remove bsd-related entries.
29508 (grub_pc_partition): Remove.
29509 * kern/disk.c (grub_disk_close): Free partition data.
29510 (grub_disk_adjust_range): Handle nested partitions.
29511 * kern/partition.c (grub_partition_map_probe): New function.
29512 (grub_partition_probe): Parse name to number, handle subpartitions.
29513 (get_partmap): New function.
29514 (grub_partition_iterate): Handle subpartitions.
29515 (grub_partition_get_name): Likewise.
29516 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29517 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29518 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29519 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29521 (acorn_partition_map_probe): Remove.
29522 (acorn_partition_map_get_name): Likewise.
29523 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29525 Set 'index' to 0 since there can be only one partition entry per sector.
29526 (amiga_partition_map_probe): Remove.
29527 (amiga_partition_map_get_name): Likewise.
29528 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29530 Set 'offset' and 'index' to real positions of partitions.
29531 (apple_partition_map_probe): Remove.
29532 (apple_partition_map_get_name): Likewise.
29533 * partmap/bsdlabel.c: New file.
29534 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29536 Allocate 'data' so it can be correctly freed.
29537 Set 'index' to offset inside sector.
29538 (gpt_partition_map_probe): Remove.
29539 (gpt_partition_map_get_name): Likewise.
29540 * partmap/msdos.c (grub_partition_parse): Remove.
29541 (pc_partition_map_iterate): Don't force raw access.
29543 Make 'ext_offset' a local variable.
29544 (pc_partition_map_probe): Remove.
29545 (pc_partition_map_get_name): Remove.
29546 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29548 (sun_partition_map_probe): Remove.
29549 (sun_partition_map_get_name): Likewise.
29550 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29551 (grub_pcpart_type): Likewise.
29552 * util/hostdisk.c (open_device): Handle new numbering scheme.
29553 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29554 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29555 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29556 * util/grub-install.in: Insert all subpartition modules.
29557 * util/ieee1275/grub-install.in: Likewise.
29559 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29561 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29564 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29566 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29568 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29570 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29571 match where 'make install' puts them.
29572 * util/i386/efi/grub-install.in: Likewise.
29574 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29576 * .bzrignore: Add gentrigtables, grub-script-check,
29577 grub_script_check_init.c, grub_script_check_init.h, and
29580 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29582 * kern/parser.c: Indented.
29584 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29586 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29588 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29590 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29591 alpha_mask_size == 0 case.
29593 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29595 GRUB shell lexer and parser improvements.
29597 * conf/any-emu.rmk: Build rule updates.
29598 * conf/common.rmk: Likewise.
29599 * conf/i386-coreboot.rmk: Likewise.
29600 * conf/i386-efi.rmk: Likewise.
29601 * conf/i386-ieee1275.rmk: Likewise.
29602 * conf/i386-pc.rmk: Likewise.
29603 * conf/powerpc-ieee1275.rmk: Likewise.
29604 * conf/x86_64-efi.rmk: Likewise.
29606 * configure.ac: Configure check for flex.
29608 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29610 (grub_lexer_param): Struct member updates.
29611 (grub_parser_param): Likewise.
29612 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29613 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29614 (grub_script_lexer_init): Prototype update.
29615 (grub_script_lexer_record_start): Likewise.
29616 (grub_script_lexer_record_stop): Likewise.
29617 (grub_script_lexer_yywrap): New function prototype.
29618 (grub_script_lexer_fini): Likewise.
29619 (grub_script_execute_argument_to_string): Removed by...
29620 (grub_script_execute_argument_to_argv): ...better version.
29622 * script/execute.c (ROUND_UPTO): New macro.
29623 (grub_script_execute_cmdline): Out of memory fixes.
29624 (grub_script_execute_menuentry): Likewise.
29625 (grub_script_execute_argument_to_string): Removed. Update all
29627 (grub_script_execute_argument_to_argv): ...better version.
29628 * script/function.c (grub_script_function_create): Use
29629 grub_script_execute_argument_to_argv instead of
29630 grub_script_execute_argument_to_string.
29632 * script/lexer.c (check_varstate): Removed.
29633 (check_textstate): Removed.
29634 (grub_script_lexer_record_start): Likewise.
29635 (grub_script_lexer_record_stop): Likewise.
29636 (recordchar): Replaced with...
29637 (grub_script_lexer_record): ...new function.
29638 (nextchar): Removed.
29639 (grub_script_lexer_init): Rewritten.
29640 (grub_script_yylex): Rewritten.
29641 (append_newline): New function.
29642 (grub_script_lexer_yywrap): New function.
29643 (grub_script_lexer_fini): New function.
29644 (grub_script_yyerror): Sets error flag.
29646 * script/yylex.l: New file.
29647 (grub_lexer_yyfree): Wrapper for flex yyffre.
29648 (grub_lexer_yyalloc): Likewise.
29649 (grub_lexer_yyrealloc): Likewise.
29650 * script/parser.y: Refactored.
29652 * script/script.c (grub_script_arg_add): Out of memory fixes.
29653 (grub_script_add_arglist): Likewise.
29654 (grub_script_create_cmdline): Likewise.
29655 (grub_script_create_cmdmenu): Likewise.
29656 (grub_script_add_cmd): Likewise.
29657 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29658 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29661 * tests/grub_script_echo1.in: New testcase.
29662 * tests/grub_script_vars1.in: New testcase.
29663 * tests/grub_script_echo_keywords.in: New testcase.
29665 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29667 Remove some redundancy in build system.
29669 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29670 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29671 (TARGET_LDFLAGS): Add -nostdlib.
29672 (TARGET_IMG_LDFLAGS): Likewise.
29673 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29674 anything since mmap isn't available.
29675 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29677 (pkglib_MODULES): Remove reboot.mod.
29678 (reboot_mod_SOURCES): Removed.
29679 (reboot_mod_CFLAGS): Likewise.
29680 (reboot_mod_LDFLAGS): Likewise.
29681 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29682 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29683 (DEFSYMFILES): Add kernel_syms.lst.
29684 (kernel_img_HEADERS): Add common headers.
29685 (symlist.c): New target.
29686 (kernel_syms.lst): Likewise.
29687 (pkglib_MODULES): Add memdisk.mod.
29688 (memdisk_mod_SOURCES): New variable.
29689 (memdisk_mod_CFLAGS): Likewise.
29690 (memdisk_mod_LDFLAGS): Likewise.
29691 (pkglib_MODULES): Add reboot.mod.
29692 (reboot_mod_SOURCES): New variable.
29693 (reboot_mod_CFLAGS): Likewise.
29694 (reboot_mod_LDFLAGS): Likewise.
29695 (pkglib_MODULES): Add date.mod.
29696 (date_mod_SOURCES): New variable.
29697 (date_mod_CFLAGS): Likewise.
29698 (date_mod_LDFLAGS): Likewise.
29699 (pkglib_MODULES): Add datehook.mod.
29700 (datehook_mod_SOURCES): New variable.
29701 (datehook_mod_CFLAGS): Likewise.
29702 (datehook_mod_LDFLAGS): Likewise.
29703 (pkglib_MODULES): Add lsmmap.mod.
29704 (lsmmap_mod_SOURCES): New variable.
29705 (lsmmap_mod_CFLAGS): Likewise.
29706 (lsmmap_mod_LDFLAGS): Likewise.
29707 (pkglib_MODULES): Add boot.mod.
29708 (boot_mod_SOURCES): New variable.
29709 (boot_mod_CFLAGS): Likewise.
29710 (boot_mod_LDFLAGS): Likewise.
29711 * conf/i386-coreboot.rmk: Removed redundant parts.
29712 * conf/i386-ieee1275.rmk: Likewise.
29713 * conf/i386-pc.rmk: Likewise.
29714 * conf/mips-yeeloong.rmk: Likewise.
29715 * conf/mips.rmk: Likewise.
29716 * conf/powerpc-ieee1275.rmk: Likewise.
29717 * conf/sparc64-ieee1275.rmk: Likewise.
29718 * conf/x86_64-efi.rmk: Likewise.
29719 * conf/i386-coreboot.rmk: Moved qemu parts ..
29720 * conf/i386-qemu.rmk: ... here
29721 * conf/i386-efi.rmk: Moved common parts to...
29722 * conf/x86-efi.rmk: ... here.
29723 * conf/i386.rmk: Added modules common to all x86 variants.
29724 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29725 * disk/memdisk.c: Remove grub/machine/kernel.h.
29726 * gensymlist.sh.in: Include symbol.h.
29727 * hook/datehook.c: Correct module name.
29728 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29729 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29730 * include/grub/i386/efi/serial.h: New file.
29731 * include/grub/x86_64/efi/serial.h: Likewise.
29732 * util/time.c: Likewise.
29733 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29735 2010-03-14 Colin King <colin.king@ubuntu.com>
29736 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29738 Shrink the pre-partition-table part of boot.img by eight bytes.
29740 * boot/i386/pc/boot.S (ERR): New macro.
29741 (chs_mode): Use ERR.
29742 (geometry_error): Likewise.
29743 (hd_probe_error): Remove. This is only used once, so we wrwite
29745 (read_error): Instead of printing read_error_string, just set up
29746 %si and fall through to ...
29747 (error_message): ... this new function, also used by ERR.
29749 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29751 Speed up consecutive hostdisk operations on the same device.
29753 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29754 (grub_util_biosdisk_open): Initialise disk->data.
29755 (struct linux_partition_cache): New structure.
29756 (linux_find_partition): Cache partition start positions; these are
29757 expensive to compute on every read and write.
29758 (open_device): Cache open file descriptor in disk->data, so that we
29759 don't have to reopen it and flush the buffer cache for consecutive
29760 operations on the same device.
29761 (grub_util_biosdisk_close): New function.
29762 (grub_util_biosdisk_dev): Set `close' member.
29764 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29765 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29766 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29767 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29768 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29770 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29772 Compile parts of grub-emu as modules.
29774 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29775 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29776 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29777 (all-local): Add $(GRUB_EMU).
29778 (install-local): Install $(GRUB_EMU).
29779 (uninstall): Uninstall $(GRUB_EMU).
29780 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29781 * kern/dl.c: Likewise.
29782 * commands/sleep.c: Not include machine/time.h.
29783 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29784 (COMMON_CFLAGS): Likewise.
29785 (sbin_UTILITIES): Remove grub-emu.
29786 (grub_emu_SOURCES): Removed.
29787 (kernel_img_RELOCATABLE): New variable.
29788 (pkglib_PROGRAMS): Add kernel.img.
29789 (kernel_img_SOURCES): New variable
29790 (kernel_img_CFLAGS): Likewise.
29791 (kernel_img_LDFLAGS): Likewise.
29792 (TARGET_NO_STRIP): Likewise.
29793 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29794 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29795 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29796 (grub-emu): New target.
29797 (GRUB_EMU): New variable.
29798 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29799 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29800 * loader/xnu.c: Likewise.
29801 * include/grub/pci.h: Likewise.
29802 * genemuinit.sh: New file.
29803 * genemuinitheader.sh: Likewise.
29804 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29805 Support TARGET_NO_DYNAMIC_MODULES.
29806 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29807 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29808 * disk/loopback.c: Likewise.
29809 * font/font_cmd.c: Likewise.
29810 * partmap/acorn.c: Likewise.
29811 * partmap/amiga.c: Likewise.
29812 * partmap/apple.c: Likewise.
29813 * partmap/gpt.c: Likewise.
29814 * partmap/msdos.c: Likewise.
29815 * partmap/sun.c: Likewise.
29816 * parttool/msdospart.c: Likewise.
29817 * term/gfxterm.c: Likewise.
29818 * video/bitmap.c: Likewise.
29819 * video/readers/jpeg.c: Likewise.
29820 * video/readers/png.c: Likewise.
29821 * video/readers/tga.c: Likewise.
29822 * video/video.c: Likewise.
29823 * util/grub-emu.c (read_command_list): Removed.
29824 (main): Don't call util_init_nls.
29825 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29826 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29828 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29830 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29831 date.mod, datehook.mod.
29832 (datetime_mod_SOURCES): New variable.
29833 (datetime_mod_CFLAGS): Likewise.
29834 (datetime_mod_LDFLAGS): Likewise.
29835 (date_mod_SOURCES): Likewise.
29836 (date_mod_CFLAGS): Likewise.
29837 (date_mod_LDFLAGS): Likewise.
29838 (datehook_mod_SOURCES): Likewise.
29839 (datehook_mod_CFLAGS): Likewise.
29840 (datehook_mod_LDFLAGS): Likewise.
29841 * conf/sparc64-ieee1275.rmk: Likewise.
29842 * lib/ieee1275/datetime.c: New file.
29844 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29846 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29847 (ieee1275_fb_mod_SOURCES): New variable.
29848 (ieee1275_fb_mod_CFLAGS): Likewise.
29849 (ieee1275_fb_mod_LDFLAGS): Likewise.
29850 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29852 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29853 (HEAP_MAX_ADDR): Likewise.
29854 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29856 Correct stop condition.
29857 (grub_ieee1275_devices_iterate): New function.
29858 * video/ieee1275.c: New file.
29860 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29862 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
29864 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
29866 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
29867 SCRATCH_PAD_DISKBOOT as scratch.
29868 (bootit): Pass Openfirmware pointer in %o4.
29869 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
29871 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
29872 with util/grub-mkrawimage.c.
29873 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
29874 * include/grub/aout.h (AOUT_MID_SUN): New definition.
29875 (grub_aout_get_type) [GRUB_UTIL]: Removed.
29876 (grub_aout_load) [GRUB_UTIL]: Likewise.
29877 * include/grub/kernel.h (grub_modules_get_end): New proto.
29878 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
29879 (SCRATCH_PAD_BOOT): New definition.
29880 (SCRATCH_PAD_DISKBOOT): Likewise.
29881 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
29882 * include/grub/sparc64/ieee1275/ieee1275.h
29883 (grub_ieee1275_original_stack): New variable
29884 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29886 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
29887 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
29888 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
29889 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
29890 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
29891 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
29892 (grub_platform_image_format_t): New type.
29893 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
29894 * kern/main.c (grub_modules_get_end)
29895 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
29896 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
29897 (codestart): Switch stacks.
29898 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
29900 (grub_heap_init): Use grub_modules_get_end.
29901 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
29903 * util/grub-mkrawimage.c (generate_image): Support sparc64.
29905 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
29907 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
29909 * util/grub-mkrescue.in: Base ISO UUID on UTC.
29911 2010-03-08 Matt Kraai <kraai@ftbfs.org>
29913 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
29916 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
29918 * genmoddep.awk: Output all missing symbols and not only first.
29920 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29922 * NEWS: Put the date of 1.98 release.
29924 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29926 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
29929 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29931 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
29932 completition in the middle of string.
29934 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29936 * util/grub-mkrescue.in: Use mktemp with explicit template.
29938 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29940 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
29942 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29944 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
29947 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29949 Fix FreeBSD compilation.
29951 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
29952 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
29954 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29956 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
29958 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29960 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
29962 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29964 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
29966 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
29968 Support relative image path in theme file.
29970 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
29971 (image_set_property): Handle theme_dir and relative path.
29973 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29975 * configure.ac: Alias amd64 to x86_64.
29977 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29979 * NEWS: mention multiboot on EFI.
29981 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29983 * kern/main.c (grub_load_modules): Handle errors from init functions of
29986 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29988 * normal/autofs.c (autoload_fs_module): Handle errors.
29990 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29992 Disable linux.mod on qemu-mips since it's not functional and leads
29993 to compilation failure.
29995 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
29996 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
29997 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
29998 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
29999 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30000 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30001 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30002 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30003 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30004 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30005 Reported by: BVK Chaitanya
30007 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30009 * INSTALL: Add gettext as a dependency and add qemu to a new section
30010 "Prerequisites for make-check".
30012 2010-03-04 Christian Franke <franke@computer.org>
30014 * util/grub-pe2elf.c: Add missing include "progname.h".
30016 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30018 * normal/crypto.c (read_crypto_list): Fix a typo.
30019 Reported by: Seth Goldberg.
30021 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30023 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30024 Reported by: Seth Goldberg.
30026 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30028 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30031 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30033 * genmk.rb: Remove terminal*.lst in make clean.
30034 Reported by: Seth Goldberg.
30036 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30038 * util/i386/efi/grub-install.in: Copy gettext files.
30040 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30042 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30044 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30046 Wait for user entry basing on presence of output rather than on errors.
30048 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30049 (grub_install_newline_hook): Likewise.
30050 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30051 * normal/menu.c (show_menu): Check line_counter to determine presence
30053 * normal/term.c (grub_normal_line_counter): New variable.
30054 (grub_normal_get_line_counter): New function.
30055 (grub_install_newline_hook): Likewise.
30057 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30059 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30061 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30063 * configure.ac: Update version to 1.98.
30065 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30067 * util/grub.d/10_linux.in (linux_entry): Don't default to
30068 gfxpayload=keep if Linux doesn't support video handover.
30070 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30072 Don't compile video modules on yeeloong since video subsystem is part
30075 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30076 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30077 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30078 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30079 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30080 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30081 * include/grub/bitmap_scale.h: Likewise.
30082 * include/grub/bufio.h: Likewise.
30083 * include/grub/font.h: Likewise.
30084 * include/grub/gfxterm.h: Likewise.
30085 * include/grub/video.h: Likewise.
30086 * include/grub/vbe.h: Don't include video_fb.h.
30087 * video/i386/pc/vbe.c: Include video_fb.h.
30088 * commands/i386/pc/vbetest.c: Include video.h.
30090 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30092 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30093 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30094 default entry if GRUB_SAVEDEFAULT=true. This allows using
30095 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30096 saving a new default on every boot.
30098 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30100 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30101 * normal/term.c (read_terminal_list): Likewise.
30102 * normal/main.c (grub_normal_init_page): Likewise.
30103 (grub_normal_read_line_real): Likewise.
30105 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30107 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30109 Reported by: Seth Goldberg.
30111 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30113 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30114 duplicate declaration of `start'.
30116 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30118 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30120 Reported by: Georgy Buranov
30122 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30124 * util/grub-mkrawimage.c (usage): Change string formatting to
30127 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30129 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30132 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30134 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30135 Reported by: Michael Suchanek.
30137 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30139 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30140 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30142 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30144 Remove any reference to non-free fonts.
30146 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30147 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30148 uses non-free components.
30149 * font/font.c (grub_font_get_name): Remove example name.
30150 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30151 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30152 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30153 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30155 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30157 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30159 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30161 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30163 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30165 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30167 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30169 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30171 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30173 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30174 * docs/grub.texi (Command-line and menu entry commands): Document play
30177 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30179 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30180 parse arguments as inline tempo and notes. Move code for playing notes
30182 (play): ... new function.
30184 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30186 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30187 grub_uint16_t instead of short.
30188 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30189 disk from little endian to cpu endianness.
30191 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30193 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30194 GRUB_TICKS_PER_SECOND instead of 120.
30196 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30198 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30199 escape sequence after \e.
30201 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30203 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30204 non-ASCII characters.
30206 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30208 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30209 set root in single quotes to prevent \, from being unescaped.
30211 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30213 Prevent unknown commands from stopping menuentry execution.
30215 * script/execute.c (grub_script_execute_cmdline): Print error after
30218 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30220 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30221 Reported by: Pavel Pisa.
30223 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30225 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30227 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30229 Merge grub_ieee1275_map_physical into grub_map and rename to
30232 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30233 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30235 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30236 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30238 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30240 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30242 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30243 opening and not after.
30245 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30247 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30250 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30252 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30253 (alloc_phys): Use ALIGN_UP instead of align_addr.
30255 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30257 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30259 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30261 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30263 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30265 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30268 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30270 Fix over-4GiB seek on sparc64.
30272 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30273 Replace pos_i and pos_lo with pos. All users updated.
30274 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30276 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30278 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30281 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30283 * util/grub-mkrawimage.c (main): Call set_program_name.
30285 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30287 Properly align 64-bit targets.
30289 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30290 (generate_image): Use ALIGN_ADDR.
30292 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30294 Properly create cross-endian images.
30296 * include/grub/types.h (grub_host_to_target_addr): New macro
30297 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30299 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30301 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30303 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30305 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30307 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30308 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30309 (grub_linux_boot): Divide by 64K when on VESA.
30311 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30313 Support GRUB_GFXPAYLOAD_LINUX.
30315 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30316 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30318 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30320 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30321 to show messages instead of discarding them.
30322 Process errors after executing command and not before. Keep old method
30325 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30327 * configure.ac: Check for ft2build.h.
30329 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30331 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30333 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30335 * genkernsyms.sh.in: Use TARGET_CC.
30337 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30341 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30343 * include/grub/multiboot2.h: Remove leftover file.
30344 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30345 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30347 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30349 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30351 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30353 Fix warnings in grub-emu when compiling with maximum warning options.
30355 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30356 (grub_arch_modules_addr): Return 0 and not NULL.
30357 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30358 (xstrdup): Use newstr instead of dup.
30359 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30360 of disk to dsk to avoid shadowing.
30361 (find_free_slot): Fix prototype.
30362 * util/getroot.c (grub_util_is_dmraid): Make static.
30363 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30364 Add missing prototype.
30365 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30367 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30369 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30372 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30374 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30377 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30379 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30380 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30381 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30382 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30383 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30384 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30386 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30388 * include/grub/err.h (grub_err_printf): Don't export.
30390 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30392 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30394 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30396 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30397 * kern/misc.c (grub_gettext_dummy): Make static.
30399 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30401 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30403 * kern/term.c (grub_putchar): Likewise.
30405 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30407 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30408 buggy hook call and memory leak.
30410 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30412 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30414 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30416 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30418 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30420 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30422 Return grub_errno on allocation error.
30424 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30426 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30428 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30430 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30431 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30433 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30435 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30437 (grub_pxefs_open): Likewise.
30439 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30441 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30442 * util/grub.d/10_kfreebsd.in: Likewise.
30443 * util/grub.d/10_linux.in: Likewise.
30445 2010-02-06 Colin D Bennett <colin@gibibit.com>
30447 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30448 (gfxmenu_mod_SOURCES): New variable.
30449 (gfxmenu_mod_CFLAGS): Likewise.
30450 (gfxmenu_mod_LDFLAGS): Likewise.
30451 * include/grub/term.h (grub_term_set_current_output): Declare
30453 * docs/gfxmenu-theme-example.txt: New file.
30454 * gfxmenu/gfxmenu.c: Likewise.
30455 * gfxmenu/gui_box.c: Likewise.
30456 * gfxmenu/gui_canvas.c: Likewise.
30457 * gfxmenu/gui_circular_progress.c: Likewise.
30458 * gfxmenu/gui_image.c: Likewise.
30459 * gfxmenu/gui_label.c: Likewise.
30460 * gfxmenu/gui_list.c: Likewise.
30461 * gfxmenu/gui_progress_bar.c: Likewise.
30462 * gfxmenu/gui_string_util.c: Likewise.
30463 * gfxmenu/gui_util.c: Likewise.
30464 * gfxmenu/icon_manager.c: Likewise.
30465 * gfxmenu/model.c: Likewise.
30466 * gfxmenu/named_colors.c: Likewise.
30467 * gfxmenu/theme_loader.c: Likewise.
30468 * gfxmenu/view.c: Likewise.
30469 * gfxmenu/widget-box.c: Likewise.
30470 * include/grub/gfxmenu_model.h: Likewise.
30471 * include/grub/gfxmenu_view.h: Likewise.
30472 * include/grub/gfxwidgets.h: Likewise.
30473 * include/grub/gui.h: Likewise.
30474 * include/grub/gui_string_util.h: Likewise.
30475 * include/grub/icon_manager.h: Likewise.
30477 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30479 Agglomerate scrolling in gfxterm.
30481 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30482 (grub_virtual_screen_setup): Initialise 'total_screen'.
30483 (write_char): Split to ...
30484 (paint_char): ... this ...
30485 (write_char): ... and this.
30486 (paint_char): Handle delayed scrolling.
30487 (draw_cursor): Likewise.
30488 (scroll_up): Split to ...
30489 (real_scroll): ... this ...
30490 (scroll_up): ... and this.
30491 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30493 (grub_gfxterm_refresh): Call real_scroll.
30495 2010-02-06 Colin D Bennett <colin@gibibit.com>
30497 * include/grub/misc.h (grub_iscntrl): New inline function.
30498 (grub_isalnum): Likewise.
30499 (grub_strtol): Likewise.
30501 2010-02-06 Colin D Bennett <colin@gibibit.com>
30503 * normal/menu_text.c (get_entry_number): Move from here ...
30504 * normal/menu.c (get_entry_number): ... moved here.
30505 * include/grub/menu.h (grub_menu_get_default_entry_index):
30507 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30508 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30509 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30510 (grub_menu_viewer_should_return): Likewise.
30511 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30512 * normal/menu_text.c (run_menu): Enable menu switching.
30513 * normal/menu_viewer.c (should_return): New variable.
30514 (menu_viewer_changed): Likewise.
30515 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30516 (grub_menu_viewer_should_return): New function.
30517 (menuviewer_write_hook): Likewise.
30518 (grub_menu_viewer_init): Likewise.
30520 2010-02-06 Colin D Bennet <colin@gibibit.com>
30521 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30523 Support for gfxterm in a window.
30525 * include/grub/gfxterm.h: New file.
30526 * include/grub/video.h (struct grub_video_rect): New declaration.
30527 (grub_video_rect_t): Likewise.
30528 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30529 (refcount): New variable.
30530 (render_target): Likewise.
30531 (window): Likewise.
30532 (repaint_callback): Likewise.
30533 (grub_virtual_screen_setup): Use 'render_target'.
30534 (init_window): New function.
30535 (grub_gfxterm_init_window): Likewise.
30536 (grub_gfxterm_init): Check reference counter.
30538 (destroy_window): New function.
30539 (grub_gfxterm_destroy_window): Likewise.
30540 (grub_gfxterm_fini): Check reference counter.
30541 Use destroy_window.
30542 (redraw_screen_rect): Restore viewport.
30543 Use 'render_target' and 'window'.
30544 Call 'repaint_callback'.
30545 (write_char): Use 'render_target'.
30546 (draw_cursor): Likewise.
30547 (scroll_up): Restore viewport.
30548 Use 'render_target' and 'window'.
30549 Call 'repaint_callback'.
30550 (grub_gfxterm_cls): Likewise.
30551 (grub_gfxterm_refresh): Use 'window'.
30552 (grub_gfxterm_set_repaint_callback): New function.
30553 (grub_gfxterm_background_image_cmd): Use 'window'.
30554 (grub_gfxterm_get_term): New function.
30555 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30557 2010-02-06 Colin D Bennett <colin@gibibit.com>
30559 Bitmap scaling support.
30561 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30562 (bitmap_scale_mod_SOURCES): New variable.
30563 (bitmap_scale_mod_CFLAGS): Likewise.
30564 (bitmap_scale_mod_LDFLAGS): Likewise.
30565 * include/grub/bitmap_scale.h: New file.
30566 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30567 (background_image_cmd_options): New variable.
30568 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30569 (cmd): Rename and change type to ...
30570 (background_image_cmd_handle): ... this. All users updated.
30571 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30572 * video/bitmap_scale.c: New file.
30574 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30578 * Makefile.in (LIBSDL): New variable.
30579 (enable_grub_emu_sdl): Likewise.
30580 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30581 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30582 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30583 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30584 * util/sdl.c: New file.
30586 2010-02-06 Colin D Bennett <colin@gibibit.com>
30587 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30589 Double buffering support.
30591 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30592 * include/grub/video.h: Update comment.
30593 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30595 (grub_video_fb_doublebuf_blit_init): New prototype.
30596 * term/gfxterm.c (scroll_up): Support double buffering.
30597 (grub_gfxterm_refresh): Likewise.
30598 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30599 (grub_video_fb_doublebuf_blit_init): Likewise.
30600 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30601 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30602 'displayed_page', 'render_page' and 'update_screen'.
30603 (grub_video_vbe_fini): Free offscreen buffer.
30604 (doublebuf_pageflipping_commit): New function.
30605 (doublebuf_pageflipping_update_screen): Likewise.
30606 (doublebuf_pageflipping_init): Likewise.
30607 (double_buffering_init): Likewise.
30608 (grub_video_vbe_setup): Enable doublebuffering.
30609 (grub_video_vbe_swap_buffers): Implement.
30610 (grub_video_vbe_set_active_render_target): Handle double buffering.
30611 (grub_video_vbe_get_active_render_target): Likewise.
30612 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30613 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30614 (grub_video_vbe_enable_double_buffering): Likewise.
30615 (grub_video_vbe_swap_buffers): Use update_screen.
30616 (grub_video_set_mode): Use double buffering.
30618 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30620 * maintainance/gentrigtables.py: Remove.
30621 * lib/trig.c: Likewise.
30623 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30625 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30627 (trigtables.c): New rule.
30628 (gentrigtables): Likewise.
30629 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30631 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30633 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30636 2010-02-06 Colin D Bennet <colin@gibibit.com>
30638 Trigonometry support.
30640 * include/grub/trig.h: New file.
30641 * lib/trig.c: Likewise.
30642 * maintainance/gentrigtables.py: Likewise.
30643 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30644 (trig_mod_SOURCES): New variable.
30645 (trig_mod_CFLAGS): Likewise.
30646 (trig_mod_LDFLAGS): Likewise.
30648 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30650 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30653 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30655 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30658 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30660 * util/hostdisk.c (open_device): Don't use partition device when reading
30661 before the partition.
30662 (grub_util_biosdisk_read): Don't read from partition and before the
30663 partition in single operation.
30664 (grub_util_biosdisk_write): Don't write to partition and before the
30665 partition in single operation.
30667 2010-02-03 Torsten Landschoff <torsten@debian.org>
30669 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30672 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30674 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30676 (grub_biosdisk_write): Refuse to write to CDROM.
30678 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30680 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30682 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30684 * font/font.c (find_glyph): Check that bmp_idx is available before
30686 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30687 with (font == NULL).
30689 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30691 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30693 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30695 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30696 * util/grub-script-check.c (getline): Fix empty lines case.
30698 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30700 * Makefile.in (check): Exit with fail status when one of the tests
30702 * tests/example_functional_test.c (example_test): Fix reversed assert.
30703 * tests/example_unit_test.c (example_test): Likewise.
30705 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30707 * util/grub.d/10_linux.in: This script does not use any of the
30708 contents of gettext.sh, only the external command `gettext', so stop
30709 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30710 the same prefix as GRUB.)
30711 * util/grub.d/10_kfreebsd.in: Likewise.
30713 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30715 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30718 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30720 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30723 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30725 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30726 having a 4KiB and not 32KiB buffer size.
30728 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30730 * util/hostfs.c: Include `<errno.h>'.
30731 (grub_hostfs_read): Handle errors from fseeko() and fread().
30733 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30735 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30736 loop when using read hooks on files whose size isn't sector-aligned.
30738 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30740 Remove unused parameter.
30742 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30743 (grub_iso9660_open): Remove initialization of `data->length'.
30745 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30747 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30748 memleak conditions.
30750 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30752 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30753 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30755 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30757 * util/bin2h.c (usage): Fix warning (space after backslash).
30759 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30761 * font/font.c: Include `grub/fontformat.h.
30762 Remove font file format constants.
30763 (grub_font_load): Use the new macros.
30764 * include/grub/fontformat.h: New file.
30765 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30766 (write_font_pf2): Use the new macros.
30768 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30770 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30773 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30775 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30777 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30778 (_start): Macroify `0x7F'.
30780 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30781 (make_install_device): Use "(pxe)" as fallback prefix when booting
30784 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30786 * configure.ac: Reset LIBS after check for libgcc symbols.
30788 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30790 * util/hostdisk.c (open_device): Add trailing newline to debug
30793 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30795 * configure.ac: Check for `limits.h'.
30796 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30798 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30800 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30801 capitalize error strings.
30803 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30805 * util/grub.d/10_hurd.in: Add a recovery mode.
30807 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30809 * configure.ac: Check for libgcc symbols with -nostdlib.
30811 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30813 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30815 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30817 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30818 stack since heap may be unavailable at that point.
30819 (grub_ofconsole_gotoxy): Likewise.
30821 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30823 * configure.ac: Check for _restgpr_14_x.
30824 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30825 and _savegpr_* prototypes.
30827 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30829 Use generic grub_reboot() for i386-efi.
30831 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30832 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30833 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30835 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30837 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30838 presence of "prefix" variable as it breaks when normal.mod is
30841 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30843 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30844 stack since heap is unavailable at that point.
30846 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30848 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30849 (grub_freebsd_bootinfo): Rewritten.
30850 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30852 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30854 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30856 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30858 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30861 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
30863 * util/misc.c (make_system_path_relative_to_its_root): Change the work
30864 around for handling "/" to the correct fix. Fix a memory leak. Use
30865 xstrdup instead of strdup.
30867 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30869 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
30871 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30873 Optimise glyph lookup by Basic Multilingual Plane lookup array.
30875 * font/font.c (struct grub_font): New member 'bmp_idx'.
30876 (font_init): Initialise 'bmp_idx'.
30877 (load_font_index): Fill 'bmp_idx'.
30878 (find_glyph): Make inline. Use bmp_idx for BMP characters.
30880 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30882 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
30885 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30887 Move context handling out of the kernel.
30889 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
30890 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
30891 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
30892 * conf/i386-efi.rmk: Likewise.
30893 * conf/i386-ieee1275.rmk: Likewise.
30894 * conf/i386-pc.rmk: Likewise.
30895 * conf/powerpc-ieee1275.rmk: Likewise.
30896 * conf/sparc64-ieee1275.rmk: Likewise.
30897 * conf/x86_64-efi.rmk: Likewise.
30898 * include/grub/env.h: Include grub/menu.h.
30899 (grub_env_var_type): Removed.
30900 (grub_env_var): Replaced field 'type' with 'global'.
30901 (grub_env_find): New prototype.
30902 (grub_env_context_open): Remove EXPORT_FUNC.
30903 (grub_env_context_close): Likewise.
30904 (grub_env_export): Likewise.
30905 (grub_env_set_data_slot): Removed.
30906 (grub_env_get_data_slot): Likewise.
30907 (grub_env_unset_data_slot): Likewise.
30908 (grub_env_unset_menu): New prototype.
30909 (grub_env_set_menu): Likewise.
30910 (grub_env_get_menu): Likewise.
30911 * include/grub/env_private.h: New file.
30912 * include/grub/normal.h (grub_context_init): New prototype.
30913 (grub_context_fini): Likewise.
30914 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
30915 * normal/context.c (grub_cmd_export): ... to here.
30916 * kern/env.c: Include env_private.h.
30917 (HASHSZ): Moved to include/grub/env_private.h.
30918 (grub_env_context): Likewise.
30919 (grub_env_sorted_var): Likewise.
30920 (current_context): Renamed from this ...
30921 (grub_current_context): ...to this. 'static' removed. All users updated.
30922 (grub_env_find): Removed 'static'.
30923 (grub_env_context_open): Moved to normal/context.c.
30924 (grub_env_context_close): Likewise.
30925 (grub_env_export): Likewise.
30926 (mangle_data_slot_name): Removed.
30927 (grub_env_set_data_slot): Likewise.
30928 (grub_env_get_data_slot): Likewise.
30929 (grub_env_unset_data_slot): Likewise.
30930 * kern/main.c (grub_set_root_dev): Don't export root.
30931 It will be done later.
30932 (grub_main): Don't export prefix.
30933 It will be done later.
30934 * normal/context.c: New file.
30935 * normal/main.c (free_menu): Use grub_env_unset_menu.
30936 (grub_normal_add_menu_entry): Use grub_env_get_menu.
30937 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
30938 (GRUB_MOD_INIT(normal)): Call grub_context_init.
30939 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
30941 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30945 * commands/setpci.c: New file.
30946 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
30947 (setpci_mod_SOURCES): New variable.
30948 (setpci_mod_CFLAGS): Likewise.
30949 (setpci_mod_LDFLAGS): Likewise.
30951 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30953 Byte-addressable PCI configuration space.
30955 * bus/pci.c (grub_pci_make_address): Use byte address instead of
30957 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
30958 GRUB_PCI_REG_CACHELINE.
30959 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
30960 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
30961 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
30962 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
30963 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
30964 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
30965 grub_pci_make_address.
30966 (lock_rom_area): Likewise.
30967 * commands/lspci.c (grub_lspci_iter): Use macroses
30968 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
30969 of grub_pci_make_address.
30970 * disk/ata.c (grub_ata_pciinit): Likewise.
30971 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
30972 (GRUB_PCI_REG_VENDOR): Likewise.
30973 (GRUB_PCI_REG_DEVICE): Likewise.
30974 (GRUB_PCI_REG_COMMAND): Likewise.
30975 (GRUB_PCI_REG_STATUS): Likewise.
30976 (GRUB_PCI_REG_REVISION): Likewise.
30977 (GRUB_PCI_REG_CLASS): Likewise.
30978 (GRUB_PCI_REG_CACHELINE): Likewise.
30979 (GRUB_PCI_REG_LAT_TIMER): Likewise.
30980 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
30981 (GRUB_PCI_REG_BIST): Likewise.
30982 (GRUB_PCI_REG_ADDRESSES): Likewise.
30983 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30984 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30985 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30986 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30987 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30988 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30989 (GRUB_PCI_REG_CIS_POINTER): Likewise.
30990 (GRUB_PCI_REG_SUBVENDOR): Likewise.
30991 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
30992 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
30993 (GRUB_PCI_REG_CAP_POINTER): Likewise.
30994 (GRUB_PCI_REG_IRQ_LINE): Likewise.
30995 (GRUB_PCI_REG_IRQ_PIN): Likewise.
30996 (GRUB_PCI_REG_MIN_GNT): Likewise.
30997 (GRUB_PCI_REG_MAX_LAT): Likewise.
30998 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
30999 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31000 * video/efi_uga.c (find_framebuf): Likewise.
31001 * video/sm712.c (grub_video_sm712_setup): Likewise.
31002 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31005 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31007 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31008 can be reliably determined to be supported.
31010 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31012 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31013 that VESA is supported.
31014 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31017 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31019 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31021 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31023 * util/misc.c (make_system_path_relative_to_its_root): Work around
31024 special-casing of "/", as previous incarnation of this routine did.
31026 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31028 Fix any-emu compilation.
31030 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31031 * grub_bin2h_SOURCES: New variable.
31033 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31035 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31037 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31039 * util/grub.d/00_header.in: Fix handling of locale_dir.
31041 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31043 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31044 as possible unifont location (Gentoo).
31045 Reported by: Alexander Brüning
31047 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31049 Don't try to generate lists for kernel.img.
31051 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31052 (pkglib_MODULES): Remove kernel.img.
31053 (kernel_img_EXPORTS): Removed.
31054 (kernel_img_RELOCATABLE): New variable.
31055 * conf/x86_64-efi.rmk: Likewise.
31056 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31058 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31060 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31061 grub_xasprintf or grub_snprintf.
31062 (grub_vsprintf): Likewise.
31063 (grub_snprintf): New proto.
31064 (grub_vsnprintf): Likewise.
31065 (grub_xasprintf): Likewise.
31066 (grub_xvasprintf): Likewise.
31067 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31068 (grub_sprintf): Removed.
31069 (grub_vsnprintf): New function.
31070 (grub_snprintf): Likewise.
31071 (grub_xvasprintf): Likewise.
31072 (grub_xasprintf): Likewise.
31073 (grub_vsprintf): Renamed to ...
31074 (grub_vsnprintf_real): ...this. New argument max_len.
31076 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31078 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31079 fix grub-script-check warning.
31081 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31083 * include/grub/font.h (grub_font_load): Fix prototype.
31085 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31087 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31089 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31091 * include/grub/x86_64/at_keyboard.h: New file.
31093 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31095 * loader/mips/linux.c: Include missing grub/i18n.h.
31097 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31099 * normal/menu.c (notify_execution_failure): Clarify error message.
31101 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31103 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31104 return value (and revert all return statements). Update users.
31106 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31108 * kern/device.c (grub_device_iterate): Allocate new part_ent
31109 structure based on sizeof (*p) rather than sizeof (p->next), to
31110 account for structure padding.
31112 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31113 disk is NULL, which might happen for LVM physical volumes with no
31116 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31118 * loader/mips/linux.c (grub_cmd_initrd)
31119 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31121 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31123 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31124 (grub_video_video_init, grub_video_bitmap_init)
31125 (grub_font_manager_init, grub_term_gfxterm_init)
31126 (grub_at_keyboard_init): New extern declarations.
31127 (grub_machine_init): Initialize gfxterm and at_keyboard.
31129 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31131 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31132 `gfxterm.mod' into core image.
31134 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31135 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31136 (kernel_img_FORMAT): Copy to ...
31138 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31139 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31140 (kernel_img_FORMAT): ... here, and ...
31142 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31143 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31144 (kernel_img_FORMAT): ... here.
31146 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31147 and input (at_keyboard) terminals in kernel.
31148 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31150 (pkglib_MODULES): Remove `pci.mod'.
31151 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31152 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31153 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31154 (at_keyboard_mod_LDFLAGS): Remove variables.
31156 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31158 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31160 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31162 * include/grub/mips/libgcc.h: Only export symbols for functions
31163 that libgcc provides.
31165 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31169 * bus/bonito.c: New file.
31170 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31171 GRUB_PCI_NUM_DEVICES.
31172 * term/i386/pc/serial.c: Move to ...
31173 * term/serial.c: ... here. All users updated.
31174 * util/i386/pc/grub-mkimage.c: Move to ...
31175 * util/grub-mkrawimage.c: ... here. All users updated.
31176 * term/i386/pc/at_keyboard.c: Move to ...
31177 * term/at_keyboard.c: ... here. All users updated.
31178 * conf/mips-qemu-mips.rmk: New file.
31179 * conf/mips-yeeloong.rmk: Likewise.
31180 * conf/mips.rmk: Likewise.
31181 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31183 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31185 (grub_ata_pciinit): Support CS5536.
31186 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31187 * font/font_cmd.c (loadfont_command): Open file before passing it to
31189 (pseudo_file_read): New function.
31190 (pseudo_file_close): Likewise.
31191 (pseudo_fs): New structure.
31192 (load_font_module): New function.
31193 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31194 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31195 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31196 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31197 * include/grub/i386/at_keyboard.h: Split into ...
31198 * include/grub/at_keyboard.h: ... this ...
31199 * include/grub/i386/at_keyboard.h: ... and this.
31200 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31202 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31204 (grub_elf64_size): Likewise.
31205 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31207 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31208 * include/grub/i386/coreboot/serial.h: Rewritten.
31209 * include/grub/i386/ieee1275/serial.h: Include
31210 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31211 * include/grub/i386/pc/serial.h: Moved from here ...
31212 * include/grub/serial.h: ... to here. All users updated.
31213 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31214 (GRUB_PCI_NUM_BUS): Likewise.
31215 (GRUB_PCI_NUM_DEVICES): Likewise.
31216 (grub_pci_device_map_range): Add missing volatile keyword.
31217 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31218 * include/grub/mips/at_keyboard.h: New file.
31219 * include/grub/mips/cache.h: Likewise.
31220 * include/grub/mips/io.h: Likewise.
31221 * include/grub/mips/kernel.h: Likewise.
31222 * include/grub/mips/libgcc.h: Likewise.
31223 * include/grub/mips/pci.h: Likewise.
31224 * include/grub/mips/qemu-mips/boot.h: Likewise.
31225 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31226 * include/grub/mips/qemu-mips/loader.h: Likewise.
31227 * include/grub/mips/qemu-mips/memory.h: Likewise.
31228 * include/grub/mips/qemu-mips/serial.h: Likewise.
31229 * include/grub/mips/qemu-mips/time.h: Likewise.
31230 * include/grub/mips/relocator.h: Likewise.
31231 * include/grub/mips/time.h: Likewise.
31232 * include/grub/mips/types.h: Likewise.
31233 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31234 * include/grub/mips/yeeloong/boot.h: Likewise.
31235 * include/grub/mips/yeeloong/kernel.h: Likewise.
31236 * include/grub/mips/yeeloong/loader.h: Likewise.
31237 * include/grub/mips/yeeloong/memory.h: Likewise.
31238 * include/grub/mips/yeeloong/pci.h: Likewise.
31239 * include/grub/mips/yeeloong/serial.h: Likewise.
31240 * include/grub/mips/yeeloong/time.h: Likewise.
31241 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31242 * kern/elf.c (grub_elf32_size): New parameter. All users
31244 (grub_elf64_size): Likewise.
31245 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31246 Load modules before saying "Welcome to GRUB!".
31247 Call grub_refresh after saying "Welcome to GRUB!".
31248 * kern/mips/cache.S: New file.
31249 * kern/mips/cache_flush.S: Likewise.
31250 * kern/mips/dl.c: Likewise.
31251 * kern/mips/init.c: Likewise.
31252 * kern/mips/qemu-mips/init.c: Likewise.
31253 * kern/mips/startup.S: Likewise.
31254 * kern/mips/yeeloong/init.c: Likewise.
31255 * kern/term.c (grub_putcode): Handle NULL terminal.
31256 (grub_getcharwidth): Likewise.
31257 (grub_getkey): Likewise.
31258 (grub_checkkey): Likewise.
31259 (grub_getkeystatus): Likewise.
31260 (grub_getxy): Likewise.
31261 (grub_getwh): Likewise.
31262 (grub_gotoxy): Likewise.
31263 (grub_cls): Likewise.
31264 (grub_setcolorstate): Likewise.
31265 (grub_setcolor): Likewise.
31266 (grub_getcolor): Likewise.
31267 (grub_refresh): Likewise.
31268 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31269 (write_jump): Add hatch nop.
31270 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31271 * lib/mips/setjmp.S: New file.
31272 * loader/mips/linux.c: Likewise.
31273 * term/i386/pc/at_keyboard.c: Move from here ...
31274 * term/at_keyboard.c: ... to here.
31275 * term/i386/pc/serial.c: Moved from here ...
31276 * term/serial.c: ... to here. All users updated.
31277 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31278 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31279 (serial_translate_key_sequence): Avoid deadlock.
31280 (grub_serial_getkey): Handle backspace.
31281 (grub_serial_putchar): Fix newline handling.
31282 * util/i386/pc/grub-mkimage.c: Move from here ...
31283 * util/grub-mkrawimage.c: ... to here. All users updated.
31284 (generate_image): New parameters 'font_path' and 'format'.
31285 Support embedding font.
31286 Use grub_host_to_target* instead of grub_cpu_to_le*.
31287 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31288 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31289 (options): New option "--font".
31291 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31292 (main): Handle "--font".
31293 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31294 (grub_virtual_screen_setup): Set bg_color_display.
31295 (redraw_screen_rect): Use bg_color_display instead of incorrect
31297 (grub_gfxterm_cls): Likewise.
31298 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31299 Support embedding config file.
31300 (add_segments): Likewise.
31301 (options): New option "--config".
31302 (main): Handle "--config".
31303 * video/sm712.c: New file.
31305 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31307 Fix parallel builds.
31309 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31310 font.c depend on ascii.h).
31312 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31314 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31316 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31318 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31319 By default: disabled.
31320 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31323 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31325 * font/font.c: Update copyright years.
31326 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31328 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31330 * font/font.c: Include `ascii.h'.
31331 (ASCII_BITMAP_SIZE): New macro.
31332 (ascii_font_glyph): Define.
31333 (ascii_glyph_lookup): New function.
31334 (grub_font_get_string_width): Change comment. If glyph not found, use
31335 ascii_glyph_lookup.
31336 (grub_font_get_glyph_with_fallback): If glyph not available returns
31337 ascii_glyph_lookup.
31338 * util/grub-mkfont.c (file_formats): New enum.
31339 (options): Add `ascii-bitmaps' new option.
31340 (usage): Add `asii-bitmaps' new option.
31341 (write_font_ascii_bitmap): New function.
31342 (write_font): Rename to ...
31343 (write_font_p2): ... this. Remove print_glyphs call.
31344 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31345 used. Call print_glyphs.
31346 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31348 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31350 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31351 (grub_bin2h_SOURCES): New variable.
31352 * util/bin2h.c: New file.
31354 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31356 * include/multiboot.h: Resynced with spec.
31357 * include/multiboot2.h: Likewise.
31358 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31359 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31361 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31363 * include/grub/term.h (grub_term_register_input,
31364 grub_term_register_output): Check return of terminal init()
31365 routines, and abort if errors are raised.
31367 * commands/terminal.c: Update copyright year.
31369 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31371 * commands/terminal.c (grub_cmd_terminal_input)
31372 (grub_cmd_terminal_output): Check return of terminal init()
31373 routines, and abort if errors are raised.
31375 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31377 * include/grub/i386/bsd.h: Fix include pathes.
31379 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31381 Add missing *BSD copyright headers.
31383 * include/grub/aout.h: Add BSD licence.
31384 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31385 * include/grub/i386/freebsd_linker.h: ... here,
31386 * include/grub/i386/freebsd_reboot.h: ... here,
31387 * include/grub/i386/netbsd_bootinfo.h: ... here,
31388 * include/grub/i386/netbsd_reboot.h: ... here,
31389 * include/grub/i386/openbsd_bootarg.h: ... here,
31390 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31391 licence to each file.
31393 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31395 * acinclude.m4: Remove `nop' assembly instruction; it's not
31396 implemented by all architectures.
31398 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31400 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31401 ELILO. This is no longer necessary.
31403 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31405 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31407 * util/grub-script-check.c: grub-script-check tool.
31408 * conf/common.rmk: Make rules for grub-script-check.
31410 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31412 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31413 spotting it back in 2008. Shame on me for forgetting he did.
31415 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31417 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31419 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31420 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31421 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31422 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31423 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31424 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31426 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31428 * include/grub/test.h: Add license header.
31429 * tests/example_functional_test.c: Likewise.
31430 * tests/example_unit_test.c: Likewise.
31431 * tests/lib/functional_test.c: Likewise.
31432 * tests/lib/test.c: Likewise.
31433 * tests/lib/unit_test.c: Likewise.
31435 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31437 Use flag-based instead of hook-based video mode selection and "auto"
31440 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31441 (grub_video_set_mode): Changed prototype. All users updated.
31442 (grub_video_check_mode_flag): New inline function.
31443 * video/video.c (parse_modespec): New function.
31444 (grub_video_set_mode): Parse flags and keywords.
31446 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31448 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31451 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31453 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31455 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31457 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31459 * util/grub-emu.c (usage): Likewise.
31460 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31461 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31462 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31463 * util/i386/pc/grub-setup.c (usage): Likewise.
31465 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31467 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31469 (grub_util_info): Likewise.
31470 (grub_util_error): Likewise.
31471 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31472 and/or new lines in `grub_util_warna', `grub_util_info',
31473 `grub_util_error' calls.
31474 * util/getroot.c: Likewise.
31475 * util/grub-editenv.c: Likewise.
31476 * util/grub-emu.c: Likewise.
31477 * util/grub-fstest.c: Likewise.
31478 * util/grub-mkdevicemap.c: Likewise.
31479 * util/grub-mkfont.c: Likewise.
31480 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31481 * util/grub-mkrelpath.c: Likewise.
31482 * util/grub-pe2elf.c: Likewise.
31483 * util/grub-probe.c: Likewise.
31484 * util/hostdisk.c: Likewise.
31485 * util/i386/efi/grub-mkimage.c: Likewise.
31486 * util/i386/pc/grub-mkimage.c: Likewise.
31487 * util/i386/pc/grub-setup.c: Likewise.
31488 * util/ieee1275/ofpath.c: Likewise.
31489 * util/mkisofs/eltorito.c: Likewise.
31490 * util/mkisofs/rock.c: Likewise.
31491 * util/mkisofs/write.c: Likewise.
31492 * util/raid.c: Likewise.
31493 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31494 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31496 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31498 Enable multiboot on non-pc.
31500 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31501 multiboot.mod and multiboot2.mod to ...
31502 * conf/i386.rmk (pkglib_MODULES): ... here.
31503 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31505 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31506 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31508 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31509 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31511 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31512 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31514 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31515 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31517 (ata_mod_SOURCES): Removed.
31518 (ata_mod_CFLAGS): Likewise.
31519 (ata_mod_LDFLAGS): Likewise.
31520 (relocator_mod_SOURCES): Removed.
31521 (relocator_mod_CFLAGS): Likewise.
31522 (relocator_mod_ASFLAGS): Likewise.
31523 (relocator_mod_LDFLAGS): Likewise.
31525 * include/grub/x86_64/multiboot.h: New file.
31526 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31529 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31531 Video multiboot support.
31533 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31535 * include/multiboot.h: Resynced with multiboot specification.
31536 * include/multiboot2.h: Likewise.
31537 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31538 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31539 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31540 (HAS_VGA_TEXT): Likewise.
31541 (accepts_video): New variable.
31542 (grub_multiboot_set_accepts_video): New function.
31543 (grub_multiboot_get_mbi_size): Account for video structures.
31544 (set_video_mode): New function.
31545 (retrieve_video_parameters): Likewise.
31546 (grub_multiboot_make_mbi): Fill video fields.
31548 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31552 * include/grub/video.h (grub_video_driver_id): New type.
31553 (grub_video_adapter): New member 'id'. All users updated.
31554 (grub_video_get_driver_id): New proto.
31555 * video/video.c (grub_video_get_driver_id): New function.
31557 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31559 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31562 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31564 * normal/cmdline.c (print_completion): Gettextizze.
31566 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31568 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31570 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31572 * gettext/gettext.c (grub_gettext_translate): Push and pop
31574 (grub_gettext_delete_list): Change comment style.
31575 * kern/err.c (grub_error): Gettextizze.
31576 (grub_fatal): Gettextizze.
31578 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31580 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31581 (grub_linux16_real_boot): ... this.
31582 * kern/i386/loader.S: Likewise.
31583 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31584 (grub_linux16_boot): New function. Switches to text mode and calls
31585 grub_linux16_real_boot().
31587 * loader/i386/bsd.c: Include `<grub/video.h>'.
31588 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31589 text mode before calling grub_unix_real_boot().
31591 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31592 (grub_multiboot_boot): Switch to text mode before calling
31593 grub_relocator32_boot().
31595 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31596 (grub_chainloader_boot): Switch to text mode before calling
31597 grub_chainloader_real_boot().
31599 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31600 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31602 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31605 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31606 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31608 * util/grub.d/00_header.in: Define a "savedefault" function for use
31610 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31612 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31613 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31615 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31616 saved_entry if boot_once is unset.
31617 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31618 previous saved entry (i.e. grub-reboot).
31620 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31622 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31624 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31626 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31628 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31630 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31632 * util/grub-reboot.in: Fix --version output.
31633 * util/grub-set-default.in: Likewise.
31635 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31637 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31640 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31642 * util/grub.d/00_header.in: Quote the value assigned to `default',
31643 in case it contains spaces.
31645 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31647 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31648 `save_default_entry' call from the macosx case to the linux case.
31650 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31651 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31653 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31654 in `chosen' environment variable.
31655 * normal/menu_text.c (get_entry_number): Check if the variable
31656 matches the title of a menu entry.
31657 (run_menu): Pass menu to get_entry_number.
31659 * util/grub-reboot.in: New file.
31660 * util/grub-set-default.in: New file.
31661 * conf/common.rmk (grub-reboot): New utility.
31662 (grub-set-default): New utility.
31664 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31665 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31666 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31667 move it to `saved_entry' for the next boot. Load environment on
31669 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31670 * util/grub.d/10_hurd.in: Likewise.
31671 * util/grub.d/10_linux.in (linux_entry): Likewise.
31672 * util/grub.d/10_windows.in: Likewise.
31673 * util/grub.d/30_os-prober.in: Likewise.
31675 * util/grub-install.in: Create environment block.
31676 * util/i386/efi/grub-install.in: Likewise.
31677 * util/ieee1275/grub-install.in: Likewise.
31678 * util/sparc64/ieee1275/grub-install.in: Likewise.
31680 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31682 Unit testing framework for GRUB.
31684 * Makefile.in: Test framework build rules for 'make check'.
31685 * conf/tests.rmk: Build rules for individual tests and framework.
31687 * include/grub/test.h: Header file for whitebox tests.
31688 * tests/lib/functional_test.c: Framework support for whitebox
31690 * tests/lib/test.c: Common whitebox testing code for unit and
31692 * tests/lib/unit_test.c: Framework support for whitebox unit
31695 * tests/util/grub-shell-tester.in: Support utility for grub-script
31697 * tests/util/grub-shell.in: Utility to execute grub-script
31698 commands in a Qemu instance.
31700 * tests/example_functional_test.c: Example whitebox functional
31702 * tests/example_grub_script_test.in: Example grub-script test.
31703 * tests/example_scripted_test.in: Example scripted test.
31704 * tests/example_unit_test.c: Example whitebox unit test.
31706 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31708 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31709 Add loader/i386/multiboot_mbi.c.
31710 (multiboot2_mod_SOURCES): Likewise.
31711 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31712 (multiboot2_mod_SOURCES): Likewise.
31713 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31714 (grub_multiboot_make_mbi): Likewise.
31715 (grub_multiboot_free_mbi): Likewise.
31716 (grub_multiboot_init_mbi): Likewise.
31717 (grub_multiboot_add_module): Likewise.
31718 (grub_multiboot_set_bootdev): Likewise.
31719 * loader/i386/multiboot.c (mbi): Removed.
31720 (mbi_dest): Likewise.
31721 (alloc_mbi): New variable.
31722 (grub_multiboot_payload_size): Removed. All users updated.
31723 (grub_multiboot_pure_size): New variable.
31724 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31725 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31726 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31727 (grub_fill_multiboot_mmap): Likewise.
31728 (grub_multiboot_get_bootdev): Likewise.
31729 (grub_multiboot): Use multiboot_mbi functions.
31730 * loader/i386/multiboot_mbi.c: New file.
31732 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31734 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31735 it would result in module crash.
31737 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31739 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31740 (grub_ofconsole_getwh): Split to ...
31741 (grub_ofconsole_getwh): ... this.
31742 (grub_ofconsole_dimensions): ...and this.
31743 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31745 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31747 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31749 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31751 * loader/i386/pc/multiboot2.c: Removed stalled file.
31753 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31755 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31756 Reported by: Grégoire Sutre
31758 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31760 * util/misc.c (canonicalize_file_name): New function.
31761 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31762 instead of realpath().
31764 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31766 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31767 and make it clearer that it's optional. Based on confusion
31770 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31772 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31773 in premature implicit newline.
31775 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31777 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31778 which resulted in garbled command line at the end of screen.
31780 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31782 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31783 initialization with similar approach as with other Linux loaders.
31785 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31787 Fix i386-ieee1275 build.
31789 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31790 and grub_term_height() for video_{width,height} initialization.
31792 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31794 Fix grub-emu build.
31796 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31798 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31799 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31801 Support for multiple terminals.
31803 * Makefile.in (pkglib_DATA): terminal.lst.
31804 (terminal.lst): New target.
31805 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31806 (GRUB_MOD_INIT(handler)): Likewise.
31807 (GRUB_MOD_FINI(handler)): Likewise.
31808 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31809 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31810 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31811 (grub_cmd_sleep): Use grub_term_save_pos.
31812 * commands/terminal.c: New file.
31813 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31814 commands/terminal.c and lib/charset.c.
31815 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31816 (pkglib_MODULES): Add terminal.mod.
31817 (terminal_mod_SOURCES): New variable.
31818 (terminal_mod_CFLAGS): Likewise.
31819 (terminal_mod_LDFLAGS): Likewise.
31820 * genhandlerlist.sh: Don't handle terminals.
31821 * genmk.rb: Generate terminal-*.lst.
31822 * genterminallist.sh: New file.
31823 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31824 (grub_is_valid_utf8): Likewise.
31825 (grub_utf8_to_ucs4_alloc): Likewise.
31826 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31827 (grub_menu_register_viewer): Changed argument.
31828 (grub_menu_try_text): New proto.
31829 (grub_gfxmenu_try_hook): New declaration.
31830 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31831 (grub_menu_init_page): Additional argument term.
31832 (grub_normal_init_page): Likewise.
31833 (grub_cmdline_get): Arguments simplified.
31834 (grub_utf8_to_ucs4_alloc): Removed.
31835 (grub_print_ucs4): Additional argument term.
31836 (grub_getstringwidth): Likewise.
31837 (grub_print_message_indented): Likewise.
31838 (grub_menu_text_register_instances): New proto.
31839 (grub_show_menu): Likewise.
31840 (read_terminal_list): Likewise.
31841 (grub_set_more): Likewise.
31842 * include/grub/parser.h: Include handler.h.
31843 * include/grub/reader.h: Rewritten.
31844 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31845 (GRUB_TERM_WIDTH): Changed to function.
31846 (GRUB_TERM_HEIGHT): Likewise.
31847 (GRUB_TERM_BORDER_WIDTH): Likewise.
31848 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31849 (GRUB_TERM_NUM_ENTRIES): Likewise.
31850 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31851 (GRUB_TERM_CURSOR_X): Likewise.
31852 (grub_term_input_class): Likewise.
31853 (grub_term_output_class): Likewise.
31854 (grub_term_outputs_disabled): New declaration.
31855 (grub_term_inputs_disabled): Likewise.
31856 (grub_term_outputs): Likewise.
31857 (grub_term_inputs): Likewise.
31858 (grub_term_register_input): Rewritten.
31859 (grub_term_register_output): Likewise.
31860 (grub_term_unregister_input): Likewise.
31861 (grub_term_unregister_output): Likewise.
31862 (FOR_ACTIVE_TERM_INPUTS): New macro.
31863 (FOR_DISABLED_TERM_INPUTS): Likewise.
31864 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
31865 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
31866 * include/grub/terminfo.h: Add oterm argument to all protypes.
31867 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
31868 Use grub_rescue_run.
31869 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
31871 * kern/reader.c: Removed. All users updated.
31872 * kern/rescue_reader.c (grub_rescue_init): Removed.
31873 (grub_rescue_reader): Likewise.
31874 (grub_register_rescue_reader): Likewise.
31875 (grub_rescue_run): New function based on kern/reader.c.
31876 * kern/term.c: Adapted for multiterm.
31877 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
31878 (grub_is_valid_utf8): Likewise.
31879 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
31880 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
31882 * loader/i386/linux.c (grub_linux_boot): Likewise.
31883 * normal/auth.c (grub_username_get): New function.
31884 (grub_auth_check_authentication): Use grub_username_get.
31885 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
31886 * normal/color.c: Adapt for multiterm.
31887 * normal/main.c (read_config_file): Don't use grub_reader_loop.
31888 (grub_normal_init_page): Additional argument term.
31889 (read_lists): Call read_terminal_lists.
31890 (grub_enter_normal_mode): Call grub_cmdline_run.
31891 Handle grub_normal_exit_level.
31892 (grub_cmd_normal): Make reentrant.
31893 (grub_cmd_normal_exit): New function.
31894 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
31895 * normal/menu.c: Adapt for multiterm.
31896 * normal/menu_entry.c: Likewise.
31897 * normal/menu_text.c: Likewise.
31898 * normal/menu_viewer.c: Removed. All users updated.
31899 * normal/term.c: New file.
31900 * util/console.c: Change order of includes to workaround a bug in
31902 * term/terminfo.c: New argument oterm on all exported functions.
31904 * util/grub-editenv.c (grub_term_input_class): Removed.
31905 (grub_term_output_class): Likewise.
31907 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31909 Make loader output a bit more user-friendly.
31911 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
31912 is being loaded. Likewise for the Hurd.
31914 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
31915 that kernel of FreeBSD ${version} is being loaded.
31917 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
31919 (grub_cmd_initrd): Likewise.
31920 * util/grub.d/10_linux.in (linux_entry): Print message indicating
31921 that Linux ${version} is being loaded. Likewise for initrd.
31923 2010-01-09 Carles Pina i Estany <carles@pina.cat>
31925 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
31927 2010-01-08 Carles Pina i Estany <carles@pina.cat>
31929 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
31930 (GRUB_MOD_INIT): Gettextizze.
31931 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
31932 (GRUB_MOD_INIT): Gettextizze.
31933 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
31934 (grub_cmd_linux): Capitalise Linux.
31935 (GRUB_MOD_INIT): Gettextizze.
31936 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
31937 (grub_cmd_linux): Capitalise Linux.
31938 (GRUB_MOD_INIT): Gettextizze.
31939 * loader/i386/linux.c: Include `<grub/i18n.h>'.
31940 (grub_cmd_linux): Capitalise Linux.
31941 (GRUB_MOD_INIT): Gettextizze.
31942 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
31943 (GRUB_MOD_INIT): Gettextizze.
31944 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
31945 (grub_cmd_linux): Capitalise Linux.
31946 (GRUB_MOD_INIT): Gettextizze.
31947 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
31948 (grub_cpu_xnu_init): Gettextizze.
31949 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
31950 (GRUB_MOD_INIT): Gettextizze.
31951 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
31952 (GRUB_MOD_INIT): Gettextizze.
31953 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
31954 (grub_linux_load64): Capitalise Linux.
31955 (GRUB_MOD_INIT): Gettextizze.
31956 * loader/xnu.c: Include `<grub/i18n.h>'.
31957 (GRUB_MOD_INIT): Gettextizze.
31958 * po/POTFILES: Add `loader/efi/appleloader.c',
31959 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
31960 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
31961 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
31962 `loader/i386/xnu.c', `loader/multiboot_loader.c',
31963 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
31964 and `loader/xnu.c'.
31966 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31968 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
31970 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31972 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
31973 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
31974 * util/mkisofs/mkisofs.c (main): Readjust --version output.
31976 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31978 Reset Multiboot 2 support. New loader implements the draft in
31979 /branches/multiboot2 and shares as much code as possible with the
31980 production Multiboot 1 implementation.
31982 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
31983 * loader/multiboot2.c: Likewise.
31984 * loader/i386/multiboot_helper.S: Likewise.
31985 * include/multiboot2.h: Replace with latest version from the draft
31986 in /branches/multiboot2.
31988 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
31989 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
31990 and `loader/multiboot2.c'.
31991 (pkglib_MODULES): Add `multiboot2.mod'.
31992 (multiboot2_mod_SOURCES): New variable.
31993 (multiboot2_mod_LDFLAGS): Likewise.
31994 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
31996 * conf/i386-pc.rmk: Likewise.
31998 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
31999 (multiboot_mod_SOURCES): Remove variable.
32000 (multiboot_mod_LDFLAGS): Likewise.
32001 (multiboot_mod_CFLAGS): Likewise.
32003 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32004 `<multiboot2.h>' instead of `<multiboot.h>'.
32005 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32006 (MULTIBOOT_HEADER_MAGIC): New macros.
32008 * loader/multiboot_loader.c (module_version_status): Remove variable.
32009 (find_multi_boot2_header): Remove function.
32010 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32011 logic. Always check for the Multiboot version we're compiling for.
32012 (grub_cmd_module_loader): Likewise.
32013 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32014 command instead of `multiboot'.
32016 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32018 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32019 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32022 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32023 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32025 Fix breakage introduced with previous commit.
32027 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32029 * normal/handler.c (read_handler_list): Revert part of previous commit
32030 affecting this file.
32031 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32032 (grub_normal_execute): ... here.
32034 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32036 Merge prefix-redefinition-fix branch.
32038 * normal/autofs.c (read_fs_list): Make function capable of being
32039 run multiple times, gracefuly replacing the previous data
32041 * normal/dyncmd.c (read_command_list): Likewise.
32042 * normal/handler.c (read_handler_list): Likewise.
32043 * normal/main.c (read_lists): New function. Calls all the
32044 list reading functions.
32045 (grub_normal_execute): Use read_lists() instead of calling all
32046 list reading functions explicitly. Register read_lists() as a
32047 variable hook attached to ${prefix}.
32049 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32051 Merge crypto branch.
32053 * Makefile.in (pkglib_DATA): Add crypto.lst.
32054 (crypto.lst): New target.
32055 * commands/hashsum.c: New file.
32056 * commands/password.c (check_password): Use grub_crypto_memcmp.
32057 * commands/password_pbkdf2.c: New file.
32058 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32059 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32060 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32061 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32062 -I$(srcdir)/lib/libgcrypt_wrap.
32063 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32064 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32065 password_pbkdf2.mod.
32066 (crypto_mod_SOURCES): New variable.
32067 (crypto_mod_CFLAGS): Likewise.
32068 (crypto_mod_LDFLAGS): Likewise.
32069 (hashsum_mod_SOURCES): New variable.
32070 (hashsum_mod_CFLAGS): Likewise.
32071 (hashsum_mod_LDFLAGS): Likewise.
32072 (pbkdf2_mod_SOURCES): New variable.
32073 (pbkdf2_mod_CFLAGS): Likewise.
32074 (pbkdf2_mod_LDFLAGS): Likewise.
32075 (password_pbkdf2_mod_SOURCES): New variable.
32076 (password_pbkdf2_mod_CFLAGS): Likewise.
32077 (password_pbkdf2_mod_LDFLAGS): Likewise.
32078 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32079 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32080 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32081 Include conf/gcry.rmk.
32082 * include/grub/auth.h: Rewritten.
32083 * include/grub/crypto.h: New file.
32084 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32085 * include/grub/normal.h (read_crypto_list): New prototype.
32086 * lib/crypto.c: New file.
32087 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32088 * lib/pbkdf2.c: Likewise.
32089 * normal/auth.c (grub_auth_strcmp): Removed.
32090 (grub_iswordseparator): Likewise.
32091 (grub_auth_strword): Likewise.
32092 (is_authenticated): Use grub_strword.
32093 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32094 and grub_strword. Pass entered password to authentication callback.
32095 * normal/crypto.c: New file.
32096 * normal/main.c: Call read_crypto_list.
32097 * util/grub-mkpasswd-pbkdf2.c: New file.
32098 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32100 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32102 Fix descent and ascent calculation.
32104 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32105 (options): New option "asce".
32107 (add_char): Ignore invalid glyphs for descent calculation.
32108 Calculate ascent from actual content.
32109 (print_glyphs): Use 'asce'.
32110 (write_font): Likewise. Allow ascent override.
32111 (main): Handle "asce" option.
32113 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32115 * kern/err.c: Include `<grub/i18n.h>'.
32116 (grub_print_error): Add full stop. Gettextizze.
32117 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32118 (grub_bsd_load_elf): Capitalise ELF.
32119 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32120 (grub_cmd_freebsd_module): Likewise.
32121 (grub_cmd_freebsd_module_elf): Likewise.
32122 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32124 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32126 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32127 * commands/search_file.c (HELP_MESSAGE): New macro.
32128 * commands/search_label.c (HELP_MESSAGE): Likewise.
32129 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32130 * po/POTFILES: Add `commands/search_file.c',
32131 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32132 `commands/search.c'.
32134 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32136 * config.rpath: Update from Gnulib.
32138 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32140 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32142 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32144 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32146 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32148 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32149 arguments to fread so that we get a return value in bytes, rather
32150 than something that will normally be rounded down to 0.
32151 Adjust error handling to avoid producing garbage when size_t is not
32152 the same size as long long.
32154 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32156 * util/mkisofs/write.c (padblock_write): Check return value of
32159 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32161 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32164 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32166 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32168 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32169 instead of manual alignment.
32170 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32171 verbose). Avoid attempts to read past end of the device
32172 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32173 but GRUB_DISK_CACHE_SIZE may exceed that).
32175 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32177 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32178 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32181 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32183 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32185 (grub_efi_piwg_device_path): New structure
32186 (grub_efi_piwg_device_path_t): New type.
32187 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32188 (devpath_1): Transform to a structure. All users updated.
32189 (devpath_2): Likewise.
32190 (devpath_3): Likewise.
32191 (devpath_4): Likewise.
32192 (devpath_5): Likewise.
32194 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32196 * loader/efi/appleloader.c: Restored. Update all users.
32198 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32200 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32202 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32203 (struct boot_blocklist): Move from here ...
32204 * include/grub/i386/pc/boot.h [ASM_FILE]
32205 (struct grub_boot_blocklist): ... to here. Update all users.
32206 (setup): Only initialize `start' member of `first_block'
32207 structure. Add assert() calls to verify the other members.
32209 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32210 (generate_image): Fix broken blocklist length initialization.
32211 Add assert() call to verify blocklist `segment' field.
32213 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32215 * loader/efi/appleloader.c: Remove. Update all users.
32217 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32219 * boot/i386/pc/boot.S: Update copyright year.
32220 * boot/i386/pc/cdboot.S: Likewise.
32221 * boot/i386/pc/diskboot.S: Likewise.
32222 * boot/i386/pc/lnxboot.S: Likewise.
32223 * boot/i386/pc/pxeboot.S: Likewise.
32224 * bus/pci.c: Likewise.
32225 * commands/cmp.c: Likewise.
32226 * commands/help.c: Likewise.
32227 * commands/hexdump.c: Likewise.
32228 * commands/i386/pc/halt.c: Likewise.
32229 * commands/i386/pc/play.c: Likewise.
32230 * commands/i386/pc/vbeinfo.c: Likewise.
32231 * commands/ls.c: Likewise.
32232 * commands/test.c: Likewise.
32233 * disk/dmraid_nvidia.c: Likewise.
32234 * disk/i386/pc/biosdisk.c: Likewise.
32235 * disk/ieee1275/nand.c: Likewise.
32236 * disk/ieee1275/ofdisk.c: Likewise.
32237 * disk/lvm.c: Likewise.
32238 * disk/raid.c: Likewise.
32239 * disk/raid6_recover.c: Likewise.
32240 * disk/scsi.c: Likewise.
32241 * fs/affs.c: Likewise.
32242 * fs/cpio.c: Likewise.
32243 * fs/ext2.c: Likewise.
32244 * fs/hfs.c: Likewise.
32245 * fs/iso9660.c: Likewise.
32246 * fs/ntfs.c: Likewise.
32247 * fs/sfs.c: Likewise.
32248 * fs/udf.c: Likewise.
32249 * fs/ufs.c: Likewise.
32250 * fs/xfs.c: Likewise.
32251 * gencmdlist.sh: Likewise.
32252 * genmk.rb: Likewise.
32253 * include/grub/disk.h: Likewise.
32254 * include/grub/efi/api.h: Likewise.
32255 * include/grub/efi/efi.h: Likewise.
32256 * include/grub/efi/pe32.h: Likewise.
32257 * include/grub/elf.h: Likewise.
32258 * include/grub/fs.h: Likewise.
32259 * include/grub/i386/at_keyboard.h: Likewise.
32260 * include/grub/i386/pc/memory.h: Likewise.
32261 * include/grub/i386/pc/vbe.h: Likewise.
32262 * include/grub/i386/pci.h: Likewise.
32263 * include/grub/i386/tsc.h: Likewise.
32264 * include/grub/ieee1275/ieee1275.h: Likewise.
32265 * include/grub/ntfs.h: Likewise.
32266 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32267 * include/grub/sparc64/libgcc.h: Likewise.
32268 * include/grub/symbol.h: Likewise.
32269 * include/grub/types.h: Likewise.
32270 * include/multiboot2.h: Likewise.
32271 * io/gzio.c: Likewise.
32272 * kern/device.c: Likewise.
32273 * kern/disk.c: Likewise.
32274 * kern/efi/efi.c: Likewise.
32275 * kern/efi/mm.c: Likewise.
32276 * kern/elf.c: Likewise.
32277 * kern/file.c: Likewise.
32278 * kern/i386/dl.c: Likewise.
32279 * kern/i386/pc/init.c: Likewise.
32280 * kern/i386/pc/startup.S: Likewise.
32281 * kern/ieee1275/ieee1275.c: Likewise.
32282 * kern/ieee1275/init.c: Likewise.
32283 * kern/main.c: Likewise.
32284 * kern/mm.c: Likewise.
32285 * kern/powerpc/dl.c: Likewise.
32286 * kern/sparc64/dl.c: Likewise.
32287 * kern/x86_64/dl.c: Likewise.
32288 * lib/hexdump.c: Likewise.
32289 * loader/efi/appleloader.c: Likewise.
32290 * loader/i386/ieee1275/linux.c: Likewise.
32291 * loader/i386/pc/chainloader.c: Likewise.
32292 * loader/i386/pc/linux.c: Likewise.
32293 * loader/i386/pc/multiboot2.c: Likewise.
32294 * loader/ieee1275/multiboot2.c: Likewise.
32295 * loader/multiboot2.c: Likewise.
32296 * loader/multiboot_loader.c: Likewise.
32297 * loader/powerpc/ieee1275/linux.c: Likewise.
32298 * normal/completion.c: Likewise.
32299 * normal/menu_entry.c: Likewise.
32300 * partmap/apple.c: Likewise.
32301 * util/grub.d/10_hurd.in: Likewise.
32302 * util/hostfs.c: Likewise.
32303 * video/readers/png.c: Likewise.
32305 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32307 * include/grub/misc.h (GNUC_PREREQ): New macro.
32308 (ATTRIBUTE_ERROR): New macro.
32309 * include/grub/list.h (grub_bad_type_cast_real): Use
32312 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32314 * normal/menu_text.c (print_message): Change messages.
32316 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32318 * normal/menu_entry.c (store_completion): Gettextizze.
32320 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32322 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32324 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32326 * po/POTFILES: Sort correctly.
32328 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32330 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32331 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32332 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32334 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32335 summary. Gettextizze the strings.
32336 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32337 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32338 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32340 (GRUB_MOD_INIT): Remove command name from summary.
32341 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32343 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32344 * term/i386/pc/serial.c (options): Add full stops.
32345 (GRUB_MOD_INIT): Remove command name from the summary.
32347 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32349 * commands/acpi.c: Gettextizze help strings and/or options. Include
32350 `grub/i18n.h' if needed.
32351 * commands/blocklist.c: Likewise.
32352 * commands/boot.c: Likewise.
32353 * commands/cat.c: Likewise.
32354 * commands/cmp.c: Likewise.
32355 * commands/configfile.c: Likewise.
32356 * commands/crc.c: Likewise.
32357 * commands/date.c: Likewise.
32358 * commands/echo.c: Likewise.
32359 * commands/efi/fixvideo.c: Likewise.
32360 * commands/efi/loadbios.c: Likewise.
32361 * commands/gptsync.c: Likewise.
32362 * commands/halt.c: Likewise.
32363 * commands/handler.c: Likewise.
32364 * commands/hdparm.c: Likewise.
32365 * commands/hexdump.c: Likewise.
32366 * commands/i386/cpuid.c: Likewise.
32367 * commands/i386/pc/drivemap.c: Likewise.
32368 * commands/i386/pc/halt.c: Likewise.
32369 * commands/i386/pc/pxecmd.c: Likewise.
32370 * commands/i386/pc/vbeinfo.c: Likewise.
32371 * commands/i386/pc/vbetest.c: Likewise.
32372 * commands/ieee1275/suspend.c: Likewise.
32373 * commands/keystatus.c: Likewise.
32374 * commands/loadenv.c: Likewise.
32375 * commands/ls.c: Likewise.
32376 * commands/lsmmap.c: Likewise.
32377 * commands/lspci.c: Likewise.
32378 * commands/memrw.c: Likewise.
32379 * commands/minicmd.c: Likewise.
32380 * commands/parttool.c: Likewise.
32381 * commands/password.c: Likewise.
32382 * commands/probe.c: Likewise.
32383 * commands/read.c: Likewise.
32384 * commands/reboot.c: Likewise.
32385 * commands/search.c: Likewise.
32386 * commands/sleep.c: Likewise.
32387 * commands/test.c: Likewise.
32388 * commands/true.c: Likewise.
32389 * commands/usbtest.c: Likewise.
32390 * commands/videotest.c: Likewise.
32391 * commands/xnu_uuid.c: Likewise.
32392 * disk/loopback.c: Likewise.
32393 * hello/hello.c: Likewise.
32394 * loader/i386/bsd.c: Likewise.
32395 * term/i386/pc/serial.c: Likewise.
32396 * po/POTFILES: Add new files.
32398 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32400 * term/i386/pc/at_keyboard.c
32401 (keyboard_controller_wait_untill_ready): Rename to ...
32402 (keyboard_controller_wait_until_ready): ... this. Update all users.
32404 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32406 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32407 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32408 string using string width.
32409 * normal/menu_text.c (grub_print_message_indented): Use
32410 grub_print_spaces and not print_spaces.
32411 (print_timeout): Likewise.
32412 (print_spaces): Move to...
32413 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32415 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32417 Import from Gnulib.
32419 * gnulib/getdelim.c: New file.
32420 * gnulib/getline.c: Likewise.
32422 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32424 * include/grub/list.h (grub_assert_fail): Removed.
32425 (grub_bad_type_cast_real): New function.
32426 (grub_bad_type_cast): New macro.
32427 (GRUB_AS_LIST): Use grub_bad_type_cast.
32428 (GRUB_AS_LIST_P): Likewise.
32429 (GRUB_AS_NAMED_LIST): Likewise.
32430 (GRUB_AS_NAMED_LIST_P): Likewise.
32431 (GRUB_AS_PRIO_LIST): Likewise.
32432 (GRUB_AS_PRIO_LIST_P): Likewise.
32433 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32435 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32437 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32440 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32442 * configure.ac: Check for TARGET_CFLAGS initialization before we
32443 initialize it ourselves (sigh).
32444 Move a few modifications to TARGET_CFLAGS to be unconditional
32445 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32448 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32449 * term/i386/pc/at_keyboard.c
32450 (keyboard_controller_wait_untill_ready): Likewise.
32451 (keyboard_controller_led): Rename `led_status' paramter to avoid
32454 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32456 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32459 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32461 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32463 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32465 * normal/menu_text.c (grub_print_message_indented): Prevent
32466 past-the-end-of-array dereference.
32468 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32470 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32471 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32473 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32475 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32476 * normal/main.c (grub_normal_read_line): Remove a space from the
32479 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32481 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32482 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32483 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32484 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32485 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32486 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32487 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32489 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32491 * video/readers/jpeg.c (cmd): Declare.
32492 (grub_cmd_jpegtest): Use `grub_command_t' type.
32493 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32495 (GRUB_MOD_FINI): Use `cmd' to unregister.
32496 * video/readers/png.c (cmd): Declare.
32497 (grub_cmd_pngtest): Use `grub_command_t' type.
32498 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32500 (GRUB_MOD_FINI): Use `cmd' to unregister.
32501 * video/readers/tga.c (cmd): Declare.
32502 (grub_cmd_tgatest): Use `grub_command_t' type.
32503 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32505 (GRUB_MOD_FINI): Use `cmd' to unregister.
32507 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32509 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32511 * kern/corecmd.c (grub_register_core_commands): Likewise.
32512 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32513 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32514 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32515 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32516 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32517 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32518 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32519 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32520 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32521 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32522 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32523 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32524 * normal/handler.c (insert_handler): Likewise.
32525 * normal/main.c (GRUB_MOD_INIT): Likewise.
32526 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32528 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32530 * commands/help.c (grub_cmd_help): Print the command name before the
32532 (GRUB_MOD_INIT): Remove command name from the summary.
32533 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32535 * lib/arg.c (find_long): Print the command name before the summary.
32536 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32538 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32539 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32540 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32541 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32542 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32543 * commands/date.c (GRUB_MOD_INIT): Likewise.
32544 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32545 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32546 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32547 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32548 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32549 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32550 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32551 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32552 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32553 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32554 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32555 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32556 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32557 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32558 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32559 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32560 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32561 * commands/password.c (GRUB_MOD_INIT): Likewise.
32562 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32563 * commands/read.c (GRUB_MOD_INIT): Likewise.
32564 * commands/search.c (GRUB_MOD_INIT): Likewise.
32565 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32566 * commands/test.c (GRUB_MOD_INIT): Likewise.
32567 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32568 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32569 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32570 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32571 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32572 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32573 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32574 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32575 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32576 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32577 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32578 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32579 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32580 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32582 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32584 Use search command for preliminar UUID search.
32586 * commands/search.c: Split into ...
32587 * commands/search_wrap.c: ...this
32588 * commands/search.c: ...and this.
32589 * commands/search_file.c: New file.
32590 * commands/search_label.c: New file.
32591 * commands/search_uuid.c: New file.
32592 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32593 Add commands/search_wrap.c, commands/search_file.c,
32594 commands/search_label.c and commands/search_uuid.c.
32595 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32596 (search_mod_SOURCES): Set to commands/search_wrap.c.
32597 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32599 (search_fs_file_mod_SOURCES): New variable.
32600 (search_fs_file_mod_CFLAGS): Likewise.
32601 (search_fs_file_mod_LDFLAGS): Likewise.
32602 (search_label_mod_SOURCES): Likewise.
32603 (search_label_mod_CFLAGS): Likewise.
32604 (search_label_mod_LDFLAGS): Likewise.
32605 (search_fs_uuid_mod_SOURCES): New variable.
32606 (search_fs_uuid_mod_CFLAGS): Likewise.
32607 (search_fs_uuid_mod_LDFLAGS): Likewise.
32608 (fs_file_mod_SOURCES): Removed.
32609 (fs_file_mod_CFLAGS): Likewise.
32610 (fs_file_mod_LDFLAGS): Likewise.
32611 (fs_uuid_mod_SOURCES): Removed.
32612 (fs_uuid_mod_CFLAGS): Likewise.
32613 (fs_uuid_mod_LDFLAGS): Likewise.
32614 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32615 Set to util/grub-install.in.
32616 * disk/fs_file.c: Removed.
32617 * disk/fs_uuid.c: Likewise.
32618 * include/grub/search.h: New file.
32619 * util/grub-install.in: Handle sparc64.
32620 Create and use load.cfg.
32621 * util/sparc64/ieee1275/grub-install.in: Removed.
32623 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32625 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32626 Ignore return status if CF is cleared.
32627 (grub_biosdisk_get_diskinfo_standard): Likewise.
32629 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32631 * term/i386/pc/at_keyboard.c
32632 (keyboard_controller_wait_untill_ready): New function.
32633 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32634 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32635 for keyboard polling, rather than duplicate the same loop. This
32636 saves a few bytes in code size.
32638 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32640 Support for (pxe[:server[:gateway]]) syntax and
32641 use environment variable for PXE.
32643 * commands/i386/pc/pxecmd.c (options): Removed.
32644 (print_ip): Removed.
32645 (grub_cmd_pxe): Removed
32646 (grub_cmd_pxe_unload): New function.
32647 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32648 (grub_pxe_your_ip): Made static.
32649 (grub_pxe_default_server_ip): Likewise.
32650 (grub_pxe_default_gateway_ip): Likewise.
32651 (grub_pxe_blksize): Likewise.
32652 (parse_ip): New function.
32653 (grub_pxe_open): Support server and gateway specification.
32654 (grub_pxe_close): Free disk->data.
32655 (grub_pxefs_open): Use disk->data.
32656 (grub_pxefs_read): Likewise.
32657 (grub_env_write_readonly): New function.
32658 (set_mac_env): Likewise.
32659 (set_env_limn_ro): Likewise.
32660 (parse_dhcp_vendor): Likewise.
32661 (grub_pxe_detect): Set the environment variables.
32662 (set_ip_env): New function.
32663 (write_ip_env): Likewise.
32664 (grub_env_write_pxe_default_server): Likewise.
32665 (grub_env_write_pxe_default_gateway): Likewise.
32666 (grub_env_write_pxe_blocksize): Likewise.
32667 (GRUB_MOD_INIT(pxe)): Set environment variables.
32668 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32669 (grub_pxe_mac_addr_t): ... this. All users updated.
32670 (grub_pxe_your_ip): Removed.
32671 (grub_pxe_server_ip): Likewise.
32672 (grub_pxe_gateway_ip): Likewise.
32673 (grub_pxe_blksize): Likewise.
32675 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32677 * commands/help.c: Include `<grub/i18n.h>'.
32678 (grub_cmd_help): Gettextizze.
32679 (GRUB_MOD_INIT): Likewise.
32680 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32681 (GRUB_MOD_INIT): Gettextizze.
32682 * commands/search.c: Include `<grub/i18n.h>'.
32683 (options): Gettextizze.
32684 (GRUB_MOD_INIT): Gettextizze.
32685 * lib/arg.c: Include `<grub/i18n.h>'.
32686 (help_options): Gettextizze.
32687 (find_long): Likewise.
32688 (grub_arg_show_help): Likewise.
32689 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32690 (read_command_list): Gettextizze.
32691 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32692 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32694 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32696 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32697 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32698 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32699 (led_status): New variable.
32700 (keyboard_controller_led): New function.
32701 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32702 update led status for caps lock, num lock and scroll lock.
32704 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32706 * util/hostdisk.c (open_device): Fix a comment.
32708 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32710 * util/grub-install.in (host_os): New variable.
32711 * util/i386/efi/grub-install.in (host_os): Likewise.
32713 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32715 * util/mkisofs/write.c (padblock_write): Abort when given an
32716 excedingly large embed image, instead of silently truncating it.
32718 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32720 * include/multiboot.h: Indentation fixes.
32722 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32724 * include/multiboot.h (struct multiboot_aout_symbol_table)
32725 (struct multiboot_elf_section_header_table): New structure
32726 declarations (stolen from GRUB Legacy).
32727 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32730 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32731 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32734 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32736 * include/multiboot.h: Make comments src2texi-friendly.
32738 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32740 For consistency with [multiboot]/docs/boot.S.
32742 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32743 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32744 (MULTIBOOT_MAGIC2): Rename from this ...
32745 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32747 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32749 * include/multiboot.h: Remove `<grub/types.h>'.
32750 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32751 types. Update all users.
32753 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32755 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32756 `couldn't' and `can not' by `cannot'.
32757 * commands/i386/pc/drivemap.c: Likewise.
32758 * disk/ata.c: Likewise.
32759 * disk/ieee1275/nand.c: Likewise.
32760 * fs/affs.c: Likewise.
32761 * fs/fat.c: Likewise.
32762 * fs/hfs.c: Likewise.
32763 * fs/hfsplus.c: Likewise.
32764 * fs/iso9660.c: Likewise.
32765 * fs/jfs.c: Likewise.
32766 * fs/minix.c: Likewise.
32767 * fs/reiserfs.c: Likewise.
32768 * fs/sfs.c: Likewise.
32769 * fs/udf.c: Likewise.
32770 * fs/ufs.c: Likewise.
32771 * fs/xfs.c: Likewise.
32772 * loader/powerpc/ieee1275/linux.c: Likewise.
32773 * loader/sparc64/ieee1275/linux.c: Likewise.
32774 * util/grub-probe.c: Likewise.
32775 * util/misc.c: Likewise.
32777 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32779 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32781 * commands/acpi.c: Likewise.
32782 * commands/blocklist.c: Likewise.
32783 * commands/efi/loadbios.c: Likewise.
32784 * commands/i386/pc/drivemap.c: Likewise.
32785 * commands/loadenv.c: Likewise.
32786 * commands/memrw.c: Likewise.
32787 * commands/password.c: Likewise.
32788 * commands/videotest.c: Likewise.
32789 * disk/ata.c: Likewise.
32790 * disk/ata_pthru.c: Likewise.
32791 * disk/dmraid_nvidia.c: Likewise.
32792 * disk/ieee1275/nand.c: Likewise.
32793 * disk/ieee1275/ofdisk.c: Likewise.
32794 * disk/loopback.c: Likewise.
32795 * disk/lvm.c: Likewise.
32796 * disk/mdraid_linux.c: Likewise.
32797 * disk/raid.c: Likewise.
32798 * disk/raid6_recover.c: Likewise.
32799 * disk/scsi.c: Likewise.
32800 * efiemu/main.c: Likewise.
32801 * efiemu/mm.c: Likewise.
32802 * efiemu/pnvram.c: Likewise.
32803 * efiemu/symbols.c: Likewise.
32804 * font/font.c: Likewise.
32805 * fs/cpio.c: Likewise.
32806 * fs/hfsplus.c: Likewise.
32807 * fs/iso9660.c: Likewise.
32808 * fs/jfs.c: Likewise.
32809 * fs/minix.c: Likewise.
32810 * fs/ntfs.c: Likewise.
32811 * fs/ntfscomp.c: Likewise.
32812 * fs/reiserfs.c: Likewise.
32813 * fs/ufs.c: Likewise.
32814 * fs/xfs.c: Likewise.
32815 * gettext/gettext.c: Likewise.
32816 * include/grub/auth.h: Likewise.
32817 * kern/elf.c: Likewise.
32818 * kern/file.c: Likewise.
32819 * kern/ieee1275/init.c: Likewise.
32820 * kern/ieee1275/mmap.c: Likewise.
32821 * kern/ieee1275/openfw.c: Likewise.
32822 * kern/powerpc/dl.c: Likewise.
32823 * kern/sparc64/dl.c: Likewise.
32824 * lib/arg.c: Likewise.
32825 * loader/i386/bsd.c: Likewise.
32826 * loader/i386/bsdXX.c: Likewise.
32827 * loader/i386/efi/linux.c: Likewise.
32828 * loader/i386/efi/xnu.c: Likewise.
32829 * loader/i386/ieee1275/linux.c: Likewise.
32830 * loader/i386/linux.c: Likewise.
32831 * loader/i386/multiboot.c: Likewise.
32832 * loader/i386/pc/linux.c: Likewise.
32833 * loader/i386/pc/multiboot2.c: Likewise.
32834 * loader/i386/xnu.c: Likewise.
32835 * loader/ieee1275/multiboot2.c: Likewise.
32836 * loader/macho.c: Likewise.
32837 * loader/machoXX.c: Likewise.
32838 * loader/multiboot2.c: Likewise.
32839 * loader/multiboot_loader.c: Likewise.
32840 * loader/powerpc/ieee1275/linux.c: Likewise.
32841 * loader/sparc64/ieee1275/linux.c: Likewise.
32842 * loader/xnu.c: Likewise.
32843 * loader/xnu_resume.c: Likewise.
32844 * mmap/i386/pc/mmap.c: Likewise.
32845 * normal/menu_viewer.c: Likewise.
32846 * partmap/acorn.c: Likewise.
32847 * partmap/amiga.c: Likewise.
32848 * partmap/apple.c: Likewise.
32849 * script/lexer.c: Likewise.
32850 * term/gfxterm.c: Likewise.
32851 * term/i386/pc/serial.c: Likewise.
32852 * term/i386/pc/vga.c: Likewise.
32853 * term/ieee1275/ofconsole.c: Likewise.
32854 * term/terminfo.c: Likewise.
32855 * video/bitmap.c: Likewise.
32856 * video/efi_gop.c: Likewise.
32857 * video/efi_uga.c: Likewise.
32858 * video/fb/video_fb.c: Likewise.
32859 * video/i386/pc/vbe.c: Likewise.
32860 * video/readers/tga.c: Likewise.
32861 * video/video.c: Likewise.
32863 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
32865 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
32866 * commands/lspci.c: Likewise.
32867 * commands/probe.c: Likewise.
32868 * commands/xnu_uuid.c: Likewise.
32869 * conf/i386-coreboot.rmk: Likewise.
32870 * conf/i386-efi.rmk: Likewise.
32871 * conf/i386-ieee1275.rmk: Likewise.
32872 * conf/i386-pc.rmk: Likewise.
32873 * conf/powerpc-ieee1275.rmk: Likewise.
32874 * conf/sparc64-ieee1275.rmk: Likewise.
32875 * conf/x86_64-efi.rmk: Likewise.
32876 * fs/i386/pc/pxe.c: Likewise.
32877 * gettext/gettext.c: Likewise.
32878 * include/grub/efi/graphics_output.h: Likewise.
32879 * include/grub/i386/pc/memory.h: Likewise.
32880 * kern/env.c: Likewise.
32881 * kern/i386/qemu/startup.S: Likewise.
32882 * lib/i386/pc/biosnum.c: Likewise.
32883 * lib/i386/relocator.c: Likewise.
32884 * lib/i386/relocator_asm.S: Likewise.
32885 * lib/relocator.c: Likewise.
32886 * loader/i386/bsd.c: Likewise.
32887 * loader/i386/multiboot.c: Likewise.
32888 * loader/i386/pc/chainloader.c: Likewise.
32889 * loader/i386/xnu.c: Likewise.
32890 * loader/xnu.c: Likewise.
32891 * normal/main.c: Likewise.
32892 * normal/menu_text.c: Likewise.
32893 * util/getroot.c: Likewise.
32894 * util/grub-mkconfig_lib.in: Likewise.
32895 * util/grub.d/00_header.in: Likewise.
32896 * util/i386/pc/grub-mkimage.c: Likewise.
32897 * util/mkisofs/eltorito.c: Likewise.
32898 * util/mkisofs/exclude.h: Likewise.
32899 * util/mkisofs/hash.c: Likewise.
32900 * util/mkisofs/iso9660.h: Likewise.
32901 * util/mkisofs/joliet.c: Likewise.
32902 * util/mkisofs/mkisofs.c: Likewise.
32903 * util/mkisofs/mkisofs.h: Likewise.
32904 * util/mkisofs/multi.c: Likewise.
32905 * util/mkisofs/name.c: Likewise.
32906 * util/mkisofs/rock.c: Likewise.
32907 * util/mkisofs/tree.c: Likewise.
32908 * util/mkisofs/write.c: Likewise.
32909 * video/efi_gop.c: Likewise.
32911 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
32913 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
32916 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32918 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
32919 * genmk.rb (class SCRIPT): Modify the target file instead of source.
32921 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32923 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
32924 (GRUB_MOD_INIT(memrw)): Update help line.
32926 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32928 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
32929 Use grub_extcmd_t. All users updated.
32930 (options): New variable.
32931 (grub_cmd_read): Restructure for readability. Support "-v" option.
32932 (grub_cmd_write): Restructure for readability.
32934 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32936 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
32938 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32940 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
32941 with the actual contents of the correspondending make variable.
32942 * util/grub-mkrescue.in (pkglib_DATA): New variable.
32943 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
32944 specifying `*.lst' and `efiemu??.o'
32946 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32948 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
32949 after function name.
32950 Noticed by Rene Engelhard <rene@debian.org>.
32952 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32954 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
32955 (options): New variable.
32956 (iospace): Likewise.
32957 (grub_lspci_iter): List IO spaces if "-i" was given.
32958 (grub_cmd_lspci): Parse options.
32959 (GRUB_MOD_INIT(lspci)): Use extcmd.
32960 (GRUB_MOD_FINI(lspci)): Likewise.
32962 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32964 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
32965 `function' keyword.
32966 Patch by Tony Mancill <tmancill@debian.org>.
32968 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32970 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
32971 (grub_uhci_portstatus): Likewise.
32972 (grub_uhci_portstatus): Add necessary delay.
32973 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
32975 2009-12-21 Carles Pina i Estany <carles@pina.cat>
32977 * commands/acpi.c (options): Fix capitalizations and/or full stops.
32978 (GRUB_MOD_INIT): Likewise.
32979 * commands/boot.c (GRUB_MOD_INIT): Likewise.
32980 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
32981 * commands/echo.c (options): Fix capitalizations and/or full stops.
32982 * commands/efi/loadbios.c (enable_rom_area): Likewise.
32983 (enable_rom_area): Likewise.
32984 (GRUB_MOD_INIT): Likewise.
32985 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32986 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
32987 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32988 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
32989 * commands/hexdump.c (options): Likewise.
32990 * commands/i386/cpuid.c (options): Likewise.
32991 (GRUB_MOD_INIT): Likewise.
32992 * commands/i386/pc/drivemap.c (options): Likewise.
32993 (GRUB_MOD_INIT): Likewise.
32994 * commands/i386/pc/halt (options): Likewise.
32995 (GRUB_MOD_INIT): Likewise.
32996 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32997 * commands/i386/pc/pxecmd.c (options): Likewise.
32998 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
32999 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33000 * commands/keystatus.c (options): Likewise.
33001 (GRUB_MOD_INIT): Likewise.
33002 * commands/loadenv.c (options): Likewise.
33003 * commands/ls.c (options): Likewise.
33004 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33005 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33006 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33007 * commands/parttool.c (helpmsg): Likewise.
33008 * commands/probe.c (options): Likewise.
33009 * commands/read.c (GRUB_MOD_INIT): Likewise.
33010 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33011 * commands/search.c (options): Likewise.
33012 * commands/sleep.c (options): Likewise.
33013 * commands/test.c (GRUB_MOD_INIT): Likewise.
33014 * commands/true.c (GRUB_MOD_INIT): Likewise.
33015 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33016 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33017 * lib/arg.c (help_options): Likewise.
33018 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33020 * po/POTFILES: Add `commands/loadenv.c'.
33022 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33024 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33025 instead of specifying them explicit.
33027 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33029 * NEWS: Add grub-probe support for GNU/Hurd.
33031 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33033 * NEWS: gettext was added after 1.97.
33035 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33037 * util/mkisofs/msdos_partition.h: New file (based on
33038 include/grub/msdos_partition.h).
33039 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33040 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33041 (ld_options, main): Recognize --protective-msdos-label.
33042 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33043 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33044 (padblock_write): If `use_protective_msdos_label' is set, patch a
33045 protective DOS-style label in the output image.
33047 * util/grub-mkrescue.in: Use --protective-msdos-label.
33049 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33051 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33054 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33056 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33058 (ld_options, main): Recognize `--embedded-boot'.
33059 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33061 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33062 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33063 (padblock_write): Likewise. Rewrite to support embedded boot image.
33065 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33066 for BIOS-based disk boot instead of only ElTorito.
33068 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33070 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33071 build (not needed for bootstrap).
33073 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33075 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33076 from i386-pc build (not needed for bootstrap).
33077 Rewrite a pair of strings.
33079 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33081 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33083 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33085 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33087 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33089 * kern/env.c (grub_env_context_open): Mark exported variable for
33092 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33094 * kern/env.c (grub_env_export): Create nonexistent variables before
33097 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33099 * include/grub/auth.h: Include `<grub/i18n.h>'.
33100 (GRUB_GET_PASSWORD): Gettextizze string.
33101 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33103 (grub_utf8_to_ucs4_alloc): Fix indentation.
33104 (grub_print_ucs4): Likewise.
33105 (grub_getstringwidth): Likewise.
33106 (print_message_indented): New declaration.
33107 * normal/auth.c: Include `<grub/i18n.h>'.
33108 (grub_auth_check_authentication): Gettexttize string.
33109 * normal/cmdline.c: Include `<grub/i18n.h>'.
33110 (grub_cmdline_get): Gettextizze.
33111 * normal/color.c: Include `<grub/i18n.h>'.
33112 (grub_parse_color_name_pair): Gettexttize strings.
33113 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33114 string (use `print_message_indented').
33115 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33116 `include/grub/normal.h'.
33117 (print_message_indented): Renamed to ...
33118 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33119 used in normal/main.c).
33120 (print_message): Use `grub_print_message_indented' instead of
33121 `print_message_indented'.
33122 (print_timeout): Likewise.
33123 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33124 (grub_normal_print_device_info): Gettexttize strings.
33125 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33127 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33129 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33130 of arguments. Return number of tokens and not arguments. All users
33133 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33135 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33136 non-MSDOS paritions.
33138 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33140 * include/grub/types.h (UNUSED): Removed since it conflicts with
33141 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33142 Reported by Grégoire Sutre.
33144 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33146 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33147 (grub_print_ucs4_alloc): Likewise.
33148 (grub_getstringwidth): Likewise.
33149 * normal/main.c (grub_normal_init_page): Gettextize version string.
33150 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33151 (getstringwidth): Renamed to ...
33152 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33153 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33154 (grub_print_ucs4): Remove `static' qualifer (now used in
33156 * po/POTFILES: Add normal/main.c.
33158 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33160 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33161 (print_message_indented): Add `margin_left' and `margin_right'
33163 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33165 (print_timeout): Use `print_message_indented' to print the message.
33166 Deletes `second_stage' parameter.
33167 (run_menu): Update `print_timeout' calls.
33169 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33171 Fix console palette on OpenFirmware.
33173 * term/ieee1275/ofconsole.c (MAX): Removed.
33174 (colors): Redone based on VGA palette.
33175 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33176 colors are supported.
33177 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33179 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33181 Fix potential EfiEmu double prepare.
33183 * efiemu/main.c (prepared): New variable
33184 (grub_efiemu_unload): Set prepare to '0'.
33185 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33187 set_virtual_address_map support.
33189 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33191 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33193 (grub_efiemu_crc32): Likewise.
33194 (grub_efiemu_crc64): Likewise.
33195 (grub_efiemu_set_virtual_address_map): Likewise.
33196 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33198 (grub_autoefi_set_virtual_address_map): Likewise.
33199 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33200 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33201 Restructure flow to accomodate it.
33202 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33203 (grub_efiemu_crc): Recompute CRC32.
33204 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33205 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33206 * efiemu/symbols.c (relocated_handle): New variable.
33207 (grub_efiemu_free_syms): Free relocated_handle.
33208 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33209 (grub_efiemu_write_sym_markers): New function.
33210 (grub_efiemu_set_virtual_address_map): Likewise.
33212 Newer XNU parameters.
33214 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33215 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33216 (grub_xnu_fill_devicetree): New prototype.
33217 (grub_xnu_heap_real_start): New variable.
33218 * loader/xnu.c (get_name_ptr): New function.
33219 (grub_xnu_load_driver): Fill namelen and name.
33221 64-bit xnu support.
33223 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33224 and 'loader/macho64.c'.
33225 * conf/i386-pc.rmk: Likewise.
33226 * conf/x86_64-efi.rmk: Likewise.
33227 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33228 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33229 * include/grub/macho.h (grub_macho_segment64): New structure.
33230 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33231 (grub_macho_size32): ... to this.
33232 (grub_macho32_get_entry_point): Renamed from ...
33233 (grub_macho_get_entry_point32): ... to this.
33234 (grub_macho_contains_macho64): New prototype.
33235 (grub_macho_size64): Likewise.
33236 (grub_macho_get_entry_point64): Likewise.
33237 (grub_macho32_load): Renamed from ...
33238 (grub_macho_load32): ... to this.
33239 (grub_macho32_filesize): Renamed from ...
33240 (grub_macho_filesize32): ... to this.
33241 (grub_macho32_readfile): Renamed from ...
33242 (grub_macho_readfile32): ... to this.
33243 (grub_macho_filesize64): New prototype.
33244 (grub_macho_readfile64): Likewise.
33245 (grub_macho_parse32): Likewise.
33246 (grub_macho_parse64): Likewise.
33247 * loader/macho.c: Split into ...
33248 * loader/machoXX.c: ... and this. Replace 32 with XX.
33249 * loader/macho32.c: New file.
33250 * loader/macho64.c: Likewise.
33251 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33252 (grub_cmd_xnu_kernel): Make 32-bit only.
33253 (grub_cmd_xnu_kernel64): New function.
33254 (grub_xnu_load_driver): Support Mach-O 64.
33255 (grub_cmd_xnu_mkext): Likewise.
33256 * util/grub.d/30_os-prober.in (osx_entry): New function.
33257 Generate entries for 64-bit boot too.
33259 Eliminate ad-hoc tree format in XNU and EfiEmu.
33261 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33262 * efiemu/pnvram.c: Rewritten to use environment variables.
33265 Inline utf16_to_utf8.
33267 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33268 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33270 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33272 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33273 * commands/usbtest.c (grub_usb_get_string): ... move here.
33274 (usb_print_str): Fix error handling.
33275 * include/grub/usb.h (grub_usb_get_string): Remove.
33277 UTF-8 to UTF-16 transformation.
33279 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33280 (charset_mod_SOURCES): New variable.
33281 (charset_mod_CFLAGS): Likewise.
33282 (charset_mod_LDFLAGS): Likewise.
33283 * include/grub/utf.h: New file.
33284 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33286 Support for device properties.
33288 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33289 (grub_xnu_devprop_device_header): Likewise.
33290 (grub_xnu_devprop_device_descriptor): Likewise.
33291 (grub_xnu_devprop_add_device): New prototype.
33292 (grub_xnu_devprop_remove_device): Likewise.
33293 (grub_xnu_devprop_remove_property): Likewise.
33294 (grub_xnu_devprop_add_property_utf8): Likewise.
33295 (grub_xnu_devprop_add_property_utf16): Likewise.
33296 (grub_cpu_xnu_init): Likewise.
33297 (grub_cpu_xnu_fini): Likewise.
33298 (grub_cpu_xnu_unload): Likewise.
33299 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33300 (property_descriptor): Likewise.
33301 (devices): New variable.
33302 (grub_xnu_devprop_remove_property): New function.
33303 (grub_xnu_devprop_add_device): Likewise.
33304 (grub_xnu_devprop_remove_device): Likewise.
33305 (grub_xnu_devprop_add_property): Likewise.
33306 (grub_xnu_devprop_add_property_utf8): Likewise.
33307 (grub_xnu_devprop_add_property_utf16): Likewise.
33308 (hextoval): Likewise.
33309 (grub_cpu_xnu_fill_devprop): Likewise.
33310 (grub_cmd_devprop_load): Likewise.
33311 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33312 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33313 (cmd_devprop_load): New variable.
33314 (grub_cpu_xnu_init): New function.
33315 (grub_cpu_xnu_fini): Likewise.
33316 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33317 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33318 (grub_cmd_xnu_devtree): Likewise.
33319 (hextoval): New function.
33320 (unescape): Likewise.
33321 (grub_xnu_fill_devicetree): Likewise.
33323 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33324 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33326 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33328 Workaround for broken ATI VBE.
33330 * video/i386/pc/vbe.c (last_set_mode): New variable.
33331 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33332 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33333 (grub_video_vbe_setup): Don't check for reserved flag.
33335 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33337 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33338 the `find' command.
33340 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33342 UUID support for HFS.
33344 * fs/hfs.c (grub_hfs_uuid): New function.
33345 (grub_hfs_fs): New value .uuid.
33346 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33348 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33350 Fix a segfault with parsing unknown long options.
33352 * util/grub-mkrelpath.c (options): Zero terminate it.
33354 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33356 * include/grub/misc.h (grub_puts): New declaration.
33357 (grub_puts_): Likewise.
33358 * kern/misc.c (grub_puts): New definition.
33359 (grub_puts_): Likewise.
33361 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33363 * util/grub-probe.c (probe): Improve error message.
33365 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33367 * loader/i386/multiboot_elfxx.c
33368 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33371 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33373 Relocator framework
33375 * loader/i386/xnu_helper.S: Removed. All users updated.
33376 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33377 (relocator_mod_SOURCES): New variable.
33378 (relocator_mod_CFLAGS): Likewise.
33379 (relocator_mod_LDFLAGS): Likewise.
33380 (relocator_mod_ASFLAGS): Likewise.
33381 * conf/x86_64.rmk: Likewise.
33382 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33383 (grub_multiboot_payload_entry_offset): Likewise.
33384 (grub_multiboot_forward_relocator): Likewise.
33385 (grub_multiboot_forward_relocator_end): Likewise.
33386 (grub_multiboot_backward_relocator): Likewise.
33387 (grub_multiboot_backward_relocator_end): Likewise.
33388 (grub_multiboot_payload_eip): New variable.
33389 (grub_multiboot_payload_orig): Likewise.
33390 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33391 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33392 * include/grub/i386/memory.h
33393 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33394 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33395 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33396 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33397 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33398 * include/grub/i386/relocator.h: New file.
33399 * include/grub/x86_64/relocator.h: Likewise.
33400 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33401 (XNU_RELOCATOR): New macro.
33402 (grub_xnu_launcher_start): Remove.
33403 (grub_xnu_launcher_end): Likewise.
33404 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33405 (grub_xnu_heap_real_start): Remove.
33406 (grub_xnu_heap_start): Change to void *. All users updated.
33407 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33408 * lib/i386/relocator.c: New file.
33409 * lib/i386/relocator_asm.S: Likewise.
33410 * lib/i386/relocator_backward.S: Likewise.
33411 * lib/mips/relocator.c: Likewise.
33412 * lib/mips/relocator_asm.S: Likewise.
33413 * lib/relocator.c: Likewise.
33414 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33416 (playground): Likewise.
33417 (grub_multiboot_payload_orig): New variable.
33418 (grub_multiboot_payload_dest): Likewise.
33419 (grub_multiboot_payload_size): Likewise.
33420 (grub_multiboot_payload_eip): Likewise.
33421 (grub_multiboot_payload_esp): Likewise.
33422 (grub_multiboot_boot): Use grub_relocator32_boot.
33423 (grub_multiboot_unload): Free relocators.
33424 (grub_multiboot): Setup stack. Use relocators.
33425 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33426 (grub_multiboot_load_elfXX): Use relocators.
33427 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33428 (grub_multiboot_payload_size): Likewise.
33429 (grub_multiboot_payload_dest): Likewise.
33430 (grub_multiboot_payload_entry_offset): Likewise.
33431 (grub_multiboot_forward_relocator): Likewise.
33432 (grub_multiboot_backward_relocator): Likewise.
33433 (grub_multiboot_real_boot): Likewise.
33434 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33435 (grub_xnu_entry_point): Likewise.
33436 (grub_xnu_arg1): Likewise.
33437 (grub_xnu_stack): Likewise.
33438 (grub_xnu_launch): Removed.
33439 (grub_xnu_boot_resume): New function.
33440 (grub_xnu_boot): Use relocators.
33441 * loader/i386/xnu_helper.S: Removed.
33442 * loader/xnu.c (grub_xnu_heap_start): New variable.
33443 (grub_xnu_heap_size): Likewise.
33444 (grub_xnu_heap_malloc): Use relocators.
33445 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33447 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33449 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33452 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33454 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33455 GRUB_ERR_NONE before calling grub_env_set.
33457 2009-12-12 Robert Millan <rmh@aybabtu.com>
33459 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33460 * genmk.rb (video): New variable.
33461 (CLEANFILES, VIDEOFILES): Add #{video}.
33462 (#{video}): New target rule.
33463 * genvideolist.sh: New file.
33464 * Makefile.in (pkglib_DATA): Add video.lst.
33465 (video.lst): New target rule.
33466 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33468 * util/grub.d/30_os-prober.in: Replace `vbe' with
33469 ${GRUB_VIDEO_BACKEND}.
33471 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33473 * THANKS: Add David Miller.
33475 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33477 libpciaccess support.
33479 * Makefile.in (LIBPCIACCESS): New variable.
33480 (enable_grub_emu_pci): Likewise.
33481 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33482 util/pci.c and commands/lspci.c.
33483 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33484 * configure.ac (grub-emu-pci): New option.
33485 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33486 (grub_pci_device_unmap_range): Likewise.
33487 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33488 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33489 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33490 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33491 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33492 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33493 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33494 * include/grub/pciutils.h: New file.
33495 * util/pci.c: Likewise.
33497 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33499 * util/misc.c: Don't include <errno.h> twice.
33501 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33503 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33504 name in an error message.
33505 (grub_biosdisk_rw): Likewise.
33507 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33509 Eliminate NTFS 4Gib barrier.
33511 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33512 (read_run_data): Likewise.
33513 (grub_ntfs_read_run_list): Likewise.
33514 (grub_ntfs_read_block): Likewise.
33515 (grub_ntfs_iterate_dir): Likewise.
33516 (read_mft): Likewise.
33517 (read_data): Likewise.
33519 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33520 to avoid 64-bit division
33521 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33522 (grub_ntfs_rlst): Use grub_disk_addr_t.
33524 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33526 Eliminate grub-fstest 4Gib barrier.
33528 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33529 (read_file): Fix error reporting.
33531 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33533 Eliminate hexdump 4Gib barrier.
33535 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33536 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33538 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33540 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33543 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33545 Remove miscellaneous files in distclean target.
33547 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33549 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33551 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33552 if they're already set. This resolves the conflict between my
33553 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33554 fixing the --grub-probe option again.
33555 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33556 change on 2009-10-06, so that we now once again source
33557 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33559 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33561 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33562 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33563 `util/devicemap.c'.
33565 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33567 * include/grub/misc.h (grub_printf_): New declaration.
33568 * kern/misc.c (grub_printf_): New definition.
33569 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33570 instead of `grub_printf' and `_'.
33571 * normal/menu_entry.c (store_completion): Likewise.
33573 (grub_menu_entry_run): Likewise.
33574 * normal/menu_text.c (grub_wait_after_message): Likewise.
33575 (notify_booting): Likewise.
33576 (notify_fallback): Likewise.
33577 (notify_execution_failure): Likewise.
33579 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33581 * configure.ac: Check for vasprintf.
33582 * util/misc.c (asprintf): Move allocation from here ...
33583 (vasprintf): ... to here. New function.
33584 (xasprintf): New function.
33585 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33587 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33588 * util/grub-mkfont.c (write_font): Likewise.
33589 * util/grub-probe.c (probe): Likewise.
33590 * util/hostdisk.c (make_device_name): Likewise.
33592 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33594 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33595 anything even prefixed with 'cdrom' as a cdrom.
33597 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33599 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33602 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33604 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33605 grub_gettext_msg_list.
33606 (grub_gettext_gettranslation_from_position): Return const char *
33608 (grub_gettext_translate): Add the translated strings into a list,
33609 returns from the list if existing there.
33610 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33611 (grub_gettext_delete_list): Delete the list.
33612 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33613 lang environment variable is changed.
33614 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33616 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33618 Rename kernel.mod to kernel.img.
33620 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33621 (kernel_mod_EXPORTS): Rename to ...
33622 (kernel_img_EXPORTS): ... this.
33623 (kernel_mod_SOURCES): Rename to ...
33624 (kernel_img_SOURCES): ... this.
33625 (kernel_mod_HEADERS): Rename to ...
33626 (kernel_img_HEADERS): ... this. All users updated.
33627 (kernel_mod_CFLAGS): Rename to ...
33628 (kernel_img_CFLAGS): ... this.
33629 (kernel_mod_ASFLAGS): Rename to ...
33630 (kernel_img_ASFLAGS): ... this.
33631 (kernel_mod_LDFLAGS): Rename to ...
33632 (kernel_img_LDFLAGS): ... this.
33633 * conf/x86_64-efi.rmk: Likewise.
33634 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33635 (read_kernel_image): ... this. All users updated.
33636 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33638 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33640 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33641 (print_spaces): New function.
33642 (grub_print_ucs4): New function.
33643 (getstringwidth): New function.
33644 (print_message_indented): New function.
33645 (print_message): Gettexttize strings using print_message_indented.
33646 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33648 (get_entry_number): Gettextize and uses dynamic terminal width.
33649 (notify_booting, notify_fallback, notify_execution_failure):
33651 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33654 (grub_menu_entry_run): Likewise.
33655 * PO/POTFILES: Add normal/menu_entry.c.
33657 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33659 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33661 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33663 * util/grub-install.in: Install gettext .mo files.
33664 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33666 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33668 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33671 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33673 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33674 non-firmware-dependant one in realmode.S takes precedence.
33676 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33678 * commands/halt.c: Replace misc arch-specific headers with
33680 * commands/reboot.c: Likewise.
33681 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33683 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33684 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33685 (kernel_img_SOURCES): ... to here.
33687 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33688 * include/grub/i386/pc/init.h: Likewise.
33689 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33690 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33692 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33694 * include/grub/i386/halt.h: Remove.
33695 * include/grub/i386/reboot.h: Likewise.
33697 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33699 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33701 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33702 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33703 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33705 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33706 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33707 (usage): Add missing comma in printf.
33709 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33711 Use the same reboot approach on i386 coreboot and qemu as we do on
33714 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33715 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33716 * kern/i386/reboot.c: Remove.
33717 * include/grub/i386/reboot.h (grub_reboot): Export function.
33718 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33719 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33720 0xf000:0xfff0 instead of 0xffff:0x0000.
33721 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33722 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33724 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33726 Fix $srcdir != $objdir build.
33728 * Makefile.in (po/%.po): Rewrite as ...
33729 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33731 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33733 Fix GNU/Hurd grub-install crash.
33734 * util/grub-probe.c (probe): Try to access `path' only when it is not
33737 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33739 Correct module naming.
33741 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33742 (GRUB_MOD_INIT(efi_uga)): ... to this
33743 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33744 (GRUB_MOD_FINI(efi_uga)): ... to this
33745 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33746 (GRUB_MOD_INIT(efi_gop)): ... to this
33747 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33748 (GRUB_MOD_FINI(efi_gop)): ... to this
33750 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33752 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33754 (usage): Translate `arg' strings using gettext().
33755 Thanks to Jordi Mallach for the suggestion.
33757 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33759 GOP support. Based on patch from Bean
33760 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33762 * video/efi_gop.c: New file.
33763 * include/grub/efi/graphics_output.h: Likewise.
33764 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33765 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33767 * conf/x86_64-efi.rmk: Likewise.
33769 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33771 Rename efi_fb to efi_uga.
33773 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33775 (efi_fb_mod_SOURCES): Rename this ...
33776 (efi_uga_mod_SOURCES): ... to this.
33777 (efi_fb_mod_CFLAGS): Rename this ...
33778 (efi_uga_mod_CFLAGS): ... to this.
33779 (efi_fb_mod_LDFLAGS): Rename this ...
33780 (efi_uga_mod_LDFLAGS): ... to this.
33781 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33783 (efi_fb_mod_SOURCES): Rename this ...
33784 (efi_uga_mod_SOURCES): ... to this.
33785 (efi_fb_mod_CFLAGS): Rename this ...
33786 (efi_uga_mod_CFLAGS): ... to this.
33787 (efi_fb_mod_LDFLAGS): Rename this ...
33788 (efi_uga_mod_LDFLAGS): ... to this.
33789 * video/efi_fb.c: Move this ...
33790 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33792 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33794 * po/README: New file. Explain our PO file workflow.
33796 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33798 * po/ChangeLog: Remove. Move relevant entries back to ...
33799 * ChangeLog: ... here.
33800 * po/ca.po: Remove (now handled by TLP).
33801 * po/id.po: Likewise.
33802 * po/zh_CN.po: Likewise.
33803 * Makefile.in (LINGUAS): Initialize in a way that supports
33806 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33808 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33809 reliing on po/LINGUAS.
33810 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33811 (po/%.po): ... this.
33813 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33815 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33816 (main): Use `program_name' instead of nonexistent `progname'.
33818 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33820 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33821 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33823 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33825 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33827 * conf/i386-efi.rmk: Likewise.
33828 * conf/i386-ieee1275.rmk: Likewise.
33829 * conf/powerpc-ieee1275.rmk: Likewise.
33830 * conf/sparc64-ieee1275.rmk: Likewise.
33831 * conf/x86_64-efi.rmk: Likewise.
33833 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33835 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33837 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33839 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33841 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33843 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33844 (grub_mkdevicemap_SOURCES): New variable.
33845 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33846 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33847 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33848 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33849 (grub_mkdevicemap_SOURCES): Remove.
33850 * conf/i386-efi.rmk: Likewise.
33851 * conf/i386-ieee1275.rmk: Likewise.
33852 * conf/i386-pc.rmk: Likewise.
33853 * conf/powerpc-ieee1275.rmk: Likewise.
33854 * conf/sparc64-ieee1275.rmk: Likewise.
33855 * conf/x86_64-efi.rmk: Likewise.
33856 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33857 (usage): Fix strings to use `program_name'.
33858 (main): Initialize gettext.
33859 * util/grub-editenv.c: Likewise.
33860 * util/grub-emu.c: Likewise.
33861 * util/grub-fstest.c: Likewise.
33862 * util/grub-mkdevicemap.c: Likewise.
33863 * util/grub-mkfont.c: Likewise.
33864 * util/grub-mkrelpath.c: Likewise.
33865 * util/grub-pe2elf.c: Likewise.
33866 * util/grub-probe.c: Likewise.
33867 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
33868 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33869 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33871 * util/misc.c: Include `"progname.h"'.
33872 (progname): Remove variable.
33873 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
33875 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33877 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
33878 printf and print a newline after the menuentry header line.
33879 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33881 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33883 autoconf >= 2.60 support $(localedir).
33885 * INSTALL: Note that autoconf 2.60 is required.
33886 * configure.ac (AC_PREREQ): Bump to 2.60.
33887 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
33888 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
33890 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
33892 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
33895 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33897 * normal/main.c (grub_normal_read_line): Fix off-by-one
33900 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33902 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
33903 "parser.grub" in grub_command_execute() call.
33905 2009-11-24 Carles Pina i Estany <carles@pina.cat>
33907 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
33908 * conf/i386-efi.rmk: Likewise.
33909 * conf/i386-ieee1275.rmk: Likewise.
33910 * conf/i386-pc.rmk: Likewise.
33911 * conf/powerpc-ieee1275.rmk: Likewise.
33912 * conf/sparc64-ieee1275.rmk: Likewise.
33913 * conf/x86_64-efi.rmk: Likewise.
33914 * gettext/gettex.c: Include <grub/i18n.h>.
33915 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
33917 * include/grub/i18n.h: ... to here
33918 * include/grub/i18n.h: ... to here.
33919 * kern/misc.c: Include <grub/i18n.h>
33920 (grub_gettext_dummy): Move above user.
33922 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33924 * util/Makefile.in (install-local): Convert a `for' into a normal
33927 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
33929 * autogen.sh: Add automake call.
33930 * config.guess: Remove.
33931 * config.sub: Likewise.
33932 * install-sh: Likewise.
33934 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33936 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
33938 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33940 * util/Makefile.in (install-local): Convert a make `$(foreach)'
33941 function to a normal shell `for'.
33943 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33945 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33947 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33949 * util/grub-mkrelpath.c: New file.
33950 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
33951 (grub_mkrelpath_SOURCES): New variable.
33952 * include/grub/util/misc.h: New function prototype.
33953 * util/misc.c (make_system_path_relative_to_its_root): New function.
33955 * util/grub-mkconfig_lib.in (bindir): New variable.
33956 (grub_mkrelpath): Likewise.
33957 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
33959 * util/probe.c (probe): Make the file path relative to its root.
33960 Change a info message to use the GRUB path. Enable again the
33961 check if we can read the file with GRUB facilities.
33963 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
33966 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33968 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
33971 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33973 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
33976 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33978 * util/getroot.c (grub_util_is_dmraid): New function.
33979 (grub_util_get_dev_abstraction): Treat dmraid and multipath
33980 devices as normal ones, not as LVM.
33982 2009-11-23 Carles Pina i Estany <carles@pina.cat>
33984 * conf/common.rmk: Add grub-gettext_lib target and updates
33985 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
33987 * gettext/gettext.c: New file. (Reads mo files).
33988 * include/grub/file.h (grub_file_pread): New prototype.
33989 * include/grub/i18n.h (_): New prototype.
33990 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
33992 * kern/misc.c (grub_gettext_dummy): New function.
33993 * normal/menu_text.c: Include <grub/i18n.h>.
33994 * normal/menu_text.c (print_timeout): Gettexttize string.
33995 * normal/menu_text.c (print_message): Gettexttize string.
33996 * po/POTFILES: Add `normal/menu_text.c'.
33997 * po/ca.po: Add new translations.
33998 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
33999 gettext module and defines locale_dir and lang in grub.cfg.
34000 * NEWS: Add gettext support.
34002 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34004 * util/hostdisk.c: Include `<grub/i18n.h>'.
34005 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34006 (make_device_name): Rewrite using asprintf.
34007 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34008 (find_system_device): If a device is not found, generate one just
34009 by reusing the OS path name.
34010 (read_device_map): Make it permissible for device.map not to exist.
34012 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34014 * script/sh/execute.c: Move from here ...
34015 * script/execute.c: ... to here. Update all users.
34016 * script/sh/function.c: Move from here ...
34017 * script/function.c: ... to here. Update all users.
34018 * script/sh/lexer.c: Move from here ...
34019 * script/lexer.c: ... to here. Update all users.
34020 * script/sh/main.c: Move from here ...
34021 * script/main.c: ... to here. Update all users.
34022 * script/sh/parser.y: Move from here ...
34023 * script/parser.y: ... to here. Update all users.
34024 * script/sh/script.c: Move from here ...
34025 * script/script.c: ... to here. Update all users.
34027 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34029 * configure.ac: Detect all `emu' platforms. Define
34030 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34031 --enable-grub-emu logic. Disable include/grub/machine
34032 symlink on `emu' platforms.
34034 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34035 * gensymlist.sh.in: Likewise.
34037 * include/grub/i386/coreboot/machine.h: Remove file.
34038 * include/grub/i386/efi/machine.h: Likewise.
34039 * include/grub/i386/ieee1275/machine.h: Likewise.
34040 * include/grub/i386/pc/machine.h: Likewise.
34041 * include/grub/i386/qemu/machine.h: Likewise.
34042 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34043 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34044 * include/grub/x86_64/efi/machine.h: Likewise.
34046 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34047 * commands/halt.c: Likewise.
34048 * commands/reboot.c: Likewise.
34049 * include/grub/autoefi.h: Likewise.
34050 * include/grub/i386/at_keyboard.h: Likewise.
34051 * include/grub/i386/kernel.h: Likewise.
34052 * include/grub/i386/loader.h: Likewise.
34053 * include/grub/i386/pc/memory.h: Likewise.
34054 * kern/dl.c: Likewise.
34055 * kern/i386/coreboot/init.c: Likewise.
34056 * loader/i386/bsd.c: Likewise.
34057 * loader/i386/linux.c: Likewise.
34058 * loader/multiboot_loader.c: Likewise.
34059 * term/i386/pc/serial.c: Likewise.
34060 * term/usb_keyboard.c: Likewise.
34062 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34063 `<grub/machine/machine.h>'
34064 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34065 * util/misc.c: Remove `<grub/machine/machine.h>' and
34066 `<grub/machine/time.h>'.
34068 * Makefile.in (enable_grub_emu): Remove variable.
34069 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34071 * conf/any-emu.rmk: New file.
34072 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34073 (grub_emu_init.c): Move from here ...
34074 * conf/any-emu.rmk: ... to here.
34076 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34077 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34078 * conf/any-emu.rmk: ... to here.
34080 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34082 * include/grub/parser.h (grub_parser_register): Document need
34083 of `name' parameter.
34084 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34085 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34088 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34090 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34092 * include/grub/i18n.h (N_): New macro.
34093 * util/mkisofs/mkisofs.h: Likewise.
34094 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34096 (usage): Use gettext() to translate help strings when printing them.
34098 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34100 Based on patch from Bean
34101 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34103 * video/efi_fb.c: New file.
34104 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34105 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34107 * conf/x86_64-efi.rmk: Likewise.
34109 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34111 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34112 * util/i386/pc/grub-setup.c: Likewise.
34114 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34116 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34118 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34119 file_get_storage_info to implement grub_guess_root_device.
34121 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34123 * Makefile.in (target): Use make's builtin $(shell) function
34124 instead of calling directly $(SHELL) to create the locale directories,
34125 inside the $(foreach) function.
34127 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34129 * util/grub-mkrescue.in: Print an error and usage if output option
34130 has not been given.
34132 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34134 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34135 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34136 root and /boot are on different devices.
34138 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34140 Fix build for srcdir != objdir.
34142 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34143 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34145 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34146 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34147 reference for input.
34149 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34151 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34152 or hardlinking it). Remove -J option, Joliet is not compatible with
34153 multiple source directories.
34155 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34156 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34158 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34159 (process_input_dir): New function. Process an arbitrary input
34161 Misc adjustments to support both "override mode" and system-wide mode.
34163 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34165 * configure.ac (UNIFONT_BDF): Rename to ...
34166 (FONT_SOURCE): ... this. Update all users.
34168 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34170 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34171 to the list of unifont files to look for.
34173 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34175 Patch from Joe Auricchio <jauricchio@gmail.com>
34176 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34177 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34178 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34180 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34182 * Makefile.in (install-local): Add a missing backslash.
34184 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34186 * include/grub/x86_64/io.h: New file.
34188 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34190 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34191 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34192 Include `"progname.h"'.
34193 (main): Initialize gettext.
34194 * util/i386/pc/grub-setup.c: Gettexttize.
34195 * util/i386/pc/grub-mkimage.c: Likewise.
34197 * Makefile.in (po/*.po): Redefine as ...
34198 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34200 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34202 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34204 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34205 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34206 (program_name): Remove.
34207 (main): Initialize gettext support.
34208 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34209 Include `<libintl.h>'.
34212 * util/mkisofs/eltorito.c: Gettexttize.
34213 * util/mkisofs/joliet.c: Likewise.
34214 * util/mkisofs/mkisofs.c: Likewise.
34215 * util/mkisofs/multi.c: Likewise.
34216 * util/mkisofs/rock.c: Likewise.
34217 * util/mkisofs/tree.c: Likewise.
34218 * util/mkisofs/write.c: Likewise.
34220 * po/POTFILES: Update with new files.
34222 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34224 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34225 * util/mkisofs/iso9660.h: Likewise.
34226 * util/mkisofs/joliet.c: Likewise.
34227 * util/mkisofs/mkisofs.c: Likewise.
34228 * util/mkisofs/mkisofs.h: Likewise.
34229 * util/mkisofs/rock.c: Likewise.
34230 * util/mkisofs/tree.c: Likewise.
34231 * util/mkisofs/write.c: Likewise.
34233 * util/mkisofs/eltorito.c (rcsid): Remove.
34234 * util/mkisofs/hash.c: Likewise.
34235 * util/mkisofs/joliet.c: Likewise.
34236 * util/mkisofs/name.c: Likewise.
34237 * util/mkisofs/rock.c: Likewise.
34238 * util/mkisofs/tree.c: Likewise.
34239 * util/mkisofs/write.c: Likewise.
34241 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34243 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34244 instead of static allocation.
34245 * util/mkisofs/match.h: Likewise.
34247 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34249 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34250 and `util/grub.d/10_linux.in'.
34251 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34252 translatable Shell files.
34254 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34256 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34258 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34260 * INSTALL: Document Automake is needed for bootstrap.
34261 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34262 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34263 Add gettext initialization.
34264 (kfreebsd_entry): Make menuentry output translatable.
34266 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34268 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34269 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34270 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34271 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34272 (LINGUAS): Auto-generate using `po/LINGUAS'.
34273 * po/LINGUAS: New file.
34275 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34277 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34279 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34280 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34281 bindtextdomain() calls for gettext initialization.
34283 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34285 * gnulib/progname.c: New file (imported from Gnulib).
34286 * gnulib/progname.h: Likewise.
34287 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34288 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34289 (usage): Replace `progname' with `program_name'.
34290 (main): Use set_program_name() for program name initialization.
34292 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34294 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34296 * Makefile.in (CPPFLAGS): ... to here.
34298 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34300 * aclocal.m4: Move from here ...
34301 * acinclude.m4: ... to here.
34302 * autogen.sh: Add call to `aclocal'.
34303 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34305 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34307 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34308 (LINGUAS): New variable.
34309 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34310 (install-local): Install MO files.
34311 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34312 * include/grub/i18n.h: New file.
34313 * po/POTFILES: New file.
34314 * po/ca.po: New file.
34315 * util/grub.d/10_linux.in (bindir): New variable.
34316 Add gettext initialization.
34317 (linux_entry): Make menuentry output translatable.
34318 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34319 (usage): Make --help output translatable.
34320 (main): Initialize gettext.
34322 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34324 * import_gcry.py: New file (written by Vladimir with minor
34326 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34328 * INSTALL: Document that Python is required for bootstrap.
34330 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34332 Import ciphers from libgcrypt 1.4.4.
34334 * lib/libgcrypt/cipher/ChangeLog
34335 * lib/libgcrypt/cipher/ac.c
34336 * lib/libgcrypt/cipher/arcfour.c
34337 * lib/libgcrypt/cipher/bithelp.h
34338 * lib/libgcrypt/cipher/blowfish.c
34339 * lib/libgcrypt/cipher/camellia-glue.c
34340 * lib/libgcrypt/cipher/camellia.c
34341 * lib/libgcrypt/cipher/camellia.h
34342 * lib/libgcrypt/cipher/cast5.c
34343 * lib/libgcrypt/cipher/cipher.c
34344 * lib/libgcrypt/cipher/crc.c
34345 * lib/libgcrypt/cipher/des.c
34346 * lib/libgcrypt/cipher/dsa.c
34347 * lib/libgcrypt/cipher/ecc.c
34348 * lib/libgcrypt/cipher/elgamal.c
34349 * lib/libgcrypt/cipher/hash-common.c
34350 * lib/libgcrypt/cipher/hash-common.h
34351 * lib/libgcrypt/cipher/hmac-tests.c
34352 * lib/libgcrypt/cipher/md.c
34353 * lib/libgcrypt/cipher/md4.c
34354 * lib/libgcrypt/cipher/md5.c
34355 * lib/libgcrypt/cipher/primegen.c
34356 * lib/libgcrypt/cipher/pubkey.c
34357 * lib/libgcrypt/cipher/rfc2268.c
34358 * lib/libgcrypt/cipher/rijndael-tables.h
34359 * lib/libgcrypt/cipher/rijndael.c
34360 * lib/libgcrypt/cipher/rmd.h
34361 * lib/libgcrypt/cipher/rmd160.c
34362 * lib/libgcrypt/cipher/rsa.c
34363 * lib/libgcrypt/cipher/seed.c
34364 * lib/libgcrypt/cipher/serpent.c
34365 * lib/libgcrypt/cipher/sha1.c
34366 * lib/libgcrypt/cipher/sha256.c
34367 * lib/libgcrypt/cipher/sha512.c
34368 * lib/libgcrypt/cipher/tiger.c
34369 * lib/libgcrypt/cipher/twofish.c
34370 * lib/libgcrypt/cipher/whirlpool.c
34372 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34374 Fix build for systems without error().
34376 * gnulib/error.c: New file (imported from Gnulib).
34377 * gnulib/error.h: Likewise.
34378 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34379 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34380 (this variable is now used by error()).
34382 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34384 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34385 instead of relying that char is signed.
34387 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34389 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34390 blocksize different from specified.
34391 (grub_pxefs_read): Likewise.
34393 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34395 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34397 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34398 (grub_ata_readwrite): Likewise. Update 2 format strings.
34399 (grub_atapi_read): Likewise.
34401 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34402 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34403 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34404 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34405 (ata_mod_LDFLAGS): Move from here ...
34406 * conf/i386.rmk: ... to here ...
34407 * conf/x86_64-efi.rmk: ... and here.
34408 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34409 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34411 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34413 Relicense multiboot.h, with RMS' blessing.
34415 * include/multiboot.h: Change to X11 license.
34417 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34419 Support --version in grub-mkisofs.
34421 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34422 (OPTION_VERSION): New macro.
34423 (ld_options): Recognize --version.
34424 (usage): Move `program_name' from here ...
34425 (program_name): ... to here. Add `static' qualifier.
34426 (main): Recognize `OPTION_VERSION'.
34428 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34430 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34431 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34433 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34435 Fix help2man generation for mkisofs.
34437 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34438 (usage): Send output to stdout (rather than stderr).
34440 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34442 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34443 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34444 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34445 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34446 (bin_SCRIPTS): Add `grub-mkfloppy'.
34447 (grub_mkfloppy_SOURCES): New variable.
34449 * util/grub-mkrescue.in: New file.
34450 * util/i386/pc/grub-mkfloppy.in: New file.
34452 * util/i386/coreboot/grub-mkrescue.in: Remove.
34453 * util/i386/pc/grub-mkrescue.in: Remove.
34455 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34457 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34459 * include/multiboot.h (struct multiboot_header): ... to here. Update
34461 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34463 * include/multiboot.h (struct multiboot_info): ... to here. Update
34465 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34467 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34469 * include/grub/multiboot.h (struct grub_mod_list): Move
34471 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34474 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34476 * include/multiboot2.h (multiboot_word): Rename from this ...
34477 (multiboot2_word): ... to this. Update all users.
34478 (multiboot_header): Rename from this ...
34479 (multiboot2_header): ... to this. Update all users.
34480 (multiboot_tag_header): Rename from this ...
34481 (multiboot2_tag_header): ... to this. Update all users.
34482 (multiboot_tag_start): Rename from this ...
34483 (multiboot2_tag_start): ... to this. Update all users.
34484 (multiboot_tag_name): Rename from this ...
34485 (multiboot2_tag_name): ... to this. Update all users.
34486 (multiboot_tag_module): Rename from this ...
34487 (multiboot2_tag_module): ... to this. Update all users.
34488 (multiboot_tag_memory): Rename from this ...
34489 (multiboot2_tag_memory): ... to this. Update all users.
34490 (multiboot_tag_unused): Rename from this ...
34491 (multiboot2_tag_unused): ... to this. Update all users.
34492 (multiboot_tag_end): Rename from this ...
34493 (multiboot2_tag_end): ... to this. Update all users.
34495 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34497 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34498 this platform we should support Multiboot1 first.
34500 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34501 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34502 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34504 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34506 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34507 of write calls (converting them to fwrite() if they aren't already).
34508 (get_torito_desc): Likewise.
34509 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34511 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34513 * util/i386/pc/grub-install.in: Move from here ...
34514 * util/grub-install.in: ... to here. Update all users.
34516 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34518 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34520 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34522 Support for El Torito without floppy emulation.
34524 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34525 (init_boot_catalog): Improve error handling.
34526 (get_torito_desc): Don't use floppy emulation unless requested by
34527 user. Patch boot information table when requested via
34528 `-boot-info-table'.
34529 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34530 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34531 (use_boot_info_table): New variables.
34532 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34533 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34534 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34535 `--eltorito-emul-floppy'.
34536 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34537 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34538 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34539 (use_boot_info_table, get_731): New prototypes.
34540 * util/mkisofs/write.c (get_731): New function.
34542 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34544 Fix the generation of the man page.
34546 * util/pc/i386/grub-install.in: Source
34547 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34549 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34551 Large file support for grub-mkisofs.
34553 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34554 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34555 (session_start): Upgrade type to `uint64_t'. Update all users.
34556 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34557 (struct directory_entry): Upgrade type of `starting_block' and
34558 `size' to `uint64_t'. Update all users.
34559 (struct deferred): Remove unused structure.
34560 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34562 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34563 file is larger than `UINT32_MAX'.
34564 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34565 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34567 (struct deferred_write): Upgrade type of `extent' and `size' to
34568 `uint64_t'. Update all users.
34569 (last_extent_written): Upgrade type to `uint64_t'. Update all
34571 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34572 Update all users. Upgrade type of `remain' to `int64_t' and
34573 `use' to `size_t'. Use error() to handle fread() errors.
34574 (write_files): Rely on write_one_file() rather than calling
34575 xfwrite() directly.
34577 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34579 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34581 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34583 * util/mkisofs/fnmatch.c: Remove.
34584 * util/mkisofs/getopt1.c: Likewise.
34585 * util/mkisofs/getopt.c: Likewise.
34586 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34587 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34588 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34589 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34590 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34592 * configure.ac: Detect `mingw32msvc' host_os.
34593 Check for lstat(), getuid() and getgid().
34595 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34596 instances of `u_char' with `uint8_t'.
34598 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34599 [!HAVE_GETUID] (getuid): New function (stub).
34600 [!HAVE_GETGID] (getgid): Likewise.
34601 [!HAVE_LSTAT] (lstat): Likewise.
34602 [!S_IROTH] (S_IROTH): New macro (dummy).
34603 [!S_IRGRP] (S_IRGRP): Likewise.
34605 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34607 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34608 conditional expression).
34610 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34612 Import from Gnulib.
34614 * gnulib/fnmatch.c: New file.
34615 * gnulib/fnmatch.h: Likewise.
34616 * gnulib/fnmatch_loop.c: Likewise.
34617 * gnulib/getopt.c: Likewise.
34618 * gnulib/getopt.h: Likewise.
34619 * gnulib/getopt1.c: Likewise.
34620 * gnulib/getopt_int.h: Likewise.
34621 * gnulib/gettext.h: Likewise.
34623 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34625 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34626 * normal/handler.c (read_handler_list): Likewise.
34628 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34632 * kern/command.c (grub_register_command_prio): Use
34633 grub_zalloc() instead of explicitly zeroing data.
34634 * kern/list.c: Include `<grub/mm.h>'.
34635 (grub_named_list_find): Replace `0' with `NULL'.
34636 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34637 (fs_module_list): Change type to `grub_named_list_t'. Update all
34639 * normal/dyncmd.c (read_command_list): Add space between function
34640 call and parenthesis.
34641 * normal/handler.c (read_handler_list): Likewise.
34643 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34645 * normal/auth.c (punishment_delay): Moved from here ...
34646 (grub_auth_strcmp): ... to here (inside function).
34648 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34650 * include/grub/list.h (struct grub_named_list): Remove `const'
34651 qualifier from `name'.
34652 (struct grub_prio_list): Likewise.
34654 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34656 * normal/auth.c: Include `<grub/time.h>'.
34657 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34659 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34661 * normal/auth.c (punishment_delay): New variable.
34662 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34663 (grub_auth_check_authentication): Punish failed login attempts with
34664 an incremental (2^N) delay.
34666 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34668 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34669 path with $(srcdir).
34671 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34673 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34675 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34677 * util/i386/coreboot/grub-mkrescue.in: New file.
34678 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34681 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34682 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34683 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34685 * util/mkisofs/defaults.h: New file.
34686 * util/mkisofs/eltorito.c: Likewise.
34687 * util/mkisofs/exclude.h: Likewise.
34688 * util/mkisofs/fnmatch.c: Likewise.
34689 * util/mkisofs/getopt.c: Likewise.
34690 * util/mkisofs/getopt1.c: Likewise.
34691 * util/mkisofs/hash.c: Likewise.
34692 * util/mkisofs/include/fctldefs.h: Likewise.
34693 * util/mkisofs/include/mconfig.h: Likewise.
34694 * util/mkisofs/include/prototyp.h: Likewise.
34695 * util/mkisofs/include/statdefs.h: Likewise.
34696 * util/mkisofs/iso9660.h: Likewise.
34697 * util/mkisofs/joliet.c: Likewise.
34698 * util/mkisofs/match.c: Likewise.
34699 * util/mkisofs/match.h: Likewise.
34700 * util/mkisofs/mkisofs.c: Likewise.
34701 * util/mkisofs/mkisofs.h: Likewise.
34702 * util/mkisofs/multi.c: Likewise.
34703 * util/mkisofs/name.c: Likewise.
34704 * util/mkisofs/rock.c: Likewise.
34705 * util/mkisofs/tree.c: Likewise.
34706 * util/mkisofs/write.c: Likewise.
34708 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34710 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34713 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34715 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34716 `grub-mkimage' (and use $0 when possible).
34718 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34720 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34721 error message for excessively large memory map.
34723 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34725 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34728 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34730 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34731 message for coreboot users.
34733 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34735 Fix build with GNU gold.
34737 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34738 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34739 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34741 * aclocal.m4: Likewise.
34743 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34745 * configure.ac (AC_PREREQ): Bump to 2.59d.
34746 * INSTALL: Make it more clear when Autoconf and Ruby are
34747 needed and when to run `./autogen.sh'.
34749 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34751 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34754 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34756 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34758 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34760 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34761 giving it to GNU Mach.
34763 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34765 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34766 GNU partition number to get internal GRUB partition number.
34768 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34770 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34771 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34773 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34775 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34776 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34779 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34781 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34783 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34787 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34788 `-isystem=$(srcdir)/include'.
34790 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34792 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34793 checked (grub-install doesn't currently rely on it).
34795 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34799 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34800 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34801 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34802 * conf/i386-ieee1275.rmk: Likewise.
34803 * conf/i386-pc.rmk: Likewise.
34804 * conf/powerpc-ieee1275.rmk: Likewise.
34805 * conf/sparc64-ieee1275.rmk: Likewise.
34806 * conf/x86_64-efi.rmk: Likewise.
34808 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34810 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34812 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34814 * include/grub/misc.h: Stop checking for APPLE_CC.
34816 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34818 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34819 doesn't cause an infinite call loop.
34821 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34823 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34826 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34828 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34830 * Makefile.in: Likewise.
34832 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34834 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34836 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34838 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34840 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34842 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34844 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34846 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34848 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34850 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34852 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34853 in $(MAKEINFO) invocation. This makes it clear in output that
34854 errors are being ignored.
34856 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34858 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34860 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34861 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
34862 * conf/i386-ieee1275.rmk: Likewise.
34863 * conf/i386-pc.rmk: Likewise.
34864 * conf/powerpc-ieee1275.rmk: Likewise.
34865 * conf/sparc64-ieee1275.rmk: Likewise.
34866 * conf/x86_64-efi.rmk: Likewise.
34868 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34870 * util/grub-editenv.c (main): If only a command is given, use
34871 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
34872 (usage): FILENAME is now optional and has a default.
34874 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34876 Improve grub-mkconfig performance when there are several menu
34877 entries on a single filesystem.
34879 * util/grub.d/10_linux.in (linux_entry): Cache the output of
34880 prepare_grub_to_access_device.
34881 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34882 * util/grub.d/30_os-prober.in: Likewise.
34884 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34886 * util/grub.d/10_freebsd.in: Remove.
34887 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
34888 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
34890 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34892 * docs/grub.cfg: Fix example usage of *BSD loaders.
34894 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34896 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
34897 grub_util_error() call.
34899 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34901 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
34902 `reserved_first_sector' member.
34903 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
34904 `reserved_first_sector' to 1.
34905 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
34906 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
34907 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
34908 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
34909 filesystems which begin at first sector.
34910 (options): New option --skip-fs-probe.
34911 (main): Handle --skip-fs-probe and pass it to setup().
34913 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34915 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
34916 (memset): Fix function prototype.
34918 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34919 2009-10-25 Vasily Averin <vvs@parallels.com>
34921 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
34922 `dirent.direntlen == 0'.
34924 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34926 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
34928 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
34930 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34932 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
34933 `__trampoline_setup' and `__ucmpdi2'.
34934 * include/grub/powerpc/libgcc.h: Only export symbols for functions
34935 that libgcc provides.
34937 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34939 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
34940 * include/grub/sparc64/libgcc.h (memset): Likewise.
34941 * include/grub/misc.h (memset, memcmp): New function prototypes.
34943 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34945 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
34947 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
34949 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34951 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
34952 * docs/grub.cfg: Compensate for recent change in multiboot
34953 loader (since 2009-08-14 it won't pass filename to payload).
34954 * util/grub.d/10_hurd.in: Likewise.
34956 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
34958 * config.guess: Update to latest version from config git
34960 * config.sub: Likewise.
34962 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
34964 Fix build on sparc64.
34966 * configure.ac: Perform checks for libgcc symbols before
34967 adding `-nostdlib' to LDFLAGS.
34969 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34971 Let user specify OpenBSD root device.
34973 * loader/i386/bsd.c (openbsd_root): New variable.
34974 (openbsd_opts): New option 'root'.
34975 (OPENBSD_ROOT_ARG): New macro.
34976 (grub_openbsd_boot): Use 'openbsd_root'.
34977 (grub_cmd_openbsd): Fill 'openbsd_root'.
34979 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34981 * NEWS: Misc adjustments.
34983 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34985 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
34987 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34989 * configure.ac: Bump version to 1.97.
34991 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
34993 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
34994 -mno-3dnow on x86 architectures. Some toolchains enable these
34995 features by default, but they rely on registers that aren't enabled
34996 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
34998 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35000 Make entry text a bit more readable.
35002 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35004 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35006 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35008 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35010 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35013 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35015 * configure.ac: Add missing dollar.
35017 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35019 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35021 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35022 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35024 * include/grub/sparc64/libgcc.h: Likewise. Use
35025 preprocessor conditionals.
35027 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35029 * conf/common.rmk (grub-dumpbios): Remove rule.
35030 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35031 * util/grub-dumpbios.in: Remove file.
35033 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35035 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35036 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35038 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35039 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35042 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35043 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35044 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35045 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35048 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35050 * term/tparm.c: Switch to GPLv3.
35052 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35054 * include/grub/i386/cpuid.h: Add header protection.
35056 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35058 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35060 * include/grub/i386/cpuid.h: New file.
35061 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35062 (has_longmode): Rename to ...
35063 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35064 `static' attribute.
35065 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35066 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35067 on a CPU that doesn't implement AMD64 instruction set.
35069 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35071 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35072 that version.texi is rebuilt on version number changes.
35074 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35076 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35079 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35081 * util/i386/pc/grub-install.in: Source
35082 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35083 that the --grub-probe option will work.
35084 * util/sparc64/ieee1275/grub-install.in: Likewise.
35086 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35088 * configure.ac: Bump version to 1.97~beta4.
35090 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35092 Resync grub-mkdevicemap in x86_64-efi.
35094 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35095 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35096 `util/devicemap.c'.
35098 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35100 * util/grub-editenv.c (create_envblk_file): Write new block with a
35101 .new suffix and then rename it into place, to ensure atomic
35104 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35106 Do not automatically install headers.
35108 * Makefile.in (include_DATA): Remove. Update all users.
35110 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35112 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35113 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35115 * util/osdetect.lua: Remove.
35116 * script/lua/lauxlib.c: Likewise.
35117 * script/lua/ldebug.c: Likewise.
35118 * script/lua/grub_main.c: Likewise.
35119 * script/lua/lauxlib.h: Likewise.
35120 * script/lua/ldebug.h: Likewise.
35121 * script/lua/ltablib.c: Likewise.
35122 * script/lua/liolib.c: Likewise.
35123 * script/lua/lstrlib.c: Likewise.
35124 * script/lua/lualib.h: Likewise.
35125 * script/lua/ldo.c: Likewise.
35126 * script/lua/ldump.c: Likewise.
35127 * script/lua/ldo.h: Likewise.
35128 * script/lua/loslib.c: Likewise.
35129 * script/lua/lundump.c: Likewise.
35130 * script/lua/grub_lib.c: Likewise.
35131 * script/lua/ldblib.c: Likewise.
35132 * script/lua/lundump.h: Likewise.
35133 * script/lua/lmem.c: Likewise.
35134 * script/lua/grub_lib.h: Likewise.
35135 * script/lua/lmathlib.c: Likewise.
35136 * script/lua/lstate.c: Likewise.
35137 * script/lua/ltm.c: Likewise.
35138 * script/lua/lvm.c: Likewise.
35139 * script/lua/lmem.h: Likewise.
35140 * script/lua/lstate.h: Likewise.
35141 * script/lua/ltm.h: Likewise.
35142 * script/lua/ltable.c: Likewise.
35143 * script/lua/lvm.h: Likewise.
35144 * script/lua/llex.c: Likewise.
35145 * script/lua/lgc.c: Likewise.
35146 * script/lua/grub_lua.h: Likewise.
35147 * script/lua/loadlib.c: Likewise.
35148 * script/lua/lfunc.c: Likewise.
35149 * script/lua/lopcodes.c: Likewise.
35150 * script/lua/lparser.c: Likewise.
35151 * script/lua/ltable.h: Likewise.
35152 * script/lua/llex.h: Likewise.
35153 * script/lua/lgc.h: Likewise.
35154 * script/lua/lfunc.h: Likewise.
35155 * script/lua/lbaselib.c: Likewise.
35156 * script/lua/lopcodes.h: Likewise.
35157 * script/lua/lparser.h: Likewise.
35158 * script/lua/lzio.c: Likewise.
35159 * script/lua/linit.c: Likewise.
35160 * script/lua/lobject.c: Likewise.
35161 * script/lua/llimits.h: Likewise.
35162 * script/lua/lstring.c: Likewise.
35163 * script/lua/lzio.h: Likewise.
35164 * script/lua/lapi.c: Likewise.
35165 * script/lua/lcode.c: Likewise.
35166 * script/lua/lua.h: Likewise.
35167 * script/lua/lobject.h: Likewise.
35168 * script/lua/lstring.h: Likewise.
35169 * script/lua/lapi.h: Likewise.
35170 * script/lua/lcode.h: Likewise.
35171 * script/lua/luaconf.h: Likewise.
35173 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35175 * docs/grub.texi (Command-line and menu entry commands): Document
35176 date and echo commands.
35178 2009-09-24 Pavel Roskin <proski@gnu.org>
35180 * include/grub/kernel.h (struct grub_module_header): Remove
35181 `grub_module_header_types'. Make `type' unsigned. Make `size'
35182 32-bit on all platforms.
35183 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35184 8-bit field. Use grub_host_to_target32() for `size'.
35185 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35186 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35187 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35189 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35191 Fix "lost keypress" bug in at_keyboard.
35193 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35194 Checks for readyness of input buffer (without flushing it).
35195 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35196 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35198 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35200 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35201 size check within GRUB_MACHINE_PCBIOS section.
35203 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35205 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35207 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35208 KEYBOARD_ISREADY check.
35209 (grub_at_keyboard_checkkey): Rename to ...
35210 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35211 Remove gratuitous cast.
35213 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35215 * configure.ac: Call AC_PROG_MKDIR_P.
35216 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35217 version.texi in $(builddir) rather than $(srcdir).
35218 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35219 to makeinfo's @include search path.
35221 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35223 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35225 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35227 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35230 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35232 Build info documentation. Some code borrowed from Automake.
35234 * configure.ac: Check for makeinfo.
35235 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35236 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35238 (MOSTLYCLEANFILES): Add vti.tmp.
35239 (docs/version.texi, docs/stamp-vti): Update automatically.
35240 (docs/grub.info): Build info documentation. Use --force and ignore
35242 (all-local): Add $(INFOS).
35243 (install-local): Install info files.
35244 (uninstall): Uninstall info files.
35245 * docs/version.texi: Remove from revision control. This file is
35246 automatically generated on build now.
35247 * gendistlist.sh: Add `*.info'.
35249 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35251 * kern/term.c: Fix indentation.
35253 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35255 * util/hostdisk.c: Fix a comment.
35257 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35259 Fix regression introduced in r2539.
35261 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35264 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35266 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35267 os-prober. Under normal operation, it does not print anything to
35268 stderr; if it does, we need to debug it, and throwing away stderr
35269 makes that excessively difficult.
35271 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35273 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35275 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35277 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35278 AC_LANG_PROGRAM from autoconf.
35279 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35280 prototypes (fixes warning).
35282 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35283 `--disable-werror' was used.
35285 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35287 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35288 uninitialized `lastaddr'.
35290 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35292 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35294 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35296 * commands/test.c (get_fileinfo): Return immediately if
35297 grub_fs_probe fails.
35299 2009-09-14 José Martínez <xosemp@gmail.com>
35301 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35303 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35305 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35308 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35310 * configure.ac: Remove --enable-grub-pe2elf. Only build
35311 grub-pe2elf when needed by the build system itself.
35312 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35314 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35316 * configure.ac: Bump version to 1.97~beta3.
35317 * docs/version.texi: Likewise.
35319 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35321 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35322 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35324 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35325 (grub_linux_setup_video): ... to here (with some adjustments).
35327 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35329 Fix memory corruption issue (spotted by Colin Watson).
35331 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35332 causing returned size to be stored in an incorrect memory location.
35333 Fix use of uninitialized value when storing the returned size.
35335 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35337 Change clean rules to properly remove files
35339 * genmk.rb: add new clean rules
35340 * Makefile.in (clean): add the new targets
35341 (mostlyclean): likewise
35343 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35345 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35347 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35348 non-resident files.
35350 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35352 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35353 part of bug #27349.
35355 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35357 * util/grub-mkconfig.in: Make the created config mode 400 and
35358 print a warning if it fails.
35360 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35362 * util/grub.d/40_custom.in: Ask user to type custom entries below
35363 comment, rather than below 'exec tail' line.
35365 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35367 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35368 visible in grub.cfg.
35370 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35372 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35375 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35377 * docs/grub.cfg: Add an example menu entry for memtest86+.
35379 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35381 * config.guess: Update to latest version from config git.
35382 * config.sub: Likewise.
35384 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35386 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35387 unknown-command case. Fixes bug #27320.
35389 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35391 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35392 `help' if the command exists.
35394 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35396 * INSTALL: Require GCC 4.1.3 or later.
35398 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35400 * Makefile.in (RMKFILES): add i386-qemu.rmk
35401 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35402 $(srcdir)/stamp-h.in
35404 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35406 * util/grub-probe.c (probe): Comment out buggy codepath, which
35407 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35408 should be re-enabled after 1.97.
35410 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35412 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35415 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35417 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35418 unnecessary calls to grub_error.
35420 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35422 * NEWS: Mention `keystatus' and Unicode fonts.
35424 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35426 * configure.ac: Bump version to 1.97~beta2.
35427 * docs/version.texi: Likewise.
35429 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35431 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35432 containing unwind information in some cases where it previously did
35433 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35434 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35437 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35439 Embedding loadenv module into grub-emu
35441 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35443 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35444 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35445 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35446 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35447 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35448 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35450 2009-09-03 Magnus Granberg <zorry@ume.nu>
35452 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35453 include -fPIE in the default specs.
35454 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35457 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35459 * INSTALL: Note that GNU Bison 2.3 or later is required.
35461 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35463 * kern/i386/pc/startup.S: Fix typo.
35465 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35467 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35470 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35472 * docs/grub.texi (Naming convention): Describe one-based partition
35474 (Device syntax): Likewise.
35475 (File name syntax): Likewise.
35476 (Block list syntax): Likewise.
35477 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35479 (File name syntax): Likewise.
35480 (Command-line and menu entry commands): Document acpi, blocklist,
35481 crc, export, insmod, keystatus, ls, set, and unset commands.
35483 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35485 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35486 to avoid implying that only one of --shift, --ctrl, or --alt may be
35489 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35491 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35492 rather than comparing against S_IFREG, which will almost never work.
35494 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35496 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35497 (write_blocklists): Likewise.
35499 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35501 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35502 argument to grub_printf.
35504 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35506 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35509 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35511 * kern/file.c (grub_file_read): Spelling fix
35513 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35515 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35516 loading of headers in some cases.
35518 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35520 * configure.ac: Bump version to 1.97~beta1.
35521 * docs/version.texi: Likewise.
35523 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35525 * include/grub/i386/xnu.h: Add license header.
35526 include grub/err.h explicitly.
35528 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35530 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35531 to `ufs' in the vfs.root.mountfrom kernel parameter.
35533 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35535 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35537 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35538 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35540 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35541 `ARRAY_SIZE' macro.
35543 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35545 * kern/file.c (grub_file_read): Check offset.
35546 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35547 * fs/jfs.c (grub_jfs_read_file): Likewise.
35548 * fs/ntfs.c (grub_ntfs_read): Likewise.
35549 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35550 * fs/minix.c (grub_minix_read_file): Correct offset check.
35551 * fs/ufs.c (grub_ufs_read_file): Likewise.
35553 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35555 * term/i386/pc/console.c (bios_data_area): Cast
35556 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35558 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35560 1-bit optimised blitters.
35562 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35564 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35565 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35566 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35567 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35568 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35569 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35570 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35572 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35573 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35574 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35575 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35576 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35577 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35578 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35580 * video/video.c (grub_video_get_blit_format): Return
35581 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35583 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35585 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35586 the first argument to grub_printf.
35588 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35589 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35591 Add `getkeystatus' terminal method. Add a new `keystatus' command
35594 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35595 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35596 modifier key bitmasks.
35597 (struct grub_term_input): Add `getkeystatus' member.
35598 (grub_getkeystatus): Add prototype.
35599 * kern/term.c (grub_getkeystatus): New function.
35601 * include/grub/i386/pc/memory.h
35602 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35603 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35605 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35606 (grub_console_term_input): Set `getkeystatus' member.
35607 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35609 (grub_usb_keyboard_getreport): Likewise.
35610 (grub_usb_keyboard_checkkey): Likewise.
35611 (grub_usb_keyboard_getkeystatus): New function.
35612 (grub_usb_keyboard_term): Set `getkeystatus' member.
35614 * commands/keystatus.c: New file.
35615 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35616 (keystatus_mod_SOURCES): New variable.
35617 (keystatus_mod_CFLAGS): Likewise.
35618 (keystatus_mod_LDFLAGS): Likewise.
35619 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35620 commands/keystatus.c.
35621 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35622 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35623 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35624 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35625 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35626 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35628 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35630 Split befs.mod and afs.mod into *_be.mod and *.mod
35632 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35633 (grub_fstest_SOURCES): Likewise.
35634 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35635 (afs_be_mod_SOURCES): New variable.
35636 (afs_be_mod_CFLAGS): Likewise.
35637 (afs_be_mod_LDFLAGS): Likewise.
35638 (befs_be_mod_SOURCES): Likewise.
35639 (befs_be_mod_CFLAGS): Likewise.
35640 (befs_be_mod_LDFLAGS): Likewise.
35641 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35642 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35643 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35644 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35645 (grub_emu_SOURCES): Likewise.
35646 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35647 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35648 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35649 * fs/afs_be.c: New file.
35650 * fs/befs_be.c: New file.
35651 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35652 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35653 (U16): Replaced with ...
35654 (grub_afs_to_cpu16): ...this. All users updated.
35655 (U32): Replaced with ...
35656 (grub_afs_to_cpu32): ...this. All users updated.
35657 (U64): Replaced with ...
35658 (grub_afs_to_cpu64): ...this. All users updated.
35659 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35660 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35661 (grub_afs_validate_sblock): Check only one endianness.
35662 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35663 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35664 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35665 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35666 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35667 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35668 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35669 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35671 2009-08-26 Bean <bean123ch@gmail.com>
35673 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35675 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35676 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35677 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35679 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35681 NetBSD memory map support.
35683 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35684 (grub_netbsd_btinfo_mmap_header): New structure.
35685 (grub_netbsd_btinfo_mmap_entry): Likewise.
35686 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35688 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35690 Enable bsd.mod on coreboot.
35692 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35693 (bsd_mod_SOURCES): New variable.
35694 (bsd_mod_CFLAGS): Likewise.
35695 (bsd_mod_LDFLAGS): Likewise.
35696 (bsd_mod_ASFLAGS): Likewise.
35697 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35698 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35700 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35702 Cleanup NetBSD root support.
35704 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35705 grub_bsd_get_device.
35708 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35710 * util/grub.d/00_header.in: Move check for the video backend of
35711 gfxterm from here ...
35712 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35713 a suitable video backend.
35715 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35717 Fix breakage in grub-setup.
35719 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35720 "msdos_partition_map".
35722 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35724 Fix breakage in normal/auth.c.
35726 * normal/auth.c (grub_iswordseparator): New function.
35728 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35730 Authentication support.
35732 * commands/password.c: New file.
35733 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35734 (password_mod_SOURCES): New variable.
35735 (password_mod_CFLAGS): Likewise.
35736 (password_mod_LDFLAGS): Likewise.
35737 (normal_mod_SOURCES): Add normal/auth.c.
35738 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35740 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35741 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35742 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35743 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35744 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35745 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35746 * include/grub/auth.h: New file.
35747 * include/grub/err.h (grub_err_t): New enum value
35748 GRUB_ERR_ACCESS_DENIED.
35749 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35751 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35752 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35754 * normal/auth.c: New file.
35755 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35756 (grub_cmdline_run): Don't allow to go to command line without
35758 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35759 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35760 menuentry without superuser rights.
35761 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35762 user isn't a superuser.
35764 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35766 Save space by inlining misc.c functions.
35768 * kern/misc.c (grub_iswordseparator): Made static.
35769 * kern/misc.c (grub_strcat): Moved from here ...
35770 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35771 * kern/misc.c (grub_strncat): Moved from here ...
35772 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35773 * kern/misc.c (grub_strcasecmp): Moved from here ...
35774 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35775 * kern/misc.c (grub_strncasecmp): Moved from here ...
35776 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35777 * kern/misc.c (grub_isalpha): Moved from here ...
35778 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35779 * kern/misc.c (grub_isdigit): Moved from here ...
35780 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35781 * kern/misc.c (grub_isgraph): Moved from here ...
35782 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35783 * kern/misc.c (grub_tolower): Moved from here ...
35784 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35786 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35788 * script/sh/function.c (grub_script_function_find): Cut error message
35789 not to flood terminal.
35790 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35792 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35794 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35796 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35797 `report' grub_uint8_t *.
35798 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35799 Use a 50-millisecond timeout rather than just repeating
35800 grub_usb_keyboard_getreport 50 times.
35801 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35803 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35805 Rename *_partition_map to part_*
35807 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35808 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35809 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35810 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35812 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35814 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35815 * util/grub-probe.c (probe_partmap): Don't transform partition name
35816 to get module name.
35818 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35820 Fix OpenBSD and NetBSD support.
35822 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35823 memory address conflict.
35824 (OPENBSD_MMAP_ACPI): New definition.
35825 (OPENBSD_MMAP_NVS): Likewise.
35826 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35827 and OPENBSD_MMAP_NVS.
35828 Add memory map terminator
35829 Explicit cast when calling grub_unix_real_boot.
35830 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35832 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35834 Let user specify NetBSD root device.
35836 * loader/i386/bsd.c (netbsd_root): New variable.
35837 (netbsd_opts): New option 'root'.
35838 (NETBSD_ROOT_ARG): New macro.
35839 (grub_netbsd_boot): Use 'netbsd_root'.
35840 (grub_bsd_unload): Free 'netbsd_root'.
35841 (grub_cmd_netbsd): Fill 'netbsd_root'.
35843 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35845 Support for 64-bit NetBSD.
35847 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35848 point when booting non-FreeBSD.
35850 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35852 Support --no-smp and --no-acpi for NetBSD.
35854 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35855 (NETBSD_AB_NOACPI): Likewise.
35856 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35857 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35859 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35861 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
35863 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
35864 errors. Call grub_error when needed.
35866 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35868 * commands/search.c (search_fs): Try searching without autoload first.
35869 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
35870 filesystem module explicitly for faster booting.
35872 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35874 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
35876 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35878 * util/grub.d/30_os-prober.in: Disable os-prober if
35879 `GRUB_DISABLE_OS_PROBER' was set to true.
35881 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
35883 * partmap/pc.c: Rename to ...
35884 * partmap/msdos.c: ... this. Update all users.
35885 (grub_pc_partition_map): Rename to ...
35886 (grub_msdos_partition_map): ... this. Update all users.
35888 * parttool/pcpart.c: Rename to ...
35889 * parttool/msdospart.c: ... this. Update all users.
35891 * include/grub/pc_partition.h: Rename to ...
35892 * include/grub/msdos_partition.h: ... this. Update all users.
35893 (grub_pc_partition_bsd_entry): Rename to ...
35894 (grub_msdos_partition_bsd_entry): ... this. Update all users.
35895 (grub_pc_partition_disk_label): Rename to ...
35896 (grub_msdos_partition_disk_label): ... this. Update all users.
35897 (grub_pc_partition_entry): Rename to ...
35898 (grub_msdos_partition_entry): ... this. Update all users.
35899 (grub_pc_partition_mbr): Rename to ...
35900 (grub_msdos_partition_mbr): ... this. Update all users.
35901 (grub_pc_partition): Rename to ...
35902 (grub_msdos_partition): ... this. Update all users.
35903 (grub_pc_partition_is_empty): Rename to ...
35904 (grub_msdos_partition_is_empty): ... this. Update all users.
35905 (grub_pc_partition_is_extended): Rename to ...
35906 (grub_msdos_partition_is_extended): ... this. Update all users.
35907 (grub_pc_partition_is_bsd): Rename to ...
35908 (grub_msdos_partition_is_bsd): ... this. Update all users.
35910 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
35911 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
35912 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
35913 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
35914 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
35915 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
35916 (gpt_mod_LDFLAGS): Rename to ...
35917 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
35918 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
35919 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
35920 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
35921 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
35922 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
35923 (part_gpt_mod_LDFLAGS): ... this.
35924 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
35925 `pcpart.mod' to `msdospart.mod'.
35926 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
35928 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
35929 (msdospart_mod_LDFLAGS): ... this.
35931 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35933 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
35934 (openbsd_opts): Likewise.
35935 (netbsd_opts): Likewise.
35936 (freebsd_flags): Added 0 terminator.
35937 (openbsd_flags): Likewise.
35938 (netbsd_flags): Likewise.
35939 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
35940 (grub_cmd_freebsd): Transformed into extended command.
35941 (grub_cmd_openbsd): Likewise.
35942 (grub_cmd_netbsd): Likewise.
35943 (cmd_freebsd): Changed type to grub_extcmd_t.
35944 (cmd_openbsd): Likewise.
35945 (cmd_netbsd): Likewise.
35946 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
35947 grub_cmd_openbsd as extended commands.
35948 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
35949 cmd_netbsd and cmd_openbsd
35951 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
35953 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
35955 2009-08-21 Pavel Roskin <proski@gnu.org>
35957 * Makefile.in (install-local): When checking if a file is in the
35958 build directory, use "test -e" to detect symlinks.
35960 * Makefile.in (install-local): Remove all files in
35961 $(DESTDIR)$(pkglibdir) before installing new files there.
35963 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35965 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
35968 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35970 * util/grub-mkconfig.in: Don't use gfxterm by default if not
35971 explicitly specified by the user.
35973 2009-08-18 Pavel Roskin <proski@gnu.org>
35975 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
35976 grub_uint8_t pointer for data.
35977 * include/grub/fbutil.h (struct grub_video_fbblit_info):
35979 * video/fb/fbutil.c: Remove unnecessary casts.
35981 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35985 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
35986 (grub_vbe_set_video_mode): Save active mode info
35987 only after setting the mode.
35988 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
35991 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35993 Rename variables for clarity.
35995 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
35996 (active_vbe_mode_info): ... this. All users updated.
35997 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
35999 (initial_mode): Rename to ...
36000 (initial_vbe_mode): ... this. All users updated.
36001 (mode_in_use): Rename to ..
36002 (vbe_mode_in_use): ... this. All users updated.
36003 (mode_list): Rename to ..
36004 (vbe_mode_list): ... this. All users updated.
36005 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36006 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36007 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36008 'mode_list_size' to 'vbe_mode_list_size'.
36009 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36010 'best_mode_info' to 'best_vbe_mode_info' and
36011 'best_mode' to 'best_vbe_mode'
36013 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36015 Remove duplicate grub_video_fb_get_video_ptr.
36017 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36018 (grub_video_fb_get_video_ptr): ... this.
36019 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36020 * video/fb/fbutil.c: Add comment about addressing.
36021 (get_data_ptr): Rename to ...
36022 (grub_video_fb_get_video_ptr): ... this. All users updated.
36023 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36025 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36027 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36028 grub_dprintf() that was just added.
36030 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36032 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36033 (DEFAULT_VIDEO_MODE): Remove macros.
36034 (grub_linux_boot): Remove assumption that Linux has FB support,
36035 and use "text" as default video mode.
36037 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36039 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36041 * fs/fat.c (grub_fat_read_data): Likewise.
36043 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36045 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36047 (grub_module): Likewise.
36049 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36051 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36052 mbi->cmdline but free playground.
36054 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36056 Handle group offset on UFS1.
36058 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36059 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36061 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36063 Split ufs.mod into ufs1.mod and ufs2.mod.
36065 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36066 (grub_fstest_SOURCES): Likewise.
36067 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36068 (ufs_mod_SOURCES): Remove.
36069 (ufs_mod_CFLAGS): Likewise.
36070 (ufs_mod_LDFLAGS): Likewise.
36071 (ufs1_mod_SOURCES): New variable.
36072 (ufs1_mod_CFLAGS): Likewise.
36073 (ufs1_mod_LDFLAGS): Likewise.
36074 (ufs2_mod_SOURCES): New variable.
36075 (ufs2_mod_CFLAGS): Likewise.
36076 (ufs2_mod_LDFLAGS): Likewise.
36077 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36078 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36080 (grub_emu_SOURCES): Likewise.
36081 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36082 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36083 (grub_setup_SOURCES): Likewise.
36084 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36085 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36086 (grub_setup_SOURCES): Likewise.
36087 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36089 * fs/ufs2.c: New file.
36090 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36092 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36096 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36097 subsystem at the end.
36098 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36099 (video_fb_mod_SOURCES): New variable.
36100 (video_fb_mod_CFLAGS): Likewise.
36101 (video_fb_mod_LDFLAGS): Likewise.
36102 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36103 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36104 * video/i386/pc/vbeblit.c: Moved from here ...
36105 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36106 * video/i386/pc/vbefill.c: Moved from here ...
36107 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36108 * video/i386/pc/vbeutil.c: Moved from here ...
36109 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36110 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36111 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36112 * include/grub/i386/pc/vbefill.h: Moved from here ...
36113 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36114 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36115 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36116 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36117 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36118 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36119 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36120 (grub_video_adapter): Added 'get_info_and_fini'.
36121 (grub_video_get_info_and_fini): New prototype.
36122 (grub_video_set_mode): make modestring const char *.
36123 * loader/i386/linux.c (grub_linux_setup_video): Use
36124 grub_video_get_info_and_fini.
36125 (grub_linux_boot): Move modesetting just before booting.
36126 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36127 grub_video_get_info_and_fini.
36128 * video/i386/pc/vbe.c: Moved framebuffer part ...
36129 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36130 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36131 grub_video_fbstd_colors and grub_video_fb_set_palette.
36132 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36133 grub_video_fb_init.
36134 (grub_video_vbe_fini): Use grub_video_fb_fini.
36135 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36136 render_target and use grub_video_fb_set_active_render_target and
36137 grub_video_fb_set_palette.
36138 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36139 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36140 (grub_video_vbe_adapter): Use framebuffer.
36141 * video/video.c (grub_video_get_info_and_fini): New function.
36142 (grub_video_set_mode): Make modestring const char *.
36143 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36144 values are already initialised.
36146 2009-08-14 Pavel Roskin <proski@gnu.org>
36148 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36150 * boot/i386/pc/diskboot.S: Likewise.
36151 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36152 sectors allow compilation on MacOSX.
36153 * conf/i386-pc.rmk: Enable unconditional compilation of
36156 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36158 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36159 * util/grub.d/00_header.in: Enter interruptible sleep if
36160 GRUB_HIDDEN_TIMEOUT is set.
36162 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36164 * include/grub/symbol.h: Add the LOCAL macro.
36165 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36166 starting with "L_".
36168 2009-08-13 Pavel Roskin <proski@gnu.org>
36170 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36171 any modern compilers we support.
36173 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36174 Use local labels starting with "L_" so that Apple assembler
36175 knows they are local.
36177 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36179 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36180 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36181 (bsd_kernel_types): ... this enum.
36183 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36184 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36185 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36187 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36188 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36189 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36192 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36194 * util/grub-dumpdevtree: Moved from here ...
36195 * util/i386/efi/grub-dumpdevtree: ... to here.
36196 (hexify): New function. Converts a string to its hex version.
36197 Generate hex versions of "efi" and "device-properties" by calling
36198 hexify() on the ASCII strings rather than by hardcoding numbers.
36200 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36202 * fs/jfs.c: Update copyright year.
36204 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36206 * util/grub.d/00_header.in: Fix a comment.
36207 * util/grub.d/10_linux.in: Likewise.
36208 * util/grub.d/10_windows.in: Likewise.
36209 * util/grub.d/10_hurd.in: Likewise.
36211 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36213 * util/grub-mkconfig.in: Allow the user to specify the used font
36216 2009-08-08 Pavel Roskin <proski@gnu.org>
36218 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36219 available, xfs.mod needs it now.
36221 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36222 the "g" modifier in sed when the intention is to strip something
36223 once. This fixes comparison of kernels with multiple dashes.
36225 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36226 on it. Add missing space before closing bracket. Fix
36227 misleading formatting.
36229 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36231 * docs/grub.texi: Major overhaul. Remove all sections that are
36232 specific to GRUB Legacy, or mostly composed of Legacy-specific
36235 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36237 * docs/version.texi: New file. Provides version information for
36240 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36242 * docs/grub.texi: Update CVS information to SVN.
36243 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36245 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36247 * util/grub-mkconfig.in: Remove a wrong `fi'.
36249 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36251 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36252 (grub_jfs_uuid): New function.
36253 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36255 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36257 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36259 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36260 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36262 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36264 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36265 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36268 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36269 not just "vmlinu[zx]".
36270 Moved from here ...
36271 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36274 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36275 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36278 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36280 * util/grub.d/10_freebsd.in: Use an absolute device path for
36281 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36283 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36285 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36286 handling of multiple abstraction modules.
36288 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36290 Fix a bug resulting in black screen when loading Linux using a
36293 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36296 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36297 (grub_vbe_bios_getset_dac_palette_width): New function.
36298 (grub_vbe_bios_get_dac_palette_width)
36299 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36300 grub_vbe_bios_getset_dac_palette_width()).
36302 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36303 check for return status.
36304 (grub_vbe_get_video_mode_info): When getting information for a packed
36305 mode (<= 8 bpp), obtain DAC palette width using
36306 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36307 {red,green,blue}_mark_size.
36309 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36311 * commands/search.c (options): Fix help output to match actual code.
36313 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36315 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36318 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36320 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36321 on XFS or ReiserFS.
36323 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36325 Support Apple partition map with sector size different from 512 bytes.
36327 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36328 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36329 and 'apart.partmap_size'.
36331 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36332 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36336 * commands/i386/cpuid.c (options): New variable.
36337 (grub_cmd_cpuid): Return real error.
36338 (GRUB_MOD_INIT(cpuid)): Declare options.
36340 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36342 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36345 2009-07-31 Bean <bean123ch@gmail.com>
36347 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36349 (grub_fshelp_node): Move inode field to the end.
36350 (grub_xfs_data): Remove inode field.
36351 (grub_xfs_inode_block): Calculate inode size using sblock.
36352 (grub_xfs_inode_offset): Likewise.
36353 (grub_xfs_read_inode): Calculate inode size using sblock.
36354 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36355 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36356 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36357 to match inode size.
36358 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36359 not accessible when data is null.
36360 (grub_xfs_open): Likewise.
36362 2009-07-31 Bean <bean123ch@gmail.com>
36364 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36365 Don't change pv->disk if it's already set.
36367 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36368 (grub_raid_register): ... here.
36369 (grub_raid_rescan): Removed.
36371 * include/grub/raid.h (grub_raid_rescan): Removed.
36373 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36374 (fstest): Replace grub_raid_rescan with module fini function followed
36377 * util/grub-probe.c: Add include file <grub/raid.h>.
36378 (probe_raid_level): New function.
36379 (probe): Detect abstraction by walking the disk device, support two
36380 level of abstraction (LVM on RAID) when detecting partition map.
36382 2009-07-31 Pavel Roskin <proski@gnu.org>
36384 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36385 to grub_zalloc(), it was erroneous.
36386 Reported by Bean <bean123ch@gmail.com>
36388 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36390 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36391 embedding zone, not only the first one.
36393 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36395 * term/gfxterm.c (clear_char): New function.
36396 (grub_virtual_screen_setup): Use clear_char.
36397 (scroll_up): Likewise.
36398 (grub_virtual_screen_cls): Likewise.
36400 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36402 * util/deviceiter.c (get_acceleraid_disk_name): New static
36404 (grub_util_iterate_devices): Handle Accelraid devices.
36405 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36407 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36409 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36410 separator for the suggested gfxpayload string (';' collides with the
36411 parser and needs escaping).
36413 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36415 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36416 Clear direction flag before jumping to OS.
36417 (grub_multiboot2_real_boot): Likewise.
36419 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36421 * util/i386/pc/grub-install: Fix parsing of --disk-module
36424 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36426 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36429 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36431 * util/grub-mkconfig.in (package_version): New variable.
36432 Use it do display the version.
36434 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36436 * kern/file.c (grub_file_open): Revert to previous check with
36439 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36441 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36442 from help line. It's out of sync with code.
36444 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36446 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36447 entries on failed boot.
36449 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36451 * kern/file.c (grub_file_open): Fix an error check.
36453 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36455 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36456 partition map couldn't be identified.
36458 2009-07-23 Pavel Roskin <proski@gnu.org>
36460 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36461 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36462 case of little endian words becomes just an optimization.
36463 Respect const modifier.
36464 (md5_final): Use code that doesn't depend on endianness.
36466 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36467 to avoid loss of upper bits if align is unsigned and shorter
36470 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36472 UUID support for UFS
36474 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36475 (grub_ufs_uuid): New function.
36476 (grub_ufs_fs): add .uuid
36478 2009-07-21 Pavel Roskin <proski@gnu.org>
36480 * kern/dl.c (grub_dl_check_header): Make static.
36482 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36484 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36485 add drivemap for Vista. It breaks Windows 7.
36487 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36489 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36492 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36496 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36497 (grub_fstest_SOURCES): Likewise.
36498 (pkglib_MODULES): Add befs.mod.
36499 (befs_mod_SOURCES): New variable.
36500 (befs_mod_CFLAGS): Likewise.
36501 (befs_mod_LDFLAGS): Likewise.
36502 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36503 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36504 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36505 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36506 (grub_setup_SOURCES): Likewise.
36507 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36508 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36509 (grub_setup_SOURCES): Likewise.
36510 * fs/befs.c: New file.
36511 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36512 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36513 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36514 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36515 (B_KEY_INDEX_ALIGN): New declaration.
36516 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36517 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36518 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36519 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36520 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36521 (grub_afs_mount) [MODE_BFS]: Likewise.
36522 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36523 (grub_afs_fs): Use GRUB_AFS_FSNAME
36524 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36525 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36526 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36527 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36529 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36531 * util/getroot.c (find_root_device): Add support for MacOSX.
36532 * util/hostdisk.c: Likewise.
36534 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36536 * font/font.c (find_glyph): Check whether a font is present to avoid
36537 segmentation fault.
36539 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36541 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36543 2009-07-20 Pavel Roskin <proski@gnu.org>
36545 * configure.ac: Trim excessively wordy excuses.
36547 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36549 Add symlink, mtime and label support to AtheFS.
36551 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36552 (grub_afs_iterate_dir): Handle symlinks.
36553 (grub_afs_open): Use grub_afs_read_symlink.
36554 (grub_afs_dir): Likewise.
36556 (grub_afs_label): New function.
36557 (grub_afs_fs): Add grub_afs_label.
36558 (grub_afs_read_symlink): New function.
36560 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36562 Fix AtheFS support.
36564 * fs/afs.c: Fix comments style.
36565 (grub_afs_blockrun): Declare as packed.
36566 (grub_afs_datastream): Likewise.
36567 (grub_afs_bnode): Likewise.
36568 (grub_afs_btree): Likewise.
36569 (grub_afs_sblock): Likewise.
36570 Declare `name' as char.
36571 (grub_afs_inode): Declare as packed.
36572 Change void *vnode to grub_uint32_t unused.
36573 (grub_afs_iterate_dir): Check that key_size is positive.
36574 (grub_afs_mount): Don't read superblock twice.
36575 (grub_afs_dir): Don't free node in case of error,
36576 grub_fshelp_find_file already handles this.
36577 (grub_afs_open): Likewise.
36579 2009-07-19 Pavel Roskin <proski@gnu.org>
36581 * Makefile.in: Remove LIBLZO and enable_lzo.
36582 * conf/i386-pc.rmk: Remove lzo support.
36583 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36584 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36586 * kern/i386/pc/lzo1x.S: Remove.
36587 * kern/i386/pc/startup.S: Remove lzo support.
36588 * util/i386/pc/grub-mkimage.c: Likewise.
36590 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36592 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36593 * fs/xfs.c (grub_xfs_dir): Likewise.
36594 * fs/afs.c (grub_afs_dir): Likewise.
36595 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36596 (grub_iso9660_open): Likewise.
36597 * fs/jfs.c (grub_jfs_open): Likewise.
36598 * fs/ext2.c (grub_ext2_dir): Likewise.
36599 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36600 * script/sh/lexer.c (grub_script_yylex): Likewise.
36602 2009-07-16 Pavel Roskin <proski@gnu.org>
36604 * configure.ac: Never add "-c" to CFLAGS.
36606 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36608 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36609 grub_cv_cc_efiemu should be used.
36611 * configure.ac: Typo fixes.
36613 * kern/mm.c (grub_zalloc): New function.
36614 (grub_debug_zalloc): Likewise.
36615 * include/grub/mm.h: Declare grub_zalloc() and
36616 grub_debug_zalloc().
36617 * util/misc.c (grub_zalloc): New function.
36618 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36619 instead of grub_malloc(), remove unneeded initializations.
36620 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36621 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36622 * commands/parttool.c (grub_cmd_parttool): Likewise.
36623 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36624 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36625 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36626 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36627 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36628 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36629 (grub_cmd_efiemu_pnvram): Likewise.
36630 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36631 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36632 (grub_iso9660_iterate_dir): Likewise.
36633 * fs/jfs.c (grub_jfs_opendir): Likewise.
36634 * fs/ntfs.c (list_file): Likewise.
36635 (grub_ntfs_mount): Likewise.
36636 * kern/disk.c (grub_disk_open): Likewise.
36637 * kern/dl.c (grub_dl_load_core): Likewise.
36638 * kern/elf.c (grub_elf_file): Likewise.
36639 * kern/env.c (grub_env_context_open): Likewise.
36640 (grub_env_set): Likewise.
36641 (grub_env_set_data_slot): Likewise.
36642 * kern/file.c (grub_file_open): Likewise.
36643 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36644 * loader/i386/multiboot.c (grub_module): Likewise.
36645 * loader/xnu.c (grub_xnu_create_key): Likewise.
36646 (grub_xnu_create_value): Likewise.
36647 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36648 (read_config_file): Likewise.
36649 * normal/menu_entry.c (make_screen): Likewise.
36650 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36651 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36652 * script/sh/script.c (grub_script_parse): Likewise.
36653 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36654 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36655 * video/readers/png.c (grub_png_output_byte): Likewise.
36656 (grub_video_reader_png): Likewise.
36658 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36660 Enable all targets that can be built by default
36662 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36663 grub-mkfont and grub-fstest if they can be built
36665 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36667 Fix hang and segmentation fault in grub-emu-usb
36669 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36670 * util/usb.c (grub_libusb_devices): likewise
36671 (grub_libusb_init): rename to ...
36672 (GRUB_MOD_INIT (libusb)):...this
36673 (grub_libusb_fini): rename to ..
36674 (GRUB_MOD_FINI (libusb)):...this
36675 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36676 * include/grub/disk.h (grub_raid_init): removed, it's useless
36677 (grub_raid_fini): likewise
36678 (grub_lvm_init): likewise
36679 (grub_lvm_fini): likewise
36680 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36683 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36687 * Makefile.in (LIBUSB): new macro
36688 * genmk.rb (Utility/print_tail): new method
36689 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36690 (top level): call util.print_tail at the end.
36692 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36694 Make FreeBSD accept zpool.cache
36696 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36697 type is /boot/zfs/zpool.cache
36699 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36703 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36704 correct wrong typedef
36705 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36707 2009-07-15 Pavel Roskin <proski@gnu.org>
36709 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36710 * kern/disk.c (struct grub_disk_cache): Likewise.
36712 * commands/probe.c (options): Typo fix.
36714 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36715 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36717 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36719 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36720 the end of "Error" to make the message more readable.
36722 * boot/i386/pc/boot.S (kernel_segment): Remove.
36723 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36726 * boot/i386/pc/boot.S (boot_version): Remove.
36727 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36730 * include/grub/i386/pc/boot.h: Sort all offsets.
36731 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36732 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36733 * boot/i386/pc/boot.S: Assert location of every offset listed in
36734 include/grub/i386/pc/boot.h.
36736 2009-07-13 Pavel Roskin <proski@gnu.org>
36738 * include/grub/i386/coreboot/machine.h: Rename
36739 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36740 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36741 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36743 * kern/dl.c: Force native word size to suppress warnings when
36744 compiling grub-emu.
36746 * kern/device.c (grub_device_iterate): Change struct part_ent to
36747 hold the name, not a pointer to it. Use one grub_malloc() per
36748 partition, not two. Free partition_name if grub_malloc() fails.
36749 Set ents to NULL only before grub_partition_iterate() is called.
36751 2009-07-11 Bean <bean123ch@gmail.com>
36753 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36756 2009-07-10 Bean <bean123ch@gmail.com>
36757 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36759 * kern/ieee1275/openfw.c (grub_children_iterate)
36760 (grub_devalias_iterate): Fix size evaluation for property or path
36761 strings, which was broken since r2132.
36763 2009-07-07 Pavel Roskin <proski@gnu.org>
36765 * commands/search.c (search_file): Merge into ...
36766 (search_fs): ... this. Accept search type as argument.
36767 (grub_cmd_search): Pass search type to search_fs().
36769 * include/grub/util/console.h: New file.
36770 * util/console.c: Use it instead of grub/machine/console.h.
36771 * util/grub-emu.c: Likewise.
36773 * lib/arg.c (find_long_option): Remove.
36774 (find_long): Add `len' argument, make `s' const char *.
36775 (grub_arg_parse): Parse long options in place, not in a
36778 2009-07-06 Pavel Roskin <proski@gnu.org>
36780 * commands/search.c (search_fs): Fix potential NULL pointer
36783 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36786 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36788 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36791 2009-07-05 Pavel Roskin <proski@gnu.org>
36793 * include/grub/i386/linux.h (struct linux_kernel_params):
36794 Restore padding3, it's still needed.
36796 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36798 * util/osdetect.lua: Likewise.
36800 2009-07-05 Bean <bean123ch@gmail.com>
36802 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36804 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36805 (grub_lua_getenv): Likewise.
36806 (grub_lua_setenv): Likewise.
36807 (save_errno): New function.
36808 (push_result): Likewise.
36809 (grub_lua_enum_device): Likewise.
36810 (grub_lua_enum_file): Likewise.
36811 (grub_lua_file_open): Likewise.
36812 (grub_lua_file_close): Likewise.
36813 (grub_lua_file_seek): Likewise.
36814 (grub_lua_file_read): Likewise.
36815 (grub_lua_file_getline): Likewise.
36816 (grub_lua_file_getsize): Likewise.
36817 (grub_lua_file_getpos): Likewise.
36818 (grub_lua_file_eof): Likewise.
36819 (grub_lua_file_exist): Likewise.
36820 (grub_lua_add_menu): Likewise.
36822 * script/lua/grub_lua.h (isupper): New inline function.
36823 (islower): Likewise.
36824 (ispunct): Likewise.
36825 (isxdigit): Likewise.
36826 (strcspn): Change to normal function.
36827 (strpbkr): New function declaration.
36828 (memchr): Likewise.
36830 * script/lua/grub_main.c (scan_str): New function.
36831 (strcspn): Likewise.
36832 (strpbrk): Likewise.
36833 (memchr): Likewise.
36835 * script/lua/linit.c (lualibs): Enable the string library.
36837 * util/osdetect.lua: New file.
36839 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36841 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36842 `capabilities' member.
36844 2009-07-02 Pavel Roskin <proski@gnu.org>
36846 * genparttoollist.sh: Add missing newline at the end.
36848 2009-07-01 Pavel Roskin <proski@gnu.org>
36850 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36852 * util/hostdisk.c (open_device): Remove `const' from
36853 `sysctl_size', as sysctlbyname() can change it (in this case it
36854 doesn't actually happen).
36856 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36857 using signed long int constants.
36859 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36860 constant to avoid a warning on FreeBSD.
36862 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
36865 * Makefile.in: Install include/grub/machine symlink.
36867 * Makefile.in: When installing symlinks, use "cp -fR", which
36868 works on FreeBSD and MacOSX.
36869 From Yves Blusseau <cl7m42e02@sneakemail.com>
36871 * kern/dl.c (grub_dl_resolve_symbol): Make static.
36872 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
36874 * util/misc.c: Move grub_reboot() and grub_halt() ...
36875 * util/grub-emu.c: ... here. Make main_env static.
36876 * include/grub/util/misc.h: Remove main_env.
36878 * kern/mm.c: Use correct format to print size_t.
36880 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
36881 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
36882 * kern/powerpc/dl.c: Likewise.
36883 * kern/sparc64/dl.c: Likewise.
36884 * kern/x86_64/dl.c: Likewise.
36886 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36888 Fix grub-emu build on sparc64-ieee1275.
36890 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
36891 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
36893 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36895 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
36896 (grub_reboot, grub_halt): New functions.
36898 * util/i386/pc/misc.c: Delete. Update all users.
36899 * util/sparc64/ieee1275/misc.c: Likewise.
36900 * util/powerpc/ieee1275/misc.c: Likewise.
36902 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36904 * conf/i386.rmk (setjmp_mod_SOURCES)
36905 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
36906 * conf/common.rmk (setjmp_mod_SOURCES)
36907 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
36908 to use $(target_cpu).
36909 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
36910 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
36911 * conf/powerpc-ieee1275.rmk: Likewise.
36912 * conf/sparc64-ieee1275.rmk: Likewise.
36914 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
36915 $(target_cpu) for kern/$(target_cpu)/dl.c.
36916 * conf/i386-efi.rmk: Likewise.
36917 * conf/i386-ieee1275.rmk: Likewise.
36918 * conf/x86_64-efi.rmk: Likewise.
36919 * conf/i386-coreboot.rmk: Likewise.
36920 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
36921 $(target_cpu) for kern/$(target_cpu)/dl.c and for
36922 kern/$(target_cpu)/cache.S.
36923 * conf/sparc64-ieee1275.rmk: Likewise.
36925 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36927 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
36928 type to `grub_uint8_t', and adjust `padding9' accordingly.
36930 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36932 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
36934 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
36935 assembly in final jump, using register constraints.
36937 (grub_linux_boot): For text mode, initialize `have_vga' using
36938 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
36940 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
36941 right before the final jump.
36943 Set `video_mode' to 0x3.
36945 Document initialization of `video_page', `video_mode' and
36948 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36950 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
36951 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
36952 and set GRUB_LINUX_FLAG_QUIET appropriately.
36954 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36956 Fix build on Debian / sparc.
36958 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
36960 2009-06-28 Pavel Roskin <proski@gnu.org>
36962 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
36965 * util/grub.d/10_linux.in: Match SUSE style initrd names.
36967 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36969 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
36972 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36976 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
36977 file can't be opened. grub_file_open() is already supposed to set
36978 grub_errno / grub_errmsg appropriately.
36979 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
36981 2009-06-27 Pavel Roskin <proski@gnu.org>
36982 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36984 * include/grub/dl.h: Include grub/elf.h.
36985 (struct grub_dl): Add symtab field.
36986 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
36987 GRUB_MODULES_MACHINE_READONLY.
36988 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
36989 of the header for read-only modules.
36990 (grub_dl_unload): Free mod->symtab for read-only modules.
36991 * kern/i386/dl.c: Use mod->symtab.
36992 * kern/powerpc/dl.c: Likewise.
36993 * kern/sparc64/dl.c: Likewise.
36994 * kern/x86_64/dl.c: Likewise.
36996 * conf/i386-qemu.rmk: New file.
36997 * kern/i386/qemu/startup.S: Likewise.
36998 * kern/i386/qemu/mmap.c: Likewise.
36999 * boot/i386/qemu/boot.S: Likewise.
37000 * include/grub/i386/qemu/time.h: Likewise.
37001 * include/grub/i386/qemu/serial.h: Likewise.
37002 * include/grub/i386/qemu/kernel.h: Likewise.
37003 * include/grub/i386/qemu/console.h: Likewise.
37004 * include/grub/i386/qemu/boot.h: Likewise.
37005 * include/grub/i386/qemu/init.h: Likewise.
37006 * include/grub/i386/qemu/machine.h: Likewise.
37007 * include/grub/i386/qemu/loader.h: Likewise.
37008 * include/grub/i386/qemu/memory.h: Likewise.
37010 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37011 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37012 [qemu] (pkglib_IMAGES): Add `boot.img'.
37013 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37014 [qemu] (boot_img_FORMAT): New variables.
37015 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37016 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37017 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37018 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37019 [qemu] (kernel_img_FORMAT): New variables.
37021 * configure.ac: Recognise `i386-qemu'.
37023 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37024 (for no compression).
37025 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37026 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37027 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37028 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37031 2009-06-27 Pavel Roskin <proski@gnu.org>
37033 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37035 * efiemu/prepare32.c: Likewise.
37036 * efiemu/prepare64.c: Likewise.
37038 2009-06-26 Pavel Roskin <proski@gnu.org>
37040 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37041 * include/grub/elf.h: Define symbols without "32" or "64" based
37042 on GRUB_TARGET_WORDSIZE.
37043 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37044 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37046 * efiemu/loadcore64.c: Likewise.
37047 * loader/i386/bsd32.c: Likewise.
37048 * loader/i386/bsd64.c: Likewise.
37049 * kern/dl.c: Remove own ELF definitions.
37050 * util/i386/efi/grub-mkimage.c: Likewise.
37052 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37054 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37055 segment 0x0 unconditionally, because the reference generated by
37056 GAS is an absolute address.
37058 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37060 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37061 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37063 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37065 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37066 indexes. Check for -f explicitly.
37067 (search_file): Improve error message.
37068 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37070 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37072 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37073 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37075 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37077 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37078 * conf/i386-ieee1275.rmk: Likewise.
37079 * conf/i386-coreboot.rmk: Likewise.
37081 * kern/i386/pc/startup.S (grub_stop): Remove function.
37082 * kern/i386/ieee1275/startup.S: Likewise.
37083 * kern/i386/coreboot/startup.S: Likewise.
37084 * kern/i386/misc.S (grub_stop): New function.
37086 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37088 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37089 * kern/i386/realmode.S (real_to_prot): ... to here.
37091 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37093 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37095 (kernel_elf_SOURCES): Rename to ...
37096 (kernel_img_SOURCES): ... this.
37097 (kernel_elf_HEADERS): Rename to ...
37098 (kernel_img_HEADERS): ... this. Update all users.
37099 (kernel_elf_ASFLAGS): Rename to ...
37100 (kernel_img_ASFLAGS): ... this.
37101 (kernel_elf_CFLAGS): Rename to ...
37102 (kernel_img_CFLAGS): ... this.
37103 (kernel_elf_LDFLAGS): Rename to ...
37104 (kernel_img_LDFLAGS): ... this.
37105 * conf/i386-coreboot.rmk: Likewise.
37106 * conf/powerpc-ieee1275.rmk: Likewise.
37108 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37111 2009-06-21 Pavel Roskin <proski@gnu.org>
37113 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37114 to match nested functions.
37115 * loader/sparc64/ieee1275/linux.c: Likewise.
37117 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37119 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37121 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37122 all i386 platforms.
37124 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37126 Fix asm file handling on ELF, and remove workarounds.
37128 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37129 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37130 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37131 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37133 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37135 Load BSD ELF modules
37137 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37138 and loader/i386/bsd64.c
37139 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37140 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37141 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37142 (grub_freebsd_load_elfmodule32): New declaration
37143 (grub_freebsd_load_elfmoduleobj64): Likewise
37144 (grub_freebsd_load_elf_meta32): Likewise
37145 (grub_freebsd_load_elf_meta64): Likewise
37146 (grub_freebsd_add_meta): Likewise
37147 (grub_freebsd_add_meta_module): Likewise
37148 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37149 (grub_freebsd_add_meta_module): Likewise and move module-specific
37150 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37151 (grub_cmd_freebsd): Add elf-kernel specific parts
37152 based on grub_freebsd_add_meta_module
37153 (grub_cmd_freebsd_module): Add type parsing moved from
37154 grub_freebsd_add_meta_module
37155 (grub_cmd_freebsd_module_elf): New function
37156 (cmd_freebsd_module_elf): New variable
37157 (GRUB_MOD_INIT): Register freebsd_module_elf
37158 * loader/i386/bsd32.c: New file
37159 * loader/i386/bsd64.c: Likewise
37160 * loader/i386/bsdXX.c: Likewise
37161 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37162 (grub_elf64_load): Likewise
37163 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37165 (grub_elf64_load_hook_t): Likewise
37167 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37169 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37171 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37172 don't write a menu entry for recovery mode.
37174 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37176 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37177 after it's no longer needed.
37179 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37181 * include/grub/i386/loader.h (grub_linux_prot_size)
37182 (grub_linux_tmp_addr, grub_linux_real_addr)
37183 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37184 GRUB_MACHINE_PCBIOS.
37185 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37186 common grub_util_info() call to ...
37187 (generate_image): ... here.
37188 Fix use of uninitialized memory, comparison of signed with
37189 unsigned integers and memory leak.
37190 Remove bogus module address message.
37192 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37194 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37196 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37198 2009-06-19 Pavel Roskin <proski@gnu.org>
37200 * configure.ac: Remove stray AC_MSG_CHECKING.
37202 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37204 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37206 2009-06-18 Pavel Roskin <proski@gnu.org>
37208 * conf/common.rmk: Add fs_file.mod.
37209 * disk/fs_file.c: New file.
37210 * include/grub/disk.h (enum grub_disk_dev_id): Add
37211 GRUB_DISK_DEVICE_FILE_ID.
37213 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37215 Fix build with Apple's toolchain. Part 2
37217 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37220 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37222 Fix build with Apple's toolchain. Part 1
37224 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37226 * configure.ac: remove a leftover AC_MSG_RESULT
37227 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37230 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37234 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37235 (decomp_block): initialize ch
37236 use grub_memcpy instead of memcpy
37238 2009-06-17 Pavel Roskin <proski@gnu.org>
37240 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37241 version, use declarations needed to use vga_text as the startup
37244 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37245 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37247 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37248 and grub_at_keyboard_fini(), it's done on module load and
37251 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37253 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37254 file can't be found.
37255 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37257 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37259 Fix newline handling
37261 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37262 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37263 (grub_script_yylex): don't segfault on unterminated script
37264 newline terminates command and variable
37266 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37268 avoid double grub_adjust_range call. Bug reported by David Simner
37270 * kern/disk.c (grub_disk_write): change to raw disk access before
37273 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37275 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37276 spaces, for the benefit of help2man.
37277 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37279 2009-06-16 Pavel Roskin <proski@gnu.org>
37281 * kern/i386/halt.c: Include grub/machine/init.h.
37282 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37284 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37286 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37287 drivemap menuentry.
37289 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37291 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37294 2009-06-16 Pavel Roskin <proski@gnu.org>
37296 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37297 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37298 save %dx, we only need %dl and we never change it.
37299 * boot/i386/pc/cdboot.S: Don't set the root drive.
37300 * boot/i386/pc/pxeboot.S: Likewise.
37301 * include/grub/i386/pc/boot.h: Remove
37302 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37303 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37304 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37305 * kern/i386/pc/init.c (make_install_device): Remove references
37306 to grub_root_drive.
37307 * kern/i386/pc/startup.S: Likewise.
37308 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37310 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37314 * commands/xnu_uuid.c: new file
37315 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37316 (xnu_uuid_mod_SOURCES): new variable
37317 (xnu_uuid_mod_CFLAGS): likewise
37318 (xnu_uuid_mod_LDFLAGS): likewise
37319 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37320 * conf/i386-ieee1275.rmk: likewise
37321 * conf/i386-pc.rmk: likewise
37322 * conf/powerpc-ieee1275.rmk: likewise
37323 * conf/sparc64-ieee1275.rmk: likewise
37324 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37326 2009-06-16 Pavel Roskin <proski@gnu.org>
37328 * configure.ac: Avoid '==' in test command, it's not portable.
37330 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37334 * commands/probe.c: new file
37335 * conf/common.rmk (pkglib_MODULES): add probe.mod
37336 (probe_mod_SOURCES): new variable
37337 (probe_mod_CFLAGS): likewise
37338 (probe_mod_LDFLAGS): likewise
37339 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37340 * conf/i386-ieee1275.rmk: likewise
37341 * conf/i386-pc.rmk: likewise
37342 * conf/powerpc-ieee1275.rmk: likewise
37343 * conf/sparc64-ieee1275.rmk: likewise
37345 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37347 Fix handling of string like \"hello\" and "a
37350 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37351 (grub_script_yylex): fix parsing of quoting, escaping and newline
37353 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37355 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37358 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37360 * util/grub-mkconfig.in: Fix parsing of --output option.
37362 2009-06-12 Pavel Roskin <proski@gnu.org>
37364 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37365 genmk.rb don't need to be generated or installed.
37367 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37369 * commands/i386/pc/drivemap_int13h.S: add more comments
37371 2009-06-11 Pavel Roskin <proski@gnu.org>
37373 * Makefile.in (uninstall): Uninstall manuals.
37375 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37376 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37377 and update-grub_lib in two places.
37378 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37380 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37381 a compiler warning.
37383 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37384 `entry_lo' to fix variable shadowing.
37386 2009-06-11 Christian Franke <franke@computer.org>
37388 * kern/misc.c (__enable_execute_stack): Add missing return type
37389 to prevent gcc warning.
37391 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37393 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37395 2009-06-11 Pavel Roskin <proski@gnu.org>
37397 * Makefile.in: Don't rely on any scripts being executable.
37398 Always use $(SHELL) to run shell scripts.
37400 * configure.ac: Always define ___main if using -nostdlib. This
37401 fixes tests on Cygwin.
37403 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37407 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37408 is in bytes and not in blocks
37410 2009-06-11 Pavel Roskin <proski@gnu.org>
37412 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37415 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37417 * util/grub.d/30_os-prober.in: Fix a comment. Source
37418 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37419 to set the root device. Place drivemap command in the generated
37422 2009-06-11 Pavel Roskin <proski@gnu.org>
37424 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37425 have long been resolved.
37427 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37429 * util/grub.d/10_linux.in: Capitalise "Linux".
37431 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37433 2009-06-11 Pavel Roskin <proski@gnu.org>
37435 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37436 fix a gcc warning and ensure that the function won't ever exit.
37438 * kern/i386/ieee1275/init.c: Add missing prototype for
37439 grub_stop_floppy().
37441 * loader/ieee1275/multiboot2.c [__i386__]: Include
37442 grub/cpu/multiboot.h.
37444 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37445 casts to short - they are not portable and cause warnings. Fix
37446 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37448 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37452 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37454 (grub_get_root_biosnumber_saved): new variable
37455 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37456 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37457 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37458 %dx after the call if necessary
37459 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37460 (boot_mod_SOURCES): remove
37461 (boot_mod_CFLAGS): remove
37462 (boot_mod_LDFLAGS): remove
37463 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37464 (boot_mod_SOURCES): new variable
37465 (boot_mod_CFLAGS): likewise
37466 (boot_mod_LDFLAGS): likewise
37467 * conf/i386-efi.rmk: likewise
37468 * conf/i386-ieee1275.rmk: likewise
37469 * conf/i386-pc.rmk: likewise
37470 * conf/powerpc-ieee1275.rmk: likewise
37471 * conf/sparc64-ieee1275.rmk: likewise
37472 * conf/x86_64-efi.rmk: likewise
37473 * include/grub/i386/pc/biosnum.h: new file
37474 * lib/i386/pc/biosnum.c: likewise
37475 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37476 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37477 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37479 2009-06-10 Pavel Roskin <proski@gnu.org>
37481 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37482 Use separate variables. Read only the file size at the end, but
37483 not the checksum that we don't use.
37485 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37486 Adjust all callers.
37488 * kern/ieee1275/openfw.c: Remove libc includes.
37489 * kern/ieee1275/cmain.c: Likewise.
37490 * include/grub/ieee1275/ieee1275.h: Likewise.
37492 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37495 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37497 * Makefile.in: Remove all trailing whitespace.
37498 * conf/i386-pc.rmk: Likewise.
37499 * conf/powerpc-ieee1275.rmk: Likewise.
37500 * conf/sparc64-ieee1275.rmk: Likewise.
37501 * docs/grub.texi: Likewise.
37502 * docs/texinfo.tex: Likewise.
37503 * disk/fs_uuid.c: Likewise.
37504 * disk/lvm.c: Likewise.
37505 * disk/scsi.c: Likewise.
37506 * disk/ata.c: Likewise.
37507 * disk/ieee1275/ofdisk.c: Likewise.
37508 * disk/i386/pc/biosdisk.c: Likewise.
37509 * disk/host.c: Likewise.
37510 * disk/raid.c: Likewise.
37511 * disk/efi/efidisk.c: Likewise.
37512 * disk/usbms.c: Likewise.
37513 * disk/memdisk.c: Likewise.
37514 * disk/loopback.c: Likewise.
37515 * kern/powerpc/dl.c: Likewise.
37516 * kern/device.c: Likewise.
37517 * kern/dl.c: Likewise.
37518 * kern/sparc64/dl.c: Likewise.
37519 * kern/ieee1275/ieee1275.c: Likewise.
37520 * kern/term.c: Likewise.
37521 * kern/fs.c: Likewise.
37522 * kern/i386/dl.c: Likewise.
37523 * kern/i386/pc/startup.S: Likewise.
37524 * kern/i386/pc/init.c: Likewise.
37525 * kern/i386/pc/mmap.c: Likewise.
37526 * kern/i386/pc/lzo1x.S: Likewise.
37527 * kern/i386/ieee1275/init.c: Likewise.
37528 * kern/i386/realmode.S: Likewise.
37529 * kern/i386/tsc.c: Likewise.
37530 * kern/partition.c: Likewise.
37531 * kern/corecmd.c: Likewise.
37532 * kern/file.c: Likewise.
37533 * kern/efi/efi.c: Likewise.
37534 * kern/efi/init.c: Likewise.
37535 * kern/efi/mm.c: Likewise.
37536 * kern/main.c: Likewise.
37537 * kern/err.c: Likewise.
37538 * kern/env.c: Likewise.
37539 * kern/disk.c: Likewise.
37540 * kern/generic/millisleep.c: Likewise.
37541 * kern/generic/rtc_get_time_ms.c: Likewise.
37542 * kern/misc.c: Likewise.
37543 * kern/parser.c: Likewise.
37544 * genmk.rb: Likewise.
37545 * configure.ac: Likewise.
37546 * boot/i386/pc/diskboot.S: Likewise.
37547 * boot/i386/pc/pxeboot.S: Likewise.
37548 * boot/i386/pc/boot.S: Likewise.
37549 * boot/i386/pc/lnxboot.S: Likewise.
37550 * boot/i386/pc/cdboot.S: Likewise.
37551 * parttool/pcpart.c: Likewise.
37552 * video/readers/tga.c: Likewise.
37553 * video/video.c: Likewise.
37554 * video/bitmap.c: Likewise.
37555 * lib/envblk.c: Likewise.
37556 * lib/i386/setjmp.S: Likewise.
37557 * fs/xfs.c: Likewise.
37558 * fs/afs.c: Likewise.
37559 * fs/fat.c: Likewise.
37560 * fs/ntfs.c: Likewise.
37561 * fs/udf.c: Likewise.
37562 * fs/affs.c: Likewise.
37563 * fs/iso9660.c: Likewise.
37564 * fs/hfs.c: Likewise.
37565 * fs/fshelp.c: Likewise.
37566 * fs/ext2.c: Likewise.
37567 * fs/jfs.c: Likewise.
37568 * fs/reiserfs.c: Likewise.
37569 * fs/hfsplus.c: Likewise.
37570 * fs/minix.c: Likewise.
37571 * fs/cpio.c: Likewise.
37572 * fs/sfs.c: Likewise.
37573 * fs/ufs.c: Likewise.
37574 * efiemu/prepare.c: Likewise.
37575 * efiemu/loadcore_common.c: Likewise.
37576 * efiemu/runtime/efiemu.sh: Likewise.
37577 * efiemu/runtime/efiemu.S: Likewise.
37578 * efiemu/runtime/efiemu.c: Likewise.
37579 * efiemu/pnvram.c: Likewise.
37580 * efiemu/main.c: Likewise.
37581 * efiemu/i386/pc/cfgtables.c: Likewise.
37582 * efiemu/i386/loadcore64.c: Likewise.
37583 * efiemu/i386/loadcore32.c: Likewise.
37584 * efiemu/loadcore.c: Likewise.
37585 * efiemu/symbols.c: Likewise.
37586 * efiemu/mm.c: Likewise.
37587 * include/grub/autoefi.h: Likewise.
37588 * include/grub/datetime.h: Likewise.
37589 * include/grub/term.h: Likewise.
37590 * include/grub/hfs.h: Likewise.
37591 * include/grub/lvm.h: Likewise.
37592 * include/grub/i386/tsc.h: Likewise.
37593 * include/grub/i386/linux.h: Likewise.
37594 * include/grub/i386/xnu.h: Likewise.
37595 * include/grub/i386/efiemu.h: Likewise.
37596 * include/grub/i386/pc/biosdisk.h: Likewise.
37597 * include/grub/i386/pc/memory.h: Likewise.
37598 * include/grub/i386/pc/vbe.h: Likewise.
37599 * include/grub/parttool.h: Likewise.
37600 * include/grub/video.h: Likewise.
37601 * include/grub/memory.h: Likewise.
37602 * include/grub/fs.h: Likewise.
37603 * include/grub/partition.h: Likewise.
37604 * include/grub/xnu.h: Likewise.
37605 * include/grub/efi/api.h: Likewise.
37606 * include/grub/efi/pe32.h: Likewise.
37607 * include/grub/efi/memory.h: Likewise.
37608 * include/grub/multiboot.h: Likewise.
37609 * include/grub/usbdesc.h: Likewise.
37610 * include/grub/multiboot2.h: Likewise.
37611 * include/grub/acpi.h: Likewise.
37612 * include/grub/efiemu/efiemu.h: Likewise.
37613 * include/grub/disk.h: Likewise.
37614 * include/grub/ieee1275/ieee1275.h: Likewise.
37615 * include/grub/net.h: Likewise.
37616 * include/grub/machoload.h: Likewise.
37617 * include/grub/macho.h: Likewise.
37618 * include/multiboot.h: Likewise.
37619 * genmoddep.awk: Likewise.
37620 * normal/main.c: Likewise.
37621 * normal/menu_entry.c: Likewise.
37622 * normal/menu_viewer.c: Likewise.
37623 * normal/completion.c: Likewise.
37624 * normal/cmdline.c: Likewise.
37625 * normal/misc.c: Likewise.
37626 * normal/datetime.c: Likewise.
37627 * bus/usb/usbtrans.c: Likewise.
37628 * bus/usb/ohci.c: Likewise.
37629 * bus/usb/uhci.c: Likewise.
37630 * bus/usb/usb.c: Likewise.
37631 * mmap/efi/mmap.c: Likewise.
37632 * mmap/i386/pc/mmap_helper.S: Likewise.
37633 * mmap/i386/pc/mmap.c: Likewise.
37634 * mmap/i386/mmap.c: Likewise.
37635 * mmap/i386/uppermem.c: Likewise.
37636 * mmap/mmap.c: Likewise.
37637 * commands/acpi.c: Likewise.
37638 * commands/echo.c: Likewise.
37639 * commands/blocklist.c: Likewise.
37640 * commands/loadenv.c: Likewise.
37641 * commands/usbtest.c: Likewise.
37642 * commands/boot.c: Likewise.
37643 * commands/parttool.c: Likewise.
37644 * commands/search.c: Likewise.
37645 * commands/cat.c: Likewise.
37646 * commands/i386/pc/play.c: Likewise.
37647 * commands/i386/pc/drivemap.c: Likewise.
37648 * commands/i386/pc/vbeinfo.c: Likewise.
37649 * commands/i386/pc/acpi.c: Likewise.
37650 * commands/i386/pc/vbetest.c: Likewise.
37651 * commands/ls.c: Likewise.
37652 * commands/cmp.c: Likewise.
37653 * commands/test.c: Likewise.
37654 * commands/efi/acpi.c: Likewise.
37655 * commands/gptsync.c: Likewise.
37656 * commands/help.c: Likewise.
37657 * partmap/amiga.c: Likewise.
37658 * partmap/apple.c: Likewise.
37659 * partmap/acorn.c: Likewise.
37660 * partmap/pc.c: Likewise.
37661 * partmap/sun.c: Likewise.
37662 * partmap/gpt.c: Likewise.
37663 * script/sh/lexer.c: Likewise.
37664 * script/sh/function.c: Likewise.
37665 * font/font.c: Likewise.
37666 * font/font_cmd.c: Likewise.
37667 * loader/powerpc/ieee1275/linux.c: Likewise.
37668 * loader/efi/chainloader.c: Likewise.
37669 * loader/multiboot_loader.c: Likewise.
37670 * loader/macho.c: Likewise.
37671 * loader/i386/multiboot.c: Likewise.
37672 * loader/i386/linux.c: Likewise.
37673 * loader/i386/pc/linux.c: Likewise.
37674 * loader/i386/pc/multiboot2.c: Likewise.
37675 * loader/i386/pc/chainloader.c: Likewise.
37676 * loader/i386/pc/xnu.c: Likewise.
37677 * loader/i386/bsd_trampoline.S: Likewise.
37678 * loader/i386/efi/linux.c: Likewise.
37679 * loader/i386/multiboot_elfxx.c: Likewise.
37680 * loader/i386/bsd_helper.S: Likewise.
37681 * loader/i386/bsd.c: Likewise.
37682 * loader/i386/linux_trampoline.S: Likewise.
37683 * loader/i386/xnu_helper.S: Likewise.
37684 * loader/i386/xnu.c: Likewise.
37685 * loader/i386/bsd_pagetable.c: Likewise.
37686 * loader/i386/multiboot_helper.S: Likewise.
37687 * loader/xnu.c: Likewise.
37688 * loader/xnu_resume.c: Likewise.
37689 * io/gzio.c: Likewise.
37690 * term/efi/console.c: Likewise.
37691 * term/terminfo.c: Likewise.
37692 * term/ieee1275/ofconsole.c: Likewise.
37693 * term/i386/pc/serial.c: Likewise.
37694 * term/i386/pc/vesafb.c: Likewise.
37695 * term/i386/pc/vga.c: Likewise.
37696 * term/usb_keyboard.c: Likewise.
37697 * term/gfxterm.c: Likewise.
37698 * aclocal.m4: Likewise.
37699 * util/lvm.c: Likewise.
37700 * util/grub.d/30_os-prober.in: Likewise.
37701 * util/grub.d/10_hurd.in: Likewise.
37702 * util/console.c: Likewise.
37703 * util/grub-macho2img.c: Likewise.
37704 * util/grub-probe.c: Likewise.
37705 * util/hostfs.c: Likewise.
37706 * util/i386/pc/grub-mkimage.c: Likewise.
37707 * util/i386/pc/grub-setup.c: Likewise.
37708 * util/i386/efi/grub-mkimage.c: Likewise.
37709 * util/grub-mkconfig.in: Likewise.
37710 * util/raid.c: Likewise.
37711 * util/resolve.c: Likewise.
37712 * util/grub-mkdevicemap.c: Likewise.
37713 * util/grub-emu.c: Likewise.
37714 * util/getroot.c: Likewise.
37715 * util/hostdisk.c: Likewise.
37716 * util/usb.c: Likewise.
37717 * util/grub-editenv.c: Likewise.
37718 * util/misc.c: Likewise.
37720 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37722 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37723 `genparttoollist.sh'.
37724 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37725 Add `*.sh' to the list find searches for and change `mdate.sh'
37728 2009-06-10 Pavel Roskin <proski@gnu.org>
37730 * include/grub/multiboot2.h: Provide compatibility defines for
37732 * include/multiboot2.h: Include stdint.h only if needed, using
37734 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37736 * loader/ieee1275/multiboot2.c: Likewise.
37737 * loader/multiboot2.c: Likewise.
37738 * loader/multiboot_loader.c: Likewise.
37740 * configure.ac: Use -nostdlib when probing for the target. It
37741 should not be required to have libc for the target.
37743 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37744 they fail without libc headers for the target.
37745 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37747 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37748 preprocessor conditionals.
37750 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37751 build system doesn't need to be aware of the tar.c internals.
37753 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37755 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37757 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37759 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37760 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37762 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37764 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37765 aren't available if ata.mod gets used.
37767 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37769 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37770 initialising controller.
37771 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37773 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37775 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37776 to choose between ata and biosdisk module on i386-pc.
37778 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37780 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37781 Subclass and Programming Interface fields in terms of the 3 byte
37782 Class Code register.
37783 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37785 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37786 interface is OHCI. Add grub_dprintf for symmetry with
37788 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37789 interface is UHCI. Add interf variable for programming
37790 interface. Print interface with class/subclass.
37792 * bus/usb/ohci.c: Set interf with correct field.
37794 * bus/usb/uhci.c: Remove unneeded doubled lines.
37795 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37796 Remove whitespace inside comment.
37798 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37800 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37801 as fallback an equivalent option without depth.
37803 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37805 Not fail if unable to retrieve C/H/S on LBA disks
37807 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37808 if unable to retrieve C/H/S on LBA disks
37810 2009-06-08 Pavel Roskin <proski@gnu.org>
37812 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37815 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37817 * Makefile.in (uninstall): Remove all $lib_DATA files.
37819 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37821 Bugfix: install on partitionless device
37823 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37826 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37828 * Makefile.in (uninstall): Remove all $include_DATA files.
37830 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37832 * commands/true.c: New file. Implement the true and false commands.
37833 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37834 (true_mod_SOURCES): New variable.
37835 (true_mod_CFLAGS): Likewise.
37836 (true_mod_LDFLAGS): Likewise.
37838 2009-06-05 Colin D Bennett <colin@gibibit.com>
37840 Optimized font character lookup using binary search instead of linear
37841 search. Fonts now are required to have the character index ordered by
37844 * font/font.c (load_font_index): Verify that fonts have ordered
37846 (find_glyph): Use binary search instead of linear search to find a
37847 character in a font.
37849 2009-06-05 Michael Scherer <misc@mandriva.org>
37851 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37852 uses case sensitive btree.
37853 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37854 only for case insensitive filesystems.
37856 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37858 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37859 * conf/common.rmk (search_mod_CFLAGS): likewise
37861 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37863 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
37864 compensate a compiler bug
37866 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37868 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
37871 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37873 Definitions for creating asm symbols with Apple's CC
37875 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
37876 [APPLE_CC] (VARIABLE): likewise
37878 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37880 Disable lnxboot.img when compiled
37883 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
37884 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
37885 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
37886 [! APPLE_CC] (CODE_LENG): skip
37887 [! APPLE_CC] (setup_sects): likewise
37888 [! APPLE_CC]: skip filling
37890 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37892 Address in trampolines based on 32-bit registers when compiled
37895 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
37897 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
37899 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37901 Avoid aliases when compiling with Apple's CC for PCBIOS machine
37903 * kern/misc.c [APPLE_CC] (memcpy): new function
37904 [APPLE_CC] (memmove): likewise
37905 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
37906 (memcpy): define alias conditionally on !APPLE_CC
37909 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
37910 APPLE_CC are defined
37911 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
37912 (grub_assert_fail): make prototype conditional
37914 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37916 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
37918 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
37920 (CLEANFILES): add grub-macho2img
37921 (grub_macho2img_SOURCES): new variable
37922 * kern/i386/pc/startup.S (bss_start): new variable
37923 (bss_end): likewise
37924 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
37925 * util/grub-macho2img.c: new file
37927 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37929 Use objconv when compiling with Apple's CC
37931 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
37932 (efiemu64.o): likewise
37933 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
37934 when compiling with Apple's CC
37935 (efiemu64_s.o): likewise
37936 * configure.ac: check for objconv when compiling with Apple's CC
37937 * genmk.rb: use objconv for modules when compiled with Apple's CC
37939 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37941 Define segment as well as section when compiling with
37944 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
37945 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
37946 (efiemu_convert_pointer): likewise
37947 (efiemu_set_virtual_address_map): likewise
37948 (efiemu_convert_pointer): likewise
37949 (efiemu_getcrc32): likewise
37950 (init_crc32_table): likewise
37951 (reflect): likewise
37952 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
37953 (GRUB_MOD_DEP): likewise
37955 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37957 Allow a compilation without -mcmodel=large
37959 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
37960 when compiled without -mcmodel=large
37961 (filter_memory_map): remove memory post 4 GiB when compiled
37962 without -mcmodel=large
37963 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
37964 TARGET_CFLAGS when -mcmodel=large isn't supported
37966 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37968 Remove nested functions in efiemu core
37970 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
37972 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37974 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
37976 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
37978 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
37980 (grub_cpu_is_tsc_supported): likewise
37981 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
37983 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37985 Absolute addressing through constant with Apple's cc
37987 * kern/i386/pc/startup.S: Define necessary constants
37988 and address through it when using ABS with Apple's CC
37989 * boot/i386/pc/diskboot.S: likewise
37990 * boot/i386/pc/boot.S: likewise
37991 * boot/i386/pc/lnxboot.S: likewise
37992 * boot/i386/pc/cdboot.S: likewise
37993 * mmap/i386/pc/mmap_helper.S: likewise
37994 * commands/i386/pc/drivemap_int13h.S: likewise
37996 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37998 Check if compiler is apple cc
38000 * Makefile.in (ASFLAGS): new variable
38001 (TARGET_ASFLAGS): likewise
38002 (TARGET_MODULE_FORMAT): likewise
38003 (TARGET_APPLE_CC): likewise
38004 (OBJCONV): likewise
38005 (TARGET_IMG_CFLAGS): likewise
38006 (TARGET_CPPFLAGS): add includedir
38007 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38008 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38009 Check for linker script only if compiler isn't Apple's CC
38010 (TARGET_MODULE_FORMAT): set
38011 (TARGET_APPLE_CC): likewise
38012 (TARGET_ASFLAGS): likewise
38013 (ASFLAGS): likewise
38014 Check for objcopy only if compiler isn't Apple's CC
38015 Check for BSS symbol only if compiler isn't Apple's CC
38016 * genmk.rb: adapt nm options if we use Apple's utils
38017 * aclocal.m4 (grub_apple_cc): new test
38018 (grub_apple_target_cc): likewise
38020 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38022 Simplify sed expressions and improve awk
38024 * Makefile.in (install-local): simplify sed expression
38025 * gencmdlist.sh: likewise
38026 * genmoddep.awk: avoid adding module as a dependency of itself
38028 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38030 Add missing start symbols
38032 * boot/i386/pc/boot.S: add start
38033 * boot/i386/pc/pxeboot.S: likewise
38035 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38037 Fix wrong assumptions with grub-mkimage on EFI
38039 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38040 (relocate_addresses): consider both r_addend and value at offset
38041 (make_mods_section): zerofill modinfo and header
38042 (convert_elf): write prefix here
38044 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38046 Use .asciz instead of .string
38048 * i386/pc/diskboot.S: use .asciz instead of .string
38049 * i386/pc/boot.S: likewise
38050 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38051 (GRUB_MOD_NAME): likewise
38053 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38057 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38058 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38059 (grub_video_setup): remove
38060 (grub_video_set_mode): new prototype
38061 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38063 (linux_vesafb_res): compile only on PCBIOS
38064 (grub_linux_boot): support gfxpayload
38065 * loader/i386/pc/xnu.c (video_hook): new function
38066 (grub_xnu_set_video): support gfxpayload
38067 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38068 (DEFAULT_VIDEO_HEIGHT): likewise
38069 (DEFAULT_VIDEO_FLAGS): likewise
38070 (DEFAULT_VIDEO_MODE): new definition
38071 (video_hook): new function
38072 (grub_gfxterm_init): use grub_video_set_mode
38073 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38075 * video/video.c (grub_video_setup): removed
38076 (grub_video_set_mode): new function based on grub_gfxterm_init and
38079 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38081 Avoid calling biosdisk in drivemap
38083 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38084 (revparse_biosdisk): likewise
38085 (list_mappings): derive name from id directly
38086 (grub_cmd_drivemap): use tryparse_diskstring
38088 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38092 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38093 (grub_lexer_param): add tokenonhold
38094 (grub_script_create_cmdline): remove cmdline. All callers updated
38095 (grub_script_function_create): make functionname
38096 grub_script_arg. All callers updated
38097 (grub_script_execute_argument_to_string): new prototype
38098 * kern/parser.c (state_transitions): reorder
38099 (grub_parser_cmdline_state): fix a bug and make more compact
38100 * script/sh/execute.c (grub_script_execute_argument_to_string):
38102 (grub_script_execute_cmdline): use new format
38103 * script/sh/function.c (grub_script_function_create): make functionname
38104 grub_script_arg. All callers updated
38105 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38106 (grub_script_yylex): remove
38107 (grub_script_yylex2): renamed to ...
38108 (grub_script_yylex): ...renamed
38109 parse the expressions like a${b}c
38110 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38111 (GRUB_PARSER_TOKEN_VAR): remove
38112 (GRUB_PARSER_TOKEN_NAME): likewise
38113 ("if"): declare as typeless
38114 ("while"): likewise
38115 ("function"): likewise
38120 (argument): likewise
38121 (script): accept empty scripts and make exit on error
38122 (arguments): use GRUB_PARSER_TOKEN_ARG
38123 (function): likewise
38124 (command): move error handling to script
38125 (menuentry): move grub_script_lexer_ref before
38126 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38127 argument. All callers updated
38129 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38131 Prevent GRUB from probing floppies during boot.
38133 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38134 * commands/search.c (options): Add --no-floppy.
38135 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38136 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38137 --no-floppy when searching for UUIDs.
38139 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38141 Simplify the code duplication in commands/search.c.
38143 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38144 (search_fs): ... this. Update all users.
38146 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38148 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38150 2009-05-28 Pavel Roskin <proski@gnu.org>
38152 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38153 Remove the original symlink explicitly.
38155 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38156 just one slash. That's how grub_fshelp_find_file() does it.
38158 2009-05-26 Pavel Roskin <proski@gnu.org>
38160 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38163 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38166 2009-05-25 Christian Franke <franke@computer.org>
38168 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38170 (grub_atapi_identify): Add wait after drive select.
38171 (grub_ata_identify): Do more strict status register check before
38172 calling grub_atapi_identify (). Suppress error message if status
38173 register is 0x00 after command failure. Add status register
38174 check after PIO read to avoid bogus identify due to stuck DRQ.
38175 Thanks to Pavel Roskin for testing.
38176 (grub_device_initialize): Remove unsafe status register check.
38177 Thanks to 'phcoder' for problem report and patch.
38178 Prevent sign extension in debug message.
38180 2009-05-23 Colin D Bennett <colin@gibibit.com>
38182 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38183 definition file, and functions defined in `normal/menu.c' have had
38184 their prototypes moved to `include/grub/menu.h' for consistency.
38186 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38188 (grub_menu_get_entry): Likewise.
38189 (grub_menu_get_timeout): Likewise.
38190 (grub_menu_set_timeout): Likewise.
38191 (grub_menu_execute_entry): Likewise.
38192 (grub_menu_execute_with_fallback): Likewise.
38193 (grub_menu_entry_run): Likewise.
38195 * include/grub/normal.h: Re-ordered and grouped function
38196 prototypes by file that the function is defined in.
38197 (grub_menu_execute_callback): Removed; moved to menu.h.
38198 (grub_menu_get_entry): Likewise.
38199 (grub_menu_get_timeout): Likewise.
38200 (grub_menu_set_timeout): Likewise.
38201 (grub_menu_execute_entry): Likewise.
38202 (grub_menu_execute_with_fallback): Likewise.
38203 (grub_menu_entry_run): Likewise.
38204 (grub_menu_addentry): Renamed from this ...
38205 (grub_normal_add_menu_entry): ... to this.
38207 * normal/main.c (grub_menu_addentry): Renamed from this ...
38208 (grub_normal_add_menu_entry): ... to this.
38210 * script/sh/execute.c (grub_script_execute_menuentry): Update
38211 reference to renamed grub_menu_addentry function.
38213 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38215 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38217 2009-05-22 Pavel Roskin <proski@gnu.org>
38219 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38220 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38221 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38222 compiling for the i386 targets, but not for the utilities.
38224 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38226 (grub_root_drive): Likewise.
38227 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38229 (grub_root_drive): Change size to byte.
38230 (grub_start_addr): Remove.
38231 (grub_end_addr): Likewise.
38232 (grub_apm_bios_info): Likewise.
38234 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38236 * normal/i386: Remove.
38237 * normal/powerpc: Likewise.
38238 * normal/sparc64: Likewise.
38239 * normal/x86_64: Likewise.
38241 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38243 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38244 * loader/i386/linux_trampoline.S: Fix indentation
38245 * loader/i386/xnu_helper.S: Likewise
38247 2009-05-18 Colin D Bennett <colin@gibibit.com>
38249 Display error messages when parsing a Lua statement fails.
38250 Previously, executing a syntactically invalid statement like
38251 ")foo" or "bar;" would silently fail.
38253 * script/lua/grub_main.c (handle_lua_error): New function.
38254 (grub_lua_parse_line): Improved reporting of Lua parser and
38257 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38259 Remove -Werror which causes build to fail on some systems
38261 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38262 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38263 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38265 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38267 trampoline for linux on 64-bit platform
38269 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38270 loader/i386/efi/linux_trampoline.S
38271 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38273 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38275 * loader/i386/linux_trampoline.S: moved here
38276 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38278 (jumpvector): removed
38279 (grub_linux_trampoline_start): new declaration
38280 (grub_linux_trampoline_end): likewise
38281 (grub_linux_boot): use trampoline when on 64-bit platform
38282 * loader/i386/linux.c: likewise
38284 2009-05-16 Pavel Roskin <proski@gnu.org>
38286 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38287 const to avoid a warning.
38288 (grub_lua_setenv): Likewise.
38289 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38290 lmsg to fix a warning.
38292 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38294 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38295 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38296 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38297 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38298 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38299 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38300 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38301 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38303 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38305 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38307 2009-05-16 Bean <bean123ch@gmail.com>
38309 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38310 (lua_mod_SOURCES): New variable.
38311 (lua_mod_CFLAGS): Likewise.
38312 (lua_mod_LDFLAGS): Likewise.
38314 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38315 (setjmp_mod_SOURCES): New variable.
38316 (setjmp_mod_CFLAGS): Likewise.
38317 (setjmp_LDFLAGS): Likewise.
38319 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38320 (setjmp_mod_SOURCES): New variable.
38321 (setjmp_mod_CFLAGS): Likewise.
38322 (setjmp_LDFLAGS): Likewise.
38324 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38325 (setjmp_mod_SOURCES): New variable.
38326 (setjmp_mod_CFLAGS): Likewise.
38327 (setjmp_LDFLAGS): Likewise.
38329 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38330 (setjmp_mod_SOURCES): New variable.
38331 (setjmp_mod_CFLAGS): Likewise.
38332 (setjmp_LDFLAGS): Likewise.
38334 * normal/i386/setjmp.S: Moved from here ...
38335 * lib/i386/setjmp.S: ... Moved here
38336 * normal/x86_64/setjmp.S: Moved from here ...
38337 * lib/x86_64/setjmp.S: ... Moved here
38338 * normal/powerpc/setjmp.S: Moved from here ...
38339 * lib/powerpc/setjmp.S: ... Moved here
38340 * normal/sparc64/setjmp.S: Moved from here ...
38341 * lib/sparc64/setjmp.S: ... Moved here
38343 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38344 returns_twice in mingw.
38346 * script/lua/grub_lib.c: New file.
38347 * script/lua/grub_lib.h: Likewise.
38348 * script/lua/grub_lua.h: Likewise.
38349 * script/lua/grub_main.c: Likewise.
38350 * script/lua/lapi.c: Likewise.
38351 * script/lua/lapi.h: Likewise.
38352 * script/lua/lauxlib.c: Likewise.
38353 * script/lua/lauxlib.h: Likewise.
38354 * script/lua/lbaselib.c: Likewise.
38355 * script/lua/lcode.c: Likewise.
38356 * script/lua/lcode.h: Likewise.
38357 * script/lua/ldblib.c: Likewise.
38358 * script/lua/ldebug.c: Likewise.
38359 * script/lua/ldebug.h: Likewise.
38360 * script/lua/ldo.c: Likewise.
38361 * script/lua/ldo.h: Likewise.
38362 * script/lua/ldump.c: Likewise.
38363 * script/lua/lfunc.c: Likewise.
38364 * script/lua/lfunc.h: Likewise.
38365 * script/lua/lgc.c: Likewise.
38366 * script/lua/lgc.h: Likewise.
38367 * script/lua/linit.c: Likewise.
38368 * script/lua/liolib.c: Likewise.
38369 * script/lua/llex.c: Likewise.
38370 * script/lua/llex.h: Likewise.
38371 * script/lua/llimits.h: Likewise.
38372 * script/lua/lmathlib.c: Likewise.
38373 * script/lua/lmem.c: Likewise.
38374 * script/lua/lmem.h: Likewise.
38375 * script/lua/loadlib.c: Likewise.
38376 * script/lua/lobject.c: Likewise.
38377 * script/lua/lobject.h: Likewise.
38378 * script/lua/lopcodes.c: Likewise.
38379 * script/lua/lopcodes.h: Likewise.
38380 * script/lua/loslib.c: Likewise.
38381 * script/lua/lparser.c: Likewise.
38382 * script/lua/lparser.h: Likewise.
38383 * script/lua/lstate.c: Likewise.
38384 * script/lua/lstate.h: Likewise.
38385 * script/lua/lstring.c: Likewise.
38386 * script/lua/lstring.h: Likewise.
38387 * script/lua/lstrlib.c: Likewise.
38388 * script/lua/ltable.c: Likewise.
38389 * script/lua/ltable.h: Likewise.
38390 * script/lua/ltablib.c: Likewise.
38391 * script/lua/ltm.c: Likewise.
38392 * script/lua/ltm.h: Likewise.
38393 * script/lua/lua.h: Likewise.
38394 * script/lua/luaconf.h: Likewise.
38395 * script/lua/lualib.h: Likewise.
38396 * script/lua/lundump.c: Likewise.
38397 * script/lua/lundump.h: Likewise.
38398 * script/lua/lvm.c: Likewise.
38399 * script/lua/lvm.h: Likewise.
38400 * script/lua/lzio.c: Likewise.
38401 * script/lua/lzio.h: Likewise.
38403 2009-05-16 Bean <bean123ch@gmail.com>
38405 * include/grub/kernel.h (grub_module_header_types): Add type
38408 * kern/main.c (grub_load_config): New function.
38409 (grub_main): Call grub_load_config to read boot config.
38411 * grub-mkimage (generate_image): New parameter config_path.
38412 (options): New option --config.
38413 (main): Parse --config option, and pass it to generate_image.
38415 2009-05-14 Christian Franke <franke@computer.org>
38417 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38418 This fixes build on Cygwin.
38420 2009-05-14 Pavel Roskin <proski@gnu.org>
38422 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38423 jump. This saves two bytes, so the typical case of 2 swapped
38424 drives would fit 32 bytes.
38426 2009-05-13 Pavel Roskin <proski@gnu.org>
38428 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38429 grub_uint32_t to avoid a warning.
38431 * loader/i386/linux.c (allocate_pages): When assigning
38432 real_mode_mem, cast through grub_size_t to fix a warning. The
38433 code already makes sure that the value would fit a pointer.
38434 (grub_linux_setup_video): Cast render_target->data to
38435 grub_size_t to fix a warning.
38437 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38439 * commands/i386/pc/drivemap.c: New file - implement drivemap
38441 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38442 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38444 2009-05-13 Pavel Roskin <proski@gnu.org>
38446 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38447 embedding_area_exists.
38449 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38451 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38452 it easier to understand / work with.
38453 Improve warning messages for cases where there's no embedding area,
38454 or when it is too small (or core.img too large).
38456 2009-05-13 Pavel Roskin <proski@gnu.org>
38458 * loader/i386/pc/multiboot2.c: Add necessary includes for
38459 grub_multiboot2_real_boot().
38461 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38462 PX record is always little-endian. We only need the lower 2
38465 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38466 facilitate code reuse.
38467 (grub_cpio_mount): Use "struct head", not a char buffer. This
38468 fixes a warning reported by gcc 4.4.
38470 * kernel/disk.c (grub_disk_read): Use void pointer for the
38472 (grub_disk_write): Use const void pointer for the buffer.
38473 Adjust all callers. Remove unnecessary casts.
38475 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38477 * util/i386/pc/grub-install.in: Update copyright year.
38479 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38483 * commands/gptsync.c: new file
38484 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38485 (gptsync_mod_SOURCES): new variable
38486 (gptsync_mod_CFLAGS): likewise
38487 (gptsync_mod_LDFLAGS): likewise
38488 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38490 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38491 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38492 * conf/i386-ieee1275.rmk: likewise
38493 * conf/i386-pc.rmk: likewise
38494 * conf/powerpc-ieee1275.rmk: likewise
38496 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38500 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38501 (grub_dl_ref): likewise
38503 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38505 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38506 split in two functions (one for msdos and one for gpt).
38508 2009-05-08 Pavel Roskin <proski@gnu.org>
38510 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38513 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38514 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38515 Initialize them with -1. Add sanity check for bad1. Eliminate
38518 2009-05-08 David S. Miller <davem@davemloft.net>
38520 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38522 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38524 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38527 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38529 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38530 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38532 2009-05-05 David S. Miller <davem@davemloft.net>
38534 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38536 2009-05-05 Pavel Roskin <proski@gnu.org>
38538 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38539 of grub_dl_ref() and grub_dl_unref().
38540 * commands/parttool.c: Remove preprocessor conditionals around
38541 grub_dl_ref() and grub_dl_unref().
38542 * fs/affs.c: Likewise.
38543 * fs/afs.c: Likewise.
38544 * fs/cpio.c: Likewise.
38545 * fs/ext2.c: Likewise.
38546 * fs/fat.c: Likewise.
38547 * fs/hfs.c: Likewise.
38548 * fs/hfsplus.c: Likewise.
38549 * fs/iso9660.c: Likewise.
38550 * fs/jfs.c: Likewise.
38551 * fs/minix.c: Likewise.
38552 * fs/ntfs.c: Likewise.
38553 * fs/reiserfs.c: Likewise.
38554 * fs/sfs.c: Likewise.
38555 * fs/udf.c: Likewise.
38556 * fs/ufs.c: Likewise.
38557 * fs/xfs.c: Likewise.
38558 * include/grub/dl.h: Likewise.
38559 * loader/xnu.c: Likewise.
38561 2009-05-04 Pavel Roskin <proski@gnu.org>
38563 * commands/acpi.c: Remove unused variable my_mod.
38564 * partmap/amiga.c: Likewise.
38565 * partmap/apple.c: Likewise.
38566 * partmap/gpt.c: Likewise.
38567 * partmap/pc.c: Likewise.
38568 * partmap/sun.c: Likewise.
38569 * term/gfxterm.c: Likewise.
38570 * term/i386/pc/vesafb.c: Likewise.
38571 * term/i386/pc/vga.c: Likewise.
38573 2009-05-04 David S. Miller <davem@davemloft.net>
38575 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38576 pointer args to grub_ieee1275_get_property().
38578 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38580 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38581 devices, and do not traverse down under controller nodes.
38583 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38584 (grub_ofdisk_open): Use it to un-escape "," characters.
38585 * kern/disk.c (find_part_sep): New.
38586 (grub_disk_open): Use it to find the first non-escaped ','
38587 character in the disk name.
38588 * util/ieee1275/devicemap.c (escape_of_path): New.
38589 (grub_util_emit_devicemap_entry): Use it.
38590 * util/sparc64/ieee1275/grub-install.in: Update script to
38591 strip partition specifiers properly by not triggering on
38592 '\' escaped ',' characters.
38594 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38596 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38598 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38600 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38601 on documentation from Wikipedia).
38603 2009-05-04 Pavel Roskin <proski@gnu.org>
38605 * disk/ata.c: Spelling fixes.
38606 * disk/raid.c: Likewise.
38607 * disk/usbms.c: Likewise.
38608 * disk/dmraid_nvidia.c: Likewise.
38609 * kern/ieee1275/openfw.c: Likewise.
38610 * kern/ieee1275/init.c: Likewise.
38611 * kern/ieee1275/cmain.c: Likewise.
38612 * boot/i386/pc/cdboot.S: Likewise.
38613 * video/readers/png.c: Likewise.
38614 * video/i386/pc/vbe.c: Likewise.
38615 * fs/udf.c: Likewise.
38616 * fs/hfs.c: Likewise.
38617 * fs/reiserfs.c: Likewise.
38618 * efiemu/runtime/efiemu.c: Likewise.
38619 * efiemu/main.c: Likewise.
38620 * efiemu/mm.c: Likewise.
38621 * include/grub/elf.h: Likewise.
38622 * include/grub/xnu.h: Likewise.
38623 * include/grub/usbdesc.h: Likewise.
38624 * include/grub/usb.h: Likewise.
38625 * include/grub/script_sh.h: Likewise.
38626 * include/grub/lib/LzmaEnc.h: Likewise.
38627 * include/grub/efiemu/efiemu.h: Likewise.
38628 * include/grub/command.h: Likewise.
38629 * normal/menu.c: Likewise.
38630 * normal/main.c: Likewise.
38631 * normal/datetime.c: Likewise.
38632 * bus/usb/uhci.c: Likewise.
38633 * mmap/i386/uppermem.c: Likewise.
38634 * mmap/mmap.c: Likewise.
38635 * commands/acpi.c: Likewise.
38636 * commands/test.c: Likewise.
38637 * partmap/apple.c: Likewise.
38638 * font/font.c: Likewise.
38639 * loader/sparc64/ieee1275/linux.c: Likewise.
38640 * loader/macho.c: Likewise.
38641 * loader/i386/bsd_trampoline.S: Likewise.
38642 * loader/i386/bsd.c: Likewise.
38643 * loader/xnu.c: Likewise.
38644 * term/i386/pc/vesafb.c: Likewise.
38645 * term/usb_keyboard.c: Likewise.
38646 * util/resolve.c: Likewise.
38647 * util/getroot.c: Likewise.
38649 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38651 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38653 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38655 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38658 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38660 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38661 parameter only available on BIOS.
38663 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38665 Removed wrong semicolon in declaration
38667 * grub/misc.h (grub_dprintf): remove semicolon
38669 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38671 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38672 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38673 is done by grub_cmd_linux() now).
38674 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38675 restore video to text mode.
38676 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38677 indicates lack of "vga=" parameter. "vga=0" is mapped to
38678 `GRUB_LINUX_VID_MODE_NORMAL'.
38680 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38682 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38683 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38684 and `normal/script.c'. Add `kern/rescue_reader.c',
38685 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38686 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38687 `grub_script.tab.c'.
38689 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38690 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38691 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38692 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38693 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38695 * Makefile.in: Remove duplicated 2008 in Copyright line.
38697 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38699 * util/misc.c (grub_util_warn): New function. Emits a warning
38701 * include/grub/util/misc.h (grub_util_warn): New declaration.
38703 * util/i386/pc/grub-install.in: Understand --force and pass it down
38706 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38708 (setup): Improve error messages and add warnings when requested to
38709 install in odd layouts. Refuse to install using blocklists unless
38712 2009-05-04 martin f. krafft <madduck@madduck.net>
38714 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38716 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38718 Updated copyright year
38720 * fs/hfsplus.c: updated copyright year
38722 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38726 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38727 in the space previously used by unused3
38728 (grub_hfsplus_uuid): new function
38729 (grub_hfsplus_fs): added uuid field
38731 2009-05-03 Pavel Roskin <proski@gnu.org>
38733 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38734 suppress warnings. It's no longer needed.
38735 * disk/host.c: Likewise.
38736 * disk/ata_pthru.c: Likewise.
38737 * disk/loopback.c: Likewise.
38738 * hook/datehook.c: Likewise.
38739 * parttool/pcpart.c: Likewise.
38740 * fs/i386/pc/pxe.c: Likewise.
38741 * fs/ntfscomp.c: Likewise.
38742 * efiemu/main.c: Likewise.
38743 * mmap/mmap.c: Likewise.
38744 * commands/crc.c: Likewise.
38745 * commands/hexdump.c: Likewise.
38746 * commands/hdparm.c: Likewise.
38747 * commands/acpi.c: Likewise.
38748 * commands/echo.c: Likewise.
38749 * commands/minicmd.c: Likewise.
38750 * commands/blocklist.c: Likewise.
38751 * commands/memrw.c: Likewise.
38752 * commands/loadenv.c: Likewise.
38753 * commands/usbtest.c: Likewise.
38754 * commands/lsmmap.c: Likewise.
38755 * commands/boot.c: Likewise.
38756 * commands/parttool.c: Likewise.
38757 * commands/configfile.c: Likewise.
38758 * commands/search.c: Likewise.
38759 * commands/ieee1275/suspend.c: Likewise.
38760 * commands/cat.c: Likewise.
38761 * commands/i386/pc/pxecmd.c: Likewise.
38762 * commands/i386/pc/play.c: Likewise.
38763 * commands/i386/pc/halt.c: Likewise.
38764 * commands/i386/pc/vbeinfo.c: Likewise.
38765 * commands/i386/pc/vbetest.c: Likewise.
38766 * commands/lspci.c: Likewise.
38767 * commands/date.c: Likewise.
38768 * commands/handler.c: Likewise.
38769 * commands/ls.c: Likewise.
38770 * commands/test.c: Likewise.
38771 * commands/cmp.c: Likewise.
38772 * commands/efi/loadbios.c: Likewise.
38773 * commands/efi/fixvideo.c: Likewise.
38774 * commands/halt.c: Likewise.
38775 * commands/help.c: Likewise.
38776 * commands/reboot.c: Likewise.
38777 * hello/hello.c: Likewise.
38778 * script/sh/main.c: Likewise.
38779 * loader/xnu.c: Likewise.
38780 * term/terminfo.c: Likewise.
38781 * term/i386/pc/serial.c: Likewise.
38782 * term/usb_keyboard.c: Likewise.
38784 2009-05-03 David S. Miller <davem@davemloft.net>
38786 * normal/menu.c: Include grub/parser.h
38788 2009-05-03 Pavel Roskin <proski@gnu.org>
38790 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38792 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38793 Suggested by Javier Martín <lordhabbit@gmail.com>
38795 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38796 efiemu??.o doesn't exist.
38797 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38800 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38802 FreeBSD 64-bit support
38804 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38805 and loader/i386/bsd_trampoline.S
38806 (bsd_mod_ASFLAGS): new variable
38807 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38808 (FREEBSD_MODTYPE_KERNEL64): likewise
38809 (grub_bsd64_trampoline_start): likewise
38810 (grub_bsd64_trampoline_end): likewise
38811 (grub_bsd64_trampoline_selfjump): likewise
38812 (grub_bsd64_trampoline_gdt): likewise
38813 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38814 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38815 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38816 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38817 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38819 * loader/i386/bsd_pagetable.c: new file
38820 * loader/i386/bsd_trampoline.S: likewise
38821 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38822 (ALIGN_VAR): likewise
38823 (entry_hi): new variable
38824 (kern_end_mdofs): likewise
38825 (is_64bit): likewise
38826 (grub_freebsd_add_meta): use ALIGN_VAR
38827 (grub_e820_mmap): new declaration
38828 (grub_freebsd_add_mmap): new function
38829 (grub_freebsd_add_meta_module): support 64 bit kernels
38830 (grub_freebsd_list_modules): use ALIGN_VAR
38831 (gdt_descriptor): new declaration
38832 (grub_freebsd_boot): support 64 bit kernels
38833 (grub_bsd_elf64_hook): new function
38834 (grub_bsd_load_elf): support elf64
38836 2009-05-03 Bean <bean123ch@gmail.com>
38838 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38839 after we get the result of if statement.
38841 2009-05-03 Bean <bean123ch@gmail.com>
38843 * Makefile.in (enable_efiemu): New variable.
38845 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38847 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38849 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38850 path, add -mno-red-zone option.
38851 (efiemu64_s.o): Likewise.
38852 (efiemu64.o): Use macro $^ for source file.
38854 * configure.ac (--enable-efiemu): New option.
38856 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38860 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38861 (pkglib_MODULES): add xnu.mod
38862 (xnu_mod_SOURCES): new variable
38863 (xnu_mod_CFLAGS): likewise
38864 (xnu_mod_LDFLAGS): likewise
38865 (xnu_mod_ASFLAGS): likewise
38866 * conf/i386-pc.rmk: likewise
38867 * conf/x86_64-efi.rmk: likewise
38868 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
38870 * include/grub/i386/macho.h: new file
38871 * include/grub/i386/xnu.h: likewise
38872 * include/grub/macho.h: likewise
38873 * include/grub/machoload.h: likewise
38874 * include/grub/x86_64/macho.h: likewise
38875 * include/grub/x86_64/xnu.h: likewise
38876 * include/grub/xnu.h: likewise
38877 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
38878 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
38879 * loader/i386/efi/xnu.c: new file
38880 * loader/i386/pc/xnu.c: likewise
38881 * loader/i386/xnu.c: likewise
38882 * loader/i386/xnu_helper.S: likewise
38883 * loader/macho.c: likewise
38884 * loader/xnu.c: likewise
38885 * loader/xnu_resume.c: likewise
38886 * util/grub-dumpdevtree: likewise
38887 * include/grub/i386/pit.h: include grub/err.h
38888 (grub_pit_wait): export
38889 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
38891 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38895 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
38896 _linux_efi, linux_efi.
38897 new files in grub-emu
38898 new targets efiemu32.o and efiemu64.o
38899 * loader/linux_normal_efiemu.c: likewise
38900 * loader/i386/efi/linux.c: added preliminary efiemu support
38901 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
38903 * include/grub/autoefi.h: new file
38904 * include/grub/i386/efiemu.h: likewise
38905 * include/grub/i386/pc/efiemu.h: likewise
38906 * include/grub/efi/api.h: add LL suffix when necessary
38907 new definitions relating to tables
38908 * include/grub/efiemu/efiemu.h: new file
38909 * include/grub/efiemu/runtime.h: likewise
38910 * efiemu/prepare.c: likewise
38911 * efiemu/loadcore_common.c: likewise
38912 * efiemu/loadcore64.c: likewise
38913 * efiemu/runtime/efiemu.sh: likewise
38914 * efiemu/runtime/efiemu.S: likewise
38915 * efiemu/runtime/efiemu.c: likewise
38916 * efiemu/runtime/config.h: likewise
38917 * efiemu/prepare32.c: likewise
38918 * efiemu/main.c: likewise
38919 * efiemu/modules/pnvram.c: likewise
38920 * efiemu/modules/i386: likewise
38921 * efiemu/modules/i386/pc: likewise
38922 * efiemu/modules/acpi.c: likewise
38923 * efiemu/i386/pc/cfgtables.c: likewise
38924 * efiemu/i386/loadcore64.c: likewise
38925 * efiemu/i386/loadcore32.c: likewise
38926 * efiemu/prepare64.c: likewise
38927 * efiemu/loadcore.c: likewise
38928 * efiemu/symbols.c: likewise
38929 * efiemu/mm.c: likewise
38930 * efiemu/loadcore32.c: likewise
38932 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38936 * commands/acpi.c: new file
38937 * commands/i386/pc/acpi.c: likewise
38938 * commands/efi/acpi.c: likewise
38939 * include/grub/acpi.h: likewise
38940 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
38941 (acpi_mod_SOURCES): new variable
38942 (acpi_mod_CFLAGS): likewise
38943 (acpi_mod_LDFLAGS): likewise
38944 * conf/i386-efi.rmk: likewise
38945 * conf/x86_64-efi.rmk: likewise
38947 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38949 Missing part from mmap patch
38951 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
38952 (grub_mmap_unregister)
38953 (grub_mmap_free_and_unregister): use grub_mmap_register
38955 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38959 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
38960 * loader/i386/linux.c (find_mmap_size): likewise
38961 (allocate_pages): likewise
38962 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
38963 (grub_fill_multiboot_mmap): likewise
38964 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
38965 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
38966 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
38967 (OPENBSD_MMAP_RESERVED): likewise
38968 * include/grub/i386/pc/memory.h: include grub/memory.h
38969 (grub_lower_mem): removed
38970 (grub_upper_mem): likewise
38971 (GRUB_MACHINE_MEMORY_ACPI): new definition
38972 (GRUB_MACHINE_MEMORY_NVS): likewise
38973 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
38974 (GRUB_MACHINE_MEMORY_HOLE): likewise
38975 (grub_machine_mmap_register): likewise
38976 (grub_machine_mmap_unregister): likewise
38977 (grub_machine_get_upper): likewise
38978 (grub_machine_get_lower): likewise
38979 (grub_machine_get_post64): likewise
38980 * include/grub/i386/efi/memory.h: new file
38981 * include/grub/x86_64/efi/memory.h: likewise
38982 * include/grub/efi/memory.h: likewise
38983 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
38984 (mmap_mod_SOURCES): new variable
38985 (mmap_mod_LDFLAGS): likewise
38986 (mmap_mod_ASFLAGS): likewise
38987 * conf/i386-coreboot.rmk: likewise
38988 * conf/i386-ieee1275.rmk: likewise
38989 * conf/i386-efi.rmk: likewise
38990 * conf/x86_64-efi.rmk: likewise
38991 * include/grub/types.h (UINT_TO_PTR): new macro
38992 (PTR_TO_UINT32): likewise
38993 (PTR_TO_UINT64): likewise
38994 * include/grub/memory.h: new file
38995 * mmap/i386/pc/mmap.c: likewise
38996 * mmap/i386/pc/mmap_helper.S: likewise
38997 * mmap/i386/uppermem.c: likewise
38998 * mmap/mmap.c: likewise
38999 * mmap/efi/mmap.c: likewise
39000 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39002 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39003 (grub_upper_mem): likewise
39004 (grub_machine_init): don't use grub_upper_mem,
39005 make grub_lower_mem local
39006 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39007 grub_mmap_iterate and grub_mmap_get_upper
39008 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39010 2009-05-02 Bean <bean123ch@gmail.com>
39012 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39013 script/sh/parser.y.
39014 (pkglib_MODULES): Add normal.mod and sh.mod.
39015 (normal_SOURCES): New variable.
39016 (normal_mod_CFLAGS): Likewise.
39017 (normal_mod_LDFLAGS): Likewise.
39018 (sh_mod_SOURCES): Likewise.
39019 (sh_mod_CFLAGS): Likewise.
39020 (sh_mod_LDFLAGS): Likewise.
39022 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39023 script/sh/lexer.c_DEPENDENCIES.
39024 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39025 kern/rescue_reader.c and kern/rescue_parser.c.
39026 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39027 (grub_emu_SOURCES): Change source files.
39028 (pkglib_MODULES): Remove normal.mod.
39029 (normal_SOURCES): Removed.
39030 (normal_mod_CFLAGS): Likewise.
39031 (normal_mod_LDFLAGS): Likewise.
39032 * conf/i386-coreboot.rmk: Likewise.
39033 * conf/i386-efi.rmk: Likewise.
39034 * conf/i386-ieee1276.rmk: Likewise.
39035 * conf/powerpc-ieee1275.rmk: Likewise.
39036 * conf/sparc64-ieee1275.rmk: Likewise.
39037 * conf/x86_64-efi.rmk: Likewise.
39039 * include/grub/command.h (grub_command_execute): New inline function.
39041 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39043 * include/grub/normal.h: Remove <grub/setjmp.h>.
39044 (grub_fs_module_list): Moved to normal/autofs.c.
39045 (grub_exit_env): Removed.
39046 (grub_command_execute): Likewise.
39047 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39049 (read_command_list): New function declaration.
39050 (read_fs_list): Likewise.
39052 * include/parser.h: Include <grub/reader.h>.
39053 (grub_parser_split_cmdline): Change type of getline parameter.
39054 (grub_parser): New structure.
39055 (grub_parser_class): New variable.
39056 (grub_parser_execute): New function declaration.
39057 (grub_register_rescue_parser): Likewise.
39058 (grub_parser_register): New inline function.
39059 (grub_parser_unregister): Likewise.
39060 (grub_parser_get_current): Likewise.
39061 (grub_parser_set_current): Likewise.
39063 * include/grub/reader.h: New file.
39064 * kern/reader.c: Likewise.
39065 * kern/rescue_parser.c: Likewise.
39066 * kern/rescue_reader.c: Likewise.
39067 * normal/autofs.c: Likewise.
39068 * normal/dyncmd.c: Likewise.
39070 * include/grub/rescue.h: Removed.
39071 * normal/command.h: Likewise.
39073 * include/grub/script.h: Moved to ...
39074 * include/grub/script_sh.h: ... Moved here.
39075 * normal/execute.c: Moved to ...
39076 * script/sh/execute.c: ... Moved here.
39077 * normal/function.c: Moved to ...
39078 * script/sh/function.c: ... Moved here.
39079 * normal/lexer.c: Moved to ...
39080 * script/sh/lexer.c: ... Moved here.
39081 * normal/parser.y: Moved to ...
39082 * script/sh/parser.y: ... Moved here.
39083 * normal/script.c: Moved to ...
39084 * script/sh/script.c: ... Moved here.
39086 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39088 (grub_exit_env): Removed.
39089 (fs_module_list): Moved to normal/autofs.c.
39090 (grub_file_getline): Don't handle comment here.
39091 (free_menu): Skip removed field entry->commands.
39092 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39094 (read_config_file): Removed nested parameter, change getline function.
39095 (grub_enter_normal_mode): Removed.
39096 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39097 (read_command_list): Likewise.
39098 (autoload_fs_module): Moved to normal/autofs.c.
39099 (read_fs_list): Likewise.
39100 (reader_nested): New variable.
39101 (grub_normal_execute): Run parser.sh to switch to sh parser.
39102 (grub_cmd_rescue): Removed.
39103 (cmd_normal): Removed.
39104 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39106 (grub_cmdline_run): New function.
39107 (grub_normal_reader_init): Likewise.
39108 (grub_normal_read_line): Likewise.
39109 (grub_env_write_pager): Likewise.
39110 (cmdline): New variable.
39111 (grub_normal_reader): Likewise.
39112 (GRUB_MOD_INIT): Register normal reader and set as current, register
39113 pager hook, register normal command with grub_register_command_prio,
39114 so that it won't show up in command.lst.
39115 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39116 grub_fs_autoload_hook.
39118 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39119 (grub_menu_execute_entry): Replace grub_script_execute with
39120 grub_parser_execute, change parameter to grub_command_execute.
39122 * normal/menu_text.c: Remove <grub/script.h>.
39124 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39125 and <grub/parser.h>.
39126 (run): Change editor_getline to use new parser interface. Change
39127 parameter to grub_command_execute.
39129 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39130 <grub/reader.h> and <grub/parser.h>.
39131 (grub_load_normal_mode): Execute normal command.
39132 (grub_main): Call grub_register_core_commands,
39133 grub_register_rescue_parser and grub_register_rescue_reader, use
39134 grub_reader_loop to enter input loop.
39136 * kern/parser.c (grub_parser_split_cmdline): Change type of
39138 (grub_parser_class): New variable.
39139 (grub_parser_execute): New function.
39141 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39142 * loader/multiboot2.c: Likewise.
39143 * loader/sparc64/ieee1275/linux.c: Likewise.
39145 * util/grub-emu.c (read_command_list): New dummy function.
39147 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39149 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39150 count to 16 for CCISS and IDA.
39152 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39154 * normal/menu_text.c (grub_wait_after_message): Print a newline
39155 after waiting for user input.
39157 * loader/i386/linux.c: Include `<grub/normal.h>'.
39158 (grub_cmd_linux): Improve the error message about `ask' mode, by
39159 waiting for user input so it's not missed (we can do this, since
39160 user requested interaction).
39162 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39164 Added missing lst to grub-mkrescue
39166 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39167 and ${input_dir}/parttool.lst
39169 2009-04-30 David S. Miller <davem@davemloft.net>
39171 * util/hostdisk.c (device_is_wholedisk): New function.
39172 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39173 zero only if device_is_wholedisk() returns true.
39175 * util/hostdisk.c (convert_system_partition_to_system_disk):
39176 Handle virtual disk devices named /dev/vdiskX as found on sparc
39179 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39180 lettered partition specifier is found, convert to numbered.
39182 2009-04-29 David S. Miller <davem@davemloft.net>
39184 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39185 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39187 * normal/command.c: Add missing newline at end of file.
39189 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39191 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39192 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39193 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39194 ihandles have a 32-bit type but need to be stored in a "void *".
39196 2009-04-28 Pavel Roskin <proski@gnu.org>
39198 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39199 not disk. Adjust all dependencies.
39200 (grub_fs_uuid_close): Use grub_device_close(), not
39203 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39204 parent's partition, don't copy it by reference, as it gets freed
39207 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39209 Preboot hooks support
39211 * commands/boot.c (struct grub_preboot_t): new declaration
39212 (preboots_head): new variable
39213 (preboots_tail): likewise
39214 (grub_loader_register_preboot_hook): new function
39215 (grub_loader_unregister_preboot_hook): likewise
39216 (grub_loader_set): launch preboot hooks
39217 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39218 (grub_loader_register_preboot_hook): new declaration
39219 (grub_loader_unregister_preboot_hook): likewise
39221 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39225 * disk/scsi.c (grub_scsi_open): added missing cast when
39226 calling grub_dprintf
39228 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39230 Bug and warning fixes
39232 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39234 * commands/test.c (test_parse): fixed bug with file tests and corrected
39235 declaration of find_file
39237 2009-04-26 Pavel Roskin <proski@gnu.org>
39239 * Makefile.in: Don't install empty manual pages if help2man is
39240 missing. Use help2man option for output, not shell redirection.
39242 2009-04-26 David S. Miller <davem@davemloft.net>
39244 * util/grub-mkdevicemap.c (make_device_map): Add missing
39245 NESTED_FUNC_ATTR to process_device().
39247 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39251 * commands/test.c: rewritten to use bash-like test
39253 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39255 Parttool autoloading and improvements
39257 * Makefile.in (pkglib_DATA): add parttool.lst
39258 (parttool.lst): new target
39259 * genmk.rb: generate parttool-*
39260 (CLEANFILES): add #{parttool}
39261 (PARTTOOLFILES): new variable
39262 * genparttoollist.sh: new file
39263 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39264 (grub_pcpart_type): likewise
39265 * commands/parttool.c (helpmsg): new variable
39266 (grub_cmd_parttool): output help if not enough arguments are supplied
39268 (GRUB_MOD_INIT(parttool)): use helpmsg
39270 2009-04-24 David S. Miller <davem@davemloft.net>
39272 Avoiding opening same device multiple times in device iterator.
39274 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39275 and use it to build a list of partitions in iterate_disk() and
39276 iterate_partition().
39278 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39281 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39282 grub_devalias_iterate() result instead of unconditional 0.
39283 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39284 Also, capture hook return value, either directly or via
39285 grub_children_iterate(), and propagate to caller.
39286 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39287 grub_children_iterate): Return value is now 'int' instead of
39289 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39290 like a proper iterator, stopping when hooks return non-zero.
39291 (grub_devalias_iterate): Likewise.
39293 2009-04-23 David S. Miller <davem@davemloft.net>
39295 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39297 2009-04-22 David S. Miller <davem@davemloft.net>
39299 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39300 is larger than address_cells, use that value for address_cells too.
39302 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39303 IEEE1275_MAX_PATH_LEN): Define.
39304 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39305 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39306 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39307 'devtype'. Explicitly NULL terminate devalias expansion.
39309 * util/sparc64/ieee1275/misc.c: New file.
39310 * util/sparc64/ieee1275/grub-setup.c: New file.
39311 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39312 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39313 * util/sparc64/ieee1275/grub-install.in: New file.
39314 * util/ieee1275/ofpath.c: New file.
39315 * util/ieee1275/devicemap.c: New file.
39316 * util/devicemap.c: New file.
39317 * util/deviceiter.c: New file.
39318 * kern/sparc64/ieee1275/init.c: New file.
39319 * include/grub/util/ofpath.h: New file.
39320 * include/grub/util/deviceiter.h: New file.
39321 * util/grub-mkdevicemap.c: Include deviceiter.h.
39322 Implement using grub_util_emit_devicemap_entry and
39323 grub_util_iterate_devices.
39324 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39325 util/devicemap.c into grub-mkdevicemap
39326 * conf/i386-efi.rmk: Likewise.
39327 * conf/i386-ieee1275.rmk: Likewise.
39328 * conf/i386-pc.rmk: Likewise.
39329 * conf/powerpc-ieee1275.rmk: Likewise.
39330 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39331 images and installation utilities. Build kernel as image
39332 instead of as elf binary. Use common rules as much as possible.
39334 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39336 Correct GPT definition
39338 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39341 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39343 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39345 2009-04-19 David S. Miller <davem@davemloft.net>
39347 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39348 (grub_rescue_cmd_linux): Rename to...
39349 (grub_cmd_linux): and fix prototype.
39350 (grub_rescue_cmd_initrd): Rename to...
39351 (grub_cmd_initrd): and fix prototype.
39352 (cmd_linux, cmd_initrd): New.
39353 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39354 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39356 2009-04-17 Pavel Roskin <proski@gnu.org>
39358 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39360 (grub_ohci_transfer): Likewise.
39362 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39364 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39365 return without a value. Fix inconsistent indentation.
39367 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39368 match struct grub_fs.
39370 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39371 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39372 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39373 * commands/lspci.c (grub_lspci_iter): Likewise.
39375 2009-04-16 Bean <bean123ch@gmail.com>
39377 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39380 2009-04-15 Pavel Roskin <proski@gnu.org>
39382 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39383 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39384 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39387 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39389 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39390 that no multiple data or metadata areas are supported and `Unknown
39393 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39395 Move loader out of the kernel
39397 * kern/loader.c: moved to ...
39398 * commands/boot.c: ... moved here
39399 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39400 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39401 * include/grub/kernel.h (grub_machine_fini): export
39402 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39403 (grub_loader_set): likewise
39404 (grub_loader_unset): likewise
39405 (grub_loader_boot): likewise
39406 * conf/common.rmk: new module boot.mod
39407 (pkglib_MODULES): add boot.mod
39408 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39409 (grub_emu_SOURCES): likewise
39410 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39411 (grub_emu_SOURCES): likewise
39412 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39413 (grub_emu_SOURCES): likewise
39414 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39415 (grub_emu_SOURCES): likewise
39416 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39417 (grub_emu_SOURCES): likewise
39418 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39419 (grub_emu_SOURCES): likewise
39420 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39421 (grub_emu_SOURCES): likewise
39423 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39425 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39427 * kern/misc.c (grub_itoa): Removed function
39428 (grub_ltoa): likewise
39429 (grub_vsprintf): use grub_lltoa
39431 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39435 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39436 * conf/i386-coreboot.rmk: likewise
39437 * conf/i386-ieee1275.rmk: likewise
39438 * conf/powerpc-ieee1275.rmk: likewise
39440 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39442 * INSTALL: Add that `./autogen.sh' needs to be run before
39445 2009-04-14 Bean <bean123ch@gmail.com>
39447 * Makefile.in (pkglib_DATA): Add handler.lst.
39448 (handler.lst): New rule.
39450 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39451 * conf/i386-coreboot.rmk: Likewise.
39452 * conf/i386-ieee1275.rmk: Likewise.
39453 * conf/i386-efi.rmk: Likewise.
39454 * conf/x86_64-efi.rmk: Likewise.
39455 * conf/powerpc-ieee1275.rmk: Likewise.
39456 * conf/sparc64-ieee1275.rmk: Likewise.
39458 * genhandlerlist.sh: New file.
39460 * genmk.rb: Add rules to generate handler.lst.
39462 * include/grub/normal.h (grub_file_getline): New function definition.
39463 (read_handler_list): Likewise.
39464 (free_handler_list): Likewise.
39466 * include/grub/term.h (grub_term_register_input): Add name parameter
39467 for auto generation of handler.lst.
39468 (grub_term_register_output): Likewise.
39470 * normal/handler.c: New file.
39472 * normal/main.c (get_line): Renamed to grub_file_getline.
39473 (read_config_file): Use the newly renamed grub_file_getline.
39474 (read_command_list): Likewise.
39475 (read_fs_list): Likewise.
39476 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39477 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39479 * term/efi/console.c (grub_console_init): Add name parameter for auto
39480 generation of handler.lst.
39481 * term/gfxterm.c: Likewise.
39482 * term/i386/pc/at_keyboard.c: Likewise.
39483 * term/i386/pc/console.c: Likewise.
39484 * term/i386/pc/serial.c: Likewise.
39485 * term/i386/pc/vesafb.c: Likewise.
39486 * term/i386/pc/vga.c: Likewise.
39487 * term/i386/pc/vga_text.c: Likewise.
39488 * term/ieee1275/ofconsole.c: Likewise.
39489 * term/usb_keyboard.c: Likewise.
39491 2009-04-14 Bean <bean123ch@gmail.com>
39493 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39494 properly with null character.
39496 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39498 * configure: Remove.
39499 * config.h.in: Likewise.
39500 * stamp-h.in: Likewise.
39501 * DISTLIST: Likewise.
39502 * conf/common.mk: Likewise.
39503 * conf/i386-coreboot.mk: Likewise.
39504 * conf/i386-efi.mk: Likewise.
39505 * conf/i386-ieee1275.mk: Likewise.
39506 * conf/i386.mk: Likewise.
39507 * conf/i386-pc.mk: Likewise.
39508 * conf/powerpc-ieee1275.mk: Likewise.
39509 * conf/sparc64-ieee1275.mk: Likewise.
39510 * conf/x86_64-efi.mk: Likewise.
39512 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39515 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39516 David S. Miller <davem@davemloft.net>
39518 * util/hostdisk.c (make_device_name): Fix buffer length
39521 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39523 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39524 <sys/param.h> and <sys/sysctl.h>.
39525 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39526 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39527 opening the device and reset them afterwards.
39529 2009-04-13 Pavel Roskin <proski@gnu.org>
39531 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39532 Reported by John Stanley <jpsinthemix@verizon.net>
39534 2009-04-13 Robert Millan <rmh@aybabtu.com>
39536 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39537 that name for menuentries when appropriate.
39539 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39541 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39543 2009-04-13 Robert Millan <rmh@aybabtu.com>
39545 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39546 to Linux, simply abort telling the user it's no longer supported.
39548 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39550 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39551 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39552 `freebsd_loadenv' only when devices.hints exist.
39554 2009-04-13 Pavel Roskin <proski@gnu.org>
39556 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39558 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39560 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39562 (grub_drive): Likewise.
39564 2009-04-13 David S. Miller <davem@davemloft.net>
39566 * kern/sparc64/ieee1275/ieee1275.c: New file.
39567 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39568 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39569 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39570 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39571 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39572 grub_ieee1275_alloc_physmem): Declare new exported functions.
39574 * include/grub/sparc64/ieee1275/loader.h: New file.
39575 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39576 * include/grub/sparc64/kernel.h: Likewise.
39577 * loader/sparc64/ieee1275/linux.c: Likewise.
39579 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39580 (grub_fstest_SOURCES): Likewise.
39582 * util/hostdisk.c (make_device_name): Do not make any assumptions
39583 about the length of drive names.
39585 * kern/dl.c (grub_dl_load_file): Close file immediately when
39586 we are done using it.
39588 2009-04-12 David S. Miller <davem@davemloft.net>
39590 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39591 values. Noticed by Pavel Roskin.
39593 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39596 * genmk.rb: Add more flexible image type specification, also
39597 pass --strip-unneeded to objcopy.
39598 * conf/i386-pc.rmk: Use *_FORMAT.
39599 * conf/i386-pc.mk: Rebuilt.
39601 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39602 (OFDISK_HASH_SZ): Define.
39603 (ofdisk_hash): New hash table.
39604 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39605 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39606 instead of device phandle which is not unique.
39608 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39609 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39610 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39611 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39612 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39613 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39614 GRUB_KERNEL_MACHINE_DATA_END): Define.
39615 (grub_kernel_image_size, grub_total_module_size): Declare.
39617 2009-04-12 Pavel Roskin <proski@gnu.org>
39619 * configure.ac: Change the logic when we check for target tools.
39620 Do it when the target is specified and it's different from the
39621 specified value of the host.
39623 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39625 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39626 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39627 GNU/kFreeBSD. Check if a device is a character device. Use
39628 DIOCGMEDIASIZE to get the size.
39629 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39630 support for GNU/kFreeBSD.
39631 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39632 is a character device instead of a block device. Add support for
39633 FreeBSD device names.
39635 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39636 is a character device instead of a block device.
39638 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39639 is a character device instead of a block device.
39641 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39643 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39644 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39645 FreeBSD. Check if a device is a character device. Use
39646 DIOCGMEDIASIZE to get the size.
39647 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39648 support for FreeBSD.
39649 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39650 is a character device instead of a block device. Add support for
39651 FreeBSD device names.
39653 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39654 a character device instead of a block device.
39655 (grub_util_check_char_device): New function.
39657 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39658 a character device instead of a block device.
39660 * include/grub/util/getroot.h (grub_util_check_char_device): New
39663 2009-04-11 David S. Miller <davem@davemloft.net>
39665 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39667 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39668 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39669 function, if present.
39670 (__bswapdi2): Likewise.
39672 * include/grub/sparc64/ieee1275/boot.h: New file.
39673 * boot/sparc64/ieee1275/boot.S: Likewise.
39674 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39676 * kern/misc.c (grub_ltoa): New function.
39677 (grub_vsprintf): Use it to format 'long' integers.
39679 2009-04-10 David S. Miller <davem@davemloft.net>
39681 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39682 slots are of type grub_ieee1275_cell_t.
39683 (grub_nand_read): Likewise.
39684 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39685 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39686 macros are used to compare values in arg/ret block of the call.
39687 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39688 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39689 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39690 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39691 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39692 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39693 grub_ieee1275_close, grub_ieee1275_set_property,
39694 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39695 grub_ieee1275_cell_t.
39696 * kern/ieee1275/openfw.c (grub_map): Likewise.
39697 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39698 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39700 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39701 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39702 (grub_devalias_iterate): Likewise.
39704 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39708 * fs/ufs.c (INODE_NBLOCKS): new definition
39709 (struct grub_ufs_dirent): added fields for non-BSD dirents
39710 (grub_ufs_get_file_block): fixed double indirect handling
39711 (grub_ufs_lookup_symlink): use more robust way to determine whether
39713 (grub_ufs_find_file): support for non-BSD dirents
39714 (grub_ufs_dir): support for non-BSD dirents
39716 2009-04-10 Bean <bean123ch@gnail.com>
39718 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39719 attribute, otherwise the size would be wrong for i386 platform.
39721 * include/grub/pci.h (grub_pci_read_word): New inline function.
39722 (grub_pci_read_byte): Likewise.
39723 (grub_pci_write): Likewise.
39724 (grub_pci_write_word): Likewise.
39725 (grub_pci_write_byte): Likewise.
39727 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39729 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39730 (find_framebuf): Scan pci to locate the frame buffer address.
39732 * commands/efi/fixvideo.c: New file.
39734 * commands/efi/loadbios.c: Likewise.
39736 * commands/memrw.c: Likewise.
39738 * util/grub-dumpbios.in: Likewise.
39740 * conf/common.rmk (grub-dumpbios): New utility.
39741 (pkglib_MODULES): New module memrw.mod.
39742 (memrw_mod_SOURCE): New macro.
39743 (memrw_mod_CFLAGS): Likewise.
39744 (memrw_mod_LDFLAGS): Likewise.
39746 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39748 (loadbios_mod_SOURCE): New macro.
39749 (loadbios_mod_CFLAGS): Likewise.
39750 (loadbios_mod_LDFLAGS): Likewise.
39751 (fixvideo_mod_SOURCE): Likewise.
39752 (fixvideo_mod_CFLAGS): Likewise.
39753 (fixvideo_mod_LDFLAGS): Likewise.
39755 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39757 (loadbios_mod_SOURCE): New macro.
39758 (loadbios_mod_CFLAGS): Likewise.
39759 (loadbios_mod_LDFLAGS): Likewise.
39760 (fixvideo_mod_SOURCE): Likewise.
39761 (fixvideo_mod_CFLAGS): Likewise.
39762 (fixvideo_mod_LDFLAGS): Likewise.
39764 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39766 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39768 2009-04-07 David S. Miller <davem@davemloft.net>
39770 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39771 support for R_SPARC_OLO10 relocations. Fix compile warning for
39772 R_SPARC_WDISP30 case.
39773 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39775 2009-04-06 Pavel Roskin <proski@gnu.org>
39777 * include/grub/misc.h (ARRAY_SIZE): New macro.
39778 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39780 * loader/i386/linux.c (allocate_pages): Use free_pages().
39781 (grub_linux_unload): Don't use free_pages().
39782 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39783 wrong index. Treat all other modes as text modes.
39784 (grub_cmd_linux): Initialize vid_mode unconditionally to
39785 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39787 * commands/help.c (print_command_help): Use cmd->prio, not
39788 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39790 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39794 * parttool/pcpart.c: new file
39795 * commands/parttool.c: likewise
39796 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39797 (parttool_mod_SOURCES): new variable
39798 (parttool_mod_CFLAGS): likewise
39799 (parttool_mod_LDFLAGS): likewise
39800 (pcpart_mod_SOURCES): likewise
39801 (pcpart_mod_CFLAGS): likewise
39802 (pcpart_mod_LDFLAGS): likewise
39803 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39804 and parttool/pcpart.c
39805 * conf/i386-efi.rmk: likewise
39806 * conf/i386-ieee1275.rmk: likewise
39807 * conf/i386-pc.rmk: likewise
39808 * conf/powerpc-ieee1275.rmk: likewise
39809 * conf/sparc64-ieee1275.rmk: likewise
39810 * conf/x86_64-ieee1275.rmk: likewise
39812 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39814 Support for mtime and further expandability of dir command
39816 * include/grub/lib/datetime.h: moved to ...
39817 * include/grub/datetime.h: ... moved here and added
39818 declaration of grub_unixtime2datetime. All users updated
39819 * include/grub/fs.h: new syntax for dir and mtime functions in
39821 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39822 and GRUB_FSHELP_FLAGS_MASK
39823 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39824 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39825 (grub_ext2_mtime): new function
39826 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39827 (grub_hfsplus_mtime): new function
39828 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39829 (GRUB_UFS_ATTR_FILE): likewise
39830 (GRUB_UFS_ATTR_LNK): likewise
39831 (struct grub_ufs_sblock): new fields mtime
39832 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39834 (grub_ufs_dir): mtime support
39835 (grub_ufs_mtime): new function
39836 * fs/affs.c (grub_affs_dir): use new dir syntax
39837 * fs/afs.c (grub_afs_dir): likewise
39838 * fs/cpio.c (grub_cpio_dir): likewise
39839 * fs/fat.c (grub_fat_find_dir): likewise
39840 * fs/hfs.c (grub_hfs_dir): likewise
39841 * fs/iso9660.c (grub_iso9660_dir): likewise
39842 * fs/jfs.c (grub_jfs_dir): likewise
39843 * fs/minix.c (grub_minix_dir): likewise
39844 * fs/ntfs.c (grub_ntfs_dir): likewise
39845 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39846 * fs/sfs.c (grub_sfs_dir): likewise
39847 * fs/xfs.c (grub_xfs_dir): likewise
39848 * util/hostfs.c (grub_hostfs_dir): likewise
39849 * lib/datetime.c: moved to ...
39850 * normal/datetime.c: ... moved here
39851 (grub_unixtime2datetime): new function
39852 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
39853 * normal/completion.c (iterate_dir): use new dir syntax
39854 * normal/misc.c (grub_normal_print_device_info): tell the
39855 last modification time of a volume
39856 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
39857 * conf/common.rmk: added lib/datetime.c to ls.mod
39858 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
39859 (normal_mod_SOURCES): likewise
39860 (datetime_mod_SOURCES): Removed lib/datetime.c
39861 * conf/i386-efi.rmk: likewise
39862 * conf/i386-ieee1275.rmk: likewise
39863 * conf/i386-pc.rmk: likewise
39864 * conf/powerpc-ieee1275.rmk: likewise
39865 * conf/sparc64-ieee1275.rmk: likewise
39866 * conf/x86_64-efi.rmk: likewise
39868 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39870 Trim trailing spaces in FAT label and support mtools-like labels
39872 * fs/fat.c (grub_fat_iterate_dir): New function based
39873 on grub_fat_find_dir
39874 (grub_fat_find_dir): use grub_fat_iterate_dir
39875 (grub_fat_label): likewise
39877 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
39879 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
39881 remove extraneous kernel_elf_HEADERS
39883 2009-04-04 Bean <bean123ch@gnail.com>
39885 * include/grub/util/misc.h: Add dummy function fsync for mingw.
39887 * util/misc.c: Likewise.
39889 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39891 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
39892 instead of grub_printf.
39894 2009-04-03 Robert Millan <rmh@aybabtu.com>
39896 * loader/i386/linux.c (grub_linux_setup_video): Fill
39897 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
39898 values from `mode info' structure instead of hardcoded
39901 2009-04-01 Pavel Roskin <proski@gnu.org>
39903 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
39905 * genmk.rb: Likewise.
39906 * configure.ac: Likewise.
39908 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
39910 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
39911 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
39913 2009-04-01 David S. Miller <davem@davemloft.net>
39915 * normal/sparc64/setjmp.S: Fix setjmp implementation.
39916 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
39917 (grub_setjmp): Mark with 'returns_twice' attribute.
39918 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
39919 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
39920 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
39922 2009-04-01 Robert Millan <rmh@aybabtu.com>
39924 Reapply fix from 2008-07-28 which was accidentally reverted; also
39925 perform the same fix to a similar check in same function.
39927 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
39928 with the same number are found, just use issue a warning with
39929 grub_dprintf(), as this error has been reported to be non-fatal.
39931 2009-03-31 Pavel Roskin <proski@gnu.org>
39933 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
39934 for cross-compilation.
39936 2009-03-30 Robert Millan <rmh@aybabtu.com>
39938 Fix i386-ieee1275 build.
39940 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
39941 Remove declaration.
39943 2009-03-30 Pavel Roskin <proski@gnu.org>
39945 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
39946 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
39947 zero-terminated, rely only on the strlen value. Fix comparison
39948 of strings differing in length.
39950 2009-03-30 Robert Millan <rmh@aybabtu.com>
39952 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
39953 checking for abi version. Improve error messages on BIOS to notify
39954 user about `linux16' command.
39956 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
39960 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
39961 in case of collision
39962 * disk/scsi.c (grub_scsi_open): free scsi in case of error
39964 2009-03-29 Robert Millan <rmh@aybabtu.com>
39966 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
39967 set `vid_mode' accordingly.
39968 (grub_linux_boot): Process `vid_mode' and set video mode.
39970 2009-03-29 Robert Millan <rmh@aybabtu.com>
39972 * util/grub.d/10_linux.in (linux_entry): New function.
39973 Factorize generation of Linux boot entries.
39975 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
39977 Make the format of Environment Block plain text. The boot loader
39978 part is not tested well yet.
39980 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
39982 (envblk): Likewise.
39983 (usage): Remove "info" and "clear". Add "unset". Update the
39984 description of "set", as this does not delete variables any
39986 (create_envblk_file): Complete rewrite.
39987 (open_envblk_file): Likewise.
39988 (cmd_info): Removed.
39989 (cmd_list): Likewise.
39990 (cmd_set): Likewise.
39991 (cmd_clear): Likewise.
39992 (list_variables): New function.
39993 (write_envblk): Likewise.
39994 (set_variables): Likewise.
39995 (unset_variables): Likewise.
39996 (main): Complete rewrite.
39998 * commands/loadenv.c (buffer): Removed.
39999 (envblk): Likewise.
40000 (open_envblk_file): New function.
40001 (read_envblk_file): Complete rewrite.
40002 (grub_cmd_load_env): Likewise.
40003 (grub_cmd_list_env): Likewise.
40004 (struct blocklist): New struct.
40005 (free_blocklists): New function.
40006 (check_blocklists): Likewise.
40007 (write_blocklists): Likewise.
40008 (grub_cmd_save_env): Complete rewrite.
40010 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40011 a plain text signature.
40012 (GRUB_ENVBLK_MAXLEN): Removed.
40013 (struct grub_envblk): Complete rewrite.
40014 (grub_envblk_find): Removed.
40015 (grub_envblk_insert): Likewise.
40016 (grub_envblk_open): New prototype.
40017 (grub_envblk_set): Likewise.
40018 (grub_envblk_delete): Put const to VALUE.
40019 (grub_envblk_iterate): Put const to NAME and VALUE.
40020 (grub_envblk_close): New prototype.
40021 (grub_envblk_buffer): New inline function.
40022 (grub_envblk_size): Likewise.
40024 * lib/envblk.c: Include grub/mm.h.
40025 (grub_env_find): Removed.
40026 (grub_envblk_open): New function.
40027 (grub_envblk_close): Likewise.
40028 (escaped_value_len): Likewise.
40029 (find_next_line): Likewise.
40030 (grub_envblk_insert): Removed.
40031 (grub_envblk_set): New function.
40032 (grub_envblk_delete): Complete rewrite.
40033 (grub_envblk_iterate): Likewise.
40035 2009-03-28 Robert Millan <rmh@aybabtu.com>
40037 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40038 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40039 variables. Use 16-bit loader.
40040 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40042 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40043 (grub_linux16_boot): ... this. Update all users.
40044 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40045 (grub_linux_boot): ... this. Update all users.
40047 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40048 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40049 commands to `linux16' and `initrd16'.
40050 (GRUB_MOD_FINI(linux)): Rename to ...
40051 (GRUB_MOD_FINI(linux16)): ... this.
40053 2009-03-24 Pavel Roskin <proski@gnu.org>
40055 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40056 not just for compilation.
40058 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40060 Move multiboot helper out of kernel
40062 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40063 `loader/i386/multiboot_helper.S'.
40064 * conf/i386-coreboot.rmk: Likewise
40065 * conf/i386-ieee1275.rmk: Likewise
40067 * kern/i386/loader.S: Move multiboot helpers from here...
40068 * loader/i386/multiboot_helper.S: ...moved here
40069 * include/grub/i386/loader.h: Move declarations of multiboot
40070 helpers from here...
40071 * include/grub/i386/multiboot.h: ...moved here
40072 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40074 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40076 * kern/env.c (grub_env_context_open): Added an argument to specify
40077 whether a new context inherits exported variables from current
40078 one. This is useful when making a sandbox to interpret a config
40080 All callers updated.
40082 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40084 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40086 * kern/env.c (grub_env_context_close): Fix memory leaks.
40088 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40090 * normal/main.c (grub_normal_execute): Added an argument
40091 BATCH to specify if an interactive interface should be provided
40092 after reading a config file.
40093 All callers updated.
40094 (read_command_list): Prevent being executed twice.
40095 (read_fs_list): Likewise.
40097 * include/grub/normal.h (grub_normal_execute): Updated the
40100 2009-03-22 Pavel Roskin <proski@gno.org>
40102 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40104 * kern/i386/pc/startup.S: Likewise.
40105 * kern/i386/efi/startup.S: Likewise.
40106 * kern/i386/ieee1275/startup.S: Likewise.
40107 * kern/i386/coreboot/startup.S: Likewise.
40108 * kern/x86_64/efi/startup.S: Likewise.
40110 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40111 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40112 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40114 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40116 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40118 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40120 Use vaddr of correct segment for entry_point.
40122 2009-03-21 Bean <bean123ch@gmail.com>
40124 * commands/blocklist.c: Add include file <grub/command.h>, remove
40125 <grub/normal.h> and <grub/arg.h>.
40126 (grub_cmd_blocklist): Use the new command interface.
40127 (GRUB_MOD_INIT): Likewise.
40128 (GRUB_MOD_FINI): Likewise.
40129 * commands/boot.c: Likewise.
40130 * commands/cat.c: Likewise.
40131 * commands/cmp.c: Likewise.
40132 * commands/configfile.c: Likewise.
40133 * commands/crc.c: Likewise.
40134 * commands/echo.c: Likewise.
40135 * commands/halt.c: Likewise.
40136 * commands/handler.c: Likewise.
40137 * commands/hdparm.c: Likewise.
40138 * commands/help.c: Likewise.
40139 * commands/hexdump.c: Likewise.
40140 * commands/loadenv.c: Likewise.
40141 * commands/ls.c: Likewise.
40142 * commands/lsmmap.c: Likewise.
40143 * commands/lspci.c: Likewise.
40144 * commands/loadenv.c: Likewise.
40145 * commands/read.c: Likewise.
40146 * commands/reboot.c: Likewise.
40147 * commands/search.c: Likewise.
40148 * commands/sleep.c: Likewise.
40149 * commands/test.c: Likewise.
40150 * commands/usbtest.c: Likewise.
40151 * commands/videotest.c: Likewise.
40152 * commands/i386/cpuid.c: Likewise.
40153 * commands/i386/pc/halt.c: Likewise.
40154 * commands/i386/pc/play.c: Likewise.
40155 * commands/i386/pc/pxecmd.c: Likewise.
40156 * commands/i386/pc/vbeinfo.c: Likewise.
40157 * commands/i386/pc/vbetest.c: Likewise.
40158 * commands/ieee1275/suspend.c: Likewise.
40159 * disk/loopback.c: Likewise.
40160 * font/font_cmd.c: Likewise.
40161 * hello/hello.c: Likewise.
40162 * loader/efi/appleloader.c: Likewise.
40163 * loader/efi/chainloader.c: Likewise.
40164 * loader/i386/bsd.c: Likewise.
40165 * loader/i386/efi/linux.c: Likewise.
40166 * loader/i386/ieee1275/linux.c: Likewise.
40167 * loader/i386/linux.c: Likewise.
40168 * loader/i386/pc/chainloader.c: Likewise.
40169 * loader/i386/pc/linux.c: Likewise.
40170 * loader/powerpc/ieee1275/linux.c: Likewise.
40171 * loader/multiboot_loader.c: Likewise.
40172 * term/gfxterm.c: Likewise.
40173 * term/i386/pc/serial.c: Likewise.
40174 * term/terminfo.c: Likewise.
40176 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40177 * term/i386/pc/vga.c: Likewise.
40178 * video/readers/jpeg.c: Likewise.
40179 * video/readers/png.c: Likewise.
40180 * video/readers/tga.c: Likewise.
40182 * util/grub-fstest (cmd_loopback): Removed.
40183 (cmd_blocklist): Likewise.
40184 (cmd_ls): Likewise.
40185 (grub_register_command): Likewise.
40186 (grub_unregister_command): Likewise.
40187 (execute_command): Use grub_command_find to locate command and execute
40190 * include/grub/efi/chainloader.h: Removed.
40191 * loader/efi/chainloader_normal.c: Likewise.
40192 * loader/i386/bsd_normal.c: Likewise.
40193 * loader/i386/pc/chainloader_normal.c: Likewise.
40194 * loader/i386/pc/multiboot_normal.c: Likewise.
40195 * loader/linux_normal.c: Likewise.
40196 * loader/multiboot_loader_normal.c: Likewise.
40197 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40199 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40200 and grub_register_command_p1.
40202 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40203 kern/command.c, lib/arg.c and commands/extcmd.c.
40204 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40205 (minicmd_mod_SOURCES): New variable.
40206 (minicmd_mod_CFLAGS): Likewise.
40207 (minicmd_mod_LDFLAGS): Likewise.
40208 (extcmd_mod_SOURCES): Likewise.
40209 (extcmd_mod_CFLAGS): Likewise.
40210 (extcmd_mod_LDFLAGS): Likewise.
40211 (boot_mod_SOURCES): Removed.
40212 (boot_mod_CFLAGS): Likewise.
40213 (boot_mod_LDFLAGS): Likewise.
40215 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40217 (kernel_img_HEADERS): Add command.h.
40218 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40219 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40221 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40222 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40223 remove the corresponding normal mode command.
40224 (normal_mod_SOURCES): Remove normal/arg.c.
40225 * conf/i386-coreboot.rmk: Likewise.
40226 * conf/i386-efi.rmk: Likewise.
40227 * conf/i386-ieee1275.rmk: Likewise.
40228 * conf/powerpc-ieee1275.rmk: Likewise.
40229 * conf/x86_64-efi.rmk: Likewise.
40231 * include/grub/arg.h: Move from here ...
40232 * include/grub/lib/arg.h: ... to here.
40234 * normal/arg.c: Move from here ...
40235 * lib/arg.c: ... to here.
40237 * commands/extcmd.c: New file.
40238 * commands/minicmd.c: Likewise.
40239 * include/grub/command.h: Likewise.
40240 * include/grub/extcmd.h: Likewise.
40241 * kern/command.c: Likewise.
40242 * kern/corecmd.c: Likewise.
40244 * kern/list.c (grub_list_iterate): Return int instead of void.
40245 (grub_list_insert): New function.
40246 (grub_prio_list_insert): Likewise.
40248 * kern/rescue.c (grub_rescue_command): Removed.
40249 (grub_rescue_command_list): Likewise.
40250 (grub_rescue_register_command): Likewise.
40251 (grub_rescue_unregister_command): Likewise.
40252 (grub_rescue_cmd_boot): Move to minicmd.c
40253 (grub_rescue_cmd_help): Likewise.
40254 (grub_rescue_cmd_info): Likewise.
40255 (grub_rescue_cmd_boot): Likewise.
40256 (grub_rescue_cmd_testload): Likewise.
40257 (grub_rescue_cmd_dump): Likewise.
40258 (grub_rescue_cmd_rmmod): Likewise.
40259 (grub_rescue_cmd_lsmod): Likewise.
40260 (grub_rescue_cmd_exit): Likewise.
40261 (grub_rescue_print_devices): Moved to corecmd.c.
40262 (grub_rescue_print_files): Likewise.
40263 (grub_rescue_cmd_ls): Likewise.
40264 (grub_rescue_cmd_insmod): Likewise.
40265 (grub_rescue_cmd_set): Likewise.
40266 (grub_rescue_cmd_unset): Likewise.
40267 (attempt_normal_mode): Use grub_command_find to get normal module.
40268 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40269 commands, remove grub_rescue_register_command calls.
40271 * normal/command.c (grub_register_command): Removed.
40272 (grub_unregister_command): Likewise.
40273 (grub_command_find): Likewise.
40274 (grub_iterate_commands): Likewise.
40275 (rescue_command): Likewise.
40276 (export_command): Moved to corecmd.c.
40277 (set_command): Removed.
40278 (unset_command): Likewise.
40279 (insmod_command): Likewise.
40280 (rmmod_command): Likewise.
40281 (lsmod_command): Likewise.
40282 (grub_command_init): Likewise.
40284 * normal/completion.c (iterate_command): Use cmd->prio to check for
40286 (complete_arguments): Use grub_extcmd_t structure to find options.
40287 (grub_normal_do_completion): Change function grub_iterate_commands to
40288 grub_command_iterate.
40290 * normal/execute.c (grub_script_execute_cmd): No need to parse
40293 * normal/main.c (grub_dyncmd_dispatcher): New function.
40294 (read_command_list): Register unload commands as dyncmd.
40295 (grub_cmd_normal): Use new command interface, register rescue,
40296 unregister normal at entry, register normal, unregister rescue at exit.
40298 * include/grub/list.h (grub_list_test_t): New type.
40299 (grub_list_iterate): Return int instead of void.
40300 (grub_list_insert): New function.
40301 (GRUB_AS_NAMED_LIST_P): New macro.
40302 (GRUB_AS_PRIO_LIST): Likewise.
40303 (GRUB_AS_PRIO_LIST_P): Likewise.
40304 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40305 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40306 (grub_prio_list): New structure.
40307 (grub_prio_list_insert): New function.
40308 (grub_prio_list_remove): New inline function.
40310 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40311 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40312 (GRUB_COMMAND_FLAG_MENU): Likewise.
40313 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40314 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40315 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40316 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40317 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40318 (grub_command): Likewise.
40319 (grub_register_command): Likewise.
40320 (grub_command_find): Likewise.
40321 (grub_iterate_commands): Likewise.
40322 (grub_command_init): Likewise.
40323 (grub_arg_parse): Likewise.
40324 (grub_arg_show_help): Likewise.
40326 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40327 (grub_rescue_unregister_command): Likewise.
40329 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40330 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40331 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40333 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40334 grub_rescue_cmd_initrd.
40335 * include/grub/i386/loader.h: Likewise.
40336 * include/grub/x86_64/loader.h: Likewise.
40338 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40340 2009-03-21 Bean <bean123ch@gmail.com>
40342 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40343 instead of stat in mingw environment.
40345 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40347 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40349 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40352 2009-03-21 Bean <bean123ch@gmail.com>
40354 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40355 out of range error.
40357 2009-03-18 Michel Dänzer <michel@daenzer.net>
40359 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40360 checking inode flags for EXT4_EXTENTS_FLAG.
40362 2009-03-18 Robert Millan <rmh@aybabtu.com>
40364 * loader/i386/linux.c: Include `<grub/video.h>' and
40365 `<grub/i386/pc/vbe.h>'..
40366 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40367 (grub_linux32_boot): Attempt to configure video settings with
40368 grub_linux_setup_video().
40369 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40370 to avoid grub_console_fini() which would step out of graphical mode
40373 2009-03-14 Robert Millan <rmh@aybabtu.com>
40375 Fix build on powerpc.
40376 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40378 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40380 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40381 background image command.
40383 2009-03-12 Colin D Bennett <colin@gibibit.com>
40385 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40386 (grub_gfxterm_putchar): Extract pairs of identical calls to
40387 draw_cursor out of conditional blocks.
40389 2009-03-11 Pavel Roskin <proski@gnu.org>
40391 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40392 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40394 2009-03-11 Robert Millan <rmh@aybabtu.com>
40396 * loader/i386/multiboot_elfxx.c
40397 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40399 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40401 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40404 2009-03-11 Robert Millan <rmh@aybabtu.com>
40406 * loader/i386/multiboot.c (code_size): New variable.
40407 (grub_multiboot): Define offsets by adding to `code_size' rather
40408 than subtracting from `grub_multiboot_payload_size'. Provide
40409 4-byte alignment to MBI and others by increasing
40410 `boot_loader_name_length' appropriately.
40412 * loader/i386/multiboot_elfxx.c
40413 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40415 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40417 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40420 2009-03-08 Robert Millan <rmh@aybabtu.com>
40422 Make loader/i386/linux.c usable on i386-pc again.
40424 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40426 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40429 2009-03-07 Bean <bean123ch@gmail.com>
40431 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40434 2009-03-06 Robert Millan <rmh@aybabtu.com>
40436 Fix display issue on terminals with screen size other than 80x25
40437 (e.g. gfxterm with resolution higher than 640x480).
40439 * normal/main.c (grub_normal_init_page): Display title text in a
40440 position relative to the center of the terminal instead of relying
40441 on a hardcoded offset.
40443 2009-03-04 Robert Millan <rmh@aybabtu.com>
40445 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40448 * Makefile.in (host_kernel): New variable.
40449 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40450 scripts instead of just the windows one.
40451 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40453 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40455 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40457 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40458 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40459 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40460 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40461 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40462 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40464 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40466 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40467 or if there's no space for the disk label and print the partition number on a
40470 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40472 * util/misc.c: Include <time.h>.
40473 (grub_millisleep): New function.
40475 2009-03-04 Bean <bean123ch@gmail.com>
40477 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40478 another option -mno-red-zone.
40480 * commands/handler.c: Change module description.
40482 * kern/handler.c: Add missing space at the end of description line.
40484 * kern/list.c: Likewise.
40486 2009-03-03 Robert Millan <rmh@aybabtu.com>
40488 Move more components to the relocation area, and fix mbi pointer
40489 handling to use the destination rather than the origin (thanks to
40490 Vladimir Serbinenko for spotting).
40492 * loader/i386/multiboot.c (mbi_dest): New variable.
40493 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40494 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40497 2009-03-01 Bean <bean123ch@gmail.com>
40499 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40500 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40501 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40502 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40504 * loader/i386/efi/linux.c (acpi_guid): New variable.
40505 (acpi_guid): Likewise.
40506 (EBDA_SEG_ADDR): New constant.
40507 (LOW_MEM_ADDR): Likewise.
40508 (FAKE_EBDA_SEG): Likewise.
40509 (fake_bios_data): New function.
40510 (grub_linux_boot): Call fake_bios_data.
40512 2009-03-01 Bean <bean123ch@gmail.com>
40514 * commands/terminal.c: Removed.
40516 * commands/handler.c: New file.
40518 * include/grub/list.h: Likewise.
40520 * include/grub/handler.h: Likewise.
40522 * kern/list.c: Likewise.
40524 * kern/handler.c: Likewise.
40526 * kern/term.h: Include header file <grub/handler.h>.
40527 (grub_term_input): Move next field to the beginning.
40528 (grub_term_output): Likewise.
40529 (grub_term_input_class): New variable.
40530 (grub_term_output_class): Likewise.
40531 (grub_term_register_input): Changed to inline function.
40532 (grub_term_register_output): Likewise.
40533 (grub_term_unregister_input): Likewise.
40534 (grub_term_unregister_output): Likewise.
40535 (grub_term_set_current_input): Likewise.
40536 (grub_term_set_current_output): Likewise.
40537 (grub_term_get_current_input): Likewise.
40538 (grub_term_get_current_output): Likewise.
40539 (grub_term_iterate_input): Removed.
40540 (grub_term_iterate_output): Likewise.
40542 * kern/term.c (grub_term_list_input): Removed.
40543 (grub_term_list_output): Likewise.
40544 (grub_term_input_class): New variable.
40545 (grub_term_output_class): Likewise.
40546 (grub_cur_term_input): Change variable as macro.
40547 (grub_cur_term_output): Likewise.
40548 (grub_term_register_input): Removed.
40549 (grub_term_register_output): Likewise.
40550 (grub_term_unregister_input): Likewise.
40551 (grub_term_unregister_output): Likewise.
40552 (grub_term_set_current_input): Likewise.
40553 (grub_term_set_current_output): Likewise.
40554 (grub_term_iterate_input): Likewise.
40555 (grub_term_iterate_output): Likewise.
40556 (grub_term_get_current_input): Likewise.
40557 (grub_term_get_current_output): Likewise.
40559 * util/grub-editenv.c: Include header file <grub/handler.h>.
40560 (grub_term_get_current_input): Removed.
40561 (grub_term_get_current_output): Likewise.
40562 (grub_term_input_class): New variable.
40563 (grub_term_output_class): Likewise.
40565 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40566 (grub_term_get_current_output): Likewise.
40567 (grub_term_input_class): New variable.
40568 (grub_term_output_class): Likewise.
40570 * util/grub-probe.c (grub_term_get_current_input): Removed.
40571 (grub_term_get_current_output): Likewise.
40572 (grub_term_input_class): New variable.
40573 (grub_term_output_class): Likewise.
40575 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40576 (grub_term_get_current_output): Likewise.
40577 (grub_term_input_class): New variable.
40578 (grub_term_output_class): Likewise.
40580 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40581 (terminal_mod_SOURCES): Likewise.
40582 (terminal_mod_CFLAGS): Likewise.
40583 (terminal_mod_LDFLAGS): Likewise.
40585 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40587 (kernel_img_SOURCES): Add list.c and handler.c.
40588 (kernel_img_HEADERS): Add list.h and handler.h.
40590 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40592 (kernel_mod_SOURCES): Add list.c and handler.c.
40593 (kernel_mod_HEADERS): Add list.h and handler.h.
40595 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40597 (kernel_elf_SOURCES): Add list.c and handler.c.
40598 (kernel_elf_HEADERS): Add list.h and handler.h.
40600 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40602 (kernel_elf_SOURCES): Add list.c and handler.c.
40603 (kernel_elf_HEADERS): Add list.h and handler.h.
40605 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40607 (kernel_mod_SOURCES): Add list.c and handler.c.
40608 (kernel_mod_HEADERS): Add list.h and handler.h.
40610 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40612 (kernel_elf_SOURCES): Add list.c and handler.c.
40613 (kernel_elf_HEADERS): Add list.h and handler.h.
40615 2009-02-27 Robert Millan <rmh@aybabtu.com>
40617 Factorize elf32 / elf64 code in Multiboot loader. This will
40618 prevent it from getting out of sync again.
40620 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40621 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40622 grub_multiboot_load_elf64): Move from here ...
40623 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40624 grub_multiboot_load_elf): ... to here (new file).
40626 2009-02-27 Robert Millan <rmh@aybabtu.com>
40628 * util/grub.d/10_linux.in: Rename "single-user mode" to
40631 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40633 Don't leak in SCSI code.
40634 * disk/scsi.c (grub_scsi_close): free `scsi'.
40636 2009-02-27 Robert Millan <rmh@aybabtu.com>
40638 * loader/i386/pc/multiboot.c: Move from here ...
40639 * loader/i386/multiboot.c: ... to here. Update all users.
40641 2009-02-27 Robert Millan <rmh@aybabtu.com>
40643 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40644 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40646 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40648 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40651 2009-02-27 Robert Millan <rmh@aybabtu.com>
40653 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40654 `0x' qualifier as 0 when base is specified as parameter).
40656 2009-02-24 Bean <bean123ch@gmail.com>
40658 * configure.ac: Check for -mcmodel=large in x86_64 target.
40660 * include/grub/efi/api.h (efi_call_10): New macro.
40661 (efi_wrap_10): New function.
40663 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40664 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40665 (GRUB_PE32_REL_BASED_LOW): Likewise.
40666 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40667 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40668 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40669 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40670 (GRUB_PE32_REL_BASED_REL): Likewise.
40671 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40672 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40673 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40675 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40678 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40679 (efi_wrap_10): New function.
40681 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40683 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40684 MB/MBP model (NV chipset).
40685 (devdata_devs): Add devpath_5 to the list.
40687 * load/i386/efi/linux.c (video_base): Remove variable.
40688 (RGB_MASK): New macro.
40689 (RGB_MAGIC): Likewise.
40690 (LINE_MIN): Likewise.
40691 (LINE_MAX): Likewise.
40692 (FBTEST_STEP): Likewise.
40693 (FBTEST_COUNT): Likewise.
40694 (fb_list): New variable.
40695 (grub_find_video_card): Remove function.
40696 (find_framebuf): New function.
40697 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40700 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40701 problem for x86_64.
40703 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40705 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40707 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40710 2009-02-22 Robert Millan <rmh@aybabtu.com>
40712 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40713 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40714 in our relocation, instead of using it directly from heap. Also
40715 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40717 2009-02-21 Robert Millan <rmh@aybabtu.com>
40719 Implement USB keyboard support (based on patch by Marco Gerards)
40721 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40722 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40723 (usb_keyboard_mod_LDFLAGS): New variables.
40725 * term/usb_keyboard.c: New file.
40727 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40729 Corrected wrong declaration
40731 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40733 2009-02-14 Christian Franke <franke@computer.org>
40735 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40736 (grub_lspci_iter): Print class code and programming interface byte.
40738 2009-02-14 Christian Franke <franke@computer.org>
40740 * gendistlist.sh: Ignore `.svn' directories.
40742 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40744 * fs/fat.c: Add 2009 to Copyright line.
40746 2009-02-14 Christian Franke <franke@computer.org>
40748 * commands/hdparm.c: New file. Provides `hdparm' command
40749 which sends ATA commands via grub_disk_ata_pass_through ().
40751 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40753 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40754 and <grub/cpu/io.h> to include/grub/ata.h.
40755 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40756 (GRUB_CDROM_SECTOR_SIZE): Remove.
40757 (GRUB_ATA_*): Move to include/grub/ata.h.
40758 (GRUB_ATAPI_*): Likewise.
40759 (enum grub_ata_commands): Likewise.
40760 (enum grub_ata_timeout_milliseconds): Likewise.
40761 (struct grub_ata_device): Likewise.
40762 (grub_ata_regset): Likewise.
40763 (grub_ata_regget): Likewise.
40764 (grub_ata_regset2): Likewise.
40765 (grub_ata_regget2): Likewise.
40766 (grub_ata_check_ready): Likewise.
40767 (grub_ata_wait_not_busy): Remove static, exported in
40768 include/grub/ata.h.
40769 (grub_ata_wait_drq): Likewise.
40770 (grub_ata_pio_read): Likewise.
40772 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40773 function for hdparm.mod.
40775 * include/grub/ata.h: New file, contains declarations from
40777 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40779 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40780 (grub_disk_ata_pass_through): New exported variable.
40782 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40784 2009-02-13 Colin D Bennett <colin@gibibit.com>
40786 Support multiple fallback entries, and provide an API to support
40787 executing default+fallback menu entries. Renamed the `terminal' menu
40790 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40791 variable declaration.
40792 (grub_menu_execute_callback): New structure declaration.
40793 (grub_menu_execute_callback_t): New typedef.
40794 (grub_menu_execute_with_fallback): New function declaration.
40795 (grub_menu_get_entry): Likewise.
40796 (grub_menu_get_timeout): Likewise.
40797 (grub_menu_set_timeout): Likewise.
40799 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40801 * normal/menu.c (grub_wait_after_message): Moved to
40802 `normal/menu_text.c'.
40803 (draw_border): Likewise.
40804 (print_message): Likewise.
40805 (print_entry): Likewise.
40806 (print_entries): Likewise.
40807 (grub_menu_init_page): Likewise.
40808 (get_entry_number): Likewise.
40809 (print_timeout): Likewise.
40810 (run_menu): Likewise.
40811 (grub_menu_execute_entry): Likewise.
40812 (show_text_menu): Likewise.
40813 (get_and_remove_first_entry_number): New function.
40814 (grub_menu_execute_with_fallback): Likewise.
40815 (get_entry): Renamed to ...
40816 (grub_menu_get_entry): .. this and made it global.
40817 (get_timeout): Renamed to ...
40818 (grub_menu_get_timeout): ... this and made it global.
40819 (set_timeout): Renamed to ...
40820 (grub_menu_set_timeout): ... this and made it global.
40821 (grub_normal_terminal_menu_viewer): Renamed to ...
40822 (grub_normal_text_menu_viewer): ... this.
40824 * normal/menu_text.c: New file. Extracted text-menu-specific code
40825 from normal/menu.c.
40827 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40828 (normal_mod_SOURCES): Likewise.
40830 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40831 (normal_mod_SOURCES): Likewise.
40833 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40834 (normal_mod_SOURCES): Likewise.
40836 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40837 (normal_mod_SOURCES): Likewise.
40839 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40840 (normal_mod_SOURCES): Likewise.
40842 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40843 (normal_mod_SOURCES): Likewise.
40845 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40846 (normal_mod_SOURCES): Likewise.
40848 2009-02-11 Robert Millan <rmh@aybabtu.com>
40850 * util/grub.d/00_header.in: Update old reference to `font' command.
40852 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
40854 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40856 Based on patch from Javier Martín.
40858 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40860 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
40861 to avoid false positives with FAT.
40862 (grub_fstest_SOURCES): Likewise.
40863 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40864 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40865 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40866 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40867 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40868 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40870 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40872 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
40873 bpb.version_specific.fat12_or_fat16.fstype and
40874 bpb.version_specific.fat32.fstype.
40876 2009-02-08 Robert Millan <rmh@aybabtu.com>
40878 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
40880 2009-02-08 Robert Millan <rmh@aybabtu.com>
40882 * Makefile.in (host_os, host_cpu): New variables.
40883 (target_os): Remove. Update all users.
40885 2009-02-08 Marco Gerards <marco@gnu.org>
40887 * Makefile.in (enable_grub_emu_usb): New variable.
40888 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
40889 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
40890 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
40891 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
40892 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
40893 `usbtest.mod' and `usbms.mod'.
40894 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
40895 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
40896 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
40897 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
40898 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
40901 * disk/usbms.c: New file.
40903 * include/grub/usb.h: Likewise.
40905 * include/grub/usbtrans.h: Likewise.
40907 * include/grub/usbdesc.h: Likewise.
40909 * bus/usb/usbtrans.c: Likewise.
40911 * bus/usb/ohci.c: Likewise.
40913 * bus/usb/uhci.c: Likewise.
40915 * bus/usb/usbhub.c: Likewise.
40917 * bus/usb/usb.c: Likewise.
40919 * commands/usbtest.c: Likewise.
40921 * util/usb.c: Likewise.
40923 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
40925 * configure.ac: Test for libusb presence.
40927 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
40929 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
40931 * kern/mm.c: Add more comments.
40933 2009-02-08 Robert Millan <rmh@aybabtu.com>
40935 Patch from Javier Martín.
40936 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
40937 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
40939 2009-02-08 Robert Millan <rmh@aybabtu.com>
40941 * fs/cpio.c: Split tar functionality to ...
40942 * fs/tar.c: ... here (new file). Update all users.
40944 2009-02-07 Robert Millan <rmh@aybabtu.com>
40946 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
40947 backward-incompatible features.
40949 Based on patch from Javier Martín, with some adjustments.
40951 2009-02-07 Michael Scherer <misc@mandriva.org>
40953 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
40955 2009-02-07 Robert Millan <rmh@aybabtu.com>
40957 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
40958 position of `disk/lvm.c' to ensure grub_init_all() always picks it
40959 after the RAID stuff.
40961 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
40963 Fixes problem when running vbetest command as reported by
40964 Vladimir Serbinenko <phcoder@gmail.com>.
40966 * (grub_vbe_set_video_mode): Fixed problem with text modes.
40968 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
40970 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
40971 /dev/md/NpN style mdraid devices.
40973 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40975 * util/unifont2pff.rb: Remove.
40977 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40979 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
40982 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40984 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
40985 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40986 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40987 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40988 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40989 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40990 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40992 2009-02-02 Christian Franke <franke@computer.org>
40994 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
40996 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
40998 * INSTALL: Note that we now require at least autoconf 2.59 and
40999 that LZO is optional.
41001 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41003 Base on patch on bug #24154 created by Tomas Tintera
41004 <trosos@seznam.cz>.
41006 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41008 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41010 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41011 <bero@arklinux.org>.
41013 * normal/parser.y (script_init): Add missing semicolon.
41015 2009-01-31 Colin D Bennett <colin@gibibit.com>
41017 * normal/main.c: Add include to grub/menu_viewer.h.
41018 (free_menu_entry_classes): Added.
41019 (grub_normal_menu_addentry): Added class property handling.
41020 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41021 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41023 * normal/menu_viewer.c: New file.
41025 * normal/menu.c (run_menu_entry): Renamed to ...
41026 (grub_menu_execute_entry): ... this and made it as global.
41027 (grub_menu_run): Renamed to ...
41028 (show_text_menu): ... this and made it local.
41029 (show_text_menu): Adapt to new function names.
41030 (grub_normal_terminal_menu_viewer): New global variable.
41032 * include/grub/menu.h: New file.
41034 * include/grub/menu_viewer.h: New file.
41036 * include/grub/normal.h: Added include to grub/menu.h.
41037 (grub_menu_entry): Moved to include/grub/menu.h.
41038 (grub_menu_entry_t): Likewise.
41039 (grub_menu): Likewise.
41040 (grub_menu_t): Likewise.
41041 (grub_normal_terminal_menu_viewer): Added.
41042 (grub_menu_execute_entry): Likewise.
41043 (grub_menu_run): Removed.
41045 * DISTLIST: Added include/grub/menu.h.
41046 Added include/grub/menu_viewer.h.
41047 Added normal/menu_viewer.c.
41049 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41051 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41052 arglist for menutitle arguments.
41054 * normal/main.c (grub_normal_menu_addentry): Likewise.
41056 * normal/parser.y (menuentry): Likewise.
41058 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41060 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41061 (grub_script_create_cmdmenu): Likewise.
41063 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41065 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41068 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41070 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41072 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41074 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41076 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41078 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41080 2009-01-30 Christian Franke <franke@computer.org>
41082 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41083 in option help text.
41085 2009-01-27 Pavel Roskin <proski@gnu.org>
41087 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41089 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41091 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41093 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41095 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41096 unregister function.
41098 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41100 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41102 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41104 * util/grub-mkfont.c (usage): Fix typo.
41106 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41108 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41110 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41112 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41114 * kern/misc.c (grub_strcasecmp): New function.
41115 (grub_strcasecmp): Use grub_size_t instead of int for length.
41117 * include/grub/misc.h: Update function prototypes.
41119 2009-01-26 Robert Millan <rmh@aybabtu.com>
41121 * configure.ac: Fix cross-compilation check.
41123 2009-01-22 Christian Franke <franke@computer.org>
41125 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41126 (precision) digit string. Allow `.format2' without `format1' (width).
41127 Limit input chars for `%s' output to `format2' if specified. This is
41128 compatible with standard printf ().
41130 2009-01-22 Christian Franke <franke@computer.org>
41132 * disk/ata.c (grub_ata_wait_status): Replace by ...
41133 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41134 other status bits may be invalid while BSY is asserted.
41135 (grub_ata_check_ready): New function.
41136 (grub_ata_cmd): Removed.
41137 (grub_ata_wait_drq): New function.
41138 (grub_ata_strncpy): Remove inline.
41139 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41140 and error check now done by grub_ata_wait_drq ().
41141 (grub_ata_pio_write): Likewise.
41142 (grub_atapi_identify): Set DEV before check for !BSY. Use
41143 grub_ata_wait_drq () to wait for data.
41144 (grub_ata_device_initialize): Add status register check to
41145 detect missing SATA slave devices. Add debug messages.
41146 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41147 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41148 transfer loop by grub_ata_pio_write ().
41149 (grub_ata_identify): Set DEV before check for !BSY. Use
41150 grub_ata_wait_drq () to wait for data.
41151 (grub_ata_setaddress): Set DEV before check for !BSY.
41152 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41153 read/write in one loop. Fix invalid command on write. Fix incomplete
41154 command on (size % batch) == 0. Add missing error check after write of
41155 last block. Add debug messages.
41156 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41158 2009-01-19 Christian Franke <franke@computer.org>
41160 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41161 (GRUB_ATAPI_IREASON_*): Likewise.
41162 (grub_ata_pio_write): Fix timeout error return.
41163 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41164 (grub_atapi_wait_drq): New function.
41165 (grub_atapi_packet): New parameter `size'.
41166 Use grub_atapi_wait_drq () and direct write instead of
41167 grub_ata_pio_write ().
41168 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41169 reads the number of bytes requested by the device for each DRQ
41171 (grub_atapi_write): Remove old implementation, return not
41172 implemented instead.
41174 2009-01-19 Christian Franke <franke@computer.org>
41176 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41177 of 512 to calculate data size.
41178 (grub_scsi_read12): Likewise.
41179 (grub_scsi_write10): Likewise.
41180 (grub_scsi_write12): Likewise.
41181 (grub_scsi_read): Adjust size according to blocksize.
41182 Add checks for invalid blocksize and unaligned transfer.
41184 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41186 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41188 * term/gfxterm.c (write_char): Fix background rendering for wide
41191 2009-01-19 Robert Millan <rmh@aybabtu.com>
41193 * config.guess: Update to latest version from config git.
41194 * config.sub: Likewise.
41196 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41198 * Makefile.in: Change font compilation to use new grub-mkfont instead
41201 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41202 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41203 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41204 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41205 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41206 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41207 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41208 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41209 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41211 2009-01-16 Christian Franke <franke@computer.org>
41213 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41214 (enum grub_ata_timeout_milliseconds): New enum.
41215 (grub_ata_wait_status): Add parameter milliseconds.
41216 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41217 recovery from timed-out commands.
41218 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41219 return grub_errno instead of REG_ERROR.
41220 (grub_ata_pio_write): Add parameter milliseconds.
41221 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41222 Pass milliseconds to grub_ata_wait_status () and
41223 grub_ata_pio_read ().
41224 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41225 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41226 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41227 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41228 It is not suitable for device detection, because DEV bit is ignored,
41229 the command may run too long, and not all devices set the signature
41231 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41232 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41233 Fix device selection, DEV bit must be set first to address the registers
41234 of the correct device.
41235 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41236 grub_ata_pio_read/write ().
41237 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41238 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41240 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41242 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41244 2009-01-13 Bean <bean123ch@gmail.com>
41246 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41248 2009-01-13 Bean <bean123ch@gmail.com>
41250 * Makefile.in: (enable_grub_mkfont): New variable.
41251 (freetype_cflags): Likewise.
41252 (freetype_libs): Likewise.
41254 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41255 (grub_mkfont_SOURCES): New variable.
41256 (grub_mkfont_CFLAGS): Likewise.
41257 (grub_mkfont_LDFLAGS): Likewise.
41259 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41260 library if `--enable-grub-mkfont' is requested.
41261 (enable_grub_mkfont): New variable.
41262 (freetype_cflags): Likewise.
41263 (freetype_libs): Likewise.
41265 * util/grub-mkfont.c: New file.
41267 2009-01-12 Christian Franke <franke@computer.org>
41269 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41270 mode check. Fix setting of compat_use[].
41272 2009-01-10 Robert Millan <rmh@aybabtu.com>
41274 Update a few copyright years which we forgot to do in 2008 (only for
41275 files whose changes made in 2008 were copyright-significant)
41277 * Makefile.in: Add 2008 to Copyright line.
41278 * disk/ieee1275/ofdisk.c: Likewise.
41279 * disk/efi/efidisk.c: Likewise.
41280 * kern/dl.c: Likewise.
41281 * kern/sparc64/ieee1275/init.c: Likewise.
41282 * kern/mm.c: Likewise.
41283 * kern/efi/mm.c: Likewise.
41284 * boot/i386/pc/boot.S: Likewise.
41285 * genfslist.sh: Likewise.
41286 * fs/iso9660.c: Likewise.
41287 * fs/hfs.c: Likewise.
41288 * fs/jfs.c: Likewise.
41289 * fs/minix.c: Likewise.
41290 * fs/ufs.c: Likewise.
41291 * gensymlist.sh.in: Likewise.
41292 * genkernsyms.sh.in: Likewise.
41293 * include/grub/misc.h: Likewise.
41294 * include/grub/types.h: Likewise.
41295 * include/grub/symbol.h: Likewise.
41296 * include/grub/elf.h: Likewise.
41297 * include/grub/kernel.h: Likewise.
41298 * include/grub/disk.h: Likewise.
41299 * include/grub/dl.h: Likewise.
41300 * include/grub/i386/linux.h: Likewise.
41301 * include/grub/i386/pc/biosdisk.h: Likewise.
41302 * include/grub/efi/api.h: Likewise.
41303 * include/grub/efi/pe32.h: Likewise.
41304 * include/grub/util/misc.h: Likewise.
41305 * normal/execute.c: Likewise.
41306 * normal/arg.c: Likewise.
41307 * normal/completion.c: Likewise.
41308 * normal/lexer.c: Likewise.
41309 * normal/parser.y: Likewise.
41310 * normal/misc.c: Likewise.
41311 * commands/i386/pc/vbeinfo.c: Likewise.
41312 * commands/hexdump.c: Likewise.
41313 * commands/terminal.c: Likewise.
41314 * commands/ls.c: Likewise.
41315 * commands/help.c: Likewise.
41316 * partmap/pc.c: Likewise.
41317 * loader/efi/chainloader.c: Likewise.
41318 * loader/multiboot_loader.c: Likewise.
41319 * loader/i386/pc/multiboot2.c: Likewise.
41320 * term/efi/console.c: Likewise.
41321 * term/i386/pc/serial.c: Likewise.
41322 * util/lvm.c: Likewise.
41323 * util/console.c: Likewise.
41324 * util/i386/efi/grub-mkimage.c: Likewise.
41325 * util/raid.c: Likewise.
41327 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41329 * commands/videotest.c: Removed include to grub/machine/memory.h.
41331 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41332 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41333 (video_mod_SOURCES): Removed.
41334 (video_mod_CFLAGS): Likewise.
41335 (video_mod_LDFLAGS): Likewise.
41336 (gfxterm_mod_SOURCES): Likewise.
41337 (gfxterm_mod_CFLAGS): Likewise.
41338 (gfxterm_mod_LDFLAGS): Likewise.
41339 (videotest_mod_SOURCES): Likewise.
41340 (videotest_mod_CFLAGS): Likewise.
41341 (videotest_mod_LDFLAGS): Likewise.
41342 (bitmap_mod_SOURCES): Likewise.
41343 (bitmap_mod_CFLAGS): Likewise.
41344 (bitmap_mod_LDFLAGS): Likewise.
41345 (tga_mod_SOURCES): Likewise.
41346 (tga_mod_CFLAGS): Likewise.
41347 (tga_mod_LDFLAGS): Likewise.
41348 (jpeg_mod_SOURCES): Likewise.
41349 (jpeg_mod_CFLAGS): Likewise.
41350 (jpeg_mod_LDFLAGS): Likewise.
41351 (png_mod_SOURCES): Likewise.
41352 (png_mod_CFLAGS): Likewise.
41353 (png_mod_LDFLAGS): Likewise.
41355 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41356 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41357 (video_mod_SOURCES): Added.
41358 (video_mod_CFLAGS): Likewise.
41359 (video_mod_LDFLAGS): Likewise.
41360 (videotest_mod_SOURCES): Likewise.
41361 (videotest_mod_CFLAGS): Likewise.
41362 (videotest_mod_LDFLAGS): Likewise.
41363 (bitmap_mod_SOURCES): Likewise.
41364 (bitmap_mod_CFLAGS): Likewise.
41365 (bitmap_mod_LDFLAGS): Likewise.
41366 (tga_mod_SOURCES): Likewise.
41367 (tga_mod_CFLAGS): Likewise.
41368 (tga_mod_LDFLAGS): Likewise.
41369 (jpeg_mod_SOURCES): Likewise.
41370 (jpeg_mod_CFLAGS): Likewise.
41371 (jpeg_mod_LDFLAGS): Likewise.
41372 (png_mod_SOURCES): Likewise.
41373 (png_mod_CFLAGS): Likewise.
41374 (png_mod_LDFLAGS): Likewise.
41375 (gfxterm_mod_SOURCES): Likewise.
41376 (gfxterm_mod_CFLAGS): Likewise.
41377 (gfxterm_mod_LDFLAGS): Likewise.
41379 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41380 grub/machine/console.h.
41382 2009-01-04 Jerone Young <jerone@gmail.com>
41384 Make on screen instructions clearer
41386 Based on patch created by Jidanni <jidanni@jidanni.org>
41388 * normal/menu.c: print clearer instructions on the screen
41390 2009-01-02 Colin D Bennett <colin@gibibit.com>
41394 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41395 build system and fixed gfxterm.c to work with different sized fonts.
41397 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41399 * configure: Re-generated.
41401 * DISTLIST: Removed font/manager.c.
41403 Added font/font_cmd.c.
41405 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41408 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41410 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41412 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41414 * normal/menu.c: Likewise.
41416 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41417 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41419 * include/grub/font.h: Replaced with new file.
41421 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41422 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41423 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41424 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41425 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41426 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41427 fg_red, fg_green, fg_blue, fg_alpha.
41428 (grub_video_adapter): Removed blit_glyph.
41429 (grub_video_blit_glyph): Removed.
41431 * font/manager.c: Removed file.
41433 * font/font.c: New file.
41435 * font/font_cmd.c: Likewise.
41437 * video/video.c (grub_video_blit_glyph): Removed.
41439 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41440 (grub_video_vbe_map_rgba): Likewise.
41441 (grub_video_vbe_unmap_color_int): Likewise.
41442 (grub_video_vbe_blit_glyph): Removed.
41443 (grub_video_vbe_adapter): Removed blit_glyph.
41445 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41446 (get_pixel): Likewise.
41447 (set_pixel): Likewise.
41449 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41451 * term/gfxterm.c: Adapted to new font engine.
41453 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41455 * term/i386/pc/vga.c: Likewise.
41457 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41459 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41461 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41463 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41465 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41467 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41469 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41471 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41473 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41475 * util/grub.d/00_header.in: Changed to use new loadfont command.
41477 * util/grub-mkconfig_lib.in: Changed font extension.
41479 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41481 * util/getroot.c (grub_util_get_grub_dev): Add support for
41482 /dev/md/dNNpNN style partitionable mdraid devices.
41484 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41486 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41487 at a time limit of the PXE TFTP API correctly.
41488 (grub_pxefs_close): Likewise.
41490 2008-11-29 Robert Millan <rmh@aybabtu.com>
41492 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41493 grub_ata_device_initialize() calls.
41495 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41497 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41499 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41501 2008-11-28 Robert Millan <rmh@aybabtu.com>
41503 Fix build on powerpc-ieee1275. Based on patch created by
41504 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41505 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41506 `kern/ieee1275/mmap.c'.
41507 * include/grub/powerpc/ieee1275/memory.h: New file.
41509 Provide grub-install on coreboot.
41510 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41511 (grub_install_SOURCES): New variable.
41512 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41513 usable on coreboot.
41515 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41517 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41518 to `grub_term_input_t'.
41519 (grub_term_get_current_output): Change return type to
41520 `grub_term_output_t'.
41522 2008-11-22 Robert Millan <rmh@aybabtu.com>
41524 Fix breakage on coreboot due to declaration mismatch.
41525 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41526 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41527 grub_vga_text_cls().
41529 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41530 comments. Avoid copying one more byte than necessary (just in case).
41532 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41533 to 0x200000 (avoids trouble with some OFW implementations, and matches
41534 with the one in Yaboot).
41535 Reported by Manoel Abranches
41537 2008-11-20 Robert Millan <rmh@aybabtu.com>
41539 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41540 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41542 * util/grub-mkconfig_lib.in (grub_warn): New function.
41543 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41544 warnings, to obtain consistent formatting.
41545 * util/grub.d/00_header.in: Likewise.
41546 * util/update-grub_lib.in: Likewise.
41548 * loader/i386/linux.c (allocate_pages): Fix a warning.
41549 Move comment text to `#error' stanza.
41551 Harmonize ieee1275's grub_available_iterate() with the generic
41552 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41553 build problem on i386-ieee1275):
41554 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41555 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41556 parameter `type'. Update all users of this function.
41557 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41558 `kern/ieee1275/mmap.c'.
41559 * kern/ieee1275/init.c
41560 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41562 (grub_machine_mmap_iterate): ... this.
41563 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41564 return type to `grub_err_t'. Update all implementations of this
41565 function prototype.
41566 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41569 Add `lsmmap' command (lists firmware-provided memory map):
41570 * commands/lsmmap.c: New file.
41571 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41572 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41574 * conf/powerpc-ieee1275.rmk: Likewise.
41575 * conf/i386-coreboot.rmk: Likewise.
41576 * conf/i386-ieee1275.rmk: Likewise.
41578 2008-11-19 Robert Millan <rmh@aybabtu.com>
41580 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41581 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41582 constraints to initrd allocation (based on code from
41583 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41584 for Linux to find it.
41586 2008-11-14 Robert Millan <rmh@aybabtu.com>
41588 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41589 order to cope with duplicate slashes.
41591 2008-11-14 Robert Millan <rmh@aybabtu.com>
41593 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41594 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41595 don't want to mess with lower memory, because it is used in the Linux
41598 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41599 an appropriate place in lower memory, between 0x10000 and 0x90000,
41600 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41601 is in our heap (probably as a result of it being corrupted during
41602 decompression). Add #error instance with comment to explain why this
41603 loader isn't currently usable on PC/BIOS.
41605 2008-11-14 Robert Millan <rmh@aybabtu.com>
41607 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41608 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41610 2008-11-12 Robert Millan <rmh@aybabtu.com>
41612 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41614 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41615 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41617 * include/grub/i386/pc/memory.h: ... to here.
41619 2008-11-12 Robert Millan <rmh@aybabtu.com>
41621 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41624 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41625 (grub_console_cur_color, grub_console_real_putchar)
41626 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41627 (grub_console_setcolorstate, grub_console_setcolor)
41628 (grub_console_getcolor): Move from here ...
41629 * include/grub/i386/vga_common.h: ... to here (new file).
41631 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41632 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41633 `<grub/i386/io.h>'.
41634 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41635 `<grub/i386/vga_common.h>'.
41637 2008-11-12 Robert Millan <rmh@aybabtu.com>
41639 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41640 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41641 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41643 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41644 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41646 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41647 grub_console_init() with call to grub_vga_text_init().
41648 (grub_machine_fini): Replace call to
41649 grub_console_fini() with call to grub_vga_text_fini() and
41650 grub_at_keyboard_fini().
41652 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41653 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41654 (grub_console_setcolorstate, grub_console_setcolor)
41655 (grub_console_getcolor): New function prototypes.
41657 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41658 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41659 (grub_vga_text_setcursor): Static-ize.
41660 (grub_vga_text_term): New structure.
41661 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41663 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41664 (grub_console_cur_color, grub_console_standard_color)
41665 (grub_console_normal_color, grub_console_highlight_color)
41666 (map_char, grub_console_putchar, grub_console_getcharwidth)
41667 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41668 (grub_console_getcolor): Move from here ...
41669 * term/i386/vga_common.c: ... to here (same function names).
41671 2008-11-12 Robert Millan <rmh@aybabtu.com>
41673 Use newly-added Multiboot support in coreboot.
41675 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41676 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41678 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41679 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41680 (codestart): Store the MBI in `startup_multiboot_info' when we're
41681 being loaded using Multiboot.
41683 * kern/i386/coreboot/init.c (grub_machine_init): Move
41684 grub_at_keyboard_init() call to beginning of function (useful for
41685 debugging). Call grub_machine_mmap_init() before attempting to use
41686 grub_machine_mmap_iterate().
41687 (grub_lower_mem, grub_upper_mem): Move from here ...
41688 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41691 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41692 function prototype.
41694 2008-11-12 Robert Millan <rmh@aybabtu.com>
41696 Fix a regression introduced by the at_keyboard.mod split. Because
41697 some terminals are default on some platforms and non-default on
41698 others, the first terminal being registered determines which is
41699 going to be default.
41701 * kern/term.c (grub_term_register_input): If this is the first
41702 terminal being registered, set it as the current one.
41703 (grub_term_register_output): Likewise.
41705 * term/efi/console.c (grub_console_init): Do not call
41706 grub_term_set_current_output() or grub_term_set_current_input().
41707 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41708 * term/i386/pc/console.c (grub_console_init): Likewise.
41709 (grub_console_fini): Do not call grub_term_set_current_input()
41710 (but leave grub_term_set_current_output() to restore text mode).
41712 2008-11-10 Robert Millan <rmh@aybabtu.com>
41714 * util/grub.d/00_header.in: Add backward compatibility check for
41715 versions of terminal.mod that don't understand `terminal_input' or
41718 2008-11-09 Robert Millan <rmh@aybabtu.com>
41720 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41721 `terminal_input' / `terminal_output', not `terminal'.
41723 2008-11-08 Robert Millan <rmh@aybabtu.com>
41725 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41726 (DISTCLEANFILES): Add `build_env.mk'.
41728 2008-11-08 Robert Millan <rmh@aybabtu.com>
41730 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41731 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41732 members. Update all users.
41733 * util/console.c (grub_ncurses_term): Split in ...
41734 (grub_ncurses_term_input): ... this, and ...
41735 (grub_ncurses_term_output): ... this. Update all users.
41736 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41738 2008-11-08 Robert Millan <rmh@aybabtu.com>
41740 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41741 (PKGDATA): Add $(pkgdata_SRCDIR).
41742 (pkglib_BUILDDIR): New variable.
41743 (pkgdata_SRCDIR): New variable.
41744 (build_env.mk): New target.
41745 (include_DATA): New variable.
41746 (install-local): Install $(include_DATA) files in $(includedir).
41748 2008-11-07 Pavel Roskin <proski@gnu.org>
41750 * gendistlist.sh: Use C locale for sorting to ensure consistent
41751 output on all systems.
41753 * util/grub.d/00_header.in: Remove incorrect space before
41756 2008-11-07 Robert Millan <rmh@aybabtu.com>
41758 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41760 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41761 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41762 (based on find_multi_boot1_header).
41763 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41764 using find_multi_boot2_header(), and abort if neither Multiboot or
41765 Multiboot headers were found.
41767 2008-11-07 Robert Millan <rmh@aybabtu.com>
41769 Modularize at_keyboard.mod:
41771 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41772 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41773 (at_keyboard_mod_LDFLAGS): New variables.
41775 Actual terminal split:
41777 * include/grub/term.h (struct grub_term): Split in ...
41778 (struct grub_term_input): ... this, and ...
41779 (struct grub_term_output): ... this. Update all users.
41780 (grub_term_set_current): Split in ...
41781 (grub_term_set_current_input): ... this, and ...
41782 (grub_term_set_current_output): ... this.
41783 (grub_term_get_current): Split in ...
41784 (grub_term_get_current_input): ... this, and ...
41785 (grub_term_get_current_output): ... this.
41786 (grub_term_register): Split in ...
41787 (grub_term_register_input): ... this, and ...
41788 (grub_term_register_output): ... this.
41789 (grub_term_unregister): Split in ...
41790 (grub_term_unregister_input): ... this, and ...
41791 (grub_term_unregister_output): ... this.
41792 (grub_term_iterate): Split in ...
41793 (grub_term_iterate_input): ... this, and ...
41794 (grub_term_iterate_output): ... this.
41796 * kern/term.c (grub_term_list): Split in ...
41797 (grub_term_list_input): ... this, and ...
41798 (grub_term_list_output): ... this. Update all users.
41799 (grub_cur_term): Split in ...
41800 (grub_cur_term_input): ... this, and ...
41801 (grub_cur_term_output): ... this. Update all users.
41802 (grub_term_set_current): Split in ...
41803 (grub_term_set_current_input): ... this, and ...
41804 (grub_term_set_current_output): ... this.
41805 (grub_term_get_current): Split in ...
41806 (grub_term_get_current_input): ... this, and ...
41807 (grub_term_get_current_output): ... this.
41808 (grub_term_register): Split in ...
41809 (grub_term_register_input): ... this, and ...
41810 (grub_term_register_output): ... this.
41811 (grub_term_unregister): Split in ...
41812 (grub_term_unregister_input): ... this, and ...
41813 (grub_term_unregister_output): ... this.
41814 (grub_term_iterate): Split in ...
41815 (grub_term_iterate_input): ... this, and ...
41816 (grub_term_iterate_output): ... this.
41818 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41819 a check for input and one for output (and only attempt to get keys
41820 from user when input works).
41822 * util/grub-probe.c (grub_term_get_current): Split in ...
41823 (grub_term_get_current_input): ... this, and ...
41824 (grub_term_get_current_output): ... this.
41825 * util/grub-fstest.c: Likewise.
41826 * util/i386/pc/grub-setup.c: Likewise.
41827 * util/grub-editenv.c: Likewise.
41829 Portability adjustments:
41831 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41832 `term/i386/pc/at_keyboard.c'.
41833 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41834 grub_keyboard_controller_init() (now handled by terminal .init).
41835 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41836 grub_at_keyboard_init().
41837 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41838 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41839 at_keyboard.mod via input terminal interface).
41840 * include/grub/i386/coreboot/console.h: Convert into a stub for
41841 `<grub/i386/pc/console.h>'.
41843 Migrate full terminals to new API:
41845 * term/efi/console.c (grub_console_term): Split into ...
41846 (grub_console_term_input): ... this, and ...
41847 (grub_console_term_output): ... this. Update all users.
41848 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41849 (grub_ofconsole_init): Split into ...
41850 (grub_ofconsole_init_input): ... this, and ...
41851 (grub_ofconsole_init_output): ... this.
41852 (grub_ofconsole_term): Split into ...
41853 (grub_ofconsole_term_input): ... this, and ...
41854 (grub_ofconsole_term_output): ... this. Update all users.
41855 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41856 (grub_serial_term_input): ... this, and ...
41857 (grub_serial_term_output): ... this. Update all users.
41858 * term/i386/pc/console.c (grub_console_term): Split into ...
41859 (grub_console_term_input): ... this, and ...
41860 (grub_console_term_output): ... this. Update all users.
41861 (grub_console_term_input): Only enable it on PC/BIOS platform.
41862 (grub_console_init): Remove grub_keyboard_controller_init() call.
41864 Migrate input terminals to new API:
41866 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
41867 `i386' and `i386/pc' to enable build on x86_64 (this driver is
41868 i386-specific anyway).
41869 (grub_console_checkkey): Rename to ...
41870 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
41872 (grub_keyboard_controller_orig): New variable.
41873 (grub_console_getkey): Rename to ...
41874 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
41876 (grub_keyboard_controller_init): Static-ize. Save original
41877 controller value so that it can be restored ...
41878 (grub_keyboard_controller_fini): ... here (new function).
41879 (grub_at_keyboard_term): New structure.
41880 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
41883 Migrate output terminals to new API:
41885 * term/i386/pc/vga.c (grub_vga_term): Change type to
41886 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41887 members. Update all users.
41888 * term/gfxterm.c (grub_video_term): Change type to
41889 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41890 members. Update all users.
41891 * include/grub/i386/pc/console.h (grub_console_checkkey)
41892 (grub_console_getkey): Do not export (no longer needed by gfxterm,
41895 Migrate `terminal' command and userland tools to new API:
41897 * commands/terminal.c (grub_cmd_terminal): Split into ...
41898 (grub_cmd_terminal_input): ... this, and ...
41899 (grub_cmd_terminal_output): ... this.
41900 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
41901 `terminal_input' and `terminal_output'.
41902 * util/grub.d/00_header.in: Adjust `terminal' calls to new
41903 `terminal_input' / `terminal_output' API.
41904 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
41905 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
41906 provided ${GRUB_TERMINAL}, convert it).
41908 2008-11-04 Robert Millan <rmh@aybabtu.com>
41910 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
41912 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
41914 2008-11-03 Bean <bean123ch@gmail.com>
41916 * kern/elf.c (grub_elf32_load): Revert to previous code.
41917 (grub_elf64_load): Likewise.
41919 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
41921 2008-11-01 Robert Millan <rmh@aybabtu.com>
41923 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
41924 (TARGET_CPPFLAGS): Likewise.
41925 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
41927 2008-11-01 Carles Pina i Estany <carles@pina.cat>
41929 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
41931 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41933 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
41934 addition of objects until the code is not going to be able to fail.
41936 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41938 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
41939 (add a missing NULL check, and correct them by moving the pointer
41940 operations after the actual check).
41942 2008-10-29 Robert Millan <rmh@aybabtu.com>
41944 * util/i386/pc/grub-install.in: Handle empty string as output from
41945 make_system_path_relative_to_its_root().
41947 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
41949 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
41950 circular metadata worst case scenario. If the metadata is circular
41951 then copy the wrap in place.
41952 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
41953 project lib/format_text/layout.h
41954 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
41956 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41958 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
41960 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41962 * util/update-grub_lib.in: Mention filename in warning message.
41964 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41966 * NEWS: Update for rename of update-grub to grub-mkconfig.
41968 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41970 * util/update-grub_lib.in: Copy to ...
41971 * util/grub-mkconfig_lib.in: ... this. Update all users.
41972 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
41973 * util/update-grub.in: Rename to ...
41974 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
41975 option. Add `--output' option to allow users to specify the generated
41976 configuration file. Default to stdout.
41977 (update_grub_dir): Rename to ...
41978 (grub_mkconfig_dir): ... this.
41979 (grub_cfg): Default to an empty string.
41980 * conf/common.rmk (update-grub): Rename to ...
41981 (grub-mkconfig): ... this.
41982 (update-grub_lib): Copy to ...
41983 (grub-mkconfig_lib): ... this.
41984 (update-grub_SCRIPTS): Copy to ...
41985 (grub-mkconfig_SCRIPTS): ... this. Update all users.
41986 (update-grub_DATA): Rename to ...
41987 (grub-mkconfig_DATA): ... this.
41989 2008-09-28 Robert Millan <rmh@aybabtu.com>
41991 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
41992 to `modified'. Add the real `created' field.
41993 (grub_iso9660_uuid): Use `modified' rather than `created' for
41994 constructing the UUID.
41996 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
41998 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
41999 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42001 2008-09-28 Bean <bean123ch@gmail.com>
42003 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42004 Thanks to Christian Franke for finding this bug.
42006 2008-09-25 Robert Millan <rmh@aybabtu.com>
42008 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42009 instances of grub_util_get_disk_name() (see previous commit).
42011 2008-09-25 Robert Millan <rmh@aybabtu.com>
42013 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42014 `util/i386/get_disk_name.c'.
42015 * conf/i386-efi.rmk: Likewise.
42016 * conf/x86_64-efi.rmk: Likewise.
42017 * conf/i386-coreboot.rmk: Likewise.
42018 * conf/i386-ieee1275.rmk: Likewise.
42019 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42020 `util/ieee1275/get_disk_name.c'.
42021 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42022 * util/ieee1275/get_disk_name.c: Remove file.
42023 * util/i386/get_disk_name.c: Remove file.
42024 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42025 "hd%d" for device.map entries, rather than using
42026 grub_util_get_disk_name().
42028 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42030 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42032 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42034 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42036 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42038 (GRUB_TERM_PPAGE): Changed to 0x4900.
42040 2008-09-24 Robert Millan <rmh@aybabtu.com>
42042 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42043 macros (they were i386-pc specific).
42044 * include/grub/sparc64/ieee1275/console.h: Likewise.
42045 * include/grub/efi/console.h: Likewise.
42047 2008-09-22 Bean <bean123ch@gmail.com>
42049 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42050 resident and in attribute list.
42052 * include/grub/ntfs.h (BMP_LEN): Removed.
42054 2008-09-22 Bean <bean123ch@gmail.com>
42056 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42057 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42059 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42060 error occurs, as grub_disk_open will call grub_disk_close, which will
42061 call p->close (scsi).
42063 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42065 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42066 (AC_PREREQ): Bumped to 2.59.
42067 (AC_TRY_COMPILE): Replace obsolete macro with ...
42068 (AC_COMPILE_IFELSE): ... this.
42069 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42070 (AC_LINK_IFELSE): ... this.
42072 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42074 * autogen.sh: Add a call to `gendistlist.sh'.
42076 2008-09-19 Christian Franke <franke@computer.org>
42078 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42079 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42080 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42081 Export __enable_execute_stack() to modules.
42082 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42085 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42087 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42090 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42092 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42093 #include <grub/util/hostdisk.h>.
42095 2008-09-08 Robert Millan <rmh@aybabtu.com>
42097 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42098 segments when their filesz is zero (grub_file_read() interprets
42099 zero-size as "read until EOF", which results in memory corruption).
42100 Use `lowest_segment' rather than 0 for calculating the current
42101 segment load address.
42103 2008-09-08 Robert Millan <rmh@aybabtu.com>
42105 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42106 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42107 clobbered useful information.
42109 2008-09-08 Robert Millan <rmh@aybabtu.com>
42111 * include/grub/util/biosdisk.h: Move to ...
42112 * include/grub/util/hostdisk.h: ... here. Update all users.
42113 * util/biosdisk.c: Move to ...
42114 * util/hostdisk.c: ... here. Update all users.
42116 2008-09-07 Robert Millan <rmh@aybabtu.com>
42118 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42120 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42121 and length can be stored directly in the `mbi->mmap_addr' and
42122 `mbi->mmap_length' struct fields.
42124 2008-09-07 Robert Millan <rmh@aybabtu.com>
42126 * conf/i386.rmk: New file. Provides declaration for building
42128 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42129 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42131 Include `conf/i386.mk'.
42132 * conf/i386-efi.rmk: Likewise.
42133 * conf/x86_64-efi.rmk: Likewise.
42134 * conf/i386-coreboot.rmk: Likewise.
42135 * conf/i386-ieee1275.rmk: Likewise.
42137 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42139 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42140 Adds optimization support for BGR based modes.
42142 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42143 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42144 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42145 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42146 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42147 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42148 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42149 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42150 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42151 (grub_video_i386_vbeblit_index_index): Likewise.
42152 (grub_video_i386_vbeblit_replace_directN): Added.
42153 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42154 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42155 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42156 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42157 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42158 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42159 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42160 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42161 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42162 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42163 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42164 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42165 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42167 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42168 (grub_video_i386_vbefill_R8G8B8): Likewise.
42169 (grub_video_i386_vbefill_index): Likewise.
42170 (grub_video_i386_vbefill_direct32): Added.
42171 (grub_video_i386_vbefill_direct24): Likewise.
42172 (grub_video_i386_vbefill_direct16): Likewise.
42173 (grub_video_i386_vbefill_direct8): Likewise.
42175 * include/grub/video.h (grub_video_blit_format): Removed
42176 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42177 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42178 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42179 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42180 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42182 * video/video.c (grub_video_get_blit_format): Updated to use new
42183 blit formats. Added handling for 16 bit color modes.
42185 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42187 (common_blitter): Updated to use new blitters.
42189 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42191 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42192 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42193 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42194 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42195 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42196 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42197 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42198 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42199 (grub_video_i386_vbeblit_index_index): Likewise.
42200 (grub_video_i386_vbeblit_replace_directN): Added.
42201 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42202 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42203 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42204 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42205 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42206 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42207 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42208 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42209 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42210 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42211 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42212 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42213 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42215 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42216 (grub_video_i386_vbefill_R8G8B8): Likewise.
42217 (grub_video_i386_vbefill_index): Likewise.
42218 (grub_video_i386_vbefill_direct32): Added.
42219 (grub_video_i386_vbefill_direct24): Likewise.
42220 (grub_video_i386_vbefill_direct16): Likewise.
42221 (grub_video_i386_vbefill_direct8): Likewise.
42223 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42226 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42229 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42232 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42235 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42237 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42240 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42242 * fs/iso9660.c (grub_iso9660_date): New structure.
42243 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42244 (grub_iso9660_uuid): New function.
42246 2008-09-05 Bean <bean123ch@gmail.com>
42248 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42250 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42251 insensitive bit for names in Win32 and Win32 & DOS namespace.
42253 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42255 * include/grub/types.h (LONG_MAX): Likewise.
42257 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42259 * util/getroot.c: Include <config.h>.
42260 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42261 add support for /dev/md/N devices and handle LVM double dash escaping.
42263 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42265 * config.guess: Update to latest version from config git.
42266 * config.sub: Likewise.
42268 2008-09-03 Robert Millan <rmh@aybabtu.com>
42270 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42271 `disk->total_sectors'.
42273 2008-09-01 Colin D Bennett <colin@gibibit.com>
42275 * include/grub/normal.h: Fixed incorrect comment for
42276 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42278 2008-09-01 Colin D Bennett <colin@gibibit.com>
42280 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42281 values with defines.
42283 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42284 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42285 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42286 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42287 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42288 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42289 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42290 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42291 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42292 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42293 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42294 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42295 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42296 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42297 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42298 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42299 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42300 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42301 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42303 2008-08-31 Robert Millan <rmh@aybabtu.com>
42305 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42307 (grub_multiboot): Fix a few warnings.
42309 2008-08-31 Robert Millan <rmh@aybabtu.com>
42311 * loader/i386/pc/multiboot.c: Update comment not to say that
42312 boot_device support is unimplemented.
42314 2008-08-31 Robert Millan <rmh@aybabtu.com>
42316 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42317 or memory map support are unimplemented.
42319 2008-08-31 Colin D Bennett <colin@gibibit.com>
42321 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42323 2008-08-31 Colin D Bennett <colin@gibibit.com>
42325 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42326 total video memory in 'vbeinfo' output; show color format details for
42329 2008-08-30 Pavel Roskin <proski@gnu.org>
42331 * util/genmoddep.c: Remove for real this time.
42332 * DISTLIST: Remove util/genmoddep.c.
42334 2008-08-30 Robert Millan <rmh@aybabtu.com>
42336 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42337 as required by Multiboot spec (it was already 4-byte aligned, but
42340 2008-08-29 Pavel Roskin <proski@gnu.org>
42342 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42343 * kern/powerpc/ieee1275/startup.S: ... this.
42344 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42345 * DISTLIST: Likewise.
42347 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42348 grub/cpu/kernel.h. Add start label for consistency with other
42349 platforms. Add grub_prefix immediately after start. Add jump
42350 to the code after grub_prefix.
42351 * include/grub/powerpc/kernel.h: Provide valid values for
42352 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42354 2008-08-29 Bean <bean123ch@gmail.com>
42356 * configure.ac: Change host_os to cygwin for mingw.
42357 (asprintf): New check for function.
42359 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42360 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42362 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42363 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42364 sync, sleep and grub_util_get_disk_size for mingw.
42366 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42367 to get size in mingw.
42368 (open_device): Use flag O_BINARY if it's defined.
42369 (find_root_device): Add dummy code for mingw.
42371 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42372 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42373 (get_scsi_disk_name): Return 0 for mingw.
42375 * util/hostfs.c: #include <grub/util/misc.h>.
42376 (grub_hostfs_open): Use "rb" flag to open file, use
42377 grub_util_get_disk_size to get disk size for mingw.
42379 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42380 (asprintf): New function if HAVE_ASPRINTF is not set.
42381 (sync): New function for mingw.
42383 (grub_util_get_disk_size): Likewise.
42385 2008-08-28 Pavel Roskin <proski@gnu.org>
42387 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42390 2008-08-28 Robert Millan <rmh@aybabtu.com>
42392 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42394 2008-08-28 Robert Millan <rmh@aybabtu.com>
42396 Change find_grub_drive() syntax so it doesn't prevent it from
42397 detecting NULL names as errors.
42399 * util/biosdisk.c (find_grub_drive): Move free slot search code
42401 (find_free_slot): ... to here.
42402 (read_device_map): Use find_free_slot() to search for free slots.
42404 2008-08-27 Marco Gerards <marco@gnu.org>
42406 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42407 (scsi_mod_SOURCES): New variable.
42408 (scsi_mod_CFLAGS): Likewise
42409 (scsi_mod_LDFLAGS): Likewise.
42411 * disk/scsi.c: New file.
42413 * include/grub/scsi.h: Likewise.
42415 * include/grub/scsicmd.h: Likewise.
42417 * disk/ata.c: Include <grub/scsi.h>.
42418 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42420 (grub_ata_iterate): Skip ATAPI devices.
42421 (grub_ata_open): Only handle ATAPI devices.
42422 (struct grub_atapi_read): Removed.
42423 (grub_atapi_readsector): Likewise.
42424 (grub_ata_read): No longer handle ATAPI devices.
42425 (grub_ata_write): Likewise.
42426 (grub_atapi_iterate): New function.
42427 (grub_atapi_read): Likewise.
42428 (grub_atapi_write): Likewise.
42429 (grub_atapi_open): Likewise.
42430 (grub_atapi_close): Likewise.
42431 (grub_atapi_dev): New variable.
42432 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42433 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42435 * include/grub/disk.h (enum grub_disk_dev_id): Add
42436 `GRUB_DISK_DEVICE_SCSI_ID'.
42438 2008-08-26 Robert Millan <rmh@aybabtu.com>
42440 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42441 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42444 2008-08-23 Bean <bean123ch@gmail.com>
42446 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42447 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42448 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42449 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42451 (raid5rec_mod_SOURCES): New macro.
42452 (raid5rec_mod_CFLAGS): Likewise.
42453 (raid5rec_mod_LDFLAGS): Likewise.
42454 (raid6rec_mod_SOURCES): Likewise.
42455 (raid6rec_mod_CFLAGS): Likewise.
42456 (raid6rec_mod_LDFLAGS): Likewise.
42457 (mdraid_mod_SOURCES): Likewise.
42458 (mdraid_mod_CFLAGS): Likewise.
42459 (mdraid_mod_LDFLAGS): Likewise.
42460 (dm_nv_mod_SOURCES): Likewise.
42461 (dm_nv_mod_CFLAGS): Likewise.
42462 (dm_nv_mod_LDFLAGS): Likewise.
42464 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42465 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42466 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42468 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42469 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42471 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42473 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42475 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42477 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42479 * disk/raid5_recover.c: New file.
42481 * disk/raid6_recover.c: Likewise.
42483 * disk/mdraid_linux.c: Likewise.
42485 * disk/dmraid_nvidia.c: Likewise.
42487 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42490 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42491 calculate the size of raid device.
42492 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42493 different layout of raid5.
42494 (grub_raid_scan_device): Remove code specific to mdraid.
42495 (grub_raid_list): New variable.
42496 (free_array): New function.
42497 (grub_raid_register): Likewise.
42498 (grub_raid_unregister): Likewise.
42499 (grub_raid_rescan): Likewise.
42500 (GRUB_MOD_INIT): Don't iterate device here.
42501 (GRUB_MOD_FINI): Use free_array to release resource.
42503 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42504 (grub_raid5_recover_func_t): New function variable type.
42505 (grub_raid6_recover_func_t): Likewise.
42506 (grub_raid5_recover_func): New variable.
42507 (grub_raid6_recover_func): Likewise.
42508 (grub_raid_register): New function.
42509 (grub_raid_unregister): Likewise.
42510 (grub_raid_rescan): Likewise.
42511 (grub_raid_block_xor): Likewise.
42513 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42514 (CMD_CRC): New macro.
42516 (read_file): Handle device as well as file.
42517 (cmd_crc): New function.
42518 (fstest): Handle multiple disks.
42519 (options): Remove part, raw and long, add root and diskcount.
42520 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42521 (main): Find the first non option entry and ignore subsequent options,
42522 add handling for the new options, support multiple disks.
42524 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42526 2008-08-23 Bean <bean123ch@gmail.com>
42528 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42530 * genfslist.sh: Ignore kernel.mod.
42532 * genpartmaplist.sh: Likewise.
42534 2008-08-23 Robert Millan <rmh@aybabtu.com>
42536 * util/getroot.c (find_root_device): Skip anything that starts with
42537 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42539 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42541 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42542 * util/grub.d/00_header.in: Allow the administrator to change default
42543 gfxmode via ${GRUB_GFXMODE}.
42545 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42547 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42549 2008-08-21 Robert Millan <rmh@aybabtu.com>
42551 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42553 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42554 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42556 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42558 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42559 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42561 2008-08-19 Robert Millan <rmh@aybabtu.com>
42563 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42564 (struct grub_virtual_screen): Remove `cursor_color'.
42565 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42567 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42569 2008-08-18 Robert Millan <rmh@aybabtu.com>
42571 Unify (identical) linux_normal.c files.
42572 * loader/i386/efi/linux_normal.c: Move from here ...
42573 * loader/linux_normal.c: ... to here. Update all users.
42574 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42575 * loader/i386/ieee1275/linux_normal.c: Likewise.
42577 2008-08-18 Robert Millan <rmh@aybabtu.com>
42579 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42580 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42581 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42582 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42583 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42585 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42586 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42587 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42588 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42589 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42590 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42591 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42592 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42593 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42594 portably using grub_getxy().
42595 Replace `-EFI' with `-bzImage' in boot message.
42597 2008-08-17 Robert Millan <rmh@aybabtu.com>
42599 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42601 2008-08-17 Robert Millan <rmh@aybabtu.com>
42603 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42605 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42606 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42607 (grub_machine_mmap_iterate): New function declaration.
42608 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42610 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42613 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42614 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42615 Move e820 parsing from here ...
42616 * kern/i386/pc/mmap.c: New file.
42617 (grub_machine_mmap_iterate): ... to here.
42619 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42620 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42621 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42622 (grub_available_iterate): Redeclare to return `void', and redeclare
42623 its hook to use grub_uint64_t as addr and size parameters, and rename
42625 (grub_machine_mmap_iterate): ... this. Update all users.
42627 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42628 to make it more readable. Rename to ...
42629 (grub_machine_mmap_iterate): ... this.
42631 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42632 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42633 (grub_multiboot): Allocate an extra region after the payload, and fill
42634 it with a Multiboot memory map. Adjust a.out loader to calculate size
42635 with the extra space.
42636 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42637 with the extra space.
42639 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42641 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42643 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42645 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42646 mdate-sh to the list `find' searches for.
42647 * DISTLIST: Regenerated.
42649 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42651 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42652 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42653 genmoddep.awk, gensymlist.sh.in.
42654 (DISTDIRS): Add bus, docs, hook, lib.
42655 * DISTLIST: Regenerated.
42656 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42658 2008-08-16 Robert Millan <rmh@aybabtu.com>
42660 * disk/raid.c (grub_raid_init): Handle/report errors set by
42661 grub_device_iterate().
42662 * disk/lvm.c (grub_lvm_init): Likewise.
42664 2008-08-15 Bean <bean123ch@gmail.com>
42666 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42668 (datetime_mod_SOURCES): New macro.
42669 (datetime_mod_CFLAGS): Likewise.
42670 (datetime_mod_LDFLAGS): Likewise.
42671 (date_mod_SOURCES): Likewise.
42672 (date_mod_CFLAGS): Likewise.
42673 (date_mod_LDFLAGS): Likewise.
42674 (datehook_mod_SOURCES): Likewise.
42675 (datehook_mod_CFLAGS): Likewise.
42676 (datehook_mod_LDFLAGS): Likewise.
42678 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42680 (datetime_mod_SOURCES): New macro.
42681 (datetime_mod_CFLAGS): Likewise.
42682 (datetime_mod_LDFLAGS): Likewise.
42683 (date_mod_SOURCES): Likewise.
42684 (date_mod_CFLAGS): Likewise.
42685 (date_mod_LDFLAGS): Likewise.
42686 (datehook_mod_SOURCES): Likewise.
42687 (datehook_mod_CFLAGS): Likewise.
42688 (datehook_mod_LDFLAGS): Likewise.
42690 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42692 (datetime_mod_SOURCES): New macro.
42693 (datetime_mod_CFLAGS): Likewise.
42694 (datetime_mod_LDFLAGS): Likewise.
42695 (date_mod_SOURCES): Likewise.
42696 (date_mod_CFLAGS): Likewise.
42697 (date_mod_LDFLAGS): Likewise.
42698 (datehook_mod_SOURCES): Likewise.
42699 (datehook_mod_CFLAGS): Likewise.
42700 (datehook_mod_LDFLAGS): Likewise.
42702 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42704 (datetime_mod_SOURCES): New macro.
42705 (datetime_mod_CFLAGS): Likewise.
42706 (datetime_mod_LDFLAGS): Likewise.
42707 (date_mod_SOURCES): Likewise.
42708 (date_mod_CFLAGS): Likewise.
42709 (date_mod_LDFLAGS): Likewise.
42710 (datehook_mod_SOURCES): Likewise.
42711 (datehook_mod_CFLAGS): Likewise.
42712 (datehook_mod_LDFLAGS): Likewise.
42714 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42716 (datetime_mod_SOURCES): New macro.
42717 (datetime_mod_CFLAGS): Likewise.
42718 (datetime_mod_LDFLAGS): Likewise.
42719 (date_mod_SOURCES): Likewise.
42720 (date_mod_CFLAGS): Likewise.
42721 (date_mod_LDFLAGS): Likewise.
42722 (datehook_mod_SOURCES): Likewise.
42723 (datehook_mod_CFLAGS): Likewise.
42724 (datehook_mod_LDFLAGS): Likewise.
42726 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42728 * commands/date.c: New file.
42730 * hook/datehook.c: Likewise.
42732 * include/grub/lib/datetime.h: Likewise.
42734 * include/grub/i386/cmos.h: Likewise.
42736 * lib/datetime.c: Likewise.
42738 * lib/i386/datetime.c: Likewise.
42740 * lib/efi/datetime.c: Likewise.
42742 2008-08-14 Robert Millan <rmh@aybabtu.com>
42744 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42745 (grub_mkelfimage_SOURCES): New variable.
42746 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42748 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42749 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42750 * conf/powerpc-ieee1275.rmk: Likewise.
42751 * conf/i386-ieee1275.rmk: Likewise.
42753 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42754 * kern/i386/coreboot/init.c: Likewise.
42756 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42757 with `<grub/cpu/kernel.h>'.
42758 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42760 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42761 * kern/i386/coreboot/startup.S: Likewise.
42763 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42764 (GRUB_MOD_GAP): Remove.
42765 * include/grub/powerpc/kernel.h: New file.
42766 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42767 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42768 * include/grub/i386/kernel.h: New file.
42769 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42770 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42771 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42773 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42775 Use --directory when invoking grub_mkimage.
42777 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42778 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42779 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42780 and GRUB_KERNEL_CPU_PREFIX.
42782 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42784 * include/grub/err.h (grub_err_printf): New function prototype.
42785 * util/misc.c (grub_err_printf): New function.
42786 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42788 * kern/err.c (grub_print_error): Use grub_err_printf.
42790 2008-08-13 Robert Millan <rmh@aybabtu.com>
42792 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42794 2008-08-13 Robert Millan <rmh@aybabtu.com>
42796 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42799 2008-08-12 Robert Millan <rmh@aybabtu.com>
42801 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42802 of the relocation code from here ...
42803 (grub_multiboot): ... to here.
42804 (forward_relocator, backward_relocator): Move from here ...
42805 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42806 (grub_multiboot_backward_relocator): ... to here.
42807 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42808 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42809 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42810 (grub_multiboot_forward_relocator_end)
42811 (grub_multiboot_backward_relocator)
42812 (grub_multiboot_backward_relocator_end): New variables.
42814 2008-08-12 Bean <bean123ch@gmail.com>
42816 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42818 2008-08-11 Robert Millan <rmh@aybabtu.com>
42820 * kern/i386/linuxbios/startup.S: Move from here ...
42821 * kern/i386/coreboot/startup.S: ... to here.
42823 * kern/i386/linuxbios/init.c: Move from here ...
42824 * kern/i386/coreboot/init.c: ... to here.
42826 * kern/i386/linuxbios/table.c: Move from here ...
42827 * kern/i386/coreboot/mmap.c: ... to here.
42829 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42831 2008-08-11 Robert Millan <rmh@aybabtu.com>
42833 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42834 errors. Leave it to the upper layer to handle them.
42836 2008-08-09 Christian Franke <franke@computer.org>
42838 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42839 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42840 Install `grub.d/10_windows' only on Cygwin.
42841 * configure.ac: Add subst of `target_os'.
42842 Check `target_os' also before setting TARGET_OBJ2ELF.
42843 Add `--enable-grub-pe2elf'.
42845 2008-08-08 Robert Millan <rmh@aybabtu.com>
42847 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42848 (grub_last_time): Change type to grub_uint64_t.
42849 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42850 (grub_disk_close): Likewise.
42852 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42853 (run_menu): Migrate code from to using grub_get_time_ms().
42855 * util/misc.c (grub_get_time_ms): New function.
42857 2008-08-08 Marco Gerards <marco@gnu.org>
42859 * disk/ata.c (grub_ata_regget): Change return type to
42861 (grub_ata_regget2): Likewise.
42862 (grub_ata_wait_status): New function.
42863 (grub_ata_wait_busy): Removed function, updated all users to use
42864 `grub_ata_wait_status'.
42865 (grub_ata_wait_drq): Likewise.
42866 (grub_ata_cmd): New function.
42867 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
42869 (grub_ata_pio_write): Add error handling.
42870 (grub_atapi_identify): Likewise.
42871 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
42873 (grub_ata_identify): Use `grub_ata_cmd' and improve error
42874 handling. Actually use the detected registers. Reorder the
42875 detection logic such that it is easier to read.
42876 (grub_ata_pciinit): Do not assign the same ID to each controller.
42877 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
42879 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
42881 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
42883 2008-08-08 Marco Gerards <marco@gnu.org>
42887 2008-08-07 Bean <bean123ch@gmail.com>
42889 * include/grub/x86_64/pci.h: New file.
42891 2008-08-07 Christian Franke <franke@computer.org>
42893 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
42894 (TIMER2_GATE): Likewise.
42895 (grub_pit_wait): Add enable/disable of the timer2 gate
42896 bit of port 0x61. This fixes a possible infinite loop.
42898 2008-08-07 Bean <bean123ch@gmail.com>
42900 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
42901 kern/i386/tsc.c and kern/i386/pit.c.
42903 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
42906 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
42909 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
42911 2008-08-07 Bean <bean123ch@gmail.com>
42913 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
42915 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
42917 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
42918 multiple inclusion. Add #include <grub/types.h>.
42920 2008-08-06 Christian Franke <franke@computer.org>
42922 * conf/common.rmk: Build and install `10_windows'.
42923 * util/grub.d/10_windows.in: New script.
42925 2008-08-06 Pavel Roskin <proski@gnu.org>
42927 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
42929 2008-08-06 Robert Millan <rmh@aybabtu.com>
42931 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
42932 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
42934 2008-08-06 Bean <bean123ch@gmail.com>
42936 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
42937 (grub_pxefs_fs_int): Remove dummy definition.
42938 (grub_pxefs_open): Use data->block_size to store the current block
42940 (grub_pxefs_read): Use block size stored in data->block_size. As the
42941 value of grub_pxe_blksize can be changed after the file is opened.
42943 2008-08-06 Bean <bean123ch@gmail.com>
42945 * fs/i386/pc/pxe.c (curr_file): new variable.
42946 (grub_pxefs_open): Simply the handling of pxe file system. Don't
42947 require the dummy internal file system anymore.
42948 (grub_pxefs_read): Removed.
42949 (grub_pxefs_close): Likewise.
42950 (grub_pxefs_fs_int): Likewise.
42951 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
42952 connection when we switch file.
42953 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
42955 2008-08-06 Robert Millan <rmh@aybabtu.com>
42957 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
42959 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
42960 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
42962 * kern/i386/halt.c: New file.
42963 * kern/i386/reboot.c: Likewise.
42964 * include/grub/i386/reboot.h: Likewise.
42965 * include/grub/i386/halt.h: Likewise.
42967 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
42968 Include `<grub/cpu/halt.h>'.
42969 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
42970 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
42972 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
42973 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
42974 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
42975 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
42976 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
42977 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
42979 * include/grub/i386/at_keyboard.h: ... to here.
42981 2008-08-05 Robert Millan <rmh@aybabtu.com>
42983 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
42984 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
42985 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
42986 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
42987 `kern/generic/millisleep.c'.
42989 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
42990 instead of grub_get_rtc().
42991 (grub_tsc_init): Initialize `tsc_boot_time'.
42993 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
42994 (grub_machine_init): Use grub_tsc_init() rather than
42995 installing an RTC-based handler via grub_install_get_time_ms().
42997 * kern/i386/pit.c: New file.
42998 * include/grub/i386/pit.h: Likewise.
43000 2008-08-05 Bean <bean123ch@gmail.com>
43002 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43004 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43005 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43006 (pxe_mod_SOURCES): New macro.
43007 (pxe_mod_CFLAGS): Likewise.
43008 (pxe_mod_LDFLAGS): Likewise.
43009 (pxecmd_mod_SOURCES): Likewise.
43010 (pxecmd_mod_CFLAGS): Likewise.
43011 (pxecmd_mod_LDFLAGS): Likewise.
43013 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43014 (grub_pxe_call): Likewise.
43016 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43018 * commands/i386/pc/pxecmd.c: New file.
43020 * fs/i386/pc/pxe.c: Likewise.
43022 * include/grub/i386/pc/pxe.h: Likewise.
43024 2008-08-05 Bean <bean123ch@gmail.com>
43026 * util/console.c (grub_console_cur_color): New variable.
43027 (grub_console_standard_color): Likewise.
43028 (grub_console_normal_color): Likewise.
43029 (grub_console_highlight_color): Likewise.
43030 (color_map): Likewise.
43031 (use_color): Likewise.
43032 (NUM_COLORS): New macro.
43033 (grub_ncurses_setcolorstate): Handle color properly.
43034 (grub_ncurses_setcolor): Don't change color here, just remember the
43035 settings, color will be set in grub_ncurses_setcolorstate.
43036 (grub_ncurses_getcolor): New function.
43037 (grub_ncurses_init): Initialize color pairs.
43038 (grub_ncurses_term): New member grub_ncurses_getcolor.
43040 2008-08-05 Colin D Bennett <colin@gibibit.com>
43042 High resolution timer support. Implemented for x86 CPUs using TSC.
43043 Extracted generic grub_millisleep() so it's linked in only as needed.
43044 This requires a Pentium compatible CPU; if the RDTSC instruction is
43045 not supported, then it falls back on the generic grub_get_time_ms()
43046 implementation that uses the machine's RTC.
43048 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43049 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43050 `kern/generic/millisleep.c'.
43052 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43053 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43055 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43056 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43058 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43060 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43061 `kern/generic/millisleep.c'.
43063 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43065 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43067 * kern/generic/rtc_get_time_ms.c: New file.
43069 * kern/generic/millisleep.c: New file.
43071 * kern/misc.c: Don't include
43072 <kern/time.h> anymore.
43073 (grub_millisleep_generic): Removed.
43075 * commands/sleep.c (grub_interruptible_millisleep): Uses
43076 grub_get_time_ms() instead of grub_get_rtc().
43078 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43080 (grub_cpu_is_cpuid_supported): New inline function.
43081 (grub_cpu_is_tsc_supported): New inline function.
43082 (grub_tsc_init): New function prototype.
43083 (grub_tsc_get_time_ms): New function prototype.
43085 * kern/i386/tsc.c (grub_get_time_ms): New file.
43087 * include/grub/time.h: Include <grub/types.h.
43088 (grub_millisleep_generic): Removed.
43089 (grub_get_time_ms): New prototype.
43090 (grub_install_get_time_ms): New prototype.
43091 (grub_rtc_get_time_ms): New prototype.
43093 * kern/time.c (grub_get_time_ms): New function.
43094 (grub_install_get_time_ms): New function.
43096 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43097 <grub/time.h> anymore.
43098 (grub_millisleep): Removed.
43099 (grub_machine_init): Call grub_tsc_init.
43101 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43102 get_time_ms() implementation.
43104 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43105 (ieee1275_get_time_ms): New function.
43106 (grub_machine_init): Install get_time_ms() implementation.
43108 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43109 (grub_machine_init): Call grub_tsc_init().
43110 (grub_millisleep): Removed.
43112 * kern/ieee1275/init.c (grub_millisleep): Removed.
43113 (grub_machine_init): Install ieee1275_get_time_ms()
43115 (ieee1275_get_time_ms): New function.
43116 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43119 2008-08-05 Marco Gerards <marco@gnu.org>
43121 * disk/ata.c: Include <grub/pci.h>.
43122 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43123 (grub_ata_initialize): Rewritten.
43124 (grub_ata_device_initialize): New function.
43126 2008-08-04 Pavel Roskin <proski@gnu.org>
43128 * kern/main.c: Include grub/mm.h.
43130 2008-08-04 Robert Millan <rmh@aybabtu.com>
43132 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43133 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43134 corruption problem).
43136 2008-08-04 Robert Millan <rmh@aybabtu.com>
43138 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43139 warnings introduced in my last commit.
43141 2008-08-03 Robert Millan <rmh@aybabtu.com>
43143 Make PCI available on all i386 architectures.
43145 * include/grub/i386/pc/pci.h: Move from here ...
43146 * include/grub/i386/pci.h: ... to here.
43148 * include/grub/i386/pc/pci.h: Remove.
43149 * include/grub/i386/efi/pci.h: Remove.
43150 * include/grub/x86_64/efi/pci.h: Remove.
43152 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43153 `<grub/cpu/pci.h>'.
43155 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43156 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43157 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43159 * conf/i386-ieee1275.rmk: Likewise.
43161 2008-08-03 Robert Millan <rmh@aybabtu.com>
43163 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43164 (grub_console_setcursor): Make it possible to set cursor off.
43166 2008-08-03 Robert Millan <rmh@aybabtu.com>
43168 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43169 of modules instead of assuming which platform provides what.
43170 * util/update-grub.in: Likewise.
43172 2008-08-03 Robert Millan <rmh@aybabtu.com>
43174 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43175 instead of `grub_install_dos_part' to determine whether a drive needs
43176 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43177 because it can be overridden when loading GRUB via Multiboot).
43179 2008-08-02 Robert Millan <rmh@aybabtu.com>
43181 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43183 2008-08-02 Robert Millan <rmh@aybabtu.com>
43185 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43186 of informational grub_dprintf() calls.
43188 2008-08-02 Robert Millan <rmh@aybabtu.com>
43190 * disk/memdisk.c (memdisk_size): Don't initialize.
43191 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43193 * include/grub/i386/pc/kernel.h
43194 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43195 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43196 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43197 (grub_arch_memdisk_size): Remove.
43199 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43200 field (was only used to transfer a constant). Add `type' field to
43201 support multiple module types.
43202 (grub_module_iterate): New function.
43204 * kern/device.c (grub_device_open): Do not hide error messages
43205 when grub_disk_open() fails. Use grub_print_error() instead.
43207 * kern/i386/pc/init.c (grub_arch_modules_addr)
43208 (grub_arch_memdisk_size): Remove functions.
43209 (grub_arch_modules_addr): Return the module address in high memory
43210 (now that it isn't copied anymore).
43212 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43213 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43214 decompression routine (grub_total_module_size already includes that
43215 now). Don't copy modules back to low memory.
43217 * kern/main.c: Include `<grub/mm.h>'.
43218 (grub_load_modules): Split out (and use) ...
43219 (grub_module_iterate): ... this function, which iterates through
43220 module objects and runs a hook.
43221 Comment out grub_mm_init_region() call, as it would cause non-ELF
43222 modules to be overwritten.
43224 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43225 the memdisk image in its own region, make it part of the module list.
43226 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43227 (main): Parse --memdisk|-m option, and pass user-provided path as
43228 parameter to generate_image().
43229 (add_segments): Pass `memdisk_path' down to load_modules().
43230 (load_modules): Embed memdisk image in module section when requested.
43231 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43232 `header.type' instead of `header.offset'.
43234 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43235 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43236 (memdisk_mod_LDFLAGS): New variables.
43237 * conf/i386-coreboot.rmk: Likewise.
43238 * conf/i386-ieee1275.rmk: Likewise.
43240 2008-08-02 Robert Millan <rmh@aybabtu.com>
43242 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43243 (backward_relocator): New variables. Used to allocate and relocate
43244 the payload, respectively.
43245 (grub_multiboot_load_elf32): Load into heap instead of requested
43246 address, install the appropriate relocator code in each bound of
43247 the payload, and set the entry point such that
43248 grub_multiboot_real_boot() will jump to one of them.
43250 * kern/i386/loader.S (grub_multiboot_payload_size)
43251 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43252 (grub_multiboot_payload_entry_offset): New variables.
43253 (grub_multiboot_real_boot): Set cpu context to what the relocator
43254 expects, and jump to the relocator instead of the payload.
43256 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43257 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43258 (grub_multiboot_payload_entry_offset): Export.
43260 2008-08-01 Bean <bean123ch@gmail.com>
43262 * normal/menu_entry.c (editor_getline): Don't return the original
43263 string as result, as it will be released by lexer once it has done
43266 2008-08-01 Robert Millan <rmh@aybabtu.com>
43268 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43269 within menuentries, not before them.
43270 util/grub.d/10_hurd.in: Likewise.
43272 2008-08-01 Bean <bean123ch@gmail.com>
43274 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43275 (bufio_mod_SOURCES): New macro.
43276 (bufio_mod_CFLAGS): Likewise.
43277 (bufio_mod_LDFLAGS): Likewise.
43279 * include/grub/bufio.h: New file.
43281 * io/bufio.c: Likewise.
43283 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43284 (grub_video_reader_png): Use grub_buffile_open to open file.
43286 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43287 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43289 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43290 (grub_video_reader_tga): Use grub_buffile_open to open file.
43292 * font/manager.c: Include <grub/bufio.h>.
43293 (add_font): Use grub_buffile_open to open file.
43295 2008-07-31 Robert Millan <rmh@aybabtu.com>
43297 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43298 ELF segments, use a macro for arbitrarily accessing any of them instead
43299 of preparing a pointer that allows access to one at a time.
43300 (grub_multiboot_load_elf64): Likewise.
43302 2008-07-31 Bean <bean123ch@gmail.com>
43304 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43305 GRUB_KERNEL_MACHINE_DATA_END.
43307 2008-07-30 Robert Millan <rmh@aybabtu.com>
43309 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43310 Increase from 0x50 to 0x60.
43311 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43312 use UUIDs to identify the root drive for them. If that's not
43314 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43315 check, for cross-disk installs.
43317 2008-07-30 Robert Millan <rmh@aybabtu.com>
43319 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43320 is non-empty, use it to set the `prefix' environment variable instead
43321 of the usual approach.
43322 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43323 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43324 environment variable instead of dummy make_install_device().
43326 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43327 (start): Insert a data section, with `grub_prefix' variable.
43328 * kern/i386/linuxbios/startup.S: Likewise.
43330 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43331 New variable reference.
43332 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43333 New macro. Defines offset of `grub_prefix' within startup.S (relative
43335 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43336 section within startup.S (relative to `start').
43337 * include/grub/i386/coreboot/kernel.h: Likewise.
43339 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43340 Overwrite grub_prefix with its contents, at the beginning of the
43342 (main): Understand -p|--prefix.
43344 2008-07-30 Robert Millan <rmh@aybabtu.com>
43346 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43348 2008-07-30 Robert Millan <rmh@aybabtu.com>
43350 * term/i386/pc/vga_text.c (grub_console_cls): Use
43351 grub_console_gotoxy() to go back to beginning of the screen.
43352 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43354 2008-07-29 Christian Franke <franke@computer.org>
43356 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43357 Add conversion of emulated mount points on Cygwin.
43359 2008-07-29 Christian Franke <franke@computer.org>
43361 * util/update-grub.in: Add a check for admin
43363 Remove old `grub.cfg.new' before creation.
43364 Add `-f' to `mv' to handle the different filesystem
43365 semantics of Windows.
43367 2008-07-29 Bean <bean123ch@gmail.com>
43369 * normal/main.c (get_line): Fix buffer overflow bug.
43371 2008-07-28 Robert Millan <rmh@aybabtu.com>
43373 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43374 (struct grub_apple_header): New struct. Describes the layout of
43375 the partmap header.
43376 (apple_partition_map_iterate): Check the header magic as well as the
43377 partition magic (which was already being checked).
43379 2008-07-28 Pavel Roskin <proski@gnu.org>
43381 * genmk.rb: Add a warning to the beginning of the output that
43382 it's a generated file and should not be edited.
43384 2008-07-28 Robert Millan <rmh@aybabtu.com>
43386 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43387 with the same number are found, just use issue a warning with
43388 grub_dprintf(), as this error has been reported to be non-fatal.
43390 2008-07-27 Robert Millan <rmh@aybabtu.com>
43392 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43395 2008-07-27 Bean <bean123ch@gmail.com>
43397 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43398 (grub_fat_find_dir): Ignore case when comparing filename.
43400 2008-07-27 Bean <bean123ch@gmail.com>
43402 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43403 smallino, as it's more descriptive, and i8count can be confused with
43404 the other field count.
43405 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43408 2008-07-27 Bean <bean123ch@gmail.com>
43410 * commands/crc.c: New file.
43412 * lib/crc.c: Likewise.
43414 * include/grub/lib/crc.h: Likewise.
43416 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43418 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43419 (hexdump): Move this function to ...
43421 * lib/hexdump.c: ... here.
43423 * include/grub/hexdump.h: Renamed to ...
43425 * include/grub/lib/hexdump.h: ... this.
43427 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43429 * util/grub-editenv.c: Likewise.
43431 * include/envblk.h: Renamed to ...
43433 * include/lib/envblk.h: ... this.
43435 * util/envblk.c: Renamed to ...
43437 * lib/envblk.c: ... this.
43439 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43441 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43442 (pkglib_MODULES): Add crc.mod.
43443 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43444 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43445 (crc_mod_SOURCES): New macro.
43446 (crc_mod_CFLAGS): Likewise.
43447 (crc_mod_LDFLAGS): Likewise.
43449 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43451 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43453 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43455 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43457 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43459 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43461 * commands/help.c: Include <grub/term.h>.
43462 (TERM_WIDTH): Removed. Updated all users.
43464 2008-07-27 Pavel Roskin <proski@gnu.org>
43466 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43467 spurious warnings about a comment within a comment.
43469 2008-07-25 Robert Millan <rmh@aybabtu.com>
43471 * util/getroot.c (find_root_device): Skip devices that match
43472 /dev/dm-[0-9]. This lets the real device be found for any type of
43473 abstraction (LVM, EVMS, RAID..).
43474 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43475 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43476 device is found first, find_root_device() will now skip it.
43478 2008-07-24 Pavel Roskin <proski@gnu.org>
43480 * include/grub/types.h: Use __builtin_bswap32() and
43481 __builtin_bswap64() with gcc 4.3 and newer.
43483 2008-07-24 Christian Franke <franke@computer.org>
43485 * util/i386/pc/grub-install.in: If `--debug' is specified,
43486 pass `--verbose' to grub-setup.
43487 Abort script if make_system_path_relative_to_its_root() fails.
43489 2008-07-24 Bean <bean123ch@gmail.com>
43491 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43492 variable `target_platform' should be `platform'.
43494 2008-07-24 Bean <bean123ch@gmail.com>
43496 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43497 (grub_png_init_fixed_block): New function.
43498 (grub_png_decode_image_data): Handle fixed huffman code compression.
43500 2008-07-24 Bean <bean123ch@gmail.com>
43502 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43503 (grub_pe2elf_SOURCES): New macro.
43504 (CLEANFILES): Add grub-pe2elf.
43506 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43507 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43508 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43509 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43510 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43511 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43512 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43513 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43514 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43515 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43516 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43517 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43518 (GRUB_PE32_DT_FUNCTION): Likewise.
43519 (GRUB_PE32_REL_I386_DIR32): Likewise.
43520 (GRUB_PE32_REL_I386_REL32): Likewise.
43521 (grub_pe32_symbol): New structure.
43522 (grub_pe32_reloc): Likewise.
43524 * util/grub-pe2elf.c: New file.
43526 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43527 start symbol in non pc platform.
43529 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43531 The following patches are from Christian Franke.
43533 * include/grub/dl.h: Remove .previous, gas supports this only
43536 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43537 Remove .type, gas supports this only for ELF format.
43539 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43540 nullbytes in symbol table. This fixes an infinite loop if table is
43543 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43544 TARGET_IMG_LDFLAGS and EXEEXT.
43546 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43547 TARGET_IMG_LDFLAGS_AC.
43548 (grub_CHECK_STACK_ARG_PROBE): New function.
43550 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43552 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43554 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43555 to set TARGET_IMG_LD* accordingly.
43556 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43557 Add call to grub_CHECK_STACK_ARG_PROBE.
43558 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43560 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43562 * genmk.rb: Add EXEEXT to CLEANFILES.
43564 2008-07-23 Robert Millan <rmh@aybabtu.com>
43566 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43567 define the codes for arrows and lines used for the menu).
43568 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43571 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43572 fonts, because the latter are too slow.
43574 2008-07-21 Bean <bean123ch@gmail.com>
43576 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43577 a20. Run keyboard test last, as it will cause macbook to halt.
43579 2008-07-18 Pavel Roskin <proski@gnu.org>
43581 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43582 load foreign architecture modules correctly anyway. Keep
43583 support for loading host architecture modules, whether we
43584 compile them or not.
43586 2008-07-17 Pavel Roskin <proski@gnu.org>
43588 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43589 change target_cpu. The compiler default can mismatch target_cpu
43592 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43593 * kern/efi/efi.c: Likewise.
43595 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43596 target compiler is functional.
43597 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43600 * configure.ac: Default to efi platform for x86_64-apple. Allow
43601 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43602 adjustments from the rest, only do them if target is not
43603 explicitly given. Merge other adjustments with the final sanity
43604 check. Remove an extraneous check for supported CPU. Be
43605 specific which CPU and which platform is not supported.
43607 * configure.ac: Default to pc platform for x86_64.
43609 2008-07-17 Robert Millan <rmh@aybabtu.com>
43611 Partial LinuxBIOS -> Coreboot rename.
43613 * conf/i386-linuxbios.rmk: Renamed to ...
43614 * conf/i386-coreboot.rmk: ... this.
43615 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43616 * configure.ac: Accept "coreboot" as input platform (but maintain
43617 compatibility with "linuxbios").
43618 * include/grub/i386/linuxbios: Renamed to ...
43619 * include/grub/i386/coreboot: ... this.
43621 2008-07-17 Bean <bean123ch@gmail.com>
43623 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43624 (appleldr_mod_SOURCE): New variable.
43625 (appleldr_mod_CFLAGS): Likewise.
43626 (appleldr_mod_LDFLAGS): Likewise.
43627 (pci_mod_SOURCES): Likewise.
43628 (pci_mod_CFLAGS): Likewise.
43629 (pci_mod_LDFLAGS): Likewise.
43630 (lspci_mod_SOURCES): Likewise.
43631 (lspci_mod_CFLAGS): Likewise.
43632 (lspci_mod_LDFLAGS): Likewise.
43634 * conf/x86_64-efi.rmk: New file.
43636 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43638 (grub_efidisk_write): Likewise.
43640 * include/efi/api.h (efi_call_0): New macro.
43641 (efi_call_1): Likewise.
43642 (efi_call_2): Likewise.
43643 (efi_call_3): Likewise.
43644 (efi_call_4): Likewise.
43645 (efi_call_5): Likewise.
43646 (efi_call_6): Likewise.
43648 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43649 grub_rescue_cmd_chainloader.
43651 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43652 (grub_pe32_optional_header): Change some fields based on i386 or
43654 (GRUB_PE32_PE32_MAGIC): Likewise.
43656 * include/grub/efi/uga_draw.h: New file.
43658 * include/grub/elf.h (STN_ABS): New constant.
43659 (R_X86_64_NONE): Relocation constant for x86_64.
43660 (R_X86_64_64): Likewise.
43661 (R_X86_64_PC32): Likewise.
43662 (R_X86_64_GOT32): Likewise.
43663 (R_X86_64_PLT32): Likewise.
43664 (R_X86_64_COPY): Likewise.
43665 (R_X86_64_GLOB_DAT): Likewise.
43666 (R_X86_64_JUMP_SLOT): Likewise.
43667 (R_X86_64_RELATIVE): Likewise.
43668 (R_X86_64_GOTPCREL): Likewise.
43669 (R_X86_64_32): Likewise.
43670 (R_X86_64_32S): Likewise.
43671 (R_X86_64_16): Likewise.
43672 (R_X86_64_PC16): Likewise.
43673 (R_X86_64_8): Likewise.
43674 (R_X86_64_PC8): Likewise.
43676 * include/grub/i386/efi/pci.h: New file.
43678 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43679 Change it value based on platform.
43680 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43681 (GRUB_E820_RAM): Likewise.
43682 (GRUB_E820_RESERVED): Likewise.
43683 (GRUB_E820_ACPI): Likewise.
43684 (GRUB_E820_NVS): Likewise.
43685 (GRUB_E820_EXEC_CODE): Likewise.
43686 (GRUB_E820_MAX_ENTRY): Likewise.
43687 (grub_e820_mmap): New structure.
43688 (linux_kernel_header): Change the efi field according to different
43689 kernel version, also field from linux_kernel_header.
43691 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43693 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43694 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43695 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43696 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43697 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43698 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43699 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43700 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43701 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43702 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43704 * include/grub/x86_64/efi/kernel.h: New file.
43706 * include/grub/x86_64/efi/loader.h: Likewise.
43708 * include/grub/x86_64/efi/machine.h: Likewise.
43710 * include/grub/x86_64/efi/pci.h: Likewise.
43712 * include/grub/x86_64/efi/time.h: Likewise.
43714 * include/grub/x86_64/linux.h: Likewise.
43716 * include/grub/x86_64/setjmp.h: Likewise.
43718 * include/grub/x86_64/time.h: Likewise.
43720 * include/grub/x86_64/types.h: Likewise.
43722 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43723 GRUB_TARGET_SIZEOF_VOID_P.
43725 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43726 (grub_efi_locate_handle): Likewise.
43727 (grub_efi_open_protocol): Likewise.
43728 (grub_efi_set_text_mode): Likewise.
43729 (grub_efi_stall): Likewise.
43730 (grub_exit): Likewise.
43731 (grub_reboot): Likewise.
43732 (grub_halt): Likewise.
43733 (grub_efi_exit_boot_services): Likewise.
43734 (grub_get_rtc): Likewise.
43736 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43737 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43738 (grub_efi_allocate_pages): Wrap efi calls.
43739 (grub_efi_free_pages): Wrap efi calls.
43740 (grub_efi_get_memory_map): Wrap efi calls.
43742 * kern/x86_64/dl.c: New file.
43744 * kern/x86_64/efi/callwrap.S: Likewise.
43746 * kern/x86_64/efi/startup.S: Likewise.
43748 * loader/efi/appleloader.c: Likewise.
43750 * loader/efi/chainloader.c (cmdline): New variable.
43751 (grub_chainloader_unload): Wrap efi calls.
43752 (grub_chainloader_boot): Likewise.
43753 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43756 * loader/efi/chainloader_normal.c (chainloader_command):
43757 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43760 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43762 (grub_e820_add_region): New function.
43763 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43765 (grub_find_video_card): New function.
43766 (grub_linux_setup_video): New function.
43767 (grub_rescue_cmd_linux): Probe for video information.
43769 * normal/x86_64/setjmp.S: New file.
43771 * term/efi/console.c (map_char): New function.
43772 (grub_console_putchar): Map unicode char.
43773 (grub_console_checkkey): Wrap efi calls.
43774 (grub_console_getkey): Likewise.
43775 (grub_console_getwh): Likewise.
43776 (grub_console_gotoxy): Likewise.
43777 (grub_console_cls): Likewise.
43778 (grub_console_setcolorstate): Likewise.
43779 (grub_console_setcursor): Likewise.
43781 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43783 2008-07-16 Pavel Roskin <proski@gnu.org>
43785 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43788 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43789 pointer, not an integer. This fixes a warning and prevents
43790 precision loss on 64-bit systems.
43791 (relocate_addresses): Remove unneeded cast.
43793 2008-07-15 Pavel Roskin <proski@gnu.org>
43795 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43797 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43799 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43800 Fix comparison between signed and unsigned.
43802 * include/grub/i386/ieee1275/console.h: Declare
43803 grub_console_init() and grub_console_fini().
43805 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43806 It's empty and unused.
43808 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43809 beginning to avoid warnings with some compilers.
43811 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43812 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43814 2008-07-14 Pavel Roskin <proski@gnu.org>
43816 * kern/env.c (grub_register_variable_hook): Don't copy empty
43817 string, it leaks memory. Pass "" to grub_env_set(), it should
43818 handle constant strings.
43820 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43821 * commands/cmp.c (grub_cmd_cmp): Likewise.
43822 * kern/dl.c (grub_dl_flush_cache): Likewise.
43823 (grub_dl_load_core): Likewise.
43824 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43825 (grub_elf64_load_phdrs): Likewise.
43827 2008-07-13 Pavel Roskin <proski@gnu.org>
43829 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43830 between signed and unsigned.
43831 (LzmaEnc_Finish): Fix warning about an unused parameter.
43833 2008-07-13 Bean <bean123ch@gmail.com>
43835 * Makefile.in (enable_lzo): New rule.
43837 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43839 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43841 * boot/i386/pc/lnxboot.S: #include <config.h>.
43843 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
43844 its value according to the compression algorithm used, lzo or lzma.
43846 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43847 compression algorithm according to configure macro.
43849 * kern/i386/pc/startup.S (codestart): Likewise.
43851 * kern/i386/pc/lzma_decode.S: New file.
43853 * include/grub/lib/LzFind.h: Likewise.
43855 * include/grub/lib/LzHash.h: Likewise.
43857 * include/grub/lib/LzmaDec.h: Likewise.
43859 * include/grub/lib/LzmaEnc.h: Likewise.
43861 * include/grub/lib/LzmaTypes.h: Likewise.
43863 * lib/LzFind.c: Likewise.
43865 * lib/LzmaDec.c: Likewise.
43867 * lib/LzmaEnc.c: Likewise.
43869 2008-07-13 Bean <bean123ch@gmail.com>
43871 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
43872 (grub_ext4_extent_header): New structure.
43873 (grub_ext4_extent): Likewise.
43874 (grub_ext4_extent_idx): Likewise.
43875 (grub_ext4_find_leaf): New function.
43876 (grub_ext2_read_block): Handle extents.
43878 2008-07-12 Robert Millan <rmh@aybabtu.com>
43880 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
43882 2008-07-11 Robert Millan <rmh@aybabtu.com>
43884 * util/grub.d/40_custom.in: New file. Example on how to add custom
43885 entries to /etc/grub.d.
43886 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
43887 40_custom (implicitly, by merging all the grub.d rules).
43889 2008-07-11 Pavel Roskin <proski@gnu.org>
43891 * commands/read.c (grub_getline): Fix invalid memory access.
43892 Don't add newline to the variable value.
43894 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
43895 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
43896 (serial_hw_get_port): Check validity of the port number.
43897 (grub_cmd_serial): Check return value of serial_hw_get_port().
43899 2008-07-07 Pavel Roskin <proski@gnu.org>
43901 * boot/i386/pc/diskboot.S (notification_string): Replace
43902 "Loading kernel" with just "loading". This is shorter, less
43903 confusing and saves a few bytes for possible future changes.
43905 2008-07-05 Pavel Roskin <proski@gnu.org>
43907 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
43908 size for ATAPI devices, they are undefined. Output sector
43909 number in decimal form.
43911 * disk/ata.c: Use named constants for status bits.
43913 2008-07-04 Pavel Roskin <proski@gnu.org>
43915 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
43916 grub_addr_t before casting it to the void pointer to fix a
43917 warning. Non-addressable regions are discarded earlier.
43918 (grub_arch_modules_addr): Cast _end to grub_addr_t.
43919 * kern/i386/linuxbios/table.c: Include grub/misc.h.
43920 (check_signature): Don't shadow table_header.
43921 (grub_linuxbios_table_iterate): Cast numeric constants to
43922 grub_linuxbios_table_header_t.
43923 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
43926 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
43929 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
43930 pointer, which can cause warnings. Support 64-bit addresses.
43932 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
43933 of sizeof(long). This fixes PowerPC image generation on x86_64.
43935 2008-07-04 Robert Millan <rmh@aybabtu.com>
43937 This fixes a performance issue when pc & gpt partmap iterators
43938 didn't abort iteration even after our hook found what it was
43939 looking for (often causing expensive probes of non-existent drives).
43941 Some callers relied on previous buggy behaviour, since they would
43942 raise an error when their own hooks caused early abortion of its
43945 * kern/device.c (grub_device_open): Improve error message.
43946 * disk/lvm.c (grub_lvm_open): Likewise.
43947 * disk/raid.c (grub_raid_open): Likewise.
43949 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
43950 when hook requests it, independently of grub_errno.
43951 (pc_partition_map_probe): Do not fail when find_func() caused
43952 early abortion of pc_partition_map_iterate().
43954 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
43955 when hook requests it, independently of grub_errno.
43956 (gpt_partition_map_probe): Do not fail when find_func() caused
43957 early abortion of gpt_partition_map_iterate().
43959 * kern/partition.c (grub_partition_iterate): Abort parent iteration
43960 when hook requests it, independently of grub_errno. Do not fail when
43961 part_map_iterate_hook() caused early abortion of p->iterate().
43963 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
43964 when grub_partition_iterate() returned with non-zero.
43966 2008-07-03 Pavel Roskin <proski@gnu.org>
43968 * disk/ata.c (grub_ata_pio_write): Check status before writing,
43969 like we do in grub_ata_pio_read().
43970 (grub_ata_readwrite): Always write individual sectors. Fix the
43971 sector count for the remainder.
43972 (grub_ata_write): Enable writing to ATA devices. Correctly
43973 report error for ATAPI devices.
43975 2008-07-02 Pavel Roskin <proski@gnu.org>
43977 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
43980 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
43981 for every read sector, we already increment it for the whole
43982 batch. This fixes reading more than 256 sectors at once.
43984 * util/grub-editenv.c (cmd_info): Cast argument to long
43985 explicitly. ptrdiff_t reduces to int on i386.
43987 * util/grub-editenv.c (main): Be specific which parameter is
43990 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
43991 (memdisk): Make memdisk_orig_addr a pointer.
43993 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
43994 for file offsets, use grub_off_t instead. Fix printf format
43997 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
43998 there. Real unexpected warnings should not drown in the noise
43999 about known problems.
44001 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44002 grub_disk_addr_t for memory addresses.
44004 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44005 explicitly to fix a warning.
44007 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44009 * Makefile.in (MODULE_LDFLAGS): New variable.
44010 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44011 the linker accepts --build-id=none.
44012 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44014 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44016 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44017 those in Linux XFS code. Provide a way to access 64-bit parent
44019 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44020 the end of struct grub_xfs_dir_header.
44022 2008-07-02 Bean <bean123ch@gmail.com>
44024 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44025 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44026 and GRUB_IEEE1275_FLAG_NO_ANSI.
44028 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44029 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44030 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44032 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44033 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44035 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44036 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44038 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44039 esc sequence on non ANSI terminal.
44040 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44042 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44045 2008-07-02 Bean <bean123ch@gmail.com>
44047 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44048 (grub_editenv_SOURCES): New variable.
44049 (pkglib_MODULES): Add loadenv.mod.
44050 (loadenv_mod_SOURCES): New variable.
44051 (loadenv_mod_CFLAGS): Likewise.
44052 (loadenv_mod_LDFLAGS): Likewise.
44054 * include/grub/envblk.h: New file.
44056 * util/envblk.c: New file.
44058 * util/grub-editenv.c: New file.
44060 * commands/loadenv.c: New file.
44062 2008-07-01 Pavel Roskin <proski@gnu.org>
44064 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44065 not unsigned char. This fixes warnings and is consistent with
44068 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44070 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44072 * term/tparm.c (analyze): Always set *popcount.
44074 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44075 cast to fix a warning.
44077 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44078 cast to suppress a warning.
44080 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44081 grub_fshelp_read_file() expects.
44083 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44084 write uuid as a 32-bit value in CPU byte order, so declare and
44087 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44088 long if the format specifier expects it.
44089 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44090 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44091 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44092 long to fix a warning.
44093 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44094 grub_dprintf() arguments to fix warnings.
44096 2008-06-30 Pavel Roskin <proski@gnu.org>
44098 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44099 install_bsd_part immediately before core.img is embedded or
44100 modified on disk. This fixes core.img verification if core.img
44101 cannot be embedded.
44103 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44104 core_path to calculate the blocklist.
44105 Patch from Javier Martín <lordhabbit@gmail.com>
44107 2008-06-29 Robert Millan <rmh@aybabtu.com>
44109 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44110 block to disk block.
44111 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44112 Patch from Niels Böhm <bitbucket@arcor.de>
44114 2008-06-29 Robert Millan <rmh@aybabtu.com>
44116 * util/update-grub_lib.in (font_path): Search for fonts in
44117 /boot/grub first, which is more likely to be readable (we aren't
44118 deciding where fonts live, just looking for them).
44120 2008-06-26 Pavel Roskin <proski@gnu.org>
44122 * util/biosdisk.c (read_device_map): Don't leave dead map
44123 entries for devices failing stat() check.
44125 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44126 core_path_dev for the core.img path on the target device.
44128 2008-06-26 Robert Millan <rmh@aybabtu.com>
44130 * disk/fs_uuid.c: New file.
44131 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44132 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44133 (fs_uuid_mod_LDFLAGS): New variables.
44134 * include/grub/disk.h (grub_disk_dev_id): Add
44135 `GRUB_DISK_DEVICE_UUID_ID'.
44136 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44137 implement iterate().
44139 2008-06-26 Robert Millan <rmh@aybabtu.com>
44141 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44142 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44143 Linux image includes no initrd.
44145 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44147 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44148 call to resolve the core image location that effectively appended the
44151 2008-06-21 Robert Millan <rmh@aybabtu.com>
44153 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44156 * util/grub.d/10_hurd.in: ... to here ...
44157 * util/grub.d/10_linux.in: ... and here.
44159 2008-06-19 Robert Millan <rmh@aybabtu.com>
44161 * kern/main.c (grub_main): Export `prefix' variable immediately
44162 after it has been set by grub_machine_set_prefix().
44164 2008-06-19 Robert Millan <rmh@aybabtu.com>
44166 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44167 search result when not saving to variable, not the other way around.
44168 When saving to variable, abort iteration as soon as a match is found.
44170 2008-06-19 Robert Millan <rmh@aybabtu.com>
44172 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44173 check for partition that provides /boot/grub. Its logic is flawed,
44174 as it prevents prepare_grub_to_access_device() from being called
44177 2008-06-19 Robert Millan <rmh@aybabtu.com>
44179 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44180 "insmod" command directly when abstraction modules are needed,
44181 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44182 since it had already been processed).
44184 2008-06-19 Pavel Roskin <proski@gnu.org>
44186 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44187 changed. This is needed in case GRUB_LIBDIR changes.
44188 * conf/i386-ieee1275.rmk: Likewise.
44189 * conf/i386-linuxbios.rmk: Likewise.
44190 * conf/i386-pc.rmk: Likewise.
44191 * conf/powerpc-ieee1275.rmk: Likewise.
44193 2008-06-18 Pavel Roskin <proski@gnu.org>
44195 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44196 kernel_elf_symlist.c to symlist.c for consistency with other
44197 architectures. Update all users.
44198 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44200 2008-06-18 Robert Millan <rmh@aybabtu.com>
44202 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44205 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44206 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44207 a RAID device, run setup() for all members independently on whether
44208 LVM abstraction is being used.
44209 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44210 If grub-mkimage has set `*install_dos_part == -2', don't override this
44212 Perform *install_dos_part adjustments independently on whether
44213 we're embedding or not.
44214 Clarify error message when image is too big for embedding.
44215 Remove duplicate *install_dos_part stanza.
44217 2008-06-17 Robert Millan <rmh@aybabtu.com>
44219 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44220 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44222 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44223 values in grub_ofconsole_normal_color and
44224 grub_ofconsole_highlight_color (they're not directly related to
44225 background and foreground).
44226 (grub_ofconsole_setcolorstate): Extract background and foreground
44227 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44229 2008-06-17 Robert Millan <rmh@aybabtu.com>
44231 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44232 /boot/grub for the check in last commit, not /boot (they could be
44233 different partitions).
44235 2008-06-16 Robert Millan <rmh@aybabtu.com>
44237 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44238 asked to setup access for the same partition that provides /boot,
44239 don't bother using UUIDs since our root already has the value we
44242 2008-06-16 Robert Millan <rmh@aybabtu.com>
44244 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44246 Patch from Sven Mueller <sven@debian.org>.
44248 2008-06-16 Robert Millan <rmh@aybabtu.com>
44250 * util/update-grub.in: Check for $EUID instead of $UID.
44251 Reported by Vincent Zweije.
44253 2008-06-16 Bean <bean123ch@gmail.com>
44255 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44256 (grub_ext2_read_block): Likewise.
44257 (grub_ext2_read_inode): Likewise.
44258 (grub_ext2_mount): Likewise.
44259 (grub_ext2_close): Likewise.
44260 (grub_ext3_get_journal): Removed.
44262 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44263 (grub_reiserfs_read_symlink): Likewise.
44264 (grub_reiserfs_mount): Likewise.
44265 (grub_reiserfs_open): Likewise.
44266 (grub_reiserfs_read): Likewise.
44267 (grub_reiserfs_close): Likewise.
44268 (grub_reiserfs_get_journal): Removed.
44270 * fs/fshelp.c (grub_fshelp_read): Removed.
44271 (grub_fshelp_map_block): Likewise.
44273 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44274 (grub_fshelp_journal): Likewise.
44275 (grub_fshelp_read): Likewise.
44276 (grub_fshelp_map_block): Likewise.
44278 2008-06-16 Pavel Roskin <proski@gnu.org>
44280 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44281 floating point anymore.
44282 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44284 2008-06-15 Pavel Roskin <proski@gnu.org>
44286 * commands/ls.c (grub_ls_list_files): Use integer calculations
44287 for human readable format, avoid floating point use.
44288 * kern/misc.c (grub_ftoa): Remove.
44289 (grub_vsprintf): Remove floating point support.
44291 2008-06-15 Robert Millan <rmh@aybabtu.com>
44293 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44295 Reported by Max Vozeler.
44297 2008-06-15 Robert Millan <rmh@aybabtu.com>
44299 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44300 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44302 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44303 the beginning of the prefix.
44305 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44306 It is assumed that if we have a memdisk, grub-mkimage has set
44307 grub_prefix to include the "(memdisk)" drive in it.
44309 2008-06-15 Robert Millan <rmh@aybabtu.com>
44311 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44312 Initialize keyboard controller after registering the terminal, so that
44313 grub_printf() can be called from grub_keyboard_controller_init().
44315 2008-06-15 Robert Millan <rmh@aybabtu.com>
44317 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44318 extent-btree which is written as big endian on disk.
44319 Reported by Alain Greppin <al@chilibi.org>.
44321 2008-06-14 Robert Millan <rmh@aybabtu.com>
44323 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44324 * util/i386/pc/grub-install.in (modules): Likewise.
44326 2008-06-13 Pavel Roskin <proski@gnu.org>
44328 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44330 2008-06-13 Bean <bean123ch@gmail.com>
44332 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44334 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44336 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44337 to indicate sparse block.
44339 2008-06-12 Pavel Roskin <proski@gnu.org>
44341 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44342 number, grub_fshelp_read() does it for us.
44344 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44345 linear disk read with journal translation.
44346 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44347 * include/grub/fshelp.h: Declare grub_fshelp_read().
44349 2008-06-09 Pavel Roskin <proski@gnu.org>
44351 * fs/minix.c (grub_minix_mount): Handle error reading
44354 2008-06-08 Robert Millan <rmh@aybabtu.com>
44356 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44357 don't append the RAID prefix afterwards.
44358 Reported by Clint Adams.
44360 2008-06-08 Robert Millan <rmh@aybabtu.com>
44362 Based on description from Pavel:
44363 * kern/disk.c (grub_disk_check_range): Rename to ...
44364 (grub_disk_adjust_range): ... this. Add a comment explaining the
44365 tasks performed by this function.
44367 2008-06-08 Robert Millan <rmh@aybabtu.com>
44369 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44370 `num_serial' (for consistency with other variables).
44371 (struct grub_ntfs_data): Add `uuid' member.
44372 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44373 (grub_ntfs_uuid): New function.
44374 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44376 2008-06-07 Pavel Roskin <proski@gnu.org>
44378 * util/biosdisk.c (open_device): Revert last change to the
44379 function, it broke installation. The sector needs to be
44380 different dependent on which device is opened.
44382 2008-06-06 Robert Millan <rmh@aybabtu.com>
44384 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44385 rest of GRUB, and breakage doesn't happen if its value were modified.
44387 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44388 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44389 a constant (same value).
44390 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44391 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44393 2008-06-06 Robert Millan <rmh@aybabtu.com>
44395 * util/biosdisk.c (open_device): Do not modify sector offset when
44396 accessing a partition. kern/disk.c already handles this for us.
44398 2008-06-06 Robert Millan <rmh@aybabtu.com>
44400 * util/grub-emu.c (grub_machine_init): Move code in this function from
44402 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44403 segfault in case grub_printf() is called).
44405 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44406 grub_probe. Update all users not to explicitly add it again.
44407 (grub_device): New variable; contains corresponding device for grubdir.
44408 (fs_module, partmap_module, devabstraction_module): Pass
44409 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44412 2008-06-05 Robert Millan <rmh@aybabtu.com>
44414 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44415 is found, print it (same layout as with labels).
44417 2008-06-04 Robert Millan <rmh@aybabtu.com>
44419 * util/biosdisk.c (get_drive): Rename to ...
44420 (find_grub_drive): ... this. Update all users.
44422 (get_os_disk): Rename to ...
44423 (convert_system_partition_to_system_disk): ... this. Update all users.
44425 (find_drive): Rename to ...
44426 (find_system_device): ... this. Update all users.
44428 2008-06-04 Robert Millan <rmh@aybabtu.com>
44430 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44431 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44432 (make_device_map): Likewise.
44434 2008-06-01 Robert Millan <rmh@aybabtu.com>
44436 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44437 before dereferencing it.
44439 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44440 union with fat12/fat16-specific ones. Add some new fields, including
44441 `num_serial' for both versions.
44442 (struct grub_fat_data): Add `uuid' member.
44443 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44444 names. Initialize `data->uuid' using `num_serial'.
44445 (grub_fat_uuid): New function.
44446 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44448 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44449 (grub_reiserfs_uuid): New function.
44450 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44453 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44454 (grub_xfs_uuid): New function.
44455 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44457 2008-06-01 Robert Millan <rmh@aybabtu.com>
44459 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44460 code that is backward compatible with pre-uuid search command.
44462 2008-05-31 Robert Millan <rmh@aybabtu.com>
44464 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44465 floppies after everything else, to ensure floppy drive isn't accessed
44466 unnecessarily (patch from Bean).
44468 2008-05-31 Robert Millan <rmh@aybabtu.com>
44470 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44471 not print device names when we were asked to set a variable.
44473 2008-05-31 Robert Millan <rmh@aybabtu.com>
44475 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44476 using "cursor-on" and "cursor-off" commands (understood at least by
44477 the Open Firmware flavour on OLPC).
44479 2008-05-31 Michael Gorven <michael@gorven.za.net>
44481 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44482 on and off sequences.
44484 2008-05-31 Robert Millan <rmh@aybabtu.com>
44486 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44487 * util/update-grub.in: Likewise.
44489 2008-05-30 Pavel Roskin <proski@gnu.org>
44491 * util/biosdisk.c (linux_find_partition): Simplify logic and
44492 make the code more universal. Keep special processing for
44493 devfs, but use a simple rule for all other devices. If the
44494 device ends with a number, append 'p' and the partition number.
44495 Otherwise, append only the partition number.
44497 2008-05-30 Robert Millan <rmh@aybabtu.com>
44499 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44500 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44501 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44502 the `root' parameter to Linux.
44504 2008-05-30 Robert Millan <rmh@aybabtu.com>
44506 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44507 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44508 --fs_uuid with --fs-uuid.
44509 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44510 all filesystems support them).
44512 2008-05-30 Robert Millan <rmh@aybabtu.com>
44514 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44515 grub_printf() flags, since we're printing in units of 2 bytes.
44517 2008-05-30 Robert Millan <rmh@aybabtu.com>
44519 * util/grub.d/00_header.in: Remove obsolete comment referencing
44520 convert_system_path_to_grub_path().
44521 * util/update-grub.in: Likewise.
44522 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44523 (convert_system_path_to_grub_path): Add a warning message explaining
44524 that this function is deprecated. Rely on is_path_readable_by_grub()
44525 for the readability checks.
44526 (font_path): Use is_path_readable_by_grub() for the readability
44527 check rather than convert_system_path_to_grub_path().
44529 2008-05-30 Robert Millan <rmh@aybabtu.com>
44531 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44532 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44533 converting it first.
44534 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44535 grub.cfg for access to font file, and afterwards call it again to set
44538 2008-05-30 Robert Millan <rmh@aybabtu.com>
44540 * commands/search.c (options): Add --fs_uuid option.
44541 (search_fs_uuid): New function.
44542 (grub_cmd_search): Fix --set argument passing.
44543 Use search_fs_uuid() when requested via --fs_uuid.
44544 (grub_search_init): Update help message.
44545 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44546 and redeclare it as an array of 16-bit words.
44547 (grub_ext2_uuid): New function.
44548 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44549 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44550 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44551 (GRUB_DEVICE_BOOT_UUID): New variables.
44552 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44553 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44555 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44556 just assume `root' variable has the right value.
44557 * util/grub.d/10_linux.in: Likewise.
44558 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44560 (main): Recognise `-t fs_uuid' argument.
44562 2008-05-30 Robert Millan <rmh@aybabtu.com>
44564 * util/biosdisk.c (map): Redefine structure to hold information
44565 about GRUB drive name.
44566 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44568 (call_hook): Remove.
44569 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44570 member. Assume drive has partitions.
44571 (grub_util_biosdisk_open): Access device names via `.device' struct
44573 (open_device): Likewise.
44574 (find_drive): Likewise.
44575 (read_device_map): Adjust map[] usage to match the new struct
44576 definition. Don't check for duplicates (still possible, but not cheap
44578 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44579 (make_device_name): Remove assumption of BIOS-like drive names.
44581 2008-05-30 Pavel Roskin <proski@gnu.org>
44583 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44584 compiling execute.c doesn't need grub_script.tab.h anymore.
44585 (normal/command.c_DEPENDENCIES): Likewise.
44586 (normal/function.c_DEPENDENCIES): Likewise.
44587 * conf/i386-ieee1275.rmk: Likewise.
44588 * conf/i386-linuxbios.rmk: Likewise.
44589 * conf/i386-pc.rmk: Likewise.
44590 * conf/powerpc-ieee1275.rmk: Likewise.
44591 * conf/sparc64-ieee1275.rmk: Likewise.
44593 2008-05-29 Pavel Roskin <proski@gnu.org>
44595 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44596 when scanning metadata for volume group name.
44598 * include/grub/script.h: Don't include grub_script.tab.h. It's
44599 a generated file, which may only be included from the files with
44600 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44601 use union YYSTYPE, as the later allows forward declaration.
44602 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44604 2008-05-29 Robert Millan <rmh@aybabtu.com>
44606 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44607 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44608 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44609 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44612 2008-05-29 Robert Millan <rmh@aybabtu.com>
44614 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44615 control key combinations.
44617 2008-05-29 Robert Millan <rmh@aybabtu.com>
44619 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44620 * util/ieee1275/grub-install.in: ... to here.
44621 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44622 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44623 (grub_install_SOURCES): Likewise.
44625 2008-05-29 Robert Millan <rmh@aybabtu.com>
44627 * fs/affs.c: Update copyright year.
44628 * fs/ext2.c: Likewise.
44629 * fs/fshelp.c: Likewise.
44630 * fs/hfsplus.c: Likewise.
44631 * fs/ntfs.c: Likewise.
44632 * fs/xfs.c: Likewise.
44633 * include/grub/fshelp.h: Likewise.
44634 * util/grub-mkdevicemap.c: Likewise.
44636 2008-05-28 Robert Millan <rmh@aybabtu.com>
44638 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44639 might need to be fatfs to support some firmware implementations
44642 2008-05-28 Robert Millan <rmh@aybabtu.com>
44644 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44646 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44647 (make_device_map): Likewise.
44649 2008-05-20 Bean <bean123ch@gmail.com>
44651 * fs/fshelp.c (grub_fshelp_map_block): New function.
44652 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44653 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44655 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44656 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44657 (grub_fshelp_journal): New structure.
44658 (grub_fshelp_map_block): New function prototype.
44659 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44660 (grub_fshelp_map_block): Likewise.
44662 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44663 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44664 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44665 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44666 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44667 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44668 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44669 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44670 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44671 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44672 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44673 (grub_ext2_sblock): New members for journal support.
44674 (grub_ext3_journal_header): New structure.
44675 (grub_ext3_journal_revoke_header): Likewise.
44676 (grub_ext3_journal_block_tag): Likewise.
44677 (grub_ext3_journal_sblock): Likewise.
44678 (grub_fshelp_node): New members logfile and journal.
44679 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44680 grub_fshelp_map_block to get real block number.
44681 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44683 (grub_ext2_read_inode): Likewise.
44684 (grub_ext3_get_journal): New function.
44685 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44686 (grub_ext2_close): Release memory used by journal.
44688 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44689 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44690 (grub_reiserfs_transaction_header): Renamed to
44691 grub_reiserfs_description_block, replace field data with real_blocks.
44692 (grub_reiserfs_commit_block): New structure.
44693 (grub_reiserfs_data): New member journal.
44694 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44696 (grub_reiserfs_read_symlink): Likewise.
44697 (grub_reiserfs_iterate_dir): Likewise.
44698 (grub_reiserfs_open): Likewise.
44699 (grub_reiserfs_read): Likewise.
44700 (grub_reiserfs_get_journal): New function.
44701 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44702 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44703 using grub_reiserfs_get_journal.
44704 (grub_reiserfs_close): Release memory used by journal.
44706 * fs/affs.c (grub_affs_read_block): Change block type to
44707 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44709 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44711 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44713 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44715 * fs/udf.c (grub_udf_read_block): Change block type to
44716 grub_disk_addr_t. Use type cast to avoid warning.
44718 * fs/xfs.c (grub_xfs_read_block): Likewise.
44720 2008-05-16 Christian Franke <franke@computer.org>
44722 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44723 to ensure that break with ESC will always work.
44724 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44725 Remove ESC from keyboard queue.
44727 2008-05-16 Christian Franke <franke@computer.org>
44729 * util/biosdisk.c: [__CYGWIN__] Add includes.
44730 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44731 (get_os_disk): Move variable declarations to OS specific
44732 parts to avoid warning.
44733 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44734 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44735 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44737 * util/getroot.c: [__CYGWIN__] Add includes.
44738 (strip_extra_slashes): Fix "/" case.
44739 [__CYGWIN__] (get_win32_path): New function.
44740 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44741 [__CYGWIN__] (find_root_device): Disable.
44742 [__CYGWIN__] (get_bootsec_serial): New function.
44743 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44744 [__linux__] (grub_guess_root_device): Add early returns to simplify
44746 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44747 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44748 check for Linux only.
44750 2008-05-15 Bean <bean123ch@gmail.com>
44752 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44753 keyboard hang problem in apple's intel mac.
44755 2008-05-09 Robert Millan <rmh@aybabtu.com>
44757 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44759 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44760 (make_device_map): Likewise.
44761 Reported by Aurelien Jarno <aurel32@debian.org>
44763 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44765 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44766 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44767 (make_device_map): Output entries for xvd type disks.
44769 2008-05-07 Robert Millan <rmh@aybabtu.com>
44771 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44773 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44774 (make_device_map): Likewise.
44775 Reported by Roland Dreier <rdreier@cisco.com>
44777 2008-05-07 Robert Millan <rmh@aybabtu.com>
44779 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44780 grub_strstr() call. Correct a few mistakes in failure path handling.
44782 2008-05-06 Robert Millan <rmh@aybabtu.com>
44784 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44785 Do not print a trailing slash (therefore, the root directory is an
44787 (convert_system_path_to_grub_path): Do not remove trailing slash
44788 from make_system_path_relative_to_its_root() output.
44790 * util/i386/pc/grub-install.in: Add trailing slash to output from
44791 make_system_path_relative_to_its_root().
44793 2008-05-06 Robert Millan <rmh@aybabtu.com>
44795 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44796 ensures that output lines aren't intermangled with those sent to
44797 stderr (via grub_util_info()).
44798 * util/grub-probe.c (grub_refresh): Likewise.
44799 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44801 2008-05-05 Christian Franke <franke@computer.org>
44803 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44804 Add Cygwin device names.
44805 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44806 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44807 (check_device): Return error instead of success on empty name.
44808 (make_device_map): Move label inside linux specific code to
44809 prevent compiler warning.
44811 2008-04-30 Robert Millan <rmh@aybabtu.com>
44813 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44814 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44816 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44818 2008-04-29 Robert Millan <rmh@aybabtu.com>
44820 * docs/grub.cfg: New file (example GRUB configuration).
44822 2008-04-26 Robert Millan <rmh@aybabtu.com>
44824 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44825 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44826 and `disk/ieee1275/nand.c'.
44828 2008-04-25 Bean <bean123ch@gmail.com>
44830 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44833 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44834 change the buffer size to 4096 for cdrom device.
44836 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44838 (_linux_mod_SOURCES): New variable.
44839 (_linux_mod_CFLAGS): Likewise.
44840 (_linux_mod_LDFLAGS): Likewise.
44841 (linux_mod_SOURCES): Likewise.
44842 (linux_mod_CFLAGS): Likewise.
44843 (linux_mod_LDFLAGS): Likewise.
44844 (nand_mod_SOURCES): Likewise.
44845 (nand_mod_CFLAGS): Likewise.
44846 (nand_mod_LDFLAGS): Likewise.
44848 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44849 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44850 type property. (nand device in olpc don't have this property)
44852 * include/grub/disk.h (grub_disk_dev_id): New macro
44853 GRUB_DISK_DEVICE_NAND_ID.
44855 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44856 function prototype.
44857 (grub_rescue_cmd_initrd): Likewise.
44859 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44860 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44861 ofw_cif_handler and ofw_idt, adjust padding number.
44863 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
44864 GRUB_MACHINE_IEEE1275 is defined.
44866 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
44867 Use NESTED_FUNC_ATTR attribute on the hook parameter.
44869 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
44870 on nested function heap_init.
44871 (grub_upper_mem): New variable for i386-ieee1275.
44872 (grub_get_extended_memory): New function for i386-ieee1275.
44873 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
44875 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
44876 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
44879 * loader/i386/ieee1275/linux.c: New file.
44881 * loader/i386/ieee1275/linux_normal.c: New file.
44883 * disk/ieee1275/nand.c: New file.
44885 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
44887 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
44889 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
44891 2008-04-18 Robert Millan <rmh@aybabtu.com>
44893 Restructures early code path on ieee1275 to unify grub_main() as
44894 the first C function that is executed in every platform.
44896 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
44897 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
44899 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
44900 * kern/ieee1275/cmain.c (cmain): Rename to ...
44901 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
44902 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
44905 2008-04-18 Robert Millan <rmh@aybabtu.com>
44907 * util/update-grub.in: Fix syntax error when setting
44908 `GRUB_PRELOAD_MODULES'.
44909 Reported by Stephane Chazelas <stephane@artesyncp.com>
44911 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
44913 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
44914 section into account, newer toolchains generate unique build ids
44915 * configure.ac: remove the test for --build-id=none acceptance,
44916 we want build ids to be preserved
44917 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
44918 far from other sections don't cause the raw binary images grow
44921 2008-04-15 Robert Millan <rmh@aybabtu.com>
44923 * disk/lvm.c: Update copyright year.
44924 * kern/misc.c: Likewise.
44926 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44928 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
44929 there is no memory left for physical volume name.
44931 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44933 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
44934 volume name mapping to support bigger than 9 character names properly.
44936 2008-04-13 Robert Millan <rmh@aybabtu.com>
44938 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
44939 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
44941 2008-04-13 Christian Franke <franke@computer.org>
44943 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
44944 to create a floppy emulation boot CD when non emulation mode
44946 Enable Joliet CD filesystem extension.
44948 2008-04-13 Robert Millan <rmh@aybabtu.com>
44950 * kern/misc.c (grub_strncat): Fix off-by-one error.
44951 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
44953 * kern/env.c (grub_env_context_close): Clear current context, not
44955 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
44957 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
44959 2008-04-13 Robert Millan <rmh@aybabtu.com>
44961 Improve robustness when handling LVM.
44963 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
44964 (and leave `*p' unmodified).
44965 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
44967 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
44968 iterating through it.
44969 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
44971 (grub_lvm_scan_device): Check the return value (and fail gracefully
44972 when due) on each grub_lvm_getvalue() or grub_strstr() call.
44973 Don't assume `vg->pvs != NULL' when iterating through it.
44975 2008-04-13 Robert Millan <rmh@aybabtu.com>
44977 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
44978 * genmk.rb (partmap): New variable.
44979 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
44980 (#{partmap}): New target rule.
44981 * genpartmaplist.sh: New file.
44982 * Makefile.in (pkglib_DATA): Add partmap.lst.
44983 (partmap.lst): New target rule.
44984 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
44985 modules (including all partition maps), instead of preloading them.
44987 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
44989 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
44990 `linux-boot-prober' (if installed) to detect other operating
44991 systems which are installed on the computer and add them to
44993 * conf/common.rmk: Build and install 30_os-prober.
44995 2008-04-12 Robert Millan <rmh@aybabtu.com>
44997 * kern/powerpc/ieee1275/init.c: Move from here ...
44998 * kern/ieee1275/init.c: ... to here. Update all users.
45000 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45001 * kern/ieee1275/cmain.c: ... to here. Update all users.
45003 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45004 * kern/ieee1275/openfw.c: ... to here. Update all users.
45006 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45007 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45009 2008-04-10 Pavel Roskin <proski@gnu.org>
45011 * configure.ac: Always use "_cv_" in cache variables for
45012 compatibility with Autoconf 2.62.
45014 2008-04-07 Robert Millan <rmh@aybabtu.com>
45016 Revert grub/machine/init.h addition by Pavel (since it breaks on
45017 i386-ieee1275 and others):
45018 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45019 * util/powerpc/ieee1275/misc.c: Likewise.
45021 2008-04-07 Robert Millan <rmh@aybabtu.com>
45023 * util/grub-probe.c (probe): Improve error message.
45025 2008-04-07 Robert Millan <rmh@aybabtu.com>
45027 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45028 (this prevents the presence of a bogus entry from ruining the whole
45031 2008-04-06 Pavel Roskin <proski@gnu.org>
45033 * util/biosdisk.c: Include grub/util/biosdisk.h.
45034 * util/grub-fstest.c (execute_command): Make static.
45035 * util/grub-mkdevicemap.c (check_device): Likewise.
45036 * util/i386/pc/misc.c: Include grub/machine/init.h.
45037 * util/powerpc/ieee1275/misc.c: Likewise.
45038 * util/lvm.c: Include grub/util/lvm.h.
45039 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45041 * util/raid.c: Include grub/util/raid.h.
45042 (grub_util_getdiskname): Make static.
45044 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45045 grub_hostfs_fini(), as they are called from grub_init_all() and
45046 grub_fini_all() respectively. This fixes an infinite loop in
45047 grub-fstest due to double registration of hostfs.
45048 Reported by Christian Franke <Christian.Franke@t-online.de>
45050 2008-04-05 Pavel Roskin <proski@gnu.org>
45052 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45053 all 8 functions. Otherwise, probe function 0 only.
45055 2008-04-04 Pavel Roskin <proski@gnu.org>
45057 * commands/lspci.c (grub_lspci_iter): Print the bus number
45060 * commands/lspci.c (grub_pci_classes): Fix typos.
45061 (grub_lspci_iter): Don't print func twice. Print vendor ID
45062 before device ID, as it's normally done.
45064 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45065 Fix signedness warnings.
45066 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45068 * util/ieee1275/get_disk_name.c: Include config.h so that
45069 _GNU_SOURCE is defined and getline() is declared. Mark an
45070 unused argument as such. Fix a signedness warning.
45072 2008-04-02 Pavel Roskin <proski@gnu.org>
45074 * genkernsyms.sh.in: Use more robust assignments for CC and
45075 srcdir. Quote srcdir.
45076 * gensymlist.sh.in: Likewise. Assert at the compile time that
45077 the symbol table is not empty.
45079 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45080 * fs/cpio.c (grub_cpio_read): Likewise.
45082 2008-04-01 Pavel Roskin <proski@gnu.org>
45084 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45085 * disk/host.c (grub_host_open): Likewise.
45086 * disk/loopback.c (grub_loopback_open): Likewise.
45087 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45088 disk->id as in disk/host.c, not a multi-character constant.
45090 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45091 later is obsolete, potentially dangerous and sets a bad example.
45092 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45093 * util/misc.c (grub_util_get_image_size): Likewise.
45095 * disk/loopback.c (options): Improve help for "--partitions".
45097 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45098 options to align them with the short options, e.g. "echo -e".
45100 2008-03-31 Bean <bean123ch@gmail.com>
45102 * video/reader/png.c (grub_png_data): New member is_16bit and
45104 (grub_png_decode_image_header): Detect 16 bit png image.
45105 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45106 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45107 (grub_video_reader_png): Release memory occupied by image_data.
45109 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45111 (grub_nfs_mount): Skip the test for sector per cluster.
45113 * include/grub/ntfs.h (MAX_SPC): Removed.
45115 2008-03-31 Bean <bean123ch@gmail.com>
45117 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45118 (grub_probe_SOURCES): Add fs/afs.c.
45119 (grub_fstest_SOURCES): Likewise.
45120 (afs_mod_SOURCES): New variable.
45121 (afs_mod_CFLAGS): Likewise.
45122 (afs_mod_LDFLAGS): Likewise.
45124 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45125 (grub_emu_SOURCES): Likewise.
45127 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45129 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45131 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45133 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45135 * fs/afs.c: New file.
45137 2008-03-30 Pavel Roskin <proski@gnu.org>
45139 * disk/host.c: Include grub/misc.h to fix a warning.
45140 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45141 warnings about implicit declarations.
45143 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45145 * include/grub/i386/loader.h: Change declaration of
45146 grub_linux_boot() to match what grub_loader_set() expects.
45147 * util/getroot.c (grub_guess_root_device): Return const char* to
45149 * util/grub-probe.c (probe): Fix a warning about uninitialized
45150 abstraction_name variable.
45151 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45152 second argument as unused to fix a warning.
45154 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45155 missing grub_error() call.
45157 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45158 2.60 and newer uses it to define datadir.
45160 * commands/sleep.c: Fix warning about implicit declaration.
45161 * disk/memdisk.c: Likewise.
45162 * loader/aout.c: Likewise.
45163 * loader/i386/bsd_normal.c: Likewise.
45164 * util/grub-probe.c: Likewise.
45166 * commands/i386/cpuid.c (has_longmode): Make static.
45167 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45168 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45170 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45171 GDT. This is more robust, as %ds can change.
45172 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45173 calling real_to_prot().
45174 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45176 2008-03-28 Pavel Roskin <proski@gnu.org>
45178 * kern/i386/pc/startup.S: Assert that uncompressed functions
45179 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45180 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45181 code, as they push parts of the code (error handlers) beyond
45182 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45183 code as correctness and size.
45185 2008-03-28 Pavel Roskin <proski@gnu.org>
45187 * kern/i386/pc/startup.S
45188 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45189 data block address to the real mode, keep offset minimal. This
45190 works around a bug in AWARD BIOS on old Athlon systems, which
45191 makes CD detection hang.
45193 2008-03-26 Pavel Roskin <proski@gnu.org>
45195 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45197 * include/grub/normal.h: Add grub_parse_color_name_pair()
45200 2008-03-24 Bean <bean123ch@gmail.com>
45202 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45203 (cd_count): Removed.
45204 (cd_drive): New variable.
45205 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45206 (grub_biosdisk_call_hook): Likewise.
45207 (grub_biosdisk_iterate): Change cdrom detection method.
45208 (grub_biosdisk_open): Replace cd_start with cd_drive.
45209 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45210 detect cdrom device.
45212 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45214 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45215 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45216 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45217 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45218 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45219 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45220 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45221 (grub_biosdisk_cdrp): New structure.
45222 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45224 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45226 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45229 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45232 2008-03-20 Robert Millan <rmh@aybabtu.com>
45234 Remove 2 TiB limit in ata.mod.
45235 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45236 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45237 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45238 grub_uint64_t instead of grub_uint32_t.
45240 2008-03-05 Bean <bean123ch@gmail.com>
45242 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45243 (grub_multiboot): Set boot device.
45245 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45247 2008-03-02 Bean <bean123ch@gmail.com>
45249 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45252 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45254 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45257 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45260 * docs/fdl.texi: New file.
45262 * docs/mdate-sh: New file. Copied from gnulib.
45263 * docs/texinfo.tex: Likewise.
45265 * config.guess: Updated from gnulib.
45266 * install-sh: Likewise.
45268 2008-02-28 Robert Millan <rmh@aybabtu.com>
45270 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45271 (aout_mod_SOURCES): New variable.
45272 (aout_mod_CFLAGS): Likewise.
45273 (aout_mod_LDFLAGS): Likewise.
45275 * conf/i386-ieee1275.rmk: Likewise.
45277 2008-02-28 Robert Millan <rmh@aybabtu.com>
45279 * util/update-grub.in: Reorganise terminal validity check. Accept
45280 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45281 Based on suggestion by Franklin PIAT.
45283 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45285 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45287 * util/getroot.c (grub_util_check_block_device): New function that
45288 returns the given argument if it is a block device and returns NULL else.
45289 * util/grub-probe.c (argument_is_device): New variable.
45290 (probe): Promote device_name from a variable to an argument. Receive
45291 device_name from grub_util_check_block_device() if path is NULL and from
45292 grub_guess_root_device() else. Do not free() device_name anymore.
45293 (options): Introduce new parameter '-d, --device'.
45294 (main): Add description of the new parameter to the help screen.
45295 Rename path variable to argument. Set argument_is_device if the '-d'
45296 option is given. Pass argument to probe() depending on
45297 argument_is_device.
45299 2008-02-24 Bean <bean123ch@gmail.com>
45301 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45302 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45303 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45304 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45305 (GRUB_ISO9660_VOLDESC_END): Likewise.
45306 (grub_iso9660_primary_voldesc): New member escape.
45307 (grub_iso9660_data): New member joliet.
45308 (grub_iso9660_convert_string): New function.
45309 (grub_iso9660_mount): Detect joliet extension.
45310 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45311 (grub_iso9660_iso9660_label): Likewise.
45313 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45314 (grub_setup_SOURCES): Add fs/udf.c.
45315 (grub_fstest_SOURCES): Likewise.
45316 (udf_mod_SOURCES): New variable.
45317 (udf_mod_CFLAGS): Likewise.
45318 (udf_mod_LDFLAGS): Likewise.
45320 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45321 (grub_emu_SOURCES): Likewise.
45323 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45325 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45327 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45329 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45331 * fs/udf.c: New file.
45333 2008-02-24 Robert Millan <rmh@aybabtu.com>
45335 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45336 (normal/lexer.c_DEPENDENCIES): New variables.
45337 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45338 (normal/lexer.c_DEPENDENCIES): Likewise.
45339 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45340 (normal/lexer.c_DEPENDENCIES): Likewise.
45341 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45342 (normal/lexer.c_DEPENDENCIES): Likewise.
45343 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45344 (normal/lexer.c_DEPENDENCIES): Likewise.
45345 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45346 (normal/lexer.c_DEPENDENCIES): Likewise.
45348 2008-02-23 Robert Millan <rmh@aybabtu.com>
45350 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45351 since they were intended to be in hex. This didn't break previously
45352 because of a bug in gpt_partition_map_iterate() (see below).
45354 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45355 when checking the validity of GPT header.
45356 Remove `partno', since it always provides the same information as `i'.
45358 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45360 * include/grub/efi/time.h: Fix a wrong comment.
45362 2008-02-19 Pavel Roskin <proski@gnu.org>
45364 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45367 2008-02-19 Bean <bean123ch@gmail.com>
45369 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45370 (aout_mod_SOURCES): New variable.
45371 (aout_mod_CFLAGS): Likewise.
45372 (aout_mod_LDFLAGS): Likewise.
45373 (_bsd_mod_SOURCES): New variable.
45374 (_bsd_mod_CFLAGS): Likewise.
45375 (_bsd_mod_LDFLAGS): Likewise.
45376 (bsd_mod_SOURCES): New variable.
45377 (bsd_mod_CFLAGS): Likewise.
45378 (bsd_mod_LDFLAGS): Likewise.
45380 * include/grub/aout.h: New file.
45382 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45384 * include/grub/i386/bsd.h: New file.
45386 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45389 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45390 function is called, so that it's possible to change it inside the hook.
45391 (grub_elf64_load): Likewise.
45392 (grub_elf_file): Don't close the file if elf header is not found.
45393 (grub_elf_close): Close the file if grub_elf_file fails (The new
45394 grub_elf_file won't close it).
45395 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45396 (grub_elf64_size): Likewise.
45398 * kern/i386/loader.S (grub_unix_real_boot): New function.
45400 * loader/aout.c: New file.
45402 * loader/i386/bsd.c: New file.
45404 * loader/i386/bsd_normal.c: New file.
45406 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45408 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45409 can test other formats.
45411 2008-02-19 Robert Millan <rmh@aybabtu.com>
45413 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45414 (grub_gpt_partition_type_empty): Redefine with macro from
45415 `<grub/gpt_partition.h>'.
45416 (gpt_partition_map_iterate): Adjust partition type comparison.
45418 Export `entry' as partmap-specific `part.data' struct.
45419 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45421 * include/grub/gpt_partition.h (grub_gpt_header)
45422 (grub_gpt_partentry): ... to here (new file).
45424 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45426 (grub_gpt_partition_type_bios_boot): New const variable, defined
45427 with macro from `<grub/gpt_partition.h>'.
45429 (setup): Replace `first_start' with `embed_region', which keeps
45430 track of the embed region (and is partmap-agnostic).
45432 Replace find_first_partition_start() with find_usable_region(),
45433 which finds a usable region for embedding using partmap-specific
45434 knowledge (supports PC/MSDOS and GPT).
45436 Fix all assumptions that the embed region start at sector 1, using
45437 `embed_region.start' from now on. Similarly, use `embed_region.end'
45438 rather than `first_start' to calculate available size.
45440 In grub_util_info() message, replace "into after the MBR" with an
45441 indication of the specific sector our embed region starts at.
45443 2008-02-19 Robert Millan <rmh@aybabtu.com>
45445 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45446 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45447 `commands/reboot.c'.
45448 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45449 (halt_mod_SOURCES): Likewise.
45450 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45451 (halt_mod_SOURCES): Likewise.
45453 2008-02-17 Christian Franke <franke@computer.org>
45455 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45457 2008-02-17 Robert Millan <rmh@aybabtu.com>
45459 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45460 set `first_start' to 0 for non-PC/MSDOS partition maps.
45462 2008-02-16 Robert Millan <rmh@aybabtu.com>
45464 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45465 do not assume partition map is PC/MSDOS before performing checks that
45466 are specific to that layout.
45468 2008-02-13 Robert Millan <rmh@aybabtu.com>
45470 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45471 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45472 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45474 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45476 * configure.ac: Only a cosmetic change on the handling of
45477 -fno-stack-protector.
45479 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45481 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45482 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45484 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45485 (halt_mod_SOURCES): New variable.
45486 (halt_mod_CFLAGS): Likewise.
45487 (halt_mod_LDFLAGS): Likewise.
45488 (reboot_mod_SOURCES): Likewise.
45489 (reboot_mod_CFLAGS): Likewise.
45490 (reboot_mod_LDFLAGS): Likewise.
45492 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45493 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45495 (halt_mod_SOURCES): Likewise.
45496 (reboot_mod_SOURCES): Likewise.
45498 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45499 commands/i386/pc/reboot.c by commands/reboot.c.
45500 (reboot_mod_SOURCES): Likewise.
45502 * commands/i386/pc/reboot.c: merge this file ...
45504 * commands/ieee1275/reboot.c: ... and this file ...
45506 * commands/reboot.c: ... to this file.
45507 Add some precompiler directive to include the correct header for
45510 * commands/ieee1275/halt.c: move this file ...
45512 * commands/halt.c: ... to here.
45513 Add some precompiler directive to include the correct header for
45516 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45517 (grub_halt): Likewise.
45519 * kern/efi/efi.c (grub_reboot): New function.
45520 (grub_halt): Likewise.
45522 2008-02-12 Robert Millan <rmh@aybabtu.com>
45524 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45525 /dev (like it is done for /dev/mapper). This doesn't provide support
45526 for EVMS, but at least it is now easy to identify the problem when it
45529 2008-02-11 Robert Millan <rmh@aybabtu.com>
45531 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45532 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45533 comparing it with -1, not 0.
45535 2008-02-10 Robert Millan <rmh@aybabtu.com>
45537 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45539 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45540 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45542 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45543 `disk/lvm.c' to the end of the list.
45544 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45545 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45547 2008-02-10 Robert Millan <rmh@aybabtu.com>
45549 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45550 grub_print_error() instead. This will let user know why we're entering
45552 Based on suggestions from Sam Morris.
45554 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45556 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45557 on remaining N args, instead of "--" arg N times.
45559 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45561 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45562 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45563 pattern for unknown glyphs.
45565 2008-02-09 Robert Millan <rmh@aybabtu.com>
45567 * configure.ac: Probe for `help2man'.
45568 * Makefile.in (builddir): New variable.
45569 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45570 or otherwise add a few flags/options to it.
45571 (install-local): For every executable utility or script that is
45572 installed, invoke $(HELP2MAN) to install a manpage based on --help
45575 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45576 that it doesn't prevent --help from working in build tree.
45578 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45579 with `bug-grub@gnu.org'.
45580 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45581 * util/update-grub.in (usage): New function.
45582 Implement proper argument check, with support for --help and --version
45583 (as well as existing -y).
45585 2008-02-09 Christian Franke <franke@computer.org>
45587 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45588 avoid overwriting previous output.
45589 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45591 2008-02-09 Robert Millan <rmh@aybabtu.com>
45593 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45596 2008-02-09 Robert Millan <rmh@aybabtu.com>
45598 * commands/sleep.c: New file.
45599 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45600 (sleep_mod_SOURCES): New variable.
45601 (sleep_mod_CFLAGS): Likewise.
45602 (sleep_mod_LDFLAGS): Likewise.
45604 2008-02-09 Robert Millan <rmh@aybabtu.com>
45606 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45607 situations in which we can deduce the RAID size and the superblock
45610 2008-02-09 Robert Millan <rmh@aybabtu.com>
45612 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45613 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45614 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45616 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45617 and return a grub_diskmemberlist_t composed of physical array members.
45618 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45620 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45622 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45623 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45624 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45626 * util/grub-probe.c (probe): Move partmap probing code from here ...
45627 (probe_partmap): ... to here.
45628 (probe): Use probe_partmap() once for the disk we're probing, and
45629 additionally, when such disk contains a memberlist() struct member,
45630 once for each disk that is contained in the structure returned by
45633 2008-02-09 Robert Millan <rmh@aybabtu.com>
45635 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45636 environment variable to 'all' in order to obtain debug output from
45638 * util/i386/pc/grub-setup.c (main): Likewise.
45640 2008-02-08 Robert Millan <rmh@aybabtu.com>
45642 * disk/raid.c (grub_raid_scan_device): Check for
45643 `array->device[sb.this_disk.number]' rather than for
45644 `array->device[sb.this_disk.number]->name', since the latter is not
45645 guaranteed to be accessible.
45647 2008-02-08 Robert Millan <rmh@aybabtu.com>
45649 * disk/raid.c: Update copyright.
45650 * fs/cpio.c: Likewise.
45651 * include/grub/raid.h: Likewise.
45652 * loader/i386/pc/multiboot.c: Likewise.
45653 * util/hostfs.c: Likewise.
45655 2008-02-08 Robert Millan <rmh@aybabtu.com>
45657 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45658 to a grub_disk_t array.
45659 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45661 (grub_raid_scan_device): Replace `device[x].name' accesses with
45662 `device[x]->name'. Simplify initialization of `array->device[x]'.
45664 2008-02-08 Robert Millan <rmh@aybabtu.com>
45666 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45667 grub_dprintf() calls.
45668 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45671 2008-02-07 Christian Franke <franke@computer.org>
45673 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45674 instead of fseek and ftell to support large files.
45675 (grub_hostfs_read): Likewise.
45677 2008-02-07 Robert Millan <rmh@aybabtu.com>
45679 Patch from Jeroen Dekkers.
45680 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45681 failure, since successfully reading all array members might not be
45684 2008-02-06 Robert Millan <rmh@aybabtu.com>
45686 * util/grub-probe.c (probe): Simplify partmap probing (with the
45687 assumption that the first word up to the underscore equals to
45690 2008-02-06 Christian Franke <franke@computer.org>
45692 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45693 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45694 last block of a cpio or tar stream.
45695 Check for "TRAILER!!!" instead of any empty data
45696 block to detect last block of a cpio stream.
45697 (grub_cpio_dir): Fix constness of variable np.
45698 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45699 cpio or tar trailer is detected. This fixes a crash
45700 on open of a non existing file.
45702 2008-02-05 Bean <bean123ch@gmail.com>
45704 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45706 (grub_multiboot_load_elf64): Likewise.
45707 (grub_multiboot): Initialize mbi structure.
45709 * util/grub-fstest.c: Don't include unused header file script.h.
45711 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45713 (grub_fstest_SOURCES): Likewise.
45715 2008-02-05 Robert Millan <rmh@aybabtu.com>
45717 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45718 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45719 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45720 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45722 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45723 (translation_table): Replace hardcoded values with macros
45724 provided by `<grub/term.h>'.
45726 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45727 (keyboard_map): Correct/add a few values, with macros provided
45728 by `<grub/term.h>'.
45729 (keyboard_map_shift): Zero values that don't differ from their
45730 `keyboard_map' equivalents.
45731 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45732 Discard the second scan code that is always sent by Caps lock.
45733 Only use `keyboard_map_shift' when it provides a non-zero value,
45734 otherwise fallback to `keyboard_map'.
45736 2008-02-04 Bean <bean123ch@gmail.com>
45738 * Makefile.in (enable_grub_fstest): New variable.
45740 * conf/common.rmk (grub_fstest_init.lst): New rule.
45741 (grub_fstest_init.h): Likewise.
45742 (grub_fstest_init.c): Likewise.
45743 (util/grub-fstest.c_DEPENDENCIES): New variable.
45744 (grub_fstest_SOURCES): Likewise.
45746 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45748 * util/grub-fstest.c: New file.
45750 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45752 Make grub-setup handle a separate root device.
45754 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45755 so that the root device can be compared with the destination
45757 When embedding the core image, if the root and destination devices
45758 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45760 When not embedding, set ROOT_DRIVE to 0xFF.
45762 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45764 Add support for having a grub directory in a different drive. This
45765 is still only the data handling part.
45767 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45768 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45769 (grub_root_drive): New variable.
45771 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45772 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45773 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45776 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45778 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45780 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45782 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45783 is bogus, because PXE booting does not specify any drive
45786 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45787 am not sure if this is really correct.
45789 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45790 is always identical to the boot drive when booting from a CD.
45792 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45794 (root_drive): New variable.
45795 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45796 (setup_sectors): Push %dx right after popping it, because %dh will
45798 (copy_buffer): Restore %dx.
45800 2008-02-03 Robert Millan <rmh@aybabtu.com>
45802 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45803 use `cdboot.img' for cdrom images.
45805 2008-02-03 Robert Millan <rmh@aybabtu.com>
45807 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45808 only setup gfxterm when `font' command has succeeded.
45810 2008-02-03 Robert Millan <rmh@aybabtu.com>
45812 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45813 (grub_rescue_cmd_multiboot_loader)
45814 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45816 2008-02-03 Pavel Roskin <proski@gnu.org>
45818 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45819 %edx and %esi from stack only after grub_gate_a20() is called.
45820 grub_gate_a20() clobbers %edx.
45822 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45824 * configure.ac (AC_INIT): Bumped to 1.96.
45826 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45827 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45828 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45829 video/readers/png.c.
45831 2008-02-03 Bean <bean123ch@gmail.com>
45833 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45834 (cdboot_img_SOURCES): New variable.
45835 (cdboot_img_ASFLAGS): New variable.
45836 (cdboot_img_LDFLAGS): New variable.
45838 * boot/i386/pc/cdboot.S: New file.
45840 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45841 (cd_count): Likewise.
45842 (grub_biosdisk_get_drive): Add support for cd device.
45843 (grub_biosdisk_call_hook): Likewise.
45844 (grub_biosdisk_iterate): Likewise.
45845 (grub_biosdisk_open): Likewise.
45846 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45847 (grub_biosdisk_rw): Support reading from cd device.
45848 (GRUB_MOD_INIT): Iterate cd devices.
45850 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45851 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45852 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45854 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45856 2008-02-02 Robert Millan <rmh@aybabtu.com>
45858 * commands/read.c: New file.
45859 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45860 (read_mod_SOURCES): New variable.
45861 (read_mod_CFLAGS): Likewise.
45862 (read_mod_LDFLAGS): Likewise.
45864 2008-02-02 Robert Millan <rmh@aybabtu.com>
45866 * normal/main.c (grub_normal_execute): Check for `menu->size' when
45867 determining whether menu has to be displayed.
45869 2008-02-02 Marco Gerards <marco@gnu.org>
45871 * bus/pci.c: New file.
45873 * include/grub/pci.h: Likewise.
45875 * include/grub/i386/pc/pci.h: Likewise.
45877 * commands/lspci.c: Likewise.
45879 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
45881 (pci_mod_SOURCES): New variable.
45882 (pci_mod_CFLAGS): Likewise.
45883 (pci_mod_LDFLAGS): Likewise.
45884 (lspci_mod_SOURCES): Likewise.
45885 (lspci_mod_CFLAGS): Likewise.
45886 (lspci_mod_LDFLAGS): Likewise.
45888 2008-02-02 Bean <bean123ch@gmail.com>
45890 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
45891 (grub_ufs_get_file_block): Fix indirect block calculation problem.
45893 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
45894 (grub_xfs_btree_node): New structure.
45895 (grub_xfs_btree_root): New structure.
45896 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
45897 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
45898 (GRUB_XFS_EXTENT_BLOCK): Likewise.
45899 (GRUB_XFS_EXTENT_SIZE): Likewise.
45900 (grub_xfs_read_block): Support btree format type.
45901 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
45902 Use directory block as basic unit.
45904 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
45906 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
45907 __attribute__ ((__regparm__ (1))).
45909 2008-02-01 Robert Millan <rmh@aybabtu.com>
45911 Correct a mistake in previous commit.
45913 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
45915 (normal/command.c_DEPENDENCIES): New variable.
45917 2008-02-01 Robert Millan <rmh@aybabtu.com>
45919 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
45921 (normal/command.c_DEPENDENCIES): New variable.
45922 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
45923 * conf/i386-ieee1275.rmk: Likewise.
45924 * conf/i386-linuxbios.rmk: Likewise.
45925 * conf/i386-pc.rmk: Likewise.
45926 * conf/sparc64-ieee1275.rmk: Likewise.
45927 * conf/powerpc-ieee1275.rmk: Likewise.
45928 (grub_emu_SOURCES): Add `fs/fshelp.c'.
45930 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
45932 2008-02-01 Robert Millan <rmh@aybabtu.com>
45934 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
45935 call at beginning of function.
45937 2008-01-31 Pavel Roskin <proski@gnu.org>
45939 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
45940 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
45941 (grub_mkrescue_SOURCES): Likewise.
45942 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
45944 2008-01-30 Robert Millan <rmh@aybabtu.com>
45946 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
45947 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
45948 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
45949 (grub_probe_SOURCES): ... to here.
45951 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
45952 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
45953 * conf/i386-ieee1275.rmk: Likewise.
45954 * conf/i386-linuxbios.rmk: Likewise.
45955 * conf/powerpc-ieee1275.rmk: Likewise.
45957 2008-01-30 Tristan Gingold <gingold@free.fr>
45959 * kern/rescue.c: Silently accept empty lines.
45961 2008-01-29 Bean <bean123ch@gmail.com>
45963 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
45964 (real_code_2): Code cleanup and change comment style.
45965 (move_memory): Avoid using 32-bit address mode.
45967 2008-01-29 Bean <bean123ch@gmail.com>
45969 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
45970 (png_mod_SOURCES): New variable.
45971 (png_mod_CFLAGS): Likewise.
45972 (png_mod_LDFLAGS): Likewise.
45974 * video/readers/png.c: New file.
45976 2008-01-28 Robert Millan <rmh@aybabtu.com>
45978 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
45979 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
45980 `ifndef GRUB_MOD_GAP' hack.
45981 * util/elf/grub-mkimage.c (add_segments): Likewise.
45983 2008-01-27 Robert Millan <rmh@aybabtu.com>
45985 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
45986 `GRUB_MOD_GAP' for platforms in which it's not defined.
45987 * util/elf/grub-mkimage.c (add_segments): Likewise.
45989 2008-01-27 Robert Millan <rmh@aybabtu.com>
45991 Get grub-emu to build again (including parallel builds).
45993 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
45995 (util/grub-emu.c_DEPENDENCIES): ... this, ...
45996 (normal/execute.c_DEPENDENCIES): ... this, ...
45997 (grub-emu_DEPENDENCIES): ... and this.
45999 * conf/i386-efi.rmk: Likewise.
46000 * conf/i386-linuxbios.rmk: Likewise.
46001 * conf/i386-ieee1275.rmk: Likewise.
46002 * conf/powerpc-ieee1275.rmk: Likewise.
46003 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46005 2008-01-27 Robert Millan <rmh@aybabtu.com>
46007 * NEWS: Add a few items.
46009 2008-01-27 Robert Millan <rmh@aybabtu.com>
46011 Fix parallel builds with grub-emu. Based on earlier commit for
46012 grub-probe and grub-setup.
46014 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46015 (util/grub-emu.c_DEPENDENCIES): ... this.
46016 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46017 (util/grub-emu.c_DEPENDENCIES): ... this.
46018 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46019 (util/grub-emu.c_DEPENDENCIES): ... this.
46020 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46021 (util/grub-emu.c_DEPENDENCIES): ... this.
46022 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46023 (util/grub-emu.c_DEPENDENCIES): ... this.
46025 2008-01-27 Pavel Roskin <proski@gnu.org>
46027 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46028 to create a gap between _end and the modules added to the image
46029 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46030 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46031 * util/elf/grub-mkimage.c (add_segments): Likewise.
46033 2008-01-26 Pavel Roskin <proski@gnu.org>
46035 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46036 just return an error.
46038 2008-01-26 Bean <bean123ch@gmail.com>
46040 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46041 (grub_reiserfs_get_item): Save offset of the next item.
46042 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46044 2008-01-25 Robert Millan <rmh@aybabtu.com>
46046 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46047 make all filesystem sources appear together (possibly fixing omissions
46049 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46050 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46051 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46052 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46054 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46056 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46057 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46058 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46059 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46061 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46062 (probe): Add a sanity check to make sure of our ability to read
46063 requested files when probing for filesystem type.
46065 * genmk.rb: Update copyright year (2007).
46067 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46068 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46069 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46070 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46071 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46072 : Remove function prototypes.
46074 2008-01-25 Robert Millan <rmh@aybabtu.com>
46076 Revert my previous commits (based on wrong assumption of how grub_errno
46079 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46080 * kern/file.c (grub_file_open): Likewise.
46082 2008-01-24 Pavel Roskin <proski@gnu.org>
46084 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46085 that hang if GRUB tries to setup colors.
46086 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46087 colors for firmwares that don't support it.
46088 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46089 Recognize Open Hack'Ware, set flags to work around its
46092 2008-01-24 Robert Millan <rmh@aybabtu.com>
46094 * kern/file.c (grub_file_open): Do not account previous failures of
46095 unrelated functions when grub_errno is checked for.
46096 Reported by Oleg Strikov.
46098 2008-01-24 Bean <bean123ch@gmail.com>
46100 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46101 (grub_ufs_sblock): New member volume name.
46102 (grub_ufs_find_file): Fix string copy bug.
46103 (grub_ufs_label): Implement this function properly.
46105 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46106 (grub_hfs_iterate_records): Use the correct file number for extents
46107 and catalog file. Fix problem in next index calculation.
46108 (grub_hfs_find_node): Replace recursive function call with loop.
46109 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46111 2008-01-23 Robert Millan <rmh@aybabtu.com>
46113 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46114 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46115 (grub_multiboot2_real_boot): New function prototype.
46117 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46118 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46120 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46121 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46123 2008-01-23 Robert Millan <rmh@aybabtu.com>
46125 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46126 #ifdef'ed out grub_printf().
46128 2008-01-23 Robert Millan <rmh@aybabtu.com>
46130 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46131 grub_dprintf calls, since they make "debug=all" mode unusable.
46132 (grub_console_checkkey): Likewise.
46134 2008-01-23 Robert Millan <rmh@aybabtu.com>
46136 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46137 `term/i386/pc/at_keyboard.c'.
46138 (pkglib_MODULES): Add `serial.mod'.
46139 (serial_mod_SOURCES): New variable.
46140 (serial_mod_CFLAGS): Likewise.
46141 (serial_mod_LDFLAGS): Likewise.
46143 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46144 `<grub/powerpc/ieee1275/console.h>'.
46145 (grub_keyboard_controller_init): New function prototype.
46146 (grub_console_checkkey): Likewise.
46147 (grub_console_getkey): Likewise.
46149 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46152 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46153 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46155 2008-01-23 Robert Millan <rmh@aybabtu.com>
46157 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46158 present, "(memdisk)/boot/grub" becomes the default prefix.
46160 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46161 a memdisk tarball with all the modules. Add --overlay=DIR option that
46162 allows users to overlay additional files into the image.
46164 2008-01-23 Robert Millan <rmh@aybabtu.com>
46166 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46167 and `machine/memory.h'.
46168 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46169 (_multiboot_mod_SOURCES): New variable.
46170 (_multiboot_mod_CFLAGS): Likewise.
46171 (_multiboot_mod_LDFLAGS): Likewise.
46172 (multiboot_mod_SOURCES): Likewise.
46173 (multiboot_mod_CFLAGS): Likewise.
46174 (multiboot_mod_LDFLAGS): Likewise.
46176 * include/grub/i386/ieee1275/loader.h: New file.
46178 * include/grub/i386/ieee1275/machine.h: Likewise.
46180 * include/grub/i386/ieee1275/memory.h: Likewise.
46182 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46183 variable declaration.
46184 (grub_os_area_size): Likewise.
46186 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46187 (grub_lower_mem, grub_upper_mem): New variables.
46188 (grub_stop_floppy): New function (just to make
46189 grub_multiboot2_real_boot() happy).
46191 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46192 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46193 (grub_stop): New function.
46194 Include `"../realmode.S"' and `"../loader.S"'.
46196 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46197 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46199 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46200 rely on grub_multiboot2_real_boot() for final boot.
46202 2008-01-22 Robert Millan <rmh@aybabtu.com>
46204 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46205 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46206 device that doesn't look like an SD card.
46207 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46208 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46209 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46210 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46213 2008-01-22 Robert Millan <rmh@aybabtu.com>
46215 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46216 avoid claiming over our own code.
46218 2008-01-22 Bean <bean123ch@gmail.com>
46220 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46221 (jpeg_mod_SOURCES): New variable.
46222 (jpeg_mod_CFLAGS): Likewise.
46223 (jpeg_mod_LDFLAGS): Likewise.
46225 * video/readers/jpeg.c : New file.
46227 2008-01-22 Bean <bean123ch@gmail.com>
46229 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46230 there are no more items.
46232 2008-01-21 Robert Millan <rmh@aybabtu.com>
46234 * kern/mm.c (grub_mm_init_region): Improve debug message.
46236 2008-01-21 Robert Millan <rmh@aybabtu.com>
46238 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46239 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46241 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46243 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46244 Indicates start of upper memory.
46245 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46246 (generate_image): Abort when image size is big enough to corrupt
46249 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46250 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46251 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46252 instead of hardcoding 0xA0000.
46253 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46254 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46255 instead of hardcoding 0xA0000.
46257 2008-01-21 Robert Millan <rmh@aybabtu.com>
46259 * disk/memdisk.c (memdisk_size): New variable.
46260 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46262 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46263 image to dynamic memory.
46264 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46265 `memdisk_size'. Free memdisk block.
46267 2008-01-21 Robert Millan <rmh@aybabtu.com>
46269 Fix detection of very small filesystems (like tar).
46271 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46272 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46273 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46274 a problem with this disk).
46276 2008-01-21 Robert Millan <rmh@aybabtu.com>
46278 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46279 on grub_biosdisk_rw_standard() error.
46281 2008-01-21 Robert Millan <rmh@aybabtu.com>
46283 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46285 * kern/elf.c: Likewise.
46286 * kern/ieee1275/ieee1275.c: Likewise.
46287 * kern/powerpc/ieee1275/openfw.c: Likewise.
46288 * term/ieee1275/ofconsole.c: Likewise.
46290 2008-01-21 Robert Millan <rmh@aybabtu.com>
46292 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46294 * include/grub/kernel.h (grub_arch_memdisk_addr)
46295 (grub_arch_memdisk_size): Moved from here ...
46297 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46298 (grub_arch_memdisk_size): ... to here.
46300 2008-01-21 Robert Millan <rmh@aybabtu.com>
46302 Mostly based on bugfix from Bean.
46304 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46305 attribute with hook() parameter.
46306 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46308 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46309 attribute with hook() parameter.
46310 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46313 2008-01-21 Robert Millan <rmh@aybabtu.com>
46315 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46316 (pkglib_MODULES): Add `memdisk.mod'.
46317 (memdisk_mod_SOURCES): New variable.
46318 (memdisk_mod_CFLAGS): Likewise.
46319 (memdisk_mod_LDFLAGS): Likewise.
46321 * disk/memdisk.c: New file.
46323 * include/grub/disk.h (grub_disk_dev_id): Add
46324 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46326 * include/grub/i386/pc/kernel.h
46327 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46328 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46329 (grub_kernel_image_size): New variable declaration.
46330 (grub_total_module_size): Likewise.
46331 (grub_memdisk_image_size): Likewise.
46333 * include/grub/i386/pc/memory.h
46334 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46336 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46337 (grub_arch_memdisk_addr): New variable declaration.
46338 (grub_arch_memdisk_size): Likewise.
46340 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46341 (grub_arch_memdisk_size): Likewise.
46343 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46344 (codestart): Replace hardcoded `0x100000' with
46345 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46347 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46348 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46349 not NULL, append the contents of the file it refers to, at the end of
46350 the compressed kernel image. Initialize `grub_memdisk_image_size'
46351 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46352 (options): Add "memdisk"|'m' option.
46353 (main): Parse --memdisk|-m option, and pass user-provided path as
46354 parameter to generate_image().
46356 2008-01-20 Robert Millan <rmh@aybabtu.com>
46358 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46359 grub_dprintf() calls from here ...
46360 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46362 2008-01-20 Robert Millan <rmh@aybabtu.com>
46364 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46366 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46368 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46369 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46370 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46371 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46373 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46374 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46376 2008-01-19 Robert Millan <rmh@aybabtu.com>
46378 Get rid of confusing function (superseded by
46379 `grub_ieee1275_get_integer_property')
46380 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46382 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46384 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46385 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46386 in native endianness from grub_ieee1275_get_integer_property().
46388 2008-01-19 Robert Millan <rmh@aybabtu.com>
46390 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46391 command after "shut-down", since implementations differ on which
46392 the command for halt is.
46394 2008-01-19 Robert Millan <rmh@aybabtu.com>
46396 * include/grub/i386/linuxbios/console.h: Add header protection.
46397 (grub_keyboard_controller_init): New function prototype.
46398 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46399 (KEYBOARD_COMMAND_READ): Likewise.
46400 (KEYBOARD_COMMAND_WRITE): Likewise.
46401 (KEYBOARD_SCANCODE_SET1): Likewise.
46402 (grub_keyboard_controller_write): New function.
46403 (grub_keyboard_controller_read): Likewise.
46404 (grub_keyboard_controller_init): Likewise.
46406 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46407 (grub_console_init): On coreboot/LinuxBIOS, call
46408 grub_keyboard_controller_init().
46410 2008-01-19 Robert Millan <rmh@aybabtu.com>
46412 PowerPC changes provided by Pavel Roskin.
46414 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46415 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46416 don't rely on cmain() doing it.
46417 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46418 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46420 2008-01-16 Robert Millan <rmh@aybabtu.com>
46422 * include/grub/i386/linuxbios/memory.h
46423 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46424 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46425 receive `table_header' as argument. Instead, probe for it in the
46426 known memory ranges where it can be present.
46427 (grub_available_iterate): Do not pass a fixed `table_header' address
46428 to grub_linuxbios_table_iterate().
46430 2008-01-15 Robert Millan <rmh@aybabtu.com>
46432 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46433 * conf/i386-ieee1275.rmk: New file.
46434 * include/grub/i386/ieee1275/console.h: Likewise.
46435 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46436 * include/grub/i386/ieee1275/kernel.h: Likewise.
46437 * include/grub/i386/ieee1275/time.h: Likewise.
46438 * kern/i386/ieee1275/init.c: Likewise.
46439 * kern/i386/ieee1275/startup.S: Likewise.
46441 2008-01-15 Robert Millan <rmh@aybabtu.com>
46443 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46444 when pointers are 32-bit (but still do set it to one when they are
46447 2008-01-15 Robert Millan <rmh@aybabtu.com>
46449 * include/grub/ieee1275/ieee1275.h
46450 (grub_ieee1275_get_integer_property): New function prototype.
46452 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46453 (grub_ieee1275_get_integer_property): New function. Wraps around
46454 grub_ieee1275_get_property() to handle endianness.
46456 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46457 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46459 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46460 (grub_map): Likewise.
46461 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46463 2008-01-15 Bean <bean123ch@gmail.com>
46465 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46466 (grub_script_execute_cmdline): Reset grub_errno.
46468 * normal/main.c (read_config_file): Reset grub_errno.
46470 * normal/parse.y (script_init): New.
46471 (script): Move function and menuentry here.
46473 (command): Add delimiter at the end of command.
46474 (commands): Adjust to match the new command.
46475 (commandblock): Remove grub_script_lexer_record_start.
46476 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46477 (if): Use the new commands.
46479 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46481 2008-01-15 Robert Millan <rmh@aybabtu.com>
46483 * normal/menu.c (run_menu): Move timeout message from here ...
46484 (print_timeout): ... to here.
46485 (run_menu): Use print_timeout() once during initial draw to print
46486 the whole message, and again in every clock tick to update only
46487 the number of seconds.
46489 2008-01-15 Robert Millan <rmh@aybabtu.com>
46491 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46492 actual size of `available' from grub_ieee1275_get_property(), and
46493 restrict parsing to that bound.
46495 2008-01-15 Christian Franke <franke@computer.org>
46497 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46498 (argp_program_version): Remove variable.
46499 (argp_program_bug_address): Likewise.
46500 (options): Convert from struct argp_option to struct option.
46501 (struct arguments): Remove.
46502 (parse_opt): Remove.
46503 (usage): New function.
46504 (main): Replace struct args members by simple variables.
46505 Replace argp_parse() by getopt_long().
46506 Add switch to evaluate options.
46507 Add missing "(...)" around root_dev in prefix string.
46509 2008-01-14 Robert Millan <rmh@aybabtu.com>
46511 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46512 for grub_ieee1275_exit(), in order to improve portability.
46514 2008-01-14 Robert Millan <rmh@aybabtu.com>
46516 * util/grub.d/10_linux.in (prefix): Define.
46517 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46519 2008-01-13 Pavel Roskin <proski@gnu.org>
46521 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46522 grub_errno if no errors have been detected.
46524 2008-01-12 Robert Millan <rmh@aybabtu.com>
46526 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46527 (grub_util_get_dev_abstraction): New function prototype.
46529 * util/getroot.c: Include `<grub/util/getroot.h>'
46530 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46531 (grub_util_get_dev_abstraction): ... here (new function).
46533 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46534 `PRINT_ABSTRACTION'.
46535 (probe): Probe for abstraction type when requested.
46536 (main): Understand `--target=abstraction'.
46538 * util/i386/efi/grub-install.in: Add abstraction module to core
46539 image when it is found to be necessary.
46540 * util/i386/pc/grub-install.in: Likewise.
46541 * util/powerpc/ieee1275/grub-install.in: Likewise.
46543 * util/update-grub_lib.in (font_path): Return system path without
46544 converting to GRUB path.
46545 * util/update-grub.in: Convert system path returned by font_path()
46546 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46547 abstraction module is needed for loading fonts (if any). Export
46548 that as `GRUB_PRELOAD_MODULES'.
46549 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46552 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46554 Remove some unused code from reiserfs.
46556 * fs/reiserfs.c (struct grub_reiserfs_key)
46557 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46558 (struct grub_reiserfs_node_body): Removed.
46559 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46561 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46563 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46565 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46567 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46569 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46571 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46572 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46573 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46575 2008-01-10 Robert Millan <rmh@aybabtu.com>
46577 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46578 Determines if a file is garbage left by packaging systems, etc.
46579 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46580 for processing /etc/grub.d scripts.
46581 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46582 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46583 as a condition for processing Linux images.
46585 2008-01-10 Pavel Roskin <proski@gnu.org>
46587 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46588 to compile reiserfs.c on PowerPC.
46590 2008-01-10 Robert Millan <rmh@aybabtu.com>
46592 * kern/device.c (grub_device_iterate): Do not abort device iteration
46593 when one of the devices cannot be opened.
46594 * kern/disk.c (grub_disk_open): Do not account previous failures of
46595 unrelated functions when grub_errno is checked for.
46597 2008-01-08 Robert Millan <rmh@aybabtu.com>
46599 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46600 `! grub_linux_is_bzimage', change order of address comparison to make
46601 it more intuitive, and improve "too big zImage" error message.
46603 2008-01-08 Robert Millan <rmh@aybabtu.com>
46605 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46606 `$(update-grub_DATA)'.
46607 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46610 2008-01-07 Robert Millan <rmh@aybabtu.com>
46612 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46613 which instruction is modified by grub-setup during installation
46614 (since it wasn't obvious by only looking at this file).
46616 2008-01-07 Robert Millan <rmh@aybabtu.com>
46618 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46619 listing actual TODO items.
46621 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46623 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46625 (grub_reiserfs_get_key_offset): Likewise.
46626 (grub_reiserfs_set_key_offset): Likewise.
46627 (grub_reiserfs_set_key_type): Likewise.
46628 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46630 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46631 better to remove the bitfield version completely.
46633 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46635 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46636 allocated from the heap, due to the fshelp implementation.
46637 (grub_reiserfs_dir): Free NODE, due to the same reason.
46639 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46641 Mostly from Vincent Pelletier:
46643 * fs/reiserfs.c: New file.
46645 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46646 (reiserfs_mod_SOURCES): New variable.
46647 (reiserfs_mod_CFLAGS): Likewise.
46648 (reiserfs_mod_LDFLAGS): Likewise.
46650 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46651 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46652 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46655 2008-01-06 Robert Millan <rmh@aybabtu.com>
46657 * normal/color.c: Remove `<grub/env.h>'.
46659 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46661 * include/grub/normal.h: Include <grub/env.h>.
46663 2008-01-05 Robert Millan <rmh@aybabtu.com>
46665 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46666 usage example with `(hd0,1)'.
46667 Reported by Samuel Thibault.
46669 2008-01-05 Robert Millan <rmh@aybabtu.com>
46671 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46672 (grub_linux_boot_zimage): Rename to ...
46673 (grub_linux_boot): ... this.
46674 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46675 (grub_linux_boot_zimage): Conditionalize zImage copy.
46677 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46678 (grub_linux_boot_bzimage): Remove prototype.
46679 (grub_linux_boot_zimage): Rename to ...
46680 (grub_linux_boot): ... this.
46682 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46683 (grub_linux_boot): Remove function.
46685 2008-01-05 Robert Millan <rmh@aybabtu.com>
46687 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46688 (grub_env_write_color_highlight): Likewise.
46689 (grub_wait_after_message): Likewise.
46691 * normal/color.c: New file.
46693 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46694 (normal_mod_DEPENDENCIES): Likewise.
46696 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46697 (normal_mod_DEPENDENCIES): Likewise.
46699 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46700 (normal_mod_DEPENDENCIES): Likewise.
46702 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46703 (normal_mod_DEPENDENCIES): Likewise.
46705 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46706 for waiting after a message is printed.
46707 * normal/main.c (read_config_file): Likewise.
46708 (grub_normal_init): Register grub_env_write_color_normal() and
46709 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46710 `color_highlight' variables as global.
46712 * normal/menu.c (grub_wait_after_message): New function.
46713 (grub_color_menu_normal): New variable. Replaces ...
46714 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46715 (grub_color_menu_highlight): New variable. Replaces ...
46716 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46717 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46718 `GRUB_TERM_COLOR_STANDARD'.
46719 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46720 `normal_code' and `highlight_code' to `old_color_normal' and
46721 `old_color_highlight', respectively.
46722 (grub_menu_init_page): Update colors when drawing the menu, based on
46723 `menu_color_normal' and `menu_color_highlight' variables.
46724 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46725 a message is printed.
46727 2008-01-05 Robert Millan <rmh@aybabtu.com>
46729 * kern/env.c (grub_env_context_open): Propagate hooks for global
46730 variables to new context.
46732 * kern/main.c (grub_set_root_dev): Export `root' variable.
46734 2008-01-05 Robert Millan <rmh@aybabtu.com>
46736 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46737 discs unconditionally, since udev and others have options to provide
46740 2008-01-05 Robert Millan <rmh@aybabtu.com>
46742 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46744 2008-01-04 Christian Franke <franke@computer.org>
46746 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46749 2008-01-03 Pavel Roskin <proski@gnu.org>
46751 * kern/i386/linuxbios/init.c: Put "void" to all function
46752 declarations with no arguments.
46753 * kern/powerpc/ieee1275/init.c: Likewise.
46754 * term/i386/pc/at_keyboard.c: Likewise.
46755 * term/i386/pc/vga_text.c: Likewise.
46756 * util/grub-mkdevicemap.c: Likewise.
46758 2008-01-02 Robert Millan <rmh@aybabtu.com>
46760 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46761 message when loaded image is out of bounds.
46762 (grub_multiboot_load_elf64): Likewise.
46764 2008-01-02 Pavel Roskin <proski@gnu.org>
46766 * util/grub.d/10_linux.in: Try version without ".old" when
46767 looking for initrd. It's better to use initrd from the newer
46768 kernel of the same version than no initrd at all.
46770 2008-01-01 Robert Millan <rmh@aybabtu.com>
46772 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46774 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46776 * include/grub/video.h: Added grub_video_unmap_color and
46777 grub_video_get_active_render_target.
46778 (grub_video_adapter): Added unmap_color and get_active_render_target.
46780 * video/video.c: Added grub_video_unmap_color and
46781 grub_video_get_active_render_target.
46782 (grub_video_get_info): Changed method to accept NULL pointer as an
46783 argument to allow detection of active video adapter.
46785 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46786 grub_video_vbe_unmap_color_int.
46787 Added grub_video_vbe_unmap_color and
46788 grub_video_vbe_get_active_render_target.
46789 (grub_video_vbe_adapter): Added unmap_color and
46790 get_active_render_target.
46792 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46793 with grub_video_vbe_unmap_color_int.
46795 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46796 (DEFAULT_NORMAL_COLOR): Likewise.
46797 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46798 (DEFAULT_FG_COLOR): Removed.
46799 (DEFAULT_BG_COLOR): Likewise.
46800 (DEFAULT_CURSOR_COLOR): Changed value.
46801 (grub_virtual_screen): Added standard_color_setting,
46802 normal_color_setting, highlight_color_setting and term_color.
46803 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46804 (bitmap_width): Added.
46805 (bitmap_height): Likewise.
46806 (bitmap): Likewise.
46807 (set_term_color): Likewise.
46808 (grub_virtual_screen_setup): Changed to use new terminal coloring
46810 (grub_gfxterm_init): Added init for bitmap.
46811 (grub_gfxterm_fini): Added destroy for bitmap.
46812 (redraw_screen_rect): Updated to use background bitmap and new
46814 (scroll_up): Added optimization for case when there is no bitmap.
46815 (grub_gfxterm_cls): Fixed to use correct background color.
46816 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46818 (grub_virtual_screen_setcolor): Likewise.
46819 (grub_virtual_screen_getcolor): Added.
46820 (grub_gfxterm_background_image_cmd): Likewise.
46821 (grub_video_term): Added setcolor and getcolor.
46822 (MOD_INIT): Added registration of background_image command.
46823 (MOD_TERM): Added unregistration for background_image command.
46825 2007-12-30 Pavel Roskin <proski@gnu.org>
46827 * loader/multiboot_loader.c: Fix multiboot command
46828 unregistration. Fix all typos in the word "multiboot".
46830 2007-12-29 Pavel Roskin <proski@gnu.org>
46832 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46833 support for initrd names used in Fedora.
46835 2007-12-26 Bean <bean123ch@gmail.com>
46837 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46838 (cpio_mod_SOURCES): New variable.
46839 (cpio_mod_CFLAGS): Likewise.
46840 (cpio_mod_LDFLAGS): Likewise.
46842 * fs/cpio.c: New file.
46844 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46846 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46848 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46850 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46852 2007-12-25 Robert Millan <rmh@aybabtu.com>
46854 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46855 (grub_getcolor): New function.
46857 * kern/term.c (grub_getcolor): New function.
46858 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46859 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46860 (print_entry): Set normal and highlight colors to
46861 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
46862 respectively, before printing and restore them to old
46864 (grub_menu_init_page): Likewise. Fill an additional colored space
46865 that would otherwise be left blank.
46867 * term/efi/console.c (grub_console_getcolor): New function.
46868 (struct grub_console_term.getcolor): New variable.
46869 * term/i386/pc/console.c (grub_console_getcolor): New function.
46870 (struct grub_console_term.getcolor): New variable.
46871 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
46872 (struct grub_console_term.getcolor): New variable.
46874 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
46875 (struct grub_console_term.setcolor): Remove variable.
46876 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
46877 (struct grub_console_term.setcolor): Remove variable.
46878 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
46879 (struct grub_console_term.setcolor): Remove variable.
46880 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
46881 (struct grub_console_term.setcolor): Remove variable.
46883 2007-12-25 Robert Millan <rmh@aybabtu.com>
46885 * configure.ac: Search for possible unifont.hex locations, and
46886 define UNIFONT_HEX if found.
46888 * Makefile.in (UNIFONT_HEX): Define variable.
46889 (DATA): Rename to ...
46890 (PKGLIB): ... this. Update all users.
46891 (PKGDATA): New variable.
46892 (pkgdata_IMAGES): Rename to ...
46893 (pkglib_IMAGES): ... this. Update all users.
46894 (pkgdata_MODULES): Rename to ...
46895 (pkglib_MODULES): ... this. Update all users.
46896 (pkgdata_PROGRAMS): Rename to ...
46897 (pkglib_PROGRAMS): ... this. Update all users.
46898 (pkgdata_DATA): Rename to ...
46899 (pkglib_DATA): ... this. Update all users.
46900 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
46901 (unicode.pff, ascii.pff): New rules.
46902 (all-local): Add `$(PKGDATA)' dependency.
46903 (install-local): Process `$(PKGDATA)'.
46905 * util/update-grub_lib.in (font_path): Search for *.pff files in
46906 a few more locations, including `${pkgdata}'.
46908 2007-12-23 Robert Millan <rmh@aybabtu.com>
46910 Patch from Bean <bean123ch@gmail.com>:
46911 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
46914 2007-12-21 Bean <bean123ch@gmail.com>
46916 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
46917 (ntfscomp_mod_SOURCES): New variable.
46918 (ntfscomp_mod_CFLAGS): Likewise.
46919 (ntfscomp_mod_LDFLAGS): Likewise.
46921 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
46922 (grub_probe_SOURCES): Likewise.
46923 (grub_emu_SOURCES): Likewise.
46925 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46926 (grub_emu_SOURCES): Likewise.
46928 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46929 (grub_emu_SOURCES): Likewise.
46931 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46932 (grub_emu_SOURCES): Likewise.
46934 * fs/ntfs.c (grub_ntfscomp_func): New variable.
46935 (read_run_list): Renamed to grub_ntfs_read_run_list.
46936 (decomp_nextvcn): Moved to ntfscomp.c.
46937 (decomp_getch): Likewise.
46938 (decomp_get16): Likewise.
46939 (decomp_block): Likewise.
46940 (read_block): Likewise.
46941 (read_data): Partially moved to ntfscomp.c.
46942 (fixup): Change unsigned to grub_uint16_t.
46943 (read_mft): Change unsigned long to grub_uint32_t.
46944 (read_attr): Likewise.
46945 (read_data): Likewise.
46946 (read_run_data): Likewise.
46947 (read_run_list): Likewise.
46948 (read_mft): Likewise.
46950 * fs/ntfscomp.c: New file.
46952 * include/grub/ntfs.h: New file.
46954 2007-12-16 Robert Millan <rmh@aybabtu.com>
46956 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
46957 IDE disk check, since Linux is known to support 20 IDE disks.
46958 Reported by Colin Watson.
46960 2007-12-15 Bean <bean123ch@gmail.com>
46962 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
46963 (lnxboot_img_SOURCES): New variable.
46964 (lnxboot_img_ASFLAGS): Likewise.
46965 (lnxboot_img_LDFLAGS): Likewise.
46967 * boot/i386/pc/lnxboot.S: New file.
46969 2007-11-24 Pavel Roskin <proski@gnu.org>
46971 * configure.ac: Test if '--build-id=none' is supported by the
46972 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
46973 objcopy to generate incorrect binary files (binutils
46974 2.17.50.0.18-1 as shipped by Fedora 8).
46975 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
46976 linking, so that build ID doesn't break the test.
46978 2007-11-24 Pavel Roskin <proski@gnu.org>
46980 * include/grub/i386/time.h: use "void" in the argument list
46981 of grub_cpu_idle().
46982 * include/grub/powerpc/time.h: Likewise.
46983 * include/grub/sparc64/time.h: Likewise.
46985 2007-11-18 Christian Franke <franke@computer.org>
46987 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
46988 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
46989 This fixes the problem that function keys did not work in grub-emu.
46991 2007-11-18 Christian Franke <franke@computer.org>
46993 * disk/host.c (grub_host_open): Remove attribute unused from
46994 name parameter. Add check for "host". This fixes the problem
46995 that grub-emu does not find partitions.
46997 2007-11-18 Christian Franke <franke@computer.org>
46999 * util/hostfs.c (is_dir): New function.
47000 (grub_hostfs_dir): Handle missing dirent.d_type case.
47001 (grub_hostfs_read): Add missing fseek().
47002 (grub_hostfs_label): Clear label pointer. This fixes a crash
47003 of grub-emu on "ls (host)".
47005 2007-11-18 Christian Franke <franke@computer.org>
47007 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47008 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47009 to 64 bit boundary by default.
47011 2007-11-18 Bean <bean123ch@gmail.com>
47013 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47014 (hexdump_mod_SOURCES): New variable.
47015 (hexdump_mod_CFLAGS): Likewise.
47016 (hexdump_mod_LDFLAGS): Likewise.
47018 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47020 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47022 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47024 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47026 * include/grub/hexdump.h: New file.
47028 * commands/hexdump.c: New file.
47030 2007-11-10 Robert Millan <rmh@aybabtu.com>
47032 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47033 in grub_outb() calls.
47034 (beep_on): Likewise.
47036 2007-11-10 Christian Franke <franke@computer.org>
47038 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47039 (grub_menu_run): Likewise.
47041 2007-11-10 Robert Millan <rmh@aybabtu.com>
47043 * include/grub/i386/efi/machine.h: New file.
47044 * include/grub/i386/linuxbios/machine.h: Likewise.
47045 * include/grub/i386/pc/machine.h: Likewise.
47046 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47047 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47049 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47050 (serial_hw_io_addr): New variable.
47051 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47052 instead of `(unsigned short *) 0x400'.
47054 2007-11-10 Bean <bean123ch@gmail.com>
47056 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47058 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47060 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47061 (vga_mod_SOURCES): Added.
47062 (vga_mod_CFLAGS): Likewise.
47063 (vga_mod_LDFLAGS): Likewise.
47065 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47067 (set_map_mask): Likewise.
47068 (set_read_map): Likewise.
47069 (set_read_address): Likewise.
47070 (vga_font): Removed variable.
47071 (get_vga_glyph): Removed function.
47072 (invalidate_char): Likewise.
47073 (write_char): Changed to use grub_font_get_glyph() for font
47075 (grub_vga_putchar): Likewise.
47076 (grub_vga_getcharwidth): Likewise.
47078 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47080 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47082 (pxeboot_img_LDFLAGS): Likewise.
47083 (diskboot_img_LDFLAGS): Likewise.
47084 (kernel_img_LDFLAGS): Likewise.
47086 2007-11-06 Robert Millan <rmh@aybabtu.com>
47088 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47089 in grub_outb() calls.
47090 (serial_hw_init): Likewise.
47092 2007-11-05 Robert Millan <rmh@aybabtu.com>
47094 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47095 spaces. Skip non-regular files.
47097 2007-11-05 Robert Millan <rmh@aybabtu.com>
47099 * kern/disk.c (grub_disk_firmware_fini)
47100 (grub_disk_firmware_is_tainted): New variables.
47102 * include/grub/disk.h (grub_disk_firmware_fini)
47103 (grub_disk_firmware_is_tainted): Likewise.
47105 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47106 (grub_disk_biosdisk_fini): ... to here.
47107 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47108 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47109 is set. Register grub_disk_biosdisk_fini() in
47110 `grub_disk_firmware_fini'.
47112 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47113 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47114 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47115 to finish existing firmware disk interface.
47117 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47118 (ata_mod_SOURCES): New variable.
47119 (ata_mod_CFLAGS): Likewise.
47120 (ata_mod_LDFLAGS): Likewise.
47122 2007-11-05 Robert Millan <rmh@aybabtu.com>
47124 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47125 (grub_ata_wait): Reimplement using grub_millisleep().
47127 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47128 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47130 2007-11-03 Marco Gerards <marco@gnu.org>
47132 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47133 (CRTC_ADDR_PORT): New macro.
47134 (CRTC_DATA_PORT): Likewise.
47135 (CRTC_CURSOR): Likewise.
47136 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47137 (CRTC_CURSOR_ADDR_LOW): Likewise.
47138 (update_cursor): New function.
47139 (grub_console_real_putchar): Call `update_cursor'.
47140 (grub_console_gotoxy): Likewise.
47141 (grub_console_cls): Set the default color when clearing the
47143 (grub_console_setcursor): Implemented.
47145 2007-11-03 Marco Gerards <marco@gnu.org>
47147 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47149 (grub_ata_pio_write): Likewise.
47151 (grub_atapi_identify): Wait after issuing an ATA command.
47152 (grub_atapi_packet): Likewise.
47153 (grub_ata_identify): Likewise.
47154 (grub_ata_readwrite): Likewise.
47156 2007-11-03 Marco Gerards <marco@gnu.org>
47158 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47159 (grub_ata_pio_write): Likewise.
47160 (grub_ata_readwrite): Use `grub_error', instead of
47161 returning `grub_errno'.
47163 2007-11-03 Marco Gerards <marco@gnu.org>
47165 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47166 grub_ata_pio_write once for every single sector, instead of for
47169 2007-10-31 Robert Millan <rmh@aybabtu.com>
47171 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47173 * conf/i386-linuxbios.rmk: New file.
47175 * kern/i386/pc/hardware.c: Likewise.
47176 * term/i386/pc/at_keyboard.c: Likewise.
47177 * term/i386/pc/vga_text.c: Likewise.
47179 * include/grub/i386/linuxbios/boot.h: Likewise.
47180 * include/grub/i386/linuxbios/console.h: Likewise.
47181 * include/grub/i386/linuxbios/init.h: Likewise.
47182 * include/grub/i386/linuxbios/kernel.h: Likewise.
47183 * include/grub/i386/linuxbios/loader.h: Likewise.
47184 * include/grub/i386/linuxbios/memory.h: Likewise.
47185 * include/grub/i386/linuxbios/serial.h: Likewise.
47186 * include/grub/i386/linuxbios/time.h: Likewise.
47188 * kern/i386/linuxbios/init.c: Likewise.
47189 * kern/i386/linuxbios/startup.S: Likewise.
47190 * kern/i386/linuxbios/table.c: Likewise.
47192 2007-10-31 Marco Gerards <marco@gnu.org>
47194 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47195 (ata_mod_SOURCES): New variable.
47196 (ata_mod_CFLAGS): Likewise.
47197 (ata_mod_LDFLAGS): Likewise.
47199 * disk/ata.c: New file.
47201 * include/grub/disk.h (grub_disk_dev_id): Add
47202 `GRUB_DISK_DEV_ATA_ID'.
47204 2007-10-31 Robert Millan <rmh@aybabtu.com>
47206 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47207 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47209 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47210 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47212 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47215 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47217 2007-10-27 Robert Millan <rmh@aybabtu.com>
47219 * include/grub/types.h (ULONG_MAX): Define macro.
47221 2007-10-22 Robert Millan <rmh@aybabtu.com>
47223 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47225 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47227 2007-10-22 Robert Millan <rmh@aybabtu.com>
47229 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47230 (pkgdata_MODULES): Add `biosdisk.mod'.
47231 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47234 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47235 (grub_biosdisk_init): Replace with ...
47236 (GRUB_MOD_INIT(biosdisk)): ... this.
47237 (grub_biosdisk_fini): Replace with ...
47238 (GRUB_MOD_FINI(biosdisk)): ... this.
47240 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47241 (grub_machine_init): Remove call to grub_biosdisk_init().
47242 (grub_machine_fini): Remove call to grub_machine_fini().
47244 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47246 2007-10-22 Robert Millan <rmh@aybabtu.com>
47248 * include/grub/time.h: New file.
47249 * include/grub/i386/time.h: Likewise.
47250 * include/grub/powerpc/time.h: Likewise.
47251 * include/grub/sparc64/time.h: Likewise.
47253 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47255 (KERNEL_MACHINE_TIME_HEADER): ... this.
47256 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47258 (KERNEL_MACHINE_TIME_HEADER): ... this.
47259 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47261 (KERNEL_MACHINE_TIME_HEADER): ... this.
47263 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47264 (grub_millisleep): New function.
47265 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47266 (grub_millisleep): New function.
47267 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47268 Remove `grub/machine/time.h' include.
47269 (grub_millisleep): New function.
47270 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47271 Remove `grub/machine/time.h' include.
47272 (grub_millisleep): New function.
47274 * include/grub/misc.h (grub_div_roundup): New function.
47276 * kern/misc.c: Include `<grub/time.h>'.
47277 (grub_millisleep_generic): New function.
47279 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47281 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47283 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47284 `machine/time.h'. Add `time.h'.
47285 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47287 2007-10-21 Robert Millan <rmh@aybabtu.com>
47289 * include/grub/misc.h (grub_max): New function.
47291 2007-10-21 Robert Millan <rmh@aybabtu.com>
47293 * util/misc.c (grub_util_info): Call fflush() before returning.
47295 2007-10-20 Robert Millan <rmh@aybabtu.com>
47297 * genmk.rb (Image): Copy `extra_flags' from here ...
47298 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47300 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47301 to `argc' and `args' arguments.
47303 2007-10-17 Robert Millan <rmh@aybabtu.com>
47305 * kern/i386/loader.S: New file.
47307 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47308 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47309 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47310 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47311 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47312 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47313 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47314 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47315 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47316 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47317 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47318 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47319 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47320 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47322 * kern/i386/realmode.S: New file.
47324 * kern/i386/pc/startup.S (protstack): Moved from here ...
47325 * kern/i386/realmode.S (protstack)... to here.
47326 * kern/i386/pc/startup.S (gdt): Moved from here ...
47327 * kern/i386/realmode.S (gdt)... to here.
47328 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47329 * kern/i386/realmode.S (prot_to_real)... to here.
47331 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47332 `kern/i386/realmode.S'.
47334 2007-10-17 Robert Millan <rmh@aybabtu.com>
47336 * include/grub/i386/loader.h: New file.
47338 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47339 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47340 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47341 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47342 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47343 * include/grub/i386/loader.h (grub_linux_prot_size)
47344 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47345 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47346 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47347 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47349 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47351 2007-10-15 Robert Millan <rmh@aybabtu.com>
47353 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47354 filesystem when dev->disk is unset.
47355 Do probe for filesystem even when dev->disk->has_partitions is set.
47356 In case a filesystem is found, always report it.
47357 In case it isn't, if dev->disk->has_partitions is set, report that
47358 a partition table was found instead of reporting that no filesystem
47359 could be identified.
47361 2007-10-12 Robert Millan <rmh@aybabtu.com>
47363 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47364 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47366 * include/grub/types.h (grub_host_to_target16): New macro.
47367 (grub_host_to_target32): Likewise.
47368 (grub_host_to_target64): Likewise.
47369 (grub_target_to_host16): Likewise.
47370 (grub_target_to_host32): Likewise.
47371 (grub_target_to_host64): Likewise.
47373 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47374 Renamed from to ...
47375 (GRUB_MOD_ALIGN): ...this. Update all users.
47377 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47378 grub_host_to_target32.
47379 Replace grub_be_to_cpu32 with grub_target_to_host32.
47380 (load_modules): Likewise.
47381 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47382 Replace grub_be_to_cpu32 with grub_target_to_host32.
47383 Replace grub_cpu_to_be16 with grub_host_to_target16.
47384 Replace grub_cpu_to_be32 grub_host_to_target32.
47386 2007-10-12 Robert Millan <rmh@aybabtu.com>
47388 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47389 * util/elf/grub-mkimage.c: ... here.
47391 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47392 `util/powerpc/ieee1275/grub-mkimage.c'.
47394 2007-10-07 Robert Millan <rmh@aybabtu.com>
47396 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47397 and make it easier to figure out.
47398 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47399 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47400 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47401 leave us with less than HEAP_MIN_SIZE total heap.
47402 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47404 2007-10-03 Robert Millan <rmh@aybabtu.com>
47406 * include/grub/i386/io.h: New file.
47407 * commands/i386/pc/play.c (inb): Removed.
47409 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47411 * term/i386/pc/serial.c (inb): Removed.
47413 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47415 * term/i386/pc/vga.c (inb): Removed.
47417 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47420 2007-10-02 Robert Millan <rmh@aybabtu.com>
47422 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47423 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47424 Reported by Marcin Kurek.
47426 2007-09-07 Robert Millan <rmh@aybabtu.com>
47428 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47429 SmartFirmware version updates (as released by Sven Luther), and avoid
47430 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47431 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47434 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47436 From Hitoshi Ozeki:
47437 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47438 when merging two regions.
47440 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47442 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47443 * normal/completion.c (grub_normal_do_completion): Likewise.
47444 Reported by Hitoshi Ozeki.
47446 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47448 Do not use devices at boot in chainloading.
47450 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47451 (boot_part_addr): Likewise.
47452 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47453 with BOOT_DRIVE and BOOT_PART_ADDR.
47454 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47455 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47457 2007-08-29 Robert Millan <rmh@aybabtu.com>
47459 Patch from Simon Peter <dn.tlp@gmx.net>:
47460 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47461 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47462 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47463 util/i386/pc/grub-setup.c_DEPENDENCIES.
47464 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47465 util/grub-probe.c_DEPENDENCIES.
47466 * conf/powerpc-ieee1275.rmk: Likewise.
47468 2007-08-28 Robert Millan <rmh@aybabtu.com>
47470 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47471 to tell grub-mkdevicemap how to name devices.
47472 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47475 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47476 util/i386/get_disk_name.c.
47477 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47478 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47479 util/ieee1275/get_disk_name.c.
47481 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47483 * DISTLIST: Add util/i386/get_disk_name.c and
47484 util/ieee1275/get_disk_name.c.
47486 * util/grub-mkdevicemap.c: Replace device naming logic with
47487 grub_util_get_disk_name() calls.
47489 2007-08-20 Robert Millan <rmh@aybabtu.com>
47491 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47492 (so that it works for both plural and singular quantities).
47494 2007-08-05 Robert Millan <rmh@aybabtu.com>
47496 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47497 so that [xz] isn't taken into account when determining order.
47499 2007-08-02 Marco Gerards <marco@gnu.org>
47501 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47502 `include/multiboot2.h', `include/grub/elfload.h',
47503 `include/multiboot.h', `include/grub/multiboot.h',
47504 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47505 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47506 `kern/elf.c', `loader/multiboot_loader.c',
47507 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47508 `loader/i386/pc/multiboot2.c',
47509 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47510 `util/i386/pc/grub-mkrescue.in'. Remove
47511 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47512 `include/grub/i386/pc/util/biosdisk.h' and
47513 `include/grub/powerpc/ieee1275/multiboot.h'.
47515 2007-08-02 Bean <bean123ch@gmail.com>
47517 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47518 (ntfs_mod_SOURCES): New variable.
47519 (ntfs_mod_CFLAGS): Likewise.
47520 (ntfs_mod_LDFLAGS): Likewise.
47522 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47523 (grub_probe_SOURCES): Likewise.
47524 (grub_emu_SOURCES): Likewise.
47526 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47527 (grub_emu_SOURCES): Likewise.
47529 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47530 (grub_emu_SOURCES): Likewise.
47532 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47534 * fs/ntfs.c: New file.
47536 2007-08-02 Bean <bean123ch@gmail.com>
47538 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47540 * file.h (grub_file): Likewise.
47542 * fshelp.h (grub_fshelp_read_file): Likewise.
47544 * util/i386/pc/grub-setup.c (setup): Likewise.
47545 (save_first_sector): Likewise.
47546 (save_blocklists): Likewise.
47548 * fs/affs.c (grub_affs_read_file): Likewise.
47550 * fs/ext2.c (grub_ext2_read_file): Likewise.
47552 * fs/fat.c (grub_fat_read_data): Likewise.
47554 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47556 * fs/hfs.c (grub_hfs_read_file): Likewise.
47558 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47560 * fs/jfs.c (grub_jfs_read_file): Likewise.
47562 * fs/minix.c (grub_minix_read_file): Likewise.
47564 * fs/sfs.c (grub_sfs_read_file): Likewise.
47566 * fs/ufs.c (grub_ufs_read_file): Likewise.
47568 * fs/xfs.c (grub_xfs_read_file): Likewise.
47570 * command/blocklist.c (read_blocklist): Likewise.
47571 (print_blocklist): Likewise.
47573 2007-08-02 Marco Gerards <marco@gnu.org>
47575 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47578 * disk/host.c: New file.
47580 * util/hostfs.c: Likewise.
47582 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47583 return `GRUB_ERR_BAD_FS'.
47584 * fs/sfs.c (grub_sfs_mount): Likewise.
47585 * fs/xfs.c (grub_xfs_mount): Likewise.
47587 * include/grub/disk.h (enum grub_disk_dev_id): Add
47588 `GRUB_DISK_DEVICE_HOST_ID'.
47590 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47592 2007-07-24 Jerone Young <jerone@gmail.com>
47594 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47595 modules for compilation.
47596 * conf/powerpc-ieee1275.rmk: Likewise.
47598 * include/multiboot.h: Move multiboot definitions to one file. Rename
47599 many definitions to not get grub specific.
47600 * include/multiboot2.h: Create header with multiboot 2 definitions.
47601 * include/grub/multiboot.h: Header for grub specific function
47602 prototypes and definitions.
47603 * include/grub/multiboot2.h: Likewise.
47604 * include/grub/multiboot_loader.h: Likewise.
47605 * include/grub/i386/pc/multiboot.h: Removed.
47606 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47608 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47609 and 2 to allow for one multiboot and module commands.
47610 * loader/multiboot2.c: Add multiboot2 functionality.
47611 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47612 and definition names.
47613 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47615 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47616 ieee1275 specific multiboot2 code.
47618 * kern/i386/pc/startup.S: Change headers and definition names for
47619 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47621 2007-07-22 Robert Millan <rmh@aybabtu.com>
47623 * geninitheader.sh: Process file specified in first parameter rather
47624 than hardcoding grub_modules_init.lst.
47625 * geninit.sh: Likewise. Also, construct header name dynamically rather
47626 than hardcoding grub_modules_init.h.
47628 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47629 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47630 grub_probe_init.[ch] and grub_setup_init.[ch].
47632 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47633 grub_modules_init.h with grub_emu_init.h.
47634 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47635 grub_probe_init.[ch] files.
47636 * conf/i386-efi.rmk: Likewise.
47637 * conf/i386-pc.rmk: Likewise.
47638 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47639 grub_setup_init.[ch] files.
47641 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47642 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47643 to initialize modules rather than a list of hardcoded functions.
47644 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47645 grub_init_all() to initialize modules rather than a list of hardcoded
47648 2007-07-22 Robert Millan <rmh@aybabtu.com>
47650 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47651 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47653 2007-07-22 Robert Millan <rmh@aybabtu.com>
47655 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47656 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47657 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47658 flag when running on SmartFirmware.
47659 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47660 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47663 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47664 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47665 rather than decreasing it.
47667 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47668 there's not enough space to do it, fail in the same way as when it
47669 can't be done because there are no partitions.
47671 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47672 when nvsetenv failed.
47674 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47676 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47677 because this rule is automatically generated.
47678 (grub-mkrescue): Removed for the same reason as above.
47680 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47682 Migrate to GNU General Public License Version 3.
47684 * COPYING: Replaced with the plain text version of GPLv3.
47686 * config.guess: Updated from gnulib.
47687 * config.sub: Likewise.
47689 * geninit.sh: Output a GPLv3 copyright notice.
47690 * geninitheader.sh: Likewise.
47691 * genmodsrc.sh: Likewise.
47692 * gensymlist.sh.in: Likewise.
47694 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47695 * boot/i386/pc/diskboot.S: Likewise.
47696 * boot/i386/pc/pxeboot.S: Likewise.
47697 * commands/blocklist.c: Likewise.
47698 * commands/boot.c: Likewise.
47699 * commands/cat.c: Likewise.
47700 * commands/cmp.c: Likewise.
47701 * commands/configfile.c: Likewise.
47702 * commands/echo.c: Likewise.
47703 * commands/help.c: Likewise.
47704 * commands/ls.c: Likewise.
47705 * commands/search.c: Likewise.
47706 * commands/terminal.c: Likewise.
47707 * commands/test.c: Likewise.
47708 * commands/videotest.c: Likewise.
47709 * commands/i386/cpuid.c: Likewise.
47710 * commands/i386/pc/halt.c: Likewise.
47711 * commands/i386/pc/play.c: Likewise.
47712 * commands/i386/pc/reboot.c: Likewise.
47713 * commands/i386/pc/vbeinfo.c: Likewise.
47714 * commands/i386/pc/vbetest.c: Likewise.
47715 * commands/ieee1275/halt.c: Likewise.
47716 * commands/ieee1275/reboot.c: Likewise.
47717 * commands/ieee1275/suspend.c: Likewise.
47718 * disk/loopback.c: Likewise.
47719 * disk/lvm.c: Likewise.
47720 * disk/raid.c: Likewise.
47721 * disk/efi/efidisk.c: Likewise.
47722 * disk/i386/pc/biosdisk.c: Likewise.
47723 * disk/ieee1275/ofdisk.c: Likewise.
47724 * font/manager.c: Likewise.
47725 * fs/affs.c: Likewise.
47726 * fs/ext2.c: Likewise.
47727 * fs/fat.c: Likewise.
47728 * fs/fshelp.c: Likewise.
47729 * fs/hfs.c: Likewise.
47730 * fs/hfsplus.c: Likewise.
47731 * fs/iso9660.c: Likewise.
47732 * fs/jfs.c: Likewise.
47733 * fs/minix.c: Likewise.
47734 * fs/sfs.c: Likewise.
47735 * fs/ufs.c: Likewise.
47736 * fs/xfs.c: Likewise.
47737 * hello/hello.c: Likewise.
47738 * include/grub/acorn_filecore.h: Likewise.
47739 * include/grub/arg.h: Likewise.
47740 * include/grub/bitmap.h: Likewise.
47741 * include/grub/boot.h: Likewise.
47742 * include/grub/cache.h: Likewise.
47743 * include/grub/device.h: Likewise.
47744 * include/grub/disk.h: Likewise.
47745 * include/grub/dl.h: Likewise.
47746 * include/grub/elfload.h: Likewise.
47747 * include/grub/env.h: Likewise.
47748 * include/grub/err.h: Likewise.
47749 * include/grub/file.h: Likewise.
47750 * include/grub/font.h: Likewise.
47751 * include/grub/fs.h: Likewise.
47752 * include/grub/fshelp.h: Likewise.
47753 * include/grub/gzio.h: Likewise.
47754 * include/grub/hfs.h: Likewise.
47755 * include/grub/kernel.h: Likewise.
47756 * include/grub/loader.h: Likewise.
47757 * include/grub/lvm.h: Likewise.
47758 * include/grub/misc.h: Likewise.
47759 * include/grub/mm.h: Likewise.
47760 * include/grub/net.h: Likewise.
47761 * include/grub/normal.h: Likewise.
47762 * include/grub/parser.h: Likewise.
47763 * include/grub/partition.h: Likewise.
47764 * include/grub/pc_partition.h: Likewise.
47765 * include/grub/raid.h: Likewise.
47766 * include/grub/rescue.h: Likewise.
47767 * include/grub/script.h: Likewise.
47768 * include/grub/setjmp.h: Likewise.
47769 * include/grub/symbol.h: Likewise.
47770 * include/grub/term.h: Likewise.
47771 * include/grub/terminfo.h: Likewise.
47772 * include/grub/tparm.h: Likewise.
47773 * include/grub/types.h: Likewise.
47774 * include/grub/video.h: Likewise.
47775 * include/grub/efi/api.h: Likewise.
47776 * include/grub/efi/chainloader.h: Likewise.
47777 * include/grub/efi/console.h: Likewise.
47778 * include/grub/efi/console_control.h: Likewise.
47779 * include/grub/efi/disk.h: Likewise.
47780 * include/grub/efi/efi.h: Likewise.
47781 * include/grub/efi/pe32.h: Likewise.
47782 * include/grub/efi/time.h: Likewise.
47783 * include/grub/i386/linux.h: Likewise.
47784 * include/grub/i386/setjmp.h: Likewise.
47785 * include/grub/i386/types.h: Likewise.
47786 * include/grub/i386/efi/kernel.h: Likewise.
47787 * include/grub/i386/efi/loader.h: Likewise.
47788 * include/grub/i386/efi/time.h: Likewise.
47789 * include/grub/i386/pc/biosdisk.h: Likewise.
47790 * include/grub/i386/pc/boot.h: Likewise.
47791 * include/grub/i386/pc/chainloader.h: Likewise.
47792 * include/grub/i386/pc/console.h: Likewise.
47793 * include/grub/i386/pc/init.h: Likewise.
47794 * include/grub/i386/pc/kernel.h: Likewise.
47795 * include/grub/i386/pc/loader.h: Likewise.
47796 * include/grub/i386/pc/memory.h: Likewise.
47797 * include/grub/i386/pc/multiboot.h: Likewise.
47798 * include/grub/i386/pc/serial.h: Likewise.
47799 * include/grub/i386/pc/time.h: Likewise.
47800 * include/grub/i386/pc/vbe.h: Likewise.
47801 * include/grub/i386/pc/vbeblit.h: Likewise.
47802 * include/grub/i386/pc/vbefill.h: Likewise.
47803 * include/grub/i386/pc/vbeutil.h: Likewise.
47804 * include/grub/i386/pc/vga.h: Likewise.
47805 * include/grub/ieee1275/ieee1275.h: Likewise.
47806 * include/grub/ieee1275/ofdisk.h: Likewise.
47807 * include/grub/powerpc/libgcc.h: Likewise.
47808 * include/grub/powerpc/setjmp.h: Likewise.
47809 * include/grub/powerpc/types.h: Likewise.
47810 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47811 * include/grub/powerpc/ieee1275/console.h: Likewise.
47812 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47813 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47814 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47815 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47816 * include/grub/powerpc/ieee1275/time.h: Likewise.
47817 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47818 * include/grub/sparc64/libgcc.h: Likewise.
47819 * include/grub/sparc64/setjmp.h: Likewise.
47820 * include/grub/sparc64/types.h: Likewise.
47821 * include/grub/sparc64/ieee1275/console.h: Likewise.
47822 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47823 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47824 * include/grub/sparc64/ieee1275/time.h: Likewise.
47825 * include/grub/util/biosdisk.h: Likewise.
47826 * include/grub/util/getroot.h: Likewise.
47827 * include/grub/util/lvm.h: Likewise.
47828 * include/grub/util/misc.h: Likewise.
47829 * include/grub/util/raid.h: Likewise.
47830 * include/grub/util/resolve.h: Likewise.
47831 * io/gzio.c: Likewise.
47832 * kern/device.c: Likewise.
47833 * kern/disk.c: Likewise.
47834 * kern/dl.c: Likewise.
47835 * kern/elf.c: Likewise.
47836 * kern/env.c: Likewise.
47837 * kern/err.c: Likewise.
47838 * kern/file.c: Likewise.
47839 * kern/fs.c: Likewise.
47840 * kern/loader.c: Likewise.
47841 * kern/main.c: Likewise.
47842 * kern/misc.c: Likewise.
47843 * kern/mm.c: Likewise.
47844 * kern/parser.c: Likewise.
47845 * kern/partition.c: Likewise.
47846 * kern/rescue.c: Likewise.
47847 * kern/term.c: Likewise.
47848 * kern/efi/efi.c: Likewise.
47849 * kern/efi/init.c: Likewise.
47850 * kern/efi/mm.c: Likewise.
47851 * kern/i386/dl.c: Likewise.
47852 * kern/i386/efi/init.c: Likewise.
47853 * kern/i386/efi/startup.S: Likewise.
47854 * kern/i386/pc/init.c: Likewise.
47855 * kern/i386/pc/lzo1x.S: Likewise.
47856 * kern/i386/pc/startup.S: Likewise.
47857 * kern/ieee1275/ieee1275.c: Likewise.
47858 * kern/powerpc/cache.S: Likewise.
47859 * kern/powerpc/dl.c: Likewise.
47860 * kern/powerpc/ieee1275/cmain.c: Likewise.
47861 * kern/powerpc/ieee1275/crt0.S: Likewise.
47862 * kern/powerpc/ieee1275/init.c: Likewise.
47863 * kern/powerpc/ieee1275/openfw.c: Likewise.
47864 * kern/sparc64/cache.S: Likewise.
47865 * kern/sparc64/dl.c: Likewise.
47866 * kern/sparc64/ieee1275/init.c: Likewise.
47867 * kern/sparc64/ieee1275/openfw.c: Likewise.
47868 * loader/efi/chainloader.c: Likewise.
47869 * loader/efi/chainloader_normal.c: Likewise.
47870 * loader/i386/efi/linux.c: Likewise.
47871 * loader/i386/efi/linux_normal.c: Likewise.
47872 * loader/i386/pc/chainloader.c: Likewise.
47873 * loader/i386/pc/chainloader_normal.c: Likewise.
47874 * loader/i386/pc/linux.c: Likewise.
47875 * loader/i386/pc/linux_normal.c: Likewise.
47876 * loader/i386/pc/multiboot.c: Likewise.
47877 * loader/i386/pc/multiboot_normal.c: Likewise.
47878 * loader/powerpc/ieee1275/linux.c: Likewise.
47879 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47880 * normal/arg.c: Likewise.
47881 * normal/cmdline.c: Likewise.
47882 * normal/command.c: Likewise.
47883 * normal/completion.c: Likewise.
47884 * normal/execute.c: Likewise.
47885 * normal/function.c: Likewise.
47886 * normal/lexer.c: Likewise.
47887 * normal/main.c: Likewise.
47888 * normal/menu.c: Likewise.
47889 * normal/menu_entry.c: Likewise.
47890 * normal/misc.c: Likewise.
47891 * normal/parser.y: Likewise.
47892 * normal/script.c: Likewise.
47893 * normal/i386/setjmp.S: Likewise.
47894 * normal/powerpc/setjmp.S: Likewise.
47895 * normal/sparc64/setjmp.S: Likewise.
47896 * partmap/acorn.c: Likewise.
47897 * partmap/amiga.c: Likewise.
47898 * partmap/apple.c: Likewise.
47899 * partmap/gpt.c: Likewise.
47900 * partmap/pc.c: Likewise.
47901 * partmap/sun.c: Likewise.
47902 * term/gfxterm.c: Likewise.
47903 * term/terminfo.c: Likewise.
47904 * term/efi/console.c: Likewise.
47905 * term/i386/pc/console.c: Likewise.
47906 * term/i386/pc/serial.c: Likewise.
47907 * term/i386/pc/vesafb.c: Likewise.
47908 * term/i386/pc/vga.c: Likewise.
47909 * term/ieee1275/ofconsole.c: Likewise.
47910 * util/biosdisk.c: Likewise.
47911 * util/console.c: Likewise.
47912 * util/genmoddep.c: Likewise.
47913 * util/getroot.c: Likewise.
47914 * util/grub-emu.c: Likewise.
47915 * util/grub-mkdevicemap.c: Likewise.
47916 * util/grub-probe.c: Likewise.
47917 * util/lvm.c: Likewise.
47918 * util/misc.c: Likewise.
47919 * util/raid.c: Likewise.
47920 * util/resolve.c: Likewise.
47921 * util/update-grub.in: Likewise.
47922 * util/update-grub_lib.in: Likewise.
47923 * util/grub.d/00_header.in: Likewise.
47924 * util/grub.d/10_hurd.in: Likewise.
47925 * util/grub.d/10_linux.in: Likewise.
47926 * util/i386/efi/grub-install.in: Likewise.
47927 * util/i386/efi/grub-mkimage.c: Likewise.
47928 * util/i386/pc/grub-install.in: Likewise.
47929 * util/i386/pc/grub-mkimage.c: Likewise.
47930 * util/i386/pc/grub-mkrescue.in: Likewise.
47931 * util/i386/pc/grub-setup.c: Likewise.
47932 * util/i386/pc/misc.c: Likewise.
47933 * util/powerpc/ieee1275/grub-install.in: Likewise.
47934 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
47935 * util/powerpc/ieee1275/misc.c: Likewise.
47936 * video/bitmap.c: Likewise.
47937 * video/video.c: Likewise.
47938 * video/i386/pc/vbe.c: Likewise.
47939 * video/i386/pc/vbeblit.c: Likewise.
47940 * video/i386/pc/vbefill.c: Likewise.
47941 * video/i386/pc/vbeutil.c: Likewise.
47942 * video/readers/tga.c: Likewise.
47944 2007-07-02 Robert Millan <rmh@aybabtu.com>
47946 * conf/i386-efi.rmk: Replace obsolete reference to
47947 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
47948 with util/getroot.c.
47949 * conf/powerpc-ieee1275.rmk: Likewise.
47950 * conf/sparc64-ieee1275.rmk: Likewise.
47952 * util/grub-emu.c (main): Fix unchecked pointer handling.
47954 2007-07-02 Robert Millan <rmh@aybabtu.com>
47956 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
47957 invocation to fail, in order to support partition-less media.
47959 * util/i386/pc/grub-install.in: Likewise.
47961 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
47962 which fs or partmap modules are needed (akin to its sister scripts).
47964 Also use grub-probe to get rid of unportable /proc/mounts check.
47966 Print the same informational message that the other scripts do, before
47969 2007-06-23 Robert Millan <rmh@aybabtu.com>
47971 * util/update-grub_lib.in (font_path): New function. Determine whether
47972 a font file can be found and, if so, echo the GRUB path to it.
47974 * util/update-grub.in: Handle multiple terminals depending on user
47975 input, platform availability and font file presence. Propagate
47976 variables of our findings to /etc/grub.d/ children.
47978 * util/grub.d/00_header.in: Handle multiple terminals, based on
47979 environment setup by update-grub.
47981 2007-06-23 Robert Millan <rmh@aybabtu.com>
47983 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
47985 2007-06-21 Robert Millan <rmh@aybabtu.com>
47987 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
47988 indicate end of data section in kernel image.
47989 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
47990 GRUB_KERNEL_MACHINE_DATA_END.
47992 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
47994 * kern/i386/efi/startup.S: Likewise.
47996 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
47997 during image generation. Implement --prefix option to override this
47999 * util/i386/efi/grub-mkimage.c: Likewise.
48001 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48002 code to make path relative to its root into a separate function.
48004 * util/i386/pc/grub-install.in: Use newly provided
48005 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48006 pass the result to grub-install --prefix.
48008 2007-06-13 Robert Millan <rmh@aybabtu.com>
48010 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48011 DEFAULT_DEVICE_MAP.
48012 * util/grub-emu.c: Use above definitions from misc.h instead of
48014 * util/grub-mkdevicemap.c: Likewise.
48015 * util/i386/pc/grub-setup.c: Likewise.
48016 * util/grub-probe.c: Likewise.
48017 (probe): Abort with grub_util_error() when either
48018 grub_guess_root_device or grub_util_get_grub_dev fails.
48020 2007-06-12 Robert Millan <rmh@aybabtu.com>
48022 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48023 "pager" assignment.
48024 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48026 * util/grub-probe.c (probe): Likewise for "drive_name".
48028 2007-06-11 Robert Millan <rmh@aybabtu.com>
48030 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48031 not just the cdrom one.
48033 2007-06-11 Robert Millan <rmh@aybabtu.com>
48035 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48036 Add --pkglibdir=DIR option to override pkglibdir.
48037 Mention --image-type=TYPE in help output.
48038 Fix --grub-mkimage (it was a no-op).
48039 Abort gracefully when no parameter is given.
48041 2007-06-11 Robert Millan <rmh@aybabtu.com>
48043 * util/i386/pc/grub-mkrescue.in: New file.
48044 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48045 * Makefile.in: Handle bin_SCRIPTS.
48047 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48049 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48050 list of video modes.
48052 2007-06-06 Robert Millan <rmh@aybabtu.com>
48054 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48055 file doesn't exist, or if it is in a filesystem grub can't read.
48057 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48058 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48059 header comment to fit in 80 columns when the variables are resolved.
48061 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48062 could be identified by update-grub. Remove redundant check for
48063 unifont.pff existence (since convert_system_path_to_grub_path now
48066 2007-06-04 Robert Millan <rmh@aybabtu.com>
48068 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48070 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48072 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48074 2007-06-04 Robert Millan <rmh@aybabtu.com>
48076 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48078 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48079 grub_apple_partition_map_fini.
48082 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48083 to access >2 TiB disks).
48085 Print disk->total_sectors with %llu instead of %lu, since this
48086 variable is always 64-bit (prevents wrong disk size from being displayed
48087 on either >2 TiB disk or big-endian CPU).
48089 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48090 into a generic case that supports all (sane) partition maps.
48092 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48095 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48096 and grub_apple_partition_map_fini() after that.
48098 2007-06-01 Robert Millan <rmh@aybabtu.com>
48100 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48102 * util/grub.d/00_header.in: Only enable gfxterm when
48103 convert_system_path_to_grub_path() succeeds.
48105 2007-05-20 Robert Millan <rmh@aybabtu.com>
48107 * util/update-grub_lib.in: New file.
48108 * DISTLIST: Add update-grub_lib.in.
48109 * conf/common.rmk: Generate update-grub_lib and install it in
48111 * Makefile.in: Add install routine for $(lib_DATA).
48113 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48114 function provided by update-grub_lib to support arbitrary paths of
48116 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48117 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48119 2007-05-19 Robert Millan <rmh@aybabtu.com>
48121 * commands/i386/cpuid.c: New module.
48122 * DISTLIST: Add it.
48123 * conf/i386-efi.rmk: Enable cpuid.mod.
48124 * conf/i386-pc.rmk: Likewise.
48126 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48128 * kern/disk.c (grub_disk_read): Check return value of
48131 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48133 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48135 * disk/raid.c (grub_raid_open): Likewise.
48137 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48139 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48140 stack instead of on the heap.
48142 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48143 before doing a read on it.
48145 * configure.ac: Only use -fno-stack-protector for the target
48148 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48150 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48151 __attribute_ ((unused)) to mode_type argument.
48153 * util/getroot.c (grub_guess_root_device): Fix #endif.
48155 * kern/misc.c (memcmp): Fix prototype.
48157 * include/grub/partition.h [GRUB_UTIL]
48158 (grub_gpt_partition_map_init): Add prototype.
48159 (grub_gpt_partition_map_fini): Likewise.
48161 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48162 at the right place.
48164 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48165 (grub_fat_read_data): Likewise.
48166 (grub_fat_find_dir): Likewise.
48168 * font/manager.c (find_glyph): Make table a const.
48169 (grub_font_get_glyph): Remove bitmap from if statement.
48171 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48173 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48174 code, first search for device in /dev/mapper, then in /dev.
48175 (grub_util_get_grub_dev): New function.
48176 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48178 * util/grub-probe.c (probe): Remove check for RAID, call
48179 grub_util_get_grub_dev() instead of
48180 grub_util_biosdisk_get_grub_dev().
48181 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48182 grub_util_biosdisk_get_grub_dev().
48183 * util/i386/pc/grub-setup.c (main): Likewise.
48185 2007-05-16 Robert Millan <rmh@aybabtu.com>
48187 * DISTLIST: Update for the latest changes.
48188 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48189 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48190 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48191 grub/util/biosdisk.h.
48192 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48193 grub/util/biosdisk.h.
48195 2007-05-16 Robert Millan <rmh@aybabtu.com>
48197 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48199 2007-05-16 Robert Millan <rmh@aybabtu.com>
48201 * util/i386/efi/grub-install.in: New.
48202 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48203 newly added grub-install.
48204 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48206 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48207 grub/util/biosdisk.h.
48208 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48209 grub/util/biosdisk.h.
48211 2007-05-16 Robert Millan <rmh@aybabtu.com>
48213 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48214 * include/grub/util/biosdisk.h: ... here.
48215 * util/i386/pc/biosdisk.c: Moved to ...
48216 * util/biosdisk.c: ... here.
48217 * util/i386/pc/getroot.c: Moved to ...
48218 * util/getroot.c: ... here.
48219 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48220 * util/grub-mkdevicemap.c: ... here.
48221 * util/i386/pc/grub-probe.c: Moved to ...
48222 * util/grub-probe.c: ... here.
48224 2007-05-15 Robert Millan <rmh@aybabtu.com>
48226 * util/update-grub.in: Remove duplicated line in grub.cfg header
48229 2007-05-13 Robert Millan <rmh@aybabtu.com>
48231 * util/update-grub.in: Fix a few assumptions about the devices holding
48232 /, /boot and /boot/grub being the same.
48233 * util/grub.d/00_header.in: Likewise.
48234 * util/grub.d/10_hurd.in: Likewise.
48235 * util/grub.d/10_linux.in: Likewise.
48237 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48238 patterns. Use that to define the `.old' suffix as older than `'.
48240 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48242 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48243 the grub.cfg header message.
48245 2007-05-11 Robert Millan <rmh@aybabtu.com>
48247 * util/update-grub.in: Create device.map if it doesn't already exist,
48248 before attempting to run grub-probe.
48249 Check for grub-probe and grub-mkdevicemap with the same code
48250 grub-install is using.
48253 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48255 * Makefile.in: Add the datarootdir autoconf variable.
48257 2007-05-09 Robert Millan <rmh@aybabtu.com>
48259 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48260 fail gracefully if dev->disk->partition == NULL.
48262 2007-05-07 Robert Millan <rmh@aybabtu.com>
48264 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48265 determine partition map module.
48266 * util/i386/pc/grub-install.in: Use this feature to decide which
48267 partition module to load, instead of hardcoding pc and gpt.
48269 2007-05-07 Robert Millan <rmh@aybabtu.com>
48271 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48272 source directory differs from build directory.
48274 2007-05-05 Robert Millan <rmh@aybabtu.com>
48276 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48279 2007-05-05 Robert Millan <rmh@aybabtu.com>
48281 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48283 2007-05-05 Robert Millan <rmh@aybabtu.com>
48285 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48286 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48288 2007-05-05 Robert Millan <rmh@aybabtu.com>
48290 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48291 (grub_probe_SOURCES): Likewise.
48292 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48293 GPT and initialize dos_part and bsd_part accordingly.
48294 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48296 (main): Activate gpt module for use during partition identification,
48297 and deactivate it afterwards.
48298 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48299 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48300 partition identification, and deactivate it afterwards.
48302 2007-05-05 Robert Millan <rmh@aybabtu.com>
48304 * term/i386/pc/console.c (grub_console_fini): Call
48305 grub_term_set_current() before grub_term_unregister().
48307 2007-05-04 Robert Millan <rmh@aybabtu.com>
48309 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48310 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48311 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48312 and update-grub_DATA.
48313 * conf/common.rmk: Build and install update-grub components.
48314 * conf/common.mk: Regenerate.
48315 * util/update-grub.in: New. Core of update-grub.
48316 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48317 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48318 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48319 * util/grub.d/README: New. Document grub.d directory layout.
48321 2007-05-01 Robert Millan <rmh@aybabtu.com>
48323 * util/grub-emu.c: Move initialization functions
48324 grub_util_biosdisk_init() and grub_init_all() before
48325 grub_util_biosdisk_get_grub_dev(), which relies on them.
48327 2007-04-19 Robert Millan <rmh@aybabtu.com>
48329 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48332 2007-04-18 Jerone Young <jerone@gmail.com>
48334 * kernel/elf.c: Add missing parenthesis for conditional statement
48337 2007-04-10 Jerone Young <jerone@gmail.com>
48339 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48340 continue on and look for device node with real device name.
48342 2007-04-10 Jerone Young <jerone@gmail.com>
48344 * configure.ac: Add argument for autoconf to use transformation
48346 * Makefile.in: Add autoconf package transformation code.
48347 * util/i386/pc/grub-install.in: Likewise.
48348 * util/powerpc/ieee1275/grub-install.in: Likewise.
48350 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48352 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48353 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48354 (EXT2_REVISION): Likewise.
48355 (EXT2_INODE_SIZE): Likewise.
48356 (struct grub_ext2_block_group): Added a missing member
48358 (grub_ext2_read_inode): Divide by the inode size in a superblock
48359 instead of 128 to obtain INODES_PER_BLOCK.
48360 Use the macro EXT2_INODE_SIZE instead of directly using
48361 SBLOCK->INODE_SIZE.
48363 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48365 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48366 superblock instead of the structure size to compute an
48367 offset. This fixes the problem that GRUB could not read a
48368 filesystem when inode size is different from 128-byte.
48370 2007-03-05 Marco Gerards <marco@gnu.org>
48372 * normal/main.c (read_config_file): When "menu" is not set, create
48373 an initial context.
48375 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48377 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48378 (HEAP_LIMIT): New macro.
48379 (grub_claim_heap): Claim memory up to `heaplimit'.
48381 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48383 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48384 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48385 (_start): Likewise.
48386 (grub_arch_modules_addr): Return address after `_end'.
48387 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48388 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48389 (add_segments): Calculate `_end' from phdr size and location.
48390 (ALIGN_UP): Moved to ...
48391 * include/grub/misc.h: here.
48392 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48394 (GRUB_IEEE1275_MODULE_BASE): Removed.
48396 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48398 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48401 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48403 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48405 (grub_elf64_load_hook_t): Likewise.
48406 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48409 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48411 * kern/mm.c: Update copyright.
48412 (grub_mm_debug): Correct syntax error.
48413 (grub_mm_dump_free): New function.
48414 (grub_debug_free): Call `grub_free'.
48415 * include/grub/mm.h: Update copyright.
48416 (grub_mm_dump_free): Add declaration.
48418 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48420 * include/grub/ieee1275/ieee1275.h: Update copyright.
48421 * kern/powerpc/ieee1275/init.c: Likewise.
48422 * kern/powerpc/ieee1275/openfw.c: Likewise.
48424 * loader/powerpc/ieee1275/linux.c: Likewise.
48425 * include/grub/elfload.h: Likewise.
48426 * kern/elf.c: Likewise.
48427 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48429 (grub_elf64_load): Likewise.
48430 (grub_elf32_load_segment): Move to a nested function.
48431 (grub_elf64_load_segment): Likewise.
48433 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48435 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48437 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48438 (grub_heap_len): Likewise.
48439 (HEAP_SIZE): New macro.
48440 (grub_claim_heap): New function.
48441 (grub_machine_init): Don't claim heap directly. Call
48443 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48444 (grub_available_iterate): New function.
48446 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48448 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48449 * configure.ac: Use it for testing the HOST and TARGET compilers.
48451 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48453 * Makefile.in (enable_grub_emu): New variable.
48454 * configure.ac (--enable-grub-emu): New option.
48455 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48456 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48457 * conf/i386-pc.rmk: Likewise.
48458 * conf/powerpc-ieee1275.rmk: Likewise.
48459 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48461 2006-12-12 Marco Gerards <marco@gnu.org>
48463 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48465 * kern/env.c (grub_env_unset): Don't free the member `value' when
48466 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48469 * normal/main.c (current_menu): Removed.
48470 (free_menu): Unset the `menu' environment variable.
48471 (grub_normal_menu_addentry): Make use of the environment variable
48472 `menu', instead of using the global `current_menu'. Allocate
48473 memory for the sourcecode of this entry.
48474 (read_config_file): New argument `nested', changed all callers.
48475 Only in the case of a new context, initialize a new menu. Set the
48476 `menu' environment variable.
48477 (grub_normal_execute): Don't set and unset the environment
48478 variable `menu' here anymore. Only free the menu when leaving the
48481 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48484 2006-12-11 Marco Gerards <marco@gnu.org>
48486 * normal/menu_entry.c (run): Fix off by one bug so the last line
48487 is executed. Move the loader check to outside the loop.
48489 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48491 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48493 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48495 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48496 the number of sectors. Reported by Andrey Shuvikov
48497 <mr_hyro@yahoo.com>.
48499 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48501 * kern/disk.c (grub_disk_read): When there is a read error, always
48502 try to read only the necessary data.
48504 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48506 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48508 [GRUB_UTIL] (grub_raid_fini): Likewise.
48509 [GRUB_UTIL] (grub_lvm_init): Likewise.
48510 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48511 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48512 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48513 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48514 and grub_raid_fini().
48516 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48518 * include/grub/types.h (__unused): Rename to UNUSED.
48519 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48520 (grub_elf64_size): Likewise.
48522 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48524 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48525 grub_error_push and grub_error_pop in the error-handling path.
48526 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48529 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48531 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48532 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48533 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48534 (kernel_elf_SOURCES): Likewise.
48535 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48536 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48537 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48538 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48539 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48540 (elf_mod_SOURCES): New variable.
48541 (elf_mod_CFLAGS): Likewise.
48542 (elf_mod_LDFLAGS): Likewise.
48543 * include/grub/types.h (__unused): New macro.
48544 * include/grub/elfload.h: New file.
48545 * kern/elf.c: Likewise.
48546 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48547 (ELF32_LOADMASK): New macro.
48548 (ELF64_LOADMASK): Likewise.
48549 (vmlinux): Removed.
48550 (grub_linux_load32): New function.
48551 (grub_linux_load64): Likewise.
48552 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48553 Use grub_elf_t instead of grub_file_t.
48555 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48557 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48558 `catch_result' to struct set_color_args.
48560 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48562 * normal/menu.c: Include grub/script.h.
48563 * normal/menu_entry.c: Likewise.
48564 * include/grub/normal.h: Do not include grub/script.h.
48566 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48568 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48570 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48572 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48574 (grub_disk_close): Print debug messages when closing a disk.
48575 (grub_disk_read): Print debug messages when disk read fails.
48576 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48578 * kern/partition.c: Include misc.h.
48579 (grub_partition_iterate): Print debug messages when detecting
48582 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48584 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48586 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48588 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48590 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48591 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48593 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48595 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48596 instead of sizeof(lv). Patch by Michael Guntsche.
48598 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48600 * disk/lvm.c: Rename VGS to VG_LIST.
48601 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48602 (grub_lvm_open): Likewise.
48603 Thanks to Michael Guntsche for finding this bug.
48605 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48607 * configure.ac (AC_INIT): Bumped to 1.95.
48609 2006-10-14 Robert Millan <rmh@aybabtu.com>
48611 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48612 with "/dev/.static/dev/md".
48614 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48616 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48617 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48618 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48619 DRIVE_NAME are always freed.
48621 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48622 DOS_PART, as a DOS partition is counted from one instead of zero
48623 now. Reported by Robert Millan.
48625 2006-10-14 Robert Millan <rmh@aybabtu.com>
48627 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48628 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48629 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48630 string returned by grub_guess_root_device.
48631 * util/i386/pc/grub-setup.c: Likewise.
48632 * util/i386/pc/grub-probefs.c: Likewise.
48634 * util/i386/pc/grub-probefs.c: Rename to ...
48635 * util/i386/pc/grub-probe.c: ... this.
48636 * DISTLIST: Remove grub-probefs, add grub-probe.
48637 * conf/i386-efi.rmk: Likewise.
48638 * conf/i386-pc.rmk: Likewise.
48639 * util/i386/pc/grub-install.in: Likewise.
48641 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48642 choose which information we want to print.
48644 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48646 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48647 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48648 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48649 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48650 video/readers/tga.c and video/i386/pc/vbeutil.c.
48652 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48654 Added support for RAID and LVM.
48656 * disk/lvm.c: New file.
48657 * disk/raid.c: Likewise.
48658 * include/grub/lvm.h: Likewise.
48659 * include/grub/raid.h: Likewise.
48660 * include/grub/util/lvm.h: Likewise.
48661 * include/grub/util/raid.h: Likewise.
48662 * util/lvm.c: Likewise.
48663 * util/raid.c: Likewise.
48665 * include/grub/disk.h (grub_disk_dev_id): Add
48666 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48667 (grub_disk_get_size): New prototype.
48668 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48669 returns a partition.
48670 (grub_disk_get_size): New function.
48672 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48673 verbatim if grub_install_dos_part is -2.
48675 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48678 * util/i386/pc/grub-setup.c (setup): New argument
48679 MUST_EMBED. Force embedding of GRUB when the argument is
48680 true. Close FILE before returning.
48681 (main): Add support for RAID and LVM.
48683 * conf/common.rmk: Add RAID and LVM modules.
48684 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48686 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48688 * kern/misc.c (grub_strstr): New function.
48689 * include/grub/misc.h (grub_strstr): New prototype.
48691 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48693 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48695 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48697 * kern/misc.c (grub_strtoull): Guess the base only if not
48700 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48702 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48705 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48707 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48709 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48710 Remove `flags' argument. All callers changed.
48711 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48712 (IEEE1275_IHANDLE_INVALID): New variable.
48713 (IEEE1275_CELL_INVALID): New variable.
48714 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48715 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48716 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48717 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48718 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48719 codes from Open Firmware. All callers updated.
48720 (grub_ieee1275_next_property): Directly return Open Firmware return
48722 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48723 Standardize error checking from `grub_ieee1275_get_property'.
48724 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48725 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48727 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48729 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48730 `instance_to_package_args' to `instance_to_path_args'.
48732 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48733 `grub_ieee1275_chosen'.
48735 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48736 `grub_ieee1275_interpret'.
48738 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48740 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48742 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48744 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48745 (__cmpdi): Likewise.
48747 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48748 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48751 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48753 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48754 to type `grub_ssize_t'.
48755 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48757 2006-09-22 Marco Gerards <marco@gnu.org>
48759 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48762 2006-09-22 Marco Gerards <marco@gnu.org>
48764 * commands/echo.c: New file.
48766 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48768 * conf/common.rmk (echo_mod_SOURCES): New variable.
48769 (echo_mod_CFLAGS): Likewise.
48770 (echo_mod_LDFLAGS): Likewise.
48772 2006-09-22 Marco Gerards <marco@gnu.org>
48774 * normal/main.c (get_line): Malloc memory instead of using
48775 preallocated memory. Removed the arguments `cmdline' and
48776 `max_len'. Updated all callers.
48778 2006-09-22 Marco Gerards <marco@gnu.org>
48780 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48781 (normal_mod_DEPENDENCIES): Likewise.
48783 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48784 (normal_mod_DEPENDENCIES): Likewise.
48786 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48788 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48790 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48792 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48793 (normal_mod_DEPENDENCIES): Likewise.
48794 * conf/i386-pc.mk: Regenerate.
48795 * conf/i386-efi.mk: Likewise
48796 * conf/common.mk: Likewise.
48797 * conf/powerpc-ieee1275.mk: Likewise.
48798 * conf/sparc64-ieee1275.mk: Likewise.
48800 2006-09-22 Robert Millan <rmh@aybabtu.com>
48802 Sync with i386 version.
48803 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48804 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48806 2006-09-21 Robert Millan <rmh@aybabtu.com>
48808 Import from GRUB Legacy (lib/device.c):
48809 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48810 (init_device_map) [__linux__]: Add support for I2O devices.
48812 2006-09-14 Marco Gerards <marco@gnu.org>
48814 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48817 2006-09-14 Robert Millan <rmh@aybabtu.com>
48819 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48822 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48824 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48825 before adding it to device.map.
48827 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48829 * genmk.rb: Let GCC generate dependencies the first time it
48830 compiles a file; using the -MD option.
48831 * conf/common.mk: Regenerate.
48832 * conf/i386-pc.mk: Likewise.
48833 * conf/i386-efi.mk: Likewise.
48834 * conf/powerpc-ieee1275.mk: Likewise.
48835 * conf/sparc64-ieee1275.mk: Likewise.
48837 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48839 Move the prototypes of grub_setjmp and grub_longjmp to
48840 cpu/setjmp.h, so that each architecture may specify different
48843 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48844 (grub_longjmp): Likewise.
48845 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48846 (grub_longjmp): Likewise.
48847 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48848 (grub_longjmp): Likewise.
48850 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48851 [!GRUB_UTIL] (grub_longjmp): Removed.
48853 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48855 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48856 "color!" method does not return any value.
48858 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48860 * include/grub/bitmap.h: New file.
48862 * include/grub/i386/pc/vbeutil.h: Likewise.
48864 * video/bitmap.c: Likewise.
48866 * video/readers/tga.c: Likewise.
48868 * video/i386/pc/vbeutil.c: Likewise.
48870 * commands/videotest.c: Code cleanup and updated to reflect to new
48873 * term/gfxterm.c: Likewise.
48875 * video/video.c: Likewise.
48877 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
48878 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
48879 (bitmap_mod_SOURCES): New entry.
48880 (bitmap_mod_CFLAGS): Likewise.
48881 (bitmap_mod_LDFLAGS): Likewise.
48882 (tga_mod_SOURCES): Likewise.
48883 (tga_mod_CFLAGS): Likewise.
48884 (tga_mod_LDFLAGS): Likewise.
48886 * include/grub/video.h (grub_video_blit_operators): New enum type.
48887 (grub_video_render_target): Changed as forward declaration and moved
48888 actual definition to be video driver specific.
48889 (grub_video_adapter.blit_bitmap): Added blitting operator.
48890 (grub_video_adapter.blit_render_target): Likewise.
48891 (grub_video_blit_bitmap): Likewise.
48892 (grub_video_blit_render_target): Likewise.
48894 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
48895 driver specific render target definition.
48896 (grub_video_vbe_map_rgba): Added driver internal helper.
48897 (grub_video_vbe_unmap_color): Updated to use
48898 grub_video_i386_vbeblit_info.
48899 (grub_video_vbe_get_video_ptr): Likewise.
48901 * include/grub/i386/pc/vbeblit.h
48902 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
48903 grub_video_i386_vbeblit_info.
48904 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
48905 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
48906 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
48907 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
48908 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
48909 (grub_video_i386_vbeblit_index_index): Likewise.
48910 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
48911 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
48912 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
48913 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
48915 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
48918 * video/i386/pc/vbeblit.c: Updated to reflect changes on
48919 include/grub/i386/pc/vbeblit.h.
48921 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
48922 Updated to use grub_video_i386_vbeblit_info.
48923 (grub_video_i386_vbefill_R8G8B8): Likewise.
48924 (grub_video_i386_vbefill_index): Likewise.
48925 (grub_video_i386_vbefill): Added generic filler.
48927 * video/i386/pc/vbefill.c: Updated to reflect changes on
48928 include/grub/i386/pc/vbefill.h.
48930 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
48931 grub_video_i386_vbeblit_info.
48932 (grub_video_vbe_unmap_color): Likewise.
48933 (grub_video_vbe_blit_glyph): Likewise.
48934 (grub_video_vbe_scroll): Likewise.
48935 (grub_video_vbe_draw_pixel): Removed function.
48936 (grub_video_vbe_get_pixel): Likewise.
48937 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
48938 updated code to use it.
48939 (common_blitter): Added common blitter for render target and bitmap.
48940 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
48941 (grub_video_vbe_blit_render_target): Likewise.
48943 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
48945 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
48946 is in text mode if there is no console control protocol instance
48949 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48951 * include/grub/video.h: Code cleanup.
48953 * include/grub/i386/pc/vbe.h: Likewise.
48955 * video/i386/pc/vbe.c: Likewise.
48957 * video/i386/pc/vbeblit.c: Likewise.
48959 * video/i386/pc/vbefill.c: Likewise.
48961 * video/video.c: Likewise. Also added more comments.
48963 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48965 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
48966 (struct grub_biosdisk_dap): Likewise.
48968 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
48969 linkage settings for all functions.
48971 2006-07-12 Marco Gerards <marco@gnu.org>
48973 * configure.ac (--enable-mm-debug): Fix typo.
48975 * genkernsyms.sh.in: Use proper quoting for `CC'.
48977 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
48979 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
48980 (normal_mod_ASFLAGS): Remove "-m32".
48982 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
48984 * util/misc.c: Include config.h.
48985 [!HAVE_MEMALIGN]: Do not include malloc.h.
48986 (grub_memalign): Use posix_memalign, if present. Then, use
48987 memalign, if present. Otherwise, emit an error.
48989 * util/grub-emu.c: Do not include malloc.h.
48991 * include/grub/util/misc.h: Include unistd.h. This is required for
48992 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
48993 D. Eades III <hde@foobar-qux.org>.
48995 * configure.ac (AC_GNU_SOURCE): Added.
48996 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
48999 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49001 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49002 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49004 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49006 * include/grub/types.h (grub_host_addr_t): Rename to
49007 grub_target_addr_t.
49008 (grub_host_off_t): Rename to grub_target_off_t.
49009 (grub_host_size_t): Rename to grub_target_size_t.
49010 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49011 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49013 * include/grub/kernel.h (struct grub_module_header): Change type
49014 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49015 (grub_module_info): Likewise.
49017 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49019 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49020 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49021 Velazquez <jesus.velazquez@gmail.com>.
49023 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49025 Count partitions from 1 instead of 0 in the string representation
49026 of partitions. Still use 0-based internally.
49028 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49029 (sun_partition_map_iterate): Use grub_partition_t instead of
49030 struct grub_partition *. Cast DESC->START_CYLINDER to
49031 grub_uint64_t after converting the endian.
49032 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49033 (sun_partition_map_get_name): Add 1 to P->INDEX.
49035 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49037 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49039 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49040 zero instead of one.
49041 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49042 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49044 * partmap/apple.c (apple_partition_map_iterate): Change the type
49045 of POS to unsigned.
49046 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49047 (apple_partition_map_get_name): Add 1 into P->INDEX.
49049 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49050 of POS to unsigned.
49051 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49052 calculate the offset of a partition.
49053 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49054 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49056 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49057 SECTOR to grub_disk_addr_t.
49058 (acorn_partition_map_iterate): Likewise.
49059 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49060 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49062 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49064 * kern/i386/pc/init.c (make_install_device): Add 1 into
49065 GRUB_INSTALL_DOS_PART.
49067 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49070 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49072 Clean up the code to support 64-bit addressing in disks and
49073 files. This change is not enough for filesystems yet.
49075 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49076 type of "start" to grub_uint64_t.
49077 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49078 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49079 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49082 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49083 to grub_disk_addr_t.
49085 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49088 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49090 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49093 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49095 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49097 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49099 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49100 to grub_off_t, to detect an error from grub_file_seek.
49101 (grub_multiboot_load_elf32): Likewise.
49103 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49104 maximum unsigned long value when an overflow is detected.
49105 (grub_strtoull): New function.
49106 (grub_divmod64): Likewise.
49107 (grub_lltoa): use grub_divmod64.
49109 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49111 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49112 the pointer to next character. Use grub_strtoull instead of
49114 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49115 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49118 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49119 return value is signed.
49120 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49121 test if OFFSET is less than zero, as OFFSET is unsigned now.
49123 * kern/disk.c (struct grub_disk_cache): Change the type of
49124 "sector" to grub_disk_addr_t.
49125 (grub_disk_cache_get_index): Change the type of SECTOR to
49126 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49127 unsigned after shifting.
49128 (grub_disk_cache_invalidate): Change the type of SECTOR to
49130 (grub_disk_cache_unlock): Likewise.
49131 (grub_disk_cache_store): Likewise.
49132 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49133 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49134 grub_disk_addr_t and grub_uint64_t, respectively.
49135 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49136 body, as the value of OFFSET is tweaked by
49137 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49138 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49140 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49141 body, as the value of OFFSET is tweaked by
49142 grub_disk_check_range. Change the types of LEN and N to
49145 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49146 and "saved_offset" to grub_off_t.
49147 (test_header): Cast BUF to char *.
49148 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49150 (grub_gzio_read): Change the types of OFFSET and SIZE to
49151 grub_off_t and grub_size_t, respectively.
49153 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49155 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49156 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49157 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49158 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49159 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49161 * include/grub/types.h (grub_off_t): Unconditionally set to
49163 (grub_disk_addr_t): Changed to grub_uint64_t.
49165 * include/grub/partition.h (struct grub_partition): Change the
49166 types of "start", "len" and "offset" to grub_disk_addr_t,
49167 grub_uint64_t and grub_disk_addr_t, respectively.
49168 (grub_partition_get_start): Return grub_disk_addr_t.
49169 (grub_partition_get_len): Return grub_uint64_t.
49171 * include/grub/misc.h (grub_strtoull): New prototype.
49172 (grub_divmod64): Likewise.
49174 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49175 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49176 grub_off_t, respectively.
49177 All callers and references changed.
49179 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49180 grub_size_t in "read".
49181 All callers and references changed.
49183 * include/grub/file.h (struct grub_file): Change the types of
49184 "offset" and "size" to grub_off_t and grub_off_t,
49185 respectively. Change the type of SECTOR to grub_disk_addr_t in
49187 (grub_file_read): Change the type of LEN to grub_size_t.
49188 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49190 (grub_file_size): Return grub_off_t.
49191 (grub_file_tell): Likewise.
49192 All callers and references changed.
49194 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49195 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49197 (struct grub_disk): Change the type of "total_sectors" to
49198 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49200 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49201 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49202 (grub_disk_write): Likewise.
49203 All callers and references changed.
49205 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49206 char * for grub_strncmp to silence gcc.
49207 (grub_iso9660_mount): Likewise.
49208 (grub_iso9660_mount): Likewise.
49209 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49211 (grub_iso9660_iterate_dir): Likewise.
49212 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49214 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49215 LEN to grub_disk_addr_t and grub_size_t, respectively.
49217 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49219 * fs/jfs.c (grub_jfs_read_file): Likewise.
49221 * fs/minix.c (grub_jfs_read_file): Likewise.
49223 * fs/sfs.c (grub_jfs_read_file): Likewise.
49225 * fs/ufs.c (grub_jfs_read_file): Likewise.
49227 * fs/xfs.c (grub_jfs_read_file): Likewise.
49229 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49230 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49233 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49234 BLKNR to -1 instead of returning GRUB_ERRNO.
49235 (grub_ext2_read_file): Change the types of SECTOR and
49236 LEN to grub_disk_addr_t and grub_size_t, respectively.
49238 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49239 LEN to grub_disk_addr_t and grub_size_t, respectively.
49241 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49244 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49245 string. Do not cast SECTOR explicitly.
49247 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49248 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49249 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49250 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49251 over 2TB and LBA mode is not supported, raise an error.
49252 (get_safe_sectors): New function.
49253 (grub_biosdisk_read): Use get_safe_sectors.
49254 (grub_biosdisk_write): Likewise.
49256 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49257 (grub_efidisk_write): Likewise.
49259 * disk/loopback.c (delete_loopback): Cosmetic changes.
49260 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49262 (grub_loopback_open): Likewise.
49263 (grub_loopback_read): Likewise. Also, change the type of POS to
49264 grub_off_t, and fix the usage of grub_memset.
49266 * commands/i386/pc/play.c: Include grub/machine/time.h.
49268 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49271 * commands/configfile.c: Include grub/env.h.
49273 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49274 GRUB_ERRNO directly instead. Change the type of POS to
49275 grub_off_t. Follow the coding standard.
49277 * commands/blocklist.c: Include grub/partition.h.
49278 (grub_cmd_blocklist): Return an error if the underlying device is
49279 not a disk. Take the starting sector of a partition into account,
49280 if a partition is used.
49282 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49284 (lba_mode): Support 64-bit addresses.
49285 (chs_mode): Likewise.
49286 (copy_buffer): Adapted to the new offsets of a length field and a
49288 (blocklist_default_start): Allocate 64-bit space.
49290 * boot/i386/pc/boot.S (force_lba): Removed.
49291 (boot_drive): Moved to under KERNEL_SECTOR.
49292 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49294 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49296 (lba_mode): Refactored to support a 64-bit address. More size
49298 (setup_sectors): Likewise.
49300 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49302 * DISTLIST: Added include/grub/i386/linux.h. Removed
49303 include/grub/i386/pc/linux.h
49305 * configure.ac (AC_INIT): Bumped to 1.94.
49307 * config.guess: Updated from gnulib.
49308 * config.sub: Likewise.
49309 * install-sh: Likewise.
49310 * mkinstalldirs: Likewise.
49312 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49314 * conf/common.rmk (grub_modules_init.lst): Depended on
49315 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49318 * genmk.rb (PModule::rule): Reverted the previous change.
49320 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49322 * conf/common.rmk (grub_modules_init.lst): Depends on
49323 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49324 that the target does not exist before producing.
49325 (grub_modules_init.h): Remove the target before generating.
49326 (grub_emu_init.c): Likewise.
49328 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49330 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49332 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49333 for the target-specific tests. Make sure that we also have the
49334 up-to-date target variables for those tests.
49336 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49338 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49339 (PModule::rule): Likewise.
49341 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49343 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49344 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49345 target-specific flags should be prefixed.
49346 (PModule::rule): Likewise.
49348 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49350 * configure.ac (CMP): Check if cmp is available explicitly.
49352 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49354 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49355 (target_cpu): New variable.
49356 (pkglibdir): Use target_cpu instead of host_cpu.
49358 * util/i386/pc/grub-install.in (host_cpu): Removed.
49359 (target_cpu): New variable.
49360 (pkglibdir): Use target_cpu instead of host_cpu.
49362 * util/genmoddep.c: Removed.
49364 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49365 instead of GRUB_HOST_SIZEOF_VOID_P.
49366 * kern/dl.c: Likewise.
49368 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49370 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49371 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49372 (GRUB_TARGET_SIZEOF_LONG): ... this.
49373 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49374 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49375 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49377 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49378 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49379 (GRUB_TARGET_SIZEOF_LONG): ... this.
49380 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49381 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49382 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49384 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49385 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49386 (GRUB_TARGET_SIZEOF_LONG): ... this.
49387 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49388 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49390 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49391 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49392 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49393 instead of GRUB_HOST_SIZEOF_LONG.
49394 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49395 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49396 GRUB_CPU_WORDS_BIGENDIAN.
49397 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49398 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49401 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49402 (genmoddep_SOURCES): Likewise.
49403 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49404 (genmoddep_SOURCES): Likewise.
49405 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49406 (genmoddep_SOURCES): Likewise.
49407 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49409 (genmoddep_SOURCES): Likewise.
49411 * genmoddep.awk: New file.
49413 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49414 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49415 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49416 (PModule::rule): Likewise.
49417 (Program::rule): Likewise.
49418 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49419 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49422 * configure.ac: Rewritten intensively to use host and target
49423 instead of build and host, respectively.
49425 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49426 (host_cpu): Removed.
49427 (target_cpu): New variable.
49428 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49429 (BUILD_CC): Removed.
49430 (BUILD_CFLAGS): Likewise.
49431 (BUILD_CPPFLAGS): Likewise.
49432 (TARGET_CC): New variable.
49433 (TARGET_CFLAGS): Likewise.
49434 (TARGET_CPPFLAGS): Likewise.
49435 (TARGET_LDFLAGS): Likewise.
49437 (include): Use target_cpu instead of host_cpu.
49438 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49440 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49442 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49444 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49445 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49446 field 'false' to 'exec_on_false'.
49447 (grub_script_create_cmdif): Renamed argument names to reflect above
49450 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49452 * normal/script.c (grub_script_create_cmdif): Likewise.
49454 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49456 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49458 (grub_hfsplus_btree_recptr): Likewise.
49459 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49460 FILEBLOCK both to pass a block number and store next block
49462 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49463 overflow file correctly. Specify errors appropriately, because
49464 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49465 grub_hfsplus_btree_recptr to get the pointer to a found key.
49466 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49469 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49471 (_linux_mod_SOURCES): New variable.
49472 (_linux_mod_CFLAGS): Likewise.
49473 (_linux_mod_LDFLAGS): Likewise.
49474 (linux_mod_SOURCES): Likewise.
49475 (linux_mod_CFLAGS): Likewise.
49476 (linux_mod_LDFLAGS): Likewise.
49478 * DISTLIST: Added loader/i386/efi/linux.c,
49479 loader/i386/efi/linux_normal.c and
49480 include/grub/i386/efi/loader.h.
49482 * loader/i386/efi/linux.c: New file.
49483 * loader/i386/efi/linux_normal.c: Likewise.
49484 * include/grub/i386/efi/loader.h: Likewise.
49486 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49488 * commands/blocklist.c: New file.
49490 * DISTLIST: Added commands/blocklist.c.
49492 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49493 color for the background, and a darker color for the foreground.
49494 (grub_console_checkkey): Return READ_KEY.
49495 (grub_console_cls): Set the background to
49496 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49498 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49500 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49501 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49503 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49506 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49507 BG. The spec is wrong again.
49509 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49511 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49513 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49514 commands/blocklist.c.
49515 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49517 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49518 (blocklist_mod_SOURCES): New variable.
49519 (blocklist_mod_CFLAGS): Likewise.
49520 (blocklist_mod_LDFLAGS): Likewise.
49522 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49524 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49526 (lba_mode): Use %eax more intensively to reduce the code size.
49528 2006-05-20 Marco Gerards <marco@gnu.org>
49530 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49532 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49534 (script): Accept leading newlines.
49535 (newlines): New rule to describe 0 or more newlines.
49536 (commands): Accept `command' with trailing newline. Fixed the
49537 order in which arguments were passed to `grub_script_add_cmd'.
49538 Accept commands separated by newlines.
49539 (function): Changed to accept newlines.
49540 (menuentry) Rewritten.
49542 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49543 front of the list, instead of to the end.
49545 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49547 * util/i386/pc/grub-install.in (bindir): New variable.
49548 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49549 Shaver <lbgwjl@gmail.com>.
49551 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49553 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49554 grub/machine/linux.h
49555 * loader/i386/pc/linux.c: Likewise.
49557 * include/grub/i386/pc/linux.h: Moved to ...
49558 * include/grub/i386/linux.h: ... here.
49560 * include/grub/i386/linux.h (struct linux_kernel_params): New
49563 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49565 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49567 (grub_video_vbe_blit_glyph): Likewise.
49568 (grub_video_vbe_blit_bitmap): Likewise.
49569 (grub_video_vbe_blit_render_target): Likewise.
49571 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49573 * configure.ac (--with-platform): Properly quote the square
49576 2006-05-08 Marco Gerards <marco@gnu.org>
49578 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49580 (kernel_elf_HEADERS): ...to this. Updated all users.
49581 (grubof_symlist.c): Renamed from this...
49582 (kernel_elf_symlist.c): ...to this. Updated all users.
49583 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49584 (grubof_SOURCES): Renamed from this...
49585 (kernel_elf_SOURCES): ...to this.
49586 (grubof_HEADERS): Renamed from this...
49587 (kernel_elf_HEADERS): ...to this.
49588 (grubof_CFLAGS): Renamed from this...
49589 (kernel_elf_CFLAGS): ...to this.
49590 (grubof_ASFLAGS): Renamed from this...
49591 (kernel_elf_ASFLAGS): ...to this.
49592 (grubof_LDFLAGS): Renamed from this...
49593 (kernel_elf_LDFLAGS): ...to this.
49595 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49597 (kernel_elf_HEADERS): ...to this. Updated all users.
49598 (grubof_symlist.c): Renamed from this...
49599 (kernel_elf_symlist.c): ...to this. Updated all users.
49600 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49601 (grubof_SOURCES): Renamed from this...
49602 (kernel_elf_SOURCES): ...to this.
49603 (grubof_HEADERS): Renamed from this...
49604 (kernel_elf_HEADERS): ...to this.
49605 (grubof_CFLAGS): Renamed from this...
49606 (kernel_elf_CFLAGS): ...to this.
49607 (grubof_ASFLAGS): Renamed from this...
49608 (kernel_elf_ASFLAGS): ...to this.
49609 (grubof_LDFLAGS): Renamed from this...
49610 (kernel_elf_LDFLAGS): ...to this.
49612 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49613 `kernel.elf' instead of `grubof'.
49615 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49617 Add --with-platform to configure. Use pkglibdir instead of
49618 pkgdatadir. This is reported by Roger Leigh.
49620 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49621 (host_vendor): Likewise.
49622 (host_os): Likewise.
49623 (pkgdatadir): Likewise.
49624 (platform): New variable.
49625 (pkglibdir): Likewise.
49626 Use PKGLIBDIR instead of PKGDATADIR.
49628 * util/i386/pc/grub-install.in (datadir): Removed.
49629 (host_vendor): Likewise.
49630 (host_os): Likewise.
49631 (pkgdatadir): Likewise.
49632 (platform): New variable.
49633 (pkglibdir): Likewise.
49634 Use PKGLIBDIR instead of PKGDATADIR.
49636 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49637 instead of GRUB_DATADIR.
49639 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49641 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49644 * configure.ac (--with-platform): New option.
49645 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49647 * Makefile.in: Include a makefile based on PLATFORM instead of
49649 (pkgdatadir): Not appended by the machine type.
49650 (pkglibdir): Appended by the machine type.
49651 (host_vendor): Removed.
49652 (platform): New variable.
49653 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49654 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49655 (uninstall): Likewise.
49657 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49659 Use the environment context in the menu. Remove the commands
49660 "default" and "timeout", and use variables instead.
49662 * normal/menu.c: Include grub/env.h.
49663 (print_entry): Cast TITLE to silence gcc.
49664 (get_timeout): New function.
49665 (set_timeout): Likewise.
49666 (get_entry_number): Likewise.
49667 (run_menu): Use a default entry, a fallback entry and a timeout
49668 in the environment variables "default", "fallback" and
49669 "timeout". Also, tweak the default entry if it is not within the
49670 current menu entries.
49671 (grub_menu_run): Use a fallback entry in the environment variable
49674 * normal/main.c (read_config_file): Do not initialize
49675 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49677 (grub_normal_execute): Use a data slot to store the menu.
49679 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49680 fallback_entry and timeout.
49681 (struct grub_menu_list): Removed.
49682 (grub_menu_list_t): Likewise.
49683 (struct grub_context): Likewise.
49684 (grub_context_t): Likewise.
49685 (grub_context_get): Likewise.
49686 (grub_context_get_current_menu): Likewise.
49687 (grub_context_push_menu): Likewise.
49688 (grub_context_pop_menu): Likewise.
49689 (grub_default_init): Likewise.
49690 (grub_default_fini): Likewise.
49691 (grub_timeout_init): Likewise.
49692 (grub_timeout_fini): Likewise.
49694 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49696 (normal_mod_SOURCES): Removed normal/context.c.
49698 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49699 commands/default.c, commands/timeout.c and normal/context.c.
49700 (normal_mod_SOURCES): Removed normal/context.c.
49702 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49703 commands/timeout.c and normal/context.c.
49704 (normal_mod_SOURCES): Removed normal/context.c.
49706 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49707 commands/default.c, commands/timeout.c and normal/context.c.
49708 (normal_mod_SOURCES): Removed normal/context.c.
49710 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49712 (default_mod_SOURCES): Removed.
49713 (default_mod_CFLAGS): Likewise.
49714 (default_mod_LDFLAGS): Likewise.
49715 (timeout_mod_SOURCES): Removed.
49716 (timeout_mod_CFLAGS): Likewise.
49717 (timeout_mod_LDFLAGS): Likewise.
49719 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49722 * commands/default.c: Removed.
49723 * commands/timeout.c: Likewise.
49724 * normal/context.c: Likewise.
49726 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49728 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49730 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49732 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49733 "next" to "prev" for readability.
49734 (struct grub_env_sorted_var): New struct.
49735 (grub_env_context): Renamed to ...
49736 (initial_context): ... this.
49737 (grub_env_var_context): Renamed to ...
49738 (current_context): ... this.
49739 (grub_env_find): Look only at CURRENT_CONTEXT.
49740 (grub_env_context_open): Rewritten to copy exported variables from
49742 (grub_env_context_close): Rewritten according to the new
49743 scheme. Also, add an assertion to prevent the initial context from
49745 (grub_env_insert): Removed the code for the sorted list.
49746 (grub_env_remove): Likewise.
49747 (grub_env_export): Simply mark the variable with
49748 GRUB_ENV_VAR_GLOBAL.
49749 (grub_env_set): A cosmetic change for naming consistency.
49750 (grub_env_get): Likewise.
49751 (grub_env_unset): Likewise.
49752 (grub_env_iterate): Rewritten to sort variables within this
49754 (grub_register_variable_hook): Fixed for naming consistency. Call
49755 grub_env_find again, only if NAME is not found at the first time.
49756 (mangle_data_slot_name): New function.
49757 (grub_env_set_data_slot): Likewise.
49758 (grub_env_get_data_slot): Likewise.
49759 (grub_env_unset_data_slot): Likewise.
49761 * include/grub/env.h (grub_env_var_type): New enum.
49762 (GRUB_ENV_VAR_LOCAL): New constant.
49763 (GRUB_ENV_VAR_GLOBAL): Likewise.
49764 (GRUB_ENV_VAR_DATA): Likewise.
49765 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49767 (grub_env_set): Replace VAR with NAME for consistency.
49768 (grub_register_variable_hook): Likewise.
49769 (grub_env_export): Specify the name of the argument.
49770 (grub_env_set_data_slot): New prototype.
49771 (grub_env_get_data_slot): Likewise.
49772 (grub_env_unset_data_slot): Likewise.
49774 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49776 Extend the loader so that GRUB can accept a loader which comes
49777 back to GRUB when a loaded image exits. Also, this change adds
49778 support for a chainloader on EFI.
49780 * term/efi/console.c: Include grub/misc.h.
49781 (grub_console_checkkey): Display a scan code on the top for
49782 debugging. This will be removed once the EFI port gets stable.
49783 Correct the scan code mapping.
49785 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49786 allocate memory from larger regions, in order to reduce the number
49787 of allocated regions. Otherwise, the MacOSX loader panics.
49788 (filter_memory_map): Avoid less than 1MB for compatibility with
49790 (add_memory_regions): Allocate from the tail of a region, if
49791 possible, to avoid allocating a region near to 1MB, for the MacOSX
49794 * kern/efi/init.c (grub_efi_set_prefix): Specify
49795 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49797 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49798 argument IMAGE_HANDLE and specify it to get a loaded image.
49799 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49800 grub_efi_get_loaded_image.
49801 (grub_efi_get_filename): Divide the length by the size of
49803 (grub_efi_get_device_path): New function.
49804 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49805 the length by the size of grub_efi_char16_t for a file path device
49808 * kern/loader.c (grub_loader_noreturn): New variable.
49809 (grub_loader_set): Accept a new argument NORETURN. Set
49810 GRUB_LOADER_NORETURN to NORETURN.
49811 All callers changed.
49812 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49815 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49817 (grub_efi_get_loaded_image): Take an argument to specify an image
49820 * include/grub/loader.h (grub_loader_set): Added one more argument
49823 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49824 instead of grub_efi_open_protocol.
49825 (grub_efidisk_get_device_name): Likewise.
49826 (grub_efidisk_close): Print a newline.
49827 (grub_efidisk_get_device_handle): Fixed to use
49828 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49829 GRUB_EFI_DEVICE_PATH_TYPE.
49831 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49832 * kern/efi/efi.c (device_path_guid): ... here.
49834 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49836 (kernel_mod_HEADERS): Added efi/disk.h.
49837 (_chain_mod_SOURCES): New variable.
49838 (_chain_mod_CFLAGS): Likewise.
49839 (_chain_mod_LDFLAGS): Likewise.
49840 (chain_mod_SOURCES): Likewise.
49841 (chain_mod_CFLAGS): Likewise.
49842 (chain_mod_LDFLAGS): Likewise.
49844 * DISTLIST: Added include/grub/efi/chainloader.h,
49845 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49847 * include/grub/efi/chainloader.h: New file.
49848 * loader/efi/chainloader.c: Likewise.
49849 * loader/efi/chainloader_normal.c: Likewise.
49851 2006-04-30 Marco Gerards <marco@gnu.org>
49853 * commands/configfile.c (grub_cmd_source): New function.
49854 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49855 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49857 2006-04-30 Marco Gerards <marco@gnu.org>
49859 * normal/execute.c (grub_script_execute_cmd): Change the return
49860 type to `grub_err_t'. Correctly return the error.
49861 (grub_script_execute_cmdline): In case a command line is not a
49862 command or a function, try to interpret it as an assignment.
49864 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49866 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
49867 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
49868 skip a node whose name is obviously invalid as UTF-16,
49869 i.e. contains a NUL character. Stop the iteration when the last
49870 directory entry is found. Instead of using the return value of
49871 grub_hfsplus_btree_iterate_node, store the value in RET and use
49872 it, because the iterator can be stopped by the last directory
49875 2006-04-30 Marco Gerards <marco@gnu.org>
49877 * include/grub/env.h (grub_env_export): New prototype. Reported
49878 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
49880 2006-04-30 Marco Gerards <marco@gnu.org>
49882 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
49883 size of the extents in a catalog file record.
49885 2006-04-29 Marco Gerards <marco@gnu.org>
49887 * commands/configfile.c (grub_cmd_configfile): Execute the
49888 configfile within its own context.
49890 * include/grub/env.h (grub_env_context_open): New prototype.
49891 (grub_env_context_close): Likewise.
49893 * kern/env.c (grub_env): Removed.
49894 (grub_env_sorted): Likewise.
49895 (grub_env_context): New variable.
49896 (grub_env_var_context): Likewise.
49897 (grub_env_find): Search both the active context and the global
49899 (grub_env_context_open): New function.
49900 (grub_env_context_close): Likewise.
49901 (grub_env_insert): Likewise.
49902 (grub_env_remove): Likewise.
49903 (grub_env_export): Likewise.
49904 (grub_env_set): Changed to use helper functions to avoid code
49906 (grub_env_iterate): Rewritten so both the current context and the
49907 global context are being used.
49909 * normal/command.c (export_command): New function.
49910 (grub_command_init): Register the `export' function.
49912 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
49914 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
49915 explicitly to suppress gcc's warnings.
49916 * fs/fat.c (grub_fat_find_dir): Likewise.
49917 (grub_fat_label): Likewise.
49918 * fs/xfs.c (grub_xfs_read_inode): Likewise.
49919 (grub_xfs_mount): Likewise.
49920 (grub_xfs_label): Likewise.
49921 * fs/affs.c (grub_affs_mount): Likewise.
49922 (grub_affs_label): Likewise.
49923 (grub_affs_iterate_dir): Likewise.
49924 * fs/sfs.c (grub_sfs_mount): Likewise.
49925 (grub_sfs_iterate_dir): Likewise.
49926 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
49927 * fs/hfs.c (grub_hfs_mount): Likewise.
49928 (grub_hfs_cmp_catkeys): Likewise.
49929 (grub_hfs_find_dir): Likewise.
49930 (grub_hfs_dir): Likewise.
49931 (grub_hfs_label): Likewise.
49932 * fs/jfs.c (grub_jfs_mount): Likewise.
49933 (grub_jfs_opendir): Likewise.
49934 (grub_jfs_getent): Likewise.
49935 (grub_jfs_lookup_symlink): Likewise.
49936 (grub_jfs_label): Likewise.
49937 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
49938 (grub_hfsplus_iterate_dir): Likewise.
49939 (grub_hfsplus_btree_iterate_node): Made static.
49941 * util/grub-emu.c (prefix): New variable.
49942 (grub_machine_set_prefix): New function.
49943 (main): Do not set the environment variable "prefix" here. Only
49944 set PREFIX, which is used later by grub_machine_set_prefix.
49946 * include/grub/video.h: Do not include grub/symbol.h.
49947 (grub_video_register): Not exported. This symbol is not defined in
49949 (grub_video_unregister): Likewise.
49950 (grub_video_iterate): Likewise.
49951 (grub_video_setup): Likewise.
49952 (grub_video_restore): Likewise.
49953 (grub_video_get_info): Likewise.
49954 (grub_video_get_blit_format): Likewise.
49955 (grub_video_set_palette): Likewise.
49956 (grub_video_get_palette): Likewise.
49957 (grub_video_set_viewport): Likewise.
49958 (grub_video_get_viewport): Likewise.
49959 (grub_video_map_color): Likewise.
49960 (grub_video_map_rgb): Likewise.
49961 (grub_video_map_rgba): Likewise.
49962 (grub_video_fill_rect): Likewise.
49963 (grub_video_blit_glyph): Likewise.
49964 (grub_video_blit_bitmap): Likewise.
49965 (grub_video_blit_render_target): Likewise.
49966 (grub_video_scroll): Likewise.
49967 (grub_video_swap_buffers): Likewise.
49968 (grub_video_create_render_target): Likewise.
49969 (grub_video_delete_render_target): Likewise.
49970 (grub_video_set_active_render_target): Likewise.
49972 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
49974 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
49976 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
49977 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49978 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49979 instead of $(srcdir)/genkernsyms.sh.
49981 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
49982 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49983 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49984 instead of $(srcdir)/genkernsyms.sh.
49986 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
49987 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49988 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49989 instead of $(srcdir)/genkernsyms.sh.
49991 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
49992 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49993 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49994 instead of $(srcdir)/genkernsyms.sh.
49996 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
49999 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50001 (gensymlist.sh): New target.
50002 (genkernsyms.sh): Likewise.
50004 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50005 genkernsyms.sh.in and gensymlist.sh.in.
50007 * genkernsyms.sh: Removed.
50008 * gensymlist.sh: Likewise.
50010 * genkernsyms.sh.in: New file.
50011 * gensymlist.sh.in: Likewise.
50013 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50015 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50016 clobber "prefix", since we may have already set it manually.
50018 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50020 * kern/misc.c (abort): New alias for grub_abort.
50022 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50024 A new machine-specific function "grub_machine_set_prefix" is
50025 defined. This is called after loading modules, so that a prefix
50026 initialization can use modules. Also, this change adds an
50027 intensive debugging feature for the memory manager via the
50028 configure option "--enable-mm-debug".
50030 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50033 * kern/sparc64/ieee1275/init.c (abort): Removed.
50034 (grub_stop): Likewise.
50035 (grub_exit): New function.
50036 (grub_set_prefix): Renamed to ...
50037 (grub_machine_set_prefix): ... this.
50038 (grub_machine_init): Do not call grub_set_prefix.
50040 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50041 (grub_machine_set_prefix): ... this.
50042 (grub_machine_init): Do not call grub_set_prefix.
50044 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50045 (grub_machine_init): Do not set the prefix here.
50047 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50049 * kern/efi/init.c: Include grub/mm.h.
50050 (grub_efi_set_prefix): New function.
50052 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50053 (grub_efi_get_filename): New function.
50054 (grub_print_device_path): Renamed to ...
50055 (grub_efi_print_device_path): ... this.
50057 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50058 [MM_DEBUG] (grub_realloc): Likewise.
50059 [MM_DEBUG] (grub_free): Likewise.
50060 [MM_DEBUG] (grub_memalign): Likewise.
50061 [MM_DEBUG] (grub_mm_debug): New variable.
50062 [MM_DEBUG] (grub_debug_malloc): New function.
50063 [MM_DEBUG] (grub_debug_free): New function.
50064 [MM_DEBUG] (grub_debug_realloc): New function.
50065 [MM_DEBUG] (grub_debug_memalign): New function.
50067 * kern/misc.c (grub_abort): Print a newline to distinguish
50070 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50071 grub_set_root_dev after loading modules. This is necessary when
50072 setting a prefix depends on modules.
50074 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50075 (grub_efi_print_device_path): ... this.
50076 (grub_efi_get_filename): New prototype.
50077 (grub_efi_set_prefix): Likewise.
50079 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50081 (grub_efidisk_get_device_handle): New prototype.
50082 (grub_efidisk_get_device_name): Likewise.
50084 * include/grub/mm.h: Include config.h.
50085 (MM_DEBUG): Removed.
50086 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50087 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50088 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50089 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50090 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50091 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50092 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50093 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50094 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50096 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50098 * disk/efi/efidisk.c: Include grub/partition.h.
50099 (iterate_child_devices): New function.
50100 (add_device): First, compare only last device path nodes, so that
50101 devices are sorted by the types.
50102 (grub_efidisk_get_device_handle): New function.
50103 (grub_efidisk_get_device_name): Likewise.
50105 * configure.ac (--enable-mm-debug): New option to enable the
50106 memory manager debugging feature. This makes the binary much
50107 bigger, so is disabled by default.
50109 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50111 Use grub_abort instead of grub_stop, and grub_exit must be
50112 define in each architecture now. Also, this change adds support
50115 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50116 (grub_getkey): New function.
50117 (grub_term_get_current): Likewise.
50119 * util/i386/pc/grub-setup.c: Include grub/term.h.
50120 (grub_getkey): New function.
50121 (grub_term_get_current): Likewise.
50123 * util/misc.c (grub_stop): Renamed to ...
50124 (grub_exit): ... this.
50126 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50127 (grub_exit): ... this.
50128 (grub_machine_init): Use grub_abort instead of abort.
50129 (grub_stop): Removed.
50131 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50134 * kern/i386/pc/startup.S (grub_exit): New function.
50135 (cold_reboot): New label.
50137 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50138 (grub_efi_init): Call grub_efidisk_init.
50139 (grub_efi_fini): Call grub_efidisk_fini.
50141 * kern/efi/efi.c: Include grub/mm.h.
50142 (grub_efi_console_control_guid): Renamed to ...
50143 (console_control_guid): ... this.
50144 (grub_efi_loaded_image_guid): Renamed to ...
50145 (loaded_image_guid): ... this.
50146 (grub_efi_locate_handle): New function.
50147 (grub_efi_open_protocol): Likewise.
50148 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50149 GRUB_EFI_CONSOLE_CONTROL_GUID.
50150 (grub_efi_exit): Removed.
50151 (grub_stop): Likewise.
50152 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50153 (grub_exit): New function.
50154 (grub_print_device_path): Likewise.
50156 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50157 (grub_enter_rescue_mode): Register "exit".
50159 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50160 (grub_abort): New function.
50162 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50164 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50166 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50168 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50169 (grub_print_device_path): New prototype.
50170 (grub_efi_locate_handle): Likewise.
50171 (grub_efi_open_protocol): Likewise.
50173 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50174 * disk/efi/efidisk.c: Likewise.
50176 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50178 * include/grub/efi/console_control.h
50179 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50181 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50182 last 8 bytes as an array.
50183 (GRUB_EFI_DISK_IO_GUID): New macro.
50184 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50185 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50186 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50188 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50189 (struct grub_efi_device_path): Rename the member "sub_type" to
50191 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50192 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50193 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50194 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50195 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50196 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50197 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50198 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50199 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50200 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50201 (struct grub_efi_pci_device_path): New structure.
50202 (grub_efi_pci_device_path_t): New type.
50203 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50204 (struct grub_efi_pccard_device_path): New structure.
50205 (grub_efi_pccard_device_path_t): New type.
50206 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50207 (struct grub_efi_memory_mapped_device_path): New structure.
50208 (grub_efi_memory_mapped_device_path_t): New type.
50209 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50210 (struct grub_efi_vendor_device_path): New structure.
50211 (grub_efi_vendor_device_path_t): New type.
50212 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50213 (struct grub_efi_controller_device_path): New structure.
50214 (grub_efi_controller_device_path_t): New type.
50215 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50216 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50217 (struct grub_efi_acpi_device_path): New structure.
50218 (grub_efi_acpi_device_path_t): New type.
50219 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50220 (struct grub_efi_expanded_acpi_device_path): New structure.
50221 (grub_efi_expanded_acpi_device_path_t): New type.
50222 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50223 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50224 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50225 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50226 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50227 (struct grub_efi_atapi_device_path): New structure.
50228 (grub_efi_atapi_device_path_t): New type.
50229 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50230 (struct grub_efi_fibre_channel_device_path): New structure.
50231 (grub_efi_fibre_channel_device_path_t): New type.
50232 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50233 (struct grub_efi_1394_device_path): New structure.
50234 (grub_efi_1394_device_path_t): New type.
50235 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50236 (struct grub_efi_usb_device_path): New structure.
50237 (grub_efi_usb_device_path_t): New type.
50238 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50239 (struct grub_efi_usb_class_device_path): New structure.
50240 (grub_efi_usb_class_device_path_t): New type.
50241 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50242 (struct grub_efi_i2o_device_path): New structure.
50243 (grub_efi_i2o_device_path_t): New type.
50244 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50245 (struct grub_efi_mac_address_device_path): New structure.
50246 (grub_efi_mac_address_device_path_t): New type.
50247 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50248 (struct grub_efi_ipv4_device_path): New structure.
50249 (grub_efi_ipv4_device_path_t): New type.
50250 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50251 (struct grub_efi_ipv6_device_path): New structure.
50252 (grub_efi_ipv6_device_path_t): New type.
50253 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50254 (struct grub_efi_infiniband_device_path): New structure.
50255 (grub_efi_infiniband_device_path_t): New type.
50256 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50257 (struct grub_efi_uart_device_path): New structure.
50258 (grub_efi_uart_device_path_t): New type.
50259 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50260 (struct grub_efi_vendor_messaging_device_path): New structure.
50261 (grub_efi_vendor_messaging_device_path_t): New type.
50262 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50263 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50264 (struct grub_efi_hard_drive_device_path): New structure.
50265 (grub_efi_hard_drive_device_path_t): New type.
50266 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50267 (struct grub_efi_cdrom_device_path): New structure.
50268 (grub_efi_cdrom_device_path_t): New type.
50269 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50270 (struct grub_efi_vendor_media_device_path): New structure.
50271 (grub_efi_vendor_media_device_path_t): New type.
50272 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50273 (struct grub_efi_file_path_device_path): New structure.
50274 (grub_efi_file_path_device_path_t): New type.
50275 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50276 (struct grub_efi_protocol_device_path): New structure.
50277 (grub_efi_protocol_device_path_t): New type.
50278 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50279 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50280 (struct grub_efi_bios_device_path): New structure.
50281 (grub_efi_bios_device_path_t): New type.
50282 (struct grub_efi_disk_io): New structure.
50283 (grub_efi_disk_io_t): New type.
50284 (struct grub_efi_block_io_media): New structure.
50285 (grub_efi_block_io_media_t): New type.
50286 (struct grub_efi_block_io): New structure.
50287 (grub_efi_block_io_t): New type.
50289 * include/grub/misc.h (grub_stop): Removed.
50290 (grub_exit): New prototype.
50291 (grub_abort): Likewise.
50293 * include/grub/disk.h (enum grub_disk_dev_id): Added
50294 GRUB_DISK_DEVICE_EFIDISK_ID.
50296 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50297 disk/efi/efidisk.c.
50298 (kernel_syms.lst): Remove the target if an error occurs.
50300 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50302 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50303 as it was simply too buggy.
50305 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50307 * kern/misc.c (grub_lltoa): New function.
50308 (grub_vsprintf): Added support for the long long suffix,
50311 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50313 * Makefile.in (LDFLAGS): Add variable.
50314 (LD): Remove variable.
50315 * configure.ac: Add -m32 to LDFLAGS.
50316 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50317 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50318 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50319 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50320 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50322 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50323 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50324 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50326 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50328 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50329 length for unknown glyph.
50331 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50333 Add support for pre-loaded modules into the EFI port.
50335 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50336 completely. Accept one more argument DIR. The caller has changed.
50338 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50340 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50341 (grub_efi_loaded_image_guid): New variable.
50342 (grub_efi_get_loaded_image): New function.
50343 (grub_arch_modules_addr): Likewise.
50345 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50348 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50349 (struct grub_efi_loaded_image): New structure.
50350 (grub_efi_loaded_image_t): New type.
50352 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50354 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50355 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50356 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50358 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50360 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50362 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50364 * DISTLIST: Added include/grub/efi/console.h,
50365 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50366 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50368 * include/grub/efi/console.h: New file.
50369 * include/grub/efi/time.h: Likewise.
50370 * include/grub/i386/efi/kernel.h: Likewise.
50371 * kern/efi/init.c: Likewise.
50372 * kern/efi/mm.c: Likewise.
50373 * term/efi/console.c: Likewise.
50375 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50376 (grub_stop): Removed.
50377 (grub_get_rtc): Likewise.
50378 (grub_machine_init): Simply call grub_efi_init.
50379 (grub_machine_fini): Call grub_efi_fini.
50381 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50382 (grub_efi_output_string): Removed.
50383 (grub_efi_stall): New function.
50384 (grub_stop): Likewise.
50385 (grub_get_rtc): Likewise.
50387 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50388 (grub_efi_stall): New prototype.
50389 (grub_efi_allocate_pages): Likewise.
50390 (grub_efi_free_pages): Likewise.
50391 (grub_efi_get_memory_map): Likewise.
50392 (grub_efi_mm_init): Likewise.
50393 (grub_efi_mm_fini): Likewise.
50394 (grub_efi_init): Likewise.
50395 (grub_efi_fini): Likewise.
50397 * include/grub/i386/efi/time.h: Do not include
50398 grub/symbol.h. Include grub/efi/time.h.
50399 (GRUB_TICKS_PER_SECOND): Removed.
50400 (grub_get_rtc): Likewise.
50402 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50403 Added padding. The EFI spec is buggy.
50404 (GRUB_EFI_BLACK): New macro.
50405 (GRUB_EFI_BLUE): Likewise.
50406 (GRUB_EFI_GREEN): Likewise.
50407 (GRUB_EFI_CYAN): Likewise.
50408 (GRUB_EFI_RED): Likewise.
50409 (GRUB_EFI_MAGENTA): Likewise.
50410 (GRUB_EFI_BROWN): Likewise.
50411 (GRUB_EFI_LIGHTGRAY): Likewise.
50412 (GRUB_EFI_BRIGHT): Likewise.
50413 (GRUB_EFI_DARKGRAY): Likewise.
50414 (GRUB_EFI_LIGHTBLUE): Likewise.
50415 (GRUB_EFI_LIGHTGREEN): Likewise.
50416 (GRUB_EFI_LIGHTCYAN): Likewise.
50417 (GRUB_EFI_LIGHTRED): Likewise.
50418 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50419 (GRUB_EFI_YELLOW): Likewise.
50420 (GRUB_EFI_WHITE): Likewise.
50421 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50422 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50423 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50424 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50425 (GRUB_EFI_BACKGROUND_RED): Likewise.
50426 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50427 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50428 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50429 (GRUB_EFI_TEXT_ATTR): Likewise.
50431 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50432 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50433 (kernel_mod_HEADERS): Added efi/time.h.
50435 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50437 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50438 include/grub/efi/api.h, include/grub/efi/console_control.h,
50439 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50440 include/grub/i386/efi/time.h, kern/efi/efi.c,
50441 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50442 and util/i386/efi/grub-mkimage.c.
50444 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50446 * genmk.rb (PModule#rule): Do not export symbols if
50447 #{prefix}_EXPORTS is set to "no".
50449 * conf/i386-efi.mk: New file.
50450 * conf/i386-efi.rmk: Likewise.
50451 * include/grub/efi/api.h: Likewise.
50452 * include/grub/efi/console_control.h: Likewise.
50453 * include/grub/efi/efi.h: Likewise.
50454 * include/grub/efi/pe32.h: Likewise.
50455 * include/grub/i386/efi/time.h: Likewise.
50456 * kern/efi/efi.c: Likewise.
50457 * kern/i386/efi/init.c: Likewise.
50458 * kern/i386/efi/startup.S: Likewise.
50459 * util/i386/efi/grub-mkimage.c: Likewise.
50461 2006-04-17 Marco Gerards <marco@gnu.org>
50463 * include/grub/script.h: Include <grub/parser.h> and
50464 "grub_script.tab.h".
50465 (struct grub_lexer_param): New struct.
50466 (struct grub_parser_param): Likewise.
50467 (grub_script_create_arglist): Pass the state in an argument.
50468 (grub_script_add_arglist): Likewise.
50469 (grub_script_create_cmdline): Likewise.
50470 (grub_script_create_cmdblock): Likewise.
50471 (grub_script_create_cmdif): Likewise.
50472 (grub_script_create_cmdmenu): Likewise.
50473 (grub_script_add_cmd): Likewise.
50474 (grub_script_arg_add): Likewise.
50475 (grub_script_lexer_ref): Likewise.
50476 (grub_script_lexer_deref): Likewise.
50477 (grub_script_lexer_record_start): Likewise.
50478 (grub_script_lexer_record_stop): Likewise.
50479 (grub_script_mem_record): Likewise.
50480 (grub_script_mem_record_stop): Likewise.
50481 (grub_script_malloc): Likewise.
50482 (grub_script_yylex): Likewise.
50483 (grub_script_yyparse): Likewise.
50484 (grub_script_yyerror): Likewise.
50485 (grub_script_yylex): Likewise.
50486 (grub_script_lexer_init): Return the state.
50488 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50489 (grub_script_lexer_done): Likewise.
50490 (grub_script_lexer_getline): Likewise.
50491 (grub_script_lexer_refs): Likewise.
50492 (script): Likewise.
50493 (newscript): Likewise.
50494 (record): Likewise.
50495 (recording): Likewise.
50496 (recordpos): Likewise.
50497 (recordlen): Likewise.
50498 (grub_script_lexer_init): Return the state instead of setting
50500 (grub_script_lexer_ref): Use the newly added argument for state
50501 instead of globals.
50502 (grub_script_lexer_deref): Likewise.
50503 (grub_script_lexer_record_start): Likewise.
50504 (grub_script_lexer_record_stop): Likewise.
50505 (recordchar): Likewise.
50506 (nextchar): Likewise.
50507 (grub_script_yylex2): Likewise.
50508 (grub_script_yylex): Likewise.
50509 (grub_script_yyerror): Likewise.
50511 * normal/parser.y (func_mem): Removed variable.
50512 (menu_entry): Likewise.
50514 (%lex-param): New parser option.
50515 (%parse-param): Likewise.
50516 (script): Always return the AST.
50517 (argument): Pass the state around.
50518 (arguments): Likewise.
50519 (grubcmd): Likewise.
50520 (commands): Likewise.
50521 (function): Likewise.
50522 (menuentry): Likewise.
50523 (if_statement): Likewise.
50526 * normal/script.c (grub_script_memused): Removed variable.
50527 (grub_script_parsed): Likewise.
50528 (grub_script_malloc): Added a state argument. Use that instead of
50530 (grub_script_mem_record): Likewise.
50531 (grub_script_mem_record_stop): Likewise.
50532 (grub_script_arg_add): Likewise.
50533 (grub_script_add_arglist): Likewise.
50534 (grub_script_create_cmdline): Likewise.
50535 (grub_script_create_cmdif): Likewise.
50536 (grub_script_create_cmdmenu): Likewise.
50537 (grub_script_add_cmd): Likewise.
50538 (grub_script_parse): Setup the state before calling the parser.
50540 2006-04-16 Marco Gerards <marco@gnu.org>
50542 * normal/command.c (grub_command_init): Remove the title command.
50544 * normal/lexer.c (grub_script_yylex): Renamed from this...
50545 (grub_script_yylex2): ... to this.
50546 (grub_script_yylex): New function. Temporary
50547 introduced to filter some tokens.
50548 (grub_script_yyerror): Print a newline.
50550 * normal/main.c (read_config_file): Output information about the
50551 lines that contain errors. Wait for a key after all lines have
50552 been processed. Don't return an empty menu.
50554 * normal/parser.y (func_mem): Don't initialize.
50555 (menu_entry): Likewise.
50556 (err): New variable.
50557 (script): Don't return anything when an error was encountered.
50558 (ws, returns): Removed rules.
50559 (argument): Disabled concatenated variable support.
50560 (arguments): Remove explicit separators.
50561 (grubcmd): Likewise.
50562 (function): Likewise.
50563 (menuentry): Likewise.
50565 (commands): Likewise. Add error handling.
50567 * normal/script.c (grub_script_create_cmdline): If
50568 `grub_script_parsed' is 0, assume the parser encountered an error.
50570 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50572 * configure.ac: Add support for EFI. Fix the typo
50573 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50575 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50577 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50578 foreign multibyte characters should be shown correctly.
50580 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50582 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50584 (read_config_file): Made it to close file before returning.
50586 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50588 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50589 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50590 video/i386/pc/vbefill.c.
50592 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50593 video/i386/pc/vbefill.c.
50595 * include/grub/video.h (grub_video_blit_format): New enum.
50596 (grub_video_mode_info): Added new member blit_format.
50597 (grub_video_get_blit_format): New function prototype.
50599 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50600 function prototype.
50601 (grub_video_vbe_map_rgb): Likewise.
50602 (grub_video_vbe_unmap_color): Likewise.
50604 * include/grub/i386/pc/vbeblit.h: New file.
50606 * include/grub/i386/pc/vbefill.h: New file.
50608 * video/video.c (grub_video_get_blit_format): New function.
50609 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50610 (grub_video_vbe_map_rgb): Likewise.
50611 (grub_video_vbe_unmap_color): Likewise.
50613 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50615 (grub_video_vbe_blit_render_target): Changed to use more optimized
50617 (grub_video_vbe_setup): Added detection for optimized settings.
50618 (grub_video_vbe_create_render_target): Likewise.
50620 * video/i386/pc/vbeblit.c: New file.
50622 * video/i386/pc/vbefill.c: New file.
50624 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50626 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50629 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50630 parsing to support both hex and dec ranges. If filename was missing
50631 show usage information.
50633 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50635 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50636 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50638 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50639 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50640 (video_mod_SOURCES): Added.
50641 (video_mod_CFLAGS): Likewise.
50642 (video_mod_LDFLAGS): Likewise.
50643 (gfxterm_mod_SOURCES): Likewise.
50644 (gfxterm_mod_CFLAGS): Likewise.
50645 (gfxterm_mod_LDFLAGS): Likewise.
50646 (videotest_mod_SOURCES): Likewise.
50647 (videotest_mod_CFLAGS): Likewise.
50648 (videotest_mod_LDFLAGS): Likewise.
50649 (vesafb_mod_SOURCES): Removed.
50650 (vesafb_mod_CFLAGS): Likewise.
50651 (vesafb_mod_LDFLAGS): Likewise.
50652 (vga_mod_SOURCES): Likewise.
50653 (vga_mod_CFLAGS): Likewise.
50654 (vga_mod_LDFLAGS): Likewise.
50656 * commands/videotest.c: New file.
50658 * font/manager.c (fill_with_default_glyph): Modified to use
50660 (grub_font_get_glyph): Likewise.
50661 (fontmanager): Renamed from this...
50662 (font_manager): ... to this.
50664 * include/grub/font.h (grub_font_glyph): Added new structure.
50665 (grub_font_get_glyph): Modified to use grub_font_glyph.
50667 * include/grub/misc.h (grub_abs): Added as inline function.
50669 * include/grub/video.h: New file.
50671 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50672 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50673 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50674 (grub_vbe_get_controller_info): Renamed from this...
50675 (grub_vbe_bios_get_controller_info): ... to this.
50676 (grub_vbe_get_mode_info): Renamed from this...
50677 (grub_vbe_bios_get_mode_info): ... to this.
50678 (grub_vbe_set_mode): Renamed from this...
50679 (grub_vbe_bios_set_mode): ... to this.
50680 (grub_vbe_get_mode): Renamed from this...
50681 (grub_vbe_bios_get_mode): ... to this.
50682 (grub_vbe_set_memory_window): Renamed from this...
50683 (grub_vbe_bios_set_memory_window): ... to this.
50684 (grub_vbe_get_memory_window): Renamed from this...
50685 (grub_vbe_bios_get_memory_window): ... to this.
50686 (grub_vbe_set_scanline_length): Renamed from this...
50687 (grub_vbe_set_scanline_length): ... to this.
50688 (grub_vbe_get_scanline_length): Renamed from this...
50689 (grub_vbe_bios_get_scanline_length): ... to this.
50690 (grub_vbe_set_display_start): Renamed from this...
50691 (grub_vbe_bios_set_display_start): ... to this.
50692 (grub_vbe_get_display_start): Renamed from this...
50693 (grub_vbe_bios_get_display_start): ... to this.
50694 (grub_vbe_set_palette_data): Renamed from this...
50695 (grub_vbe_bios_set_palette_data): ... to this.
50696 (grub_vbe_set_pixel_rgb): Removed.
50697 (grub_vbe_set_pixel_index): Likewise.
50699 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50701 (grub_vbe_bios_get_controller_info): ... to this.
50702 (grub_vbe_get_mode_info): Renamed from this...
50703 (grub_vbe_bios_get_mode_info): ... to this.
50704 (grub_vbe_set_mode): Renamed from this...
50705 (grub_vbe_bios_set_mode): ... to this.
50706 (grub_vbe_get_mode): Renamed from this...
50707 (grub_vbe_bios_get_mode): ... to this.
50708 (grub_vbe_set_memory_window): Renamed from this...
50709 (grub_vbe_bios_set_memory_window): ... to this.
50710 (grub_vbe_get_memory_window): Renamed from this...
50711 (grub_vbe_bios_get_memory_window): ... to this.
50712 (grub_vbe_set_scanline_length): Renamed from this...
50713 (grub_vbe_set_scanline_length): ... to this.
50714 (grub_vbe_get_scanline_length): Renamed from this...
50715 (grub_vbe_bios_get_scanline_length): ... to this.
50716 (grub_vbe_set_display_start): Renamed from this...
50717 (grub_vbe_bios_set_display_start): ... to this.
50718 (grub_vbe_get_display_start): Renamed from this...
50719 (grub_vbe_bios_get_display_start): ... to this.
50720 (grub_vbe_set_palette_data): Renamed from this...
50721 (grub_vbe_bios_set_palette_data): ... to this.
50722 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50723 getting corrupted after calling it. Added more pushes and pops.
50724 (grub_vbe_bios_set_mode): Likewise.
50725 (grub_vbe_bios_get_mode): Likewise.
50726 (grub_vbe_bios_get_memory_window): Likewise.
50727 (grub_vbe_bios_set_scanline_length): Likewise.
50728 (grub_vbe_bios_get_scanline_length): Likewise.
50729 (grub_vbe_bios_get_display_start): Likewise.
50730 (grub_vbe_bios_set_palette_data): Likewise.
50732 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50733 (cl_insert): Likewise.
50734 (cl_delete): Likewise.
50736 * term/gfxterm.c: New file.
50738 * term/i386/pc/vesafb.c: Removed file.
50740 * video/video.c: New file.
50742 * video/i386/pc/vbe.c (real2pm): Added new function.
50743 (grub_video_vbe_draw_pixel): Likewise.
50744 (grub_video_vbe_get_video_ptr): Likewise.
50745 (grub_video_vbe_get_pixel): Likewise
50746 (grub_video_vbe_init): Likewise.
50747 (grub_video_vbe_fini): Likewise.
50748 (grub_video_vbe_setup): Likewise.
50749 (grub_video_vbe_get_info): Likewise.
50750 (grub_video_vbe_set_palette): Likewise.
50751 (grub_video_vbe_get_palette): Likewise.
50752 (grub_video_vbe_set_viewport): Likewise.
50753 (grub_video_vbe_get_viewport): Likewise.
50754 (grub_video_vbe_map_color): Likewise.
50755 (grub_video_vbe_map_rgb): Likewise.
50756 (grub_video_vbe_map_rgba): Likewise.
50757 (grub_video_vbe_unmap_color): Likewise.
50758 (grub_video_vbe_fill_rect): Likewise.
50759 (grub_video_vbe_blit_glyph): Likewise.
50760 (grub_video_vbe_blit_bitmap): Likewise.
50761 (grub_video_vbe_blit_render_target): Likewise.
50762 (grub_video_vbe_scroll): Likewise.
50763 (grub_video_vbe_swap_buffers): Likewise.
50764 (grub_video_vbe_create_render_target): Likewise.
50765 (grub_video_vbe_delete_render_target): Likewise.
50766 (grub_video_vbe_set_active_render_target): Likewise.
50767 (grub_vbe_set_pixel_rgb): Remove function.
50768 (grub_vbe_set_pixel_index): Likewise.
50769 (index_color_mode): Remove static variable.
50770 (active_mode): Likewise.
50771 (framebuffer): Likewise.
50772 (bytes_per_scan_line): Likewise.
50773 (grub_video_vbe_adapter): Added new static variable.
50774 (framebuffer): Likewise.
50775 (render_target): Likewise.
50776 (initial_mode): Likewise.
50777 (mode_in_use): Likewise.
50778 (mode_list): Likewise.
50780 2006-03-10 Marco Gerards <marco@gnu.org>
50782 * configure.ac (AC_INIT): Bumped to 1.93.
50784 * DISTLIST: Added `include/grub/hfs.h'.
50786 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50788 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50789 18H, which might help the BIOS falling back to next boot media.
50791 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50793 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50794 Poe Chen <poe.poechen@gmail.com>.
50796 2006-01-17 Marco Gerards <marco@gnu.org>
50798 * include/grub/normal.h: Include <grub/script.h>.
50799 (grub_command_list): Removed struct.
50800 (grub_command_list_t): Removed type.
50801 (grub_menu_entry): Remove members `num' and `command_list'. Add
50802 members `commands' and `sourcecode'.
50803 * include/grub/script.h: Add inclusion guards.
50804 (grub_script_cmd_menuentry): New struct.
50805 (grub_script_execute_menuentry): New prototype.
50806 (grub_script_lexer_record_start): Likewise.
50807 (grub_script_lexer_record_stop): Likewise.
50808 * normal/execute.c (grub_script_execute_menuentry): New function.
50809 * normal/lexer.c (record, recording, recordpos, recordlen): New
50811 (grub_script_lexer_record_start): New function.
50812 (grub_script_lexer_record_stop): Likewise.
50813 (recordchar): Likewise.
50814 (nextchar): Likewise.
50815 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50816 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50817 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50818 (current_menu): New variable.
50819 (free_menu): Mainly rewritten.
50820 (grub_normal_menu_addentry): New function.
50821 (read_config_file): Rewritten.
50822 * normal/menu.c (run_menu_entry): Mainly rewritten.
50823 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50825 (run): Mainly rewritten.
50826 * normal/parser.y (menu_entry): New variable.
50827 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50828 (menuentry): New rule.
50829 (command): Add `menuentry'.
50830 (if_statement): Allow additional returns before `fi'.
50831 * normal/script.c (grub_script_create_cmdmenu): New function.
50833 2006-01-03 Marco Gerards <marco@gnu.org>
50835 * INSTALL: GNU Bison is required.
50836 * configure.ac: Rewritten the test to detect Bison.
50837 * Makefile.in (YACC): New variable. Reported by Xun Sun
50838 <xun.sun.cn@gmail.com>.
50840 2006-01-03 Marco Gerards <marco@gnu.org>
50842 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50843 the HFS+ filesystem to filesystem blocks.
50844 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50845 GCC warning is silenced.
50847 2006-01-03 Marco Gerards <marco@gnu.org>
50849 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50850 read from disk from big endian to host byte order.
50852 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50854 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50856 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50857 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50858 embedded HFS+ filesystem.
50859 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50860 (grub_hfs_sblock): Move from here...
50861 * include/grub/hfs.h: To here... New file.
50862 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
50864 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
50866 (grub_hfsplus_volheader): Change type of member `magic' to
50868 (grub_hfsplus_data): Add new member `embedded_offset'.
50869 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
50871 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
50872 Calculate the offset.
50874 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50876 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
50878 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
50880 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50882 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
50883 ENV->NAME is NULL after allocating ENV->VALUE.
50885 2005-12-25 Marco Gerards <marco@gnu.org>
50887 * kern/env.c (grub_env_set): Rewritten the error handling code.
50889 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50891 * geninit.sh: Made more robust, and more portable.
50893 2005-12-25 Marco Gerards <marco@gnu.org>
50895 Add support for Apple HFS+ filesystems.
50897 * fs/hfsplus.c: New file.
50899 * DISTLIST: Added `fs/hfsplus.c'.
50901 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
50902 (hfsplus_mod_SOURCES): New variable.
50903 (hfsplus_mod_CFLAGS): Likewise.
50904 (hfsplus_mod_LDFLAGS): Likewise.
50905 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
50906 (grub_setup_SOURCES): Likewise.
50907 (grub_mkdevicemap_SOURCES): Likewise.
50908 (grub_emu_SOURCES): Likewise.
50909 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50911 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
50913 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
50915 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50917 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
50918 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
50919 include/grub/parser.h, include/grub/script.h, kern/parser.c,
50920 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
50921 normal/lexer.c, normal/parser.y, normal/script.c, and
50923 Removed kern/sparc64/cache.c.
50925 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
50926 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
50929 * configure.ac (AC_INIT): Bumped to 1.92.
50931 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
50933 * kern/err.c (grub_error_push): Added new function to support error
50935 (grub_error_pop): Likewise.
50936 (grub_error_stack_items): New local variable to support error stacks.
50937 (grub_error_stack_pos): Likewise.
50938 (grub_error_stack_assert): Likewise.
50939 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
50941 (grub_print_error): Added support to print errors from error stack.
50943 * include/grub/err.h (grub_error_push): Added function prototype.
50944 (grub_error_pop): Likewise.
50946 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
50948 * configure.ac: Accept `powerpc64' as host_cpu.
50949 (amd64): Rename to `biarch32'.
50951 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
50952 non-cacheline-aligned addresses.
50954 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
50955 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
50956 if `size' is non-zero.
50958 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
50960 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
50961 and `cd' to make sure the filename is not prefixed with a
50963 (pkgdata_MODULES): Add `gpt.mod'.
50964 (gpt_mod_SOURCES): New variable.
50965 (gpt_mod_CFLAGS): Likewise.
50966 (gpt_mod_LDFLAGS): Likewise.
50968 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
50970 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
50973 * partmap/gpt.c: New file.
50975 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
50976 GPT partition map is detected.
50978 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
50980 * commands/i386/pc/play.c: New file.
50981 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
50982 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
50985 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
50987 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
50988 ((unused))' to silence gcc warning.
50990 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
50992 * configure.ac: Correct `AC_PROG_YACC' test.
50994 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50996 * util/powerpc/ieee1275/grub-install.in: Run the mount point
50997 check before installing files.
50999 2005-11-22 Mike Small <smallm@panix.com>
51001 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51002 number regex so multidigit numbers are recognized correctly.
51004 2005-11-22 Mike Small <smallm@panix.com>
51006 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51007 debugging message before attempting to claim memory.
51008 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51009 multiple addresses in case of failure.
51011 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51013 * term/tparm.c (get_space): Remove empty `if' statement.
51015 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51017 * kern/parser.c (check_varstate): Rename `state' to 's'.
51019 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51021 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51022 variable definitions to the beginning of each function. Sort stack
51024 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51025 `buf' argument to `char *'.
51027 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51029 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51030 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51031 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51032 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51033 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51034 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51035 configfile.mod, search.mod, gzio.mod and test.mod.
51036 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51037 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51038 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51039 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51040 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51041 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51042 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51043 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51044 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51045 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51046 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51047 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51048 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51049 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51050 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51051 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51052 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51053 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51054 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51055 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51056 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51057 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51058 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51060 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51062 (pkgdata_MODULES): Add test.mod.
51064 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51066 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51067 appending to variables with "+=".
51068 (PModule): Use full pathname to generate *.lst filenames.
51070 * Makefile.in: Fixed list rules moved from genmk.rb.
51071 (.DELETE_ON_ERROR): New special target.
51072 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51074 * conf/i386-pc.rmk: Include conf/common.mk.
51075 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51076 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51077 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51078 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51079 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51080 configfile.mod, search.mod, gzio.mod and test.mod.
51081 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51082 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51083 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51084 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51085 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51086 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51087 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51088 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51089 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51090 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51091 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51092 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51093 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51094 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51095 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51096 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51097 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51098 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51099 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51100 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51101 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51102 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51103 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51105 * conf/common.rmk: ... to here. New file.
51107 * conf/common.mk: New file.
51109 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51111 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51112 (grub_script.tab.c): ... here.
51114 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51115 (grub_script.tab.c): ... here.
51117 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51118 (grub_script.tab.c): ... here.
51120 * normal/command.c (grub_command_find): Fixed a memory leak of
51121 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51123 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51125 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51126 "@" which marks the start of a comment on ARM.
51127 (VARIABLE): Likewise.
51129 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51131 Add support for Linux/ADFS partition tables.
51133 * partmap/acorn.c: New file.
51135 * include/grub/acorn_filecore.h: Likewise.
51137 * DISTLIST: Added `partmap/acorn.c' and
51138 `include/grub/acorn_filecore.h'.
51140 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51142 (pkgdata_MODULES): Add `acorn.mod'.
51143 (acorn_mod_SOURCES): New variable.
51144 (acorn_mod_CFLAGS): Likewise.
51146 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51148 (pkgdata_MODULES): Add `acorn.mod'.
51149 (acorn_mod_SOURCES): New variable.
51150 (acorn_mod_CFLAGS): Likewise.
51152 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51153 (pkgdata_MODULES): Add `acorn.mod'.
51154 (acorn_mod_SOURCES): New variable.
51155 (acorn_mod_CFLAGS): Likewise.
51156 (acorn_mod_LDFLAGS): Likewise.
51158 * include/types.h (grub_disk_addr_t): New typedef.
51160 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51162 * geninit.sh: New file.
51164 * geninitheader.sh: Likewise.
51166 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51167 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51168 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51169 * commands/configfile.c (grub_configfile_init)
51170 (grub_configfile_fini): Likewise.
51171 * commands/default.c (grub_default_init, grub_default_fini):
51173 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51174 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51175 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51176 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51178 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51179 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51181 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51182 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51184 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51186 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51188 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51189 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51190 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51191 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51192 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51193 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51194 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51195 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51196 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51197 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51198 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51199 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51200 * partmap/amiga.c (grub_amiga_partition_map_init)
51201 (grub_amiga_partition_map_fini): Likewise.
51202 * partmap/apple.c (grub_apple_partition_map_init)
51203 (grub_apple_partition_map_fini): Likewise.
51204 * partmap/pc.c (grub_pc_partition_map_init)
51205 (grub_pc_partition_map_fini): Likewise.
51206 * partmap/sun.c (grub_sun_partition_map_init,
51207 grub_sun_partition_map_fini): Likewise.
51208 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51211 * util/grub-emu.c: Include <grub_modules_init.h>.
51212 (main): Don't initialize and de-initialize any modules directly,
51213 use `grub_init_all' and `grub_fini_all' instead.
51215 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51216 `grub_vesafb_mod_init'.
51217 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51219 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51220 `grub_vga_mod_init'. Updated all users.
51221 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51223 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51224 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51227 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51228 Generate a function to initialize the module in utilities.
51229 Updated all callers.
51230 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51231 initialize the module in utilities. Updated all callers.
51233 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51235 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51236 escape sequence and a literal ^L to clear the screen.
51238 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51239 when returning from Open Firmware.
51241 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51243 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51244 (grub_ofconsole_height): Likewise.
51245 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51246 manually insert a '\n'.
51247 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51248 `grub_ofconsole_height'. Return early if these are already set.
51250 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51252 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51253 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51254 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51255 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51256 and `normal/script.c'.
51257 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51258 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51259 (test_mod_SOURCES): New variable.
51260 (test_mod_CFLAGS): Likewise.
51261 (test_mod_LDFLAGS): Likewise.
51262 (pkgdata_MODULES): Add `test.mod'.
51263 (grub_script.tab.c): New rule.
51264 (grub_script.tab.h): Likewise.
51266 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51268 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51269 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51270 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51271 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51272 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51273 (test_mod_SOURCES): New variable.
51274 (test_mod_CFLAGS): Likewise.
51275 (pkgdata_MODULES): Add `test.mod'.
51276 (grub_script.tab.c): New rule.
51277 (grub_script.tab.h): Likewise.
51279 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51281 Add initial scripting support.
51283 * commands/test.c: New file.
51284 * include/grub/script.h: Likewise.
51285 * normal/execute.c: Likewise.
51286 * normal/function.c: Likewise.
51287 * normal/lexer.c: Likewise.
51288 * normal/parser.y: Likewise.
51289 * normal/script.c: Likewise.
51291 * configure.ac: Add `AC_PROG_YACC' test.
51293 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51294 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51295 `normal/function.c' and `normal/script.c'.
51296 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51297 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51298 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51300 (pkgdata_MODULES): Add `test.mod'.
51301 (grub_script.tab.c): New rule.
51302 (grub_script.tab.h): Likewise.
51304 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51306 * include/grub/normal.h (grub_test_init): New prototype.
51307 (grub_test_fini): Likewise.
51309 * normal/command.c: Include <grub/script.h>.
51310 (grub_command_execute): Rewritten.
51312 * util/grub-emu.c (main): Call `grub_test_init' and
51315 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51317 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51319 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51320 there are no pending characters.
51322 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51324 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51325 `grub_strndup' to drop device arguments. Replace unnecessary
51326 `grub_strndup' with `grub_strdup'.
51328 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51330 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51331 `debug' environment variable has been set.
51333 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51335 * Makefile.in (install-local): Use $(DATA).
51336 (uninstall): Likewise.
51337 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51338 (sbin_UTILITIES): ... to here.
51339 (sbin_SCRIPTS): New variable.
51340 (grub_install_SOURCES): New variable.
51341 * util/powerpc/ieee1275/grub-install.in: New file.
51342 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51344 (add_segments): Call `grub_util_get_path'.
51346 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51348 From Timothy Baldwin:
51349 * commands/ls.c (grub_ls_list_files): Close FILE with
51351 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51353 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51355 * include/grub/parser.h: New file.
51357 * kern/parser.c: Likewise.
51359 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51360 (grub_setup_SOURCES): Likewise.
51361 (grub_probefs_SOURCES): Likewise.
51362 (grub_emu_SOURCES): Likewise.
51363 (kernel_img_HEADERS): Add `parser.h'.
51365 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51366 (grub_emu_SOURCES): Add `kern/parser.c'.
51367 (grubof_SOURCES): Likewise.
51369 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51370 (grubof_SOURCES): Add `kern/parser.c'.
51372 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51374 * kern/misc.c (grub_split_cmdline): Removed function.
51376 * kern/rescue.c: Include <grub/parser.h>.
51377 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51378 of `grub_split_cmdline'.
51380 * normal/command.c: Include <grub/parser.h>.
51381 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51382 of `grub_split_cmdline'.
51384 * normal/completion.c: Include <grub/parser.h>.
51385 (cmdline_state): New variable.
51386 (iterate_dir): End the filename with a quote depending on the
51387 command line state.
51388 (get_state): new function.
51389 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51390 split the arguments and determine the current argument. When the
51391 argument string is not quoted, escape all spaces.
51393 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51395 * normal/sparc64/setjmp.S: New file.
51397 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51399 * include/grub/sparc64/libgcc.h: New file.
51400 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51401 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51402 normal/sparc64/setjmp.c.
51404 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51406 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51407 * kern/sparc64/cache.S: New file.
51408 * kern/sparc64/cache.c: Removed.
51409 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51410 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51412 (COMMON_LDFLAGS): Add -melf64_sparc.
51413 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51414 (grubof_SOURCES): Use cache.S instead of cache.c.
51415 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51416 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51417 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51419 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51420 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51421 (linux_mod_CFLAGS): Commented out.
51422 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51423 out because module isn't built.
51424 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51425 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51426 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51427 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51428 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51429 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51430 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51431 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51432 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51433 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51434 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51435 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51436 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51437 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51439 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51441 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51442 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51443 longer, because HFS should not be used on PC.
51445 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51447 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51448 consistently within the loop.
51450 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51452 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51453 directory can not be read.
51455 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51457 * configure.ac (AC_INIT): Increase the version number to 1.91.
51459 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51460 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51461 term/i386/pc/serial.c.
51463 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51465 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51466 file size must be permitted.
51468 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51469 between %ah and %al.
51471 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51473 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51475 Call the hook with a NUL-terminated filename.
51476 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51479 * kern/term.c (cursor_state): New variable.
51480 (grub_term_set_current): Reset the cursor state on a new
51482 (grub_setcursor): Rewritten to use CURSOR_STATE.
51483 (grub_getcursor): New function.
51485 * include/grub/term.h (grub_getcursor): New prototype.
51487 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51488 integers on ARM. Reported by Timothy Baldwin
51489 <T.E.Baldwin99@members.leeds.ac.uk>.
51491 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51493 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51495 (grub_sfs_dir): Likewise.
51497 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51499 Add support for the SFS filesystem.
51501 * fs/sfs.c: New file.
51503 * DISTLIST: Added `fs/sfs.c'.
51505 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51506 (grub_probefs_SOURCES): Likewise.
51507 (grub_emu_SOURCES): Likewise.
51508 (pkgdata_MODULES): Add `sfs.mod'.
51509 (sfs_mod_SOURCES): New variable.
51510 (sfs_mod_CFLAGS): Likewise.
51511 (sfs_mod_LDFLAGS): Likewise.
51513 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51514 (pkgdata_MODULES): Add `sfs.mod'.
51515 (sfs_mod_SOURCES): New variable.
51516 (sfs_mod_CFLAGS): Likewise.
51518 * util/grub-emu.c (main): Call `grub_sfs_init' and
51521 * include/grub/fs.h (grub_sfs_init): New prototype.
51522 (grub_sfs_fini): Likewise.
51524 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51526 Add support for the AFFS filesystem.
51528 * fs/affs.c: New file.
51530 * DISTLIST: Added `fs/affs.c'.
51532 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51533 (grub_probefs_SOURCES): Likewise.
51534 (grub_emu_SOURCES): Likewise.
51535 (pkgdata_MODULES): Add `affs.mod'.
51536 (affs_mod_SOURCES): New variable.
51537 (affs_mod_CFLAGS): Likewise.
51538 (affs_mod_LDFLAGS): Likewise.
51540 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51541 (pkgdata_MODULES): Add `affs.mod'.
51542 (affs_mod_SOURCES): New variable.
51543 (affs_mod_CFLAGS): Likewise.
51545 * util/grub-emu.c (main): Call `grub_affs_init' and
51548 * include/grub/fs.h (grub_affs_init): New prototype.
51549 (grub_affs_fini): Likewise.
51551 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51553 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51555 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51557 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51560 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51563 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51564 (COMMON_LDFLAGS): New variable.
51565 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51566 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51567 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51568 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51569 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51570 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51571 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51572 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51573 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51574 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51575 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51576 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51577 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51578 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51579 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51581 (normal_mod_ASFLAGS): Add `-m32'.
51583 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51584 (grub_host_size_t, grub_host_ssize_t): New types.
51585 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51586 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51587 `GRUB_HOST_SIZEOF_VOID_P'.
51589 * include/grub/kernel.h (struct grub_module_header): Type of
51590 member offset changed to `grub_host_off_t'. Type of member size
51591 changed to `grub_host_size_t'.
51592 (struct grub_module_info): Type of member offset changed to
51593 `grub_host_off_t'. Type of member size changed to
51594 `grub_host_size_t'.
51596 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51598 Make GRUB's kernel compliant to Multiboot Specification.
51600 * kern/i386/pc/startup.S (multiboot_header): New label.
51601 (multiboot_entry): Likewise.
51602 (multiboot_trampoline): Likewise.
51604 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51605 Increased to 0x4A0.
51607 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51608 put parentheses after a question mark.
51609 [!GRUB_UTIL] (my_mod): New variable.
51611 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51613 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51615 Adds support for the XFS filesystem. Btrees are not supported
51618 * fs/xfs.c: New file.
51620 * DISTLIST: Added `fs/xfs.c'.
51622 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51623 (grub_probefs_SOURCES): Likewise.
51624 (grub_emu_SOURCES): Likewise.
51625 (pkgdata_MODULES): Add `xfs.mod'.
51626 (xfs_mod_SOURCES): New variable.
51627 (xfs_mod_CFLAGS): Likewise.
51629 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51630 (pkgdata_MODULES): Add `xfs.mod'.
51631 (xfs_mod_SOURCES): New variable.
51632 (xfs_mod_CFLAGS): Likewise.
51634 * util/grub-emu.c (main): Call `grub_xfs_init' and
51637 * include/grub/fs.h (grub_xfs_init): New prototype.
51638 (grub_xfs_fini): Likewise.
51641 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51643 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51644 color modes, allow greater than 16 colors to be configured as
51647 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51649 * normal/completion.c (complete_arguments): Add the qualifier
51650 const into OPTIONS.
51652 From Omniflux <omniflux+lists@omniflux.com>:
51653 * include/grub/terminfo.h: New file.
51654 * include/grub/tparm.h: Likewise.
51655 * include/grub/i386/pc/serial.h: Likewise.
51656 * term/terminfo.c: Likewise.
51657 * term/tparm.c: Likewise.
51658 * term/i386/pc/serial.c: Likewise.
51659 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51661 (terminfo_mod_SOURCES): New variable.
51662 (terminfo_mod_CFLAGS): Likewise.
51663 (serial_mod_SOURCES): Likewise.
51664 (serial_mod_CFLAGS): Likewise.
51666 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51668 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51669 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51670 and kern/powerpc/ieee1275/cmain.c, respectively.
51672 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51673 * kern/powerpc/ieee1275/crt0.S: ... here.
51675 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51676 * kern/powerpc/ieee1275/cmain.c: ... here.
51678 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51679 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51680 instead of boot/powerpc/ieee1275/crt0.S and
51681 boot/powerpc/ieee1275/cmain.c, respectively.
51683 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51684 sectors. It was not used anyway.
51686 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51688 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51689 `unused parameter' warning.
51691 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51693 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51695 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51698 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51700 * include/grub/normal.h (enum grub_completion_type): Added
51701 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51703 * normal/cmdline.c (print_completion): Handle
51704 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51705 * normal/menu_entry.c (store_completion): Likewise.
51707 * normal/completion.c (complete_arguments): New function.
51708 (grub_normal_do_completion): Call `complete_arguments' when the
51709 current words start with a dash.
51711 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51713 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51714 `gzio.mod' instead of `io.mod').
51716 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51718 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51719 (DISTDIRS): Added io and video.
51720 Rewrite the search routine to make an output consistently.
51722 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51723 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51724 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51725 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51726 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51727 util/powerpc/ieee1275/misc.c.
51729 * include/grub/gzio.h: New file.
51730 * io/gzio.c: Likewise.
51732 * kern/file.c (grub_file_close): Call grub_device_close only if
51733 FILE->DEVICE is not NULL.
51735 * include/grub/mm.h [!NULL] (NULL): New macro.
51737 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51739 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51740 (pkgdata_MODULES): Added gzio.mod.
51741 (gzio_mod_SOURCES): New variable.
51742 (gzio_mod_CFLAGS): Likewise.
51744 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51745 (pkgdata_MODULES): Added gzio.mod.
51746 (gzio_mod_SOURCES): New variable.
51747 (gzio_mod_CFLAGS): Likewise.
51749 * commands/cat.c: Include grub/gzio.h.
51750 (grub_cmd_cat): Use grub_gzfile_open instead of
51753 * commands/cmp.c: Include grub/gzio.h.
51754 (grub_cmd_cmp): Use grub_gzfile_open instead of
51757 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51758 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51760 (grub_rescue_cmd_module): Likewise.
51762 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51764 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51765 kern/sparc64/ieee1275/init.c because it contains _start.
51766 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51768 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51770 * configure.ac: Add support for sparc64 host with ieee1275
51772 * configure: Generated from configure.ac.
51773 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51775 (grub_ofdisk_read): Likewise.
51776 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51777 pointers as (void *) to remove a warning.
51778 (grub_ofdisk_close): Likewise.
51779 (grub_ofdisk_read): Likewise.
51780 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51781 returns, so make it return void to remove a warning.
51782 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51783 Corresponding prototype change.
51784 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51785 values, and cast the pointers as (void *) to remove a warning.
51786 (grub_mm_dump): Likewise.
51787 * conf/sparc64-ieee1275.mk: New file.
51788 * conf/sparc64-ieee1275.rmk: Likewise.
51789 * include/grub/sparc64/setjmp.h: Likewise.
51790 * include/grub/sparc64/types.h: Likewise.
51791 * include/grub/sparc64/ieee1275/console.h: Likewise.
51792 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51793 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51794 * include/grub/sparc64/ieee1275/time.h: Likewise.
51795 * kern/sparc64/cache.c: Likewise.
51796 * kern/sparc64/dl.c: Likewise.
51797 * kern/sparc64/ieee1275/init.c: Likewise.
51798 * kern/sparc64/ieee1275/openfw.c: Likewise.
51800 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51802 * util/console.c (grub_ncurses_putchar): If C is greater than
51803 0x7f, set C to a question mark.
51804 (grub_ncurses_getcharwidth): New function.
51805 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51808 * normal/menu.c (print_entry): Made aware of Unicode. First,
51809 convert TITLE to UCS-4, and predict the cursor position by
51812 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51814 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51816 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51818 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51819 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51822 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51823 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51824 grub_strcpy and grub_strlen. Take it into account that a space
51825 character is inserted as a delimiter.
51827 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51829 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51830 invalid magic in the error.
51832 * commands/search.c: New file.
51834 * util/grub-emu.c (main): Call grub_search_init and
51837 * kern/rescue.c (grub_rescue_print_disks): Removed.
51838 (grub_rescue_print_devices): New function.
51839 (grub_rescue_cmd_ls): Use grub_device_iterate with
51840 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51841 grub_rescue_print_disks.
51843 * kern/partition.c (grub_partition_iterate): Return the result of
51844 PARTMAP->ITERATE instead of GRUB_ERRNO.
51846 * kern/device.c: Include grub/partition.h.
51847 (grub_device_iterate): New function.
51849 * include/grub/partition.h (grub_partition_iterate): Return int
51850 instead of grub_err_t.
51852 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51854 [GRUB_UTIL] (grub_search_fini): Likewise.
51856 * include/grub/device.h (grub_device_iterate): New prototype.
51858 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51860 (pkgdata_MODULES): Added search.mod.
51861 (search_mod_SOURCES): New variable.
51862 (search_mod_CFLAGS): Likewise.
51864 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
51865 (pkgdata_MODULES): Added search.mod.
51866 (search_mod_SOURCES): New variable.
51867 (search_mod_CFLAGS): Likewise.
51869 * commands/ls.c (grub_ls_list_disks): Renamed to ...
51870 (grub_ls_list_devices): ... this, and use grub_device_iterate.
51871 All callers changed.
51873 * DISTLIST: Added commands/search.c.
51875 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51877 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
51879 (grub_getcharwidth): New function.
51881 * kern/misc.c (grub_utf8_to_ucs4): New function.
51883 * include/grub/term.h (struct grub_term): Added a new member
51885 (grub_getcharwidth): New prototype.
51887 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
51889 * term/i386/pc/console.c (map_char): New function. Segregated from
51890 grub_console_putchar.
51891 (grub_console_putchar): Use map_char.
51892 (grub_console_getcharwidth): New function.
51893 (grub_console_term): Specified grub_console_getcharwidth as
51896 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
51897 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
51899 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
51901 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
51902 on grub_strtoul completely.
51903 (write_char): Declare local variables in the beginning of the
51905 (grub_vesafb_getcharwidth): New function.
51906 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
51909 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
51911 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
51912 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
51913 commands/i386/pc/vbetest.c.
51915 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
51916 call grub_vbe_get_controller_info again, because the returned
51917 information is volatile.
51918 (grub_vbe_set_video_mode): Mostly rewritten.
51919 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
51920 grub_vbe_status_t correctly.
51921 (grub_vbe_get_video_mode_info): Likewise.
51922 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
51923 several if statements.
51925 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
51926 * commands/i386/pc/vbeinfo.c: ... this.
51928 * commands/i386/pc/vbe_test.c: Renamed to ...
51929 * commands/i386/pc/vbetest.c: ... this.
51931 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
51933 (grub_cmd_vbeinfo): ... this. Save video modes before
51934 iterating. Skip a video mode, if it is not available, not enough
51935 information is given or it is monochrome. Show the memory
51936 model. Leave the interpretation of MODEVAR to grub_strtoul
51938 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
51939 (GRUB_MOD_FINI): Likewise.
51941 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
51942 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
51943 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
51944 duplicated grub_env_get. Leave the interpretation of MODEVAR to
51945 grub_strtoul completely.
51946 (real2pm): Removed.
51947 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
51948 (GRUB_MOD_FINI): Likewise.
51950 * normal/misc.c: Include grub/mm.h.
51952 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
51953 vbe_list_modes with vbetest.mod and vbeinfo.mod.
51954 (vbe_list_modes_mod_SOURCES): Removed.
51955 (vbe_list_modes_mod_CFLAGS): Likewise.
51956 (vbe_test_mod_SOURCES): Likewise.
51957 (vbe_test_mod_CFLAGS): Likewise.
51958 (vbeinfo_mod_SOURCES): New variable.
51959 (vbeinfo_mod_CFLAGS): Likewise.
51960 (vbetest_mod_SOURCES): Likewise.
51961 (vbetest_mod_CFLAGS): Likewise.
51963 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
51965 * normal/misc.c: New file.
51967 * DISTLIST: Added normal/misc.c.
51969 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
51970 DISK to HOOK. Call HOOK with DISK.
51971 * partmap/apple.c (apple_partition_map_iterate): Likewise.
51972 * partmap/pc.c (pc_partition_map_iterate): Likewise.
51973 * partmap/sun.c (sun_partition_map_iterate): Likewise.
51975 * normal/menu_entry.c (struct screen): Added a new member
51976 "completion_shown".
51977 (completion_buffer): New global variable.
51978 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
51979 (store_completion): New function.
51980 (complete): Likewise.
51981 (clear_completions): Likewise.
51982 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
51983 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
51984 a tab, call complete.
51986 * normal/completion.c (disk_dev): Removed.
51987 (print_simple_completion): Likewise.
51988 (print_partition_completion): Likewise.
51989 (print_func): New global variable.
51990 (add_completion): Do not take the arguments WHAT or PRINT any
51991 longer. Added a new argument TYPE. Instead of printing directly,
51992 call PRINT_FUNC if not NULL.
51993 All callers changed.
51994 (complete_device): Use a local variable DEV instead of
51995 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
51996 (grub_normal_do_completion): Take a new argument HOOK. Do not
51997 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
51998 empty string, return NULL instead.
51999 All callers changed.
52001 * normal/cmdline.c (print_completion): New function.
52003 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52005 All callers changed.
52007 * kern/disk.c (grub_print_partinfo): Removed.
52009 * include/grub/partition.h (struct grub_partition_map): Add a new
52010 argument DISK into HOOK of ITERATE.
52011 (grub_partition_iterate): Add a new argument DISK to HOOK.
52013 * include/grub/normal.h (enum grub_completion_type): New enum.
52014 (grub_completion_type_t): New type.
52015 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52016 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52017 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52018 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52019 (grub_normal_do_completion): Added a new argument HOOK.
52020 (grub_normal_print_device_info): New prototype.
52022 * include/grub/disk.h (grub_print_partinfo): Removed.
52024 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52025 (normal_mod_SOURCES): Likewise.
52026 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52027 (normal_mod_SOURCES): Likewise.
52029 * commands/ls.c (grub_ls_list_disks): Use
52030 grub_normal_print_device_info instead of grub_print_partinfo. Free
52032 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52033 duplicating the code.
52035 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52037 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52038 follow GCS more precisely.
52039 * commands/i386/pc/vbe_test.c: Likewise.
52040 * include/grub/i386/pc/vbe.h: Likewise.
52041 * term/i386/pc/vesafb.c: Likewise.
52042 * video/i386/pc/vbe.c: Likewise.
52044 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52046 * DISTLIST: Added term/i386/pc/vesafb.c
52047 DISTLIST: Added video/i386/pc/vbe.c
52048 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52049 DISTLIST: Added commands/i386/pc/vbe_test.c.
52050 * commands/i386/pc/vbe_list_modes.c: New file.
52051 * commands/i386/pc/vbe_test.c: Likewise.
52052 * term/i386/pc/vesafb.c: Likewise.
52053 * video/i386/pc/vbe.c: Likewise.
52054 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52055 (grub_vbe_probe) Added prototype.
52056 (grub_vbe_set_video_mode) Likewise.
52057 (grub_vbe_get_video_mode) Likewise.
52058 (grub_vbe_get_video_mode_info) Likewise.
52059 (grub_vbe_set_pixel_rgb) Likewise.
52060 (grub_vbe_set_pixel_index) Likewise.
52061 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52062 (pkgdata_MODULES): Added vesafb.mod.
52063 (pkgdata_MODULES): Added vbe_list_modes.mod.
52064 (pkgdata_MODULES): Added vbe_test.mod.
52065 (vbe_mod_SOURCES): Added.
52066 (vbe_mod_CFLAGS): Likewise.
52067 (vesafb_mod_SOURCES): Likewise.
52068 (vesafb_mod_CFLAGS): Likewise.
52069 (vbe_list_modes_mod_SOURCES): Likewise.
52070 (vbe_list_modes_mod_CFLAGS): Likewise.
52071 (vbe_test_mod_SOURCES): Likewise.
52072 (vbe_test_mod_CFLAGS): Likewise.
52074 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52076 * normal/command.c (grub_command_execute): If INTERACTIVE is
52077 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52078 CMDLINE. Disable the pager if INTERACTIVE is true.
52079 All callers are changed.
52081 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52082 before reading a config file.
52083 * normal/main.c (read_config_file): Even if a command is not
52084 found, register it if it is within an entry.
52086 * util/grub-emu.c: Include sys/types.h and unistd.h.
52087 (options): Added --hold.
52088 (struct arguments): Added a new member "hold".
52089 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52091 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52092 cleared by a debugger, if it is not zero.
52094 * include/grub/normal.h (grub_command_execute): Add an argument
52097 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52099 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52101 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52103 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52104 program with another one, because the old one didn't detect a bug
52105 in gcc-3.4. Always use regparm 2, because the new test is still
52106 not enough for gcc-4.0. Someone must investigate a simple test
52107 case which detects a bug in gcc-4.0.
52109 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52111 * DISTLIST: Added normal/completion.c.
52113 * normal/completion.c: New file.
52115 * term/i386/pc/console.c (grub_console_getwh): New function.
52116 (grub_console_term): Assign grub_console_getwh to getwh.
52118 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52119 function is defined in normal/completion.c as
52120 grub_normal_do_completion.
52121 (grub_cmdline_get): Use grub_normal_do_completion instead of
52124 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52125 returns non-zero, otherwise return 0.
52126 (grub_partition_iterate): First, probe the partition map. Then,
52127 call ITERATE only for this partition map.
52129 * kern/misc.c (grub_strncmp): Rewritten.
52131 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52132 returns non-zero. Otherwise return 0.
52134 * include/grub/partition.h (grub_partition_map_iterate): Return
52135 int instead of void.
52137 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52139 * include/grub/misc.h (grub_strncmp): Change the type of N to
52142 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52145 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52146 unsigned explicitly before comparing it with I.
52148 * kern/main.c (grub_env_write_root): Add the attribute unused into
52151 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52152 normal/completion.c.
52153 (normal_mod_SOURCES): Likewise.
52154 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52155 (normal_mod_SOURCES): Likewise.
52157 * normal/command.c (grub_iterate_commands): If ITERATE returns
52158 non-zero, return one immediately.
52160 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52162 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52163 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52165 (grub_vbe_get_controller_info): New function.
52166 (grub_vbe_get_mode_info): Likewise.
52167 (grub_vbe_set_mode): Likewise.
52168 (grub_vbe_get_mode): Likewise.
52169 (grub_vbe_set_memory_window): Likewise.
52170 (grub_vbe_get_memory_window): Likewise.
52171 (grub_vbe_set_scanline_length): Likewise.
52172 (grub_vbe_get_scanline_length): Likewise.
52173 (grub_vbe_set_display_start): Likewise.
52174 (grub_vbe_get_display_start): Likewise.
52175 (grub_vbe_set_palette_data): Likewise.
52176 * include/grub/i386/pc/vbe.h: New file.
52178 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52180 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52181 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52182 * DISTLIST: Likewise.
52183 * kern/ieee1275/of.c: Moved to ...
52184 * kern/ieee1275/ieee1275.c: ... here.
52186 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52188 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52189 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52190 Pass 0 as `end' parameter to grub_strtoul().
52192 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52194 * include/grub/powerpc/ieee1275/console.h: Do not include
52195 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52197 (grub_console_cur_color): Remove i386-specific prototype.
52198 (grub_console_real_putchar): Likewise.
52199 (grub_console_checkkey): Likewise.
52200 (grub_console_getkey): Likewise.
52201 (grub_console_getxy): Likewise.
52202 (grub_console_gotoxy): Likewise.
52203 (grub_console_cls): Likewise.
52204 (grub_console_setcursor): Likewise.
52205 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52206 Include <grub/machine/console.h>.
52207 * term/ieee1275/ofconsole.c: Likewise.
52209 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52211 * Makefile.in (LIBLZO): New variable.
52213 * configure.ac: Check for LZO version 2.
52215 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52216 lzo/lzo1x.h instead of lzo1x.h.
52218 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52221 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52222 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52224 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52225 copying the data from PARTITION to P.
52227 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52229 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52230 negative, unload the module.
52232 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52233 map is "pc_partition_map" but not "pc".
52234 (usage): Fix the description. The options are --boot-image and
52235 --core-image but not --boot-file or --core-file.
52236 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52237 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52240 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52241 --core-file. Specify INSTALL_DEVICE as an argument.
52243 * util/console.c: Include config.h.
52244 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52245 [HAVE_NCURSES_H]: Include ncurses.h.
52246 [HAVE_CURSES_H]: Include curses.h.
52247 [!A_NORMAL] (A_NORMAL): Defined as zero.
52248 [!A_STANDOUT] (A_STANDOUT): Likewise.
52250 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52252 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52254 * configure.ac: Check for curses libraries and headers.
52256 * Makefile.in (LIBCURSES): New variable.
52258 * genmk.rb (Script::rule): Set the executable bits.
52260 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52261 name of the PC partition map is "pc_partition_map" but not "pc".
52263 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52265 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52266 (modules): Likewise.
52267 (usage): Added descriptions for --modules and --grub-probefs.
52268 Handle --modules and --grub-probefs. Save the arguments in MODULES
52269 and GRUB_PROBEFS, respectively.
52270 Auto-detect a filesystem module against GRUBDIR. If the result is
52271 empty and modules are not specified explicitly, abort the
52272 installation. Add the result to MODULES.
52274 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52275 disk/powerpc/ieee1275/ofdisk.c,
52276 include/grub/powerpc/ieee1275/init.h and
52277 term/powerpc/ieee1275/ofconsole.c.
52278 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52279 term/ieee1275/ofconsole.c.
52281 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52283 * COPYING: Upgraded to the latest version. Only the address of the
52284 FSF office has changed.
52286 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52288 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52289 kern/ieee1275.c with kern/ieee1275/of.c.
52291 * kern/ieee1275.c: Moved to ...
52292 * kern/ieee1275/of.c: ... here.
52294 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52296 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52299 * config.guess: Updated to the latest version from gnulib.
52300 * config.sub: Likewise.
52301 * install.sh: Likewise.
52302 * mkinstalldirs: Likewise.
52304 * include/grub/console.h: Removed. This file is arch-specific. Do
52305 not put this in include/grub.
52307 * include/grub/i386/pc/console.h: Resurrected.
52309 * util/console.c: Include grub/machine/console.h instead of
52311 * util/grub-emu.c: Likewise.
52313 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52315 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52318 From Vincent Pelletier <subdino2004@yahoo.fr>
52319 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52320 Redefined to use grub_getwh.
52321 (grub_term): New member named getwh.
52322 (grub_getwh): New prototype.
52323 * kern/term.c (grub_getwh): New function.
52324 * term/i386/pc/console.c (grub_console_getwh): New function.
52325 (grub_console_term): New member `getwh'.
52326 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52327 (grub_vga_term): New member `getwh'.
52328 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52330 (grub_ofconsole_getw): New function.
52331 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52332 (grub_ofconsole_term): New field named getwh and new initial
52335 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52337 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52338 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52339 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52340 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52341 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52342 of <grub/machine/ieee1275.h>.
52343 * commands/ieee1275/reboot.c: Likewise.
52344 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52345 * kern/ieee1275.c: ... to here. All users updated. Change all
52346 parameter structs to use new type `grub_ieee1275_cell_t'.
52347 * term/powerpc/ieee1275/ofconsole.c: Move ...
52348 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52349 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52350 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52351 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52353 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52354 Remove unused prototypes. All users updated.
52355 * include/grub/powerpc/ieee1275/console.h: Removed.
52356 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52357 `grub_ieee1275_cell_t'.
52358 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52359 Cast comparisons with -1 to the correct type.
52360 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52361 type to match `grub_ieee1275_entry_fn'.
52363 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52365 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52367 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52368 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52370 (grub_probefs_SOURCES): New variable.
52372 * util/i386/pc/grub-probefs.c: New file.
52374 * util/i386/pc/grub-setup.c (main): Call
52375 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52376 grub_hfs_init and grub_jfs_init to initialize the system. Call
52377 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52378 grub_pc_partition_map_fini to finish the system.
52380 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52382 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52384 (grub_multiboot_load_elf32): Likewise.
52385 (grub_multiboot_is_elf64): Likewise.
52386 (grub_multiboot_load_elf64): Likewise.
52387 (grub_multiboot_load_elf): Likewise.
52388 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52389 an ELF32 or ELF64 file.
52390 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52392 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52393 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52394 NULL before calling FS->LABEL.
52395 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52396 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52397 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52398 before calling FS->LABEL.
52400 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52402 * util/i386/pc/grub-install.in (datadir): New variable.
52404 (pkgdatadir): New variable.
52405 (pkglibdir): Removed.
52407 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52409 * DISTLIST: Added util/i386/pc/grub-install.in.
52411 * util/i386/pc/grub-install.in: New file.
52413 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52414 (grub_install_SOURCES): Likewise.
52416 * genmk.rb: Added support for scripts.
52417 (Script): New class.
52418 (scripts): New variable.
52420 * Makefile.in (install-local): Install sbin_SCRIPTS by
52422 (uninstall): Remove sbin_SCRIPTS.
52424 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52425 device, try to get a GRUB device by
52426 grub_util_biosdisk_get_grub_dev.
52429 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52430 description for --device-map.
52432 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52434 Change the semantics of variable hooks. They now return strings
52435 instead of error values.
52437 * util/i386/pc/grub-setup.c: Include grub/env.h.
52438 (setup): Use grub_device_set_root instead of grub_env_set.
52440 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52441 grub_env_get instead of grub_device_set_root and
52442 grub_device_get_root, respectively.
52444 * kern/main.c (grub_env_write_root): New function.
52445 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52446 grub_env_set instead of grub_device_set_root.
52448 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52450 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52451 rather than calling ENV->WRITE_HOOK afterwards.
52452 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52453 passing a pointer of a pointer.
52454 (grub_register_variable_hook): Change the types of "read_hook" and
52455 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52457 Allocate the default empty string on the heap, because this string
52458 may be freed later.
52460 * kern/device.c: Include grub/env.h.
52461 (grub_device_set_root): Removed.
52462 (grub_device_get_root): Likewise.
52463 (grub_device_open): Use grub_env_get instead of
52464 grub_device_get_root.
52466 * include/grub/env.h (grub_env_read_hook_t): New type.
52467 (grub_env_write_hook_t): Likewise.
52468 (grub_env_var): Change the types of "read_hook" and "write_hook"
52469 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52470 (grub_register_variable_hook): Likewise.
52472 * include/grub/device.h (grub_device_set_root): Removed.
52473 (grub_device_set_root): Likewise.
52475 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52476 make sure that DIRNAME terminates with '/', so that
52477 grub_fat_find_dir will fail if PATH is not a directory.
52479 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52481 Use the qualifier auto for print_files and print_files_long.
52482 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52484 Put a newline only if there is no error.
52485 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52488 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52490 * kern/partition.c (grub_partition_probe): Initialize PART to
52491 NULL. Otherwise, when no partition map is registered, this returns
52494 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52496 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52497 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52500 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52502 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52503 information on each device, if it does not have partitions. Print
52504 "Device" instead of "Disk", because this function is not specific
52507 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52508 static to ensure that it is put on the memory rather than a
52511 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52513 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52514 (grub_cat_init): Likewise.
52515 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52516 (options): Likewise.
52517 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52518 (grub_configfile_init): Likewise.
52519 * font/manager.c (GRUB_MOD_INIT): Likewise.
52520 * commands/help.c (GRUB_MOD_INIT): Likewise.
52521 (grub_help_init): Likewise.
52522 * normal/command.c (grub_command_init): Likewise.
52523 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52524 * disk/loopback.c (grub_loop_init): Likewise.
52525 (GRUB_MOD_INIT): Likewise.
52526 * commands/ls.c (grub_ls_init): Likewise.
52527 (GRUB_MOD_INIT): Likewise.
52528 (options): Likewise.
52529 * commands/boot.c (grub_boot_init): Likewise.
52530 (GRUB_MOD_INIT): Likewise.
52531 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52532 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52533 (GRUB_MOD_INIT): Likewise.
52534 * commands/cmp.c (grub_cmp_init): Likewise.
52535 (GRUB_MOD_INIT): Likewise.
52537 * normal/arg.c: Use <> instead of "" to include header files.
52538 (SHORT_ARG_HELP): New macro.
52539 (SHORT_ARG_USAGE): Likewise.
52540 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52541 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52543 (find_short): Check if C is 'h' or 'u' explicitly.
52544 (grub_arg_show_help): Use space characters instead of tabs. Treat
52545 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52546 are shown with --help and --usage only if they are not used for
52547 the command itself.
52548 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52551 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52552 const into "longarg". Change the type of "shortarg" to int.
52554 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52556 * boot/i386/pc/boot.S (boot_drive_check): New label.
52558 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52561 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52562 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52564 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52566 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52567 When turning off Gate A20, skip the check and return immediately,
52568 because this is not fatal usually.
52570 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52572 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52573 be 0x7C00 instead of 0x8000.
52575 * boot/i386/pc/pxeboot.S: Rewritten.
52577 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52579 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52582 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52584 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52585 robustness. This routine now supports a BIOS call and System
52586 Control Port A to modify the gate A20.
52588 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52589 Increased to 0x440.
52591 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52593 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52594 device path and resulting ihandle.
52595 (grub_ofdisk_close): dprintf the ihandle being closed.
52596 (grub_ofdisk_read): dprintf function parameters.
52597 * kern/mm.c (grub_mm_init_region): Likewise.
52598 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52599 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52600 size, and boot arguments.
52601 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52602 before loading into memory.
52603 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52604 before loading into memory.
52606 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52608 * kern/mm.c: Added much documentation.
52609 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52610 8, set to 5 instead of 8.
52612 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52614 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52616 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52617 (grub_mkdevicemap_SOURCES): New variable.
52619 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52620 lib/device.c of GRUB Legacy.
52622 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52624 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52625 instead of PATH is NULL.
52627 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52629 * commands/cmp.c (BUFFER_SIZE): New macro.
52630 (grub_cmd_cmp): Close the right file at the right time. Compare
52631 only data just read. Don't report files of different size as
52632 identical. Dynamically allocate buffers. Move variable
52633 declarations at the beginning of function.
52635 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52637 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52640 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52642 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52643 when backspace is pressed at beginning of line.
52645 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52647 * DISTLIST: Added genfslist.sh.
52649 * normal/main.c (fs_module_list): New variable.
52650 (autoload_fs_module): New function.
52651 (read_fs_list): Likewise.
52652 (grub_normal_execute): Call read_fs_list.
52654 * kern/fs.c (grub_fs_autoload_hook): New variable.
52655 (grub_fs_probe): Added support for auto-loading.
52657 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52658 (grub_fs_module_list_t): New type.
52660 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52661 (grub_fs_autoload_hook): New prototype.
52663 * genfslist.sh: New file.
52665 * genmk.rb: Added a rule to generate a filesystem list.
52667 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52669 * configure.ac: Fix the test for cross-compiling.
52671 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52672 define GRUB_UTIL anymore.
52674 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52675 so this function works on other systems than just big endian.
52676 (load_modules): Likewise.
52677 (add_segments): Likewise.
52679 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52681 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52682 contains `l' modifier, get a long from va_arg().
52684 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52686 * kern/mm.c (grub_free): If the next free block which is being
52687 merged is the first free block, set the first block to the block
52689 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52691 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52693 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52694 `grub_ieee1275_chosen'.
52696 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52698 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52699 (grub_ieee1275_chosen): New variable.
52700 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52702 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52703 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52704 Rename first argument to `phandle' for consistency.
52705 (grub_ieee1275_get_property_length): Likewise.
52706 (grub_ieee1275_next_property): Likewise. Change type of first argument
52707 to grub_ieee1275_phandle_t.
52708 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52709 Move export next to declaration.
52710 (grub_ieee1275_chosen): New variable.
52711 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52712 Correct cosmetic typo.
52713 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52714 `grub_ieee1275_chosen'.
52715 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52716 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52717 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52718 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52719 `grub_ieee1275_chosen'.
52721 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52723 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52725 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52726 /chosen/bootargs as "variable=value" pairs.
52728 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52730 * include/grub/misc.h (grub_dprintf): New macro.
52731 (grub_real_dprintf): New prototype.
52732 (grub_strword): Likewise.
52733 (grub_iswordseparator): Likewise.
52734 * kern/misc.c (grub_real_dprintf): New function.
52735 (grub_strword): Likewise.
52736 (grub_iswordseparator): Likewise.
52738 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52740 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52741 (roundup): Remove macro.
52742 (grub_ieee1275_flags): Make static.
52743 (grub_ieee1275_realmode): Remove.
52744 (grub_ieee1275_test_flag): New function.
52745 (grub_ieee1275_set_flag): Likewise.
52746 (find_options): Rename to `grub_ieee1275_find_options'; update
52747 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52748 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52749 (cmain): New prototype.
52750 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52751 `grub_ieee1275_flags' directly.
52752 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52753 machine/biosdisk.h.
52754 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52755 Don't include grub/machine/init.h.
52756 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52757 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52759 (grub_ieee1275_realmode): Likewise.
52760 (grub_ieee1275_flag): New enum.
52761 (grub_ieee1275_test_flag): New prototype.
52762 (grub_ieee1275_set_flag): New prototype.
52763 * include/grub/powerpc/ieee1275/init.h: Remove file.
52764 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52765 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52766 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52767 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52769 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52770 `grub_ieee1275_test_flag'.
52771 (grub_ieee1275_encode_devname): Likewise.
52773 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52775 * include/grub/powerpc/ieee1275/ieee1275.h
52776 (grub_ieee1275_encode_devname): New prototype.
52777 (grub_ieee1275_get_filename): Likewise.
52778 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52780 (grub_set_prefix): Likewise.
52781 (grub_machine_init): Call grub_set_prefix.
52782 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52783 (grub_parse_type): New enum.
52784 (grub_ieee1275_get_devargs): New function.
52785 (grub_ieee1275_get_devname): Likewise.
52786 (grub_ieee1275_parse_args): Likewise.
52787 (grub_ieee1275_get_filename): Likewise.
52788 (grub_ieee1275_encode_devname): Likewise.
52790 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52792 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52793 `grub_loader_unset'.
52795 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52797 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52798 instead of grub_ieee1275_interpret.
52799 (grub_halt_init): New function.
52800 (grub_halt_fini): Likewise.
52801 (GRUB_MOD_INIT): Correct message grammar.
52802 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52803 instead of grub_ieee1275_interpret.
52804 (grub_reboot_init): New function.
52805 (grub_reboot_fini): Likewise.
52806 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52807 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52808 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52809 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52810 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52812 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52814 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52816 (grub_halt): Likewise.
52817 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52818 (cmain): Remove __attribute__((unused)).
52819 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52820 (grub_heap_len): Likewise.
52821 (grub_machine_fini): New function.
52822 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52823 (grub_halt): Likewise.
52824 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52826 * util/powerpc/ieee1275/misc.c: New file.
52828 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52830 * DISTLIST: New file.
52831 * gendistlist.sh: Likewise.
52833 * Makefile.in (COMMON_DISTFILES): Removed.
52834 (BOOT_DISTFILES): Likewise.
52835 (CONF_DISTFILES): Likewise.
52836 (DISK_DISTFILES): Likewise.
52837 (FS_DISTFILES): Likewise.
52838 (INCLUDE_DISTFILES): Likewise.
52839 (KERN_DISTFILES): Likewise.
52840 (LOADER_DISTFILES): Likewise.
52841 (TERM_DISTFILES): Likewise.
52842 (UTIL_DISTFILES): Likewise.
52843 (DISTFILES): Likewise.
52844 (uninstall): Uninstall files in $(pkgdata_DATA).
52845 (DISTLIST): New target.
52846 (distdir): Use the contents of the file DISTLIST to get a list of
52849 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52851 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52852 descriptor. This is ported from GRUB Legacy.
52854 * gencmdlist.sh: Added an extra semicolon to make it work with
52855 old sed versions. Reported by Robert Bihlmeyer
52856 <robbe@orcus.priv.at>.
52858 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
52860 Automatic loading of commands is supported.
52862 * normal/main.c (read_command_list): New function.
52863 (grub_normal_execute): Call read_command_list.
52865 * normal/command.c (grub_register_command): Return zero or CMD.
52866 Allocate CMD->NAME from the heap.
52867 Initialize CMD->MODULE_NAME to zero.
52868 Find the same name as well. If the same command is found and it is
52869 a dummy command, overwrite members. If it is not a dummy command,
52871 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
52872 (grub_command_find): If a dummy command is found, load a module
52873 and retry to find a command only once.
52875 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
52876 make sure that each command is loaded.
52878 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
52880 (struct grub_command): Remove const from the member `name'.
52881 Add a new member `module_name'.
52882 (grub_register_command): Return grub_command_t.
52884 * commands/help.c (grub_cmd_help): Call grub_command_find to make
52885 sure that each command is loaded.
52887 * genmk.rb (PModule::rule): Specify a module name without the
52888 suffix ".mod" to gencmdlist.sh.
52890 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52892 * gencmdlist.sh: New file.
52894 * genmk.rb (PModule::rule): Generate a rule for a command list.
52896 Generate command.lst from $(COMMANDFILES).
52898 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
52899 (DATA): Added $(pkgdata_DATA).
52900 (install-local): Install files in $(pkgdata_DATA).
52902 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52904 * term/i386/pc/vga.c (debug_command): Removed.
52905 (GRUB_MOD_INIT): Do not register the command "debug".
52907 From Hollis Blanchard:
52908 * commands/configfile.c: New file.
52909 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52910 commands/configfile.c.
52911 (pkgdata_MODULES): Added configfile.mod.
52912 (configfile_mod_SOURCES): New variable.
52913 (configfile_mod_CFLAGS): Likewise.
52914 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52915 commands/configfile.c.
52916 (pkgdata_MODULES): Added configfile.mod.
52917 (configfile_mod_SOURCES): New variable.
52918 (configfile_mod_CFLAGS): Likewise.
52919 * util/grub-emu.c (main): Call grub_configfile_init and
52920 grub_configfile_fini.
52921 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
52923 [GRUB_UTIL] (grub_configfile_fini): Likewise.
52925 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52927 * normal/arg.c (grub_arg_show_help): Do not show the bug report
52930 * commands/help.c (grub_cmd_help): Do not print newlines after
52931 the last command in print_command_help.
52933 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52935 * commands/default.h: New file.
52936 * commands/timeout.h: Likewise.
52937 * normal/context.c: Likewise.
52939 * util/misc.c: Do not include sys/times.h.
52940 Include sys/time.h and grub/machine/time.h.
52941 (grub_get_rtc): Rewritten with gettimeofday.
52943 * util/grub-emu.c (main): Call grub_default_init and
52944 grub_timeout_init before grub_normal_init, and call
52945 grub_timeout_fini and grub_default_fini after grub_main.
52947 * util/console.c (grub_ncurses_checkkey): Return the read
52950 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
52953 * normal/main.c (read_config_file): Push MENU. If this fails,
52954 print an error and wait for a user input.
52955 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
52956 If a menu is empty or an error occurs, pop MENU.
52957 (grub_normal_execute): Pop and free MENU after grub_menu_run
52960 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
52962 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
52964 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52966 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
52968 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52971 * include/grub/normal.h (struct grub_menu_list): New struct.
52972 (grub_menu_list_t): New type.
52973 (struct grub_context): New struct.
52974 (grub_context_t): New type.
52975 (grub_register_command): Got rid of EXPORT_FUNC.
52976 (grub_unregister_command): Likewise.
52977 (grub_context_get): New prototype.
52978 (grub_context_get_current_menu): Likewise.
52979 (grub_context_push_menu): Likewise.
52980 (grub_context_pop_menu): Likewise.
52981 [GRUB_UTIL] (grub_default_init): Likewise.
52982 [GRUB_UTIL] (grub_default_fini): Likewise.
52983 [GRUB_UTIL] (grub_timeout_init): Likewise.
52984 [GRUB_UTIL] (grub_timeout_fini): Likewise.
52986 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
52987 commands/timeout.c and normal/context.c.
52988 (pkgdata_MODULES): Added default.mod and timeout.mod.
52989 (normal_mod_SOURCES): Added normal/context.c.
52990 (default_mod_SOURCES): New variable.
52991 (default_mod_CFLAGS): Likewise.
52992 (timeout_mod_SOURCES): Likewise.
52993 (timeout_mod_CFLAGS): Likewise.
52994 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
52996 (pkgdata_MODULES): Added default.mod and timeout.mod.
52997 (normal_mod_SOURCES): Added normal/context.c.
52998 (default_mod_SOURCES): New variable.
52999 (default_mod_CFLAGS): Likewise.
53000 (timeout_mod_SOURCES): Likewise.
53001 (timeout_mod_CFLAGS): Likewise.
53003 * Makefile.in (all-local): Added $(MKFILES).
53005 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53007 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53008 (grub_emu_SOURCES): Likewise.
53009 (pkgdata_MODULES): Add `sun.mod'.
53010 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53011 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53013 (pkgdata_MODULES): Add `sun.mod'.
53014 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53015 * include/grub/partition.h (grub_sun_partition_map_init): New
53017 (grub_sun_partition_map_fini): Likewise.
53018 * partmap/sun.c: New file.
53019 * util/grub-emu.c (main): Initialize and de-initialize the sun
53020 partitionmap support.
53022 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53024 This implements an Emacs-like menu entry editor.
53026 * normal/menu_entry.c: New file.
53028 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53029 characters to ASCII.
53030 (saved_char): New variable.
53031 (grub_ncurses_checkkey): Rewritten completely.
53032 (grub_ncurses_getkey): Likewise.
53033 (grub_ncurses_init): Call raw instead of cbreak.
53035 * normal/menu.c (print_entry): Do not put a space.
53036 (init_page): Renamed to ...
53037 (grub_menu_init_page): ... this. All callers changed.
53038 (edit_menu_entry): Removed.
53039 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53041 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53043 * kern/misc.c (grub_vprintf): Call grub_refresh.
53045 * normal/menu.c (DISP_LEFT): Renamed to ...
53046 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53047 * normal/menu.c (DISP_UP): Renamed to ...
53048 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53049 * normal/menu.c (DISP_RIGHT): Renamed to ...
53050 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53051 * normal/menu.c (DISP_DOWN): Renamed to ...
53052 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53053 * normal/menu.c (DISP_HLINE): Renamed to ...
53054 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53055 * normal/menu.c (DISP_VLINE): Renamed to ...
53056 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53057 * normal/menu.c (DISP_UL): Renamed to ...
53058 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53059 * normal/menu.c (DISP_UR): Renamed to ...
53060 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53061 * normal/menu.c (DISP_LL): Renamed to ...
53062 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53063 * normal/menu.c (DISP_LR): Renamed to ...
53064 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53065 * normal/menu.c (TERM_WIDTH): Renamed to ...
53066 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53067 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53068 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53069 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53070 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53071 * normal/menu.c (TERM_MARGIN): Renamed to ...
53072 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53073 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53074 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53075 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53076 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53077 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53078 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53079 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53080 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53081 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53082 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53083 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53084 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53085 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53086 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53087 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53088 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53089 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53090 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53091 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53092 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53093 All callers changed.
53095 * include/grub/normal.h: New prototype.
53097 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53098 normal/menu_entry.c.
53099 (normal_mod_SOURCES): Likewise.
53100 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53101 (normal_mod_SOURCES): Likewise.
53103 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53105 * include/grub/normal.h (grub_halt_init): New prototype.
53106 (grub_halt_fini): Likewise.
53107 (grub_reboot_init): Likewise.
53108 (grub_reboot_fini): Likewise.
53110 * util/grub-emu.c: Include signal.h.
53111 (main_env): New global variable.
53112 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53114 (grub_machine_fini): New function.
53115 (main): Call grub_halt_init and grub_reboot_init before
53116 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53117 Call setjmp with MAIN_ENV to go back afterwards.
53118 Call grub_machine_fini right before return.
53120 * include/grub/util/misc.h: Include setjmp.h.
53121 (main_env): New prototype.
53123 * include/grub/kernel.h (grub_machine_fini): New prototype.
53124 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53125 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53127 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53128 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53129 * term/i386/pc/console.c (grub_console_fini): Likewise.
53131 * util/i386/pc/misc.c: New file.
53133 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53134 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53135 commands/i386/pc/reboot.c.
53137 2005-02-14 Guillem Jover <guillem@hadrons.org>
53139 * include/grub/dl.h (grub_dl_check_header): New prototype.
53140 (grub_arch_dl_check_header): Change return type to grub_err_t,
53141 remove size parameter and export function. Update all callers.
53142 * kern/dl.c (grub_dl_check_header): New function.
53143 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53144 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53145 are inside the core.
53146 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53147 independent ELF header checks.
53148 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53149 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53150 `grub_dl_check_header' instead of explicit checks. Check for the
53152 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53153 `grub_dl_check_header' instead of explicit checks. Remove arch
53154 specific ELF header checks.
53156 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53159 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53161 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53162 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53164 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53166 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53167 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53168 (part_map_iterate): Clear `grub_errno' and return 0 if
53169 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53170 * partmap/amiga.c (amiga_partition_map_iterate): Return
53171 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53172 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53174 2005-02-01 Guillem Jover <guillem@hadrons.org>
53176 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53179 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53181 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53183 (grub_rescue_cmd_linux): New prototype.
53184 (grub_rescue_cmd_initrd): Likewise.
53185 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53187 (grub_linux_release_mem): Release the memory for the initrd.
53188 (grub_load_linux): Renamed from this...
53189 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53190 Changed `entry' not to be static. Loop over memory regions to
53191 find another one when the default fails.
53192 (grub_rescue_cmd_initrd): New function.
53193 (grub_linux_init): Remove function.
53194 (grub_linux_fini): Likewise.
53195 (GRUB_MOD_INIT): Register `initrd'.
53196 (GRUB_MOD_FINI): Unregister `initrd'.
53197 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53199 (grub_linux_normal_fini): Likewise.
53200 (GRUB_MOD_INIT): Register `initrd'.
53201 (GRUB_MOD_FINI): Unregister `initrd'.
53203 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53205 * commands/help.c: New file.
53206 * normal/arg.c (show_help): Renamed to...
53207 (grub_arg_show_help): ... this.
53208 * commands/i386/pc/halt.c: New file.
53209 * commands/i386/pc/reboot.c: Likewise.
53210 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53211 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53212 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53213 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53215 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53217 (pkgdata_MODULES): Add `help.mod'.
53218 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53219 * grub/i386/pc/init.h (grub_reboot): New prototype.
53220 (grub_halt): Likewise.
53221 * include/grub/normal.h (grub_arg_show_help): New prototype.
53222 (grub_help_init): Likewise.
53223 (grub_help_fini): Likewise.
53224 * util/grub-emu.c (main): Initialize and deinitialize the help
53227 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53229 * normal/command.c (grub_command_init): Fixed the description of
53230 the `set' and `unset' commands.
53232 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53234 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53236 * commands/ieee1275/halt.c: New file.
53237 * commands/ieee1275/reboot.c: Likewise.
53238 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53239 `__attribute__ ((unused))'. Some GCS related fixed.
53240 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53241 (grub_suspend_fini): Likewise.
53242 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53244 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53245 (halt_mod_CFLAGS): New variables.
53246 * include/grub/powerpc/ieee1275/ieee1275.h
53247 (grub_ieee1275_interpret): New prototype.
53249 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53251 * include/grub/misc.h (memmove): New prototype.
53252 (memcpy): Likewise.
53254 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53256 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53257 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53259 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53261 * kern/misc.c (grub_strndup): Function rewritten.
53263 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53265 * normal/menu.c (TERM_WIDTH): Macro redefined.
53266 (TERM_TOP_BORDER_Y): Likewise.
53267 (draw_border): Replaced while-loop by a for-loop. Make the number
53268 of lines consistent with the number of lines displayed in
53269 print_entries. Added a margin below the rectangle.
53270 (print_entry): Make the entry fit in the rectangle.
53271 (print_entries): Display the scroll arrows next to the right
53274 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53276 * fs/minix.c (grub_minix_find_file): Reserve more space for
53277 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53278 `grub_strncpy' to copy `path' into it.
53280 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53282 Add the loopback device, a device via which files can be accessed
53285 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53286 (pkgdata_MODULES): Add loopback.mod.
53287 (loopback_mod_SOURCES): New variable.
53288 (loopback_mod_CFLAGS): Likewise.
53289 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53291 (pkgdata_MODULES): Add loopback.mod.
53292 (loopback_mod_SOURCES): New variable.
53293 (loopback_mod_CFLAGS): Likewise.
53294 * disk/loopback.c: new file.
53295 * include/grub/normal.h (grub_loop_init): New prototype.
53296 (grub_loop_fini): New prototype.
53297 * util/grub-emu.c (main): Initialize and de-initialize loopback
53299 * include/grub/disk.h (grub_disk_dev_id): Add
53300 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53302 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53304 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53306 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53307 (suspend_mod_SOURCES): New variable.
53308 (suspend_mod_CFLAGS): Likewise.
53309 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53311 * commands/ieee1275/suspend.c: New file.
53313 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53315 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53316 ((unused))' to `__attribute__ ((used))'.
53317 (GRUB_MOD_FINI): Likewise.
53318 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53319 * genmk.rb (PModule): Assign space to common symbols when linking
53322 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53324 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53325 `unsigned' arguments to `grub_size_t'.
53326 (grub_malloc): Likewise.
53327 (grub_realloc): Likewise.
53328 (grub_memalign): Likewise.
53329 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53330 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53331 * util/misc.c (grub_malloc): Likewise.
53332 (grub_realloc): Likewise.
53333 * kern/mm.c (get_header_from_pointer): Change the casts to
53334 `unsigned' into a cast to `grub_size_t'.
53336 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53337 point to `currnode' when `currnode' is changed.
53339 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53340 Schottelius <nico-linux@schottelius.org>.
53342 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53344 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53345 (note_path): Remove variable.
53346 (GRUB_IEEE1275_NOTE_NAME): New macro.
53347 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53348 (grub_ieee1275_note_hdr): New structure.
53349 (grub_ieee1275_note_desc): Likewise.
53350 (grub_ieee1275_note): Likewise.
53351 (load_note): Remove `dir' argument. All callers updated. Remove
53352 `note_img' and `path'. Do not load a file from `note_path'.
53353 Initialize a struct grub_ieee1275_note and write that to `out'.
53354 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53356 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53358 * util/misc.c (grub_util_read_image): Revert last change. It
53359 called `grub_util_read_at', which seeks from the beginning of the
53362 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53364 * TODO: Add note about endianness in grub-mkimage.
53365 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53367 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53368 (grub_mkimage_SOURCES): New target.
53369 * include/grub/kernel.h (grub_start_addr): Remove variable.
53370 (grub_end_addr): Likewise.
53371 (grub_total_module_size): Likewise.
53372 (grub_kernel_image_size): Likewise.
53373 (GRUB_MODULE_MAGIC): New constant.
53374 (grub_module_info): New structure.
53375 (grub_arch_modules_addr): New prototype.
53376 (grub_get_end_addr): Remove prototype.
53377 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53378 * include/grub/powerpc/ieee1275/kernel.h: New file.
53379 * include/grub/util/misc.h (grub_util_get_fp_size): New
53381 (grub_util_read_at): Likewise.
53382 (grub_util_write_image_at): Likewise.
53383 * kern/main.c (grub_get_end_addr): Remove function.
53384 (grub_load_modules): Call grub_arch_modules_addr instead of using
53385 grub_end_addr. Look for a grub_module_info struct in memory. Use
53386 the grub_module_info fields instead of calling grub_get_end_addr
53387 as loop conditions. Move grub_add_unused_region code here.
53388 (grub_add_unused_region): Remove function.
53389 * kern/i386/pc/init.c: Include grub/cache.h.
53390 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53391 one call to add_mem_region.
53392 (grub_arch_modules_addr): New function.
53393 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53394 (grub_total_module_size): Likewise.
53395 Include grub/machine/kernel.h.
53396 (grub_arch_modules_addr): New function.
53397 * util/grub-emu.c (grub_end_addr): Remove variable.
53398 (grub_total_module_size): Likewise.
53399 (grub_arch_modules_addr): New function.
53400 * util/misc.c: Include unistd.h.
53401 (grub_util_get_fp_size): New function.
53402 (grub_util_read_at): Likewise.
53403 (grub_util_write_image_at): Likewise.
53404 (grub_util_read_image): Call grub_util_read_at.
53405 (grub_util_write_image): Call grub_util_write_image_at.
53406 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53407 additional memory in kernel_img for a struct grub_module_info.
53408 Fill in that grub_module_info.
53409 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53411 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53413 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53415 * include/grub/powerpc/ieee1275/ieee1275.h
53416 (grub_ieee1275_milliseconds): New prototype.
53417 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53419 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53420 grub_ieee1275_milliseconds.
53422 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53424 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53426 (find_options): New function.
53427 (cmain): Call find_options.
53428 * include/grub/powerpc/ieee1275/ieee1275.h
53429 (grub_ieee1275_realmode): New extern variable.
53430 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53431 grub_map if grub_ieee1275_realmode is false.
53433 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53435 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53436 lines are inserted and make it work like readline. Reported by
53437 Vincent Pelletier <subdino2004@yahoo.fr>.
53439 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53441 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53443 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53444 `kern/powerpc/cache.S'.
53446 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53448 * genmk.rb: Handle the `Program' class in the main loop. Written
53449 by Johan Rydberg <jrydberg@gnu.org>.
53450 (Program): New class.
53451 (programs): New variable.
53452 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53453 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53454 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53455 (help_arch): Function removed.
53456 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53457 `powerpc/libgcc.h' and `loader.h'.
53458 (pkgdata_PROGRAMS): New variable.
53459 (sbin_UTILITIES): Variable removed.
53460 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53461 (grubof_SOURCES): Variable re-defined so it only includes the
53462 core functionality.
53463 (grubof_CFLAGS): Remove `-DGRUBOF'.
53464 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53465 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53466 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53467 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53468 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53469 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53470 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53471 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53472 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53473 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53474 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53475 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53476 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53477 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53478 (pc_mod_CFLAGS): New variables.
53479 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53480 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53481 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53482 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53484 * include/grub/i386/pc/init.h (grub_os_area_addr)
53485 (rub_os_area_size): ... to here.
53486 * include/grub/powerpc/ieee1275/ieee1275.h
53487 (grub_ieee1275_entry_fn): Export symbol.
53488 * include/grub/powerpc/ieee1275/init.h: New file.
53489 * include/grub/powerpc/libgcc.h: Likewise.
53490 * include/grub/cache.h: Likewise.
53491 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53492 <hollis@penguinppc.org>.
53493 * kern/dl.c: Include <grub/cache.h>.
53494 (grub_dl_flush_cache): New function.
53495 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53497 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53498 (grub_console_init): Removed prototypes.
53499 (grub_machine_init): Don't initialize the modules anymore.
53500 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53502 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53503 Macro undef removed.
53504 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53505 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53506 relocation `R_PPC_REL32'. Return an error when the relocation is
53508 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53509 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53510 * util/misc.c (grub_arch_sync_caches): Likewise.
53512 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53514 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53515 `symlist.c', add `grubof_symlist.c'.
53516 (symlist.c): Variable removed.
53517 (grubof_HEADERS): Variable added.
53518 (grubof_symlist.c): New target.
53519 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53520 `kernel_img_HEADERS'.
53521 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53522 * kern/powerpc/dl.c: New file.
53523 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53525 (grub_arch_dl_relocate_symbols): Likewise.
53526 (grub_register_exported_symbols): Likewise.
53528 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53530 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53531 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53532 to fail instead. Reported by Vincent Pelletier
53533 <subdino2004@yahoo.fr>.
53535 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53536 it is not allocated. Reported by Vincent Pelletier
53537 <subdino2004@yahoo.fr>.
53539 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53540 output so the output looks better.
53542 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53544 Modulize the partition map support and add support for the amiga
53547 * commands/ls.c: Include <grub/partition.h> instead of
53548 <grub/machine/partition.h>.
53549 * kern/disk.c: Likewise.
53550 * kern/rescue.c: Likewise.
53551 * loader/i386/pc/chainloader.c: Likewise.
53552 * normal/cmdline.c: Likewise.
53553 * kern/powerpc/ieee1275/init.c: Likewise.
53554 (grub_machine_init): Call `grub_pc_partition_map_init',
53555 `grub_amiga_partition_map_init' and
53556 `grub_apple_partition_map_init'.
53557 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53558 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53559 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53560 `partition.h' and `pc_partition.h'.
53561 (grub_setup_SOURCES): Remove
53562 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53563 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53564 (grub_emu_SOURCES): Likewise.
53565 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53566 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53567 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53568 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53569 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53570 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53571 (grubof_SOURCES): Likewise.
53572 * disk/i386/pc/partition.c: File removed.
53573 * disk/powerpc/ieee1275/partition.c: Likewise.
53574 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53575 * include/grub/i386/pc/partition.h: Likewise.
53576 * kern/partition.c: New file.
53577 * partmap/amiga.c: Likewise.
53578 * partmap/apple.c: Likewise.
53579 * partmap/pc.c: Likewise.
53580 * include/grub/partition.h: Likewise..
53581 * include/grub/pc_partition.h: Likewise.
53582 * util/grub-emu.c: Include <grub/partition.h> instead of
53583 <grub/machine/partition.h>.
53584 (main): Call `grub_pc_partition_map_init',
53585 `grub_amiga_partition_map_init' and
53586 `grub_apple_partition_map_init' and deinitialize afterwards.
53587 * util/i386/pc/biosdisk.c: Include `#include
53588 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53589 `<grub/machine/partition.h>'.
53590 * util/i386/pc/grub-setup.c: Likewise.
53591 * util/i386/pc/biosdisk.c: Likewise.
53592 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53593 partition information in case of a PC partition.
53594 * util/i386/pc/grub-setup.c: Include `#include
53595 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53596 `<grub/machine/partition.h>'.
53597 (setup): Only access the PC specific partition information in case
53600 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53602 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53603 (grub_longjmp): Likewise.
53604 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53606 * normal/powerpc/setjmp.S: New file.
53607 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53608 `normal/powerpc/setjmp.S'.
53609 (grubof_CFLAGS): Add `-DGRUBOF'.
53610 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53611 [GRUB_UTIL && !GRUBOF].
53613 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53615 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53616 property named `name'. Correctly handle the error returned by
53617 `grub_ieee1275_finddevice' if a device can not be opened.
53619 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53621 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53622 `actual' for negativity.
53623 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53626 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53628 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53629 (PAGE_OFFSET): New macro.
53630 (CRTC_ADDR_PORT): Likewise.
53631 (CRTC_DATA_PORT): Likewise.
53632 (START_ADDR_HIGH_REGISTER): Likewise.
53633 (START_ADDR_LOW_REGISTER): Likewise.
53634 (GRAPHICS_ADDR_PORT): Likewise.
53635 (GRAPHICS_DATA_PORT): Likewise.
53636 (READ_MAP_REGISTER): Likewise.
53637 (INPUT_STATUS1_REGISTER): Likewise.
53638 (INPUT_STATUS1_VERTR_BIT): Likewise.
53639 (page): New variable.
53640 (wait_vretrace): New function.
53641 (set_read_map): Likewise.
53642 (set_start_address): Likewise.
53643 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53645 (check_vga_mem): Take the page into account.
53646 (write_char): Likewise.
53647 (write_cursor): Likewise.
53648 (scroll_up): Likewise. Copy the page to the page that is not
53649 shown and switch between both pages.
53650 (grub_vga_putchar): Fix off by one error.
53651 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53654 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53656 Add support for iso9660 (including rockridge).
53658 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53659 (iso9660_mod_SOURCES): New variable.
53660 (iso9660_mod_CFLAGS): Likewise.
53661 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53662 * include/grub/fs.h (grub_iso9660_init): New prototype.
53663 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53664 * fs/iso9660.c: New file.
53666 * include/grub/misc.h (grub_strncat): New prototype.
53667 * kern/misc.c (grub_strncat): New function.
53669 * fs/hfs.c (grub_hfs_mount): Translate the error
53670 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53671 * fs/jfs.c (grub_jfs_mount): Likewise.
53672 * fs/ufs.c (grub_ufs_mount): Likewise.
53674 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53676 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53677 which initialized BAT registers.
53678 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53679 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53681 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53682 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53684 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53685 (grub_mapclaim): Likewise.
53686 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53687 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53690 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53692 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53693 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53694 -ffreestanding and -msoft-float.
53696 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53698 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53699 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53700 set in grub_ieee1275_flags.
53702 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53704 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53706 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53707 grub_console_init first.
53708 Change the memory range used for grub_ieee1275_claim and
53709 grub_mm_init_region.
53710 Print an error message if the claim fails.
53711 Include <grub/misc.h>.
53713 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53715 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53716 Call grub_children_iterate for device nodes of type `scsi',
53718 (grub_ofdisk_open): Remove manual device alias resolution.
53719 Fix memory leak when device cannot be opened.
53720 * include/grub/powerpc/ieee1275/ieee1275.h
53721 (grub_children_iterate): New prototype.
53722 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53724 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53725 Return -1 if args.size was -1.
53727 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53729 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53730 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53731 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53732 Open Firmware's memory for it; claim memory from _start to _end.
53733 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53734 (_end): New extern.
53735 (_start): Zero BSS from __bss_start to _end.
53736 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53738 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53740 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53742 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53743 -1 if args.base was -1.
53745 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53747 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53748 escape sequence instead of a literal ^L. Also call
53749 grub_ofconsole_gotoxy.
53751 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53753 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53754 void * arguments to grub_addr_t. All callers updated. Also make
53755 the `result' argument optional.
53756 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53757 All callers updated.
53759 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53761 * commands/ls.c (grub_ls_list_files): Use the string following the
53762 initial ')', if present, as the filesystem path.
53763 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53765 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53767 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53769 Make the source code of the menu interface more readable.
53771 * normal/menu.c: Include grub/mm.h.
53772 (TERM_WIDTH): New macro.
53773 (TERM_HEIGHT): Likewise.
53774 (TERM_INFO_HEIGHT): Likewise.
53775 (TERM_MARGIN): Likewise.
53776 (TERM_SCROLL_WIDTH): Likewise.
53777 (TERM_TOP_BORDER_Y): Likewise.
53778 (TERM_LEFT_BORDER_X): Likewise.
53779 (TERM_BORDER_WIDTH): Likewise.
53780 (TERM_MESSAGE_HEIGHT): Likewise.
53781 (TERM_BORDER_HEIGHT): Likewise.
53782 (TERM_NUM_ENTRIES): Likewise.
53783 (TERM_FIRST_ENTRY_Y): Likewise.
53784 (TERM_ENTRY_WIDTH): Likewise.
53785 (TERM_CURSOR_X): Likewise.
53786 (draw_border): Use macros instead of magic numbers.
53787 (print_entry): Likewise.
53788 (print_entries): Likewise.
53789 (run_menu): Likewise. Also, handle the key 'e'.
53790 (run_menu_entry): Ignore empty command lines.
53791 (print_message): Added a new argument EDIT. If EDIT is true,
53792 print a different message.
53793 (init_page): Likewise.
53794 (edit_menu_entry): New function. Not implemented yet.
53796 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53798 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53799 can be loaded from normal mode.
53801 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53803 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53804 (multiboot_mod_CFLAGS): New variables.
53805 * loader/i386/pc/linux_normal.c: New file.
53806 * loader/i386/pc/multiboot_normal.c: Likewise.
53808 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53809 attribute `unused'.
53811 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53812 `fdiro' to read the mode information from instead of `diro'.
53814 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53815 looking up a symlink.
53817 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53819 * normal/command.c (grub_command_execute): Don't parse the
53820 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53821 flags of the command.
53823 * normal/menu.c (grub_menu_run): Fix typo.
53825 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53827 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53829 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53830 `y + 1' instead of `y - 1'.
53832 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53834 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53836 From Hollis Blanchard <hollis@penguinppc.org>:
53837 * kern/misc.c (memmove): New alias for grub_memmove.
53838 (memcmp): New alias for grub_memcmp.
53839 (memset): New alias for grub_memset.
53840 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53841 Change "int handle" to "grub_ieee1275_phandle_t handle".
53842 * include/grub/powerpc/ieee1275/ieee1275.h
53843 (grub_ieee1275_get_property): Likewise.
53845 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53847 Added normal mode command `chainloader' as module chain.mod, which
53848 depends on normal.mod and _chain.mod.
53850 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53851 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53852 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53854 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53855 but arguments parsing moved to ...
53856 (grub_chainloader_cmd): ... here. New function.
53857 * include/grub/i386/pc/chainloader.h: New file.
53858 * loader/i386/pc/chainloader_normal.c: Likewise.
53860 2004-09-11 Marco Gerards <metgerards@student.han.nl>
53862 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
53863 (grub_mkimage_LDFLAGS): Likewise.
53864 (grub_emu_SOURCES): Likewise.
53865 (kernel_img_HEADERS): Added fshelp.h.
53866 * fs/ext2.c: Include <grub/fshelp.h>.
53867 (FILETYPE_REG): New macro.
53868 (FILETYPE_INO_REG): Likewise.
53869 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
53871 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
53873 (grub_fshelp_node): New struct.
53874 (grub_ext2_data): Added member `diropen'. Changed member `inode'
53876 (grub_ext2_get_file_block): Removed function.
53877 (grub_ext2_read_block): New function.
53878 (grub_ext2_read_file): Replaced parameter `data' by `node'.
53879 This function was written.
53880 (grub_ext2_mount): Read the root inode. Create a diropen struct.
53881 (grub_ext2_find_file): Removed function.
53882 (grub_ext2_read_symlink): New function.
53883 (grub_ext2_iterate_dir): Likewise.
53884 (grub_ext2_open): Rewritten.
53885 (grub_ext2_dir): Rewritten.
53886 * include/grub/fshelp.h: New file.
53887 * fs/fshelp.c: Likewise.
53889 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
53891 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
53892 (print_message): Add a missing newline.
53893 (run_menu): Added timeout support.
53894 (run_menu_entry): New local function.
53895 (grub_menu_run): Added support for booting.
53897 * kern/loader.c (grub_loader_is_loaded): New function.
53899 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
53900 (grub_get_rtc): Exported.
53902 * include/grub/i386/pc/time.h: Include grub/symbol.h.
53903 (grub_get_rtc): Exported.
53905 * include/grub/normal.h (struct grub_command_list): Remove
53906 constant from the member `command'.
53908 * include/grub/loader.h (grub_loader_is_loaded): Declared.
53910 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
53912 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
53914 2004-08-28 Marco Gerards <metgerards@student.han.nl>
53916 Add support for the JFS filesystem.
53918 * fs/jfs.c: New file.
53919 * include/grub/fs.h (grub_jfs_init): New prototype.
53920 (grub_jfs_fini): New prototype.
53921 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
53922 (grub_emu_SOURCES): Likewise.
53923 (pkgdata_MODULES): Add jfs.mod.
53924 (jfs_mod_SOURCES): New variable.
53925 (jfs_mod_CFLAGS): Likewise.
53926 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
53927 (grubof_SOURCES): Likewise.
53928 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
53930 * fs/fat.c (grub_fat_find_dir): Convert the filename little
53931 endian to the host endian.
53932 (grub_fat_utf16_to_utf8): Move function from there...
53933 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
53934 the endianness of the source string anymore.
53935 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
53937 2004-08-24 Marco Gerards <metgerards@student.han.nl>
53939 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
53940 (grub_boot_fini) [GRUB_UTIL]: Likewise.
53941 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
53942 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
53944 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
53945 (grub_hfs_iterate_dir): Make the function static. Add prototypes
53946 for `node_found' and `it_dir'.
53947 (grub_hfs_dir): Add prototype for `dir_hook'.
53949 * fs/minix.c (grub_minix_get_file_block): Add prototype for
53950 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
53951 and `indir32' to silence a gcc warning.
53953 * include/grub/fs.h (grub_hfs_init): New prototype.
53954 (grub_hfs_fini): Likewise.
53957 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
53959 Each disk device has its own id now. This is useful to make use
53960 of multiple disk devices.
53962 * include/grub/disk.h (grub_disk_dev_id): New enum.
53963 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
53964 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
53966 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
53967 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53969 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
53970 GRUB_DISK_DEVICE_OFDISK_ID as an id.
53972 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
53973 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53975 * include/grub/disk.h (struct grub_disk_dev): Added a new member
53976 "id" which is used by the cache manager.
53978 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
53981 2004-08-18 Marco Gerards <metgerards@student.han.nl>
53983 * fs/hfs.c: New file.
53984 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
53985 (grub_emu_SOURCES): Likewise.
53986 (pkgdata_MODULES): Add hfs.mod.
53987 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
53988 (grubof_SOURCES): Likewise.
53989 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
53991 * include/grub/misc.h (grub_strncasecmp): Add prototype.
53992 * kern/misc.c (grub_strncasecmp): Add function.
53994 2004-08-14 Marco Gerards <metgerards@student.han.nl>
53996 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
53999 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54000 (grub_ext2_dir): In case the directory entry type is unknown, read
54003 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54005 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54006 grub_load_linux instead of grub_rescue_cmd_linux as second
54007 argument of grub_rescue_register_command.
54009 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54011 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54013 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54015 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54016 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54017 `loader/powerpc/ieee1275/linux.c',
54018 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54019 * include/grub/powerpc/ieee1275/ieee1275.h
54020 (grub_ieee1275_release): New prototype.
54021 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54022 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54023 normal, boot, linux and linux_normal.
54024 * loader/powerpc/ieee1275/linux.c: New file.
54025 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54027 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54029 * normal/arg.c (grub_arg_parse): Correct error handling after
54030 reallocating the argumentlist (check if `argl' is not null instead
54031 of checking if `args' is not null).
54032 * kern/mm.c (grub_realloc): Return the same pointer when using the
54033 same region, instead of returning the header address.
54035 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54037 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54038 one block instead of two when looking for the initial partition.
54039 (grub_partition_probe): Initialize the local variable `p' with 0.
54040 Use base 10 for the grub_strtoul call.
54041 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54042 need for one local variable.
54043 (grub_strtoul): Don't add the new value to `num', instead of that
54046 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54048 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54049 (pxeboot_img_SOURCES): New variable.
54050 (pxeboot_img_ASFLAGS): Likewise.
54051 (pxeboot_img_LDFLAGS): Likewise.
54052 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54053 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54054 <lode_leroy@hotmail.com>.
54056 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54058 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54059 there was no input.
54061 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54063 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54064 the history buffer logic.
54066 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54068 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54069 (FILETYPE_INO_SYMLINK): New macros.
54070 (grub_ext2_find_file): Check if the node is a directory using the
54071 inode stat information instead of using the filetype in the
54072 dirent. Exclude the first character of an absolute symlink.
54073 (grub_ext2_dir): Mask out the filetype part of the mode member of
54076 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54078 Add support for UFS version 1 and 2. Add support for the minix
54079 filesystem version 1 and 2, both the variants with 14 and 30 long
54082 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54084 (grub_emu_SOURCES): Likewise.
54085 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54086 (ufs_mod_SOURCES): New variable.
54087 (ufs_mod_CFLAGS): Likewise.
54088 (minix_mod_SOURCES): Likewise.
54089 (minix_mod_CFLAGS): Likewise.
54090 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54092 (grubof_SOURCES): Likewise.
54093 * fs/ufs.c: New file.
54094 * fs/minix.c: New file.
54095 * include/grub/fs.h (grub_ufs_init): New prototype.
54096 (grub_ufs_fini): Likewise.
54097 (grub_minix_init): Likewise.
54098 (grub_minix_fini): Likewise.
54099 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54102 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54104 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54105 commands/ls.c, commands/terminal.c, commands/boot.c,
54106 commands/cmp.c and commands/cat.c.
54107 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54109 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54112 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54114 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54115 and grub_, respectively. Because the conversion is trivial and
54116 mechanical, I omit the details here. Please refer to the CVS
54117 if you need more information.
54119 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54121 * include/pupa: Renamed to ...
54122 * include/grub: ... this.
54123 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54124 * util/i386/pc/grub-mkimage.c: ... this.
54125 * util/i386/pc/pupa-setup.c: Renamed to ...
54126 * util/i386/pc/grub-setup.c: ... this.
54127 * util/pupa-emu.c: Renamed to ...
54128 * util/grub-emu.c: ... this.
54130 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54132 Add support for the newworld apple macintosh (PPC). This has been
54133 tested on the powerbook 2000 only. It only adds support for
54134 generic ieee1275 functions, console and disk support. This should
54135 be easy to port to other architectures with support for Open
54138 * configure.ac: Accept the powerpc as host_cpu. In the case of
54139 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54140 specific tests are only executed while building for the i386.
54141 Inverse test for crosscompile.
54142 * genmk.rb (Utility): Allow assembler files.
54143 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54144 * conf/powerpc-ieee1275.rmk: New file.
54145 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54146 * disk/powerpc/ieee1275/partition.c: Likewise.
54147 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54148 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54149 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54150 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54151 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54152 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54153 * include/pupa/powerpc/ieee1275/loader.h
54154 * include/pupa/powerpc/setjmp.h: Likewise.
54155 * include/pupa/powerpc/types.h: Likewise.
54156 * kern/powerpc/ieee1275/init.c: Likewise.
54157 * kern/powerpc/ieee1275/openfw.c: Likewise.
54158 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54160 These files were written by Johan Rydberg
54161 (jrydberg@night.trouble.net) and I only modified them slightly.
54163 * boot/powerpc/ieee1275/cmain.c: New file.
54164 * boot/powerpc/ieee1275/crt0.S: Likewise.
54165 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54166 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54168 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54170 * Makefile.in: Update copyright.
54171 * genmodsrc.sh: Likewise.
54172 * gensymlist.sh: Likewise.
54173 * term/i386/pc/vga.c: Indent correctly.
54175 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54176 bugreporting address.
54177 * util/i386/pc/pupa-setup.c (usage): Likewise,
54178 (main): Call pupa_ext2_init and pupa_ext2_fini.
54180 * fs/fat.c (log2): Renamed to ...
54181 (fat_log2): ... this.
54182 All callers changed.
54183 * kern/misc.c (memcpy): Alias to pupa_memmove.
54184 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54186 * util/console.c (pupa_ncurses_fini): Return 0.
54188 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54189 Move fail label here.
54190 [__GNU__]: Don't warn when using stat.
54191 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54192 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54193 long int. Use strtol instead of strtoul.
54195 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54197 * commands/boot.c: New file.
54198 * commands/cat.c: Likewise.
54199 * commands/cmp.c: Likewise.
54200 * commands/ls.c: Likewise.
54201 * commands/terminal.c: Likewise.
54202 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54203 (pupa_register_command): Changed interface to match the new
54205 (pupa_command_execute): Changed (almost rewritten) so it uses
54206 pupa_split_command. Added support for setting variables using the
54208 (rescue_command): Changed to work with the new argument parser.
54209 (terminal_command): Moved from here to commands/terminal.c.
54210 (set_command): New function.
54211 (unset_command): New function.
54212 (insmod_command): New function.
54213 (rmmod_command): New function.
54214 (lsmod_command): New function.
54215 (pupa_command_init): Don't initialize the command terminal
54216 anymore. Initialize the commands set, unset, insmod, rmmod and
54218 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54219 (kernel_img_HEADERS): Add arg.h and env.h.
54220 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54221 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54222 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54224 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54226 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54227 (boot_mod_SOURCES): New variable.
54228 (terminal_mod_SOURCES): Likewise.
54229 (ls_mod_SOURCES): Likewise.
54230 (cmp_mod_SOURCES): Likewise.
54231 (cat_mod_SOURCES): Likewise.
54233 * normal/arg.c: New file.
54234 * kern/env.c: Likewise.
54235 * include/pupa/arg.h: Likewise.
54236 * include/pupa/env.h: Likewise.
54237 * font/manager.c (font_command): Changed to match argument parsing
54239 (PUPA_MOD_INIT): Likewise.
54240 * hello/hello.c (pupa_cmd_hello): Likewise.
54241 (PUPA_MOD_INIT): Likewise.
54242 * include/pupa/disk.h: Include <pupa/device.h>.
54243 (pupa_print_partinfo): New prototype.
54244 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54245 (pupa_dl_get_prefix): Likewise.
54246 * include/pupa/misc.h: Include <pupa/err.h>.
54247 (pupa_isgraph): New prototype.
54248 (pupa_isdigit): Likewise.
54249 (pupa_split_cmdline): Likewise.
54250 * include/pupa/normal.h: Include <pupa/arg.h>.
54251 (pupa_command): Changed the prototype of the member `func' to
54252 match the argument parsing interface. Added member `options'.
54253 (pupa_register_command): Updated to match function.
54254 (pupa_arg_parse): New prototype.
54255 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54256 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54257 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54258 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54259 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54260 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54261 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54262 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54263 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54264 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54265 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54266 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54267 * kern/disk.c: Include <pupa/file.h>.
54268 (pupa_print_partinfo): New function.
54269 * kern/dl.c: Include <pupa/env.h>.
54270 (pupa_dl_dir): Variable removed.
54271 (pupa_dl_load): Use the environment variable `prefix' instead of
54272 the variable pupa_dl_dir.
54273 (pupa_dl_set_prefix): Function removed.
54274 (pupa_dl_get_prefix): Likewise.
54275 * kern/i386/pc/init.c: Include <pupa/env.h>.
54276 (pupa_machine_init): Use the environment variable `prefix' instead of
54277 using pupa_dl_set_prefix to set the prefix.
54278 * kern/main.c: Include <pupa/env.h>.
54279 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54280 using pupa_dl_get_prefix to get the prefix.
54281 * kern/misc.c: Include <pupa/env.h>.
54282 (pupa_isdigit): New function.
54283 (pupa_isgraph): Likewise.
54284 (pupa_ftoa): Likewise.
54285 (pupa_vsprintf): Added support for printing values of the type
54286 `double'. Make it possible to format variable output when using
54287 formatting like `%1.2%f'.
54288 (pupa_split_cmdline): New function.
54289 * kern/rescue.c: Include <pupa/env.h>.
54290 (next_word): Removed function.
54291 (pupa_rescue_cmd_prefix): Likewise.
54292 (pupa_rescue_cmd_set): New function.
54293 (pupa_rescue_cmd_unset): New function.
54294 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54295 split the command line instead of splitting it here. Added
54296 support for setting variables using the syntax `foo=bar'. Don't
54297 initialize the prefix command anymore. Initialized the set and
54299 * normal/cmdline.c: Include <pupa/env.h>.
54300 (pupa_tab_complete): Added prototypes for print_simple_completion,
54301 print_partition_completion, add_completion, iterate_commands,
54302 iterate_dev, iterate_part and iterate_dir. Moved code to print
54303 partition information from here to kern/disk.c.
54304 (pupa_cmdline_run): Don't check if the function exists anymore.
54305 * normal/main.c: Include <pupa/env.h>.
54306 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54307 instead of using pupa_dl_get_prefix to get the prefix.
54308 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54309 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54311 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54312 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54313 ((unused))' to silence a gcc warning.
54314 (pupa_vga_setcolor): Likewise.
54315 (debug_command): Changed to match argument parsing
54317 * util/pupa-emu.c: Include <pupa/env.h>.
54318 (options): Added 0's for unused fields to silence a gcc warning.
54320 (main): Use the environment variable `prefix' instead of using
54321 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54322 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54325 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54326 * util/misc.c: Include <malloc.h>.
54327 (pupa_malloc): Rewritten so errors are correctly reported.
54328 (pupa_realloc): Likewise.
54329 (pupa_memalign): Likewise.
54330 (pupa_mm_init_region): Declare unused variables with
54331 `__attribute__ ((unused))' to silence a gcc warning.
54332 * normal/i386/setjmp.S: Remove tab at the end of the file to
54333 silence a gcc warning.
54334 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54335 variables with `__attribute__ ((unused))' to silence a gcc
54337 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54338 local variable i unsigned to silence a gcc warning.
54340 * kern/term.c: Include <pupa/misc.h>.
54341 (pupa_more_lines): New variable.
54342 (pupa_more): Likewise.
54343 (pupa_putcode): When the pager is active pause at the end of every
54345 (pupa_set_more): New function.
54346 * include/pupa/term.h (pupa_set_more): New prototype.
54349 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54351 Now this project is GRUB 2 rather than PUPA. The location of
54352 the CVS repository was moved to GRUB's.
54354 * configure.ac: Use bug-grub as the reporting address.
54355 Use GRUB instead of PUPA.
54356 Change the version number to 1.90.
54358 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54360 * genkernsyms.sh: Updated copyright information.
54361 * genmk.rb: Likewise.
54362 * genmodsrc.sh: Likewise.
54363 * gensymlist.sh: Likewise.
54364 * boot/i386/pc/boot.S: Likewise.
54365 * boot/i386/pc/diskboot.S: Likewise.
54366 * disk/i386/pc/biosdisk.c: Likewise.
54367 * disk/i386/pc/partition.c: Likewise.
54368 * font/manager.c: Likewise.
54369 * fs/ext2.c: Likewise.
54370 * fs/fat.c: Likewise.
54371 * include/pupa/boot.h: Likewise.
54372 * include/pupa/device.h: Likewise.
54373 * include/pupa/disk.h: Likewise.
54374 * include/pupa/dl.h: Likewise.
54375 * include/pupa/elf.h: Likewise.
54376 * include/pupa/err.h: Likewise.
54377 * include/pupa/file.h: Likewise.
54378 * include/pupa/font.h: Likewise.
54379 * include/pupa/fs.h: Likewise.
54380 * include/pupa/kernel.h: Likewise.
54381 * include/pupa/loader.h: Likewise.
54382 * include/pupa/misc.h: Likewise.
54383 * include/pupa/mm.h: Likewise.
54384 * include/pupa/net.h: Likewise.
54385 * include/pupa/normal.h: Likewise.
54386 * include/pupa/rescue.h: Likewise.
54387 * include/pupa/setjmp.h: Likewise.
54388 * include/pupa/symbol.h: Likewise.
54389 * include/pupa/term.h: Likewise.
54390 * include/pupa/types.h: Likewise.
54391 * include/pupa/i386/setjmp.h: Likewise.
54392 * include/pupa/i386/types.h: Likewise.
54393 * include/pupa/i386/pc/biosdisk.h: Likewise.
54394 * include/pupa/i386/pc/boot.h: Likewise.
54395 * include/pupa/i386/pc/console.h: Likewise.
54396 * include/pupa/i386/pc/init.h: Likewise.
54397 * include/pupa/i386/pc/kernel.h: Likewise.
54398 * include/pupa/i386/pc/linux.h: Likewise.
54399 * include/pupa/i386/pc/loader.h: Likewise.
54400 * include/pupa/i386/pc/memory.h: Likewise.
54401 * include/pupa/i386/pc/multiboot.h: Likewise.
54402 * include/pupa/i386/pc/partition.h: Likewise.
54403 * include/pupa/i386/pc/time.h: Likewise.
54404 * include/pupa/i386/pc/vga.h: Likewise.
54405 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54406 * include/pupa/util/getroot.h: Likewise.
54407 * include/pupa/util/misc.h: Likewise.
54408 * include/pupa/util/resolve.h: Likewise.
54409 * kern/device.c: Likewise.
54410 * kern/disk.c: Likewise.
54411 * kern/dl.c: Likewise.
54412 * kern/err.c: Likewise.
54413 * kern/file.c: Likewise.
54414 * kern/fs.c: Likewise.
54415 * kern/loader.c: Likewise.
54416 * kern/main.c: Likewise.
54417 * kern/misc.c: Likewise.
54418 * kern/mm.c: Likewise.
54419 * kern/rescue.c: Likewise.
54420 * kern/term.c: Likewise.
54421 * kern/i386/dl.c: Likewise.
54422 * kern/i386/pc/init.c: Likewise.
54423 * kern/i386/pc/lzo1x.S: Likewise.
54424 * kern/i386/pc/startup.S: Likewise.
54425 * loader/i386/pc/chainloader.c: Likewise.
54426 * loader/i386/pc/linux.c: Likewise.
54427 * loader/i386/pc/multiboot.c: Likewise.
54428 * normal/cmdline.c: Likewise.
54429 * normal/command.c: Likewise.
54430 * normal/main.c: Likewise.
54431 * normal/menu.c: Likewise.
54432 * normal/i386/setjmp.S: Likewise.
54433 * term/i386/pc/console.c: Likewise.
54434 * term/i386/pc/vga.c: Likewise.
54435 * util/console.c: Likewise.
54436 * util/genmoddep.c: Likewise.
54437 * util/misc.c: Likewise.
54438 * util/pupa-emu.c: Likewise.
54439 * util/resolve.c: Likewise.
54440 * util/unifont2pff.rb: Likewise.
54441 * util/i386/pc/biosdisk.c: Likewise.
54442 * util/i386/pc/getroot.c: Likewise.
54443 * util/i386/pc/pupa-mkimage.c: Likewise.
54444 * util/i386/pc/pupa-setup.c: Likewise.
54446 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54448 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54449 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54450 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54451 reading and reset it after reading.
54452 (pupa_ext2_close): Return PUPA_ERR_NONE.
54454 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54456 (struct linux_kernel_header): Add kernel_version and
54458 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54459 pupa_file_read succeeds.
54460 (pupa_rescue_cmd_initrd): Implement.
54462 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54464 * fs/ext2.c (pupa_ext2_label): New function.
54465 (pupa_ext2_fs): Added label.
54466 * fs/fat.c (pupa_fat_label): New function.
54467 (pupa_fat_fs): Added label.
54468 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54470 * kern/misc.c (pupa_strndup): New function.
54471 * include/pupa/misc.h (pupa_strndup): New prototype.
54473 * include/pupa/normal.h: Include <pupa/err.h>.
54474 (pupa_set_history): New prototype.
54475 (pupa_iterate_commands): New prototype.
54476 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54477 <pupa/disk.h>, <pupa/file.h>.
54478 (hist_size): New variable.
54479 (hist_lines): Likewise.
54480 (hist_end): Likewise.
54481 (hist_used): Likewise.
54482 (pupa_set_history): New function.
54483 (pupa_history_get): Likewise.
54484 (pupa_history_add): Likewise.
54485 (pupa_history_replace): Likewise.
54486 (pupa_tab_complete): Likewise.
54487 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54488 completion shows partitionnames while completing partitions, this
54489 feature was suggested by Jeff Bailey.
54490 * normal/command.c (pupa_iterate_commands): New function.
54491 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54492 (pupa_normal_init): Initialize history buffer.
54493 (PUPA_MOD_INIT): Likewise.
54494 (pupa_normal_fini): Free the history buffer.
54495 (PUPA_MOD_FINI): Likewise.
54497 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54500 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54501 * configure.ac [i386]: Check for regparam bug.
54502 (NESTED_FUNC_ATTR) [! i386]: Defined.
54504 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54506 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54507 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54508 (pupa_emu_SOURCES): New variable.
54509 (pupa_emu_LDFLAGS): Likewise.
54510 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54511 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54512 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54513 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54514 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54515 (pupa_jmp_buf): New typedef.
54516 (pupa_setjmp) [PUPA_UTIL]: New macro.
54517 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54518 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54519 (pupa_refresh): New prototype.
54520 * include/pupa/util/getroot.h: New file.
54521 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54523 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54524 (pupa_rescue_cmd_cat): Likewise.
54525 (pupa_rescue_cmd_ls): Likewise.
54526 (pupa_rescue_cmd_testload): Likewise.
54527 (pupa_rescue_cmd_lsmod): Likewise.
54528 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54529 * normal/menu.c (run_menu): Likewise.
54530 * kern/term.c (pupa_cls): Likewise.
54531 (pupa_refresh): New function.
54532 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54533 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54534 * util/console.c: New file.
54536 * util/i386/pc/getroot.c: New file.
54537 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54538 (pupa_putchar): New function.
54539 (pupa_refresh): Likewise.
54540 (xgetcwd): Function moved to ...
54541 (strip_extra_slashes): Likewise.
54542 (get_prefix): Likewise.
54543 * util/i386/pc/getroot.c: ... here.
54544 (find_root_device): Function moved and renamed to...
54545 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54546 Changed all callers.
54547 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54549 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54550 Changed all callers.
54551 * util/misc.c (pupa_memalign): New function.
54552 (pupa_mm_init_region): Likewise.
54553 (pupa_register_exported_symbols): Likewise.
54554 (pupa_putchar): Function removed.
54555 * util/pupa-emu.c: New file.
54557 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54559 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54560 (_multiboot_mod_SOURCES): New variable.
54561 (_multiboot_mod_CFLAGS): Likewise.
54562 * loader/i386/pc/multiboot.c: New file.
54563 * include/pupa/i386/pc/multiboot.h: Likewise.
54564 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54565 (pupa_multiboot_real_boot): New function.
54566 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54567 (pupa_multiboot_real_boot): New prototype.
54568 (pupa_rescue_cmd_multiboot): Likewise
54569 (pupa_rescue_cmd_module): Likewise.
54571 * kern/loader.c (pupa_loader_set): Continue when
54572 pupa_loader_unload_func() fails.
54573 (pupa_loader_unset): New function.
54574 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54576 * kern/misc.c (pupa_stpcpy): New function.
54577 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54579 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54581 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54582 for available extensions.
54584 * include/pupa/i386/pc/time.h: New file.
54585 * kern/disk.c: Include <pupa/machine/time.h>.
54586 (PUPA_CACHE_TIMEOUT): New macro.
54587 (pupa_last_time): New variable.
54588 (pupa_disk_open): Flush the cache when there was a timeout.
54589 (pupa_disk_close): Reset the timer.
54590 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54592 * util/misc.c: Include <sys/times.h>
54593 (pupa_get_rtc): New function.
54595 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54597 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54599 (pupa_ext2_get_file_block): Use blocks member.
54601 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54602 first block. Return -1 instead of pupa_errno on error.
54604 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54606 * README: In the pupa-mkimage example use _chain instead of chain
54607 and ext2 instead of fat.
54608 * TODO: Replace ext2fs with jfs as an example. Add an item for
54609 adding journal playback for ext2fs.
54610 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54611 (pkgdata_MODULES): Added ext2.mod.
54612 (ext2_mod_SOURCES): New variable.
54613 (ext2_mod_CFLAGS): Likewise.
54614 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54615 * include/pupa/misc.h (pupa_strncpy): New prototype.
54616 (pupa_strcat): Likewise.
54617 (pupa_strncmp): Likewise.
54618 * kern/misc.c (pupa_strcat): Enable function.
54619 (pupa_strncpy): New function.
54620 (pupa_strncmp): Likewise.
54621 * fs/ext2.c: New file.
54623 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54624 when the read failed before retrying.
54625 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54626 (_FILE_OFFSET_BITS): Likewise.
54627 * configure.ac: Added AC_SYS_LARGEFILE.
54629 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54631 * genmk.rb (PModule#rule): Make sure to get only symbol names
54632 from the output of nm.
54633 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54635 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54637 I forgot to check in these changes for a long time. This adds
54638 incomplete support for VGA console, and this is still very
54639 buggy. Also, a lot of consideration is required for I18N,
54640 UNICODE, and VGA font issues. Therefore, assume that this is
54641 such that "better than nothing".
54643 * font/manager.c: New file.
54644 * include/pupa/font.h: Likewise.
54645 * include/pupa/i386/pc/vga.h: Likewise.
54646 * term/i386/pc/vga.c: Likewise.
54647 * util/unifont2pff.rb: Likewise.
54649 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54650 (pkgdata_MODULES): Added vga.mod and font.mod.
54651 (vga_mod_SOURCES): New variables.
54652 (vga_mod_CFLAGS): Likewise.
54653 (font_mod_SOURCES): Likewise.
54654 (font_mod_CFLAGS): Likewise.
54656 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54658 * include/pupa/term.h: Include pupa/err.h.
54659 (struct pupa_term): Added init and fini.
54660 Changed the argument of putchar to pupa_uint32_t.
54662 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54663 (pupa_console_real_putchar): New prototype.
54664 (pupa_console_putchar): Removed.
54665 (pupa_console_checkkey): Exported.
54666 (pupa_console_getkey): Likewise.
54668 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54671 * kern/term.c (pupa_term_set_current): Rewritten.
54672 (pupa_putchar): Likewise.
54673 (pupa_putcode): New function.
54675 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54676 (pupa_console_real_putchar): ... this.
54677 (pupa_vga_set_mode): New function.
54678 (pupa_vga_get_font): Likewise.
54680 * normal/command.c: Include pupa/term.h.
54681 (terminal_command): New function.
54682 (pupa_command_init): Register the command "terminal".
54684 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54685 (DISP_UP): Likewise.
54686 (DISP_RIGHT): Likewise.
54687 (DISP_DOWN): Likewise.
54688 (DISP_HLINE): Likewise.
54689 (DISP_VLINE): Likewise.
54690 (DISP_UL): Likewise.
54691 (DISP_UR): Likewise.
54692 (DISP_LL): Likewise.
54693 (DISP_LR): Likewise.
54695 * term/i386/pc/console.c (pupa_console_putchar): New function.
54697 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54699 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54700 FIX. Reverse the path_list.
54702 * include/pupa/normal.h: Export pupa_register_command and
54703 pupa_unregister_command.
54705 * hello/hello.c (pupa_cmd_hello): New module.
54706 * conf/i386-pc.rmk: Added hello.mod.
54708 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54710 * kern/i386/pc/lzo1x.S: New file.
54712 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54713 (compress_kernel): New variable.
54714 (generate_image): Heavily modified to support compressing a
54715 large part of the core image.
54717 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54719 (pupa_util_load_image): New function.
54721 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54722 (pupa_compressed_size): New variable.
54723 (codestart): Enable Gate A20 here.
54724 Decompress the compressed part of the core image.
54725 Rearrange the code to put functions and variables which are
54726 required for initialization in the non-compressed part.
54729 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54732 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54734 * include/pupa/i386/pc/kernel.h
54735 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54736 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54737 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54738 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54739 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54741 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54743 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54744 (Utility#rule): Likewise.
54746 * configure.ac: Check if LZO is available.
54748 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54750 * include/pupa/normal.h: New file.
54751 * include/pupa/setjmp.h: Likewise.
54752 * include/pupa/i386/setjmp.h: Likewise.
54753 * normal/cmdline.c: Likewise.
54754 * normal/command.c: Likewise.
54755 * normal/main.c: Likewise.
54756 * normal/menu.c: Likewise.
54757 * normal/i386/setjmp.S: Likewise.
54759 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54760 (pupa_rescue_cmd_initrd): Likewise.
54762 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54765 * kern/i386/pc/startup.S (translation_table): New variable.
54766 (translate_keycode): New function.
54767 (pupa_console_getkey): Call translate_keycode.
54769 * kern/rescue.c (attempt_normal_mode): New function.
54770 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54771 it failed, print a message.
54773 * kern/mm.c (pupa_real_malloc): Print more information when a
54774 free magic is broken.
54775 (pupa_free): If the first free header is not free actually, set
54778 * kern/main.c (pupa_load_normal_mode): Just load the module
54780 (pupa_main): Don't print the message
54781 "Entering into rescue mode..." here.
54783 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54785 (pupa_rescue_cmd_initrd): Likewise.
54786 (pupa_rescue_cmd_initrd): Likewise.
54788 * include/pupa/symbol.h (FUNCTION): Specify the type.
54789 (VARIABLE): Likewise.
54791 * include/pupa/err.h (pupa_err_t): Added
54792 PUPA_ERR_UNKNOWN_COMMAND.
54794 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54795 (pupa_dl_get_prefix): Likewise.
54797 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54798 Added _chain.mod and _linux.mod instead of chain.mod and
54800 (chain_mod_SOURCES): Renamed to ...
54801 (_chain_mod_SOURCES): ... this.
54802 (chain_mod_CFLAGS): Renamed to ...
54803 (_chain_mod_CFLAGS): ... this.
54804 (linux_mod_SOURCES): Renamed to ...
54805 (_linux_mod_SOURCES): ... this.
54806 (linux_mod_CFLAGS): Renamed to ...
54807 (_linux_mod_CFLAGS): ... this.
54808 (normal_mod_SOURCES): New variable.
54809 (normal_mod_CFLAGS): Likewise.
54810 (normal_mod_ASFLAGS): Likewise.
54812 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54814 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54817 * kern/dl.c (pupa_dl_ref): Refer depending modules
54819 (pupa_dl_unref): Unrefer depending modules recursively.
54820 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54821 a module is unloaded before one depending on that module is
54823 (pupa_dl_unload): Unload depending modules explicitly,
54826 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54828 * include/pupa/i386/pc/linux.h: New file.
54829 * loader/i386/pc/linux.c: Likewise.
54831 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54833 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54834 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54835 of PUPA_CHAINLOADER_BOOT_SECTOR.
54837 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54838 (pupa_linux_prot_size): New variable.
54839 (pupa_linux_tmp_addr): Likewise.
54840 (pupa_linux_real_addr): Likewise.
54841 (pupa_linux_boot_zimage): New function.
54842 (pupa_linux_boot_bzimage): Likewise.
54844 * kern/i386/pc/init.c (struct mem_region): New structure.
54845 (MAX_REGIONS): New macro.
54846 (mem_regions): New variable.
54847 (num_regions): Likewise.
54848 (pupa_os_area_addr): Likewise.
54849 (pupa_os_area_size): Likewise.
54850 (pupa_lower_mem): Likewise.
54851 (pupa_upper_mem): Likewise.
54852 (add_mem_region): New function.
54853 (compact_mem_regions): Likewise.
54854 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54855 the size of the conventional memory and that of so-called upper
54856 memory (before the first memory hole).
54857 Instead of adding each found region to free memory, use
54858 add_mem_region and add them after removing overlaps.
54859 Also, add only 1/4 of the upper memory to free memory. The rest
54860 is used for loading OS images. Maybe this is ad hoc, but this
54861 makes it much easier to relocate OS images when booting.
54863 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
54864 (pupa_enter_rescue_mode): Don't register initrd and module.
54866 * kern/mm.c: Include pupa/dl.h.
54868 * kern/main.c: Include pupa/file.h and pupa/device.h.
54870 * kern/loader.c (pupa_loader_load_module_func): Removed.
54871 (pupa_loader_load_module): Likewise.
54873 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
54876 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
54877 (pupa_linux_tmp_addr): Likewise.
54878 (pupa_linux_real_addr): Likewise.
54879 (pupa_linux_boot_zimage): Likewise.
54880 (pupa_linux_boot_bzimage): Likewise.
54882 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
54883 (pupa_upper_mem): Likewise.
54884 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
54885 module is too dangerous.
54887 * include/pupa/loader.h (pupa_os_area_addr): Declared.
54888 (pupa_os_area_size): Likewise.
54889 (pupa_loader_set): Remove the first argument. Loader doesn't
54890 manage modules or initrd any longer.
54891 (pupa_loader_load_module): Removed.
54893 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
54894 (linux_mod_SOURCES): New variable.
54895 (linux_mod_CFLAGS): Likewise.
54897 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
54899 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
54900 the length of a blocklist correctly.
54902 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
54903 Use ioctl only if the OS file is a block device.
54904 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
54905 not very useful for normal files.
54907 * kern/main.c (pupa_set_root_dev): New function.
54908 (pupa_load_normal_mode): Likewise.
54909 (pupa_main): Call those above.
54911 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
54914 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
54916 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
54918 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
54919 (setup): Configure the installed partition information and the
54922 * loader/i386/pc/chainloader.c (my_mod): New variable.
54923 (pupa_chainloader_unload): New function.
54924 (pupa_rescue_cmd_chainloader): Refer itself.
54925 (PUPA_MOD_INIT): Save its own module in MY_MOD.
54927 * kern/i386/pc/startup.S (install_partition): Removed.
54928 (version_string): Likewise.
54929 (config_file): Likewise.
54930 (pupa_install_dos_part): New variable.
54931 (pupa_install_bsd_part): Likewise.
54932 (pupa_prefix): Likewise.
54933 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
54935 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
54937 (make_install_device): New function.
54938 (pupa_machine_init): Set the dl prefix.
54940 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
54941 (buf): Renamed to ...
54942 (linebuf): ... this.
54943 (pupa_rescue_cmd_prefix): New function.
54944 (pupa_rescue_cmd_insmod): Likewise.
54945 (pupa_rescue_cmd_rmmod): Likewise.
54946 (pupa_rescue_cmd_lsmod): Likewise.
54947 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
54950 * kern/mm.c (pupa_memalign): If failed even after invalidating
54951 disk caches, unload unneeded modules and retry.
54953 * kern/misc.c (pupa_memmove): New function.
54954 (pupa_memcpy): Removed.
54955 (pupa_strcpy): New function.
54956 (pupa_itoa): Made static.
54958 * kern/dl.c (pupa_dl_iterate): New function.
54959 (pupa_dl_ref): Likewise.
54960 (pupa_dl_unref): Likewise.
54961 (pupa_dl_unload): Return if succeeded or not.
54962 (pupa_dl_unload_unneeded): New function.
54963 (pupa_dl_unload_all): Likewise.
54964 (pupa_dl_init): Renamed to ...
54965 (pupa_dl_set_prefix): ... this.
54966 (pupa_dl_get_prefix): New function.
54968 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
54969 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
54970 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54971 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54972 (pupa_install_dos_part): Declared.
54973 (pupa_install_bsd_part): Likewise.
54974 (pupa_prefix): Likewise.
54975 (pupa_boot_drive): Likewise.
54977 * include/pupa/types.h: Fix a typo.
54979 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
54981 (pupa_memmove): Declared.
54982 (pupa_strcpy): Likewise.
54984 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
54985 pupa_mod_init takes one argument, its own module.
54986 (pupa_dl_unload_unneeded): Declared.
54987 (pupa_dl_unload_all): Likewise.
54988 (pupa_dl_ref): Likewise.
54989 (pupa_dl_unref): Likewise.
54990 (pupa_dl_iterate): Likewise.
54991 (pupa_dl_init): Renamed to ...
54992 (pupa_dl_set_prefix): ... this.
54993 (pupa_dl_get_prefix): Declared.
54995 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
54996 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
54998 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
54999 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55001 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55002 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55004 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55006 * util/i386/pc/pupa-setup.c (setup): Define the internal
55007 function find_first_partition_start at the top level, because GCC
55008 3.0.x cannot compile internal functions in deeper scopes
55010 (find_root_device): Use lstat instead of stat.
55011 Don't follow symbolic links.
55012 Fix the path-constructing code.
55014 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55015 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55016 by a BLKGETSIZE ioctl first, because block devices don't fill
55017 the member st_mode of the structure stat on Linux.
55018 [__linux__] (linux_find_partition): Use a temporary buffer
55019 REAL_DEV for the working space. Copy it to DEV before returning.
55020 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55021 buffer cache consistent.
55022 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55023 strncmp. The previous value was merely wrong.
55024 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55026 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55027 FAT size is 12. The previous value was merely wrong.
55029 * kern/main.c (pupa_main): Don't split the starting message from
55032 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55033 LF, because BIOS goes crazy about character attributes in this
55036 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55038 * include/i386/pc/util/biosdisk.h: New file.
55039 * util/i386/pc/biosdisk.c: Likewise.
55040 * util/i386/pc/pupa-setup.c: Likewise.
55042 * Makefile.in (INCLUDE_DISTFILES): Added
55043 include/pupa/i386/pc/util/biosdisk.h.
55044 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55045 directory util/i386/pc.
55046 (install-local): Added a rule for sbin_UTILITIES.
55047 (uninstall): Likewise.
55049 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55051 * util/misc.c (xrealloc): New function.
55052 (pupa_malloc): Likewise.
55053 (pupa_free): Likewise.
55054 (pupa_realloc): Likewise.
55055 (pupa_stop): Likewise.
55056 (pupa_putchar): Likewise.
55058 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55060 * include/pupa/util/misc.h (xrealloc): Declared.
55062 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55064 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55065 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55067 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55068 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55070 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55071 way should be implemented.
55072 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55074 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55075 the size of NAME for safety.
55076 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55079 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55080 (pupa_setup_SOURCES): Likewise.
55082 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55084 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55086 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55087 bunch of pushl's from pusha, because this destroys the return
55090 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55092 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55093 This means that any missing prototypes could be fatal. Also, you
55094 must take care when writing assembly code. See the comments at
55095 the beginning of startup.S, for more details.
55097 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55098 compilation mechanism.
55099 (pupa_chainloader_real_boot): Likewise.
55100 (pupa_biosdisk_rw_int13_extensions): Likewise.
55101 (pupa_biosdisk_rw_standard): Likewise.
55102 (pupa_biosdisk_check_int13_extensions): Likewise.
55103 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55104 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55105 (pupa_get_memsize): Likewise.
55106 (pupa_get_mmap_entry): Likewise.
55107 (pupa_console_putchar): Likewise.
55108 (pupa_console_setcursor): Likewise.
55109 (pupa_getrtsecs): Use pushl instead of push.
55111 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55112 memory instead of the stack for a mmap entry, because some
55113 BIOSes may ignore the maximum size and overflow.
55115 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55117 * genmk.rb (PModule#rule): Compile automatically generated
55118 sources with module-specific CFLAGS as well as other sources.
55120 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55122 * configure.ac: Check ld.
55123 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55124 respectively, before checking endianness and sizes.
55126 * Makefile.in (LD): New variable.
55128 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55130 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55132 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55134 * Changelog: New file.