1 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
3 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
5 * configure.ac: Remove -m64 from checks for -mcmodel=large and
6 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
7 already in TARGET_CFLAGS at this point, and they produce incorrect
8 results when building for x32.
9 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
10 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
11 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
12 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
14 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
16 * configure.ac: Remove several unnecessary semicolons.
18 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
20 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
21 Initialise pend to pacify GCC.
23 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
25 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
28 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
30 * grub-core/term/at_keyboard.c: Retry probing keyboard if
31 scancode setup failed.
33 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
35 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
37 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
39 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
40 safety to avoid triggerring VirtualBox bug.
42 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
44 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
46 Fixes hang on virtualbox.
48 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
50 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
51 kernels whose paths contain regex metacharacters.
52 * util/grub.d/10_kfreebsd.in: Likewise.
53 * util/grub.d/10_linux.in: Likewise.
54 * util/grub.d/20_linux_xen.in: Likewise.
56 Reported by: Heimo Stranner.
58 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
60 * docs/grub-dev.texi (Finding your way around): The build system no
61 longer uses AutoGen directly.
63 2014-06-21 Роман Пехов <roman_pekhov>
65 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
67 2014-06-21 Glenn Washburn <development@efficientek.com>
69 * util/grub-install.c: Fix handling of --disk-module.
71 2014-06-21 Stephane Rochoy <sheda>
73 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
76 2014-06-21 Stephane Rochoy <sheda>
78 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
79 EFI system table physical address.
81 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
83 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
85 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
87 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
89 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
91 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
94 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
96 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
98 Reported by: Yves Blusseau <blusseau@zetam.org>.
100 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
102 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
103 GDT in conventional memory.
105 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
107 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
108 UUID. Other parts of grub-mkconfig tolerate these, they were
109 previously allowed here up to commit
110 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
111 practice when the system has active LVM snapshots.
112 Fixes Ubuntu bug #1287436.
114 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
116 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
117 "logical_volumes" block a little more accurately.
119 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
121 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
123 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
125 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
128 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
130 Replace few instances of memcmp/memcpy in the code that should be
131 grub_memcmp/grub_memcpy.
133 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
135 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
138 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
140 btrfs: fix get_root key comparison failures due to endianness
142 * grub-core/fs/btrfs.c (get_root): Convert
143 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
145 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
147 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
149 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
150 no longer to be forgiving of trailing spaces on grub-probe output
151 lines, which among other things means that util/grub.d/10_linux.in
152 no longer detects LVM. To fix this, make grub-probe's output
153 delimiting more consistent. As a bonus, this improves the coverage
156 Fixes Debian bug #735935.
158 * grub-core/disk/cryptodisk.c
159 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
160 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
162 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
164 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
165 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
166 probe_mods): Adjust for extra user-data arguments.
167 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
168 probe_abstraction): Use configured delimiter. Update callers.
170 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
172 * util/grub-probe,c (options): Make -0 work again (broken by
174 (main): Simplify logic.
176 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
178 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
180 2014-03-26 Fu Wei <fu.wei@linaro.org>
182 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
184 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
186 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
187 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
189 Suggested by: Markus Müller.
191 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
193 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
194 if E820 failed to return any regions.
196 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
198 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
199 tables for low memory calculations.
201 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
203 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
206 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
208 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
211 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
213 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
216 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
218 Add bootpath parser for open firmware.
220 It enables net boot even when there is no bootp/dhcp server.
222 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
223 and call it at grub_ieee1275_net_config_real.
224 * grub-core/kern/ieee1275/init.c: Add bootpath to
225 grub_ieee1275_net_config.
226 * include/grub/ieee1275/ieee1275.h: Likewise.
229 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
231 Add grub_env_set_net_property function.
233 * grub-core/net/bootp.c: Remove set_env_limn_ro.
234 * grub-core/net/net.c: Add grub_env_set_net_property.
235 * include/grub/net.h: Likewise.
237 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
239 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
241 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
243 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
245 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
247 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
248 7 seconds to recover if last poweroff was bad.
250 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
252 * grub-core/disk/ahci.c: Properly handle transactions with no
255 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
257 * grub-core/disk/ahci.c: Add safety cleanups.
259 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
261 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
262 slots to avoid pointing to uninited area.
264 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
266 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
267 enabling busmaster for the end.
269 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
271 * util/grub-mkfont.c: Downgrade warnings about unhandled features
274 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
276 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
278 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
280 * .gitignore: add missing files and .exe variants.
282 2014-01-26 Mike Gilbert <floppym@gentoo.org>
284 grub-install: support for partitioned partx loop devices.
286 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
287 /dev/loopX as being the parent of /dev/loopXpY.
289 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
291 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
292 Ensure that pointers are inited to NULL and that pointers are not
295 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
297 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
298 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
299 * include/grub/emu/misc.h: ... and here.
300 * include/grub/err.h: ... and here.
301 * util/import_gcry.py: ... and here (in files g10lib.h).
303 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
305 * util/grub-mkimage.c: Make prefix argument mandatory.
307 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
309 Fix several translatable strings.
311 Suggested by: D. Prévot.
313 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
315 * util/grub-install.c: List available targets.
317 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
319 * util/grub-install.c (write_to_disk): Add an info message.
321 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
323 * Makefile.am: Allow adding extra files to generated Windows ZIP
324 archive by setting GRUB_WINDOWS_EXTRA_DIST.
326 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
328 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
329 Show detected font path in summary.
331 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
333 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
335 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
336 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
337 * grub-core/net/tftp.c (tftp_open): Likewise.
338 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
340 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
342 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
345 In net/net.c there is a while (1) that only exits if there is a stop
346 condition and more then 10 packages or if there is no package received.
348 If GRUB is idle and enter in this loop, the only condition to leave is
349 if it doesn't have incoming packages. In a network with heavy traffic
352 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
354 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
355 EPERM when modifying kern.geom.debugflags. It is only a problem for
356 such things as installing GRUB to the MBR, in which case there'll be
357 an error later anyway, not for opening files during tests.
359 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
361 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
362 instead of MOD_FILES.
363 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
364 both with and without .exe.
365 * grub-core/genemuinitheader.sh: Same.
367 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
369 * util/grub-install.c: Fix a typo.
371 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
373 * grub-core/normal/main.c (read_config_file): Buffer config file.
376 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
378 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
379 symbolic link to directory. It fails in Msys shell on Windows 2003.
381 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
383 * Makefile.am (default_payload.elf): Add modules
384 multiboot cbmemc linux16 gzio echo help.
386 2014-01-18 Mike Gilbert <floppym@gentoo.org>
388 * Makefile.util.def: Link grub-ofpathname with zfs libs.
390 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
392 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
395 Reported by: Andrey Borzenkov.
397 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
399 * include/grub/misc.h: Move macros for compiler features to ...
400 * include/grub/compiler.h: ... new file.
401 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
402 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
403 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
404 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
405 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
406 * grub-core/video/capture.c: Include <grub/misc.h>.
407 * include/grub/command.h: Include <grub/misc.h>.
408 * include/grub/dl.h: Include <grub/misc.h>.
409 * include/grub/procfs.h: Include <grub/misc.h>.
411 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
413 * configure.ac: Add support for BUILD_EXEEXT and use it ...
414 * Makefile.am: ... here.
415 * Makefile.util.def: ... and here.
416 * grub-core/Makefile.am: ... and here.
418 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
420 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
421 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
423 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
425 * grub-core/term/terminfo.c: Recognize keys F1-F12.
427 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
429 * configure.ac: Add support for BUILD_LDFLAGS.
430 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
431 * grub-core/Makefile.am: ... and here.
432 * INSTALL: Mention BUILD_LDFLAGS.
434 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
436 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
438 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
440 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
443 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
445 * NEWS: Add few missing entries.
447 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
449 * util/grub.d/00_header.in (make_timeout): Use && rather than test
451 * util/grub.d/10_windows.in: Likewise.
452 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
454 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
457 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
459 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
460 redundant preprocessor conditional.
462 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
464 * Makefile.util.def (grub-macbless): Change mansection to 8.
466 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
468 * grub-core/loader/arm64/linux.c: correctly set device path end length.
470 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
472 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
473 arm64 to comply with EFI specification. Also use grubaa64.efi for
475 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
477 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
479 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
480 on MinGW-64 when compiling for 32 bits.
482 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
484 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
486 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
488 * NEWS: Add few missing entries. Correct existing ones.
490 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
492 Don't abort() on unavailable coreboot tables if not running on coreboot.
494 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
496 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
499 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
501 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
502 mention of it from 2.02.
504 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
506 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
508 As these functions are used on pre-ARMv6 CPUs as well we don't want
509 to make assembler assume that architecture is higher than default one.
511 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
513 * NEWS: First draft of 2.02 entry.
515 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
517 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
518 * docs/grub.texi (Getting the source code): Likewise.
520 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
522 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
525 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
527 * configure.ac: Set version to 2.02~beta2.
529 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
531 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
533 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
535 * util/grub-probe.c: Improve help message and simplify list handling.
537 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
539 Fix buffer overflow in grub_efi_print_device_path.
541 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
543 Show SATA device path.
545 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
547 Revert grub-file usage in grub-mkconfig.
549 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
551 Make newly-created files other than grub.cfg world-readable.
553 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
555 * util/grub.d/00_header.in: Improve compatibility with old config.
557 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
559 Make rijndael.c respect aliasing rules.
561 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
563 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
565 Make grub_util_device_is_mapped_stat available in grub-emu core.
567 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
569 Add -Qn to TARGET_CFLAGS if it's supported.
570 Fixes compilation on cygwin.
572 Reported by: Andrey Borzenkov.
573 Suggested by: Andrey Borzenkov.
575 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
577 Save TARGET_CC version in modinfo.sh.
579 Suggested by: Andrey Borzenkov.
581 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
583 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
584 follow the same algorithm to avoid method mismatch. Don't assume
585 DMRAID- UUID to mean full disk but instead check that mapping is linear.
587 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
589 Declare GRUB_EFI_VENDOR_APPLE_GUID.
591 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
593 Dump type and vendor specific data when printing device path.
595 2013-12-23 Colin Watson <cjwatson@debian.org>
597 Update some documentation to refer to Git rather than Bazaar.
599 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
601 * po/README: Likewise. Fix spelling mistake.
603 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
605 Don't distribute config.h.
607 * Makefile.am (platform_HEADERS): Move to ...
608 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
609 failure when building from a distributed tarball.
611 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
613 * configure.ac: Fix spelling.
614 * grub-core/commands/parttool.c: Fix grammar.
615 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
616 Embedding Partition".
618 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
620 ARM64 support for grub-mkrescue.
622 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
624 Install modinfo.sh to keep build information around.
626 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
628 * grub-core/modinfo.sh.in: Add build config information.
630 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
632 ARM64 grub-file and grub-mkconfig support.
634 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
636 Remove leftover options defines.
638 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
640 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
642 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
644 * grub-core/loader/arm64/linux.c: Add missing bracket.
646 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
648 Add arm64-efi recognition to grub-file.
650 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
652 Fix ia64-efi recognition in grub-file.
654 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
656 Recognize raspberry pi kernel in grub-file.
658 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
660 Enable cache on ARM U-Boot port.
662 Without it the port is reidiculously slow.
664 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
666 Fix ARM cache maintainance.
668 More code was converted from ASM to C for easier handling.
670 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
672 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
675 Suggested by: Leif Lindholm.
677 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
679 * util/grub-mkconfig.in: Fix Xen platform conditions.
681 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
683 * util/grub-mkrescue.c: Split single help message string in several
684 strings used in previous shell version.
686 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
688 Add arm64 Linux loader.
690 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
692 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
694 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
696 Add module loading and parsing boot time checkpoints.
698 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
700 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
703 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
705 * util/grub-mkconfig.in: Skip non-executable files.
707 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
709 Workaround buggy timer in raspberry pie by using our own timer
712 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
714 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
715 Increase to 16 MiB to allow loading the whole memdisk.
717 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
719 Fix ARM Linux Loader on non-FDT platforms.
721 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
723 * configure.ac: Choose link format based on host_os on emu.
725 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
727 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
729 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
731 * grub-core/kern/emu/main.c: Build fix for emu.
733 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
735 Build fixes for argp.h with older gcc.
737 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
739 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
742 Suggested by: David Prévot.
744 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
746 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
748 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
750 Enable -Wformat=2 if it's supported.
752 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
754 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
755 -Wmissing-declarations if supported.
757 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
759 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
760 u32 as both HFS and HFS+ have 32-bit inodes.
762 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
764 * include/grub/misc.h (grub_strtol): Fix overflow.
766 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
768 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
769 as return type in both conditionals.
771 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
773 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
774 to use uint8_t for color.
776 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
778 * util/misc.c (grub_util_get_image_size): Check for overflow.
780 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
782 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
785 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
787 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
788 for pointer difference.
790 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
792 * util/import_gcry.py: Skip sample keys.
794 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
796 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
798 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
800 * configure.ac: Remove duplicate warning arguments.
802 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
804 Add missing static qualifiers.
806 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
808 Add missing includes.
810 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
812 Inline printf templates when possible to enable format checking.
814 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
816 * include/grub/crypto.h: Don't discard const attribute.
818 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
820 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
823 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
825 * grub-core/lib/crypto.c: Don't discard const attribute.
827 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
829 * grub-core/lib/disk.c: Fix potential overflow.
831 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
833 * grub-core/lib/arg.c: Don't discard const attribute.
835 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
837 * grub-core/kern/dl.c: Don't discard const attribute.
839 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
841 * grub-core/kern/disk.c: Fix potential overflow.
843 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
845 * conf/Makefile.common: Don't include non-existing directory
846 grub-core/lib/libgcrypt-grub/include.
848 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
850 Clarify several translatable messages.
852 2013-12-21 David Prévot <david@tilapin.org>
854 Correct some translatable strings.
856 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
858 * util/grub-mkrescue.c: Rephrase mkrescue description.
860 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
861 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
863 Clarify several translatable messages.
865 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
867 Be more verbose about some configure failures.
869 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
871 Fix various build problems on GNU/Hurd.
873 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
876 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
877 [__GNU__]: Add prototype.
878 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
879 long int using %ld rather than %d.
881 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
883 * util/grub-install.c: Inform user about install platform.
885 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
887 * configure.ac: Set version to 2.02~beta1.
889 2013-12-18 Allen Pais <allen.pais@oracle.com>
890 2013-12-18 Bob Picco <bob.picco@oracle.com>
892 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
894 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
896 Make grub_zlib_decompress handle incomplete chunks.
900 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
902 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
905 2013-12-18 Aleš Nesrsta <starous@volny.cz>
907 * grub-core/disk/usbms.c: Retry on unknown errors.
908 Reuse the same tag on retries.
910 2013-12-18 Aleš Nesrsta <starous@volny.cz>
912 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
914 Avoid confusing them with already completed transfers.
916 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
920 Due to XEN bug it prevents Linux boot. Remove it at least, until
923 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
925 * po/exclude.pot: Add 2 missing excludes.
927 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
929 Add missing license section in macbless.mod and macho.mod.
931 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
933 Allow compilation without thumb-interwork as long as no thumb is
934 involved or only thumb2 is used.
936 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
938 Use -Wl,--no-relax rather than -mno-relax for uniformity.
940 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
942 * INSTALL: Update comment as to why sparc64 clang isn't usable.
944 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
946 Add __attribute__ ((sysv_abi)) only if it's really needed.
948 Some compilers don't support it.
950 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
952 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
954 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
956 Remove -Wold-style-definition.
958 Not very useful and interaction of it with regexp depends on GCC
961 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
963 Make grub_util_get_windows_path_real static.
965 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
967 * grub-core/commands/fileXX.c: Silence cast-align.
968 * grub-core/loader/i386/xen_fileXX.c: Likewise.
970 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
972 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
973 rather than LL suffix.
975 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
977 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
979 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
981 * grub-core/loader/arm/linux.c: Use common initrd functions.
983 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
985 Decrease number of strings to translate.
987 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
989 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
991 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
993 Mark strings for translation and add remaining ones to exclude list.
995 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
997 * util/grub-file.c (main): Fix sizeof usage.
999 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1001 Silence spurious warning.
1003 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1005 Remove check_nt_hiberfil as it's been superseeded by file command.
1007 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1009 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1011 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1013 Implement syslinux parser.
1015 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1017 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1019 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1021 Support cpuid --pae.
1023 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1025 Use AT keyboard on Yeeloong 3A.
1027 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1029 Add Yeeloong 3A reboot and halt.
1031 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1033 Add Radeon Yeeloong 3A support.
1035 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1037 Add bonito 3A support.
1039 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1041 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1043 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1045 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1047 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1049 * grub-core/loader/macho.c: Fix compilation on non-i386.
1051 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1053 Add missing format_arg attribute to check that printf with translated
1054 messages has proper arguments.
1056 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1058 Use grub_xasprintf to format translated error messages containing
1061 2013-12-17 Jon McCune <jonmccune@google.com>
1063 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1065 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1067 Unify message for unsupported relocation.
1069 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1071 Mark miscompile error for translation.
1073 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1075 Use %I64 and not %ll when using OS printf if compiling for windows.
1077 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1079 Update Mac code to match new register_efi prototype.
1081 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1083 Implement better integration with Mac firmware.
1085 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1087 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1090 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1092 Include serial module in default_payload.elf.
1094 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1096 Add explicit thumb interwork bx in asm files.
1098 Shouldn't matter for armv >= 5 but let's be safe.
1100 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1102 Implement Truecrypt ISO loader.
1104 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1106 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1108 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1110 Implement grub_file tool and use it to implement generating of config
1113 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1115 Change to v1 xen grants.
1117 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1119 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1121 GRUB relied on %ebx being preserved across hypercall which isn't true.
1123 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1125 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1127 GRUB relied on %rdi being preserved across hypercall which isn't true.
1129 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1131 Implement XEN VFB support.
1133 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1135 Remove grub_bios_interrupt on coreboot.
1137 It's not used currently and cannot be used safely currently.
1139 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1141 Update exclude.pot and mark few strings for translation.
1143 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1145 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1147 Reported by: Jon McCune
1149 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1151 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1152 Add verbose information which firmware directories were tried.
1154 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1156 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1157 function to optionally redirect all three standard descriptors.
1158 Redefine grub_util_exec, grub_util_exec_redirect and
1159 grub_util_exec_redirect_null to use it.
1160 * include/grub/emu/exec.h: Define it.
1161 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1162 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1163 Use grub_util_exec_redirect_all to redirect error to NULL.
1165 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1167 * grub-core/tests/sleep_test.c: Silence spurious warning.
1169 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1171 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1172 linker trying to "fixup" the code.
1174 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1176 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1178 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1180 Add support for converting PE+ to Elf64.
1182 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1184 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1186 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1188 Remove practice of assigning random const pointers to device id.
1190 This is not required as cache code already checks driver id as well.
1192 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1194 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1197 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1199 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1200 mingw or cygwin as API already matches.
1202 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1204 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1206 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1208 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1211 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1213 Handle X86_64_PC64 relocation.
1215 Those are generated by some cygwin compilers.
1217 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1219 Determine the need for mingw-related stubs at compile time rather than
1220 using not very significant $target_os.
1222 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1224 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1225 may not work with ELF.
1227 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1229 Use unix functions for temporary files and special files on cygwin.
1231 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1233 Define functions explicitly rather than using --defsym in tests
1234 whenever possible. Respect locality in remaining cases.
1236 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1238 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1240 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1242 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1243 unlikely errors when getting EFI variables and make exhaustive search
1244 for all BootNNNN variables to find matching one.
1246 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1248 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1250 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1252 New functional test for sleep function.
1254 This test allows to check sleep without qemu. Keep qemu version as
1255 well as functional test won't notice if all clocks are going too fast
1258 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1260 Add explicit sysv_abi on amd64 asm routines.
1262 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1264 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1267 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1269 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1272 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1274 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1277 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1279 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1281 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1283 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1286 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1288 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1290 In case of quick removal of loopback and adding another one it may
1291 get same ID, confusing the cache system.
1293 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1295 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1298 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1300 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1301 than converting to long.
1303 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1305 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1307 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1309 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1310 than almost useless pointer.
1312 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1314 Add gcc_struct to all packed structures when compiling with mingw.
1316 Just "packed" doesn't always pack the way we expect.
1318 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1320 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1322 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1324 * util/grub-pe2elf.c: Fix handling of .bss.
1326 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1328 Implement windows flavour of EFI install routines.
1330 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1332 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1334 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1336 Change grub_install_register_efi interface to pass GRUB device.
1338 This allows grub_install_register_efi to request partition info
1341 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1343 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1345 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1347 Do not use TCHAR string functions as they are not available on cygwin.
1349 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1351 Workaround windows bug when querying EFI system partition parameters.
1353 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1355 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1358 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1360 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1362 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1364 Make i386-* other than i386-pc compileable under cygwin.
1366 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1368 Fix definition of grub_efi_hard_drive_device_path. Take care that
1369 existing code would work even if by some reason bogus definition is
1370 used by EFI implementations.
1372 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1374 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1376 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1378 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1381 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1383 * util/config.c: Remove trailing newline from distributor in simple
1386 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1388 * include/grub/efi/api.h: Rename protocol and interface to avoid
1391 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1393 * .gitignore: add .exe variants. add missing files. remove few outdated
1396 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1398 * grub-core/osdep/exec.c: Use unix version on cygwin.
1400 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1402 Implement multiboot2 EFI BS specification.
1404 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1406 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1407 Crash happened only in some cases like a string starting at the
1408 half of the screen of same length.
1410 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1412 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1413 with EFI counterpart.
1415 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1417 Propagate the EFI commits to x86-efi specific parts.
1419 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1421 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1423 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1425 Introduce grub_efi_packed_guid and use it where alignment is not
1428 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1430 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1431 unaligned u16 rather than u8[2].
1433 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1435 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1436 for relocation range.
1438 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1440 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1441 non-function pcrel21b relocation. It happens with .text.unlikely
1444 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1446 * make MAX_USABLE_ADDRESS platform-specific
1447 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1449 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1451 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1453 2013-12-09 Jon McCune <jonmccune@google.com>
1455 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1456 in grub-install and grub-bios-setup for x86 BIOS targets.
1458 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1460 Add missing compile and link options for sparc64-emu.
1462 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1464 Implement sparc64 trampolines (needed for sparc64-emu).
1466 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1468 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1469 range of R_SPARC_HI22.
1470 Implement R_SPARC_LM22.
1472 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1474 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1475 Do not explicitly check for symbol table as it's already checked in
1476 platform-independent layer.
1478 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1480 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1481 on ia64 as __clear_cache is a dummy on ia64.
1483 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1485 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1486 Do not explicitly check for symbol table as it's already checked in
1487 platform-independent layer.
1489 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1491 * util/grub-mkconfig.in: Add missing newline to output.
1493 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1495 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1496 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1498 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1500 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1501 compilation with GCC <= 4.2.
1502 * grub-core/kern/emu/argp_common.c: Likewise.
1504 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1506 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1507 right platform rather than leaking to sparc64-emu.
1509 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1511 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1512 But ensure that the variables in question are indeed unsigned.
1514 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1516 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1518 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1520 Remove grub_memalign on emu.
1522 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1524 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1525 truncate incomplete lines but instead flushes them.
1527 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1529 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1530 and implement windows variant.
1532 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1534 Fix mips-emu compilation.
1536 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1538 * configure.ac: Check for freetype library usability.
1540 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1544 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1546 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1548 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1550 * docs/grub.texi (Environment): Update color_normal and color_highlight
1551 defaults (light-gray instead of white).
1553 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1555 * grub-core/normal/main.c (INIT): Set default color to light-gray
1556 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1557 and apparently BIOS defaults.
1559 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1561 Transform -C option to grub-mkstandalone to --core-compress available
1562 in all grub-install flavours.
1564 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1566 Merge GRUBFS and GRUB_FS variables.
1568 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1570 Revert commit 69ca97c820, it caused failures when using OS device name
1571 in grub-install. Instead just strip off parenthesis in grub-install
1572 if (hdX) was passed.
1574 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1576 * util/grub-install.c (push_partmap_module): Add helper to convert
1577 partmap names to module names and use it in probe_mods(). Fixes
1578 failure to find partmap modules in diskfilter case.
1580 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1582 * configure.ac: Make unifont mandatory on coreboot.
1584 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1586 * configure.ac: Skip unifont 6.3 pcf and bdf.
1588 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1590 * Makefile.am: Remove partial font files if generation failed.
1592 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1594 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1596 * include/grub/util/misc.h: Define it ...
1597 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1599 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1601 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1604 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1606 Don't add -mlong-calls when compiling with clang.
1608 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1610 * configure.ac: Fix a typo.
1612 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1614 Revamp relocation handling.
1616 Move more code to common dl.c. Add missing veneers for arm and arm64.
1617 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1619 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1621 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1623 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1625 * INSTALL: Raise minimum python version to 2.6.
1626 * gentpl.py: Use python3-style print function.
1628 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1630 * util/grub-install.c: Mention Boot* variable.
1632 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1634 * grub-core/osdep/linux/hostdisk.c
1635 (grub_util_find_partition_start_os): Initialise start to avoid
1636 spurious compiler warning.
1638 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1640 On Linux, read partition start offsets from sysfs if possible, to
1641 cope with block device drivers that don't implement HDIO_GETGEO.
1642 Fixes Ubuntu bug #1237519.
1644 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1646 (sysfs_partition_start): Likewise.
1647 (grub_util_find_partition_start_os): Try sysfs_partition_start
1650 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1652 * grub-core/kern/fdt.c: Update struct size when adding node.
1654 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1656 Handle unaligned .bss on sparc64.
1658 Current code improperly assumes that both __bss_start and _end are
1659 aligned to 8-bytes. Eliminating this assumption and explicitly align
1662 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1664 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1665 so it doesn't land in the middle of loaded image.
1667 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1669 * configure.ac: Move all warning options that may be absent in
1670 gcc >= 3.1 to optional.
1672 Note: while this allows to compile with older GCC, official requirements
1673 remain the same and no support for older GCC.
1675 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1677 Copying the themes directory in grub-shell isn't
1678 parallel-test-friendly and breaks on the second test when the source
1679 directory is read-only (as in "make distcheck"). Instead, add a
1680 hidden --themes-directory option to grub-mkrescue et al, and use it
1683 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1685 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1686 as it's no longer necessarry.
1688 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1690 * configure.ac: Allow compilation with older GCC for ARM.
1692 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1694 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1695 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1698 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1700 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1702 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1704 Pass font config to config.h and not by TARGET_CFLAGS as adding
1705 arguments doesn't work if TARGET_CFLAGS is specified on command
1708 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1710 * configure.ac: Add -Wvla if compiler supports it.
1712 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1714 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1715 Remove variable length arrays.
1716 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1718 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1720 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1722 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1724 * include/grub/types.h: Declare all byteswaps as inline functions
1725 except compile-time ones.
1727 Solves variable shadowing in constructions like
1728 cpu_to_le (le_to_cpu(x) + 1).
1730 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1732 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1734 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1736 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1739 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1741 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1742 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1744 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1746 * grub-core/Makefile.core.def (setjmp): Distribute
1749 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1751 Add a new timeout_style environment variable and a corresponding
1752 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1753 controls hidden-timeout handling more simply than the previous
1754 arrangements, and pressing any hotkeys associated with menu entries
1755 during the hidden timeout will now boot the corresponding menu entry
1758 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1759 generates a warning, and if it shows the menu it will do so as if
1760 the second timeout were not present. Other combinations are
1761 translated into reasonable equivalents.
1763 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1765 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1767 * util/config.c: Add missing pointer adjustment.
1768 Reported by: qwertial
1770 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1772 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1773 directly, not via `cpu' link, to fix libgrub.pp generation.
1775 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1779 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1781 * docs/grub.texi (sleep): Document exit codes.
1783 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1785 Ensure that -mno-unaligned-access or some equivalent option is used.
1787 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1789 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1792 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1794 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1796 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1798 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1799 builds, since we don't have an EPS version of font_char_metrics.png.
1800 Add leading dot to image extension per the Texinfo documentation.
1802 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1804 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1805 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1806 * util/grub-gen-widthspec.c: Likewise.
1807 * util/grub-mkfont.c: Likewise.
1809 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1811 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1812 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1813 failed to install on (hdX).
1814 * util/grub-setup.c (get_device_name): Remove, not needed after
1817 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1819 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1821 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1823 * util/grub-fstest.c: Remove variable length arrays.
1825 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1827 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1829 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1831 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1832 computing crc32 rather than handling with md fundtions directly.
1834 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1836 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1837 checking fwstart.img rather than md fundtions directly.
1839 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1841 * util/grub-mkrescue.c (main): Check that fread succeeded.
1843 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1845 * conf/Makefile.common: Remove -mexplicit-relocs and
1846 -DUSE_ASCII_FALLBACK on yeeloong.
1848 -DUSE_ASCII_FALLBACK is already added by font snippets.
1849 -mexplicit-relocs isn't needed is compiler/assemblera are
1850 configured properly.
1851 If they're not we shouldn't attempt to fix it by ourselves.
1852 Binary compare between before and after shows no difference.
1854 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1856 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
1857 sources in dependencies directly.
1859 This was the only instance of "library" in core config. A bug was
1860 reported that -fno-stack-protector wasn't passed to it. Instead of
1861 figuring out why it failed just remove this construction used
1864 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1866 * grub-core/osdep/unix/password.c (grub_password_get): Check that
1869 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
1871 * docs/grub.texi (ls): Fix command description in case of a device name
1874 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1876 Eliminate variable length arrays in grub_vsnprintf_real.
1878 A bit tricky because this function has to continue to work without
1879 heap for short strings. Fixing prealloc to 32 arguments is reasonable
1880 but make all stack references use 32-bit offset rather than 8-bit one.
1881 So split va_args preparsing to separate function and put the prealloc
1884 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1886 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
1887 Fixes build for windows.
1889 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1891 * gentpl.py: Don't generate platform-dependent conditionals for
1892 platform-independent targets.
1894 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1896 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
1897 references to mdadm from otherwise generic code.
1898 (grub_util_exec_pipe): Likewise.
1899 (grub_util_exec_pipe_stderr): Likewise.
1900 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
1901 This function calls vgs, not mdadm; adjust variable names
1904 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1906 Generate Makefile.*.am directly from gentpl.py, eliminating the use
1907 of Autogen. The Autogen definitions files remain intact as they
1908 offer a useful abstraction.
1910 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1912 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
1913 into no-ops, and use it in programs that copy files but do not need
1914 to take special care to sync writes (grub-mknetdir, grub-rescue,
1917 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
1919 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
1920 than hardcoding /usr/local/bin/xorriso.
1922 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1924 Add PCI command activation to all PCI drivers as required for coreboot
1925 and maybe some other firmwares.
1927 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1929 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
1930 and non-Apple variants of efiemu compile.
1932 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
1934 * configure.ac: Add explicit check for linking format of
1935 efiemu64; save it as EFIEMU64_LINK_FORMAT.
1936 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
1937 hardcoding linking format.
1939 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1941 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
1944 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
1945 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1947 Add a --locale-directory option to grub-install and related tools.
1949 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
1950 --locale-directory option.
1951 (enum grub_install_options): Add
1952 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1953 * util/grub-install-common.c (grub_install_help_filter): Handle
1954 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
1955 (grub_install_parse): Likewise.
1956 (get_localedir): New function to check for a user-provided option
1957 before trying grub_util_get_localedir.
1958 (copy_locales): Use get_localedir rather than
1959 grub_util_get_localedir. Handle differing locale directory layouts.
1960 (grub_install_copy_files): Likewise.
1962 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1964 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
1965 Don't rely on PATH_MAX.
1967 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1969 * grub-core/genmoddep.awk: Use more portable && rather than and.
1971 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1973 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
1974 an object after data. While it doesn't seem right solution, it
1975 works well enough and OSX isn't main compilation platform.
1977 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1979 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
1980 While it doesn't seem right solution, it works well enough and
1981 OSX isn't main compilation platform.
1983 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1985 * configure.ac: Add -static to LDFLAGS when using apple linker to
1986 prevent it from pulling in dynamic linker.
1988 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1990 Apple assembly doesn't handle symbol arithmetic well. So define an
1991 offset symbol in boot.S and use it.
1993 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
1995 Apple assembly doesn't handle symbol arithmetic well. So instead
1996 of getting addres of kernel_sector + 4 define kernel_sector_high.
1997 It also makes code more readable.
1999 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2001 With Apple assembly in .macro environvemnt you have to use $$ instead
2002 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2003 to $$x on Apple and to $x on everything else.
2005 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2007 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2010 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2012 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2013 and non-Apple. This instruction is shorter and faster,
2014 so no reason not to use it on both.
2016 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2018 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2019 .text when compiling for Apple.
2021 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2023 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2025 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2027 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2028 %dx restore the probe worked on non-existant drive. Reorganize the
2029 code a little bit to free 2 bytes necessary for push/pop.
2031 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2033 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2034 Add missing cast to silence warning.
2036 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2038 * util/grub-install.c (update_nvram): Support --no-nvram flag
2041 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2043 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2045 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2047 * util/garbage-gen.c: Add missing include of sys/time.h.
2049 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2051 Don't add -mflush-func if it's not supported by compiler.
2053 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2055 Move common BIOS/coreboot memory map declarations to
2056 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2058 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2060 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2062 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2064 * INSTALL: Document why older clang versions aren't appropriate.
2066 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2068 * INSTALL: Document about clang for mips.
2070 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2072 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2075 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2077 Add *-xen to the list of grub-install-common platforms.
2079 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2081 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2084 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2086 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2088 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2090 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2091 with -mcmodel=large.
2093 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2095 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2096 range-checking for 32-bit quantities.
2098 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2100 * configure.ac: Compile with -fPIC when compiling with clang on
2103 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2105 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2106 when compiling with clang.
2108 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2110 clang emits calls to abort () under some unknown conditions.
2111 Export abort () when compiling with clang.
2113 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2115 * docs/grub-dev.texi: Document stack and heap sizes.
2117 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2119 * include/grub/i386/pc/memory.h: Decrease
2120 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2121 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2122 The binary doesn't change (checked). It's more to better reflect actual
2125 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2127 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2128 at compile time that enough of scratch size is available.
2130 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2132 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2133 Previously we misaligned stack by 8 in startup.S and compensated
2134 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2135 right behaviour is to align stack in startup.S and keep it aligned
2136 in callwrap.S. startup.S part was committed few commits before. This
2137 takes care of callwrap.S.
2138 Reported by: Gary Lin.
2140 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2142 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2143 .data and .bss. May happen if compiler and assembly use different
2146 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2148 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2151 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2153 Add support for a new magic symbol _gp_disp on mips to handle PIC
2156 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2158 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2160 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2162 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2163 when rest of GRUB is compiled for hisher stepping. Instead use
2164 .set mips3/.set mips1 around cache and sync opcodes.
2166 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2168 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2169 do essentially the same thing, do it in similar way.
2171 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2173 * util/grub-mkrescue.c (main): If a source directory is not
2174 specified, read platform-specific files from subdirectories of
2175 pkglibdir, not pkgdatadir.
2177 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2179 * grub-core/normal/progress.c: Remove unused file.
2181 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2183 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2186 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2188 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2191 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2193 * coreboot.cfg: Add missing file.
2195 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2197 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2199 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2201 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2202 selectively skipping systems.
2204 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2206 * Makefile.util.def (grub-mkimage): Add
2207 grub-core/osdep/aros/config.c to extra_dist.
2208 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2209 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2210 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2211 grub-core/gnulib-no-gets.diff.
2213 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2215 Add automated filesystem checking based on scripts I've used now for
2216 quite some time locally. Most of the test require root so they are
2217 skipped when run without necessarry privelegies.
2219 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2221 * util/grub-install.c (main): Adjust info messages to match
2222 installed paths of grub-bios-setup and grub-sparc64-setup.
2224 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2226 * util/grub-install-common.c (copy_locales): Consistently use
2227 grub_util_get_localedir () rather than LOCALEDIR.
2228 (grub_install_copy_files): Likewise.
2230 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2232 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2233 16-byte boundary, as required by the x86-64 ABI, before calling
2234 grub_main. In some cases, GCC emits code that assumes this
2235 alignment, which crashes if not aligned. The EFI firmware is also
2236 entitled to assume that stack alignment without checking.
2238 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2240 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2241 4k page boundaries as expected by firmware rather than 1k
2243 (grub_mmap_malign_and_register): Likewise.
2245 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2247 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2248 fragmentation 512M is enough.
2250 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2252 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2253 pointer to 32K. This is the size of cache element which is the most
2254 common allocation >1K. This way the pointer is always around blocks
2255 of 32K and so we keep performance while decreasing fragmentation.
2257 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2259 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2260 current memory when allocating large chunks. This significantly
2261 decreases memory fragmentation.
2263 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2265 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2267 * tests/lzocompress_test.in: Skip if lzop is not installed.
2268 * tests/xzcompress_test.in: Skip if xz is not installed.
2270 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2272 * util/grub-mkrescue.c (main): Fix typo.
2274 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2276 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2277 clock frequency to 200 MHz,
2279 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2281 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2283 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2285 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2286 Load config file from (cbfsdisk)/etc/grub.cfg.
2288 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2290 * util/grub-install-common.c (grub_install_copy_files): Fix module
2291 destination directory.
2293 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2295 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2296 files have not been built.
2298 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2300 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2301 Handle errors from mkstemp.
2302 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2304 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2306 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2307 on primary master on pseries.
2309 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2311 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2312 already loaded. This saves memory needed for tests,
2314 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2316 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2319 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2321 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2324 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2326 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2327 master since with some combinations of qemu and firmware only primary
2328 IDE channel is available.
2330 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2332 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2333 low-memory platforms where we don't have enough memory for them.
2334 * grub-core/tests/videotest_checksum.c: Likewise.
2336 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2338 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2339 already loaded. This saves memory needed for tests,
2341 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2343 Fix handling of install lists.
2345 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2347 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2349 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2351 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2352 the devices before accessing them.
2354 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2356 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2359 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2361 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2363 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2365 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2366 (grub_file_close): Free file->name.
2368 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2370 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2371 (grub_load_public_key): Likewise.
2372 (grub_verify_signature_real): Likewise.
2373 (grub_cmd_verify_signature): Likewise.
2375 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2377 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2380 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2382 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2383 (grub_longjmp): Restore r31.
2384 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2386 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2388 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2389 modules to be in line with make_image_abs.
2391 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2393 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2395 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2397 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2399 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2401 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2403 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2404 to leave some memory to firmware.
2406 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2408 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2409 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2410 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2413 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2415 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2416 now needs full arguments.
2418 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2420 * util/grub-mkrescue.c (main): Add trailing \n in
2421 .disk_label.contentDetails to be in line with previous shell script.
2423 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2425 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2427 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2429 * util/grub-install-common.c (grub_install_parse): Recognize
2430 --compress=none like shell script did.
2432 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2434 * include/grub/misc.h: Replace check for __sparc64__ with one for
2435 __sparc__ as __sparc64__ isn't actually defined.
2437 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2439 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2440 counterpart of fixing the naming of escc ports.
2442 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2444 * util/grub-install-common.c (platforms): Fix the order of entries and
2445 remove useless field val.
2447 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2449 * util/grub-install.c: Add new option --no-bootsector to skip
2450 installing of bootsector. Accept --grub-setup=/bin/true as
2451 backwards-compatible synonym.
2453 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2455 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2456 order of qsort arguments (number of elements vs. element size).
2458 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2460 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2461 the function of these files exceeds what can be sanely handled in shell
2462 in posix-comaptible way. Also writing it in C extends the functionality
2463 to non-UNIX-like OS and minimal environments.
2465 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2467 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2468 compiling to thumb2.
2469 * grub-core/kern/arm/cache_armv7.S: Likewise.
2470 * grub-core/lib/arm/setjmp.S: Likewise.
2472 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2474 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2475 in grub_uboot_syscall
2477 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2479 Decrease stack usage in lexer.
2481 We have only 92K of stack and using over 4K per frame is wasteful
2483 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2484 as macros so that compiler would remove useless structure on stack.
2485 Better solution would be to fix flex not to put this structure on
2486 the stack but flex is external program.
2488 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2490 Decrease stack usage in signature verification.
2492 We have only 92K of stack and using over 4K per frame is wasteful
2494 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2496 (grub_verify_signature_real): Likewise.
2498 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2500 Decrease stack usage in mdraid 0.9x.
2502 We have only 92K of stack and using over 4K per frame is wasteful
2504 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2507 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2509 Decrease stack usage in BtrFS.
2511 We have only 92K of stack and using over 4K per frame is wasteful
2513 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2516 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2518 Decrease stack usage in JFS.
2520 We have only 92K of stack and using over 4K per frame is wasteful
2522 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2523 stack. Note: this function is recursive.
2524 (grub_jfs_read_inode): Read only part we care about.
2526 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2528 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2531 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2533 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2535 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2537 * docs/grub.texi (Environment): Document cmdpath.
2539 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2541 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2542 Remove "unused" attribute from arguments, they are used.
2544 2013-11-15 Colin Watson <cjwatson@debian.org>
2546 * .gitignore: Only ignore grub-mk* at the top level.
2548 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2550 * util/grub-reboot.in (usage): Fix a typo.
2552 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2554 Replace libgcc version of ctz with our own.
2556 On upcoming arm64 port libgcc ctz* are not usable in standalone
2557 environment. Since we need ctz* for this case and implementation is
2558 in C we may as well use it on all concerned platforms.
2560 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2562 * configure.ac: Probe for linking format rather than guessing it based
2565 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2567 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2568 "1" prior to handoff.
2570 Reported by: M A Young.
2572 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2574 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2577 Reported by: M A Young.
2579 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2581 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2582 compilation on NetBSD.
2584 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2586 * acinclude.m4: Don't add -P on initial nm test.
2588 Note: even though this patch postdates Andrey's it bears 14 Nov as
2589 date due to timezone difference.
2591 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2593 * grub-core/Makefile.core.def (signature_test): Add missing
2596 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2598 * util/grub-install_header: Set localedir here, since this file is
2600 * util/grub-install.in: Remove setting of localedir.
2601 * util/grub-mkrescue.in: Likewise.
2603 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2605 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2607 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2609 * configure.ac: Move nm checks to the end.
2610 Call grub_PROG_NM_WORKS.
2611 * acinclude.m4: New check grub_PROG_NM_WORKS.
2612 Use $TARGET_CFLAGS -c when compiling test binary.
2614 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2616 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2619 2013-11-14 Matthew Garrett <mjg@redhat.com>
2621 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2622 cmdpath to firmware directory.
2624 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2626 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2627 at the start of second iteration.
2629 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2631 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2633 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2635 * Makefile.am (default_payload.elf): New target for easier coreboot
2638 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2640 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2641 clang (not necessarry with -no-integrated-as).
2642 * include/grub/symbol.h [__arm__]: Likewise.
2644 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2646 * configure.ac: Use -no-integrated-as on arm with clang.
2647 * INSTALL: Mention ARM compilation with clang.
2649 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2651 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2654 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2656 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2657 code for indirect block handling.
2659 Saves 185 bytes on compressed image.
2661 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2665 * Makefile.am: Remove build-grub-* in make clean.
2667 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2669 New files to gitignore.
2671 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2672 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2674 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2676 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2678 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2680 * .gitignore: fix rules for .dep* and add *.a post git migration
2682 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2684 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2687 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2689 * grub-core/kern/misc.c: Don't redirect divisions in the
2691 * include/grub/misc.h: Likewise.
2693 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2695 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2696 systems that require checking the return value of write.
2698 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2700 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2701 efibootmgr quiet when --debug is not used, rather than when it is.
2703 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2705 * gentpl.py (define_macro_for_platform_dependencies): Remove
2706 first (and thus unused) of two definitions for this function.
2707 (platform_dependencies): Likewise.
2709 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2711 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2712 functions, we only need to check this for the target, not the host.
2713 * configure.ac (grub_apple_cc): Likewise.
2715 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2717 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2718 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2719 asm to stay in arm even if surrounding is thumb.
2721 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2723 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2724 helper functions are needed for thumb.
2726 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2728 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2729 level / 3 division explicitly unsigned. Saves few bytes.
2731 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2733 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2735 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2737 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2740 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2742 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2743 grub_uboot_boot_data to asm part.
2745 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2747 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2749 (grub_uboot_syscall): Save/restore r9 and align stack.
2751 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2753 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2755 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2757 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2758 occurencies with END.
2760 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2762 * util/grub-editenv.c (help_filter, argp): Document how to delete
2763 the whole environment block.
2764 Reported by Dan Jacobson. Fixes Debian bug #726265.
2766 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2768 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2771 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2773 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2774 increment/decrement.
2776 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2778 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2779 compiling with clang.
2781 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2783 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2786 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2788 Redirect all divisions to grub_divmod64.
2790 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2792 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2794 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2796 Add missing includes of loader.h.
2798 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2800 * configure.ac: Allow disabling themes.
2802 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2804 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2806 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2808 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2809 until it becomes operational.
2811 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2813 * grub-core/Makefile.core.def (legacy_password_test): Disable
2814 on platforms where no legacycfg is compiled.
2815 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2816 load legacy_password_test.
2818 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2820 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2822 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2824 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2826 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2828 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2829 strict-aliasing warning.
2830 (fsync): Silence cast warning.
2832 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2834 * grub-core/commands/verify.c: Remove variable length arrays.
2835 Load gcry_dsa/gcry_rsa automatically.
2837 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2839 * grub-core/tests/signature_test.c: New test.
2841 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2843 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2846 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2848 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2849 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2851 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2853 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2855 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2857 * grub-core/fs/proc.c: Allow \0 in proc files.
2859 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2861 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
2863 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2865 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
2867 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2869 * grub-core/fs/ext2.c: Remove variable length arrays.
2871 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2873 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
2876 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2878 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
2879 * grub-core/disk/cryptodisk.c: Likewise.
2880 * grub-core/disk/geli.c: Likewise.
2881 * grub-core/disk/luks.c: Likewise.
2883 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2885 * grub-core/tests/legacy_password_test.c: New test.
2886 * grub-core/commands/legacycfg.c: Remove variable length arrays.
2888 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2890 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
2892 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2894 * grub-core/tests/pbkdf2_test.c: New test.
2896 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2898 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
2900 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2902 * grub-core/io/lzopio.c: Remove variable length arrays.
2904 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2906 * include/grub/crypto.h: Add maximums on hash size and cipher block
2909 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2911 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
2913 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2915 * grub-core/tests/xnu_uuid_test.c: New test.
2917 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2919 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
2922 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2924 * grub-core/commands/hashsum.c: Remove variable length arrays.
2926 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2928 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
2930 * tests/grub_func_test.in: Increase memory allocation.
2932 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2934 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
2935 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
2938 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2940 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
2941 (grub_util_get_fd_size_os): ...this.
2942 (grub_hostdisk_flush_initial_buffer): New empty function.
2944 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2946 * grub-core/gensyminfo.sh.in: Handle the case of portable output
2947 without --defined-only.
2949 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2951 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
2952 rip-relative addressing in prologue.
2954 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2956 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
2957 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
2959 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2961 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2962 Add missing semicolon.
2964 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2966 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
2968 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2970 * configure.ac: Check for lzma.h for enabling liblzma and allow
2973 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2975 Add missing includes of loader.h.
2977 2013-11-11 Fam Zheng <famcool@gmail.com>
2979 * util/grub.d/30_os-prober.in: Add minix entry.
2981 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2983 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
2984 right buffer for temporary load.
2986 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2988 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
2990 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2992 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
2995 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2997 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
2999 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3001 (LzmaDec_InitDicAndState): Make static.
3003 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3005 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3007 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3009 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3011 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3013 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3015 * docs/grub-dev.texi: Replace bzr references with git ones.
3017 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3019 * docs/grub.texi (Simple configuration): Remove reference to
3020 grub-reboot from saved default entry description - grub-default
3021 does not use it anymore.
3023 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3025 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3028 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3030 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3032 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3034 Fix grub_machine_fini bitrot.
3036 Reported by: Glenn Washburn.
3038 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3040 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3042 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3044 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3046 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3049 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3051 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3052 Add -march=core2 when testing compile of efiemu64.
3054 Thanks Andrey Borzenkov for spotting this.
3056 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3058 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3059 XEN PV environment and load kernels.
3061 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3063 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3064 * grub-core/loader/multiboot_mbi2.c: Likewise.
3066 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3068 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3071 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3073 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3075 Tested by: Denis 'GNUtoo' Carikli.
3077 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3079 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3081 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3083 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3084 Use to get rounded angle rather than truncated.
3086 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3088 * grub-core/term/serial.c: Add option for enabling/disabling
3089 RTS/CTS flow control.
3091 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3093 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3096 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3098 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3099 Use grub_fatal rather than divide by zero.
3100 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3102 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3104 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3106 (grub_fixed_fsf_divide): Likewise.
3108 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3110 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3111 division by-zero and senseless negative divisions.
3113 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3115 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3116 division by-zero and senseless negative divisions.
3117 (circprog_set_property): Don't accept negative num_ticks.
3119 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3121 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3122 division by-zero and senseless negative divisions.
3124 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3126 * configure.ac: Use elf_*_fbsd on kfreebsd.
3128 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3130 * grub-core/tests/div_test.c: New test.
3132 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3134 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3135 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3136 * grub-core/gfxmenu/view.c: Likewise.
3137 * grub-core/video/fb/video_fb.c: Introduce new functions:
3138 grub_video_set_area_status, grub_video_get_area_status,
3139 grub_video_set_region, grub_video_get_region.
3140 * grub-core/video/bochs.c: Likewise.
3141 * grub-core/video/capture.c: Likewise.
3142 * grub-core/video/video.c: Likewise.
3143 * grub-core/video/cirrus.c: Likewise.
3144 * grub-core/video/efi_gop.c: Likewise.
3145 * grub-core/video/efi_uga.c: Likewise.
3146 * grub-core/video/emu/sdl.c: Likewise.
3147 * grub-core/video/radeon_fuloong2e.c: Likewise.
3148 * grub-core/video/sis315pro.c: Likewise.
3149 * grub-core/video/sm712.c: Likewise.
3150 * grub-core/video/i386/pc/vbe.c: Likewise.
3151 * grub-core/video/i386/pc/vga.c: Likewise.
3152 * grub-core/video/ieee1275.c: Likewise.
3153 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3154 * include/grub/video.h: Likewise.
3155 * include/grub/video_fb.h: Likewise.
3156 * include/grub/fbfill.h: Updated render_target structure.
3157 grub_video_rect_t viewport, region, area
3158 int area_offset_x, area_offset_y, area_enabled
3159 * include/grub/gui.h: New helper function
3160 grub_video_bounds_inside_region.
3161 * docs/grub-dev.texi: Added information about new functions.
3163 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3165 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3168 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3170 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3172 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3174 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3176 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3177 simple division on arm and ia64.
3179 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3181 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3184 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3186 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3188 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3190 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3191 prefix symbol, not @.
3193 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3195 * INSTALL: Add note about older gcc and clang.
3197 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3199 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3201 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3203 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3204 NULL pointer dereference.
3206 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3208 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3211 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3213 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3216 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3218 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3220 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3221 * grub-core/disk/geli.c (ascii2hex): Likewise.
3223 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3225 * configure.ac: Run linker tests without -Werror.
3226 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3227 Change all occurences of -static-libgcc resp -lgcc to
3228 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3230 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3232 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3234 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3236 Allow compiling with clang (not really supported though).
3238 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3240 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3241 Add -mrtd -mregparm=3 on i386 when not using clang.
3242 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3244 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3246 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3248 * grub-core/lib/reed_solomon.c: Likewise.
3249 * include/grub/i386/gdb.h: Likewise.
3250 * include/grub/i386/pc/int.h: Likewise.
3251 * include/grub/i386/pc/pxe.h: Likewise.
3252 * include/grub/ieee1275/ieee1275.h: Likewise.
3254 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3256 Import libgcrypt 1.5.3.
3258 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3260 * configure.ac: Don't add -Wcast-align on x86.
3262 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3264 * configure.ac: Add -freg-struct-return on all platforms that
3267 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3269 * acinclude.m4: Use -Werror on parameter tests.
3270 * configure.ac: Likewise.
3272 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3274 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3276 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3278 * configure.ac: Check that -malign-loops works rather than assuming that
3279 either -falign-loops or -malign-loops work.
3281 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3283 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3285 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3287 * configure.ac: Prevent cflags leaking to subsequent tests by always
3288 resetting cflags to target_cflags in target tests.
3290 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3292 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3295 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3297 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3299 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3301 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3303 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3305 * grub-core/normal/cmdline.c (grub_cmdline_get):
3306 Remove nested functions.
3308 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3310 * tests/test_sha512sum.in: Make it work on emu.
3312 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3314 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3316 (grub_bidi_line_logical_to_visual): Likewise.
3318 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3320 Remove vestiges of -Wunsafe-loop-optimisations.
3322 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3323 -Wno-unsafe-loop-optimisations.
3324 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3326 * grub-core/io/gzio.c: Likewise.
3327 * grub-core/script/parser.y: Likewise.
3328 * grub-core/script/yylex.l: Likewise.
3329 * util/grub-mkfont.c: Likewise.
3331 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3333 * util/grub-mkfont.c (process_cursive): Remove nested function.
3335 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3337 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3338 (grub_boot_time): Likewise.
3340 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3342 * include/grub/symbol.h (FUNCTION): Use @function rather than
3344 (VARIABLE): Likewise.
3346 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3348 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3350 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3352 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3353 (parse_dhcp_vendor): Likewise.
3355 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3357 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3359 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3361 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3362 Define after defining type and not before.
3364 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3366 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3368 (grub_gcm_decrypt): Likewise.
3369 (algo_decrypt): Likewise.
3370 (grub_zfs_decrypt_real): Transform error type.
3372 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3374 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3376 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3378 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3379 (grub_usbms_cbi_reset): Likewise.
3380 (grub_usbms_bo_reset): Likewise.
3381 (grub_usbms_reset): Likewise.
3382 (grub_usbms_attach): Likewise.
3383 (grub_usbms_transfer_cbi): Likewise.
3385 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3387 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3388 "checksum = checksum;".
3390 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3392 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3395 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3397 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3400 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3402 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3404 (grub_ehci_fini_hw): Likewise.
3405 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3407 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3409 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3410 return grub_usb_err_t for cosistency. All users updated.
3412 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3414 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3415 assigning to itself.
3417 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3418 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3420 Issue separate DNS queries for ipv4 and ipv6
3422 Adding multiple questions on a single DNS query is not supportted by
3423 most DNS servers. This patch issues two separate DNS queries
3424 sequentially for ipv4 and then for ipv6.
3426 Fixes: https://savannah.gnu.org/bugs/?39710
3428 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3429 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3430 * (grub_net_dns_lookup): Now using separated dns packages.
3431 * (grub_cmd_nslookup): Add error condition.
3432 * (grub_cmd_list_dns): Print DNS option.
3433 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3434 --prefer-ipv4, and --prefer-ipv6.
3435 * include/grub/net.h (grub_dns_option_t): New enum.
3436 * (grub_net_network_level_address): option added.
3438 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3440 * grub-core/video/fb/video_fb.c: Merge two blit functions
3443 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3445 * grub-core/term/terminfo.c: Add sequences for home and end.
3447 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3449 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3452 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3454 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3457 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3459 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3460 e-mail by Per Öberg.
3462 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3464 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3467 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3469 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3471 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3473 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3475 * docs/grub.texi: Document usage of menuentry id.
3477 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3479 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3481 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3483 * grub-core/commands/i386/nthibr.c: New command.
3485 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3487 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3489 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3491 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3494 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3496 Support GRUB_DISABLE_SUBMENU config.
3498 Inspired by patch from Prarit Bhargava.
3500 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3502 * docs/grub.texi: Mention RSA support.
3504 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3506 * grub-core/commands/verify.c: Add RSA support.
3508 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3510 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3511 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3512 device is known to be ATAPI.
3514 2013-11-03 Mike Frysinger <vapier>
3516 * configure.ac: Don't add target-prefix.
3518 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3520 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3523 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3525 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3526 if language is English.
3528 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3530 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3532 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3534 * configure.ac: Don't add -m32/-m64 on emu.
3538 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3539 broken linux headers.
3541 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3543 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3545 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3547 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3548 Reed-Solomon recovery if more than half of redundancy info is 0.
3550 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3552 * util/grub-mount.c: Handle symlinks to directories.
3554 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3556 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3557 find_file recursively for symlink.
3559 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3561 * tests/util/grub-shell.in: Copy themes.
3563 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3565 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3567 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3569 * configure.ac: Use 0x8000 for address instead of 8000.
3571 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3573 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3576 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3578 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3581 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3583 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3585 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3587 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3588 file_progress_read_hook.
3589 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3591 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3593 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3596 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3598 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3600 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3602 Rewrite blocklist functions in order to get progress when
3603 reading large extents and decrease amount of blocklist hook calls.
3605 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3607 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3610 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3612 Support --base-clock for serial command to handle weird cards with
3613 non-standard base clock.
3615 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3617 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3619 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3620 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3621 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3622 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3623 + strcpy rather than strncpy.
3625 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3627 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3628 (check_pool_label): Likewise. Fixes overflow.
3629 (nvlist_find_value): Fix comparison.
3631 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3633 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3634 more appropriate functions.
3636 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3638 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3641 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3643 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3645 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3647 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3650 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3652 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3654 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3656 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3657 (initialize_tables): reset tl and td to NULL after freeing.
3659 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3661 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3663 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3665 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3668 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3670 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3672 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3674 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3677 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3679 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3680 a page in protected space.
3682 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3684 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3685 allocate space for zero-sized modules.
3687 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3689 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3691 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3693 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3695 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3697 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3698 safeguards. Fixes a crash with i386/pc/console.c.
3700 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3702 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3703 and grub_hostfs_init.
3705 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3707 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3708 windows method on other platforms without good stat as well.
3710 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3712 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3714 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3716 Make / in btrfs refer to real root, not the default volume.
3717 Modify mkrelpath to work even if device is mounted with subvolid option.
3719 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3721 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3723 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3726 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3728 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3731 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3733 * docs/autoiso.cfg: New file.
3735 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3737 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3738 COND_GRUB_PE2ELF conditions.
3740 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3742 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3743 "vnd", "rd" and "fd" disks.
3745 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3747 Move grub_disk_write out of kernel into disk.mod.
3749 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3751 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3754 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3756 * grub-core/kern/misc.c (grub_abort): Make static
3758 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3760 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3761 transform invalid unicode codepoints.
3763 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3765 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3768 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3770 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3772 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3774 Consolidate cpuid code.
3776 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3778 Move cpuid code to cpuid.h and TSC code to tsc.c.
3780 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3782 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3784 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3786 * util/grub-mkconfig.in: Replace $0 with $self.
3787 * util/grub-reboot.in: Likewise.
3788 * util/grub-set-default.in: Likewise.
3790 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3792 * docs/osdetect.cfg: New file.
3794 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3796 * tests/util/grub-shell.in: Add new --debug option.
3798 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3800 * tests/test_unset.in: New test.
3802 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3804 * tests/test_sha512sum.in: New test.
3806 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3808 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3809 * include/grub/misc.h: Remove strncat.
3810 * grub-core/lib/posix_wrap/string.h: Likewise.
3812 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3814 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3815 Try to handle more than 0xFFFF packets.
3816 Reported by: Bernhard Übelacker <bernhardu>.
3817 He also spotted few overflows in first version of this patch.
3819 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3821 * tests/date_unit_test.c: New test.
3823 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3825 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3826 of first three years after start of validity of unixtime.
3828 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3830 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3831 division as the one making more sense.
3832 (update_screen): Likewise.
3833 (complete): Likewise.
3835 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3837 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3839 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3841 Make char and string width grub_size_t rather than grub_ssize_t.
3843 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3845 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3847 (grub_history_replace): Likewise.
3849 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3851 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3854 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3856 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
3859 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3861 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
3862 Use unsigned divisions rather than signed variants.
3864 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3866 * grub-core/video/readers/png.c (grub_png_convert_image): Use
3867 unsigned arithmetics.
3870 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3872 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
3874 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3876 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
3877 rather than signed one.
3878 (recovery): Likewise.
3880 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3882 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
3884 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3886 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
3889 2013-10-25 Jon McCune <jonmccune@google.com>
3891 * docs/grub.texi: Cleanup security documentation around signatures.
3893 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3895 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
3897 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3899 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
3902 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3904 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
3905 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
3906 functions when compiling for kernel.
3908 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3910 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
3911 unsigned long long when using %llu.
3913 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3915 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
3916 terminal after updating progress.
3918 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3920 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
3921 argument. We don't disable Gate A20 in this code.
3923 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3925 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
3926 Conceptually based on change in branch "vbe-on-coreboot".
3928 2013-10-24 Robert Millan <rmh@gnu.org>
3930 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
3931 numeric constants with their symbolic equivalent.
3932 Taken from branch "vbe-on-coreboot".
3934 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3936 * docs/grub.texi: Fix ordering and use pxref rather than xref.
3938 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3940 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
3941 divmod64 for offset division.
3943 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3945 Rename .bzrignore to .gitignore. Add "*.o" rule.
3947 * .bzrignore: Renamed to...
3948 * .gitignore: ...this.
3950 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3952 Add new progress module that displays the load progress of files.
3954 * grub-core/lib/progress.c: New file.
3955 * grub-core/Makefile.core.def (progress): New module.
3956 * grub-core/kern/file.c (grub_file_open): File name added.
3957 * (grub_file_read): Progress hook added.
3958 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
3959 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
3960 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
3961 * include/grub/file.h (struct grub_file): Add progress module members.
3962 * include/grub/term.h (struct grub_term_output): Likewise.
3963 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
3964 Terminal velocity added.
3965 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
3966 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
3967 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
3968 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
3969 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
3970 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
3971 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
3972 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
3973 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
3974 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
3975 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
3976 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
3978 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
3980 Verify signatures of signatures unless --skip-sig is specified.
3982 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3984 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3987 Saves 70 bytes on compressed image.
3989 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3991 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
3994 Saves 10 bytes on compressed image.
3996 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
3998 * grub-core/kern/misc.c (grub_isprint): Move to ...
3999 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4001 Saves 20 bytes on compressed image due to remving exporting.
4003 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4005 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4007 Saves 5 bytes on compressed image.
4009 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4011 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4014 Saves 379 bytes on compressed image.
4016 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4018 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4020 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4022 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4024 Saves 40 bytes on compressed image.
4026 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4028 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4029 mask rather than 64-bit type.
4031 Saves 20 bytes on compressed image.
4033 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4035 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4036 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4038 Saves 273 bytes on compressed image.
4040 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4042 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4043 variable length arrays.
4045 Saves 50 bytes on compressed image.
4047 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4049 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4051 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4053 * grub-core/fs/ufs.c: Remove variable length arrays.
4055 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4057 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4059 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4061 * grub-core/fs/zfs.c: Remove variable length arrays.
4062 Reduces zfs.mod by 160 bytes (208 compressed).
4064 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4066 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4068 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4070 * grub-core/net/arp.c: Remove variable length arrays.
4071 * grub-core/net/bootp.c: Likewise.
4072 * grub-core/net/dns.c: Likewise.
4073 * grub-core/net/icmp6.c: Likewise.
4074 * grub-core/net/net.c: Likewise.
4076 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4078 * grub-core/fs/ntfs.c: Remove variable length arrays.
4079 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4082 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4084 * grub-core/fs/hfs.c: Remove variable length arrays.
4085 Reduces hfs.mod by 8 bytes (52 compressed).
4087 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4089 * grub-core/fs/udf.c: Remove variable length arrays.
4090 Increases udf.mod by 128 bytes (but decreases by 13 when
4093 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4095 * grub-core/fs/iso9660.c: Remove variable length arrays.
4096 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4099 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4101 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4102 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4105 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4107 * grub-core/fs/xfs.c: Remove variable length arrays.
4108 Reduces xfs.mod by 40 bytes (43 compressed).
4110 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4112 * grub-core/fs/fshelp.c: Remove variable length arrays.
4113 Reduces fshelp.mod by 116 bytes (23 compressed).
4115 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4117 * grub-core/normal/completion.c: Remove variable length arrays.
4118 * grub-core/normal/menu_entry.c: Likewise.
4120 Reduces normal.mod by 496 bytes.
4122 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4124 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4125 by 356 bytes (158 compressed).
4127 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4129 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4130 by 364 bytes (169 compressed).
4132 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4134 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4135 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4136 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4138 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4140 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4141 bitmasks to small structures of size chosen to fit in registers.
4143 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4145 * conf/Makefile.common: Use -freg-struct-return on i386. This
4146 decreases code size and improves performance.
4148 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4150 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4152 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4154 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4156 Simplify expressions to save around 256 bytes in kernel.img.
4157 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4159 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4161 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4162 Use GRUB_UTIL_FD_O_* rather than O_*.
4164 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4166 Add haiku-specific functions.
4168 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4170 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4172 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4174 Move stat () and device mode checking into OS-dependent files as
4175 long as performance doesn't suffer.
4177 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4179 Split make_system_path_relative_to_its_root into separate file
4180 relpath.c from getroot.c as it's common between unix and haiku
4181 but otherwise haiku doesn't use any functions from unix getroot.c.
4183 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4185 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4187 (grub_util_is_special_file): Likewise.
4189 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4191 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4192 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4194 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4196 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4197 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4199 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4201 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4202 (load_image): Likewise.
4204 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4206 * util/grub-render-label.c: Move backend part to ...
4207 * util/render-label.c: ... here.
4209 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4211 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4212 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4214 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4216 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4218 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4220 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4221 CD-ROM in case when it's declared as having subpartitions.
4223 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4225 Don't add -lm on haiku.
4227 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4229 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4232 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4234 * configure.ac: Use -melf_*_haiku as target on haiku.
4236 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4238 * Makefile.util.def: Add util/setup.c to extra_dist.
4240 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4242 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4243 unknown types through.
4245 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4247 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4248 (grub_util_check_char_device): Likewise.
4249 * include/grub/emu/getroot.h: Likewise.
4251 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4253 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4254 memset rather than inline static function.
4256 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4258 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4259 not doing embedded decompressor.
4261 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4263 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4265 * grub-core/kern/disk.c: Likewise.
4266 * grub-core/kern/misc.c: Likewise.
4267 * include/grub/parser.h: Likewise.
4268 * include/grub/script_sh.h: Likewise.
4269 * include/grub/zfs/zfs.h: Likewise.
4271 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4273 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4275 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4277 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4278 defined before trying to use it.
4280 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4282 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4285 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4287 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4288 Use __unused__ rather than __used__ on gcc < 3.2.
4290 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4292 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4294 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4296 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4298 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4300 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4302 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4303 * include/grub/emu/misc.h: Likewise.
4305 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4307 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4310 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4312 * grub-core/tests/checksums.h: Regenerated due to progress bar
4313 get_minimal_size changes.
4315 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4317 Added `tr' command support.
4319 * grub-core/commands/tr.c: New file.
4320 * grub-core/Makefile.core.def: Build rules for new module.
4322 * tests/grub_cmd_tr.in: New test.
4323 * Makefile.util.def: Build rules for new test.
4325 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4327 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4329 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4331 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4332 * docs/gurb.texi: Likewise.
4334 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4336 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4337 Pixmap highlighted section with east and west slices was displayed
4338 incorrectly due to negative width of the central slice.
4340 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4342 * docs/grub.texi: Graphical options information update.
4343 Removed outdated. Updated current. Inserted missed.
4345 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4347 * docs/grub.texi: Mention few new platform-specific commands.
4349 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4351 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4352 currently used so this doesn't really have any effect.
4353 Reported by: Douglas Ray <dougray>
4355 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4357 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4358 compilation but prevents gcc from displaying messages in non-Latin
4360 * conf/Makefile.common: Likewise.
4362 2013-10-16 Hiroyuki YAMAMORI
4364 Handle Japanese special keys.
4365 Reported by: Hiroyuki YAMAMORI.
4366 Codes supplied by: Hiroyuki YAMAMORI.
4368 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4370 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4372 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4374 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4375 * docs/grub.texi: Likewise.
4377 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4379 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4380 value in case of incomplete read.
4381 (grub_util_fd_write): Likewise.
4383 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4385 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4387 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4389 * util/grub-editenv.c (create_envblk_file): More from here ...
4390 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4392 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4394 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4395 canonicalize file name before doing the rest.
4397 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4399 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4402 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4404 Define grub_util_is_directory/regular/special_file and
4405 use OS-dependent versions rather than to rely on stat().
4407 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4409 * util/grub-mkimage.c: Move backend part to ...
4410 * util/mkimage.c: ... here.
4412 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4414 Allow compilation with mingw64 albeit with warnings due to lack of
4417 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4418 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4419 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4420 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4422 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4424 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4426 Remove leftover references to some of the system headers.
4428 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4430 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4433 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4435 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4438 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4440 Split out blocklist retrieving from setup.c to
4441 grub-core/osdep/blocklist.c and add windows implementation since
4442 generic version doesn't work on NTFS on Windows due to aggressive
4445 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4447 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4450 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4452 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4453 Cut tailing newline. Remove arbitrary limitation. Always use
4454 grub_util_tchar_to_utf8.
4456 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4458 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4459 * tests/printf_unit_test.c (printf_test): Add %% tests.
4460 Reported by: Paulo Flabiano Smorigo.
4462 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4464 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4467 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4469 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4470 use nvlist_lookup_string and don't use nvlist_print.
4472 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4474 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4475 closedir to handle filename charset translation.
4477 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4479 * include/grub/emu/hostdisk.h: Move file operations to
4480 * include/grub/emu/hostfile.h: ... here.
4482 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4484 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4487 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4489 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4491 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4493 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4494 and remove export.h.
4496 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4498 * grub-core/kern/emu/error.c: Removed.
4499 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4500 explicitly as it's already in libgnu.a.
4502 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4504 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4505 config-util.h include.
4507 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4509 Split emunet into platform-dependent and GRUB-binding parts. Keep
4510 platform-dependent part in kernel for easy access to OS functions.
4512 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4514 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4517 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4519 * grub-core/osdep/windows/emuconsole.c: New file.
4521 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4523 * conf/Makefile.extra-dist: Add osdep/*/init.c
4525 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4527 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4529 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4531 * util/grub-probe.c (probe): Separate different drives in hint-str
4532 by spaces and not newlines.
4533 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4535 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4537 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4540 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4542 Pass-through unknown E820 types. It required reorganisation of mmap
4545 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4547 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4549 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4551 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4554 2013-10-14 qwertial <qwertial>
4556 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4558 2013-10-14 Jon McCune <jonmccune@google.com>
4560 * docs/grub.texi: Document new signatures possibility.
4562 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4564 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4566 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4568 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4570 (grub_util_tchar_to_utf8): Likewise.
4572 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4574 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4575 * grub-core/kern/emu/main.c: Add missing include.
4576 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4577 Don't call grub_util_init_nls.
4578 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4581 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4583 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4586 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4588 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4590 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4592 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4594 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4596 Add a wrapper for fopen. On unix-like systems just pass-through. On
4597 windows use unicode version.
4599 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4601 Move set_program_name and init_nls to host_init. On windows
4602 fix in this fuction console and argument charset as well.
4604 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4606 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4607 GRUB_ENABLE_CRYPTODISK.
4609 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4610 GRUB_ENABLE_CRYPTODISK.
4611 * util/grub-mkconfig_lib.in: Likewise.
4613 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4615 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4617 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4619 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4620 error when enabling debug.
4622 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4624 * configure.ac: Use -melf_*_obsd on openbsd.
4626 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4628 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4630 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4632 * include/grub/misc.h: Use gnu_printf rather than printf as format
4633 template since our functions are independent of libc.
4635 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4637 * util/grub-setup.c (setup): Move copying of partition table as
4638 futher up as possible to avoid possible overwrite by floppy routines.
4640 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4642 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4644 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4646 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4647 * docs/grub.texi: Likewise.
4649 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4651 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4652 it's mostly unused. Move vestiges to the callers.
4654 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4656 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4657 version of salt and hash. Use grub_snprintf rather than snprintf.
4659 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4661 * docs/grub.texi: Fix problem with braces.
4663 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4665 * conf/Makefile.extra-dist: Fix extra-dist list.
4666 * grub-core/Makefile.core.def: Likewise.
4668 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4670 * docs/grub.texi: Document disk names used on Windows and AROS.
4672 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4674 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4676 * grub-core/osdep/aros/hostdisk.c: Likewise.
4678 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4680 Avoid including hostfile.h when not necessarry as it pulls
4681 in OS-specific headers which may redefine generic names
4684 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4686 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4687 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4688 scrollbar_bottom_pad
4689 * docs/grub.texi: Likewise.
4691 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4693 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4695 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4697 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4699 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4701 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4703 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4706 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4708 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4711 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4713 Move OS-specific driver configuration to grub_util_fd_open. This
4714 moves OS-dependent parts from kern/emu/hostdisk.c to
4715 grub-core/osdep/*/hostdisk.c.
4717 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4719 * util/grub-mkimage.c (generate_image): Use size_t instead of
4721 * util/grub-mkimagexx.c (locate_sections): Likewise.
4722 (load_image): Likewise.
4724 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4726 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4728 (grub_util_write_image): Likewise.
4730 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4732 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4733 get random when no RNG is available.
4734 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4736 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4738 * include/grub/util/lvm.h: Removed.
4740 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4742 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4743 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4745 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4747 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4749 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4751 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4753 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4755 * grub-core/net/drivers/emu/emunet.c: Move to ..
4756 * grub-core/osdep/linux/emunet.c: ..here.
4758 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4760 * util/ieee1275/ofpath.c: Move to ...
4761 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4762 * grub-core/osdep/basic/ofpath.c: ..here.
4764 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4766 Move password-querying (util-version) routines to grub-core/osdep.
4768 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4770 Move sleep routines to grub-core/osdep.
4772 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4774 Move OS-dependent files to grub-core/osdep and document it.
4776 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4778 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4779 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4781 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4783 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4785 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4787 * util/misc.c: Remove leftover inclusion of malloc.h.
4789 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4791 * include/grub/setjmp.h: Remove leftover GRUBOF.
4793 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4795 * util/raid.c: Fold into ...
4796 * util/getroot_linux.c: ... here. Make all functions static.
4798 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4800 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4801 macros to GRUB ones.
4803 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4805 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4806 occasional bug. If there are too many boot entries or too low
4807 scrollbar height then we need to use another formula to calculate
4808 the position and size of the scrollbar thumb.
4810 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4812 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4814 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4816 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4817 * docs/grub.texi: Likewise.
4819 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4821 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4824 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4826 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4827 minimal width calculations.
4829 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4831 * docs/grub.texi: Update note on colors on emu console.
4833 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4835 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4836 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4837 it's FS and not GRUB limitation.
4839 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4841 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4843 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4845 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4847 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4849 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4850 kernels by version order.
4852 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4854 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
4856 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4858 Add AROS hostdisk and getroot routines.
4860 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4862 Make cryptodisk and diskfilter probe data retrievable programmatically
4863 and not just printable.
4865 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4867 Split random retrieving code into separate files.
4869 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4871 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
4874 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4876 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
4878 * grub-core/tests/fake_input.c: Likewise.
4879 * grub-core/tests/cmdline_cat_test.c: Likewise.
4881 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4883 * grub-core/video/capture.c: Do not do finalization when .fini
4884 is called as there is explicit capture_end.
4886 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4888 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
4889 changing windows to avoid crash.
4891 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4893 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
4895 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4897 * po/exclude.pot: Add several strings to exclude.
4899 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4901 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
4903 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4905 * autogen.sh: Add ./util/grub-gen-widthspec.c and
4906 ./util/grub-gen-asciih.c to exclude list.
4908 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4910 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
4911 and don't mark error strings for translation.
4913 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4915 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
4916 properly in case of missing block size.
4918 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4920 * grub-core/lib/arm/setjmp.S: Add missing license section.
4922 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4924 * po/swiss.sed: Add replacement for key names and for term computer.
4926 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
4928 * grub-core/gfxmenu/theme_loader.c: New global options for the
4929 theme background image handling. desktop-image-scale-method,
4930 desktop-image-h-align, desktop-image-v-align.
4931 * grub-core/gfxmenu/view.c: Likewise.
4932 * include/gfxmenu_view.h: Likewise.
4933 * include/bitmap_scale.h: Proportional scale functions introduced.
4934 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
4935 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
4936 cases of unexpected input variables for scale functions.
4937 * docs/grub.texi: Updated documentation for new options.
4939 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
4941 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
4943 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4945 * grub-core/tests/checksums.h: Corrected due to changes in
4946 bilinear interpolation function.
4948 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
4950 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
4951 to eliminate artefacts in bilinear interpolation.
4953 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4955 * grub-core/video/readers/tga.c: Support paletted tga.
4957 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4959 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
4960 incorrect cbcr setting when in color mode.
4962 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4964 * grub-core/video/readers/png.c: Support paletted images and clean up
4967 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4969 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
4970 usage of wrong table which resulted in mishandling of 4-byte
4973 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
4975 * grub-core/term/terminfo.c: Add Home and End key sequences.
4977 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4979 * grub-core/video/readers/png.c (grub_png_decode_image_header):
4980 Fix formula for computing total number of bytes.
4982 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4984 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
4985 image processing, fix big-endian and support grayscale.
4987 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4989 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
4990 Correctly will with maximum transparency when using index color.
4992 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4994 * grub-core/video/readers/png.c: Support grayscale
4996 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
4998 * grub-core/video/readers/jpeg.c: Support grayscale.
5000 2013-09-26 Jon McCune <jonmccune@google.com>
5002 * grub-core/commands/loadenv.c: Support skipping signature check
5003 and variable names filtering.
5005 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5007 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5008 * grub-core/kern/emu/hostfs.c: Likewise.
5009 * util/getroot_unix.c: Likewise.
5011 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5013 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5014 Migrate all explicit defines to this new one.
5016 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5018 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5019 grub_util_fd_strerror when using grub_util_fd_*.
5020 (grub_util_fd_open_device): Likewise.
5021 (grub_util_biosdisk_read): Likewise.
5022 (grub_util_biosdisk_write): Likewise.
5023 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5024 (grub_util_fd_strerror): Likewise.
5025 (grub_util_fd_sync): Likewise.
5026 (grub_util_fd_close): Likewise.
5027 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5028 (grub_util_fd_close): Likewise.
5029 (grub_util_fd_strerror): Likewise.
5030 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5031 function proto rather than macro.
5032 (grub_util_fd_sync): Likewise.
5033 (grub_util_fd_open): Likewise.
5034 (grub_util_fd_strerror): New proto.
5036 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5038 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5039 platforms on which it doesn't work.
5041 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5043 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5044 stat immediately to where it's used.
5046 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5048 * util/getroot.c (grub_util_check_block_device): Move to ...
5049 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5050 * util/getroot.c (grub_util_check_char_device): Move to ...
5051 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5053 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5055 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5058 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5060 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5062 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5064 * docs/grub.texi (File name syntax): Document ZFS filenames
5065 (/volume@snapshot/...).
5067 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5069 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5070 Always return full path. Fixes a problem with mkrelpath.
5072 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5074 * util/grub-install.in: Add GPT PReP support.
5075 * util/grub-probe.c (probe): Support GPT partition type.
5076 (main): Support -t gpt_parttype.
5078 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5080 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5082 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5084 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5086 2013-09-23 Tim Hardeck <thardeck>
5088 * util/grub.d/10_hurd.in: Filter out character for the class.
5089 * util/grub.d/10_kfreebsd.in: Likewise.
5090 * util/grub.d/10_linux.in: Likewise.
5091 * util/grub.d/20_linux_xen.in: Likewise.
5093 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5095 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5098 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5100 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5103 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5105 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5106 doesn't use posix_wrap. Keep literal -fno-builtin however.
5108 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5110 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5112 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5115 * configure.ac: Do not enable -Wmissing-noreturn as its
5116 usefulness is limited and creates problems on some OS notably with
5117 code generated by bison.
5119 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5122 * configure.ac: Do not explicitly enable -Waddress as it's not
5123 supported by all gcc and when it is, it's already enabled by -Wall.
5125 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5127 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5128 desactivated use of EDID at all.
5130 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5133 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5134 video if no text is available.
5136 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5139 * configure.ac: Substitute TARGET_RANLIB.
5141 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5144 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5146 Based on patches from AROS.
5148 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5151 * grub-core/Makefile.am: Override STRIP and RANLIB.
5152 * configure.ac: compute TARGET_RANLIB.
5153 * INSTALL: Document TARGET_RANLIB
5155 Based on patches from AROS.
5157 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5159 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5160 that floppies are unpartitioned.
5162 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5164 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5165 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5167 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5169 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5170 less nice but more portable.
5171 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5173 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5175 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5177 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5179 (grub_cryptodisk_cheat_insert): Likewise.
5180 (grub_cryptodisk_close): Likewise.
5182 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5184 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5185 Use windows path for DEFAULT_DIRECTORY.
5187 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5189 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5190 difference was likely just gcc version, not anything mingw-related.
5192 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5194 Use Winapi on both cygwin and mingw32 to share more code between both.
5196 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5198 * util/grub-install.in: Add --grub-editenv option.
5199 * util/grub-install_header (grub_compress_file): Explicitly check for
5200 plain file to avoid cp error.
5202 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5204 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5205 names; fix LVM driver name (lvm, not lv).
5206 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5209 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5211 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5212 files rather than one file with loads of #if's.
5213 * util/getroot.c: Likewise.
5215 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5217 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5219 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5221 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5222 GNU/Hurd to the list of checked PRNG.
5224 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5226 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5228 2013-09-21 Ales Nesrsta <starous@volny.cz>
5230 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5232 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5234 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5235 * grub-core/disk/lvm.c: Add LVM UUIDs.
5236 * util/getroot.c: Use LVM UUIDs whenever possible.
5238 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5240 * docs/grub.texi (Networking commands): Add documentation for
5241 network related commands.
5243 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5245 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5246 to determine if device is handled by devmapper.
5247 (convert_system_partition_to_system_disk): Likewise.
5248 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5249 already done in grub_util_open_dm.
5251 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5253 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5254 Clean up stack manipulation (sync_caches_armv*)
5256 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5258 * util/lvm.c: Remove since unused. Remove remaining references.
5260 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5262 Handle the case of partitioned LVM properly.
5264 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5265 Stop on meeting LVM, mpath or DMRAID.
5266 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5267 (read_device_map): Likewise.
5268 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5269 device is full disk rather than erroring out on LVM and similar cases.
5271 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5273 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5275 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5277 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5279 Reported by: Leif Lindholm
5281 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5282 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5284 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5287 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5289 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5290 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5292 2013-09-18 Douglas Ray <dougray@cpan.org>
5294 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5297 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5299 * docs/grub.texi: Fix broken link.
5301 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5303 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5304 to break endless loop.
5306 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5308 * util/grub-fstest.c: Fix several printf formats.
5309 * util/grub-mkimage.c: Likewise.
5310 * util/grub-mkimagexx.c: Likewise.
5311 * util/grub-script-check.c: Likewise.
5313 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5315 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5318 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5320 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5322 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5324 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5325 removed in current versions cygwin_conv_*.
5327 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5329 * configure.ac: Disable efiemu runtime on cygwin.
5331 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5333 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5334 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5336 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5338 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5341 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5343 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5345 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5348 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5350 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5351 when on x86 and not cygwin.
5352 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5355 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5357 * configure.ac: Set CPP to build one when checkoing for freetype for
5360 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5362 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5363 [!GRUB_BUILD]: Remove has_argument.
5365 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5367 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5368 Replace with a dummy.
5370 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5372 * configure.ac: Don't change host_os from mingw to cygwin.
5374 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5376 * configure.ac: Change target_os from windows to cygwin.
5378 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5380 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5382 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5383 (build-grub-gen-asciih): Likewise.
5384 (build-grub-gen-widthspec): Likewise.
5385 * Makefile.util.def (grub-pe2elf): Remove.
5386 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5387 * configure.ac: Separate tests for build.
5388 Move ./build-grub-pe2elf to grub-core.
5390 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5391 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5393 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5395 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5396 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5397 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5399 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5401 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5402 mingw32 as well based on grub_util_get_disk_size.
5403 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5404 grub_util_get_fd_size.
5406 (fsync): Moved to ...
5407 * grub-core/kern/emu/misc.c (fsync): ... here.
5409 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5411 * include/grub/mm.h (grub_extend_alloc): Remove.
5412 * grub-core/loader/i386/pc/plan9.c: Use own version of
5413 grub_extend_alloc with appropriate types.
5415 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5417 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5419 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5421 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5423 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5425 Fix dependencies on cygwin.
5427 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5428 dependencies when used and defined.
5429 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5431 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5433 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5434 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5436 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5438 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5439 implementation available to cause compile-time rather than runtime
5442 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5444 * util/grub-fstest.c: Don't check for symlinks on windows.
5446 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5448 * INSTALL: Mention unavailability of man pages when cross-compiling.
5450 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5452 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5454 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5456 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5458 * INSTALL: Document cross-compilation.
5459 * acinclude.m4: Determine whether nm support -P and --defined-only.
5460 * configure.ac: Add TARGET_ to all variables pertaining to target
5461 that don't have it yet.
5462 * gentpl.py: Likewise.
5463 * grub-core/Makefile.am: Likewise.
5464 * grub-core/genmod.sh.in: Likewise.
5465 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5468 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5470 * configure.ac: Remove -Wempty-body. It's not essential and needs
5473 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5475 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5476 * util/getroot.c: Likewise.
5478 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5480 * grub-core/disk/ahci.c: Add needed explicit cast.
5481 * grub-core/lib/backtrace.c: Likewise.
5482 * grub-core/net/ip.c: Likewise.
5483 * grub-core/net/tcp.c: Likewise.
5484 * grub-core/net/udp.c: Likewise.
5486 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5488 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5490 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5492 * util/import_gcry.py: Add final newline in visibility.h.
5494 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5496 * conf/Makefile.common: Fix typo.
5498 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5500 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5502 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5504 * Makefile.am (widthspec.h): Fix typo.
5505 * util/grub-gen-widthspec.c: Likewise.
5507 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5509 Move ascii.h and widthspec.h generation to a separate build-time-only
5512 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5514 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5515 Always fill bootdisk info and improve check for NetBSD disklabel.
5517 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5519 * conf/Makefile.extra-dist: Add util/bin2h.c.
5520 Reported by: floppym.
5522 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5524 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5526 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5528 * configure.ac: Disable unifont and starfield if no freetype was found.
5530 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5532 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5533 on NetBSD and OpenBSD.
5535 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5537 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5539 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5541 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5542 reduced. Inheritant options are processed during the theme loading.
5544 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5546 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5548 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5550 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5552 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5554 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5557 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5559 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5560 remove-potcdate.sed.
5562 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5564 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5565 unused attribute from pull argument.
5567 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5569 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5572 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5574 * util/getroot.c (pull_lvm_by_command): add --separator option
5575 to vgs call to disable padding of output to 10 characters.
5577 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5579 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5581 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5584 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5586 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5589 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5591 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5592 full Canadian cross. Tested with build=x86_64, host=arm,
5593 target=ppc-ieee1275.
5595 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5597 * configure.ac: Error if no $BUILD_CC could be found.
5600 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5602 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5605 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5607 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5608 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5610 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5612 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5613 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5614 falling back to the partition device, otherwise a later call to this
5615 function may fail spuriously.
5616 Reported by Axel Beckert. Fixes Debian bug #708614.
5618 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5620 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5622 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5624 Prevent shadowing of stdlib's devname(3) on BSD.
5626 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5627 and devlast to diskname and disklast, respectively.
5629 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5631 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5633 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5635 * docs/grub.texi: Introduce terminal window position options:
5636 terminal-left: terminal window's left position
5637 terminal-top: terminal window's top position
5638 terminal-width: terminal window's width
5639 terminal-height: terminal window's height
5640 terminal-border: terminal window's border width
5641 * grub-core/gfxmenu/theme-loader.c: Likewise.
5642 * include/grub/gfxmenu_view.h: Likewise.
5643 * po/exlude.pot: Likewise.
5644 * grub-core/gfxmenu/view.c: Likewise.
5645 Also updated minimal window size.
5646 Also terminal_sanity_check function has been introduced.
5647 * grub-core/tests/checksums.h: Update (terminal window height
5648 is adjusted now for low resolution screen)
5650 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5652 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5655 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5657 * po/exclude.pot: Add few recent exceptions.
5659 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5661 * tests/grub_func_test.in: Add unicode.pf2.
5663 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5665 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5666 standard rather than noral color, in line with other terminals.
5668 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5670 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5673 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5675 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5677 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5679 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5680 inappropriate printf.
5682 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5684 * .bzrignore: Remove grub-core/lib/dtc-grub,
5685 grub-core/Makefile.libfdt.def
5686 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5688 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5690 * include/grub/video.h (grub_video_register): Keep double-linked as
5691 well as single-linked invariants.
5692 Reported by: qwertial.
5694 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5696 * grub-core/commands/nativedisk.c (get_uuid): Handle
5697 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5699 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5701 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5702 maximum of NW, N, NE heights instead of N's height and maximum of
5703 NW, W, SW widths instead of W's width. (So the box will be always
5706 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5708 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5709 Fix misuse of variable count.
5711 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5712 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5713 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5715 New ports to arm-uboot and arm-efi.
5716 Mostly by Leif Lindholm with some additions from
5717 Francesco Lavra and cleanup by Vladimir Serbinenko.
5719 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5721 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5723 Reported by: Leon Drugi.
5725 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5727 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5728 Reported by: Paulo Flabiano Smorigo.
5730 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5732 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5734 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5736 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5738 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5740 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5742 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5744 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5746 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5748 * grub-core/net/bootp.c: Export net_* variables.
5749 * grub-core/net/net.c: Likewise.
5751 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5753 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5755 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5757 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5759 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5761 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5763 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5765 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5767 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5769 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5772 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5774 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5777 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5779 * grub-core/fs/zfs/zfs_lz4.c: New file.
5780 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5782 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5784 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5786 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5788 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5789 (check_pool_label): Likewise.
5790 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5792 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5794 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5796 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5798 * docs/grub.texi (Commands): Document postition parameters
5799 for menuentry command.
5801 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5803 * util/grub-mknetdir.in: Remove stray line from help output.
5805 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5807 Remove early sm712 init as there is no reason for it (the "watchdog"
5808 effect was due to wrong GPIO map).
5810 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5812 * grub-core/commands/pcidump.c: Remove static variables.
5814 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5816 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5818 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5820 * configure.ac: Move delimiter after the infos.
5822 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5824 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5826 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5828 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5829 not filling whole 8x16 space.
5831 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5833 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5835 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5837 * configure.ac: Indicate which liblzma is used if any.
5839 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
5840 2013-06-21 Craig Sanders <savannah@taz.net.au>
5842 * util/grub-reboot.in: Document submenu usage.
5844 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5846 * .bzrignore: Update with a number of new test-related files.
5848 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5850 * util/grub-script-check.c: Fail on scripts containing no
5851 commands, to guard against corrupted grub-mkconfig setups that
5852 produce no useful output.
5853 * tests/grub_script_no_commands.in: New test.
5854 * Makefile.util.def (grub_script_no_commands): Add.
5855 Reported by Hans Putter. Fixes Debian bug #713886.
5857 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5859 * grub-core/disk/diskfilter.c: Forgot to remove comment
5860 from previous commit.
5862 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5864 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5865 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
5867 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5869 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
5871 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5873 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
5874 rescan diskfilter devices until nothing new is found.
5876 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5878 Fix casts when compiling coreboot-specific code for 64-bit EFI.
5880 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5882 Don't try to detect cbfs on *-emu.
5884 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5886 * grub-core/term/gfxterm.c: USe right background color when scrolling.
5888 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5890 Add support for processed coreboot payload chainloading.
5892 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5894 Enable coreboot information commands even when not loaded as
5895 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
5897 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5899 Support for cbfs. Also factor out the part which is common
5900 for all archives to a separate module. This splits tar from cpio
5901 as they are very different but keeps cpio, cpio_be, odc and newc
5902 together since they're very similar.
5904 2013-06-15 David Michael <fedora.dm0@gmail.com>
5906 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
5907 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
5909 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5911 * tests/grub_script_eval.in: Really add the eval test.
5913 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
5915 Move flavour-specific parts out of common cpio.c file and
5916 rename remaining to cpio_common.c
5918 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5920 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
5921 off new function grub_script_execute_new_scope. Change callers to use
5922 either of them as appropriate.
5923 * grub-core/commands/eval.c: New command eval.
5924 * docs/grub.texi (Commands): Document it.
5926 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5928 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
5929 to fetch values when listing.
5931 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
5933 Fix make dist on non-pc.
5935 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
5937 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
5938 without a device name.
5940 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5942 Remove enable_executable_check as it's not needed anymore.
5943 Reported by: dougray.
5945 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5947 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
5948 ambigouos RAID before discovering RAIDs on top of it.
5951 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
5953 Fix typo (failback vs fallback).
5955 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
5957 * util/grub.d/30_os-prober.in: Add support for probing EFI
5958 System Partition (as of os-prober 1.58).
5960 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5962 * configure.ac: Add yet another path to unifont. For parabola.
5964 2013-05-30 Josh Triplett <josh@joshtriplett.org>
5966 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
5967 handling to copy the killed characters to the kill buffer as
5968 UCS4 stored as grub_uint32_t rather than as 8-bit characters
5969 stored as char. Eliminates UCS4 truncation and corruption
5970 observed when killing characters with Ctrl-u and yanking them
5973 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5975 Detach optional parts of gfxterm and integrate in with coreboot init.
5977 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5979 Move blit and fill dispatcher to appropriate files to decrease export
5980 and relocation overhead.
5982 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5984 * grub-core/font/font.c, include/grub/font.h: Inline simple font
5987 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5989 * grub-core/Makefile.am: Fix compilation problem with some
5992 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5994 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
5996 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5998 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6001 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6003 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6006 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6008 * grub-core/partmap/dfly.c: New partition map.
6010 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6012 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6014 Reported by: Francesco Lavra.
6016 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6018 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6019 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6021 * conf/Makefile.common: define dist_grubconf_DATA
6023 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6025 Progressively skip menu elements on small terminals rather
6028 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6030 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6031 to avoid losing last column.
6033 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6035 * po/exclude.pot: Add missing string "%C".
6037 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6039 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6042 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6044 * util/grub-install.in: Gettextize "Not found" message.
6046 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6049 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6051 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6053 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6055 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6057 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6059 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6061 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6063 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6064 attribute since structure is not necessarily aligned.
6066 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6068 * docs/grub.texi (Device syntax): Clarify description of network
6071 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6073 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6074 for vasprintf presence.
6076 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6078 * util/grub-install.in: Handle efibootmgr presence check.
6079 Reported by: Leif Lindholm.
6081 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6083 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6084 new strings to translate.
6086 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6088 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6089 yet another string (pun intended) to translate.
6091 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6093 * po/POTFILES-shell.in: Autogenerate it.
6095 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6097 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6099 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6101 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6104 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6106 * docs/grub.texi (Network): Add description of net_default_interface,
6107 net_default_ip and net_default_mac. Rewrite variables description
6108 to emphasize that they are per-interface.
6110 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6112 New test: cmdline and cat.
6114 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6116 * grub-core/commands/cat.c: Show UTF-8 characters.
6118 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6120 * conf/Makefile.common: Poison float and double on non-emu.
6122 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6124 * configure.ac: Don't disable extended registers on emu.
6126 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6128 * configure.ac: Don't use extended registers on x86_64.
6129 Reported by: Peter Jones.
6131 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6133 * grub-core/term/efi/console.c: Fix compile error.
6135 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6137 Compressed HFS+ support.
6139 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6141 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6144 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6148 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6150 * grub-core/tests/setjmp_test.c: New test.
6152 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6154 New variables 'net_default_*' to determine MAC/IP of default interface.
6156 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6158 * tests/gettext_strings_test.in: A test to check for strings not
6159 marked for translation.
6161 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6163 * autogen.sh: Exclude unused libgcrypt files from translation.
6165 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6167 Simplify few strings.
6169 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6171 Mark few forgotten strings for translation.
6173 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6175 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6178 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6180 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6182 * grub-core/video/readers/tga.c: Likewise.
6184 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6186 * tests/priority_queue_unit_test.cc: New test.
6188 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6190 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6193 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6195 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6196 variable for one time boot menu entry.
6198 2013-05-05 Bean <bean123ch@gmail.com>
6200 * grub-core/commands/testspeed.c: New command testspeed.
6202 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6204 Factor-out human-size printing.
6206 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6208 Agglomerate more mallocs to speed-up gfxterm.
6210 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6212 Speed-up gfxterm by slightly agglomerating mallocs.
6214 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6218 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6220 Speed-up gfxterm by saving intermediate results in index+alpha
6223 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6225 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6228 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6230 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6231 line of timeout as it may contain the rest of long line.
6233 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6235 * grub-core/normal/main.c: Fix freed memory dereference.
6237 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6239 Fix several memory leaks.
6241 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6243 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6245 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6247 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6249 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6251 Fix test -a and -o precedence.
6252 Reported by: adrian15.
6254 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6256 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6258 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6260 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6261 and add it as source to functional_test module.
6263 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6265 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6267 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6269 New series of tests for gfxterm and gfxmenu.
6271 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6273 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6274 the theme path relative to $prefix/themes.
6276 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6278 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6280 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6282 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6284 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6287 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6289 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6290 grub_gfxmenu_timeout_notifications.
6291 (grub_gfxmenu_view_destroy): Likewise.
6293 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6295 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6297 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6299 Several fixes to ieee1275 and big-endian video.
6301 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6303 Add missing exports on mips.
6305 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6307 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6308 if no unifont is found.
6309 Restore original keyboard.
6311 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6313 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6314 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6316 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6318 First automated video test (running videotest and comparing results)
6320 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6322 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6323 instead of 2 to have full RGB/CMY test pattern.
6325 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6329 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6331 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6332 ARCS. All users updated.
6334 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6336 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6338 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6340 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6342 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6344 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6345 Reported by: qwertial.
6347 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6349 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6350 with syntax "XXX deg"/"XXX °".
6352 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6354 Make PCI init in i386-qemu port more robust.
6356 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6358 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6359 cached view is reused.
6360 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6363 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6365 Unify more code in grub-install_header.
6367 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6371 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6373 Enforce disabling of firmware disk drivers when native drivers kick in.
6375 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6377 * grub-core/commands/nativedisk.c: Customize the list of modules on
6378 platform. Don't try to search for disks already using native drivers.
6380 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6382 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6385 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6387 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6388 handling of variables containing backslash.
6390 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6392 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6394 Reported by: qwertial.
6396 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6398 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6400 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6402 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6404 Reported by: qwertial.
6406 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6408 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6410 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6412 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6414 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6416 New command `nativedisk'.
6418 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6420 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6421 * grub-core/loader/i386/bsd.c: Likewise.
6423 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6425 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6427 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6429 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6430 grub_get_unaligned16 rather than shifts.
6432 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6434 * grub-core/kern/file.c: Use const char * rather than casting to
6437 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6439 * grub-core/commands/probe.c: Add missing grub_device_close.
6441 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6443 * INSTALL: Document linguas.sh.
6445 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6447 Remove POTFILES.in and regenerate it in autogen.sh.
6449 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6451 Move --directory/--override-directorry to grub-install_header and unify.
6453 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6455 * grub-core/term/morse.c: Macroify dih and dah.
6457 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6459 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6461 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6463 * grub-core/term/ns8250.c: Systematically probe ports by writing
6464 to SR before using them.
6466 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6468 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6470 (check_sas): Get sas_adress info.
6472 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6474 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6477 2013-04-27 Leon Drugi <eyak>
6479 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6482 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6484 Core compression test.
6486 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6488 Implement grub_machine_get_bootlocation for ARC.
6490 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6492 Improve AHCI detection and command issuing.
6494 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6498 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6500 Make 'make check' work on emu.
6502 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6504 Replace libcurses with our own vt100 handling for the ease of testing
6505 and decreasing prerequisites.
6507 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6509 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6511 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6513 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6514 compile when not needed.
6516 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6518 * tests/pseries_test.in: New test.
6520 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6522 Add test to check that different boot mediums work.
6524 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6526 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6527 ofw limited ISO support.
6529 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6531 * configure.ac: Fix loongson conditional.
6533 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6537 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6539 Add serial on ARC platform.
6541 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6543 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6546 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6548 * tests/partmap_test.in: Add missing double semicolon.
6550 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6552 * util/grub-mkrescue.in: Fix loongson filename.
6554 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6556 * util/grub-mkrescue.in: Move all files that don't have a location
6557 set in stone under /boot/grub. Use ISO hard links rather than copies
6560 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6562 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6565 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6567 Make check work on mips-arc.
6569 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6571 * util/grub-mkrescue.in: Alias sashARCS as sash.
6573 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6575 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6578 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6580 * util/grub-install.in: Fix target fo qemu_mips.
6581 Fix extension on EFI.
6583 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6585 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6586 in front of chosen entry to mark it even if highlighting is lost.
6588 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6590 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6591 gfxpayload=keep if cbfb is active.
6593 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6595 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6597 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6599 Add missing video ids to coreboot and ieee1275 video.
6601 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6603 * util/grub-mkrescue.in: Add mips-arc support.
6605 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6607 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6609 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6611 Move mips-arc link address. Previous link address was chosen
6612 in belief that RAM on SGI platforms grows down while in fact it
6613 grows up from an unusual base.
6615 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6617 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6618 Fix a type which prevented CD-ROM and floppy boot.
6620 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6622 Support coreboot framebuffer.
6624 * grub-core/video/i386/coreboot/cbfb.c: New file.
6626 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6628 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6629 detecting too small regions.
6631 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6633 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6635 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6637 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6639 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6641 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6643 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6644 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6645 * grub-core/loader/powerpc/ieee1275/linux.c
6646 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6648 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6650 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6651 Look for /boot-rom as well as /rom/boot-rom.
6653 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6655 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6656 handling when creating text_layer failed.
6657 * grub-core/video/video.c (grub_video_create_render_target):
6658 Set result to 0 on error.
6659 (grub_video_delete_render_target): Do not dereference NULL.
6661 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6663 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6664 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6665 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6666 (grub_linux_load64): Mask out 2 high bits.
6668 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6670 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6673 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6675 Add support for pseries and other bootinfo machines to grub-mkrescue.
6677 Tested by: Paulo Flabiano Smorigo.
6679 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6681 * util/grub-mkrescue.in: Add GPT for EFI boot.
6683 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6685 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6686 It improves performance in qemu.
6688 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6690 * build-aux/snippet: Add missing gnulib files.
6692 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6694 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6696 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6698 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6700 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6701 2013-04-15 Peter Jones <pjones@redhat.com>
6703 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6705 Based on patch by Peter Jones.
6707 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6709 Fix DMRAID partition handling.
6711 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6713 * tests/grub_cmd_date.in: Skip on sparc64.
6715 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6717 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6718 firmware error messages.
6720 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6722 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6723 source and destination differ.
6725 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6727 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6730 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6732 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6733 match config-util.h to avoid warnings and increase compatibility.
6735 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6736 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6738 Add option to compress files on install/image creation.
6740 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6742 * docs/grub-dev.texi: Rearrange menu to match the section order.
6743 Reported by: Bryan Hundven.
6745 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6747 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6749 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6751 Move GRUB out of system area when using xorriso 1.2.9 or later.
6753 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6755 * tests/grub_cmd_date.in: Add missing exit 1.
6757 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6759 * tests/partmap_test.in: Skip on sparc64.
6761 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6763 Support grub-shell on sparc64.
6765 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6767 Support mkrescue on sparc64.
6769 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6771 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6772 Needed on OpenBIOS due to incomplete device tree.
6774 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6776 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6777 would be otherwise excluded.
6779 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6781 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6782 Inline name defines used only once.
6784 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6786 Fix memory leaks in ofnet.
6787 Reported by: Francesco Lavra.
6789 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6791 * docs/man/grub-glue-efi.h2m: Add missing file.
6793 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6795 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6797 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6799 Better support Apple Intel Macs on CD.
6801 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6803 Replace stpcpy with grub_stpcpy in tools.
6805 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6807 Handle Japanese special keys.
6808 Reported by: Hiroyuki YAMAMORI.
6809 Codes supplied by: Hiroyuki YAMAMORI.
6811 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6813 * util/grub-mkimage.c: Document memdisk implying --prefix.
6815 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6817 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6818 much we can do about it anyway.
6820 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6822 Fix handling of split transfers.
6824 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6826 * grub-core/net/http.c: Fix bad free.
6828 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6830 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6833 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6835 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6837 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6839 * tests/util/grub-shell.in: Fix it on powerpc.
6841 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6843 Turn off QEMU ACPI-way since new releases don't have shutdown port
6846 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6848 * docs/grub.texi: Update coreboot status info.
6850 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6852 * tests/grub_cmd_date.in: New test for datetime.
6854 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6856 * tests/partmap_test.in: Fix missing qemudisk setting.
6858 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6860 Support i386-ieee1275 grub-mkrescue and make check on it.
6862 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6864 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
6867 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6869 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
6870 GRUB_CMDLINE_XEN_DEFAULT.
6871 Reported by: Marc Warne (GigaTux) <gigatux>
6873 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6877 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6879 Use ACPI shutdown intests as traditional port was removed.
6881 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
6883 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
6886 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6888 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
6889 Fix few warining messages and leaks while on it.
6891 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
6893 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
6894 links under grub-core/lib/libgcrypt-grub/mpi.
6896 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6898 Fix ia64-efi image generation on big-endian machines. Deduplicate
6899 some code while on it.
6900 Reported by: Leif Lindholm.
6902 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6904 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
6907 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
6909 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
6911 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
6913 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
6916 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6918 * grub-core/normal/term.c: Few more fixes for menu entry editor
6920 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6922 2013-04-07 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-06 Andrey Borzenkov <arvidjaar@gmail.com>
6930 * conf/Makefile.extra-dist (EXTRA_DIST): Add
6931 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
6933 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
6935 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
6936 instead of hardcoding grub.mo.
6938 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
6940 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
6942 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6944 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
6945 grub-core/disk/geli.c.
6947 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6949 * util/grub-mkfont.c: Prefer enum to #define.
6951 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6953 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
6955 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6957 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
6959 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6961 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
6963 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6965 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
6967 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6969 * include/grub/bsdlabel.h: Use enums.
6971 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
6973 Move GRUB_CHAR_BIT to types.h.
6975 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6977 * docs/grub.texi: Document more user commands.
6979 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
6981 * docs/grub.texi: Document menuentry --id option.
6983 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
6985 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
6987 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6989 Unify file copying setup across different install scripts. Add
6990 options for performing partial install.
6992 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6993 2013-04-04 Peter Jones <pjones@redhat.com>
6995 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
6997 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6999 Use TSC as a possible time source on i386-ieee1275.
7001 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7003 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7006 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7008 * util/grub-setup.c (setup): Handle some corner cases.
7010 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7012 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7014 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7016 * grub-core/commands/verify.c: Save verified file to avoid it being
7017 tampered with after verification was done.
7019 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7021 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7022 reported width by one to compensate for curesor algorithm problem.
7024 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7026 Fix screen corruption in menu entry editor and simplify the code
7029 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7031 * util/grub-mount.c (fuse_init): Return error if fuse_main
7034 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7036 * include/grub/elf.h: Add missing ARM relocation codes and fix
7039 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7041 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7043 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7044 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7046 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7047 into account when calculating radius.
7049 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7051 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7053 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7055 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7057 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7059 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7060 missing closing bracket.
7062 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7064 * INSTALL: Mention xorriso requirement.
7066 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7068 * grub-core/commands/verify.c: Fix hash algorithms values for
7069 the first three hashes - they start with 1, not with 0.
7071 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7073 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7074 Try terminating EFI services several times due to quirks in some
7077 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7079 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7080 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7081 BankField extended opcodes.
7082 (get_sleep_type): Add minimal scope handling (just enough to
7083 handle setting the scope to the root path).
7084 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7085 * include/grub/acpi.h: Add enumeration values for Event, Device,
7086 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7088 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7090 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7093 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7095 * grub-core/disk/ahci.c: Give more time for AHCI request.
7097 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7099 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7102 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7104 Replace the region at 0 from coreboot tables to available in BSD
7107 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7109 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7112 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7114 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7117 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7119 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7120 handling of multi-device filesystems.
7122 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7124 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7127 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7129 Add new 'proc' filesystem framework and put luks_script into it.
7131 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7133 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7136 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7138 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7140 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7142 Add ability to generate newc additions on runtime.
7144 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7146 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7149 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7151 * po/POTFILES.in: Regenerate.
7153 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7155 * grub-core/commands/verify.c (hashes): Add several hashes
7158 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7160 Slight improve in USB-related boot-time checkpoints.
7162 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7164 * grub-core/commands/boottime.c: Fix copyright header.
7166 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7168 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7169 coreboot tables content. Support for cbmemc.
7171 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7173 Fix a conflict between ports structures with 2 controllers of
7176 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7178 * include/grub/boottime.h: Add missing file.
7180 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7182 Initialize USB ports in parallel to speed-up boot.
7184 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7186 Fix USB devices not being detected when requested
7187 due to delayed attach.
7189 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7191 Implement boot time analysis framework.
7193 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7195 Remove get_endpoint_descriptor and change all functions needing
7196 descriptor to just receive it as argument rather than endpoint
7199 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7201 Better estimate the maximum USB transfer size.
7203 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7205 Resend a packet if we got the wrong buffer in status.
7207 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7209 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7210 multiplication rather than division.
7212 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7214 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7217 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7219 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7220 operations to have intended shifts and not divisions.
7222 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7224 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7225 intended shifts rather than division.
7227 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7229 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7230 computation for some years before epoch. Avode confusing division
7233 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7235 * grub-core/video/i386/pc/vbe.c
7236 (grub_video_vbe_print_adapter_specific_info): Replace division by
7239 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7241 Adjust types in gdb module to have intended unsigned shifts rather than
7244 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7246 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7247 maximum size is 4G - 1 on hfs
7249 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7251 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7253 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7255 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7258 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7260 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7261 causing gcc error with gcc 4.7.1.
7263 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7265 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7266 dereference null pointer. While the code is technically correct, gcc
7267 may eliminate a null check if pointer is already dereferenced.
7269 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7271 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7273 * grub-core/normal/term.c (read_terminal_list): Likewise.
7275 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7277 Lift up core size limits on some platforms. Fix potential memory
7278 corruption with big core on small memory systems. Document remaining
7281 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7283 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7286 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7288 Remove all trampoline support. Add -Wtrampolines when
7289 present. Remove symbols used for trampolines to make
7290 link fail if trampolines are present.
7292 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7294 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7295 append out of its parent.
7297 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7299 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7302 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7304 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7305 all vars to a macro. All users updated.
7307 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7309 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7312 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7314 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7316 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7318 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7320 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7322 Move to more hookless approach in IEEE1275 devices handling.
7324 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7326 * grub-core/kern/term.c (grub_term_normal_color),
7327 (grub_term_highlight_color): Add back lost defaults.
7329 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7331 Make elfload not use hooks. Opt for flags and iterators instead.
7333 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7335 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7336 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7338 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7340 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7342 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7344 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7345 hook pass-through parameter. All users updated and unnested.
7347 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7349 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7352 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7354 * grub-core/fs/hfs.c: Remove nested functions.
7356 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7358 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7359 the context through.
7360 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7362 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7364 * util/grub-editenv.c (list_variables): Move print_var out of its
7367 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7369 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7372 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7374 * grub-core/gentrigtables.c: Make tables const.
7376 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7378 Remove nested functions from videoinfo iterators.
7380 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7382 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7383 for 64-bit platforms.
7385 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7387 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7388 a FOR_CHILDREN macro.
7390 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7392 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7393 platform from firmware path.
7395 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7397 Enable linux16 on non-BIOS systems for i.a. memtest.
7399 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7401 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7403 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7405 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7406 Fix end of table condition.
7408 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7410 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7413 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7415 * grub-core/fs/jfs.c: Remove nested functions.
7417 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7419 * grub-core/fs/minix.c: Remove nested functions.
7421 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7423 * grub-core/fs/iso9660.c: Remove nested functions.
7425 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7427 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7430 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7432 * util/grub-fstest.c: Remove nested functions.
7434 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7436 * grub-core/loader/machoXX.c: Remove nested functions.
7438 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7440 Remove nested functions from disk and file read hooks.
7442 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7443 (struct grub_disk): Add read_hook_data member.
7444 * include/grub/file.h (struct grub_file): Likewise.
7445 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7450 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7452 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7453 Fix off by one error in enumerating extended partitions.
7455 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7457 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7458 memory leak if device name is not found.
7460 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7462 * grub-core/normal/menu_entry.c (update_screen): remove
7463 unused variable `off' which caused scroll down arrow to be always shown.
7465 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7467 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7468 access to unallocated memory.
7470 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7472 * Makefile.util.def: Add partmap/msdos.c to common library.
7473 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7474 * grub-core/disk/ldm.c: Check for existence of
7475 GRUB_PC_PARTITION_TYPE_LDM.
7477 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7479 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7480 sizes and display sector size.
7482 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7484 Implement new command cmosdump.
7486 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7488 Support Openfirmware disks with non-512B sectors.
7490 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7492 * (grub_ofdisk_get_block_size): New function.
7493 * (grub_ofdisk_prepare): Use the correct block size.
7494 * (grub_ofdisk_read): Likewise.
7495 * (grub_ofdisk_write): Likewise.
7496 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7499 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7501 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7503 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7505 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7508 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7510 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7513 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7515 Implement USBDebug (full USB stack variant).
7517 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7519 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7520 unless they have unexpected values.
7522 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7524 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7527 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7529 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7530 zero-out of port structure.
7532 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7534 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7535 of extended attributes.
7537 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7539 * util/grub-install.in: change misleading comment about
7542 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7544 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7545 when menu highlight color isn't set.
7547 2013-01-27 C. Masloch <pushbx@38.de>
7549 Improve FreeDOS direct loading support compatibility.
7551 * include/grub/i386/relocator.h (grub_relocator16_state):
7553 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7555 (grub_relocator16_boot): Handle %ebp.
7556 * grub-core/lib/i386/relocator16.S: Likewise.
7557 * grub-core/loader/i386/pc/freedos.c:
7558 Load BPB to pass kernel which partition to load from.
7559 Check that kernel file is not too large.
7560 Set register dl to BIOS unit number as well.
7562 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7564 * util/grub-reboot.in (usage): Document the need for
7566 * util/grub-set-default.in (usage): Likewise.
7567 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7569 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7571 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7572 than defining WORDS_BIGENDIAN manually.
7574 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7576 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7579 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7581 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7583 (blit_comb: add_device_width): Likewise.
7585 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7587 Remove nested functions from USB iterators.
7589 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7590 (grub_usb_controller_iterate_hook_t): Likewise.
7591 (grub_usb_iterate): Add hook_data argument.
7592 (grub_usb_controller_iterate): Likewise.
7593 (struct grub_usb_controller_dev.iterate): Likewise.
7595 Update all implementations and callers.
7597 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7599 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7600 margin when not needed.
7602 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7604 Make color variables global instead of it being per-terminal.
7606 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7608 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7611 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7613 Fix powerpc and sparc64 build failures caused by un-nesting memory
7616 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7618 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7619 parameter declarations.
7621 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7623 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7625 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7627 Improve spkmomdem reliability by adding a separator between bytes.
7629 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7631 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7632 an Acer registration utility with several sightings in the wild.
7633 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7635 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7637 Remove nested functions from filesystem directory iterators.
7639 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7640 (struct grub_fs.dir): Add hook_data argument.
7642 Update all implementations and callers.
7644 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7646 * docs/grub.texi (Multi-boot manual config): Fix typo for
7649 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7651 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7652 until after its use in generate_image.
7654 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7656 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7657 initrd size to addr_min, since the initrd will be allocated after
7660 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7662 * conf/Makefile.common: Fix autogen rules to pass definition
7663 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7665 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7667 * include/grub/elf.h: Update ARM definitions based on binutils.
7669 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7671 Split long USB transfers into short ones.
7673 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7675 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7676 is interrupted by ESC.
7678 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7680 * util/grub-script-check.c (main): Uniform the error message.
7682 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7684 Remove nested functions from ELF iterators.
7686 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7688 Remove nested functions from device iterators.
7690 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7691 (grub_arc_iterate_devs): Add hook_data argument.
7692 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7693 (struct grub_ata_dev.iterate): Add hook_data argument.
7694 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7695 (grub_device_iterate): Add hook_data argument.
7696 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7697 (struct grub_disk_dev.iterate): Add hook_data argument.
7698 (grub_disk_dev_iterate): Likewise.
7699 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7701 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7703 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7705 (struct grub_partition_map.iterate): Add hook_data argument.
7706 (grub_partition_iterate): Likewise.
7707 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7708 (struct grub_scsi_dev.iterate): Add hook_data argument.
7712 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7714 Fix typos for "developer" and "development".
7716 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7718 Add license header to spkmodem-recv.c.
7720 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7722 Rewrite spkmodem to use PIT for timing. Double the speed.
7724 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7726 Add new command pcidump.
7728 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7730 New terminal outputs using serial: morse and spkmodem.
7732 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7734 Improve bidi handling in entry editor.
7736 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7738 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7739 argument to prevent name collision.
7741 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7743 Remove nested functions from script reading and parsing.
7745 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7746 getline_data argument, passed to getline.
7747 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7748 getline_data argument, passed to grub_parser_split_cmdline.
7749 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7750 lexerstate->getline_data to lexerstate->getline.
7751 (grub_script_lexer_init): Add getline_data argument, saved in
7752 lexerstate->getline_data.
7753 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7754 argument, passed to grub_script_parse.
7755 * grub-core/script/script.c (grub_script_parse): Add getline_data
7756 argument, passed to grub_script_lexer_init.
7757 * include/grub/parser.h (grub_parser_split_cmdline): Update
7758 prototype. Update all callers to pass appropriate getline data.
7759 (struct grub_parser.parse_line): Likewise.
7760 (grub_rescue_parse_line): Likewise.
7761 * include/grub/reader.h (grub_reader_getline_t): Add void *
7763 * include/grub/script_sh.h (struct grub_lexer_param): Add
7764 getline_data member.
7765 (grub_script_parse): Update prototype. Update all callers to pass
7766 appropriate getline data.
7767 (grub_script_lexer_init): Likewise.
7768 (grub_normal_parse_line): Likewise.
7770 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7772 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7773 static instead of nested. Rename to ...
7774 (grub_parser_execute_getline): ... this.
7775 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7777 * grub-core/normal/main.c (read_config_file: getline): Make static
7778 instead of nested. Rename to ...
7779 (read_config_file_getline): ... this.
7780 (grub_normal_read_line): Add unused data argument.
7781 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7782 getline): Make static instead of nested. Rename to ...
7783 (grub_script_execute_sourcecode_getline): ... this.
7784 * util/grub-script-check.c (main: get_config_line): Make static
7787 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7789 Remove nested functions from memory map iterators.
7791 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7792 argument, passed to hook.
7793 * grub-core/kern/i386/coreboot/mmap.c
7794 (grub_linuxbios_table_iterate): Likewise.
7795 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7797 (grub_machine_mmap_iterate): Add hook_data argument.
7798 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7799 Add hook_data argument, passed to hook.
7800 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7802 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7804 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7806 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7808 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7810 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7812 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7813 (grub_machine_mmap_iterate): Likewise.
7814 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7815 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7817 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7818 Remove NESTED_FUNC_ATTR from here and from all users.
7819 (grub_mmap_iterate): Update prototype.
7820 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7821 pass appropriate hook data.
7822 (grub_machine_mmap_iterate): Likewise.
7824 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7825 static instead of nested.
7826 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7828 (lsmmap_hook): ... this.
7829 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7831 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7832 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7833 heap_init): Likewise.
7834 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7836 (mmap_iterate_hook): ... this.
7837 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7839 * grub-core/lib/ieee1275/relocator.c
7840 (grub_relocator_firmware_get_max_events: count): Likewise.
7841 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7843 (grub_relocator_firmware_fill_events_iter): ... this.
7844 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7845 hook): Likewise. Rename to ...
7846 (grub_relocator_alloc_chunk_align_iter): ... this.
7847 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7849 (generate_e820_mmap_iter): ... this.
7850 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7852 (count_hook): ... this.
7853 (grub_linux_boot: hook): Likewise. Rename to ...
7854 (grub_linux_boot_mmap_find): ... this.
7855 (grub_linux_boot: hook_fill): Likewise. Rename to ...
7856 (grub_linux_boot_mmap_fill): ... this.
7857 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
7858 hook): Likewise. Rename to ...
7859 (grub_fill_multiboot_mmap_iter): ... this.
7860 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
7861 hook): Likewise. Rename to ...
7862 (count_hook): ... this.
7863 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
7864 hook): Likewise. Rename to ...
7865 (grub_fill_multiboot_mmap_iter): ... this.
7866 * grub-core/loader/powerpc/ieee1275/linux.c
7867 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
7868 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
7869 Likewise. Rename to ...
7870 (alloc_phys_choose): ... this.
7871 (determine_phys_base: get_physbase): Likewise.
7872 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
7873 find_hook): Likewise.
7874 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
7875 (malloc_hook: count_hook): Likewise.
7876 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
7877 Likewise. Rename to ...
7878 (lower_hook): ... this.
7879 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7880 (upper_hook): ... this.
7881 (grub_mmap_get_post64: hook): Likewise. Rename to ...
7882 (post64_hook): ... this.
7883 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
7884 Likewise. Rename to ...
7885 (lower_hook): ... this.
7886 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7887 (upper_hook): ... this.
7888 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
7889 (grub_mmap_iterate: fill_hook): Likewise.
7890 (fill_mask): Pass addr and mask within a single struct.
7891 (grub_cmd_badram: hook): Make static instead of nested. Rename
7893 (badram_iter): ... this.
7894 (grub_cmd_cutmem: hook): Likewise. Rename to ...
7895 (cutmem_iter): ... this.
7897 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7899 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
7900 delimit path in strings using quotes.
7901 * util/getroot.c (grub_guess_root_devices): Likewise.
7902 (grub_make_system_path_relative_to_its_root): Likewise.
7903 * util/grub-probe.c (probe): Likewise.
7904 * util/ieee1275/ofpath.c (find_obppath): Likewise.
7905 (xrealpath): Likewise.
7907 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7909 Fix compilation with older compilers.
7911 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
7912 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
7914 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
7915 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
7916 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
7918 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
7919 * include/grub/crypto.h: Add type defines.
7920 * util/import_gcrypth.sed: Remove duplicate type defines.
7922 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7924 New command list_trusted.
7926 * grub-core/commands/verify.c (grub_cmd_list): New function.
7928 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7930 * util/grub-mkimage.c (generate_image): Fix "size of public key"
7933 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
7935 Remove nested functions from PCI iterators.
7937 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
7938 passed to hook. Update all callers to pass appropriate hook data.
7939 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
7940 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
7941 Remove NESTED_FUNC_ATTR from here and from all users.
7942 (grub_pci_iterate): Update prototype.
7943 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
7944 instead of nested. Rename to ...
7945 (grub_cs5536_find_iter): ... this.
7946 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
7947 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
7949 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
7951 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
7953 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
7955 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
7956 * grub-core/video/radeon_fuloong2e.c
7957 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
7958 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
7959 find_card): Likewise.
7960 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
7963 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7965 * grub-core/commands/verify.c: Mark messages for translating.
7967 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7969 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
7972 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7974 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
7977 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7979 * autogen.sh: Do not try to delete nonexistant files.
7980 * util/import_gcrypth.sed: Add some missing header removals.
7982 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
7984 Clean up dangling references to grub-setup.
7985 Fixes Ubuntu bug #1082045.
7987 * docs/grub.texi (Images): Refer generally to grub-install rather
7988 than directly to grub-setup.
7989 (Installing GRUB using grub-install): Remove direct reference to
7991 (Device map) Likewise.
7992 (Invoking grub-install): Likewise.
7993 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
7994 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
7995 * util/grub-install.in (usage): Likewise.
7997 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
7998 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8000 * configure.ac: Remove grub_setup output variable.
8002 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8004 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8005 grub-setup to grub-sparc64-setup.
8007 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8009 Import gcrypt public-key cryptography and implement signature checking.
8011 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8013 * grub-core/fs/ntfs.c: Ue more appropriate types.
8014 * grub-core/fs/ntfscomp.c: Likewise.
8015 * include/grub/ntfs.h: Likewise.
8017 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8019 Support Apple FAT binaries on non-Apple platforms.
8021 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8022 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8024 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8027 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8029 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8032 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8034 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8035 explicitly zeroing elements.
8036 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8037 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8038 of elements in a structure already allocated using grub_zalloc.
8039 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8041 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8043 * docs/grub.texi (grub_cpu): New subsection.
8044 (grub_platform): Likewise.
8046 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8048 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8050 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8052 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8055 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8057 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8058 * grub-core/fs/ntfscomp.c: Likewise.
8059 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8060 (grub_ntfs_comp): Likewise.
8062 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8064 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8066 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8067 of groups_per_block. All users updated.
8069 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8071 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8072 grub_error properly.
8073 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8074 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8076 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8078 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8079 always in /boot/zfs.
8080 Reported by: Yuta Satoh.
8082 2013-01-03 Yuta Satoh <nigoro>
8084 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8087 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8089 * configure.ac: Extend -Wno-trampolines to host.
8091 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8093 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8096 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8098 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8099 (Invoking grub-script-check): Likewise.
8101 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8103 * docs/grub.texi (Invoking grub-mount): New section.
8104 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8106 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8108 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8109 test failures, so that a failing unit test correctly causes 'make
8112 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8114 Fix failing printf test.
8116 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8117 '$' in the correct order when collecting type information.
8119 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8121 * docs/grub.texi (configfile): Explain environment variable
8123 (source): New section.
8124 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8126 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8128 Remove several trivially-unnecessary uses of nested functions.
8130 * grub-core/commands/i386/pc/sendkey.c
8131 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8133 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8135 (legacy_file_getline): ... this.
8136 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8138 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8139 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8141 (probe_dummy_iter): ... this.
8142 * grub-core/kern/i386/coreboot/mmap.c
8143 (grub_linuxbios_table_iterate: check_signature): Likewise.
8144 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8145 check_varstate): Likewise. Mark inline.
8146 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8147 an additional parameter.
8148 (find_long: fnd_long): Likewise. Pass two additional parameters.
8149 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8150 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8151 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8152 Likewise. Rename to ...
8153 (grub_cmos_find_port_iter): ... this.
8154 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8156 (find_rtc_iter): ... this.
8158 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8159 function directly into the function body, since it is only called
8162 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8164 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8165 __attribute__ ((unused)).
8166 * grub-core/video/bochs.c (find_card): Likewise.
8167 * grub-core/video/cirrus.c (find_card): Likewise.
8168 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8169 * grub-core/video/sis315pro.c (find_card): Likewise.
8170 * grub-core/video/sm712.c (find_card): Likewise.
8172 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8174 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8175 Fixes Savannah bug #37821.
8177 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8179 Apply program name transformations at build-time rather than at
8180 run-time. Fixes Debian bug #696465.
8182 * acinclude.m4 (grub_TRANSFORM): New macro.
8183 * configure.ac: Create output variables with transformed names for
8185 * util/bash-completion.d/grub-completion.bash.in: Use
8186 pre-transformed variables for program names.
8187 * util/grub-install.in: Likewise.
8188 * util/grub-kbdcomp.in: Likewise.
8189 * util/grub-mkconfig.in: Likewise.
8190 * util/grub-mkconfig_lib.in: Likewise.
8191 * util/grub-mknetdir.in: Likewise.
8192 * util/grub-mkrescue.in: Likewise.
8193 * util/grub-mkstandalone.in: Likewise.
8194 * util/grub-reboot.in: Likewise.
8195 * util/grub-set-default.in: Likewise.
8196 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8197 * tests/util/grub-shell-tester.in: Remove unused assignment.
8198 * tests/util/grub-shell.in: Likewise.
8199 * util/grub.d/00_header.in: Likewise.
8201 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8203 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8205 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8207 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8209 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8211 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8212 Reported by: Eriks Latosheks <foresterlv>.
8214 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8216 * docs/grub.texi (Network): Update instructions on generating netboot
8219 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8221 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8222 around device name if necessarry.
8224 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8226 * util/grub-install.in: Follow the symbolic link parameter added
8227 to the file command.
8229 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8231 * util/grub-install.in: Remove stale TODO.
8233 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8235 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8236 dynamic allocation for the bootpath buffer.
8238 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8240 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8243 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8245 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8246 argument rather than font name. All users updated.
8247 (grub_gfxterm_set_window): Likewise.
8249 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8251 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8254 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8256 * util/getroot.c (convert_system_partition_to_system_disk): Support
8259 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8261 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8262 infinite loop on corrupted FS.
8264 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8266 Fix big-endian mtime.
8268 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8269 together sec and usec.
8270 (grub_ufs_dir): Use correct byteswapping for UFS time.
8272 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8274 Support big-endian UFS1.
8276 * Makefile.util.def (libgrubmods): Add ufs_be.c
8277 * grub-core/Makefile.core.def (ufs1_be): New module.
8278 * grub-core/fs/ufs_be.c: New file.
8279 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8282 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8284 * include/grub/types.h: Fix functionality unaffecting typo in
8285 GRUB_TARGET_WORDSIZE conditional macro.
8287 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8289 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8291 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8293 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8294 that /netbsd appears first (when it exists).
8296 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8298 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8299 Fixes Savannah bug #37558.
8301 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8303 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8304 description of extract_entries_configfile.
8306 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8308 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8310 (grub_cmd_linux): Likewise.
8311 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8312 preferred_lifetime. Update all users.
8314 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8316 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8317 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8319 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8321 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8322 errors from grub-probe to /dev/null, not stdout.
8324 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8326 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8329 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8331 * util/grub-install.in: Make the error message if $source_dir
8332 doesn't exist more useful.
8334 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8336 Fix grub-emu build on FreeBSD.
8338 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8339 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8341 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8342 implementation is currently Linux-specific.
8343 * util/getroot.c (exec_pipe): Define only on Linux or when either
8344 libzfs or libnvpair is unavailable.
8345 (find_root_devices_from_poolname): Remove unused path variable.
8347 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8349 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8350 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8351 should fit before end == 63.
8353 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8355 * util/grub-setup.c (write_rootdev): Remove unused core_img
8356 parameter. Update all callers.
8357 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8358 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8361 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8363 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8364 (grub_add_tab): New function.
8365 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8366 * util/grub.d/10_illumos.in: Likewise.
8367 * util/grub.d/10_kfreebsd.in: Likewise.
8368 * util/grub.d/10_linux.in: Likewise.
8369 * util/grub.d/10_netbsd.in: Likewise.
8370 * util/grub.d/10_windows.in: Likewise.
8371 * util/grub.d/10_xnu.in: Likewise.
8372 * util/grub.d/20_linux_xen.in: Likewise.
8373 * util/grub.d/30_os-prober.in: Likewise.
8375 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8377 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8378 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8379 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8380 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8381 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8383 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8384 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8386 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8388 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8390 Reported by: BURETTE, Bernard.
8392 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8394 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8397 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8399 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8400 IEEE1275 machines. Fixes powerpc-emu compilation.
8401 * include/grub/terminfo.h: Likewise.
8403 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8405 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8407 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8409 (efiemu_set_variable): Make vendor_guid a const pointer.
8411 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8413 Don't require grub-mkconfig_lib to generate manpages for programs.
8415 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8416 dependencies, don't add grub-mkconfig_lib.
8417 (program): Pass empty adddeps.
8418 (script): Pass grub-mkconfig_lib as adddeps.
8420 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8422 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8423 * util/getroot.c (grub_find_device): Likewise.
8424 (get_mdadm_uuid): Likewise.
8425 (grub_util_is_imsm): Likewise.
8426 (grub_util_pull_device): Likewise.
8427 * util/grub-probe.c (probe): Likewise.
8429 2012-09-10 Benoit Gschwind <gschwind>
8431 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8432 (devs): Add devpath_8.
8434 2012-09-08 Peter Jones <pjones@redhat.com>
8436 * grub-core/Makefile.core.def (efifwsetup): New module.
8437 * grub-core/commands/efi/efifwsetup.c: New file.
8438 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8439 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8441 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8443 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8445 * configure.ac: Add SuSe path.
8447 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8451 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8453 * util/import_gcry.py: Sort cipher_files, to make build system
8454 generation more deterministic.
8456 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8458 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8459 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8460 (grub_set_datetime): Likewise.
8462 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8464 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8467 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8469 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8471 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8473 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8475 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8477 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8478 required for checkouts from bzr, but it may be useful for users or
8479 distributors wishing to update translations against a tarball
8480 distribution, and it can be helpful for the tarball to be a superset
8483 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8485 * Makefile.am (EXTRA_DIST): Add
8486 grub-core/tests/boot/linux.init-mips.S,
8487 grub-core/tests/boot/linux.init-ppc.S, and
8488 grub-core/tests/boot/linux-ppc.cfg.
8490 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8492 * grub-core/mmap/mips/loongson: Remove empty directory.
8494 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8496 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8499 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8501 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8504 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8506 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8508 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8510 * po/POTFILES.in: Regenerated.
8512 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8514 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8515 (NetBSD): New subsection.
8517 2012-07-22 Ales Nesrsta <starous@volny.cz>
8519 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8520 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8522 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8524 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8525 * util/grub.d/10_hurd.in: Add missing quoting.
8526 * util/grub.d/10_illumos.in: Likewise.
8527 * util/grub.d/10_kfreebsd.in: Likewise.
8528 * util/grub.d/10_linux.in: Likewise.
8529 * util/grub.d/20_linux_xen.in: Likewise.
8531 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8533 New command `lsefi'.
8535 * grub-core/Makefile.core.def (lsefi): New module.
8536 * grub-core/commands/efi/lsefi.c: New file.
8537 * include/grub/efi/api.h: Add more GUIDs.
8539 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8541 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8542 (grub_bsd_elf32_hook): Likewise.
8543 (grub_bsd_elf64_size_hook): Likewise.
8544 (grub_bsd_elf64_hook): Likewise.
8545 (grub_bsd_load_elf): Likewise.
8547 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8549 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8550 if hash function is unavailable.
8551 (dec_stream_header): Likewise.
8553 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8555 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8558 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8560 Fix coreboot compilation.
8562 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8563 (grub_vga_text_init_real): ... this.
8564 (grub_vga_text_fini): Rename to ...
8565 (grub_vga_text_fini_real): ... this.
8567 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8569 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8571 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8573 * grub-core/lib/legacy_parse.c: Support clear and testload.
8575 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8577 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8579 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8581 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8583 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8585 * grub-core/net/tftp.c (ack): Fix endianness problem.
8586 (tftp_receive): Likewise.
8587 Reported by: Michael Davidsaver.
8589 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8591 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8593 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8595 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8596 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8597 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8599 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8601 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8603 Reported by: Stuart Hayes.
8605 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8607 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8609 * grub-core/Makefile.core.def (mda_text): New module.
8610 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8611 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8612 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8613 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8615 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8616 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8617 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8619 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8621 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8623 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8625 * grub-core/term/i386/vga_common.c: Removed.
8626 * include/grub/i386/vga_common.h: Likewise.
8627 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8628 (grub_vga_cr_bw_read): Likewise.
8629 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8630 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8631 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8632 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8633 grub_vga_cr_read/grub_vga_cr_write.
8634 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8636 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8638 * configure.ac: Bump version to 2.00.
8639 * grub-core/normal/main.c (features): Add feature_200_final.
8641 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8642 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8644 * NEWS: Fix unclarity and language mistakes.
8646 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8648 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8649 additional size to 3 pages.
8650 Reported by: Stuart Hayes.
8652 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8654 * NEWS: Add 2.00 entry.
8656 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8658 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8659 put explicit "/" for empty path.
8660 (wildcard_expand): Improve dprintf.
8662 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8664 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8665 it's equal to currnode. This can happen with "" symlink.
8667 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8669 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8670 echo shell command by printf command.
8672 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8674 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8675 the value returned by firmware is the maximal position, not diumension.
8676 (grub_terminfo_output_state): Use a more sane fallback.
8678 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8680 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8682 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8684 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8685 frequency to 150 MHz.
8687 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8691 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8693 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8695 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8697 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8699 Handle slash in HFS label.
8701 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8702 (grub_hfs_dir): Tanslate slash.
8703 (grub_hfs_label): Don't translate slash.
8705 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8707 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8708 network protocol listing since it introduces problematic dependency on
8711 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8713 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8715 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8717 Init video early on yeeloong to avoid being rebooted by watchdog.
8719 * grub-core/Makefile.am (gensm712): New target.
8720 (sm712_start.S): Likewise.
8721 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8722 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8723 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8725 * include/grub/vga.h: Move registry definitions to...
8726 * include/grub/vgaregs.h: ... here.
8728 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8730 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8733 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8735 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8736 platforms with firmware disk drivers in the core.
8738 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8740 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8741 informative verbose message.
8742 (read_lv): Handle 64-bit segment size.
8744 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8746 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8748 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8750 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8751 character but still remove trainling spaces.
8752 (grub_fat_label): Ignore archive flag.
8754 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8756 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8757 cast between linux_kernel_header and linux_kernel_params.
8759 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8761 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8763 (grub_raid6_recover_func_t): Likewise.
8764 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8765 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8767 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8769 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8771 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8775 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8776 [__NetBSD__]: Add explicit cast before bitshift.
8778 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8780 * configure.ac: Bump to 2.00~rc1.
8782 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8784 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8787 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8788 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8790 * docs/grub.texi: Fix search syntax.
8791 (Multi-boot manual config): Put msdos rather than GPT example.
8792 Grammar corrections.
8794 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8796 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8798 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8800 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8802 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8804 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8805 message on double free. Put the value of magic in case of mismatch.
8807 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8809 Speed-up video on yeeloong.
8811 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8813 (grub_video_sm712_video_fini): Unmap cached_ptr.
8814 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8815 (grub_video_sm712_set_active_render_target): Removed.
8816 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8817 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8820 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8822 Avoid flushing the same line multiple times on loongson.
8824 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8825 Step in 32 bytes and not 1 byte.
8826 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8829 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8831 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8834 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8836 Implement flow control for http.
8838 * grub-core/net/http.c (parse_line): Handle response 206.
8839 (http_receive): Stall if too many packets are in the queue.
8840 (http_establish): Fix range header.
8841 (http_seek): Fix double free.
8842 (http_close): Likewise.
8843 (http_packets_pulled): New function.
8844 (grub_http_protocol): Set http_seek
8845 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8846 (ack_real): Set window depending on i_stall.
8847 (grub_net_send_tcp_packet): Likewise.
8848 (grub_net_tcp_stall): New function.
8849 (grub_net_tcp_unstall): Likewise.
8850 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8851 (grub_net_tcp_unstall): Likewise.
8853 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8855 * grub-core/net/tftp.c: Decrease stall to 50 packets.
8857 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8859 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
8861 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8863 * tests/util/grub-shell.in: Fix a typo.
8865 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8867 Implement flow control for tftp.
8869 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
8870 packets but stop only if stop condition is satisfied.
8871 (grub_net_fs_read_real): Call packets_pulled after real read. Use
8872 `stall' instead of `eof' as stop condition.
8873 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
8874 (http_err): Likewise.
8875 * grub-core/net/tftp.c (ack): Replace the first argument with data
8877 (tftp_receive): Stall if too many packets are in wait queue.
8878 (tftp_packets_pulled): New function.
8879 (grub_tftp_protocol): Set packets_pulled.
8880 * include/grub/net.h (grub_net_packets): New field count.
8881 (grub_net_put_packet): Increment count.
8882 (grub_net_remove_packet): Likewise.
8883 (grub_net_app_protocol): New field `packets_pulled'.
8884 (grub_net): New field `stall'.
8886 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8888 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
8889 sync part to handle them.
8891 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8893 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
8894 * grub-core/net/drivers/ieee1275/ofnet.c
8895 (grub_ieee1275_net_config_real): Likewise.
8897 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8899 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
8900 the direct route for server/gateway.
8902 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8904 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
8905 IP address to server name since we may not hame the DNS.
8907 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8909 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
8910 freeing random buffer on failure.
8911 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
8913 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8915 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
8917 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8919 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
8921 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
8922 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
8923 Handle malloc error correctly.
8925 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8927 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
8930 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8932 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
8935 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8937 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
8938 none is explicitly specified.
8940 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8942 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
8945 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8947 Respect netmask from bootp/dhcp.
8949 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
8950 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
8951 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
8953 (grub_net_add_ipv4_local): ... this.
8954 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
8955 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
8956 (grub_net_add_ipv4_local): New proto.
8958 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8960 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
8961 determining EFI memory map size.
8963 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8965 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
8967 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8969 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
8970 when looking for partition separator.
8972 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8974 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8977 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8979 Restructure FAT driver to avoid hook in label reading as it hits a
8982 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
8983 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
8984 (grub_fat_iterate_dir): Split into ...
8985 (grub_fat_iterate_init): ... this, ...
8986 (grub_fat_iterate_fini): ... this, ...
8987 (grub_fat_iterate_dir_next): ... and this. All users updated.
8989 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
8991 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
8992 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
8993 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8994 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
8995 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
8996 New fields last_key and last_key_time.
8997 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
8998 extended key-esc into extended key-extended key.
9000 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9002 Avoid unnecessary memcpy of whole video buffer.
9004 * grub-core/video/fb/video_fb.c (dirty): New struct.
9005 (framebuffer): Add members current_dirty and previous_dirty.
9006 (dirty): New function.
9007 (grub_video_fb_fill_rect): Update dirty.
9008 (common_blitter): Likewise.
9009 (grub_video_fb_scroll): Likewise.
9010 (doublebuf_blit_update_screen): Copy only dirty part.
9011 (doublebuf_pageflipping_update_screen): Likewise.
9012 (grub_video_fb_doublebuf_blit_init): Init dirty.
9013 (doublebuf_pageflipping_init): Likewise.
9014 (grub_video_fb_setup): Likewise.
9016 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9018 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9021 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9023 Fix wildcard regexp dot and other special characters handling.
9024 Reported by: Robert Mabee.
9026 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9027 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9028 (split_path): Trigger expansion on '?'.
9029 (unescape): New function.
9030 (wildcard_expand): Unescape parts copied without globbing.
9031 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9032 (grub_script_arglist_to_argv): Don't unescape expansions.
9034 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9036 * include/grub/net.h (grub_net_card): New member txbufsize.
9037 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9038 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9039 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9040 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9042 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9043 compatible property to check for macs. Set
9044 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9045 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9046 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9047 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9048 (send_card_buffer): Use txbuf.
9049 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9050 nested function out of the parent while on it.
9052 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9054 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9056 (grub_ieee1275_net_config_real): Fix config pointer.
9058 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9060 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9061 filename parsing to non-block devices.
9063 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9065 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9067 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9069 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9072 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9074 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9075 UUID search command even if hints probing failed.
9077 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9079 * po/POTFILES.in: Regenerated.
9081 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9083 Speed-up video on fuloong.
9085 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9087 (grub_pci_device_unmap_range): Handle non-cached address.
9088 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9090 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9091 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9092 (grub_video_sis315pro_set_active_render_target): Removed.
9093 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9094 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9095 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9097 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9100 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9102 * docs/grub.texi (Multi-boot manual config): New section.
9104 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9106 Avoid slow read-back from VRAM.
9108 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9110 * grub-core/video/fb/video_fb.c
9111 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9112 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9113 (front_target): Remove front_target. Add pages.
9114 (grub_video_fb_init): Skip setting front_pages.
9115 (grub_video_fb_fini): Likewise.
9116 (doublebuf_blit_update_screen): Use pages.
9117 (grub_video_fb_doublebuf_blit_init): Likewise.
9118 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9119 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9120 (grub_video_fb_setup): Prefer doublebuffing.
9122 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9124 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9127 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9131 * tests/util/grub-shell.in: Handle loongson.
9132 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9134 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9135 Reboot instead of shutdown if REBOOT is defined.
9137 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9139 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9140 sized ports since unlike on real hardware qemu supports only 32-bit
9143 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9145 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9146 * util/grub-mkrescue.in: Handle loongson.
9148 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9150 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9151 Set is_part appropriately.
9152 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9153 names. Canonicalize partition without full disk.
9155 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9157 Revert usb-quiesce since it's wrong.
9159 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9160 (grub_ofdisk_init): Don't do quiesce.
9162 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9164 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9165 PowerMac workaround to Xserves as well.
9166 Information supplied by: Benjamin Herrenschmidt.
9168 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9170 Don't assume that beginning address is also the entry point on ppc.
9172 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9173 (grub_linux_boot): Use linux_entry.
9174 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9175 (grub_linux_load64): Likewise.
9177 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9179 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9181 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9183 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9184 needlessly lose the console.
9186 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9188 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9191 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9193 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9194 than current grub_get_rtc() not implemented when booted with
9195 coreboot without TSC.
9197 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9198 Add machine/time.h to kernel headers on loongson.
9199 * grub-core/Makefile.core.def (kernel): Remove
9200 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9201 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9202 (grub_get_rtc): Likewise.
9203 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9204 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9205 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9206 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9207 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9208 rather than installing known non-working time source.
9209 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9210 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9211 * include/grub/time.h: Don't include machine/time.h.
9212 * include/grub/efi/time.h: Removed.
9213 * include/grub/i386/efi/time.h: Likewise.
9214 * include/grub/i386/ieee1275/time.h: Likewise.
9215 * include/grub/powerpc/ieee1275/time.h: Likewise.
9216 * include/grub/sparc64/ieee1275/time.h: Likewise.
9217 * include/grub/x86_64/efi/time.h: Likewise.
9219 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9221 Remove dot on i and j when combining with above diacritics.
9223 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9225 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9226 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9227 with dotless variants when any combining above is present.
9229 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9231 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9232 text and not binary.
9234 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9236 Stop polling as soon as we have the packet we were waiting for.
9238 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9240 * grub-core/net/arp.c (have_pending): New var.
9241 (pending_req): Likewise.
9242 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9244 (grub_net_arp_receive): Set have_pending.
9245 * grub-core/net/dns.c (recv_data): New field stop.
9246 (recv_hook): Set stop.
9247 (grub_net_dns_lookup): Init stop and use as stop condition.
9248 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9250 * grub-core/net/net.c (grub_net_poll_cards): New argument
9251 stop_condition. Stop when it goes true.
9252 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9254 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9256 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9258 Keep TX and RX buffers on EFI rather than always allocate new ones.
9260 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9261 card. All users updated.
9262 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9263 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9264 (get_card_packet): Likewise.
9265 (grub_efinet_findcards): Init new fields.
9267 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9269 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9270 compilation error on sparc64.
9272 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9274 Use ITC on IA64 rather than broken routine based on daytime.
9276 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9278 (grub_get_rtc) [__ia64__]: Likewise.
9279 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9280 (get_itc): New function.
9281 (grub_rtc_get_time_ms): Likewise.
9282 (grub_machine_init): Calibrate ITC.
9283 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9284 Keep only on non-ia64. Don't export since it's broken and used only
9285 if TSC is unavailable.
9287 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9289 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9291 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9292 Skip if parent is unused.
9294 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9296 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9298 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9300 Fix wildcard escaping.
9302 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9303 * grub-core/script/execute.c (wildcard_escape): .. to here.
9305 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9306 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9308 * grub-core/script/execute.c (gettext_append): Always escape.
9309 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9310 * grub-core/script/yylex.l: Don't cut away the escaping.
9311 * tests/grub_script_echo1.in: Add tests with wildcard.
9313 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9315 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9316 (ftdi_hw_configure): Likewise.
9317 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9319 (real_config): Handle 1.5 stop bits.
9320 (pl2303_hw_configure): Likewise.
9322 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9324 * Makefile.am: Add ppc linux bootcheck.
9325 * grub-core/tests/boot/linux-ppc.cfg: New file.
9326 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9328 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9330 * tests/grub_script_expansion.in: Skip network protocols.
9332 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9334 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9336 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9338 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9342 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9344 ESCC serial driver for conducting sautomated tests in qemu.
9345 Not tested on real hardware.
9347 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9348 * grub-core/term/ieee1275/escc.c: New file.
9349 * grub-core/Makefile.core.def (escc): New module.
9351 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9353 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9355 (serial_hw_fetch): Don't read invalid handle.
9356 (serial_hw_put): Don't write into invalid handle.
9358 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9360 Add a 1.5 stop bits value.
9362 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9363 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9364 GRUB_SERIAL_STOP_BITS_1_5.
9366 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9368 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9369 value rather than let it uninited.
9371 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9373 * grub-core/commands/wildcard.c (+check_file): New function.
9374 (wildcard_expand): Don't expand to non-existing files, expand with
9375 suffix and not attempt to expand if not needed.
9377 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9379 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9380 out of partitions containing other partitions.
9382 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9384 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9385 on some qemu versions with GRUB.
9387 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9389 (grub_openbsd_bootarg_pcibios): New struct.
9390 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9393 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9395 * tests/util/grub-shell.in: Trim firmware output on EFI.
9397 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9399 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9400 and coreboot since it's already in kernel.
9402 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9404 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9405 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9406 to here. New return value start. All users updated.
9407 Recursively scan linear mappings.
9408 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9410 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9411 Use grub_util_get_dm_node_linear_info.
9412 * util/getroot.c (convert_system_partition_to_system_disk): Use
9413 grub_util_info rather than grub_dprintf.
9414 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9416 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9418 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9420 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9421 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9423 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9425 * include/grub/types.h (grub_set_unaligned64): New function.
9426 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9429 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9431 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9432 (grub_ofdisk_fini): Quiesce USB devices.
9434 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9436 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9439 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9441 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9443 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9445 * grub-core/disk/pata.c (grub_pata_pio_read)
9446 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9447 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9449 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9451 Extend automated tests to qemu-mips.
9453 * Makefile.am: reorganise tests and enable qemu-mips.
9454 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9455 * grub-core/tests/boot/linux.init-mips.S: New file.
9456 * tests/partmap_test.in: Handle ata0 disks.
9457 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9460 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9462 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9464 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9467 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9469 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9470 (grub_halt): Likewise.
9471 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9473 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9475 * grub-core/term/serial.c (grub_serial_register)
9476 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9477 the behaviour in line with x86 platforms.
9479 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9481 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9482 (grub_ata_strncpy): Likewise.
9483 (grub_ata_identify): Add missing byteswaps.
9485 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9487 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9489 (screen_read_char): Likewise.
9490 (grub_vga_text_cls): Likewise.
9492 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9494 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9496 (make_file_path): Likewise.
9498 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9500 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9502 Tested by: Paulo Flabiano Smorigo.
9503 Crucial information about API supplied by: Coleen <Last name unknown>.
9504 Reviewed by: Coleen <Last name unknown>.
9506 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9508 * util/grub-mkimage.c: Disable -Wcast-align.
9510 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9512 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9515 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9517 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9519 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9521 * util/grub-probe.c (escape_of_path): Fix double free.
9523 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9525 * grub-core/commands/videoinfo.c (hook): Show pitch.
9527 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9529 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9531 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9533 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9534 (probe): Add ieee1275 to OFW devices.
9536 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9538 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9540 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9542 Handle IBM OFW path.
9544 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9546 (of_path_of_scsi): Handle vdevice.
9548 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9550 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9551 Allocate in multiples of 16 to avoid adding a few bytes free region the
9554 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9556 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9557 Allocate in multiples of 16 to avoid adding a few bytes free region the
9559 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9561 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9563 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9565 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9566 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9568 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9570 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9572 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9574 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9575 resulted in \\ at the end of the line.
9577 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9579 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9580 (grub_parser_cmdline_state): Likewise.
9581 (grub_parser_split_cmdline): Likewise.
9583 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9585 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9586 /dev/root and /dev/dm-*.
9588 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9590 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9591 fix partially stale display.
9593 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9595 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9598 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9600 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9601 Fix MBR remapping workaround.
9602 (grub_util_biosdisk_read) [__linux__]: Likewise.
9604 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9606 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9608 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9610 * configure.ac: Bump to beta6.
9612 2012-05-31 Christer Weinigel <christer@weinigel.se>
9614 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9616 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9618 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9619 (grub_cmd_linux): Likewise.
9621 2012-05-31 Christer Weinigel <christer@weinigel.se>
9625 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9626 (GRUB_EHCI_MULT_TWO): Likewise.
9627 (GRUB_EHCI_MULT_THREE): Likewise.
9628 (GRUB_EHCI_CMASK_MASK): New enum value.
9629 (GRUB_EHCI_SMASK_MASK): Likewise.
9630 (GRUB_EHCI_CMASK_OFF): Likewise.
9631 (GRUB_EHCI_SMASK_OFF): Likewise.
9632 (grub_ehci_pci_iter): Enable periodic schedule.
9633 (grub_ehci_parse_notrun): Likewise.
9634 (grub_ehci_restore_hw): Likewise.
9635 (grub_ehci_setup_qh): Set flags for low speed transfers.
9636 (grub_ehci_find_qh): Use periodic list for low speed.
9637 (grub_ehci_setup_transfer): Check periodic queue as well.
9638 (grub_ehci_check_transfer): Likewise.
9639 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9641 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9643 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9646 2012-05-31 Peter Jones <pjones@redhat.com>
9648 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9649 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9650 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9652 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9654 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9655 uninited variable. Allocate at least setup_sects.
9657 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9659 Fix handling of EFI with big memory maps.
9661 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9662 (real_mode_mem): Likewise.
9663 (real_mode_target): Likewise.
9664 (real_mode_pages): Likewise.
9665 (prot_mode_pages): Likewise.
9666 (linux_params): New var.
9667 (linux_cmdline): Likewise.
9668 (free_pages): Don't set real mode variables.
9669 (allocate_pages): Don't allocate real mode memory.
9670 (grub_e820_add_region): Remove the limit.
9671 (grub_linux_boot): Allocate and copy real mode memory.
9672 (grub_linux_unload): Free linux_cmdline.
9673 (grub_cmd_linux): Use temporary storage for parameters.
9674 (grub_cmd_initrd): Likewise.
9675 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9676 (linux_kernel_params): Make it 1K big.
9678 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9680 * Makefile.util.def: Remove -Wno-format.
9681 * grub-core/Makefile.core.def: Likewise.
9683 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9685 * tests/cmp_unit_test.c: Add missing failure message.
9686 * tests/example_unit_test.c: Likewise.
9687 * tests/printf_unit_test.c: Likewise.
9689 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9691 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9692 relaxation of protective MBR requirements.
9694 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9696 * configure.ac: Add condition for COND_HOST_XNU.
9697 * Makefile.util.def (10_xnu): New script.
9698 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9700 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9702 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9705 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9707 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9708 Binary on other platforms stays identical.
9710 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9712 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9715 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9717 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9719 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9721 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9722 rather than defining size_t ourselves to avoid conflict.
9724 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9726 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9727 initialisation to avoid __bzero reference.
9729 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9731 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9733 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9734 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9735 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9736 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9737 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9739 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9741 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9742 * grub-core/kern/misc.c: Likewise.
9743 * grub-core/loader/i386/xnu.c: Likewise.
9744 * include/grub/i386/tsc.h: Likewise.
9745 * include/grub/symbol.h: Likewise.
9747 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9749 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9750 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9753 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9755 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9756 Implement Apple flavour.
9757 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9759 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9761 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9762 (memmove) [__APPLE__]: Likewise.
9763 (memcpy) [__APPLE__]: Likewise.
9764 (memset) [__APPLE__]: Likewise.
9765 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9766 (memmove) [__APPLE__]: Likewise.
9767 (memcpy) [__APPLE__]: Likewise.
9768 (memset) [__APPLE__]: Likewise.
9770 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9772 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9775 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9777 * grub-core/normal/main.c (read_config_file): Provide config_file and
9779 * util/grub.d/41_custom.in: Use config_directoy when available.
9781 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9783 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9784 (grub_bfs_dir): Likewise.
9786 2012-05-27 Peter Jones <pjones@redhat.com>
9788 The old code gives arguments to a printf function which can't work
9789 correctly, and the compiler complains.
9791 * grub-core/tests/example_functional_test.c (example_test): Add
9793 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9794 * include/grub/test.h (grub_test_assert_helper): New declaration.
9795 (grub_test_assert): Use grub_test_assert_helper.
9797 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9799 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9800 (exfctest): ... this to avoid overlong filenames.
9803 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9805 Handle "." and ".." on squashfs.
9807 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9808 Make inode numbers into stack.
9809 (grub_squash_read_symlink): Use stack.
9810 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9811 (make_root_node): Fill stack.
9812 (grub_squash_open): Use stack.
9814 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9816 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9819 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9821 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9822 stderr on test calls.
9824 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9826 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9828 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9830 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9832 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9834 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9837 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9839 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9840 (grub_hfsplus_iterate_dir): Add "." and "..".
9842 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9844 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9845 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9847 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9849 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9850 (find_path): Handle "." and "..".
9852 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9854 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9855 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
9856 (grub_affs_iterate_dir): Handle hardlinks.
9858 2012-05-26 Matthew Garrett <mjg@redhat.com>
9860 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
9861 (grub_efi_console_fini): Likewise.
9862 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
9863 (grub_video_gop_fill_mode_info): Rename to ...
9864 (grub_video_gop_fill_real_mode_info): ... this.
9865 (grub_video_gop_fill_mode_info): New function.
9866 (grub_video_gop_setup): Setup double framebuffer.
9867 (grub_video_gop_get_info_and_fini): Use original framebuffer.
9869 (grub_video_gop_swap_buffers): Copy framebuffer.
9870 (grub_video_gop_fini): Free offscreen buffer.
9871 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
9873 (grub_efi_gop_blt_pixel): New struct.
9875 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9877 * gentpl.py: Remove error disabling for objconv.
9879 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9881 * configure.ac: Remove -Wunitialized as it's not available on older
9884 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9886 Fix extent overflow comparator.
9888 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
9889 (grub_hfsplus_read_block): Set type.
9890 (grub_hfsplus_cmp_extkey): Compare type.
9892 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
9894 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
9896 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9898 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
9901 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9903 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
9904 (dejavu_bold_14.pf2): New target.
9906 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9908 * configure.ac: Fix djvu font detection.
9910 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9912 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
9913 ext* instead of ext2.
9915 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
9917 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
9920 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
9922 * docs/grub-dev.texi: Remove dot from .png.
9924 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9926 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
9927 protective entry in any slot.
9928 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
9929 if protective entry is found in any slot.
9931 Protective entry in non-first slot make no sense but is a widespread
9934 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9936 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
9938 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9940 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
9942 (grub_reiserfs_open): Don't free root.
9944 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
9946 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
9947 after freeing for safety.
9949 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9951 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
9952 Reported by: Jordan Uggla.
9954 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
9956 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
9957 actual implementation. Specifically, clarify that the grub menu will
9958 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
9961 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
9963 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
9966 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9968 Remove unjustified hard dependency of normal.mod on gfxterm.
9970 * include/grub/term.h (grub_term_output): New member fullscreen.
9971 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
9972 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
9973 (grub_gfxterm): Set .fullscreen.
9974 * grub-core/normal/menu.c (menu_init): Use fullscreen.
9975 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
9977 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9979 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
9980 mentioning possible problems with non-ASCII (non-compliant) ISOs.
9981 Mention case-insensitive AFFS, SFS and JFS.
9983 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9985 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
9987 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
9989 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
9992 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
9994 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
9995 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
9997 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
9999 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10000 (grub_jfs_mount): Fill caseins.
10001 (grub_jfs_find_file): Respect caseins.
10003 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10005 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10008 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10010 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10011 New argument origpath. All users updated.
10013 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10015 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10016 (read_attr): Ensure that we read start of possibly compressed block.
10018 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10020 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10021 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10024 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10026 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10027 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10028 (dejavu.pf2): Replace with ...
10029 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10032 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10034 * util/grub.d/20_linux_xen.in: Add missing line.
10036 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10038 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10039 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10040 (grub_utf16_to_utf8): Likewise.
10042 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10044 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10045 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10046 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10047 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10048 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10049 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10051 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10053 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10056 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10058 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10059 (grub_udf_read_symlink): Handle read_string failure.
10061 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10063 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10066 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10068 Fix handling of UDF symlinks.
10070 * grub-core/fs/udf.c (read_string): New argument outbuf.
10072 (grub_ufs_read_symlink): Rename to ...
10073 (grub_udf_read_symlink): ... this. All users updated.
10074 Handle symlinks with more than one component.
10076 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10078 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10079 symlinks. Replace leading colon with a slash.
10081 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10083 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10086 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10088 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10089 match in inner node.
10091 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10093 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10094 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10095 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10096 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10097 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10098 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10099 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10100 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10101 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10103 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10105 Use grub-probe and not cmp to check that disk is empty.
10107 * util/grub-install.in: Use grub-probe for zero-check.
10108 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10109 (probe): Handle PRINT_ZERO_CHECK.
10110 (argp_parser): Handle -t zero_check.
10112 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10114 Flush block cache on adding disk to device map.
10116 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10117 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10119 (read_device_map): Likewise.
10120 (open_device): Flush on opening.
10122 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10124 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10125 (handle_symlink): Fix off-by-one error.
10126 Canonicalize the target.
10127 (grub_cpio_dir): Canonicalize the name.
10130 (grub_cpio_open): Canonicalize the name.
10132 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10134 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10137 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10139 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10140 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10142 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10144 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10145 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10148 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10150 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10153 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10155 Fix UFS1 big file support.
10157 * grub-core/fs/ufs.c (INODE): Removed.
10158 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10160 (INODE_MODE): Simplify.
10161 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10162 (grub_ufs_lookup_symlink): Don't use INODE.
10164 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10166 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10168 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10169 (grub_minix_data): Replace log_block_size with block_size.
10170 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10171 (grub_minix_mount): Fill block_size.
10173 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10175 * configure.ac: Bump to beta5.
10177 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10179 Fix wrapped HFS+ handling.
10181 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10182 blocks_start. All users updated.
10183 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10185 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10187 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10189 Fix long symlinks on reiserfs.
10191 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10192 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10193 (grub_reiserfs_iterate_dir): Save size for non-directories.
10194 (grub_reiserfs_open): Don't reread stat block as we already know the
10196 (grub_reiserfs_read): Split into...
10197 (grub_reiserfs_read_real): ... and ...
10198 (grub_reiserfs_read): ...this.
10200 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10202 Fix non-indexed JFS.
10204 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10205 (grub_jfs_data): New field namecomponentlen.
10206 (grub_jfs_mount): Fill namecomponentlen.
10207 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10209 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10211 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10212 * tests/grub_script_echo1.in: Add tests.
10214 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10216 * util/grub-install.in: Ignore empty devicetree directory.
10218 2012-05-08 Bean <bean123ch@gmail.com>
10220 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10222 (free_rsm): Free header as well.
10223 (free_old_fragments): Fix memory leak.
10224 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10225 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10226 (destroy_pq): Likewise.
10227 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10229 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10231 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10232 resulting hash as a precaution.
10234 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10236 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10237 '_' in variable names.
10238 * grub-core/net/net.c (grub_net_network_level_interface_register):
10241 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10243 Fix AFFS with non-512B blocks.
10245 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10246 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10247 (grub_affs_data): Replace blocksize with log_blocksize.
10248 (grub_affs_read_block): Fix non-512B blocks.
10249 (grub_affs_read_symlink): Likewise.
10250 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10251 (grub_affs_read): Fix non-512B blocks.
10252 (grub_affs_label): Likewise.
10253 (grub_affs_mtime): Likewise.
10254 (grub_affs_mount): Fix block detection routine.
10256 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10258 Add filesystem mtime to AFFS.
10260 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10261 (aftime2ctime): New function.
10262 (grub_affs_dir): Use aftime2ctime.
10263 (grub_affs_label): Fix return value.
10264 (grub_affs_mtime): New function.
10265 (grub_affs_fs): Add mtime.
10267 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10269 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10272 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10274 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10277 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10279 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10281 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10283 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10285 (FLAGS_CASE_SENSITIVE): New enum value.
10286 (cache_entry): New struct.
10287 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10288 cache_size and cache.
10289 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10290 Add log_blocksize and fshelp_flags.
10291 (grub_sfs_read_extent): Handle non-512 blocks.
10292 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10293 (grub_sfs_read_file): Handle non-512 blocks.
10294 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10296 (grub_sfs_read_symlink): Handle non-512 blocks.
10297 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10298 (grub_sfs_dir): Free cache.
10299 (grub_sfs_close): Likewise.
10301 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10303 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10306 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10308 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10310 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10312 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10314 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10316 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10317 (grub_sfs_read_extent): Likewise.
10318 (grub_sfs_read_block): Likewise.
10319 (grub_sfs_mount): Likewise.
10320 (grub_sfs_iterate_dir): Likewise.
10321 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10322 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10324 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10326 Fix errors on compressed NTFS with 512B clusters.
10328 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10330 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10332 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10333 Relax check for inline extents.
10334 (ntfscomp): Return correct -1 on error and not 0.
10336 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10338 * util/grub-install.in: Fix handling of prefix containing spaces.
10340 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10342 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10343 (grub_squash_read_data): Fix offset byte-swapping.
10345 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10347 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10348 per common usage and preffered in several parts of code.
10349 (grub_memcmp): Likewise.
10350 (grub_strncmp): Likewise.
10351 * include/grub/misc.h (grub_strcasecmp): Likewise.
10352 (grub_strncasecmp): Likewise.
10353 * Makefile.util.def (cmp_test): New test.
10354 (grub_script_strcmp): Likewise.
10355 * tests/cmp_unit_test.c: New file.
10356 * tests/grub_script_strcmp.in: Likewise.
10357 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10359 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10361 * include/grub/pci.h: Move enums into no-asm part.
10363 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10365 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10367 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10369 * util/getroot.c (find_hurd_root_device): Try to make error message
10370 and comments to translators clearer.
10372 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10374 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10376 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10378 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10381 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10383 * docs/grub.cfg: Update.
10385 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10387 * docs/grub.texi (PXE): Remove not present variables.
10389 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10391 * grub-core/net/net.c (defserver_set_env): New function.
10392 (defserver_get_env): Likewise.
10393 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10395 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10397 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10400 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10402 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10403 * grub-core/kern/emu/hostdisk.c: Likewise.
10405 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10407 Handle hurd userspace partitions.
10409 * util/getroot.c (find_hurd_root_device): New function.
10410 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10412 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10414 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10416 Reported by: Bastian Blank.
10418 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10420 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10421 crossing page boundary.
10423 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10425 Fix B-tree search in BFS, especially in presence of non-ASCII
10428 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10429 (find_in_b_tree): Use standard bsearch + btree algorithm.
10431 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10433 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10436 2012-05-03 Matthew Garrett <mjg@redhat.com>
10437 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10439 Suspend broadcom cards in order to stop their DMA.
10441 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10442 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10443 (pci): Don't build on x86 EFI.
10444 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10445 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10447 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10448 stop_broadcom if running on EFI.
10449 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10450 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10451 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10452 (grub_pci_find_capability): New proto.
10454 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10456 * docs/grub.texi: Remove dot from the extension as it apparently
10457 doesn't work with some makeinfo versions.
10459 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10461 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10462 with GRUB expectance.
10464 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10466 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10468 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10470 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10471 zero after directory block since last entry may be not 0-terminated if
10472 it ends on block boundary. Use continue instead of if spanning whole
10475 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10477 Support 4K sectors UDF inline files.
10479 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10480 (grub_udf_extended_file_entry): Likewise.
10481 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10483 (get_fshelp_size): New function.
10484 (grub_udf_read_icb): Read whole block.
10485 (grub_udf_iterate_dir): Likewise.
10486 (grub_udf_dir): Likewise.
10487 (grub_udf_open): Likewise.
10489 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10491 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10493 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10495 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10496 inline symlinks in addition to workaround.
10498 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10500 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10502 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10504 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10506 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10508 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10510 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10512 Fix reiserfs big seek times.
10514 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10515 exact. All users updated.
10516 (grub_reiserfs_read): Use nearest btree search for seeking.
10517 Fix return value on error.
10519 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10521 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10523 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10524 * docs/grub.texi: Update menuentry description.
10526 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10528 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10529 crash when embedding onto filesystem.
10531 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10533 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10536 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10538 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10540 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10542 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10545 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10546 2012-05-01 Bean <bean123ch@gmail.com>
10548 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10550 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10552 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10553 Special behaviour for len = 0 to read whole file isn't used anywhere and
10554 can cause buffer ovewrflows in several places.
10556 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10558 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10560 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10562 Handle RAIDZ on non-512B sectors.
10564 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10565 max_children_ashift.
10566 (fill_vdev_info_real): Fill max_children_ashift.
10567 (read_device): Use max_children_ashift.
10569 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10571 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10573 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10575 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10577 * docs/grub.texi: Update device.map parts.
10579 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10581 Don't scan into non-diskfilter devices having diskfilter names.
10583 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10584 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10586 (scan_disk_hook): New function.
10588 2012-04-29 Bean <bean123ch@gmail.com>
10590 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10593 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10595 * configure.ac: Detect starfield theme font path
10596 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10598 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10600 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10601 geometry on serial consoles.
10603 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10605 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10606 because of network consoles.
10608 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10610 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10613 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10615 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10616 falls on Q syndrom.
10618 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10620 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10621 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10623 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10625 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10626 Allocate at lest 8192 for temporary buffer as required for lzo.
10628 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10630 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10631 to cluster_bits, since it's already added in.
10632 (grub_fat_read_data): Likewise.
10634 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10636 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10637 as long as cluster size is multiple of 512 bytes.
10639 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10641 * util/grub-mkrescue.in: Fix locale directory.
10643 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10645 * grub-core/kern/emu/hostdisk.c (map): Make static.
10647 2012-04-23 Bean <bean123ch@gmail.com>
10649 * util/grub-fstest.c (fstest): Add missing break.
10651 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10655 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10656 not define nr variable.
10657 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10658 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10659 grub_find_device): Do not define.
10661 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10663 Fix kfreebsd compile and behaviour.
10665 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10667 * util/getroot.c: Fix wait.h include.
10668 (grub_guess_root_devices): Error if grub_find_device fails.
10669 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10670 (grub_util_get_dev_abstraction): Likewise.
10671 (grub_util_pull_device): Likewise.
10672 (grub_util_get_grub_dev): Likewise.
10673 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10675 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10677 Fix and unify wholedisk detection.
10679 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10680 is_part. All users updated.
10681 (device_is_wholedisk): Removed.
10682 (grub_util_biosdisk_get_grub_dev): Use is_part.
10684 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10686 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10689 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10691 * configure.ac: Bump to beta4.
10693 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10695 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10696 --fs-uuid --set UUID syntax.
10698 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10700 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10703 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10705 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10707 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10709 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10711 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10713 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10715 2012-04-18 Bean <bean123ch@gmail.com>
10717 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10720 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10722 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10724 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10725 corresponding to GRUB partitions.
10726 (grub_util_biosdisk_write): Likewise.
10728 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10730 Scan mdraid before LVM.
10732 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10733 (grub_diskfilter_register_front): ... this.
10734 (grub_diskfilter_register_back): New function.
10735 All users of grub_diskfilter_register updated.
10737 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10739 * util/grub-install.in: Fix an automatic target detection bug.
10741 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10743 * util/grub-install.in: New option --efi-directory.
10745 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10747 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10748 boot services if we have no other choice.
10750 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10752 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10754 * tests/util/grub-shell.in: Update to --directory.
10756 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10758 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10760 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10762 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10763 (grub_minix_read_file): Likewise.
10764 (grub_minix_read_inode): Likewise.
10765 (grub_minix_find_file): Likewise.
10766 (grub_minix_dir): Likewise.
10768 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10770 * util/grub-setup.c (setup): Fix partition handling and blocklist
10773 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10775 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10776 redundant buggy overlap check.
10778 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10780 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10783 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10785 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10786 kh.loadflags on pre-2.00 kernels.
10788 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10790 Terminate UNDI and PXE before launching the payload to avoid problems
10793 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10794 (grub_loader_flags): ... this. All users updated.
10795 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10796 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10797 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10798 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10800 (grub_pxe_restore): Likewise.
10801 (fini_hnd): New var.
10802 (GRUB_MOD_INIT): Register shutdown hook.
10803 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10804 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10805 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10806 (grub_loader_set): Rename second argument to flags.
10808 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10810 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10812 (grub_get_num_of_utf8_bytes): New function.
10813 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10814 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10816 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10817 (grub_ucs4_to_utf8): Change return type.
10819 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10821 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10823 * grub-core/fs/bfs.c (hop_level): Likewise.
10824 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10826 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10828 * grub-core/lib/adler32.c: Recode due to license unclearness.
10830 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10832 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10833 (test_header): Likewise.
10835 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10837 Fix --help formatting.
10839 * util/grub-mkconfig_lib.in (print_option_help): New function.
10840 (grub_fmt): Likewise.
10841 * util/grub-install.in: Use print_option_help and grub_fmt.
10842 * util/grub-kbdcomp.in: Likewise.
10843 * util/grub-mkconfig.in: Likewise.
10844 * util/grub-mknetdir.in: Likewise.
10845 * util/grub-mkrescue.in: Likewise.
10846 * util/grub-mkstandalone.in: Likewise.
10847 * util/grub-reboot.in: Likewise.
10848 * util/grub-set-default.in: Likewise.
10849 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10851 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10853 * linguas.sh: Remove autogenerated *.po.
10855 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10857 * po/README: Move language fetcing to ...
10858 * linguas.sh: ... here.
10859 * po/README: Point to linguas.sh.
10861 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10863 * po/README: Exclude ko.po due to disclaimer problems.
10865 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10867 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
10869 (grub_gettext_translate_real): Handle 0th string.
10870 (grub_gettext_translate): Ensure that "" isn't translated.
10872 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10874 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
10875 TRANSLATORS comment.
10876 (grub_diskfilter_print_partmap): Propagate changing of error into
10879 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10881 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
10882 to uint64_t to prevent overflow.
10883 (grub_diskfilter_lv): Increase start_extent and extent_count
10884 to uint64_t to prevent overflow.
10886 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10888 * configure.ac: Increase version.
10890 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10892 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
10894 * po/Rules-translit: New file.
10895 * po/arabic.sed: Likewise.
10896 * po/cyrillic.sed: Likewise.
10897 * po/greek.sed: Likewise.
10898 * po/hebrew.sed: Likewise.
10899 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
10900 * po/Makefile.in.in: Add extra_dist4.
10902 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10904 Handle big-endian minixfs (fixes minixfs tests on bigendian).
10906 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
10907 modify names. Introduce MODE_BIGENDIAN.
10908 * grub-core/fs/minix_be.c: New file.
10909 * grub-core/fs/minix2_be.c: Likewise
10910 * grub-core/fs/minix3_be.c: Likewise.
10911 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
10913 * grub-core/Makefile.core.def (minix_be): New module.
10914 (minix2_be): Likewise.
10915 (minix3_be): Likewise.
10917 2012-04-01 Felix <email@hamburg.de>
10919 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
10920 (devs): Add MBP 2011.
10922 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10924 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
10926 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10928 * grub-core/normal/cmdline.c (print_completion): New field
10930 (grub_cmdline_get): Handle width properly.
10932 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10934 * grub-core/commands/lsacpi.c (options): Add missing terminator.
10936 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10938 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
10939 after 29th of February.
10941 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10943 Fix exfat endianness handling.
10945 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
10946 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
10947 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
10948 Byte-swap utf16 when necessary.
10949 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
10951 2012-03-31 Anton Blanchard <anton@samba.org>
10952 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10954 Fix btrfs endianness handling.
10956 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
10957 (lower_bound): Make root uint64_t. Use root in le.
10958 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
10959 (find_path): Fix template key init.
10960 (grub_btrfs_dir): Fix mtime byteswap.
10961 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
10963 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10965 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
10966 recursion_depth. Break infinite resursions. All users updated.
10968 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
10970 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
10972 Reported by: Peter Jones.
10974 2012-03-31 Anton Blanchard <anton@samba.org>
10976 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
10979 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10981 * util/grub-install.in: Fix nvram call for PreP.
10983 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10985 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
10986 the error when some elements are missing into a warning.
10988 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
10990 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
10992 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
10994 * docs/grub.texi (Invoking grub-probe): New section.
10995 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
10997 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
10999 Fix tab and wide character handling in editor and menu.
11001 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11002 agglomerate control characters with combining marks.
11003 (bidi_line_wrap): Allow break on tab.
11004 (grub_unicode_get_comb_start): New function.
11005 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11007 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11009 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11010 fixed_tab_size. All users updated.
11011 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11012 (grub_term_getcharwidth): Handle \t.
11013 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11016 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11018 Handle big-endian mdraid.
11020 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11021 * grub-core/Makefile.core.def (mdraid09_be): New module.
11022 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11023 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11024 * grub-core/disk/mdraid_linux_be.c: New file.
11026 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11028 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11030 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11032 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11033 missing quotes which caused confusion among translators.
11035 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11037 * util/grub-mkconfig_lib.in: Fix typo.
11039 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11041 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11043 * tests/grub_script_leading_whitespace.in: New file.
11044 * Makefile.util.def (grub_script_leading_whitespace): New test.
11046 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11048 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11051 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11053 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11054 starts with control character.
11056 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11058 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11060 (grub_gdb_outbuf): Likewise.
11062 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11064 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11065 zero terminator. Fixes a crash.
11067 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11069 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11071 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11072 images independently of preffered adderss field.
11074 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11076 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11077 * grub-core/commands/regexp.c: Likewise.
11078 * grub-core/loader/i386/linux.c: Likewise.
11079 * grub-core/partmap/msdos.c: Likewise.
11080 * grub-core/script/execute.c: Likewise.
11081 * grub-core/term/gfxterm.c: Likewise.
11083 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11085 Add variable parsing in $"..." and fix several mismatches with bash.
11087 * Makefile.util.def (grub_script_gettext): New test.
11088 * grub-core/script/execute.c (parse_string): New function.
11089 (gettext_append): Likewise.
11090 (grub_script_arglist_to_argv): Use gettext_append.
11091 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11092 * tests/grub_script_gettext.in: New file.
11094 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11096 Fix handling of leading spaces in scripts.
11098 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11100 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11101 other than skipping \r. All users updated.
11102 * tests/grub_script_echo1.in: Add space-related tests.
11103 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11105 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11107 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11109 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11111 * configure.ac: Bump up the version to beta2.
11113 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11115 Fix gettext reload bugs (e.g. inability to disable gettext
11118 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11119 main_context and secondary_context. All functions updated.
11120 (grub_gettext_translate): Rename to ...
11121 (grub_gettext_translate_real): ... this. Return NULL on failed
11123 (grub_gettext_translate): Handle secondary context.
11124 (grub_gettext_delete_list): Close file and zero-out the context.
11125 (grub_mofile_open): Don't call grub_gettext_delete_list.
11127 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11128 if locale="" to avoid pointless error message.
11129 (grub_gettext_env_write_lang): Update lang even if load fails.
11130 Handle secondary context.
11131 (grub_gettext_reread_prefix): New function.
11132 (read_main): Likewise.
11133 (read_secondary): Likewise.
11134 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11135 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11136 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11137 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11139 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11141 * configure.ac: Decrease warning level to avoid spurious warnings and
11142 to be able to compile with GCC 4.2.
11143 * Makefile.util.def: Remove -Wno-error=logical-op.
11145 2012-03-10 William Bittner <william.bittner@gmail.com>
11147 * util/import_unicode.py: Add missing brackets around string for
11150 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11152 Fix efi chainloader on network root.
11154 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11156 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11159 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11161 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11162 unused show_text member.
11163 * docs/grub.texi: Document "text" property.
11165 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11167 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11170 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11172 Fix IMSM handling on Fedora.
11174 * util/getroot.c (grub_util_is_imsm): New function.
11175 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11177 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11179 * Makefile.am: Strip gold section.
11180 * conf/Makefile.common: Likewise.
11181 * gentpl.py: Likewise.
11182 * grub-core/Makefile.core.def: Likewise.
11183 * grub-core/genmod.sh.in: Likewise.
11185 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11187 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11188 * util/grub.d/20_linux_xen.in: Likewise.
11189 Based on Debian patch.
11191 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11193 * util/grub.d/10_linux.in: Fix syntax error resulting in
11194 Richard Laager's patch.
11195 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11197 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11199 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11202 2012-03-10 Richard Laager <rlaager@wiktel.com>
11204 * util/grub.d/10_linux.in: Fix ZFS root passing.
11206 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11208 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11209 * grub-core/commands/xnu_uuid.c: Likewise.
11210 * grub-core/loader/efi/appleloader.c: Likewise.
11211 * grub-core/script/execute.c: Likewise.
11212 * grub-core/script/main.c: Likewise.
11213 * util/grub-mkfont.c: Likewise.
11215 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11217 * util/grub-mkfont.c (options): Use more appropriate "select" that
11218 "set" for face index.
11220 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11222 * util/grub-editenv.c (options): Gettextize command summaries.
11224 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11226 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11227 "out of memory" error messagge.
11229 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11231 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11232 of diskfilter for diskfilter on diskfilter support.
11234 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11236 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11238 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11240 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11243 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11245 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11247 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11249 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11251 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11253 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11256 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11258 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11260 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11262 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11264 * util/grub-install.in: Fix and gettextize error message.
11266 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11268 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11270 * util/grub-mount.c (options): Likewise.
11272 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11274 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11276 * grub-core/commands/search_wrap.c (options): Likewise.
11278 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11280 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11282 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11284 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11286 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11289 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11291 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11292 "temporary" since it's used in identifier and is limited in space.
11294 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11296 * po/POTFILES.in: Regenerate. Include *.h since they contain
11297 translatable strings as well.
11299 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11301 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11302 byte-swap on big-endian.
11303 Reported by: Lennart Sorensen
11305 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11307 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11308 (allocate_pages): Improve dprintf.
11309 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11310 code32_start. Fill code32_start and kernel_alignment in params.
11311 (grub_cmd_initrd): Use prot_init_space.
11313 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11315 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11317 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11319 * util/grub-install.in: Add missing dot at the end of sentence.
11321 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11323 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11324 * grub-core/commands/videotest.c: Likewise.
11325 * grub-core/loader/i386/linux.c: Likewise.
11327 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11329 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11331 Reported by: Milo Casagrande.
11333 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11335 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11336 * grub-core/commands/gptsync.c: Likewise.
11337 * grub-core/commands/hashsum.c: Likewise.
11338 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11339 * grub-core/commands/legacycfg.c: Likewise.
11340 * grub-core/io/gzio.c: Likewise.
11341 * grub-core/net/net.c: Likewise.
11342 * grub-core/term/gfxterm.c: Likewise.
11343 * grub-core/term/terminfo.c: Likewise.
11344 * grub-core/tests/test_blockarg.c: Likewise.
11345 * grub-core/video/video.c: Likewise.
11346 * util/grub-install.in: Likewise.
11347 * util/grub-mkfont.c: Likewise.
11349 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11351 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11353 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11355 * grub-core/commands/search_wrap.c (options): Fix a typo.
11356 Reported by: David Prévot.
11358 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11360 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11363 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11365 * util/grub-script-check.c (main): Fix a syntax error message which was
11368 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11370 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11372 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11374 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11377 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11379 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11381 * util/grub-mount.c (options): Likewise.
11383 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11385 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11387 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11389 * grub-core/net/http.c: Add TRANSLATORS comments.
11390 * grub-core/normal/cmdline.c: Likewise.
11391 * grub-core/normal/misc.c: Likewise.
11392 * grub-core/partmap/msdos.c: Likewise.
11393 * grub-core/parttool/msdospart.c: Likewise.
11394 * grub-core/script/execute.c: Likewise.
11395 * grub-core/script/main.c: Likewise.
11396 * grub-core/term/terminfo.c: Likewise.
11397 * grub-core/video/bitmap.c: Likewise.
11398 * util/grub-install.in: Likewise.
11399 * util/grub-mkimage.c: Likewise.
11400 * util/grub-mklayout.c: Likewise.
11401 * util/grub-setup.c: Likewise.
11403 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11405 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11406 with similar messages in grub-fstest.
11408 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11410 * util/grub-install.in: Unify "option requires an argument" message
11411 with similar messages in other files.
11412 * util/grub-mkconfig.in: Likewise.
11414 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11416 * util/grub-set-default.in: Replace printf with gettext_printf (the
11417 string in in question is already translated from grub-reboot)
11419 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11421 * configure.ac: Bump up the version to beta1.
11423 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11425 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11426 case when min_align = 0.
11428 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11430 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11431 and fix a case when line_start overflows.
11433 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11435 * util/grub-reboot.in (usage): Mention id posibility.
11436 * util/grub-set-default.in (usage): Likewise.
11438 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11440 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11441 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11442 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11443 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11444 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11445 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11446 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11448 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11450 * grub-core/commands/menuentry.c (options): Remove
11451 GRUB_ARG_OPTION_REPEATABLE.
11452 Reported by: Andreas Vogel
11454 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11456 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11458 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11460 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11463 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11465 Use sort -V by the idea of Georgi Georgiev.
11467 * util/grub-mkconfig_lib.in (version_sort): New function.
11468 (version_test_numeric): Use version_sort.
11470 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11472 Use submenus in grub-mkconfig.
11474 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11475 * util/grub-mkconfig_lib.in (grub_quote): New function.
11476 (gettext_printf): Use gettext and not gettext_quoted to fix several
11478 * util/grub.d/10_hurd.in: Use submenus.
11479 * util/grub.d/10_kfreebsd.in: Likewise.
11480 * util/grub.d/10_linux.in: Likewise.
11481 * util/grub.d/10_netbsd.in: Likewise.
11482 * util/grub.d/20_linux_xen.in: Likewise.
11483 * util/grub.d/30_os-prober.in: Likewise.
11484 * util/grub.d/10_illumos.in: Add missing quoting.
11485 * util/grub.d/10_windows.in: Likewise.
11487 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11489 Fix menu title instability bug.
11491 * grub-core/commands/menuentry.c (options): New option --id.
11492 (grub_normal_add_menu_entry): New argument id. All users updated.
11493 (grub_cmd_menuentry): Handle --id.
11494 (grub_menu_init): Accept unknown arguments.
11495 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11496 feature_menuentry_options.
11497 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11499 (get_entry_number): Match with id as well.
11500 * include/grub/menu.h (grub_menu_entry): New member id.
11501 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11502 * util/grub.d/00_header.in: Define menuentry_id_option.
11503 * util/grub.d/10_hurd.in: Define id.
11504 * util/grub.d/10_illumos.in: Likewise.
11505 * util/grub.d/10_kfreebsd.in: Likewise.
11506 * util/grub.d/10_linux.in: Likewise.
11507 * util/grub.d/10_netbsd.in: Likewise.
11508 * util/grub.d/10_windows.in: Likewise.
11509 * util/grub.d/20_linux_xen.in: Likewise.
11510 * util/grub.d/30_os-prober.in: Likewise.
11512 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11514 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11515 "scope" with "body".
11517 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11519 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11520 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11521 prot_size and prot_file_size.
11523 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11525 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11526 All users updated. If easily=1 require raid-5/-6 to be full.
11527 (is_node_readable): Likewise.
11528 (scan_devices): Scan incomplete but readable LVs at the end.
11529 (grub_diskfilter_memberlist): Pull missing devices.
11530 (insert_array): Skip scanning until device is complete or scan is
11532 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11534 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11535 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11537 2012-03-03 Matthew Garrett <mjg@redhat.com>
11538 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11540 Avoid EFI boot services when loading Linux.
11542 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11543 avoid_efi_bootservices. All users updated.
11544 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11545 argument avoid_efi_bootservices. All users updated.
11546 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11547 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11548 align, min_align, relocatable, prefered_address. All users updated.
11549 Allocate avoiding boot services if kernel is relocatable.
11550 (grub_cmd_linux): Check if kernel is relocatable.
11551 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11552 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11553 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11554 avoid_efi_boot_services.
11555 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11556 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11557 (linux_kernel_params): Likewise.
11559 2012-03-03 Matthew Garrett <mjg@redhat.com>
11560 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11564 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11566 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11567 modes. Set gop_handle.
11568 (grub_video_gop_get_edid): New function.
11569 (grub_gop_get_preferred_mode): Likewise.
11570 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11571 (grub_video_efi_gop_adapter): Set .get_edid.
11572 * include/grub/efi/edid.h: New file.
11573 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11575 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11577 * util/grub-install.in: Load efivars unconditionally.
11579 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11581 * po/Rules-piglatin: Change suffix from .po-update-en to
11582 .po-update-en-piglatin.
11584 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11588 * po/piglatin.sed: New file.
11589 * po/en@piglatin.header: Likewise.
11590 * po/Rules-piglatin: Likewise.
11591 * po/README: Add en@piglatin to autogenerated languages.
11593 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11595 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11597 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11598 "Check" since we don't check anything.
11599 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11601 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11602 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11603 (grub_md_sha512_real): Likewise.
11605 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11607 * grub-core/commands/gptsync.c: Fix typographic quoting.
11608 * grub-core/commands/ieee1275/suspend.c: Likewise.
11609 * grub-core/commands/parttool.c: Likewise.
11610 * grub-core/commands/search_wrap.c: Likewise.
11611 * grub-core/commands/videoinfo.c: Likewise.
11612 * grub-core/gfxmenu/gui_label.c: Likewise.
11613 * grub-core/hello/hello.c: Likewise.
11614 * grub-core/kern/emu/main.c: Likewise.
11615 * grub-core/net/net.c: Likewise.
11616 * grub-core/normal/menu.c: Likewise.
11617 * grub-core/normal/menu_text.c: Likewise.
11618 * grub-core/normal/misc.c: Likewise.
11619 * util/grub-editenv.c: Likewise.
11620 * util/grub-install.in: Likewise.
11621 * util/grub-kbdcomp.in: Likewise.
11622 * util/grub-mkconfig.in: Likewise.
11623 * util/grub-mknetdir.in: Likewise.
11624 * util/grub-mkrescue.in: Likewise.
11625 * util/grub-mkstandalone.in: Likewise.
11626 * util/grub-reboot.in: Likewise.
11627 * util/grub-set-default.in: Likewise.
11628 * util/grub-setup.c: Likewise.
11629 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11631 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11633 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11634 * grub-core/commands/keystatus.c: Likewise.
11635 * grub-core/commands/loadenv.c: Likewise.
11636 * grub-core/commands/probe.c: Likewise.
11637 * grub-core/commands/regexp.c: Likewise.
11638 * grub-core/commands/true.c: Likewise.
11639 * grub-core/commands/videoinfo.c: Likewise.
11640 * grub-core/disk/cryptodisk.c: Likewise.
11641 * grub-core/disk/ldm.c: Likewise.
11642 * grub-core/disk/loopback.c: Likewise.
11643 * grub-core/disk/luks.c: Likewise.
11644 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11645 * grub-core/kern/disk.c: Likewise.
11646 * grub-core/kern/emu/hostdisk.c: Likewise.
11648 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11650 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11651 * util/grub-install.in: Add missing quote in the comment.
11653 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11655 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11656 * grub-core/commands/lsmmap.c: Likewise.
11657 * grub-core/commands/minicmd.c: Likewise.
11658 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11659 * grub-core/commands/regexp.c: Likewise.
11660 * grub-core/gdb/gdb.c: Likewise.
11661 * grub-core/term/gfxterm.c: Likewise.
11662 * util/grub-mkconfig.in: Likewise.
11663 * util/grub-mkfont.c: Likewise.
11664 * util/grub-mklayout.c: Likewise.
11665 * util/grub-mknetdir.in: Likewise.
11666 * util/grub-mkrescue.in: Likewise.
11667 * util/grub.d/30_os-prober.in: Likewise.
11669 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11671 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11672 with "Direct color" and "Packed" with "Packed pixel".
11673 (grub_cmd_videoinfo): Simplify legend.
11675 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11677 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11678 absolutely unclear error message.
11680 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11682 * util/grub-mkstandalone.in: Remove confusing leftover print.
11684 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11686 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11688 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11689 (GRUB_MOD_INIT): Likewise.
11690 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11692 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11694 * util/grub-install.in (usage): Likewise.
11695 Spell ID in whole letters.
11696 Add missing ending dot.
11698 * util/grub-reboot.in: Fix capitalisation.
11699 * util/grub-set-default.in: Likewise.
11701 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11703 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11704 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11705 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11706 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11707 Disable -Werror for -Wdeprecated-declarations.
11708 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11709 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11710 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11711 (grub_util_get_grub_dev): Make luks handling dependent on
11712 HAVE_DEVICE_MAPPER and not __linux__.
11713 (get_win32_path): Fix format security.
11714 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11715 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11716 Don't try grub_find_zpool_from_dir.
11717 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11718 #ifdef-out paresdir.
11720 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11722 * util/grub-pe2elf.c (usage): Add missing noreturn.
11723 (write_section_data): Rename name to shname to avoid shadowing.
11724 (write_symbol_table): Rename name to symname to avoid shadowing.
11725 Fix write_reloc_section call.
11727 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11729 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11730 to ensure that it's after the last byte of .text.
11732 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11734 * util/ieee1275/ofpath.c (my_isdigit): New function.
11735 (trailing_digits): Use my_isdigit.
11736 (strip_trailing_digits): Likewise.
11738 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11740 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11741 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11743 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11745 * grub-core/kern/i386/pc/startup.S: Define __start.
11747 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11749 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11750 strip already transforms he format.
11752 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11754 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11756 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11758 * util/grub-install.in: Add missing gettext init.
11759 * util/grub-kbdcomp.in: Likewise.
11760 * util/grub-mkconfig.in: Likewise.
11761 * util/grub-mknetdir.in: Likewise.
11762 * util/grub-mkrescue.in: Likewise.
11763 * util/grub-mkstandalone.in: Likewise.
11764 * util/grub-reboot.in: Likewise.
11765 * util/grub-set-default.in: Likewise.
11766 * util/grub.d/00_header.in: Likewise.
11767 * util/grub.d/10_hurd.in: Likewise.
11768 * util/grub.d/10_windows.in: Likewise.
11769 * util/grub.d/30_os-prober.in: Likewise.
11770 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11772 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11774 * po/Rules-swiss: Fix header comment.
11776 2012-02-29 Andreas Vogel <anvoit>
11778 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11779 resulted in leak of arguments.
11781 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11783 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11784 reed_solomon_size const definition instead of computing it since
11785 Apple assembler doesn't support the later.
11787 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11789 * gentpl.py (kernel): Rewrite Apple part.
11791 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11793 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11795 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11797 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11799 (load_image): Likewise.
11801 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11803 * configure.ac: Fix a typo in previous commit.
11805 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11807 Don't add -Wl,-N on Apple platform.
11809 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11810 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11812 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11814 * grub-core/Makefile.core.def (lzma_decompress): Use
11815 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11817 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11819 * grub-core/genmod.sh.in: Rewrite the Apple part.
11821 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11823 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11826 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11828 * acinclude.m4 (grub_CHECK_PIC): New test.
11829 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11831 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11833 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11834 to avoid the warning.
11836 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11838 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11839 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11840 after. All users updated.
11842 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11844 Use the common size routine in hostfs so we can read disks as well.
11846 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11847 (grub_util_get_fd_size): ... this. Return size in bytes.
11849 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11850 grub_util_get_fd_size.
11852 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11854 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11855 Add blocksize retrieval.
11857 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11859 * configure.ac: Restore CFLAGS after efiemu check.
11861 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11863 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
11866 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11868 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
11870 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11872 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
11873 (grub_cmd_halt): Likewise.
11875 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11877 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
11878 for local arithmetics.
11879 Break %sp init into 2 instructions.
11880 Add 0 byte at the end.
11882 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11884 * grub-core/disk/diskfilter.c (read_segment): Initialise err
11887 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11889 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
11892 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11894 * grub-core/disk/ldm.c (make_vg): Init part.name.
11895 (grub_ldm_detect): Silence spurious warning.
11896 (grub_util_is_ldm): Likewise.
11898 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11900 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
11901 sane value to avoid a spurious warning.
11903 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11905 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
11906 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
11908 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11910 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
11911 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
11913 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11915 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
11916 hardcoding the relevant info.
11918 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11920 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
11921 missing const qualifiers.
11922 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
11924 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11926 * util/getroot.c [__APPLE__]: Add missing includes.
11927 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
11929 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11931 * util/grub-mkimage.c (generate_image): Silence spurious warning.
11933 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11935 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
11938 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11940 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
11942 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11944 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
11945 and grub_file_close call.
11947 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11949 Add LZSS Mach-O support (needed for new xnu kernelcache).
11951 * grub-core/Makefile.core.def (xnu): Add file lzss.c
11952 * grub-core/loader/lzss.c: New file.
11953 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
11954 on Mach-O open failure.
11955 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
11956 Don't free cmdsXX in uncompressedXX is set.
11957 (grub_macho_file): Init new fields.
11958 New argument is_64bit. All users updated.
11959 Handle compressed. Error out if no suitable architecture is found.
11961 (grub_macho_open): New argument is_64bit. All users updated.
11962 * grub-core/loader/macho32.c: Add defines for new fields.
11963 * grub-core/loader/macho64.c: Likewise.
11964 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
11965 (grub_macho_parse): Handle compressed.
11966 Defer actual processing if compressed.
11967 (grub_macho_cmds_iterate): Decompress if compressed. New argument
11968 "filename". All users updated.
11969 (grub_macho_size): New argument "filename". All users updated.
11970 (grub_macho_get_entry_point): Likewise.
11971 (grub_macho_load): Handle compressed.
11972 * include/grub/macho.h (grub_macho_lzss_header): New struct.
11973 (GRUB_MACHO_LZSS_OFFSET): New define.
11974 (grub_decompress_lzss): New proto.
11975 * include/grub/machoload.h (grub_macho_file): New fields to handle
11977 (grub_macho_contains_macho64): Remove proto.
11978 (grub_macho_contains_macho32): Likewise.
11979 * util/grub.d/30_os-prober.in: Use kernel cache if available.
11981 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11983 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
11985 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
11989 * Makefile.am (starfield_theme_files): New var.
11990 (starfield_DATA): Use starfield_theme_files.
11991 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
11992 Add bootcheck-related files.
11993 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
11994 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
11995 and font_char_metrics.txt.
11996 * grub-core/Makefile.core.def (kernel): Update extra_dist.
11997 (setjmp): Add lib/ia64/longjmp.S.
11998 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
11999 * po/POTFILES.in: Regenerate.
12000 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12001 DISTFILES.common.extra1.
12002 * util/devicemap.c: Removed.
12003 * grub-core/lib/i386/relocator_backward.S: Likewise.
12004 * util/import_gcry.py: Remove unused files. Add extra_dist for
12007 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12009 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12010 grub_gettext_delete_list before changing grub_gettext_max to avoid
12011 running out of array bounds.
12013 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12015 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12016 grub_vga_text_init/grub_vga_text_fini.
12018 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12020 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12022 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12024 * configure.ac: Bump to 2.00~beta0.
12026 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12028 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12029 missing initialisation.
12031 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12033 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12035 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12037 Support v2 xnu boot arguments.
12039 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12040 New argument fsbfreq_out.
12041 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12042 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12044 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12046 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12047 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12048 (grub_xnu_boot_params): Rename to ...
12049 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12050 (grub_xnu_boot_params_v2): New struct.
12052 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12054 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12055 zeroing of CRC field before computing CRC.
12057 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12059 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12060 Change order of allocations to decrease fragmentation.
12062 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12064 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12066 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12068 Use write-combining MTRR to speed up video with buggy BIOSes.
12070 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12071 (cpuid): New define.
12074 (mtrr_base): Likewise.
12075 (mtrr_mask): Likewise.
12076 (grub_vbe_enable_mtrr_entry): New function.
12077 (grub_vbe_enable_mtrr): Likewise.
12078 (grub_vbe_disable_mtrr): Likewise.
12079 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12080 control off to BIOS.
12081 (grub_video_vbe_init): Fill mtrr.
12082 (grub_video_vbe_fini): Disable mtrr.
12083 (grub_video_vbe_get_info_and_fini): Likewise.
12084 (grub_video_vbe_setup): Enable mtrr.
12086 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12088 * include/grub/partition.h (grub_partition_map): Change prototype of
12089 embed to take a maximum value for nsectors.
12090 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12091 * include/grub/fs.h (grub_fs): Likewise.
12092 * grub-core/partmap/msdos.c (embed_signatures): New array.
12093 (pc_partition_map_embed): Check for and avoid sectors matching any
12094 of the signatures in embed_signatures, up to max_nsectors.
12095 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12096 returned sector map to max_nsectors.
12097 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12098 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12099 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12100 * util/grub-setup.c (setup): Allow for the embedding area being
12101 split into multiple blocklists. Tell dest_partmap->embed the
12102 maximum number of sectors we care about.
12104 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12106 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12107 Specify blocklist_install and reserver_first_sector for all fs.
12108 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12111 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12113 * util/grub-install.in: Clarify strings.
12114 Fix source dir check.
12116 2012-02-27 Richard Laager <rlaager@wiktel.com>
12118 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12119 "zfs" and "fuse.zfs" as synonyms.
12121 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12123 * configure.ac: Put platform and target_cpu substitutions back since
12124 they are used for directories.
12126 2012-02-27 Richard Laager <rlaager@wiktel.com>
12127 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12129 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12130 * util/grub.d/20_linux_xen.in: Likewise.
12132 2012-02-27 Richard Laager <rlaager@wiktel.com>
12134 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12137 2012-02-27 Richard Laager <rlaager@wiktel.com>
12139 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12142 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12144 Don't use insecure popen in getroot.
12146 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12147 (exec_pipe): ... here.
12148 (find_root_devices_from_poolname): Use exec_pipe.
12150 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12152 Remove platform and target_cpu replacement.
12154 * configure.ac: Remove platform and target_cpu substitutions.
12155 * tests/util/grub-shell.in: Use modinfo.
12156 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12159 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12161 Autodetect platform in grub-install but allow override.
12163 * util/grub-install.in: Autodetect platform. Support --target and
12164 --directory. Read platform from modinfo.sh.
12166 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12168 Support btrfs multi-volume probe.
12170 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12171 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12172 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12173 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12174 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12175 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12176 grub_find_root_devices_from_btrfs if on btrfs.
12178 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12180 Remove any awareness of *.c util files about target.
12182 * Makefile.util.def (grub-setup): Split to ...
12183 (grub-bios-setup): ... and this.
12184 (grub-sparc64-setup): ... and this.
12185 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12186 * docs/man/grub-setup.h2m: Split into ...
12187 * docs/man/grub-sparc64-setup.h2m: ... this.
12188 * docs/man/grub-bios-setup.h2m: ... and this.
12189 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12190 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12191 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12192 (grub_target_addr_t): Remove.
12193 (grub_target_size_t): Remove.
12194 (grub_target_ssize_t): Remove.
12195 * util/grub-install.in: Use new grub-*-setup.
12196 * util/grub-mkimagexx.c (Elf_Word): New define.
12197 (Elf_Half): Likewise.
12198 (Elf_Section): Likewise.
12199 (ELF_ST_TYPE): Likewise.
12200 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12201 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12203 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12205 Replace grub_target_addr with more appropriate types.
12207 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12208 grub_target_addr with grub_addr.
12209 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12210 grub_target_addr with grub_port.
12211 (grub_cmd_write): Likewise.
12212 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12213 grub_target_addr with grub_addr.
12214 (grub_cmd_write): Likewise.
12215 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12217 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12219 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12220 const qualifier for vendor_guid.
12222 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12224 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12226 (efiemu_memequal): Likewise.
12227 (find_variable): Likewise.
12229 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12231 Fix missing console prototype on qemu-mips.
12233 * include/grub/mips/qemu_mips/console.h: New file.
12235 2012-02-27 Matthew Garrett <mjg@redhat.com>
12236 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12238 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12239 * include/grub/efi/efi.h: Likewise.
12240 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12241 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12242 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12243 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12244 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12245 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12247 2012-02-27 Matthew Garrett <mjg@redhat.com>
12249 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12251 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12253 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12256 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12258 * configure.ac: Remove inappropriate use of program_transform_name
12259 on grubdir and bootdir but allow explicit specification of those
12262 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12264 * util/grub-mknetdir.in (grub_prefix): Removed.
12265 (subdir): Use @bootdirname@ and @grubdirname@.
12267 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12269 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12271 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12273 * po/POTFILES.in: Regenerated.
12275 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12277 Remove improper use of program_transform_name on pkglibrootdir.
12279 * configure.ac (pkglibrootdir): Removed.
12280 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12281 * util/grub-mkimage.c: Likewise.
12283 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12285 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12288 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12290 * util/grub-install.in: Use file identifier if no UUID is available
12291 or user explicitly prompted for it.
12293 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12295 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12296 (freebsd_get_zfs): New function.
12297 (grub_freebsd_boot): Pass zfs UUID.
12298 (grub_cmd_freebsd): Set zfs UUID.
12300 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12302 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12305 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12307 Add configure flag to control libzfs integration.
12309 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12311 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12313 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12315 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12318 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12320 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12321 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12322 be used on non-modules.
12324 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12325 Rename to grub_boot_init.
12326 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12327 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12328 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12329 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12330 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12331 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12332 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12333 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12335 (grub_machine_init): Remove empty inits.
12336 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12338 (grub_machine_init): Remove empty inits.
12339 * grub-core/term/arc/console.c: Remove explicit proto.
12340 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12341 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12342 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12343 grub_at_keyboard_fini.
12344 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12345 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12346 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12348 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12349 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12350 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12352 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12353 * grub-core/term/serial.c (GRUB_MOD_INIT)
12354 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12355 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12357 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12358 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12359 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12360 grub_terminfo_fini.
12361 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12362 (GRUB_MOD_FINI): Likewise.
12363 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12364 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12365 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12366 grub_video_radeon_fuloong2e_fini.
12367 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12368 [LOONGSON]: Rename to grub_video_sis315pro_init.
12369 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12370 grub_video_sis315pro_fini.
12371 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12372 [LOONGSON]: Rename to grub_video_sm712_init.
12373 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12374 grub_video_sm712_fini.
12375 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12376 (grub_at_keyboard_fini): Likewise.
12377 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12378 Don't declare grub_{modname}_init.
12379 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12380 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12382 (grub_keylayouts_fini) [!EMU]: Likewise.
12383 * include/grub/serial.h (grub_serial_init) [!EMU]:
12385 (grub_serial_fini) [!EMU]: Likewise.
12386 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12388 (grub_terminfo_fini) [!EMU]: Likewise.
12389 * include/grub/video.h (grub_font_init) [!EMU]:
12391 (grub_font_fini) [!EMU]: Likewise.
12392 (grub_gfxterm_init) [!EMU]: Likewise.
12393 (grub_gfxterm_fini) [!EMU]: Likewise.
12394 (grub_video_sm712_init) [!EMU]: Likewise.
12395 (grub_video_sm712_fini) [!EMU]: Likewise.
12396 (grub_video_sis315pro_init) [!EMU]: Likewise.
12397 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12398 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12399 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12401 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12403 Make nand a prefix for nand devices.
12405 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12407 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12409 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12410 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12412 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12414 * include/grub/env.h (grub_env_find): Remove prototype.
12415 * grub-core/kern/env.c (grub_env_find): Make static.
12416 (grub_env_set): Remove useless set.
12418 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12420 * grub-core/kern/i386/realmode.S: Remove useless align.
12422 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12424 * include/grub/dl.h (grub_dl_load_file): Don't export.
12426 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12428 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12431 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12433 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12435 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12436 not reloading whole superblock but only the part which is really needed.
12437 Remove useless grub_errors.
12438 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12441 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12443 Don't export grub_get_rtc.
12445 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12446 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12448 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12450 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12452 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12454 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12455 argument since it can be deduced from diskfilter. All users updated.
12457 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12461 * include/grub/list.h (grub_prio_list): Removed.
12462 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12463 GRUB_COMMAND_PRIO_MASK.
12464 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12465 GRUB_COMMAND_FLAG_ACTIVE.
12466 (grub_prio_list_insert): Removed.
12467 (grub_prio_list_remove): Likewise.
12468 (GRUB_AS_PRIO_LIST): Likewise.
12469 (GRUB_AS_PRIO_LIST_P): Likewise.
12470 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12471 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12472 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12473 * grub-core/kern/command.c (grub_register_command_prio): Inline
12474 the prio_list code.
12475 (grub_unregister_command): Likewise.
12477 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12479 Fix interrupt mixup from previous commit.
12481 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12482 (grub_realidt): New var.
12483 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12485 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12487 (grub_relocator16_boot): Set grub_relocator16_idt.
12488 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12489 (LOCAL(realidt)): ... this.
12490 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12491 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12492 (grub_realidt): New variable.
12494 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12496 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12497 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12498 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12499 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12501 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12502 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12503 * po/POTFILES.in: Regenerate.
12505 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12507 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12510 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12512 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12514 (add_length): Likewise.
12516 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12517 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12519 GDB serial and backtrace support.
12521 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12522 (prot_to_real): Likewise.
12523 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12524 * grub-core/Makefile.core.def (backtrace): New module.
12526 * grub-core/gdb/cstub.c: New file.
12527 * grub-core/gdb/gdb.c: Likewise.
12528 * grub-core/gdb/i386/idt.c: Likewise.
12529 * grub-core/gdb/i386/machdep.S: Likewise.
12530 * grub-core/gdb/i386/signal.c: Likewise.
12531 * grub-core/lib/i386/backtrace.c: Likewise.
12532 * grub-core/lib/backtrace.c: Likewise.
12533 * include/grub/backtrace.h: Likewise.
12534 * include/grub/gdb.h: Likewise.
12535 * include/grub/i386/gdb.h: Likewise.
12537 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12539 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12541 (add_length): Likewise.
12542 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12543 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12545 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12546 __argp_get_display_len.
12548 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12550 $"..." support in scripts.
12552 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12553 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12554 * grub-core/script/yylex.l: Likewise.
12555 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12558 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12560 * gentpl.py: Remove obsolete pkglib_DATA handling.
12562 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12564 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12567 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12568 * util/grub-kbdcomp.in: Likewise.
12569 * util/grub-mkconfig.in: Likewise.
12570 * util/grub-mkconfig_lib.in: Likewise.
12571 * util/grub-mknetdir.in: Likewise.
12572 * util/grub-mkrescue.in: Likewise.
12573 * util/grub-mkstandalone.in: Likewise.
12574 * util/grub-reboot.in: Likewise.
12575 * util/grub-set-default.in: Likewise.
12576 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12578 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12580 Remove GRUB_PREFIX.
12582 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12583 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12584 used for backward compatibility.
12586 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12588 Add new all_video module.
12590 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12591 * grub-core/Makefile.core.def (all_video): New module.
12592 * grub-core/genmoddep.awk: Generate dependency of all_video from
12594 * grub-core/lib/fake_module.c: New file.
12595 * grub-core/normal/main.c (features): Add feature_all_video_module.
12596 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12597 don't do explicit search again.
12598 insmod all_video in load_video if available.
12600 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12602 Another round of string clarification and adding TRANSLATORS comments.
12604 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12606 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12608 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12610 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12612 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12613 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12615 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12617 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12618 trailing newline implicitly. All users updated.
12620 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12622 Implement serial on IEEE1275 and EFI.
12624 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12625 on emu. Mention arc and emu as the only platforms without serial
12627 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12628 ieee1275 platforms.
12629 * grub-core/term/efi/serial.c: New file.
12630 * grub-core/term/ieee1275/serial.c: Likewise.
12631 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12632 specification if no ns8250 driver is available.
12633 (grub_cmd_serial): Likewise.
12634 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12635 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12636 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12637 (grub_efi_parity_type_t): New type.
12638 (grub_efi_stop_bits_t): Likewise.
12639 (grub_efi_serial_io_interface): New struct.
12640 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12641 available for all interfaces.
12642 Add EFI and IEEE1275 fields.
12643 (grub_ofserial_init): New proto.
12644 (grub_efiserial_init): Likeiwse.
12645 * util/grub.d/00_header.in: Don't check for the presence of serial
12648 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12650 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12651 name as if it was an alias.
12653 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12655 * grub-core/commands/lsacpi.c (options): Fix typo.
12657 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12659 Convert grub-emu to argp.
12661 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12663 * util/argp_common.c: Rename to ...
12664 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12665 Add missing includes.
12666 * grub-core/kern/emu/main.c: Convert to argp.
12667 * po/POTFILES.in: Regenerate.
12668 * util/grub-install.in (usage): Make first letter lowcase in messages
12670 * util/grub-setup.c (options): Likewise.
12672 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12674 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12675 Put back accidently commented-out code.
12677 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12679 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12680 loop check using Brent algorithm.
12681 (grub_hfsplus_btree_search): Likewise.
12683 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12685 * util/grub-install.in: Fix usage of wrong device for PreP install.
12687 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12689 * conf/Makefile.common (CFLAGS_GNULIB): Add
12690 -Wno-unsafe-loop-optimizations.
12691 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12693 * grub-core/commands/legacycfg.c: Add pragma to skip
12694 -Wunsafe-loop-optimizations.
12695 (check_password_md5_real): Fix loop counter type.
12696 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12698 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12699 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12701 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12702 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12703 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12705 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12706 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12707 avoid possible infinite loops.
12708 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12709 and -Wunsafe-loop-optimizations.
12710 * grub-core/script/yylex.l: Likewise.
12711 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12712 (print_glyphs): Avoid infinite loops.
12713 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12715 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12717 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12718 to avoid infinite loop.
12719 (disp_acpi_rsdt_table): Likewise.
12721 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12723 * grub-core/font/font.c (grub_font_load): Add support for default
12724 path for fonts ($prefix/fonts).
12725 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12726 for checking if string is a path.
12727 * grub-core/normal/main.c (features): Add feature_default_font_path.
12728 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12729 * util/grub.d/00_header.in: Use default directory if possible.
12730 * util/grub-install.in: Install unicode.pf2.
12732 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12734 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12735 * po/Rules-swiss: New file.
12736 * po/swiss.sed: Likewise.
12738 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12740 * grub-core/fs/btrfs.c (find_device): Fix typos.
12741 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12742 * util/grub-mkrelpath.c (argp_parser): Likewise.
12743 Reported by: Yuri Chornoivan.
12745 2012-02-23 Dalet Omega <daletomega@gmail.com>
12747 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12748 for usual informative messages.
12750 2012-02-23 Dalet Omega <daletomega@gmail.com>
12754 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12755 * conf/Makefile.common: Define starfielddir.
12756 * configure.ac: Configure starfield.
12757 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12758 * themes/starfield/README: Likewise.
12759 * themes/starfield/blob_w.png: Likewise.
12760 * themes/starfield/boot_menu_c.png: Likewise.
12761 * themes/starfield/boot_menu_e.png: Likewise.
12762 * themes/starfield/boot_menu_n.png: Likewise.
12763 * themes/starfield/boot_menu_ne.png: Likewise.
12764 * themes/starfield/boot_menu_nw.png: Likewise.
12765 * themes/starfield/boot_menu_s.png: Likewise.
12766 * themes/starfield/boot_menu_se.png: Likewise.
12767 * themes/starfield/boot_menu_sw.png: Likewise.
12768 * themes/starfield/boot_menu_w.png: Likewise.
12769 * themes/starfield/slider_c.png: Likewise.
12770 * themes/starfield/slider_n.png: Likewise.
12771 * themes/starfield/slider_s.png: Likewise.
12772 * themes/starfield/src/blob_nw.xcf: Likewise.
12773 * themes/starfield/src/bootmenu/: Likewise.
12774 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12775 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12776 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12777 * themes/starfield/src/slider_c.xcf: Likewise.
12778 * themes/starfield/src/slider_n.xcf: Likewise.
12779 * themes/starfield/src/slider_s.xcf: Likewise.
12780 * themes/starfield/src/terminalbox/: Likewise.
12781 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12782 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12783 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12784 * themes/starfield/starfield.png: Likewise.
12785 * themes/starfield/terminal_box_c.png: Likewise.
12786 * themes/starfield/terminal_box_e.png: Likewise.
12787 * themes/starfield/terminal_box_n.png: Likewise.
12788 * themes/starfield/terminal_box_ne.png: Likewise.
12789 * themes/starfield/terminal_box_nw.png: Likewise.
12790 * themes/starfield/terminal_box_s.png: Likewise.
12791 * themes/starfield/terminal_box_se.png: Likewise.
12792 * themes/starfield/terminal_box_sw.png: Likewise.
12793 * themes/starfield/terminal_box_w.png: Likewise.
12794 * themes/starfield/theme.txt: Likewise.
12796 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12798 * util/grub.d/00_header.in: Add missing export theme.
12800 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12802 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12804 Reported by: Eren D.
12806 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12808 * conf/Makefile.common (grubdatadir): Removed.
12809 (Makefile.am): Move eveything grubdata to pkgdata.
12811 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12813 * grub-core/commands/acpihalt.c (get_sleep_type):
12814 Remove unused variable.
12816 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12818 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12819 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12820 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12821 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12822 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12823 i18n with gettext no-op.
12824 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12825 GRUB_ACPI_OPCODE_STRING_CONST.
12826 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12827 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12829 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12831 * po/POTFILES.in: Regenerate.
12833 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12835 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12836 -Wno-error=missing-noreturn.
12838 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12840 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12841 condition to avoid possibly infinite loops.
12842 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12843 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12845 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12847 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12848 condition to avoid possibly infinite loops.
12850 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12852 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12855 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12857 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
12859 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12861 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
12863 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12865 * util/bin2h.c (usage): Add missing attribute noreturn.
12867 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12869 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
12870 if the size isn't divisible by 512.
12872 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12874 Make list_push and list_remove functions rather than inline functions
12875 to decrease size and avoid aliasing violations.
12877 * include/grub/list.h (grub_list_push): Move to ...
12878 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
12879 * include/grub/list.h (grub_list_remove): Move to ...
12880 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
12882 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12884 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
12885 and -Wunused-result.
12887 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12889 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
12890 Reported by: Seth Goldberg
12892 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12894 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
12896 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12898 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
12899 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
12901 * docs/grub.texi (Simple configuration): Document
12902 GRUB_CMDLINE_GNUMACH.
12904 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12906 * conf/Makefile.common (platform_SCRIPTS): New variable.
12907 (platform_PROGRAMS): Likewise.
12908 * gentpl.py: Mark *,module and *.image for install.
12909 * grub-core/gdb_grub.in: Add a notice of expected environment.
12910 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
12911 (gmodule.pl): Likewise.
12913 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12915 Replace grub_checkkey with grub_getkey_noblock.
12917 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
12918 (grub_getkey_noblock): ... this. All users updated.
12920 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
12922 * grub-core/kern/emu/console.c: Move to ...
12923 * grub-core/term/emu/console.c: ...here.
12924 (grub_ncurses_getkey): Fix return value if no key is detected.
12926 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12928 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
12929 (grub_unit_test_fini): Likewise.
12930 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
12932 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12934 * include/grub/test.h (GRUB_UNIT_TEST)
12936 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12938 * grub-core/script/execute.c (grub_script_break): Clarify logic.
12939 Better error handling.
12940 (grub_script_return): Likewise.
12941 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
12943 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12945 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
12946 rimplicit redifinition.
12948 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12950 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
12953 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12955 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
12956 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
12959 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12961 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
12962 as GRUB_ERR_BUG. Don't malloc if no device is available.
12964 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12966 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
12967 Mark calling with invalid term as GRUB_ERR_BUG.
12969 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12971 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
12972 packets rather than raising an error.
12974 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12976 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
12979 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12981 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
12982 diagnostic to dprintf.
12983 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12985 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12987 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
12990 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12992 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
12993 (grub_ntfs_iterate_dir): Likewise.
12995 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
12997 Efiemu stylistic fixes and gettext.
12999 * grub-core/efiemu/i386/loadcore32.c
13000 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13001 * grub-core/efiemu/i386/loadcore64.c
13002 (grub_arch_efiemu_relocate_symbols64): Likewise.
13003 * grub-core/efiemu/i386/pc/cfgtables.c
13004 (grub_machine_efiemu_init_tables): Likewise.
13005 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13006 (grub_efiemu_loadcore_initXX): Add a filename argument.
13008 Improved error message.
13009 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13010 Add a filename argument.
13012 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13013 Reclassify double relocation as GRUB_ERR_BUG.
13015 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13017 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13020 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13022 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13025 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13027 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13029 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13031 Improve string. Gettextize.
13033 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13035 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13037 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13039 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13041 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13042 [GRUB_UTIL]: New function.
13043 (insert_array) [GRUB_UTIL]: Store partmaps.
13044 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13046 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13047 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13048 (probe_abstraction): Print diskfilter and not raid.
13049 Reported by: Lennart Sorensen
13051 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13053 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13054 * util/grub-mkimagexx.c (MASK3): New define.
13055 (add_value_to_slot_20b): Use MASK3.
13056 (add_value_to_slot_21): Likewise.
13057 (relocate_addresses): Fix format specification.
13058 (load_image): Explicitly init symtab_section.
13060 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13062 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13063 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13065 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13067 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13069 Reported by: Lennart Sorensen
13071 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13073 * gentpl.py: Add missing license header.
13074 * docs/grub.texi: Update copyright year.
13076 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13078 Source grub-mkconfig_lib from the build directory at build time.
13079 Suggested by: Vladimir Serbinenko.
13081 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13082 * util/grub-install.in: Define pkgdatadir if not already set, and source
13083 grub-mkconfig_lib from there.
13084 * util/grub-kbdcomp.in: Likewise.
13085 * util/grub-mkconfig.in: Likewise.
13086 * util/grub-mknetdir.in: Likewise.
13087 * util/grub-mkrescue.in: Likewise.
13088 * util/grub-mkstandalone.in: Likewise.
13089 * util/grub-reboot.in: Likewise.
13090 * util/grub-set-default.in: Likewise.
13091 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13093 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13095 Increase warning level.
13097 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13098 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13099 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13100 (TARGET_CFLAGS): Likewise.
13101 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13102 * grub-core/Makefile.core.def (decompressor_xz): Add
13103 -Wno-unreachable-code.
13104 (normal): Add -Wno-redundant-decls.
13105 (xzio): Add -Wno-unreachable-code.
13106 (lzopio): Add -Wno-redundant-decls -Wno-error.
13107 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13108 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13109 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13110 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13111 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13112 * grub-core/kern/i386/coreboot/init.c: Add exception to
13113 -Wsuggest-attribute=noreturn.
13114 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13115 * grub-core/kern/ia64/dl_helper.c: Likewise.
13116 * grub-core/kern/mips/dl.c: Likewise.
13117 * grub-core/kern/sparc64/dl.c: Likewise.
13118 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13119 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13120 (memcmp): Likewise.
13121 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13122 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13123 * grub-core/loader/mips/linux.c: Likewise.
13124 * grub-core/loader/multiboot_elfxx.c: Likewise.
13125 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13126 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13127 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13128 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13130 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13131 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13134 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13136 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13139 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13141 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13142 Avoid improper use of strings.
13143 (grub_cmd_legacy_initrdnounzip): Likewise.
13145 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13147 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13149 (grub_util_info): Likewise.
13150 (grub_util_error): Likewise.
13152 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13154 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13155 * util/grub-fstest.c (fstest): Likewise.
13157 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13159 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13160 (grub_md_sha512_real): Likewise.
13161 (grub_util_get_geli_uuid): Likewise.
13162 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13163 (grub_util_biosdisk_open): Fix format specification.
13164 Respect format security.
13165 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13166 (xrealloc): Likewise.
13167 (xasprintf): Likewise.
13169 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13171 * util/import_gcry.py: Include grub/crypto.h in init.c.
13173 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13175 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13176 (generate_image): Make prefix a const char *.
13177 Fix format specifications. Respect format security.
13178 Avoid void * arithmetics.
13180 (argp_parser): Remove unused variable. Respect format security.
13181 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13182 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13183 (count_funcs): Remove unused variable.
13184 (relocate_addresses): Fix format specification.
13185 Disable x86-64 with elf32. Remove unused variables.
13186 (add_fixup_entry): Avoid shadowing.
13187 (make_reloc_section): Fix format specification.
13189 (locate_sections): Fix format specifications.
13190 (load_image): Avoid shadowing.
13192 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13194 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13195 Fix format specifications. Respect format security.
13196 Don't translate already translated grub_errmsg.
13197 (argp_parser): Remove unused variable
13199 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13201 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13203 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13205 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13206 (main): Likewise. Use xmalloc. Respect format security.
13208 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13210 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13212 (argp_parser): Remove unused variable.
13214 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13216 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13217 (add_pixel): Make static.
13218 (add_font): Likewise.
13219 (write_string_section): Make name and str a const char *.
13220 (write_be16_section): Make name a const char *.
13221 (print_glyphs): Make static.
13222 (write_font_ascii_bitmap): Likewise.
13223 (write_font_width_spec): Likewise.
13224 (write_font_pf2): Likewise.
13225 (argp_parser): Remove unused variable.
13226 Respect format security.
13227 (main): Avoid shadowing. Respect format security.
13229 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13231 * util/grub-editenv.c (argp_parser): Make static.
13232 (create_envblk_file): Use xmalloc.
13233 (open_envblk_file): Likewise.
13234 Resepect format security.
13235 (set_variables): Respect format security.
13237 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13239 * util/getroot.c (grub_find_device): Respect format security.
13240 (get_mdadm_uuid): Remove unused variable.
13241 (grub_util_pull_device): Dont call gettext on already translated
13243 (find_system_device): Remove unused variable.
13244 (grub_util_get_grub_dev): Likewise.
13245 (grub_make_system_path_relative_to_its_root): Respect format security.
13247 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13249 * util/grub-fstest.c (execute_command): Make first argument
13251 (read_file): Avoid shadowing.
13252 Reuse underlying error message if device open fails.
13253 (cmd_cmp): Respect format security.
13254 (root): Make const char *.
13255 (fstest): Remove args argument and use global copy.
13256 Respect format security.
13257 (argp_parser): Make static.
13258 (main): Make default_root const char *.
13260 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13262 * util/grub-mount.c (root): Make const char *.
13263 (execute_command): Make first argument a const char *.
13264 (fuse_init): Respect format security.
13265 (argp_parser): Make static. Remove unused variable.
13266 (main): Make default_root a const char *.
13267 Respect format security.
13269 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13271 * util/grub-probe.c (probe): Don't call gettext on already translated
13273 Remove unused variables.
13274 (argp_parser): Remove unused variable.
13276 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13278 * util/grub-script-check.c (argp_parser): Remove unused variable.
13279 (main): Rename read to curread to avoid shadowing.
13281 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13283 * util/misc.c (grub_util_write_image_at): Fix format specification.
13284 (grub_util_write_image): Likewise.
13285 (grub_script_execute_argument_to_string): Removed (unused).
13286 (grub_script_execute_menuentry): Likewise.
13287 (grub_putchar): Likewise.
13289 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13291 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13292 (FUNCTION) [GRUB_UTIL]: Likewise.
13293 (VARIABLE) [GRUB_UTIL]: Likewise.
13295 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13297 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13298 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13300 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13302 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13305 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13307 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13308 (LzmaEnc_SaveState): Removed (unused).
13309 (LzmaEnc_RestoreState): Likewise.
13310 (LzmaEnc_InitPriceTables): Made static.
13311 (LzmaEnc_Construct): Likewise.
13312 (LzmaEnc_FreeLits): Likewise.
13313 (LzmaEnc_Destruct): Likewise.
13314 (LzmaEnc_Init): Likewise.
13315 (LzmaEnc_InitPrices): Likewise.
13316 (LzmaEnc_Finish): Likewise.
13317 (LzmaEnc_PrepareForLzma2): Removed (unused).
13318 (LzmaEnc_MemPrepare): Likewise.
13319 (LzmaEnc_GetNumAvailableBytes): Likewise.
13320 (LzmaEnc_GetCurBuf): Likewise.
13321 (LzmaEnc_CodeOneMemBlock): Likewise.
13323 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13325 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13326 (grub_util_ldm_embed): Likewise.
13328 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13330 * util/grub-editenv.c (print_var): Rename name to varname to
13332 (main): Rename index to curindex to avoid shadowing.
13333 Make filename a const char *.
13335 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13337 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13338 to arg_getline to avoid shadowing.
13340 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13342 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13343 disk_ to avoid shadowing.
13345 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13347 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13348 curindex to avoid shadowing.
13350 (MatchFinder_GetNumAvailableBytes): Make static.
13352 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13354 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13357 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13359 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13360 argument from encrypt to do_encrypt to avoid shadowing.
13362 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13364 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13365 incorrect nesting of #if's.
13367 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13369 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13370 checks which are always false on some platforms.
13371 (grub_cmd_lsacpi): Likewise.
13372 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13373 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13376 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13378 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13379 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13381 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13383 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13384 re_dfa_t to avoid breaking alignment invariants.
13385 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13386 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13388 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13390 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13391 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13393 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13395 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13398 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13400 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13401 conserve alignment invariants.
13402 (grub_ehci_ehcc_read16): Likewise.
13403 (grub_ehci_oper_read32): Likewise.
13404 (grub_ehci_oper_write32): Likewise.
13405 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13406 Conserve alignment invariants.
13408 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13410 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13411 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13414 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13416 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13417 Remove unused variable.
13419 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13421 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13424 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13426 * include/grub/net.h: Remove double declarations.
13428 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13430 Remove "payload" command in ia64 Linux loader since I couldn't
13431 find any evidence of it being used for anything.
13432 Replace "relocate" command with an environment variable
13434 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13436 (ia64_boot_payload): Removed.
13437 (last_payload): Likewise.
13438 (RELOCATE_OFF): Likewise.
13439 (RELOCATE_ON): Likewise.
13440 (RELOCATE_FORCE): Likewise.
13441 (relocate): Likewise.
13442 (free_pages): Don't free payloads.
13443 (grub_load_elf64): Use common error messages.
13444 Use "linux_relocate" variable.
13445 Increase the space after boot_params.
13446 (grub_cmd_payload): Removed.
13447 (grub_cmd_relocate): Likewise.
13448 (grub_cmd_fpswa): Improve messages.
13449 (cmd_payload): Removed.
13450 (cmd_relocate): Likewise.
13451 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13452 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13454 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13456 Convert UHCI to DMA framework.
13458 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13459 (grub_uhci_pci_iter): Fill new members
13460 (grub_alloc_td): Use P2V and V2P functions.
13461 (grub_free_queue): Likewise.
13462 (grub_alloc_qh): Likewise.
13463 (grub_uhci_setup_transfer): Likewise.
13464 (grub_uhci_check_transfer): Likewise.
13466 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13468 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13469 Remove assignment in if while on it.
13471 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13473 * util/grub-mkstandalone.in: Fix modules directory.
13475 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13477 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13479 (argp_parser): Accept "auto" as compression specification.
13481 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13483 Fix `help' with unloaded modules.
13485 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13486 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13487 (grub_dyncmd_dispatcher): Small stylistic fix.
13488 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13489 explicit help is requested.
13491 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13493 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13494 Explicitly init restart while on it.
13496 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13498 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13501 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13503 * util/grub-mknetdir.in: Use . rather than source for POSIX
13506 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13508 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13510 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13512 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13515 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13517 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13520 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13522 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13524 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13526 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13527 iteration of partitions.
13529 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13531 Improve gettext support. Stylistic fixes and error handling fixes while
13534 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13536 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13537 part. Instead setup the correct stack in RM.
13538 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13540 * include/grub/i386/relocator_private.h: New file.
13542 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13544 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13546 * util/grub-fstest.c (options): Add missing DEVICE part.
13548 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13550 Clarify and unify messages.
13552 * grub-core/commands/hashsum.c (options): Unify messages.
13553 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13554 literal-only message as translatable.
13555 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13556 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13557 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13559 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13560 key, not the key used to unlock. Clarify what it's used for.
13561 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13562 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13563 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13564 * util/grub-editenv.c (options): Unify "verbose" message.
13565 * util/grub-fstest.c (read_file): Unify error message.
13566 (fstest): Add quotes around commands.
13567 (options): Unify "verbose" message.
13568 * util/grub-install.in: Add quotes around variable name.
13569 * util/grub-kbdcomp.in: Unify error message.
13570 * util/grub-mkfont.c (main): Likewise.
13571 * util/grub-mkrescue.in: Likewise.
13572 * util/grub-mklayout.c (options): Unify "verbose" message.
13573 * util/grub-mkstandalone.in: Unify help and verbose messages.
13574 * util/grub-mount.c (options): Unify "verbose" message.
13575 * util/grub-probe.c (options): Likewise.
13576 * util/grub-script-check.c (options): Likewise.
13577 * util/grub-setup.c (setup): Unify no-terminator message.
13578 (options): Use DEVICE and not DEV.
13579 Unify "verbose" message.
13580 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13582 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13584 Improve and unify messages.
13586 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13587 name. All users updated.
13588 Print filename in error.
13589 (read_device_map): Print filename in error.
13590 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13591 (grub_util_get_os_disk): Likewise.
13592 (grub_util_biosdisk_get_grub_dev): Likewise.
13593 (grub_util_check_block_device): Likewise.
13594 (grub_util_check_char_device): Likewise.
13595 (grub_make_system_path_relative_to_its_root): Likewise.
13596 * util/grub-editenv.c (create_envblk_file): Likewise.
13597 (open_envblk_file): Likewise.
13598 (write_envblk): Likewise.
13599 * util/grub-fstest.c (cmd_cp): Likewise.
13600 (cmd_cat): Likewise.
13601 (cmd_cmp): Likewise.
13602 * util/grub-menulst2cfg.c (main): Likewise.
13603 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13604 (write_font_width_spec): Likewise.
13605 (write_font_pf2): Likewise.
13606 * util/grub-mkimage.c (generate_image): New argument outname.
13608 Remove unreacheable message.
13609 (options): Unify messages.
13610 (help_filter): Likewise.
13611 * util/grub-mklayout.c (usage): Removed (unused).
13612 (main): Print filename in error.
13613 * util/grub-mkrescue.in: Fix wrong quoting.
13614 * util/grub-setup.c (setup): Print filename in error.
13615 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13616 (check_sas): Likewise.
13617 * util/misc.c (grub_util_get_fp_size): Removed.
13618 (grub_util_get_image_size): Print filename in error.
13619 (grub_util_read_at): Removed.
13620 (grub_util_read_image): Print filename in error.
13621 (grub_util_load_image): Likewise.
13622 (grub_util_write_image_at): New argument filename. All users updated.
13623 Print filename in error.
13624 (grub_util_write_image): New argument filename. All users updated.
13625 Print filename in error.
13626 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13627 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13629 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13631 * grub-core/Makefile.core.def (pxechain): New module.
13632 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13633 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13635 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13636 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13638 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13640 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13641 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13642 * include/grub/err.h (grub_error_saved): New struct.
13643 (grub_errmsg): Make array size explicit.
13644 * include/grub/misc.h (grub_error_save): New function.
13645 (grub_error_load): Likewise.
13646 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13647 (grub_error_push): Update `errno' member name.
13648 (grub_error_pop): Likewise
13649 * grub-core/net/tftp.c (tftp_data): New member save_err.
13650 (tftp_receive): Save error.
13651 (tftp_open): Restore error.
13653 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13655 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13656 to real mode down to execute A20-related code in protected mode as
13659 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13661 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13662 NULL when the argument `level' has an unexpected value.
13664 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13666 Move platform-dependent files from $prefix to $prefix/$platform.
13668 * config.h.in (GRUB_TARGET_CPU): New definition.
13669 (GRUB_PLATFORM): Likewise.
13670 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13671 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13672 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13673 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13674 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13675 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13676 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13677 * grub-core/normal/term.c (read_terminal_list): Likewise.
13678 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13680 (grub_gettext_init_ext): Likewise.
13681 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13683 * util/grub-install.in: Update directories.
13684 * util/grub-mknetdir.in: Likewise.
13685 * util/grub-mkrescue.in: Likewise.
13687 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13689 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13690 grub_error framework. All users updated.
13692 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13694 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13695 lists (by always binsearching), improve caching (cache strings
13696 used for binsearch, not only results), improve
13697 maintainability (by using more structured binary search) and correct
13700 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13702 * grub-core/script/execute.c (grub_script_return): Fix warning.
13704 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13706 * grub-core/script/execute.c (grub_script_return): Fix potential
13708 Reported by: Jim Meyering.
13710 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13712 * po/POTFILES.in: Regenerate.
13713 * util/grub-install.in: Gettextize the strings missed in first pass.
13715 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13717 * Makefile.util.def (grub-mkdevicemap): Removed.
13718 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13719 * include/grub/util/deviceiter.h: Removed.
13720 * util/deviceiter.c: Likewise.
13721 * util/getroot.c (grub_util_get_os_disk): New function.
13722 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13723 replacement for EFI.
13724 * util/grub-mkdevicemap.c: Removed.
13725 * util/grub-probe.c (probe): Handle PRINT_DISK.
13726 (argp_parser): Handle -t disk.
13728 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13730 * util/grub-mkfont.c: Migrate to argp.
13731 * util/grub-mklayout.c: Likewise.
13732 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13733 * util/grub-mkrelpath.c: Likewise.
13734 * util/grub-probe.c: Likewise.
13735 * util/grub-script-check.c: Likewise.
13737 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13739 * util/grub-reboot.in: Add missing datarootdir.
13740 Add missing newline.
13741 * util/grub-set-default.in: Add missing datarootdir.
13742 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13743 * util/grub-mkrescue.in: Likewise.
13745 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13747 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13749 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13751 * util/grub-kbdcomp.in: Add decent help and gettextize.
13752 * docs/man/grub-kbdcomp.h2m: New file.
13754 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13756 Migrate grub-mkimage.c to argp.
13758 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13759 (grub-setup): Likewise.
13760 * util/grub-setup.c (print_version): Move to ...
13761 * util/argp_common.c (print_version): ... here.
13762 * util/grub-setup.c (argp_program_version_hook): Move to ...
13763 * util/argp_common.c (argp_program_version_hook): ... here.
13764 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13766 * util/grub-mkimage.c (main): Migrate to argp.
13768 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13770 * util/grub-mkrescue.in: Use same message as
13771 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13772 for better translations.
13774 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13776 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13777 options with generic grub-mkrescue.in with the goal of future
13780 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13782 * grub-core/kern/mm.c: Add missing include of i18n.h
13783 * grub-core/lib/relocator.c: Likewise.
13785 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13787 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13789 (allocate_pages): Check return value.
13790 Replace fatal with error.
13791 (grub_linux_boot): Replace printf with dprintf.
13792 Check find_mmap_size return value.
13793 Replace fatal with error.
13794 Don't call grub_machine_fini.
13795 (grub_load_elf64): Replace printf with dprintf.
13796 (grub_cmd_linux): Likewise.
13797 (grub_cmd_initrd): Likewise.
13798 (grub_cmd_payload): Likewise.
13800 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13802 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13804 * grub-core/video/radeon_fuloong2e.c
13805 (grub_video_radeon_fuloong2e_setup): Likewise.
13806 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13807 * grub-core/video/video.c (grub_video_set_mode): Don't override
13808 standard out of memory message.
13810 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13812 NetBSD disk wedge support.
13814 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13815 [__NetBSD__]: Handle NetBSD disk wedges.
13816 * util/getroot.c (convert_system_partition_to_system_disk)
13817 [__NetBSD__]: Likewise.
13819 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13821 * util/grub-mkconfig.in: Use umask rather than chmod to create
13822 grub.cfg.new to avoid insecure grub.cfg.
13824 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13826 * grub-core/commands/ls.c: Gettextize.
13827 * grub-core/commands/setpci.c: Likewise.
13828 * grub-core/commands/videotest.c: Likewise.
13829 * grub-core/disk/geli.c: Likewise.
13830 * grub-core/kern/mm.c: Likewise.
13831 * grub-core/lib/relocator.c: Likewise.
13832 * grub-core/loader/efi/appleloader.c: Likewise.
13833 * grub-core/loader/i386/xnu.c: Likewise.
13834 * grub-core/loader/ia64/efi/linux.c: Likewise.
13835 * grub-core/loader/xnu.c: Likewise.
13836 * grub-core/net/dns.c: Likewise.
13837 * grub-core/net/net.c: Likewise.
13838 * grub-core/script/lexer.c: Likewise.
13839 * grub-core/script/parser.y: Likewise.
13840 * grub-core/script/yylex.l: Likewise.
13841 * util/getroot.c: Likewise.
13842 * util/grub-setup.c: Likewise.
13844 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13846 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13849 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13851 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13853 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13855 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
13857 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
13858 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
13860 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13862 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
13863 * util/grub-install.in: Gettextize.
13864 * util/grub-mkconfig.in: Likewise.
13865 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
13867 (grub_warn): Gettextize.
13868 * util/grub-mknetdir.in: Gettextize.
13869 * util/grub-mkrescue.in: Likewise.
13870 * util/grub-mkstandalone.in: Likewise.
13871 * util/grub-reboot.in: Likewise.
13872 * util/grub-set-default.in: Likewise.
13873 * util/grub.d/00_header.in: Likewise.
13874 * util/grub.d/10_hurd.in: Likewise.
13875 * util/grub.d/10_kfreebsd.in: Likewise.
13876 * util/grub.d/10_linux.in: Likewise.
13877 * util/grub.d/10_netbsd.in: Likewise.
13878 * util/grub.d/10_windows.in: Likewise.
13879 * util/grub.d/20_linux_xen.in: Likewise.
13880 * util/grub.d/30_os-prober.in: Likewise.
13881 * po/POTFILES-shell.in: Regenerate.
13883 2012-02-03 Richard Laager <rlaager@wiktel.com>
13885 * util/grub-mkimage.c (main): Fix format-security warning.
13886 * util/grub-mkrelpath.c (main): Likewise.
13887 * util/grub-probe.c (main): Likewise.
13889 2012-02-03 Richard Laager <rlaager@wiktel.com>
13891 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
13893 Put back lost PRINT_DRIVE.
13895 2012-02-03 Richard Laager <rlaager@wiktel.com>
13897 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
13898 (grub_guess_root_devices): Replace strlen with sizeof.
13900 (find_root_devices_from_poolname): Remove unused variable.
13903 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13905 Support install on multi-device filesystems.
13907 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
13908 (grub_guess_root_devices): ...this. Return char **. All users updated.
13909 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
13911 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
13912 (find_root_devices_from_poolname): ... here.
13913 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
13915 (grub_guess_root_device): Rename to ...
13916 (grub_guess_root_devices): ... this. Return char **. All users updated.
13917 * util/grub-install.in: Handle multi-device filesystems.
13918 * util/grub-probe.c (probe). Make device_names a char **. Add delim
13919 argument. All users updated.
13920 Handle multi-device filesystems.
13921 Use 'delim' as separator.
13922 Remove device check to allow filesystems on file.
13923 (main): Support -0 argument. Handle multi-device.
13924 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
13925 Fix a cross-device check while on it.
13926 (arguments): Remove root_dev.
13927 (argp_parser): Remove -r.
13928 (main): Remove root_dev.
13930 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13932 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
13934 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13936 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
13938 Reported by: NODA, Kai <nodakai>.
13940 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13944 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
13946 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
13947 (grub_ehci_setup_qh): Likewise.
13948 (grub_ehci_find_qh): Likewise.
13949 (grub_ehci_transaction): Likewise.
13950 (grub_ehci_setup_transfer): Likewise.
13951 (grub_ehci_check_transfer): Likewise.
13952 (grub_ehci_portstatus): Likewise.
13953 (grub_ehci_detect_dev): Likewise.
13954 (grub_ehci_transfer_controller_data): New field td_last_phys.
13955 (grub_ehci_setup_transfer): Fill td_last_phys.
13956 (grub_ehci_check_transfer): Use td_last_phys.
13958 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
13960 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
13961 if no submenu is present.
13963 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13967 * include/grub/usb.h (grub_usbms_protocol_t): New values
13968 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
13969 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
13970 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
13971 (grub_usbms_dev): Add subclass, protocol and intrpt.
13972 Remove in_maxsz and out_maxsz.
13973 (grub_usbms_reset): Rename to ...
13974 (grub_usbms_bo_reset): .. this.
13975 (grub_usbms_cbi_cmd): New function.
13976 (grub_usbms_cbi_reset): Likewise.
13977 (grub_usbms_reset): Likewise.
13978 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
13979 (grub_usbms_transfer): Rename to ...
13980 (grub_usbms_transfer_bo): ... this.
13981 (grub_usbms_transfer_cbi): Likewise.
13982 (grub_usbms_transfer): Likewise.
13984 2012-02-01 Aleš Nesrsta <starous@volny.cz>
13985 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
13987 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
13988 the support for the CS5536 modification thereos and few bugfixes.
13990 * grub-core/Makefile.core.def (ehci): New module.
13991 * grub-core/bus/usb/ehci.c: New file.
13992 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
13993 port and hubaddr. All users updated.
13994 Save port and hubaddr into dev structure.
13995 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
13997 * include/grub/pci.h (grub_dma_phys2virt): New function.
13998 (grub_dma_virt2phys): Likewise.
13999 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14001 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14003 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14004 check as some mkfs implementations omit it.
14006 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14008 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14010 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14012 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14013 Add new member volname2.
14014 (grub_jfs_label): Use volname2 if available.
14016 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14018 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14019 over last_mounted as seen in image generated by mkfs.nilfs2.
14020 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14022 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14024 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14025 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14026 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14028 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14030 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14033 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14035 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14036 subvolume name (by removing a bogus and useless check).
14038 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14040 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14041 sizeof while on it.
14043 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14045 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14046 (grub_scsi_read_capacity10): ... this.
14047 (grub_scsi_read_capacity16): New function.
14048 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14050 Fix off-by-one error.
14051 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14053 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14054 (grub_scsi_read_capacity10): ... this.
14055 (grub_scsi_read_capacity_data): Rename to ...
14056 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14057 (grub_scsi_read_capacity16): New struct.
14058 (grub_scsi_read_capacity16_data): Likewise.
14059 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14060 grub_scsi_cmd_read_capacity10.
14061 New command grub_scsi_cmd_read_capacity16.
14063 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14065 SCSI >2TiB support.
14067 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14068 (grub_scsi_write16): Likewise.
14069 (grub_scsi_read): Use read16 when necessary.
14070 (grub_scsi_write): Likewise.
14071 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14072 (grub_scsi_write16): Likewise.
14073 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14075 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14077 SCSI write support (for usbms mainly).
14079 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14081 (grub_scsi_write): Implement.
14082 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14084 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14086 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14089 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14091 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14093 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14095 * po/POTFILES.in: Regenerate.
14097 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14099 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14100 with grub_printf to avoid unnecessary fatal failure.
14102 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14104 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14105 (INT_MAX): Likewise.
14106 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14107 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14108 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14109 (strcpy): Likewise.
14110 (strstr): Likewise.
14111 (strchr): Likewise.
14112 (strncpy): Likewise.
14113 (strcat): Likewise.
14114 (strncat): Likewise.
14115 (strcoll): Likewise.
14116 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14117 (GRUB_INT_MAX): Likewise.
14119 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14121 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14123 (optimize_utf8): Likewise.
14124 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14126 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14128 * grub-core/boot/i386/pc/lnxboot.S: Use
14129 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14130 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14132 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14134 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14136 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14138 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14139 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14140 now to avoid double free.
14141 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14143 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14144 * util/grub-probe.c (escape_of_path): Always return a new copy.
14145 (print_full_name): Escape path.
14146 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14147 Fix hints on abstractions.
14149 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14151 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14152 Don't add "root" line if no compatibility hont is available.
14153 Suggested by: Seth Goldberg.
14155 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14157 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14158 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14159 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14160 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14162 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14164 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14166 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14168 * util/grub-pe2elf.c (ehdr): Make static.
14170 (num_sections): Likewise.
14171 (offset): Likewise.
14173 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14175 Eliminate ofpath limits and possible overflows.
14177 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14178 (OF_PATH_MAX): Removed.
14179 (MAX_DISK_CAT): New const.
14180 (find_obppath): Use allocated rather than preallocated buffer.
14181 Return result. Argument of_path removed. All users updated.
14182 Add missing fdstat.
14183 (xrealpath): New function.
14184 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14185 Allocate rather than use preallocated buffer. All users updated.
14186 (__of_path_common): Use allocated rather than preallocatecd buffer.
14187 Return result. Argument of_path removed. All users updated.
14188 (vendor_is_ATA): Read only needed part form the file.
14189 (check_sas): Allocate depending on contents rather than fixed.
14190 (main) [STANDALONE]: Handle NULL result.
14192 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14194 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14196 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14198 Cryptodisk write support.
14200 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14201 (grub_cryptodisk_decrypt): Moved logic to ...
14202 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14203 (grub_cryptodisk_write): Implement.
14204 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14205 (grub_util_fd_write): ... this. Make global.
14206 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14208 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14210 * include/grub/list.h (grub_list_remove): Don't crash if element is
14213 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14215 Rename ofconsole to console.
14217 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14218 as sysnonym to console.
14219 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14220 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14221 Rename grub_ofconsole_ to grub_console_. All users updated
14222 (grub_console_term_output): Rename "ofconsole" to "console".
14223 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14226 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14228 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14230 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14231 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14232 GRUB_DISK_DEVICE_FILE_ID.
14234 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14236 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14237 and improve performance.
14239 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14241 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14242 missing ieee1275/ prefix on whole disk.
14244 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14246 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14247 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14249 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14251 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14253 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14255 Merge common RAID and LVM logic to an abstract diskfilter.
14256 Add LDM support using the same framework.
14258 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14259 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14260 (libgrubmods): Remove grub-core/disk/raid.c and
14261 grub-core/partmap/gpt.c.
14262 * grub-core/Makefile.core.def (ldm): New module.
14263 (raid): Renamed to diskfilter. All users updated.
14264 * grub-core/disk/raid.c: Moved to ...
14265 * grub-core/disk/diskfilter.c: ... here.
14266 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14268 (find_array): Renamed to ...
14269 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14270 (grub_is_array_readable): Renamed to ...
14271 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14272 (insert_array): New argument id.
14273 (is_node_readable): New function.
14274 (scan_device): Rename to ...
14275 (scan_disk): .. this. Restrict to one disk.
14276 (scan_devices): New function.
14277 (grub_diskfilter_iterate): Support multi-LV.
14278 Skip invisible and nameless LVs.
14279 (grub_diskfilter_memberlist): Support multi-LV.
14280 (grub_diskfilter_read_node): New function.
14281 (grub_raid_read): Most of logic moved to ...
14282 (read_segment): ... here
14283 (read_lv): New function.
14284 (grub_diskfilter_get_vg_by_uuid): New function.
14285 (grub_diskfilter_make_raid): Likewise.
14286 * grub-core/disk/ldm.c: New file.
14287 * grub-core/disk/lvm.c (vg_list): Removed.
14288 (lv_count): Likewise.
14289 (scan_depth): Likewise.
14290 (is_lv_readable): Likewise.
14291 (grub_lvm_getvalue): Advance pointer past the number.
14292 (find_lv): Removed.
14293 (do_lvm_scan): Refactored into ...
14294 (grub_lvm_detect): ... this. Support raid.
14295 (grub_lvm_iterate): Removed.
14296 (grub_lvm_memberlist): Likewise.
14297 (grub_lvm_open): Likewise.
14298 (grub_lvm_close): Likewise.
14299 (read_lv): Likewise.
14300 (read_node): Likewise.
14301 (is_node_readable): Likewise.
14302 (is_lv_readable): Likewise.
14303 (grub_lvm_read): Likewise.
14304 (grub_lvm_write): Likewise.
14305 (grub_lvm_dev): Use diskfilter
14306 (GRUB_MOD_INIT): Likewise.
14307 (GRUB_MOD_FINI): Likewise.
14308 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14310 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14311 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14312 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14313 grub_diskfilter_read_node.
14314 Fix a bug with xor.
14315 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14316 grub_diskfilter_read_node.
14317 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14318 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14319 (grub_disk_dev_iterate): Move from here...
14320 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14321 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14323 (grub_hostdisk_find_partition_start): Likewise.
14324 (grub_hostdisk_os_dev_to_grub_drive): New function.
14325 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14326 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14327 * util/getroot.c (make_device_name): ... here.
14328 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14330 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14331 * grub-core/kern/emu/hostdisk.c
14332 (convert_system_partition_to_system_disk): Move to ...
14333 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14334 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14335 * util/getroot.c (device_is_wholedisk): ... here.
14336 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14337 * util/getroot.c (find_system_device): ... here.
14338 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14340 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14341 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14343 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14345 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14347 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14348 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14349 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14351 * include/grub/raid.h: Renamed to ...
14352 * include/grub/diskfilter.h: ... this.
14353 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14354 (GRUB_RAID_LAYOUT_*): Make into array.
14355 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14356 (grub_diskfilter_vg): New struct.
14357 (grub_diskfilter_pv_id): Likewise.
14358 (grub_raid_member): Removed.
14359 (grub_raid_array): Likewise.
14360 (grub_diskfilter_pv): New struct.
14361 (grub_diskfilter_lv): Likewise.
14362 (grub_diskfilter_segment): Likewise.
14363 (grub_diskfilter_node): Likewise.
14364 (grub_diskfilter_get_vg_by_uuid): New proto.
14365 (grub_raid_register): Inline.
14366 (grub_diskfilter_unregister): Likewise.
14367 (grub_diskfilter_make_raid): New proto.
14368 (grub_diskfilter_vg_register): Likewise.
14369 (grub_diskfilter_read_node): Likewise.
14370 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14371 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14372 (grub_util_is_ldm): Likewise.
14373 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14374 (grub_hostdisk_find_partition_start): Likewise.
14375 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14376 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14378 (grub_gpt_partition_map_iterate): New proto.
14379 * include/grub/lvm.h (grub_lvm_vg): Removed.
14380 (grub_lvm_pv): Likewise.
14381 (grub_lvm_lv): Likewise.
14382 (grub_lvm_segment): Likewise.
14383 (grub_lvm_node): Likewise.
14384 * util/getroot.c [...]
14385 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14386 (probe_abstraction): Likewise.
14387 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14388 (main): Remove dead logic.
14390 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14392 Simplify root device discover and don't fail when trying to open
14395 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14397 (get_diskname_from_path): Likewise.
14398 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14401 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14403 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14405 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14407 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14410 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14412 * util/grub-install.in: Add missing \.
14413 Reported by: gentoofan
14415 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14417 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14418 (direct_read): Use correct compressed size.
14419 (grub_squash_read_data): Likewise.
14421 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14423 * docs/grub.texi (Platform limitations): New section.
14424 (Platform-specific operations): Likewise.
14425 * docs/grub-dev.texi (Porting): Likewise.
14427 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14429 IEEE1275 disk write support.
14431 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14433 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14434 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14435 and seek loginc to ...
14436 (grub_ofdisk_prepare): ... here.
14437 (grub_ofdisk_write): Implement.
14439 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14441 ARC disk write support.
14443 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14444 (reopen): New argument writable. All users updated.
14445 Handle required access mode.
14446 (grub_arcdisk_write): Implement.
14447 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14448 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14450 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14452 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14453 (read_sblock): Don't attempt to read superblocks outside the disk size.
14455 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14457 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14458 first superblock to find the second one when possible.
14460 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14462 * util/grub-install.in: Fix an ARC bug.
14463 Print a warning if no platform-specific setup is available.
14465 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14467 Use static allocation rather than scratch pointer in reed_solomon.
14468 It decreases its size significantly and avoids a variable in .text.
14470 * grub-core/lib/reed_solomon.c (scratch): Removed.
14471 (chosenstat): New const or static array.
14473 (errpot): Likewise.
14474 (errpos): Likewise.
14477 (errvals): Likewise.
14478 (eqstat): Likewise.
14479 (pol_evaluate): Replace x with log_x argument. All users updated.
14480 (syndroms): Removed.
14481 (gauss_solve): Use statically allocated arrays.
14482 (rs_recover): Likewise.
14483 Calculate syndroms directly.
14484 (decode_block): Use statically allocated arrays.
14485 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14486 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14488 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14490 Eliminate fixed limit on reed solomon decoder length.
14492 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14493 rather than hardcoding the address.
14494 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14495 no_reed_solomon_length.
14496 Move gate_a20 to no-reed-solomon part.
14497 Don't force a particular size of no reed-solomon part.
14498 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14500 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14501 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14503 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14505 * grub-core/commands/wildcard.c (match_files): Handle filenames
14506 without explicit device.
14507 (wildcard_expand): Don't add explicit device if not already present.
14508 * tests/grub_script_echo1.in: Add a new expansion test.
14510 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14512 Replace single-linked with double-linked lists. It results in more
14513 compact and more efficient code.
14515 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14516 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14517 (grub_list_remove): Moved from here ...
14518 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14519 (grub_prio_list_insert): Set prev.
14520 * include/grub/list.h (grub_list): Add prev. All users updated.
14522 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14524 Handle newer autotools. Add some missing quotes while on it.
14526 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14527 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14528 (pkgdata_DATA): ... here.
14529 * Makefile.util.def (update-grub_lib): Removed.
14530 * conf/Makefile.common (pkglib_DATA): Removed.
14531 (pkglib_SCRIPTS): Likewise.
14532 (pkgdata_DATA): New variable.
14533 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14535 Add missing quotes.
14536 Remove unused variable while on it.
14537 * tests/util/grub-shell.in: Likewise.
14538 * util/grub-install.in: Likewise.
14539 * util/grub-mkconfig.in: Likewise.
14540 * util/grub-mknetdir.in: Likewise.
14541 * util/grub-mkrescue.in: Likewise.
14542 * util/grub-mkstandalone.in: Likewise.
14543 * util/grub.d/00_header.in: Likewise.
14544 * util/grub.d/10_hurd.in: Likewise.
14545 * util/grub.d/10_illumos.in: Likewise.
14546 * util/grub.d/10_kfreebsd.in: Likewise.
14547 * util/grub.d/10_linux.in: Likewise.
14548 * util/grub.d/10_netbsd.in: Likewise.
14549 * util/grub.d/10_windows.in: Likewise.
14550 * util/grub.d/20_linux_xen.in: Likewise.
14551 * util/grub.d/30_os-prober.in: Likewise.
14552 * util/update-grub_lib.in: Removed.
14554 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14556 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14557 a workaround for intel problem.
14559 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14560 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14561 2012-01-23 pfsmorigo
14563 * util/grub-install.in: Support dd'in into PreP partition.
14564 * util/grub-probe.c (probe): Support discovering partition type.
14565 (main): Support -t msdos_parttype.
14567 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14569 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14570 infinite recursion using counter.
14571 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14572 init to skip it if the magic check fails.
14573 (dec_stream_header): Init s->crc32.
14575 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14576 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14577 2012-01-22 Richard Laager <rlaager@wiktel.com>
14579 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14581 (find_bestub): Determine correct size.
14582 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14583 (scan_disk): Align the size down.
14584 Call check pool before find_bestub to have ashift.
14586 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14588 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14589 dprintf in no-malloc zone.
14591 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14593 * configure.ac: Add back in test for limits.h.
14595 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14597 Support 4K-sector NTFS.
14599 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14600 (grub_ntfs_data): Remove blocksize.
14601 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14602 Remove data argument. All users updated.
14604 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14606 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14607 being in .text to avoid dprel references.
14608 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14609 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14610 (grub_arch_highmemsize): Likewise.
14611 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14612 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14613 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14615 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14617 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14619 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14620 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14622 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14624 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14626 (grub_set_datetime_cmos): Likewise.
14628 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14630 Make XZ compression parameters dependent on target and not host CPU.
14632 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14633 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14635 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14637 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14638 set but not used variable.
14640 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14642 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14643 created when no uuid support is compiled into mkfs.reiser.
14645 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14647 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14648 (utf8_to_macroman): Do the opposite.
14649 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14651 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14653 * configure.ac: Refise build qemu_mips w/o unifont.
14655 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14657 Eliminate grub_min/grub_max prone to overflow usage.
14659 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14660 (poll_nonroot_hub): Likewise.
14661 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14662 (grub_affs_label): Likewise.
14663 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14664 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14665 (grub_hfs_label): Likewise.
14666 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14667 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14668 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14669 (zap_leaf_array_get): Likewise.
14670 (dnode_get_path): Likewise.
14671 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14672 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14673 * grub-core/script/execute.c (grub_script_break): Likewise.
14674 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14676 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14677 * include/grub/misc.h (grub_min): Removed.
14678 (grub_max): Likewise.
14680 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14682 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14685 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14687 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14689 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14691 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14693 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14695 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14696 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14698 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14700 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14701 rather than a hack for grub_strncasemap.
14703 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14705 Support multiple initrds
14706 Note: part of this was accidently committed in r3739.
14708 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14710 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14711 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14712 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14713 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14714 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14716 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14718 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14719 disks with unknown size.
14720 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14722 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14724 Remove defines pertaining to arbitrary limits not affecting GRUB
14727 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14728 (EXT2_MAX_SYMLINKCNT): Likewise.
14729 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14730 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14731 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14732 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14733 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14734 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14735 (DN_MAX_OBJECT_SHIFT): Likewise.
14736 (DN_MAX_OFFSET_SHIFT): Likewise.
14737 (DN_MAX_OBJECT): Likewise.
14738 (DNODES_PER_LEVEL_SHIFT): Likewise.
14739 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14740 (SPA_MAXBLOCKSIZE): Likewise.
14741 (SPA_BLOCKSIZES): Likewise.
14742 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14743 (MZAP_MAX_BLKSZ): Likewise.
14745 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14747 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14748 handle NULL appropriately.
14751 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14755 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14757 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14758 * configure.ac: Fix efiemu check.
14760 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14762 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14764 Reported by: adamwill
14766 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14768 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14770 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14772 Fix handling of wide characters in gfxterm.
14774 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14775 (clear_char): Likewise.
14776 (paint_char): Skip code == NULL chars.
14777 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14779 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14781 * grub-core/normal/charset.c: Move comment to right place.
14783 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14785 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14786 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14787 (grub_affs_mount): Revert the correct version checking.
14789 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14791 * docs/grub.texi (Unicode): Mention several other unsupported features.
14793 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14795 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14796 case statements as compile-time one.
14797 (direct_read): Prevent spurious warnings.
14798 (grub_squash_read_data): Likewise.
14800 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14802 Various squash4 fixes and LZO and XZ support.
14804 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14805 Add xzembed source files.
14806 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14807 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14808 (grub_squash_inode): New subtype long_dir.
14809 (SQUASH_TYPE_LONG_DIR): New inode type.
14810 (COMPRESSION): New enum.
14811 (XZBUFSIZ): New const.
14812 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14813 (read_chunk): Use data->decompress.
14814 (zlib_decompress): New function.
14815 (lzo_decompress): Likewise.
14816 (xz_decompress): Likewise.
14817 (squash_mount): Set new data fields.
14818 (grub_squash_iterate_dir): Handle long dir.
14819 (squash_unmount): Free xzdec and xzbuf.
14820 (grub_squash_open): Check ino type.
14821 (direct_read): Stylistic fixes. Use data->decompress.
14822 (grub_squash_read_data): Likewise.
14823 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14824 (get_byte): Likewise.
14825 (grub_zlib_disk_read): Removed.
14826 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14827 (GRUB_POSIX_BOOL_DEFINED): New define.
14828 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14829 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14830 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14831 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14833 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14835 Don't override more informative errors.
14837 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14838 * grub-core/font/font.c (open_section): Likewise.
14839 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14840 filename. Don't override errors.
14841 (grub_cmd_openbsd_ramdisk): Don't override errors.
14842 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14843 (grub_cmd_initrd): Likewise.
14844 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14845 (grub_cmd_initrd): Likewise.
14846 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14847 (grub_cmd_linux): Likewise.
14848 (grub_cmd_initrd): Likewise.
14849 (grub_cmd_payload): Likewise.
14850 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14851 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14852 (grub_cmd_module): Likewise.
14853 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14854 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14855 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
14856 (grub_cmd_xnu_mkext): Likewise.
14857 (grub_cmd_xnu_ramdisk): Likewise.
14858 (grub_xnu_check_os_bundle_required): Likewise.
14859 (grub_xnu_load_kext_from_dir): Likewise.
14860 (grub_cmd_xnu_kextdir): Likewise.
14861 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
14863 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14865 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
14866 as 1024 in block size field. Found on one of my test images.
14867 Small optimisation while on it.
14869 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14871 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
14872 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
14873 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
14874 performance fixes while on it.
14875 (grub_sfs_close): Fix memory leak while on it.
14876 (grub_sfs_label): Convert Latin1 to UTF-8.
14878 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14880 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
14881 space to avoid overflows.
14882 (grub_hfs_label): Convert from macroman to UTF-8.
14884 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14886 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
14888 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14890 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
14892 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14894 * unicode: Import Unicode 6.0 data.
14896 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14898 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
14901 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14903 Avoid cutting in the middle of UTF-8 character.
14905 * include/grub/charset.h (grub_getend): New function.
14906 * grub-core/script/function.c (grub_script_function_find): Use
14908 * grub-core/normal/completion.c (add_completion): Likewise.
14910 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14912 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
14913 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
14914 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
14915 (GRUB_UNICODE_TAG_END): Likewise.
14916 (GRUB_UNICODE_LAST_VALID): Likewise.
14918 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14920 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
14921 len and make it smaller. All users updated.
14922 * util/import_unicode.py: Put length and not end character.
14925 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14927 Make better Unicode-compliant and unify some UTF-8 code pathes.
14929 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
14931 (grub_is_valid_utf8): Use grub_utf8_process.
14932 Check resulting code range.
14933 (grub_utf8_to_ucs4): Use grub_utf8_process.
14934 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
14937 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14939 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
14941 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14943 * docs/grub.texi (Filesystems): Mention AFS.
14945 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14947 * docs/grub.texi (Filesystems): Clarify restrictions.
14948 (Regexp): Mention non-Unicode regexp behaviour.
14949 (Other): Mention non-Unicode matching behaviour.
14951 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14953 Make HFS implementation use MacRoman.
14955 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
14956 (macroman): New const array.
14957 (macroman_to_utf8): New function.
14958 (utf8_to_macroman): Likewise.
14959 (grub_hfs_find_dir): Use utf8_to_macroman.
14960 (grub_hfs_dir): Use macroman_to_utf8.
14961 Set case_insensitive.
14963 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14965 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
14967 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
14969 Integrate hints into autogeneration scripts.
14971 * docs/grub.texi (Filesystems): Add a hostdisk example.
14972 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
14973 (grub-probe): Add ofpath.
14974 * gentpl.py: Remove group nosparc64.
14975 * grub-core/commands/search.c (cache_entry): New struct.
14977 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
14978 * grub-core/commands/search_wrap.c (options): Add platform-specific
14980 (grub_cmd_search): Handle platform-specific hints.
14981 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
14982 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
14983 (grub_util_biosdisk_data): Likewise.
14984 (grub_util_biosdisk_open): Set device_map.
14985 (read_device_map): Handle "" as indication of no map.
14987 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
14988 (grub_util_biosdisk_get_compatibility_hint): New function.
14989 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
14990 * include/grub/emu/hostdisk.h
14991 (grub_util_biosdisk_get_compatibility_hint): New proto.
14992 * util/grub-install.in: Don't call grub-mkdevicemap.
14993 Add platform-specific hint to load.cfg.
14994 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
14995 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
14996 hints. Set root preliminary to compatibility hint, not to OS name.
14997 * util/grub-probe.c (PRINT_*): Add hints.
14998 (print): Make static.
14999 (escape_of_path): New function.
15000 (guess_bios_drive): Likewise.
15001 (guess_efi_drive): Likewise.
15002 (guess_baremetal_drive): Likewise.
15003 (print_full_name): Likewise.
15004 (probe): Handle hints.
15006 * util/ieee1275/devicemap.c: Removed.
15007 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15009 (grub_util_devname_to_ofpath): Return NULL on failure.
15011 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15013 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15015 * po/POTFILES.in: Regenerated.
15017 Allow purely long options
15019 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15020 (SHORT_ARG_USAGE): Likewise.
15021 (grub_arg_show_help): Compare opt with help_options.
15022 (parse_option): Receive opt as argument. If makes big simplificatons.
15025 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15027 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15028 Restructure to avoid warning.
15030 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15032 * util/grub-install.in: Account for possible escaped comma in device
15035 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15037 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15040 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15042 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15043 allocation and zero-setting.
15044 (grub_ieee1275_get_devname): Check that alias is complete.
15046 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15048 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15049 unaligned segments.
15051 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15053 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15055 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15056 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15057 Add ieee1275 prefix.
15059 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15061 * docs/grub.texi (Filesystems): Update.
15063 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15065 Support odc, newc and bigendian cpio formats.
15067 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15068 * grub-core/Makefile.core.def (newc): New module.
15070 (cpio_be): Likewise.
15071 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15073 (MAGIC2): Likewise.
15074 (head) [MODE_ODC]: Adapt for the format.
15075 (head) [MODE_NEWC]: Likewise.
15076 (head) [!MODE_*]: Write fields of interest as arrays.
15077 (MAGIC_USTAR): Removed.
15078 (read_number) [MODE_NEWC]: Change to hex.
15079 (read_number) [!MODE_*]: Parse binary arrays.
15080 (grub_cpio_find_file): Factor out the code for better structure and
15081 always use read_number.
15082 (grub_cpio_mount): Use MAGIC and MAGIC2.
15083 (grub_cpio_dir): Exit on first hook non-0 return.
15084 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15085 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15086 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15087 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15088 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15089 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15090 * grub-core/fs/newc.c: New file.
15091 * grub-core/fs/odc.c: Likewise.
15092 * grub-core/fs/cpio_be.c: Likewise.
15094 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15096 Fix handling of tar numbers occupying the whole field.
15098 * grub-core/fs/cpio.c (read_number): New function.
15099 (grub_cpio_find_file): Use read_number instead of strtoull.
15101 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15103 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15104 occupying the whole field size.
15106 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15108 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15110 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15112 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15114 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15116 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15117 TARGET_IMG_LDFLAGS.
15119 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15121 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15122 (mountinfo_entry): Increase the field size to take escaping into
15124 (find_root_device_from_libzfs): Add one byte to size of strings for
15127 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15129 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15131 * util/grub-setup.c (setup): Likewise.
15133 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15135 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15138 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15140 * docs/grub.texi (Internationalisation): New section.
15142 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15144 * docs/grub.texi (Loopback booting): New section.
15146 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15148 * util/grub-mkstandalone.in: Fix minor typo errors.
15150 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15152 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15154 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15155 net/icmp.c and net/icmp6.c.
15156 (http): New module.
15157 (priority_queue): Likewise.
15158 * grub-core/io/bufio.c: Rewritten.
15159 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15160 TYPE_WITH_CONFIGFILE_OPTION.
15161 (legacy_commands): Add bootp and dhcp.
15162 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15163 (grub_legacy_parse): Likewise.
15164 * grub-core/lib/priority_queue.c: New file.
15165 * grub-core/net/arp.c: Add missing license header.
15166 (arp_find_entry): Removed.
15167 (arp_find_entry): Likewise.
15168 (grub_net_arp_resolve): Rename to ...
15169 (grub_net_arp_send_request): ...this.
15170 (grub_net_arp_receive): New card argument.
15171 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15172 Set router and DNS server.
15173 (grub_net_configure_by_dhcp_ack): Handle routing information.
15174 (grub_cmd_bootp): Set checksum.
15175 (grub_bootp_init): Remove net_dhcp.
15176 * grub-core/net/dns.c: New file.
15177 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15179 (get_card_packet): Handle allocation.
15180 (grub_efinet_findcards): Set mtu.
15181 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15182 (get_card_packet): Handle allocation.
15183 (emucard): Set mtu.
15184 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15185 (GRUB_MOD_INIT): Set mtu.
15186 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15188 (get_card_packet): Handle allocation.
15189 (grub_ofnet_findcards): Set mtu.
15190 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15192 (grub_net_recv_ethernet_packet): Handle IPv6.
15193 * grub-core/net/http.c: New file.
15194 * grub-core/net/icmp.c: Likewise.
15195 * grub-core/net/icmp6.c: Likewise.
15196 * grub-core/net/ip.c (ip6addr): New type.
15197 (ip6hdr): Likewise.
15198 (reassemble): Likewise.
15199 (cmp): New function.
15200 (reassembles): New variable.
15201 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15202 (id): New variable.
15203 (send_fragmented): New function.
15204 (grub_net_send_ip_packet): Rename to ...
15205 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15207 (grub_net_recv_ip_packets): Rename to ...
15208 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15209 (free_rsm): New function.
15210 (free_old_fragments): Likewise.
15211 (grub_net_recv_ip4_packets): New function.
15212 (grub_net_send_ip6_packet): Likewise.
15213 (grub_net_send_ip_packet): Likewise.
15214 (grub_net_recv_ip6_packets): Likewise.
15215 (grub_net_recv_ip_packets): Likewise.
15216 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15217 (LINK_LAYER_CACHE_SIZE): New const.
15218 (link_layer_find_entry): New function.
15219 (grub_net_link_layer_add_address): Likewise.
15220 (grub_net_link_layer_resolve_check): Likewise.
15221 (grub_net_link_layer_resolve): Likewise.
15222 (grub_net_ipv6_get_slaac): Likewise.
15223 (grub_net_ipv6_get_link_local): Likewise.
15224 (grub_cmd_ipv6_autoconf): Likewise.
15225 (parse_ip): Handle one number representation.
15226 (parse_ip6): New functoion.
15227 (match_net): Handle IPv6.
15228 (grub_net_resolve_address): Handle IPv6 and DNS.
15229 (grub_net_resolve_net_address): Handle IPv6.
15230 (route_cmp): New function.
15231 (grub_net_route_address): Find best route.
15232 (grub_net_addr_to_str): Handle IPv6.
15233 (grub_net_addr_cmp): New function.
15234 (grub_net_add_addr): Register local route.
15235 (print_net_address): Handle net address.
15236 (grub_net_poll_cards): Retransmit TCP.
15237 (grub_net_poll_cards_idle_real): Likewise.
15238 (have_ahead): New function.
15239 (grub_net_seek_real): Use underlying seek.
15240 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15241 * grub-core/net/tcp.c: New file.
15242 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15243 (cmp): New function.
15245 (tftp_receive): Handle unordered input.
15246 (destroy_pq): New function.
15247 (tftp_close): Close pq.
15248 * grub-core/net/udp.c: Put missing license header.
15249 (grub_net_udp_socket): New function.
15250 (udp_socket_register): Likewise.
15251 (grub_net_udp_close): Likewise.
15252 (grub_net_recv_udp_packet): Check checksum.
15253 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15254 * include/grub/misc.h (grub_memchr): New function.
15255 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15256 (grub_net_card_driver): Return buf in recv.
15257 (grub_net_slaac_mac_list): New struct.
15258 (grub_network_level_protocol_id): Add ipv6.
15259 (grub_net_network_level_addr): Likewise.
15260 (grub_net_network_level_net_addr): Likewise.
15261 (grub_net_app_protocol): Add seek.
15262 (grub_net_socket): Removed.
15263 (grub_net_sockets): Likewise.
15264 (grub_net_socket_register): Likewise.
15265 (grub_net_socket_unregister): Likewise.
15266 (FOR_NET_SOCKETS): Likewise.
15267 (grub_net_add_addr): Add const.
15268 (GRUB_NET_BOOTP_*): New enum.
15269 (grub_net_addr_cmp): New proto.
15270 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15271 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15272 (grub_net_hwaddr_to_str): NEw proto.
15273 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15274 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15275 (grub_dns_init): New proto.
15276 (grub_dns_fini): Likewise.
15277 (grub_net_tcp_retransmit): Likewise.
15278 (grub_net_link_layer_add_address): Likewise.
15279 (grub_net_link_layer_resolve_check): Likewise.
15280 (grub_net_link_layer_resolve): Likewise.
15281 (grub_net_dns_lookup): Likewise.
15282 (grub_net_add_dns_server): Likewise.
15283 (grub_net_remove_dns_server): Likewise.
15284 (GRUB_NET_TRIES): New const.
15285 (GRUB_NET_INTERVAL): Likewise.
15286 * include/grub/net/arp.h: Mostly rewritten.
15287 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15288 * include/grub/net/ip.h: Mostly rewritten.
15289 * include/grub/net/netbuff.h: Indent.
15290 * include/grub/net/tcp.h: New file.
15291 * include/grub/net/udp.h: Mostly rewritten.
15292 * include/grub/priority_queue.h: New file.
15293 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15294 (grub_swap_bytes64_compile_time): Likewise.
15295 (grub_cpu_to_be16_compile_time): Likewise.
15296 (grub_cpu_to_be32_compile_time): Likewise.
15297 (grub_cpu_to_be64_compile_time): Likewise.
15298 (grub_be_to_cpu64_compile_time): Likewise.
15300 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15302 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15303 UINT_TO_PTR with cast.
15305 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15307 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15310 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15312 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15315 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15317 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15320 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15322 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15323 Add missing const attribute.
15324 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15326 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15329 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15331 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15333 (serpent_setkey): Likewise.
15334 (serpent_encrypt_internal): Likewise.
15335 (serpent_decrypt_internal): Likewise.
15336 (serpent_encrypt): Don't put an alignment-increasing cast.
15337 (serpent_decrypt): Likewise.
15338 (serpent_test): Likewise.
15340 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15342 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15344 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15346 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15348 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15350 (PTR_TO_UINT64): Likewise.
15351 (PTR_TO_UINT32): Likewise.
15353 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15355 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15357 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15360 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15362 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15363 text_width > available width a bit more gracefully.
15365 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15367 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15368 current address calculation.
15370 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15372 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15374 (encode_block): Likewise.
15376 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15378 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15381 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15383 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15384 non-RS part to avoid RS messing with GDT.
15385 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15386 Increase to suit in realmode routines.
15388 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15390 * grub-core/kern/i386/realmode.S: Increase alignment.
15391 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15393 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15395 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15397 (syndroms): Compute 0 syndrom.
15398 (rs_recover): Use 0 syndrom.
15400 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15402 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15404 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15406 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15409 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15411 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15413 (get_top_pad): Likewise.
15414 (get_right_pad): Likewise.
15415 (get_bottom_pad): Likewise.
15417 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15419 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15421 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15423 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15424 attribute as the structure isn't guaranteed to be properly aligned.
15425 (grub_efi_pci_device_path): Likewise.
15426 (grub_efi_pccard_device_path): Likewise.
15427 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15428 specify the size of `memory_type'.
15429 (grub_efi_vendor_device_path): Likewise.
15430 (grub_efi_controller_device_path): Likewise.
15431 (grub_efi_acpi_device_path): Likewise.
15432 (grub_efi_expanded_acpi_device_path): Likewise.
15433 (grub_efi_atapi_device_path): Likewise.
15434 (grub_efi_scsi_device_path): Likewise.
15435 (grub_efi_fibre_channel_device_path): Likewise.
15436 (grub_efi_1394_device_path): Likewise.
15437 (grub_efi_usb_device_path): Likewise.
15438 (grub_efi_usb_class_device_path): Likewise.
15439 (grub_efi_i2o_device_path): Likewise.
15440 (grub_efi_mac_address_device_path): Likewise.
15441 (grub_efi_ipv4_device_path): Likewise.
15442 (grub_efi_ipv6_device_path): Likewise.
15443 (grub_efi_infiniband_device_path): Likewise.
15444 (grub_efi_uart_device_path): Likewise.
15445 (grub_efi_vendor_messaging_device_path): Likewise.
15446 (grub_efi_hard_drive_device_path): Likewise.
15447 (grub_efi_cdrom_device_path): Likewise.
15448 (grub_efi_vendor_media_device_path): Likewise.
15449 (grub_efi_file_path_device_path): Likewise.
15450 (grub_efi_protocol_device_path): Likewise.
15451 (grub_efi_piwg_device_path): Likewise.
15452 (grub_efi_bios_device_path): Likewise.
15454 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15456 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15457 (grub_ucs4_to_utf8_alloc): Likewise.
15458 (grub_ucs4_to_utf8): Likewise.
15459 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15460 (grub_ucs4_to_utf8_alloc): Likewise.
15462 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15464 AFFS never uses unicode.
15466 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15467 (grub_latin1_to_utf8): New inline function.
15468 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15470 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15472 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15475 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15477 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15478 (grub_squash_dirent_header): Likewise.
15479 (read_chunk): Don't double swap.
15480 (grub_squash_iterate_dir): Fix swap sizes.
15482 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15484 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15486 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15488 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15489 (grub_hfs_iterate_dir): Likewise.
15491 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15493 Fix video on platforms where unaligned access is forbidden.
15494 Make several optimisations while on it.
15496 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15497 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15498 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15499 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15501 (grub_video_fbblit_replace_16bit_1bit):
15502 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15503 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15504 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15505 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15506 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15507 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15508 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15509 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15510 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15511 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15512 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15513 (grub_video_fbblit_replace_index_RGB888): Likewise.
15514 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15515 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15516 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15517 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15518 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15519 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15520 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15522 (grub_video_fbblit_blend_XXX565_1bit):
15523 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15524 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15525 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15527 * grub-core/video/fb/video_fb.c (common_blitter)
15528 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15529 (grub_video_fb_create_render_target_from_pointer)
15530 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15531 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15532 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15534 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15536 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15538 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15539 HH22 and HM10 relocations.
15541 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15543 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15545 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15547 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15548 allocation succeeded.
15550 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15552 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15553 argument a u8 pointer. All users updated.
15554 Handle unaligned buffers.
15556 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15558 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15559 add_part to workaround compiler bug.
15561 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15563 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15565 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15567 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15568 Reserve alignment invariants.
15569 (grub_multiboot_load): Likewise.
15570 (retrieve_video_parameters): Likewise.
15571 (grub_multiboot_make_mbi): Likewise.
15573 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15575 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15578 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15580 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15581 (grub_pata_pio_write): Likewise.
15583 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15585 Add noreturn attributes and remove unreachable code.
15587 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15589 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15590 code. Mark as noreturn.
15591 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15592 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15593 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15595 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15596 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15597 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15598 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15599 * include/grub/kernel.h (grub_main): Mark as noreturn.
15600 * include/grub/reader.h (grub_rescue_run): Likewise.
15602 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15604 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15605 redundant declaration.
15607 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15609 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15610 redundant declaration.
15611 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15613 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15615 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15616 to ensure alignment.
15617 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15618 alignment. Ensure tmp alignment.
15619 (grub_cmd_hdparm): Ensure buf alignment.
15620 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15621 to ensure alignment.
15622 (grub_ata_dumpinfo): Ensure text alignment.
15623 (grub_atapi_identify): Preserve alignment invariant.
15624 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15626 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15628 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15629 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15630 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15631 * include/grub/misc.h (grub_reboot)
15632 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15633 (grub_halt) [__mips__]: Likewise.
15635 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15637 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15638 Remove redundant declaration.
15639 (grub_mmap_get_post64): Likewise.
15640 (grub_mmap_get_upper): Likewise.
15641 (grub_mmap_get_lower): Likewise.
15643 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15645 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15646 uint32_t * to ensure alignment.
15647 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15649 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15651 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15652 uint16_t * to ensure alignment.
15653 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15656 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15658 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15659 to ensure alignment.
15660 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15662 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15664 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15665 Handle unaligned pointers.
15668 (fixup): Use byte access instead of v16at.
15669 (find_attr): Fix imporper usage of v32at.
15670 (read_data): Likewise.
15671 (list_file): Handle byte-swapping and unaligned strings.
15672 (grub_ntfs_label): Likewise.
15674 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15676 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15677 as it's not necessarily aligned.
15679 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15681 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15682 redundant declaration.
15683 (grub_serial_init): Likewise.
15684 (grub_terminfo_init): Likewise.
15686 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15688 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15690 (ZAP_HASH_IDX): Likewise.
15691 (ZAP_LEAF_HASH_SHIFT): Likewise.
15692 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15693 (LEAF_HASH): Likewise.
15694 (ZAP_LEAF_NUMCHUNKS): Likewise.
15695 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15696 alignment invariants. Return pointer. All users updated.
15697 (ZAP_LEAF_ENTRY): Make into inline function.
15700 (xor_out): Use grub_crypto_xor.
15701 (dnode_get_path): Use grub_get_unaligned.
15702 (nvlist_find_value): Likewise.
15703 (grub_zfs_nvlist_lookup_uint64): Likewise.
15704 (grub_zfs_nvlist_lookup_string): Likewise.
15705 (get_nvlist_size): Likewise.
15706 (grub_zfs_open): Likewise.
15707 (fill_fs_info): Likewise.
15708 (grub_zfs_dir): Likewise.
15709 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15710 alignment invariants.
15711 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15712 necessarily aligned.
15714 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15716 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15718 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15720 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15721 arithmetic to conserve alignment invariants.
15723 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15725 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15726 redundant declaration.
15727 (grub_efiemu_mm_obtain_request): Likewise.
15728 (grub_efiemu_prepare): Likewise.
15730 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15732 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15735 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15737 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15738 case of aunaligned recptr.
15739 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15741 (grub_hfsplus_btree_search): Handle unaligned index.
15743 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15745 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15746 to get freetag and skip.
15748 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15750 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15752 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15753 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15755 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15757 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15758 name for checksum and fix allocation algorithm.
15760 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15762 * include/grub/types.h (grub_properly_aligned_t): New type.
15763 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15764 (grub_get_unaligned16): Add explicit casts.
15765 (grub_get_unaligned32): Likewise.
15766 (grub_get_unaligned64): Likewise.
15767 (grub_set_unaligned16): New function.
15768 (grub_set_unaligned32): Likewise.
15770 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15772 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15774 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15776 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15777 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15778 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15780 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15782 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15785 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15787 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15788 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15790 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15792 Unify and improve RAID and crypto xor.
15794 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15795 changed to grub_crypto_xor
15796 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15797 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15798 Use bigger types when possible.
15800 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15802 * grub-core/disk/raid.c (scan_devices): Fix condition.
15804 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15806 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15807 Make name a const ptr.
15809 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15811 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15812 first argument a const pointer.
15813 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15814 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15816 (grub_children_iterate): Likewise.
15817 (grub_machine_mmap_iterate): Remove redundant declaration.
15819 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15821 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15822 (grub_cmd_acpi) [!x86]: Disable EBDA.
15824 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15826 Enable UTF8 in gnulib regexp.
15828 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15829 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15830 (isupper): Use grub_isupper.
15831 (isascii): New inline function.
15832 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15833 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15834 * grub-core/normal/charset.c (grub_utf8_process): New function.
15835 (grub_utf8_to_utf16): Use grub_utf8_process.
15836 (grub_encode_utf8_character): New function.
15837 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15838 * include/grub/charset.h (grub_utf8_process): New declaration.
15839 (grub_encode_utf8_character): Likewise.
15840 * include/grub/misc.h (grub_islower): New inline function.
15841 (grub_isupper): Likewise.
15842 (grub_strchrsub): Moved down to fix the definitions.
15844 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15846 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15849 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15851 * include/grub/loader.h (grub_loader_register_preboot_hook):
15852 Use struct preboot * and not void * for handle. All users updated.
15853 (grub_loader_unregister_preboot_hook): Likewise.
15855 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15857 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
15858 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
15859 UTF-16-BE. All users updated.
15860 (grub_hfsplus_cmp_catkey): Fix unicode handling.
15861 (grub_hfsplus_iterate_dir): Likewise.
15862 (grub_hfsplus_label): Likewise.
15864 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15866 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
15868 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
15870 Add missing const qualifiers.
15872 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
15873 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
15874 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
15875 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
15876 (grub_lvm_check_flag): Likewise.
15877 * grub-core/efiemu/i386/coredetect.c
15878 (grub_efiemu_get_default_core_name): Likewise
15879 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
15880 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
15881 * grub-core/fs/ntfs.c (fixup): Likewise.
15882 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
15883 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
15884 (fzap_lookup): Likewise.
15885 (zap_lookup): Likewise.
15886 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
15887 * grub-core/lib/legacy_parse.c (check_option): Likewise.
15888 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
15889 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
15890 (grub_freebsd_add_meta_module): Likewise.
15891 (grub_cmd_freebsd_module): Likewise.
15892 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
15893 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
15894 (grub_xnu_writetree_get_size): Likewise.
15895 (grub_xnu_writetree_toheap_real): Likewise.
15896 (grub_xnu_find_key): Likewise.
15897 (grub_xnu_create_key): Likewise.
15898 (grub_xnu_create_value): Likewise.
15899 (grub_xnu_register_memory): Likewise.
15900 (grub_xnu_check_os_bundle_required): Likewise.
15901 (grub_xnu_scan_dir_for_kexts): Likewise.
15902 (grub_xnu_load_kext_from_dir): Likewise.
15903 * grub-core/normal/color.c (color_list): Likewise.
15904 * grub-core/normal/completion.c (current_word): Likewise.
15905 * grub-core/normal/menu_entry.c (insert_string): Likewise.
15906 * grub-core/term/serial.c (grub_serial_find): Likewise.
15907 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
15908 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
15910 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
15911 (grub_freebsd_add_meta_module): Likewise.
15912 * include/grub/lib/arg.h (grub_arg_option): Likewise.
15913 * include/grub/net.h (grub_net_card_driver): Likewise.
15914 (grub_net_card): Likewise.
15915 (grub_net_app_protocol): Likewise.
15916 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
15917 * include/grub/serial.h (grub_serial_find): Likewise.
15918 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
15919 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
15920 (grub_xnu_create_value): Likewise.
15921 (grub_xnu_find_key): Likewise.
15922 (grub_xnu_scan_dir_for_kexts): Likewise.
15923 (grub_xnu_load_kext_from_dir): Likewise.
15925 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
15926 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
15927 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
15928 Moved from here ...
15929 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
15931 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
15933 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
15935 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
15937 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
15938 (read_device): Fix size calculation.
15940 2011-11-25 Robert Millan <rmh@gnu.org>
15942 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
15943 (find_root_device_from_libzfs): Add zpool output parser to be used
15944 as fallback when libzfs isn't available.
15946 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
15948 * po/Makefile.in.in: Add missing escape-continuation.
15950 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
15952 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
15954 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15956 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
15958 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15960 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
15962 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15964 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
15966 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15968 * grub-core/lib/adler32.c: Add missing license specification.
15969 * grub-core/lib/crc64.c: Likewise.
15970 * grub-core/loader/i386/pc/plan9.c: Likewise.
15971 * grub-core/partmap/plan.c: Likewise.
15973 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
15975 Add facility to debug GRUB with gdb under qemu.
15977 * grub-core/gdb_grub.in: New file.
15978 * grub-core/gmodule.pl.in: Likewise.
15979 * grub-core/Makefile.core.def (gmodule.pl): New script.
15980 (gdb_grub): Likewise.
15982 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15984 * util/grub-mount.c (argp_parser): Accept relative pathes.
15985 * util/grub-fstest.c (argp_parser): Likewise.
15987 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15991 * Makefile.util.def (libgrubmods): Add
15992 grub-core/partmap/plan.c.
15993 * docs/grub.texi: Notice Plan9 support.
15994 * grub-core/Makefile.core.def (plan9): New module.
15995 (part_plan): Likewise.
15996 * grub-core/loader/i386/pc/plan9.c: New file.
15997 * grub-core/partmap/plan.c: Likewise.
15998 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16000 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16001 * include/grub/mm.h (grub_extend_alloc): New inline function.
16003 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16005 Make Reed-Solomon faster by using power of generator representation of
16008 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16009 (gf_double_t): Likewise.
16010 (gf_invert): Removed.
16011 (gf_powx): New array.
16012 (gf_powx_inv): Likewise.
16013 (scratch): Move higher.
16014 (gf_reduce): Removed.
16015 (gf_mul): Use powx.
16016 (gf_invert): Likewise.
16017 (init_inverts): Replaced with ...
16018 (init_powx): ...this. All users updated.
16019 (pol_evaluate): Replace multiplications with additions.
16020 (rs_encode): Likewise.
16021 (gauss_eliminate): Call gf_invert.
16022 (grub_reed_solomon_add_redundancy): Call init_powx.
16023 (grub_reed_solomon_recover): Call init_powx unconditionally.
16025 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16027 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16029 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16031 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16032 disk->partiton for safety.
16034 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16036 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16038 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16040 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16042 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16044 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16046 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16048 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16050 Fix spaces handling in proc/self/mountinfo.
16052 * util/getroot.c (unescape): New function.
16053 (grub_find_root_device_from_mountinfo): Use unescape.
16055 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16057 Support ZFS embedding.
16059 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16060 (grub_zfs_fs): Register grub_zfs_embed.
16062 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16064 Fix MIPS compilation.
16066 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16067 * include/grub/offsets.h: Rename decompressor fields from
16068 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16069 * util/grub-mkimage.c (image_targets): Use new names.
16071 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16073 Defer multiboot device parsing until we're in compressed part.
16075 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16076 bsd_part. setdevice has fallen into disuse.
16077 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16078 (bsd_part): Likewise.
16079 (boot_dev): New variable.
16080 (multiboot_trampoline): Don't parse multiboot device.
16081 Pass multiboot device in %edx.
16082 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16084 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16086 * grub-core/kern/i386/pc/startup.S: Save edx.
16087 (grub_boot_drive): Removed.
16088 (grub_install_dos_part): Likewise.
16089 (grub_install_bsd_part): Likewise.
16090 (grub_boot_device): New variable.
16091 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16092 (grub_install_bsd_part): Likewise.
16093 (grub_boot_drive): Likewise.
16094 (grub_boot_device): New variable.
16095 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16097 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16098 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16099 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16100 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16101 * util/grub-install.in: Remove redundant condition.
16103 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16105 Fix bug introduced by previous commit.
16107 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16109 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16111 Use decompressors framework on i386-pc. It increases core size
16112 by 46 bytes but improves compatibility and maintainability.
16114 * grub-core/Makefile.core.def (lzma_decompress): New image.
16115 (kernel): Add i386_pc_ldflags.
16116 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16117 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16118 to real_to_prot, prot_to_real and device info.
16119 * include/grub/offsets.h: Renamed decompressor offsets.
16120 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16121 (image_target_desc): Remove raw_size and rename decompressor fields.
16122 (compress_kernel): Handle lzma.
16123 (generate_image): Handle decompressors on i386-pc.
16125 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16127 * configure.ac: Add -fno-asynchronous-unwind-tables.
16129 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16131 Move assembly code to C by using intwrap. It increases core size
16132 by 88 bytes but improves compatibility and maintainability.
16134 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16135 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16136 ... here. Translated to C.
16137 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16138 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16139 ... here. Translated to C.
16140 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16141 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16142 ... here. Translated to C.
16143 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16144 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16145 ... here. Translated to C.
16146 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16147 * grub-core/term/i386/pc/console.c (grub_console_cls):
16148 ... here. Translated to C.
16149 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16150 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16151 ... here. Translated to C.
16152 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16153 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16155 * grub-core/term/i386/pc/console.c (int10_9): New function.
16156 (grub_console_putchar): Likewise.
16157 * include/grub/i386/pc/console.h: Removed the not anymore shared
16160 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16162 Move grub_chainloader_real_boot out of the kernel.
16164 * grub-core/Makefile.am: Remove machine/loader.h.
16165 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16167 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16169 (grub_relocator16_keep_a20_enabled): Likewise.
16170 (grub_relocator16_boot): Fill new variables.
16171 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16172 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16174 (grub_chainloader_unload): Likewise.
16175 (grub_chainloader_cmd): Likewise.
16176 * include/grub/i386/pc/loader.h: Removed.
16177 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16178 and esi. All initialisers updated.
16180 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16181 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16183 * Makefile.util.def (grub-mount): New util.
16184 * .bzrignore: Add grub-mount.
16185 * configure.ac: Check for fuse and enable grub-mount if available.
16186 * docs/man/grub-mount.h2m: New file.
16187 * util/grub-mount.c: Likewise.
16189 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16191 * grub-core/commands/efi/fixvideo.c: Gettextize.
16192 * grub-core/commands/hashsum.c: Likewise.
16193 * grub-core/commands/i386/cmostest.c: Likewise.
16194 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16195 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16196 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16197 * grub-core/commands/lsmmap.c: Likewise.
16198 * grub-core/commands/menuentry.c: Likewise.
16199 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16200 * grub-core/commands/setpci.c: Likewise.
16201 * grub-core/loader/i386/bsd.c: Likewise.
16202 * grub-core/loader/i386/linux.c: Likewise.
16203 * util/getroot.c: Likewise.
16204 * util/grub-editenv.c: Likewise.
16205 * util/grub-fstest.c: Likewise.
16206 * util/grub-mkfont.c: Likewise.
16207 * util/grub-mkimage.c: Likewise.
16208 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16209 * util/grub-pe2elf.c: Likewise.
16210 * util/grub-probe.c: Likewise.
16211 * util/grub-setup.c: Likewise.
16212 * util/ieee1275/ofpath.c: Likewise.
16213 * util/misc.c: Likewise.
16214 * util/raid.c: Likewise.
16216 2011-11-11 Robert Millan <rmh@gnu.org>
16218 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16219 __attribute__((unused)) from `os_dev', which *is* being used.
16221 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16223 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16225 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16226 GRUB_IA64_DL_GOT_ALIGN.
16227 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16228 GRUB_IA64_DL_TRAMP_ALIGN.
16230 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16232 Replace grub_fatal with normal errors in i386 linux loader.
16234 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16235 (allocate_pages): Check find_efi_mmap_size return value.
16236 (grub_e820_add_region): Return error.
16237 (grub_linux_boot): Check mmap return value.
16239 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16241 * grub-core/commands/acpihalt.c: Gettextized.
16242 * grub-core/commands/cacheinfo.c: Likewise.
16243 * grub-core/commands/cmp.c: Likewise.
16244 * grub-core/commands/efi/loadbios.c: Likewise.
16245 * grub-core/commands/gptsync.c: Likewise.
16246 * grub-core/commands/ieee1275/suspend.c: Likewise.
16247 * grub-core/commands/legacycfg.c: Likewise.
16248 * grub-core/commands/memrw.c: Likewise.
16249 * grub-core/commands/minicmd.c: Likewise.
16250 * grub-core/commands/parttool.c: Likewise.
16251 * grub-core/commands/time.c: Likewise.
16252 * grub-core/commands/videoinfo.c: Likewise.
16253 * grub-core/disk/geli.c: Likewise.
16254 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16255 * grub-core/disk/luks.c: Likewise.
16256 * grub-core/disk/lvm.c: Likewise.
16257 * grub-core/font/font_cmd.c: Likewise.
16258 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16259 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16260 * grub-core/gfxmenu/view.c: Likewise.
16261 * grub-core/kern/emu/hostdisk.c: Likewise.
16262 * grub-core/kern/emu/main.c: Likewise.
16263 * grub-core/kern/emu/misc.c: Likewise.
16264 * grub-core/kern/emu/mm.c: Likewise.
16265 * grub-core/kern/mips/arc/init.c: Likewise.
16266 * grub-core/kern/mips/loongson/init.c: Likewise.
16267 * grub-core/kern/partition.c: Likewise.
16268 * grub-core/lib/i386/halt.c: Likewise.
16269 * grub-core/lib/mips/arc/reboot.c: Likewise.
16270 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16271 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16272 * grub-core/loader/i386/xnu.c: Likewise.
16273 * grub-core/loader/multiboot.c: Likewise.
16274 * grub-core/net/bootp.c: Likewise.
16275 * grub-core/net/net.c: Likewise.
16276 * grub-core/normal/term.c: Likewise.
16277 * grub-core/partmap/bsdlabel.c: Likewise.
16278 * grub-core/parttool/msdospart.c: Likewise.
16279 * grub-core/term/gfxterm.c: Likewise.
16280 * grub-core/term/terminfo.c: Likewise.
16281 * grub-core/video/i386/pc/vbe.c: Likewise.
16282 * util/grub-menulst2cfg.c: Likewise.
16283 * util/grub-mkdevicemap.c: Likewise.
16284 * util/grub-mklayout.c: Likewise.
16285 * util/grub-mkrelpath.c: Likewise.
16286 * util/grub-script-check.c: Likewise.
16287 * util/ieee1275/grub-ofpathname.c: Likewise.
16288 * util/resolve.c: Likewise.
16290 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16292 Support %1$d syntax.
16294 * tests/printf_unit_test.c: New file.
16295 * Makefile.util.def (printf_test): New test.
16296 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16298 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16300 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16303 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16305 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16307 * grub-core/font/font.c (grub_font_load): Likewise.
16309 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16311 * util/grub-macho2img.c: Add comment concerning gettext.
16312 * grub-core/lib/legacy_parse.c: Likewise.
16314 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16316 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16317 (grub_xvasprintf): Likewise.
16319 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16321 Add const keyword to grub_env_get and gettextize week days.
16323 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16324 (grub_read_hook_datetime): Return const char *.
16325 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16327 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16329 (grub_get_weekday_name): Return const char *. Call gettext.
16330 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16331 char * and len as the argument. All users updated.
16332 (grub_script_argv_split_append): Receive const char *.
16333 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16334 * include/grub/env.h (grub_env_get): Likewise.
16335 (grub_env_read_hook_t): Return const char *.
16336 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16337 (grub_script_argv_split_append): Likewise.
16339 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16341 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16343 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16345 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16346 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16348 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16350 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16353 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16355 Fix mips compilation.
16357 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16359 (hashes): Use in embed decoder as well (for sizes).
16360 (dec_stream_header): Fix embed decompressor logic.
16361 (dec_stream_footer): Likewise.
16363 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16365 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16366 an error and not a fatal on unrecognised relocation types.
16368 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16370 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16371 Issue error rather than printf on unknown arguments.
16373 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16375 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16378 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16380 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16383 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16385 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16386 leftover debug printf.
16388 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16390 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16392 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16394 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16397 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16399 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16401 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16403 Allow all modules to perform serial IO
16405 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16406 * include/grub/serial.h (grub_serial_port_configure): New inline
16408 (grub_serial_port_fetch): Likewise.
16409 (grub_serial_port_put): Likewise.
16410 (grub_serial_port_fini): Likewise.
16411 (grub_serial_find): New proto.
16413 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16415 Put symlink at the end of the node and fix a potential
16418 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16419 Make symlink into an array.
16420 (set_rockridge): Set have_symlink and alloc_dirents.
16421 (grub_iso9660_read_symlink): Use new layout.
16422 (grub_iso9660_iterate_dir): Fix memory corruption.
16424 (grub_iso9660_dir): Set have_symlink.
16425 (grub_iso9660_open): Likewise.
16427 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16429 Remove local keyword.
16431 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16432 (version_test_gt): Likewise.
16433 (version_find_latest): Likewise.
16434 (gettext_printf): Likewise.
16435 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16437 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16439 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16441 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16443 Fix ZFS memory and resource leaks.
16445 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16448 (fill_vdev_info): New parameter inserted. All users updated.
16449 (check_pool_label): Likewise.
16450 (scan_disk): Likewise.
16451 (scan_devices): Close non-inserted disks.
16452 (fzap_iterate): Free l.
16453 (unmount_device): Free children descripto memory.
16455 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16457 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16458 argument (access out of bounds).
16460 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16462 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16465 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16467 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16470 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16472 Fix several memory leaks.
16474 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16475 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16476 (grub_cpio_dir): Likewise.
16477 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16478 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16479 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16480 (grub_romfs_label): Likewise.
16481 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16482 (squash_unmount): New function.
16483 (grub_squash_dir): Fix memory leak.
16484 (grub_squash_open): Likewise.
16485 (grub_squash_read): Likewise.
16486 (grub_squash_mtime): Likewise.
16487 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16488 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16489 * util/grub-fstest.c (fstest): Likewise.
16491 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16493 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16494 avoid accessing beyond the array.
16496 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16498 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16500 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16502 Several AFFS fixes.
16504 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16505 (GRUB_AFFS_FLAG_FFS): Removed.
16506 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16507 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16508 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16509 (grub_fshelp_node): Make block 32-bit.
16510 Add block_cache and last_block_cache.
16511 (grub_affs_read_block): Fill and use block cache.
16512 (grub_affs_read_file): Removed.
16513 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16515 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16517 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16519 (grub_affs_close): Free block cache.
16520 (grub_affs_read): Use grub_fshelp_read_file directly.
16522 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16524 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16527 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16529 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16531 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16534 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16536 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16538 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16539 byteswap when needed.
16541 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16543 Fix FreeBSD compilation.
16545 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16546 to avoid circular dependency.
16547 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16548 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16549 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16551 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16553 Fix ZFS crypto error types.
16555 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16556 (grub_gcm_decrypt): Likewise.
16557 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16560 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16564 * Makefile.util.def (10_illumos): New script.
16565 * configure.ac: Set COND_HOST_ILLUMOS.
16566 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16567 Support Illumos calls.
16568 (find_partition_start) [__sun__]: Likewise.
16569 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16570 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16571 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16572 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16574 * util/grub-probe.c (probe) [__sun__]: Do character check.
16575 * util/grub.d/10_illumos.in: New file.
16577 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16579 Support escaped commas in hostdisk.
16581 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16582 (find_grub_drive): Use unescape_cmp.
16583 (make_device_name): Escape commas.
16585 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16587 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16589 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16591 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16594 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16596 Support trampoline jumps on powerpc.
16598 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16600 (grub_dl_load_segments): Set mod->sz.
16601 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16603 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16605 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16607 (trampoline): New struct.
16608 (trampoline_template): New const.
16609 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16610 * include/grub/dl.h (grub_dl): Add sz element.
16611 [__powerpc__]: Follow __ia64__.
16612 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16613 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16614 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16615 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16617 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16619 ZFS crypto support.
16621 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16622 * grub-core/Makefile.core.def (zfscrypt): New module.
16623 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16624 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16625 it. All users updated.
16626 (grub_zfs_decrypt): New var.
16627 (grub_zfs_load_key): Likewise.
16628 (zio_checksum_functions): Add SHA256+MAC.
16629 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16630 (zio_read): Handle encrypted blocks.
16631 (zap_verify): Remove incorrect check.
16632 (fzap_iterate): Handle non-standard fzap.
16633 (zap_iterate): Likewise.
16634 (zap_iterate_u64): New function.
16635 (dnode_get_fullpath): Load keys.
16636 * grub-core/fs/zfs/zfscrypt.c: New file.
16637 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16638 (grub_crypto_ecb_encrypt): Make input const.
16639 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16640 (grub_crypto_ecb_encrypt): Make input const.
16641 (GRUB_CIPHER_AES): New macro.
16642 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16643 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16644 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16645 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16646 prefix. All users updated.
16647 (grub_zfs_add_key): New proto.
16648 (grub_zfs_decrypt): Likewise.
16649 (grub_zfs_load_key): Likewise.
16650 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16651 * util/grub-fstest.c (options): Add -K option.
16652 (argp_parser): Likewise.
16654 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16656 Support zle compression on ZFS.
16658 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16659 (decomp_table): Add zle.
16660 * include/grub/zfs/zio.h (zio_compress): Add zle.
16662 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16664 Support BtrFS embedding.
16666 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16667 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16668 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16669 * util/grub-setup.c (setup): Use fs embedding if available.
16670 Add additional sanity check.
16672 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16674 * util/grub-install.in: Fix condition for config_opt.
16676 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16678 Support third redundancy strip on raidz3.
16680 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16681 Return error on singularity. All users updated.
16682 (read_device): Don't stop on 3rd failure on raidz3.
16684 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16686 Support case-insensitive ZFS subvolumes.
16688 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16690 (zap_hash): Likewise.
16691 (name_cmp): New function.
16692 (zap_leaf_array_equal): New parameter case_insensitive.
16694 (zap_leaf_lookup): Likewise.
16695 (fzap_lookup): Likewise.
16696 (zap_lookup): Likewise.
16697 (dnode_get_path): New parameter case_insensitive. Retrieve case
16698 sensitiviness of a volume. All users updated.
16699 (dnode_get_fullpath): New parameter case_insensitive.
16701 (grub_zfs_dir): Set info.case_insensitiveness.
16703 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16705 Support second redundancy strip on raidz(2,3).
16707 * grub-core/fs/zfs/zfs.c (powx): New array.
16708 (powx_inv): Likewise.
16710 (xor_out): New function.
16711 (gf_mul): Likewise.
16712 (recovery): Likewise.
16713 (read_device): Use second redundancy strip.
16715 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16717 Use a power of generator representation of GF(256) multiplication group
16718 to save space time and complexity.
16720 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16721 (raid6_table2): Likewise.
16723 (powx_inv): Likewise.
16725 (grub_raid_block_mul): Replace with ...
16726 (grub_raid_block_mulx): ...this.
16727 (grub_raid6_init_table): Rewritten.
16728 (grub_raid6_recover): Use power of generator representation.
16730 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16732 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16733 for the right device.
16735 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16737 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16738 expected by grub-mkimage and it's more clear since there is no implicit
16741 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16743 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16745 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16747 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16749 * util/grub-mkrescue.in: Fix handling xorriso option.
16751 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16753 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16756 2011-11-03 crocket <crockabiscuit@gmail.com>
16758 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16760 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16762 XZ CRC64 and SHA256 support.
16764 * Makefile.util.def (libgrubmods): Add crc64.c.
16765 * grub-core/Makefile.core.def (crc64): New module.
16766 * grub-core/lib/crc64.c: New file.
16767 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16768 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16770 (MAX_HASH_SIZE): New define.
16771 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16772 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16773 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16774 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16775 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16776 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16777 Handle non-crc32 hashes.
16778 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16779 (dec_stream_header): Handle non-crc32 hashes.
16780 (dec_stream_footer): Likewise.
16781 (dec_block_header): Likewise.
16782 (dec_main): Likewise.
16783 (xz_dec_init): Likewise.
16784 (xz_dec_reset): Likewise.
16785 (xz_dec_end): Likewise.
16786 * util/import_gcry.py: Add CRC64 line.
16788 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16790 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16793 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16795 Make reiserfs label retrieval similar to other *_label functions.
16797 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16798 (REISERFS_MAX_LABEL_LENGTH): Removed.
16799 (REISERFS_LABEL_OFFSET): Likewise.
16800 (grub_reiserfs_label): Rewritten.
16802 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16804 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16807 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16809 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16811 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16813 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16814 drive failure on both raidz and raidz2.
16816 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16818 Fix RAIDZ(2) for >= 5 devices.
16820 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16821 asize argument. All users updated.
16823 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16827 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16828 (fill_vdev_info_real): Set ashift.
16829 (read_device): Rewrite RAIDZ part based on reverse engineering.
16831 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16833 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16834 don't report potentially unavialiable fields in debug output.
16835 (find_path): Fix double-free and memory leak.
16837 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16839 Read label on UFS1.
16841 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16842 (grub_ufs_fs): Always set .label.
16844 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16848 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16849 (grub_ufs_data): New field log2_blksz.
16850 (grub_ufs_read_file): Use shifts.
16851 (grub_ufs_mount): Check block size and logarithm it.
16853 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16855 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
16858 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16860 Handle symlinks and long names on tar and cpio.
16862 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
16863 (ATTR_FILE): Likewise.
16864 (ATTR_DIR): Likewise.
16865 (ATTR_LNK): Likewise.
16866 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
16867 (grub_cpio_find_file): Fill mode, handle linkname field as well as
16869 (grub_cpio_mount): Zero-fill data.
16870 (handle_symlink): New function.
16871 (grub_cpio_dir): Handle symlinks.
16872 (grub_cpio_open): Likewise.
16873 (grub_cpio_close) [MODE_USTAR]: Free linkname.
16875 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16877 Fix iso9660 filename limitations and fix memory leaks.
16879 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
16880 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
16882 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16884 Fix JFS file name length limitations.
16886 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
16887 (grub_jfs_diropen): Fix maximum filename length.
16888 (grub_jfs_getent): Fix filename length.
16889 (grub_jfs_lookup_symlink): Fix size checks.
16891 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16893 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
16896 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16898 Leverage BFS implementation to read AFS.
16900 * Makefile.util.def (libgrubmods): Add afs.c.
16901 * grub-core/Makefile.core.def (afs): New module
16902 * grub-core/fs/afs.c: New file.
16903 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
16905 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16907 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
16909 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16911 * grub-core/fs/bfs.c: Run indent.
16913 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16915 BFS implementation based on the specification.
16917 * grub-core/fs/bfs.c: New file.
16918 * Makefile.util.def (libgrubmods): Add bfs.c.
16919 * grub-core/Makefile.core.def (bfs): New module.
16921 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16923 * util/grub-fstest.c (cmd_cp): Clarify error message.
16924 (cmd_cmp): Likewise.
16926 2011-10-30 Yves Blusseau <blusseau@zetam.org>
16928 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
16931 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
16933 Remove afs and befs because of copyright problem.
16935 * grub-core/fs/afs.c: Removed.
16936 * grub-core/fs/afs_be.c: Removed.
16937 * grub-core/fs/befs.c: Removed.
16938 * grub-core/fs/befs_be.c: Removed.
16939 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
16940 * grub-core/Makefile.core.def (afs): Removed.
16941 (afs_be): Likewise.
16943 (befs_be): Likewise.
16945 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16947 Prefer rockridge over Joliet.
16949 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
16951 (set_rockridge): ... here.
16952 (grub_iso9660_mount): Check rockridge on the primary label when
16953 discovering. Ignore Joliet if Rockridge is present.
16955 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16957 Use shifts in nilfs2.
16959 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
16960 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
16961 (grub_nilfs2_palloc_entries_per_group): Replace with ...
16962 (grub_nilfs2_log_palloc_entries_per_group): ... this.
16963 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
16964 (grub_nilfs2_entries_per_block): Replaced with ...
16965 (grub_nilfs2_log_entries_per_block_log): ... this.
16966 (grub_nilfs2_blocks_per_group): Replaced with ...
16967 (grub_nilfs2_blocks_per_group_log): ... this.
16968 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
16969 (grub_nilfs2_blocks_per_desc_block_log): ... this.
16970 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
16971 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
16972 (grub_nilfs2_palloc_entry_offset): Replaced ...
16973 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
16974 (grub_nilfs2_dat_translate): Use shifts.
16975 (grub_nilfs2_read_inode): Likewise.
16976 (GRUB_MOD_INIT): Ensure that logs are correct.
16978 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16980 Use shifts in minix filesystem.
16982 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
16983 (GRUB_MINIX_ZONE2SECT): Likewise.
16984 (grub_minix_data): Replace block_size with log_block_size.
16985 (grub_minix_read_file): Use shifts.
16986 (grub_minix_mount): Check block size and take a logarithm.
16988 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16990 Use shifts in squash4.
16992 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
16993 (squash_mount): Check block size and take logarithm.
16994 (direct_read): Use shifts.
16996 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
16998 Correct befs block counting logic.
17000 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17001 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17002 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17003 (grub_afs_read_inode): Use block_shift.
17004 (RANGE_SHIFT): New definition.
17005 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17006 unexpected conditions, use shifts and appropriate types.
17007 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17009 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17011 * grub-core/disk/raid.c (scan_devices): Check partition.
17012 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17014 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17016 Support BFS (befs) UUID.
17018 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17019 (grub_afs_small_data_element_header): New struct.
17020 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17021 (grub_afs_read_attribute) [MODE_BFS]: New function.
17022 (grub_afs_iterate_dir): Allocate for complete inode.
17023 (grub_afs_mount): Likewise.
17024 (grub_afs_uuid) [MODE_BFS]: New function.
17025 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17027 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17029 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17030 (zfs_unmount): Fix memory leak.
17032 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17034 Support NTFS reparse points.
17036 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17037 (symlink_descriptor): New struct.
17038 (grub_ntfs_read_symlink): New function.
17039 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17040 (grub_ntfs_open): Likewise.
17042 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17044 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17046 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17048 fstest xnu_uuid subcommand.
17050 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17051 grub-core/commands/xnu_uuid.c.
17052 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17053 (fstest): Handle xnu_uuid.
17054 (options): Document xnu_uuid.
17055 (argp_parser): Parse xnu_uuid.
17057 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17059 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17060 -l argument. Add newline at the end if printing.
17061 (GRUB_MOD_INIT): Document -l.
17063 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17065 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17067 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17069 ZFS multi-device and version 33 support.
17071 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17072 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17073 (grub_zfs_data): Add multidev-ice-related fields.
17074 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17075 (dva_get_offset): Make dva const.
17076 (zfs_fetch_nvlist): New function.
17077 (fill_vdev_info_real): Likewise.
17078 (fill_vdev_info): Likewise.
17079 (check_pool_label): Likewise.
17080 (scan_disk): Likewise.
17081 (scan_devices): Likewise.
17082 (read_device): Likewise.
17083 (read_dva): Likewise.
17084 (zio_read_gang): Use read_dva.
17085 (zio_read_data): Likewise.
17086 (zap_leaf_lookup): Add missing endian conversion.
17087 (zap_verify): Add missing endian conversion. All users updated.
17088 (fzap_lookup): Likewise.
17089 (fzap_iterate): Likewise.
17090 (dnode_get_path): Handle SA bonus.
17091 (nvlist_find_value): Make input const. All users updated.
17092 (unmount_device): New function.
17093 (zfs_unmount): Use unmount_device.
17094 (zfs_mount): Use scan_disk.
17095 (zfs_mtime): New function.
17096 (grub_zfs_open): Handle system attributes.
17097 (fill_fs_info): Likewise.
17098 (grub_zfs_dir): Likewise.
17099 (grub_zfs_fs): Add mtime.
17100 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17101 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17102 (SA_MTIME_OFFSET): Likewise.
17103 (SA_SYMLINK_OFFSET): Likewise.
17104 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17105 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17106 (fstest): Support zfsinfo.
17107 (argp_parser): Likewise.
17109 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17111 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17114 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17118 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17119 sharing the same block. Iterate over correct number of indices.
17120 (dnode_get_path): Handle symlinks correctly.
17122 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17124 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17126 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17128 Read label on HFS+.
17130 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17131 (grub_hfsplus_btree_search): Fix types.
17132 (grub_hfsplus_label): Implement.
17134 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17136 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17138 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17140 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17142 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17144 Fix symlink handling on iso9660.
17146 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17148 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17149 (grub_iso9660_read_symlink): Moved most of code ...
17150 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17152 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17154 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17155 Use union to avoid breaking strict-aliasing rules.
17157 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17159 Support multi-extent iso files.
17161 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17163 (grub_fshelp_node): Revamp. All users updated.
17164 (FLAG_*): New enum.
17165 (read_node): New function.
17166 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17168 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17169 (get_node_size): New function.
17170 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17172 Fix memory leak on . and ..
17173 (grub_iso9660_read): Use read_node.
17174 (grub_iso9660_close): Free node.
17176 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17178 Fix tar 4G limit and handle paths containing dot.
17180 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17181 (canonicalize): New function.
17182 (grub_cpio_find_file): Use canonicalize. Store offs in
17184 (grub_cpio_dir): Use grub_disk_addr_t.
17185 (grub_cpio_open): Likewise.
17187 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17189 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17191 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17193 (grub_squash_inode): Add long_file and block_size.
17194 (grub_squash_cache_inode): New struct.
17195 (grub_squash_dirent): Make types into enum.
17196 (SQUASH_TYPE_LONG_REGULAR): New type.
17197 (grub_squash_frag_desc): Add field size.
17198 (SQUASH_BLOCK_FLAGS): New enum.
17199 (grub_squash_data): Use grub_squash_cache_inode.
17200 (grub_fshelp_node): Make ino_chunk 64-bit.
17201 (read_chunk): Minor argument change. All users updated.
17202 (squash_mount): Use correct le_to_cpu.
17203 (grub_squash_open): Handle LONG_REGULAR.
17204 (direct_read): New function.
17205 (grub_squash_read_data): Handle blocks correctly.
17207 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17209 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17211 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17213 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17215 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17217 Fix 2G limit on ZFS.
17219 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17221 (uberblock_verify): Likewise.
17222 (dmu_read): Likewise.
17223 (grub_zfs_read): Likewise. Remove invalid cast.
17225 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17227 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17228 (grub_jfs_blkno): Fix incorrect shift.
17229 (grub_jfs_read_file): Use more appropriate types.
17231 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17233 Support triple indirect on minix2 and minix3.
17235 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17236 Declare triple_indir_zone.
17237 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17240 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17244 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17245 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17246 Rename ctime to mtime. All users updated.
17247 (grub_minix_get_file_block): Fix types and double indirect computations.
17249 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17251 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17252 if no label is found.
17253 (grub_fat_iterate_dir): Fix file size type.
17254 (grub_fat_iterate_dir): Likewise.
17256 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17258 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17260 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17261 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17263 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17265 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17267 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17269 * util/import_gcry.py: Accept space between # and include.
17271 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17273 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17275 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17277 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17279 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17280 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17282 * grub-core/script/yylex.l: Add fine-grained #pragma.
17284 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17286 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17287 New inline function.
17288 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17290 (memset) [GRUB_UTIL]: Likewise.
17291 (memcmp) [GRUB_UTIL]: Likewise.
17293 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17295 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17296 inline function rather than a define.
17298 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17300 * util/grub-setup.c: Add missing include.
17302 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17304 * util/ieee1275/grub-ofpathname.c: Add missing include.
17306 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17308 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17309 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17312 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17314 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17317 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17319 * util/grub-install.in: Add datarootdir as per automake manual
17321 * util/grub-mknetdir.in: Likewise.
17323 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17325 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17327 * util/grub.d/10_kfreebsd.in: Likewise.
17328 * util/grub.d/10_linux.in: Likewise.
17329 * util/grub.d/10_netbsd.in: Likewise.
17330 * util/grub.d/10_windows.in: Likewise.
17331 * util/grub.d/20_linux_xen.in: Likewise.
17333 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17335 Remove redundant grub_kernel_image_size.
17337 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17339 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17340 the small code. It moves it only by few bytes but simplifies the code.
17341 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17343 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17344 (grub_kernel_image_size): Removed.
17345 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17346 (grub_kernel_image_size): Removed.
17347 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17348 compiled with Apple toolchain.
17349 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17350 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17351 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17352 (grub_total_module_size): Likewise.
17353 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17355 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17356 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17357 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17358 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17359 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17360 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17361 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17362 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17364 (grub_total_module_size): Removed.
17365 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17366 (image_targets): Likewise.
17367 Set .compressed_size to no field on sparc.
17368 (generate_image): Remove kernel_image_size handling.
17370 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17372 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17373 NULL pointer dereference.
17375 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17377 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17378 done with a dedicated section.
17380 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17381 Ensure the correct position of boot_path.
17382 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17383 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17385 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17386 * include/grub/boot.h: Removed. All references removed.
17387 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17389 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17391 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17393 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17396 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17398 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17400 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17402 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17403 Don't add the bogus brackets.
17405 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17409 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17410 * grub-core/Makefile.core.def (exfat): New module.
17411 * grub-core/fs/exfat.c: New file.
17412 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17413 (GRUB_FAT_ATTR_*): Make into an enum.
17414 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17415 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17416 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17417 (GRUB_FAT_MAXFILE): Removed.
17418 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17419 (grub_current_fat_bpb_t): New type.
17420 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17421 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17422 (grub_fat_dir_node_t): New type.
17423 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17424 (fat_log2) [MODE_EXFAT]: Removed.
17425 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17426 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17427 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17428 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17429 (grub_fat_label) [MODE_EXFAT]: New function.
17430 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17431 reserved_first_sector to 0.
17433 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17435 Move grub_reboot out of the kernel.
17437 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17438 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17439 * grub-core/lib/efi/reboot.c: ... here.
17440 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17441 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17442 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17443 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17444 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17445 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17446 * grub-core/lib/ieee1275/reboot.c: ... here.
17447 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17448 * grub-core/lib/mips/arc/reboot.c: ... here.
17449 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17450 * grub-core/lib/mips/loongson/reboot.c: ...here.
17451 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17452 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17453 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17454 * include/grub/i386/reboot.h: New file.
17455 * include/grub/mips/loongson/ec.h: Fix includes.
17456 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17457 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17458 * grub-core/lib/i386/reboot.c: New file.
17460 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17462 Make grub_prefix into module to fix the arbitrary limit and save
17465 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17466 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17467 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17468 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17469 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17470 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17471 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17472 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17473 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17474 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17475 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17476 * include/grub/ia64/efi/kernel.h: Removed.
17477 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17478 (grub_prefix): Removed.
17479 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17480 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17481 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17482 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17483 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17484 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17485 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17486 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17487 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17488 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17489 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17490 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17491 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17492 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17493 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17494 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17495 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17496 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17497 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17498 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17499 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17500 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17501 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17502 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17503 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17504 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17505 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17506 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17507 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17509 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17511 (image_targets): Likewise.
17512 (generate_image): Put prefix as a module.
17514 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17516 Replace grub_module_iterate with FOR_MODULES.
17518 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17519 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17520 (grub_efi_modules_addr): ...this.
17521 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17522 (grub_efi_init): Set grub_modbase.
17523 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17524 (grub_modbase): New variable.
17525 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17526 (grub_modbase): New variable.
17527 (grub_machine_init): Set grub_modbase.
17528 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17529 (grub_modbase): New variable.
17530 (grub_machine_init): Set grub_modbase.
17531 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17532 (grub_modbase): New variable.
17533 (grub_machine_init): Set grub_modbase.
17534 * grub-core/kern/main.c (grub_module_iterate): Remove.
17535 (grub_modules_get_end): Use grub_modbase.
17536 (grub_load_modules): Use FOR_MODULES.
17537 (grub_load_config): Likewise.
17538 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17539 (grub_modbase): New variable.
17540 (grub_machine_init): Set grub_modbase.
17541 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17542 (grub_modbase): New variable.
17543 (grub_machine_init): Set grub_modbase.
17544 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17546 (grub_modbase): New variable.
17547 (grub_machine_init): Set grub_modbase.
17548 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17549 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17550 (grub_module_iterate): Likewise.
17551 (grub_modbase): New variable declaration.
17552 (FOR_MODULES): New macro.
17554 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17556 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17557 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17559 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17561 Fix few obvious type discrepancies.
17563 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17564 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17565 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17567 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17568 and connected types.
17569 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17571 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17572 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17573 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17574 and connected types.
17576 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17578 Fix python 3.x incompatibilities.
17580 * gentpl.py: Put brackets around print strings.
17581 * util/import_gcry.py: Open explicitly as utf-8.
17582 Use in instead of has_key.
17584 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17586 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17587 (GRUB_XFS_INO_AGBITS): Make into inline function.
17588 (GRUB_XFS_INO_INOINAG): Likewise.
17589 (GRUB_XFS_INO_AG): Likewise.
17590 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17591 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17592 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17593 (GRUB_XFS_EXTENT_SIZE): Likewise.
17594 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17595 (GRUB_XFS_NEXT_DIRENT): Likewise.
17596 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17597 (grub_xfs_read_file): Fix offset type.
17599 2011-10-15 Robert Millan <rmh@gnu.org>
17601 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17603 2011-10-15 Robert Millan <rmh@gnu.org>
17605 Fix build problem on FreeBSD and GNU/kFreeBSD.
17607 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17609 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17611 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17613 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17615 (grub_hfsplus_btree_recoffset): Likewise.
17616 (grub_hfsplus_btree_recptr): Likewise.
17617 (grub_hfsplus_find_block): Likewise.
17618 (grub_hfsplus_btree_search): Likewise.
17619 (grub_hfsplus_read_block): Likewise.
17620 (grub_hfsplus_read_file): Likewise.
17621 (grub_hfsplus_mount): Likewise.
17622 (grub_hfsplus_btree_iterate_node): Likewise.
17623 (grub_hfsplus_btree_search): Likewise.
17624 (grub_hfsplus_iterate_dir): Likewise.
17625 (grub_hfsplus_read): A small code simplification.
17627 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17629 * grub-core/kern/emu/hostdisk.c
17630 (convert_system_partition_to_system_disk): Don't assume that children
17631 of mapper nodes are mapper nodes.
17633 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17635 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17636 * include/grub/misc.h (grub_isxdigit): New function.
17637 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17638 switched to grub_isxdigit.
17639 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17640 number starting with a letter.
17642 2011-10-09 Robert Millan <rmh@gnu.org>
17644 LVM support for FreeBSD and GNU/kFreeBSD.
17646 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17648 (LVM_DEV_MAPPER_STRING): Move from here ...
17649 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17650 * util/getroot.c: Include `<grub/util/lvm.h>'.
17651 (grub_util_get_dev_abstraction): Enable
17652 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17653 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17654 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17655 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17657 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17659 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17660 when LVM abstraction is required for ${GRUB_DEVICE}.
17662 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17664 Add support for LZO compression in GRUB:
17665 - import of minilzo library,
17666 - LZO decompression for btrfs,
17667 - lzop files decompression.
17669 * grub-core/io/lzopio.c: New file.
17670 * grub-core/lib/adler32.c: Likewise.
17671 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17672 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17673 * grub-core/lib/minilzo/minilzo.c: Likewise.
17674 * grub-core/lib/minilzo/minilzo.h: Likewise.
17675 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17676 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17677 grub-core/lib/minilzo/minilzo.c to common.
17678 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17679 cflags in cppflags.
17680 * grub-core/Makefile.core.def (btrfs): Likewise.
17681 * grub-core/Makefile.core.def (lzopio): New module.
17682 (adler32): Likewise.
17683 * grub-core/fs/btrfs.c: Include minilzo.h.
17684 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17685 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17686 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17687 (grub_btrfs_lzo_decompress): New function.
17688 (grub_btrfs_extent_read): Add support for LZO compression type.
17689 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17690 (GRUB_USHRT_MAX): Likewise.
17691 (GRUB_UINT_MAX): Likewise.
17692 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17693 (UINT_MAX): Likewise.
17694 (CHAR_BIT): Likewise.
17695 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17696 grub-core/lib/posix_wrap/limits.h
17697 (UCHAR_MAX): Likewise.
17698 * include/grub/file.h (grub_file_filter_id): New compression filter
17699 GRUB_FILE_FILTER_LZOPIO.
17700 * include/grub/file.h (grub_file_filter_id): Set
17701 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17702 * include/grub/types.h (grub_get_unaligned16): New function.
17703 (grub_get_unaligned32): Likewise.
17704 (grub_get_unaligned64): Likewise.
17705 * util/import_gcry.py (cryptolist): Add adler32.
17707 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17709 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17710 in perspective decreases the complexity of build system and fixes
17711 compilation right now.
17713 2011-10-01 Ales Nesrsta <starous@volny.cz>
17715 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17716 (fixed problem related to using UHCI with coreboot).
17718 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17720 * gentpl.py: Use Autogen macros so that the output template file
17721 (Makefile.tpl) size is reduced.
17723 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17725 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17728 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17730 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17731 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17733 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17735 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17738 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17740 Remove extra declaration of sleep for mingw32.
17742 * util/misc.c (sleep) [__MINGW32__]: Removed.
17743 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17745 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17747 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17749 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17751 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17752 (grub_netbsd_btinfo_bootwedge): New struct.
17753 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17755 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17757 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17759 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17762 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17764 Fix incorrect identifiers in bash-completion.
17766 * util/bash-completion.d/grub-completion.bash.in
17767 (_grub_mkpasswd-pbkdf2): Rename to ...
17768 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17769 (_grub_script-check): Rename to ...
17770 (_grub_script_check): ... this. All users updated.
17772 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17774 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17775 Return 0 if disk isn't biosdisk.
17777 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17779 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17781 * Makefile.util.def (grub-fstest): Likewise.
17783 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17785 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17786 Get sector size from disk label.
17788 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17790 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17791 */README* as well as README*.
17792 Reported by: Axel Beckert.
17794 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17796 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17797 case of less than 256 MiB of RAM.
17799 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17801 * grub-core/commands/wildcard.c (make_regex): Handle @.
17803 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17805 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17807 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17809 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17810 AC_LANG_CONFTEST macros.
17812 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17814 Add grub-fstest option to uncompress data for commands.
17816 * util/grub-fstest.c (uncompress): New var.
17817 (options): New option -u.
17819 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17821 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17822 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17824 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17826 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17827 file type was not recognized correctly (not gzip or corrupted).
17829 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17831 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17832 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17834 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17836 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17838 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17839 video_radeon_fuloong2e.
17840 * grub-core/video/radeon_fuloong2e.c: New file.
17841 * include/grub/video.h (grub_video_id_t): Add new ID
17842 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17844 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17846 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17848 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17849 that PRID matches the detected subplatform and reset the subplatform
17852 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17854 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
17856 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17858 Fix PCI iterating on functions >= 4.
17860 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
17861 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
17863 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
17864 (grub_pci_read): Fix bitmask.
17865 (grub_pci_read_word): Likewise.
17866 (grub_pci_read_byte): Likewise.
17867 (grub_pci_write): Likewise.
17868 (grub_pci_write_word): Likewise.
17869 (grub_pci_write_byte): Likewise.
17871 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17873 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
17874 can still be specified in TARGET_CFLAGS)
17876 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17878 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
17880 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
17881 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
17882 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
17883 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
17884 (FULOONG): Rename to ...
17885 (FULOONG2F): ... this. All users updated.
17886 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
17887 (machtype_fuloong2f_str): ... this.
17888 (machtype_fuloong2e_str): New string.
17889 Check for machtype_fuloong2e_str.
17890 * grub-core/loader/mips/linux.c (loongson_machtypes)
17891 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
17892 * grub-core/term/serial.c (loongson_defserial)
17893 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
17894 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
17895 loongson_defserial.
17896 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
17898 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
17899 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
17900 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
17901 to IMAGE_FULOONG2F_FLASH. All users updated.
17902 (image_targets): Rename images.
17903 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
17905 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17907 Make enable of disk cache statistics code configurable.
17909 * configure.ac: --enable-cache-stats added.
17910 * config.h.in (DISK_CACHE_STATS): New define.
17911 * grub-core/Makefile.core.def (cacheinfo): New command.
17912 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
17913 * grub-core/commands/cacheinfo.c: New file.
17914 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
17915 moved to cacheinfo.c.
17916 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
17918 * include/grub/disk.h: Likewise.
17920 2011-08-19 Szymon Janc <szymon@janc.net.pl>
17922 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
17923 * grub-core/Makefile.am: Likewise.
17925 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17927 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
17930 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17932 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
17934 (grub_jfs_lookup_symlink): Use correct starting inode.
17936 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17938 * util/grub-setup.c (main): Add missing gcry initialisation.
17940 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
17942 Don't accept text modes on EFI when booting Linux.
17944 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
17945 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
17947 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
17948 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17950 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
17951 use of "/path/.." as in grub-install for EFI as well as handling
17952 symlinks correctly.
17953 Fixes Debian bug #637768.
17955 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
17957 * util/grub-probe.c: Remove duplicate #include.
17959 2011-08-10 Robert Millan <rmh@gnu.org>
17961 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
17963 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
17965 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
17966 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
17968 2011-08-03 Robert Millan <rmh@gnu.org>
17970 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
17971 la_array as packed.
17972 Reported by: Zachary Bedell
17974 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17976 * configure.ac: The Loongson port requires grub-mkfont due to its
17977 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
17980 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
17982 * util/grub-install.in: Don't source grub-mkconfig_lib until after
17983 processing arguments (otherwise help2man fails when GRUB has not yet
17986 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17988 New script grub-mkstandalone.
17990 * Makefile.util.def (grub-mkstandalone): New script.
17991 * docs/man/grub-mkstandalone.h2m: New file.
17992 * util/grub-mkstandalone.in: Likewise.
17994 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
17996 Support ATA disks with 4K sectors.
17998 * include/grub/ata.h (grub_ata): New member log_sector_size.
17999 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18000 (grub_ata_identify): Read sector size.
18001 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18003 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18005 * util/grub-install.in: Don't use uhci outside of x86.
18007 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18009 * util/grub-mkrescue.in: Add missing quotes.
18011 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18013 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18016 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18018 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18020 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18022 * include/grub/video.h: add missing EXPORT_FUND on
18023 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18025 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18027 * include/grub/mips/kernel.h: Fix define conflict.
18029 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18031 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18034 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18036 Preferred resolution detection for VBE.
18038 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18039 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18040 the Flat Panel extension, in line with the X.org VESA driver.
18041 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18043 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18044 (grub_vbe_bios_read_edid): Likewise.
18045 (grub_vbe_get_preferred_mode): Likewise.
18046 (grub_video_vbe_setup): When the mode is "auto", try to get the
18047 preferred mode from VBE, and use the largest mode that is no larger
18048 than the preferred mode (some BIOSes expose a preferred mode that is
18049 not in their mode list!). If this fails, fall back to 640x480 as a
18050 safe conservative choice.
18051 (grub_video_vbe_get_edid): New function.
18052 (grub_video_vbe_adapter): Add get_edid.
18053 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18054 (struct grub_video_adapter): Add get_edid.
18055 (grub_video_edid_checksum): Add prototype.
18056 (grub_video_edid_preferred_mode): Likewise.
18057 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18060 * grub-core/commands/videoinfo.c (print_edid): New function.
18061 (grub_cmd_videoinfo): Print EDID if available.
18063 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18064 is more appropriate on a wider range of platforms than 640x480.
18065 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18068 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18070 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18072 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18074 * po/POTFILES.in: Regenerate.
18076 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18078 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18079 incorrect memory usage.
18081 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18083 * util/grub-install.in: Source grub-mkconfig_lib.
18085 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18087 Remove getroot.c from core on emu platform.
18089 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18091 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18093 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18094 * util/getroot.c (get_win32_path): ... here.
18095 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18096 * util/getroot.c (fini_libzfs): ... here.
18097 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18098 * util/getroot.c (grub_get_libzfs_handle): ... here.
18099 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18101 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18102 * grub-core/kern/emu/misc.c
18103 (grub_make_system_path_relative_to_its_root): Moved from here...
18104 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18105 * grub-core/kern/emu/getroot.c: Moved from here ...
18106 * util/getroot.c: ... here. All users updated.
18107 * grub-core/kern/emu/raid.c: Moved from here ...
18108 * util/raid.c: ... here. All users updated.
18110 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18112 * po/POTFILES.in: Regenerate.
18114 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18116 Fix compilation on GNU/Linux.
18118 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18120 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18121 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18122 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18124 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18125 2011-07-07 Michael Gorven <michael@gorven.za.net>
18126 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18128 LUKS and GELI support.
18130 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18131 grub-core/disk/luks.c, grub-core/disk/geli.c,
18132 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18133 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18134 grub-core/lib/arg.c.
18135 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18136 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18137 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18138 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18139 (grub-bin2h): Add libgcry.a.
18140 (grub-mkimage): Likewise.
18141 (grub-mkrelpath): Likewise.
18142 (grub-script-check): Likewise.
18143 (grub-editenv): Likewise.
18144 (grub-mkpasswd-pbkdf2): Likewise.
18145 (grub-pe2elf): Likewise.
18146 (grub-fstest): Likewise.
18147 (grub-mkfont): Likewise.
18148 (grub-mkdevicemap): Likewise.
18149 (grub-probe): Likewise.
18150 (grub-ofpath): Likewise.
18151 (grub-mklayout): Likewise.
18152 (example_unit_test): Likewise.
18153 (grub-menulst2cfg): Likewise.
18154 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18155 * grub-core/Makefile.core.def (cryptodisk): New module.
18158 * grub-core/disk/AFSplitter.c: New file.
18159 * grub-core/disk/cryptodisk.c: Likewise.
18160 * grub-core/disk/geli.c: Likewise.
18161 * grub-core/disk/luks.c: Likewise.
18162 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18164 (grub_util_get_dm_abstraction): New function.
18165 (grub_util_follow_gpart_up): Likewise.
18166 (grub_util_get_geom_abstraction): Likewise.
18167 (grub_util_get_dev_abstraction): Use new functions.
18168 (grub_util_pull_device): Pull GELI and LUKS.
18169 (grub_util_get_grub_dev): Handle LUKS and GELI.
18170 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18171 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18172 (follow_geom_up): Removed.
18173 (grub_util_fd_seek): New function.
18174 (open_device): Use grub_util_fd_seek.
18175 (nread): Rename to ..
18176 (grub_util_fd_read): ... this. All users updated.
18177 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18178 (grub_crypto_cbc_decrypt): Likewise.
18179 (grub_crypto_hmac_write): Likewise.
18180 (grub_crypto_hmac_buffer): Likewise.
18181 (grub_password_get): Extend to util.
18182 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18183 New member modname.
18184 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18185 * include/grub/cryptodisk.h: New file.
18186 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18187 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18189 (grub_util_follow_gpart_up): New proto.
18190 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18191 (grub_util_fd_read): Likewise.
18192 (grub_cryptodisk_cheat_mount): Likewise.
18193 (grub_util_cryptodisk_print_uuid): Likewise.
18194 (grub_util_get_fd_sectors): Likewise.
18195 * util/grub-fstest.c (mount_crypt): New var.
18196 (fstest): Mount crypto if requested.
18197 (options): New option -C.
18198 (argp_parser): Parse -C.
18199 (main): Init and fini gcry.
18200 * util/grub-install.in: Support cryptodisk install.
18201 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18202 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18204 (prepare_grub_to_access_device): Likewise.
18205 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18206 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18207 (probe_cryptodisk_uuid): New function.
18208 (probe_abstraction): Likewise.
18209 (probe): Use new functions.
18210 * util/import_gcry.py: Create Makefile.utilgcry.def.
18211 Add modname member.
18213 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18215 Lazy device scanning.
18217 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18218 (grub-setup): Remove util/raid.c.
18219 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18220 * grub-core/disk/lvm.c (scan_depth): New variable.
18221 (grub_lvm_iterate): Rescan if necessary.
18222 (find_lv): New function based on grub_lvm_open.
18223 (grub_lvm_open): Use find_lv. Rescan on error.
18224 (is_node_readable): New function.
18225 (is_lv_readable): Likewise.
18226 (grub_lvm_scan_device): Skip already found disks.
18227 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18228 Stop if searched device is found and readable.
18229 * grub-core/disk/raid.c (inscnt): New variable.
18230 (scan_depth): Likewise.
18231 (scan_devices): New function based on grub_raid_register. Abort if
18232 looked for device is found.
18233 (grub_raid_iterate): Rescan if needed.
18234 (find_array): NEw function based on -grub_raid_open.
18235 (grub_raid_open): Use find_array and rescan.
18236 (insert_array): Set became_readable_at.
18237 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18238 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18240 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18241 (grub_util_pull_device): New function.
18242 (grub_util_get_grub_dev): Call grub_util_pull_device.
18243 * util/raid.c: Moved to ..
18244 * grub-core/kern/emu/raid.c: ... here.
18245 (grub_util_raid_getmembers): New parameter "bootable".
18246 All users updated. Support 1.x.
18247 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18249 * include/grub/disk.h (grub_disk_pull_t): New enum.
18250 (grub_disk_dev): Change iterate prototype.
18252 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18254 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18255 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18256 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18257 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18259 * include/grub/util/raid.h: Removed.
18261 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18263 * po/POTFILES.in: Regenerate.
18265 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18267 Unify sparc init with other ieee1275.
18269 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18270 instead of kern/sparc64/ieee1275/init.c.
18271 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18272 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18273 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18274 grub/machine/kernel.h.
18275 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18276 (grub_claim_heap) [__sparc__]: Use sparc version.
18277 (grub_machine_init): Moved args parsing to
18278 (grub_parse_cmdline): ...this.
18279 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18280 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18282 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18284 Move BOOTP to separate file.
18286 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18287 * grub-core/net/net.c: Move all BOOTP functions to
18288 * grub-core/net/bootp.c: ... here.
18290 Use frame interface on PXE.
18292 * grub-core/Makefile.core.def (pxecmd): Removed.
18293 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18294 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18295 * grub-core/i386/pc/pxe.c: Moved from here ...
18296 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18297 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18298 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18300 EFI network support.
18302 * grub-core/Makefile.core.def (efinet): New module.
18303 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18305 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18307 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18308 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18309 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18310 * grub-core/net/drivers/efi/efinet.c: New file.
18311 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18312 (grub_efi_net_config): New extern var.
18314 Various cleanups and bugfixes.
18316 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18318 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18319 disk declared as partition.
18320 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18322 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18323 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18324 (grub_debug_zalloc): Likewise.
18325 (grub_debug_realloc): Likewise.
18326 (grub_debug_memalign): Likewise.
18327 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18328 Check that target is IPv4.
18329 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18330 local-mac-address as fallback.
18331 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18333 * grub-core/net/ip.c (ipchksum): Rename to ...
18334 (grub_net_ip_chksum): ... this. All users updated.
18335 (grub_net_recv_ip_packets): Special handling for DHCP.
18336 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18338 Unify prefix handling
18340 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18341 (grub_machine_get_bootlocation): ... this.
18342 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18343 (grub_machine_get_bootlocation): ... this.
18344 (grub_prefix): New variable.
18346 (root_dev): New variable.
18348 (main): Use new variables.
18349 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18351 (grub_machine_get_bootlocation): ... this.
18352 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18353 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18354 (grub_machine_get_bootlocation): ... this.
18355 (grub_machine_set_prefix): Removed.
18356 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18357 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18359 (grub_machine_get_bootlocation): ... this.
18360 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18361 (grub_set_prefix_and_root): ... this. All users updated.
18362 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18364 (grub_machine_get_bootlocation): ... this.
18365 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18366 (grub_machine_get_bootlocation): New proto.
18367 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18369 Less intrusive and more reliable seek on network implementation.
18371 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18372 (grub_file_seek): Don't call grub_file_net_seek.
18373 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18374 (grub_net_fs_read_real): .. this.
18375 (grub_net_seek_real): Use net->offset.
18376 (grub_net_fs_read): Seek if necessary.
18378 Unify IEEE1275 netwotk config with the other platforms.
18380 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18382 (grub_machine_get_bootlocation): Support network.
18383 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18384 Support type and device parsing.
18385 (grub_ieee1275_get_device_type): New function.
18386 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18388 (grub_ieee1275_net_config_real): ... this.
18389 (grub_ofnet_probecards): Removed.
18390 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18391 * include/grub/ieee1275/ofnet.h: Removed.
18392 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18394 (grub_ieee1275_get_device_type): New function.
18396 Unify network device closing across platforms and make more robust.
18398 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18400 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18402 * grub-core/net/net.c (grub_net_network_level_interface_register):
18404 (grub_net_card_unregister): Close all interfaces.
18405 (receive_packets): Don't poll if no iterfaces are registered.
18407 (grub_net_fini_hw): New function.
18408 (grub_net_restore_hw): Likewise.
18409 (fini_hnd): New variable.
18410 (GRUB_MOD_INIT): Register preboot hook.
18411 (GRUB_MOD_FINI): Run and unregister preboot hook.
18413 Poll network cards when idle.
18415 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18416 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18417 * grub-core/net/net.c (receive_packets): Save last poll time.
18418 (grub_net_poll_cards_idle_real): New function.
18419 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18420 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18421 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18423 Rename ofnet interfaces.
18425 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18426 (grub_ofnet_findcards): Use ofnet_%s names.
18428 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18430 Cleanup socket opening.
18432 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18433 (grub_net_fs_close): Likewise.
18434 (grub_net_fs_read_real): Use eof member.
18435 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18436 (+grub_net_udp_close): New inline function.
18438 * include/grub/net/tftp.h: Moved to the top of ...
18439 * grub-core/net/tftp.c: ... here.
18440 * include/grub/net/ip.h: Moved mostly to the top of ...
18441 * grub-core/net/ip.c: ... here.
18442 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18443 * grub-core/net/ethernet.c: ... here.
18445 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18447 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18450 * include/grub/net/ip.h (ipv4_ini): Removed.
18451 (ipv4_fini): Likewise.
18453 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18454 (grub_net_send_ip_packets): Likewise.
18456 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18458 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18459 grub_read_cmos prototype.
18461 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18463 VGA text support in qemu-mips
18465 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18466 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18467 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18469 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18470 * grub-core/kern/vga_init.c: ... this.
18471 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18472 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18473 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18475 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18476 GRUB_MACHINE_PCI_IO_BASE.
18478 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18480 MIPS qemu flash support.
18482 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18484 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18485 (grub_machine_init): Probe memory if its size isn't known.
18486 * util/grub-mkimage.c (image_targets): Add flash targets.
18487 (generate_image): Handle flash targets.
18489 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18491 MIPS qemu at_keyboard support.
18493 * gentpl.py (videoinkernel): Add qemu-mips.
18494 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18495 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18496 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18498 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18499 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18500 * grub-core/term/serial.c (grub_serial_register)
18501 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18503 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18505 CMOS support on sparc.
18507 * gentpl.py (cmos): Add powerpc and sparc.
18508 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18510 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18511 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18512 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18513 grub_set_datetime_cmos.
18514 * grub-core/lib/ieee1275/cmos.c: New file.
18515 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18516 (find_rtc): Set no_ieee1275_rtc on error.
18517 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18518 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18519 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18520 fail. Move value to argument. All users updated
18521 (grub_cmos_write): Likewise.
18522 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18523 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18524 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18525 grub_get_datetime_cmos and grub_set_datetime_cmos.
18527 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18529 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18530 sourcing grub-mkconfig_lib.
18531 * util/update-grub_lib.in: Likewise.
18532 * util/grub.d/00_header.in: Likewise.
18533 * util/grub.d/10_hurd.in: Likewise.
18534 * util/grub.d/10_kfreebsd.in: Likewise.
18535 * util/grub.d/10_linux.in: Likewise.
18536 * util/grub.d/10_netbsd.in: Likewise.
18537 * util/grub.d/10_windows.in: Likewise.
18538 * util/grub.d/20_linux_xen.in: Likewise.
18539 * util/grub.d/30_os-prober.in: Likewise.
18541 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18543 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18544 default_bg_color rather than black.
18545 (grub_gfxterm_fullscreen): Likewise.
18546 (grub_gfxterm_background_color_cmd): Save new background color in
18549 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18551 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18553 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18555 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18558 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18560 Chainloading on coreboot support.
18562 * grub-core/Makefile.core.def (chain): Add coreboot.
18563 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18565 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18567 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18570 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18572 Implement time command.
18574 * grub-core/Makefile.core.def (time): New module.
18575 * grub-core/commands/time.c: New file.
18576 * grub-core/script/parser.y: Remove "time" keyword.
18577 * grub-core/script/yylex.l: Likewise.
18579 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18581 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18583 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18585 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18586 when handling leftovers.
18588 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18590 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18591 so that help2man doesn't fail.
18593 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18595 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18596 type in pointers on sparc64.
18597 (get_card_packet): Likewise.
18599 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18601 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18603 (grub_cmd_videoinfo): Fetch current video mode.
18605 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18607 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18608 because of underlying system restrictions.
18610 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18612 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18615 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18617 Coreboot video support.
18619 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18621 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18622 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18624 * grub-core/kern/i386/int.S: ... here.
18625 * grub-core/video/i386/pc/vbe.c: Updated includes.
18626 * grub-core/video/i386/pc/vga.c: Likewise.
18627 * include/grub/i386/coreboot/memory.h
18628 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18629 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18630 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18631 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18632 Disable interrupts.
18633 * include/grub/i386/pc/vga.h: Removed. All users updated.
18635 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18637 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18638 definitions for dprintf.
18639 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18641 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18643 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18645 (get_card_packet): Likewise.
18647 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18649 Display the path of the file when file is not found
18651 * grub-core/fs/fat.c: Display the filename when file is not found.
18652 * grub-core/fs/fshelp.c: Likewise.
18653 * grub-core/fs/hfs.c: Likewise.
18654 * grub-core/fs/jfs.c: Likewise.
18655 * grub-core/fs/minix.c: Likewise.
18656 * grub-core/fs/ufs.c: Likewise.
18657 * grub-core/fs/btrfs.c: Likewise.
18658 * grub-core/commands/i386/pc/play.c: Likewise.
18660 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18662 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18663 pointer checks before calling grub_free().
18664 * grub-core/commands/wildcard.c (match_devices): Likewise.
18665 * grub-core/commands/wildcard.c (match_files): Likewise.
18666 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18667 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18668 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18669 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18670 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18671 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18672 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18673 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18674 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18676 2011-06-25 Patrick <p55@mailinator.com>
18678 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18680 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18682 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18683 (grub_pxe_send): Likewise.
18684 (GRUB_MOD_INIT): Fix types.
18686 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18688 * grub-core/io/xzio.c: Fix code style issues
18690 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18691 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18693 Network infrastructure.
18694 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18696 * include/grub/net/arp.h: New file.
18697 * include/grub/net/device.h: Likewise.
18698 * include/grub/net/ethernet.h: Likewise.
18699 * include/grub/net/ip.h: Likewise.
18700 * include/grub/net/netbuff.h: Likewise.
18701 * include/grub/net/tftp.h: Likewise.
18702 * include/grub/net/udp.h: Likewise.
18703 * include/grub/ieee1275/ofnet.h: Likewise.
18704 * include/grub/emu/export.h: Likewise.
18705 * include/grub/net.h: Likewise.
18706 * grub-core/net/arp.c: Likewise.
18707 * grub-core/net/ethernet.c: Likewise.
18708 * grub-core/net/ip.c: Likewise.
18709 * grub-core/net/udp.c: Likewise.
18710 * grub-core/net/tftp.c: Likewise.
18711 * grub-core/net/netbuff.c: Likewise.
18712 * grub-core/net/net.c: Likewise.
18713 * grub-core/net/drivers/emu/emunet.c: Likewise.
18714 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18715 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18717 * grub-core/Makefile.core.def (net): New module.
18720 (emunet): Likewise.
18721 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18723 * grub-core/kern/device.c (grub_net_open) : New variable.
18724 (grub_device_open): Handle network device.
18725 (grub_device_close): Likewise.
18726 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18727 (grub_grubnet_fini): Likewise.
18728 (grub_file_seek): Seek in network device.
18729 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18730 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18732 (grub_machine_fini): Call grub_grubnet_fini.
18733 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18735 (grub_ieee1275_get_aliasdevname): New function.
18736 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18737 Add unofficial Solaris network info.
18738 (grub_multiboot_make_mbi): Likewise.
18739 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18740 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18741 * include/grub/device.h (grub_fs): Removed.
18742 * include/grub/err.h (grub_err_t): Add network-related values.
18743 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18744 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18745 (grub_ieee1275_get_aliasdevname): New proto.
18746 * include/grub/net.h: Rewritten.
18748 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18750 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18753 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18755 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18756 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18757 it truncates the output.
18758 Reported by: Ximin Luo.
18760 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18762 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18764 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18766 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18767 partmap before abstraction.
18769 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18771 * util/grub-mkconfig_lib.in: Add missing quotes.
18773 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18775 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18776 old method if mountinfo would return /dev/root and /dev/root doesn't
18779 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18783 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18784 (decomp_table): Add zlib entries.
18785 (zio_read): USe 8 bits for compression function rather than 3.
18786 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18788 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18790 * grub-core/disk/ahci.c: Add missing license statements.
18791 * grub-core/fs/romfs.c: Likewise.
18792 * grub-core/lib/ia64/setjmp.S: Likewise.
18793 * grub-core/loader/i386/pc/freedos.c: Likewise.
18794 * grub-core/loader/ia64/efi/linux.c: Likewise.
18795 * grub-core/video/colors.c: Likewise.
18796 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18798 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18802 * grub-core/Makefile.core.def (ata_pthru): Removed.
18803 (ahci): New module.
18805 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18807 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18809 (grub_hdparm_do_check_powermode_cmd): Likewise.
18810 (grub_hdparm_do_smart_cmd): Likewise.
18811 (grub_hdparm_set_val_cmd): Likewise.
18812 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18813 * grub-core/disk/ahci.c: New file.
18814 * grub-core/disk/ata.c: Factor out the low-level part into ...
18815 * grub-core/disk/pata.c: ... here.
18816 * grub-core/disk/ata_pthru.c: Contents moved to ...
18817 * grub-core/disk/pata.c: ... here.
18818 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18819 (grub_scsi_iterate): Use grub_scsi_names.
18820 (grub_scsi_open): Likewise.
18821 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18822 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18823 (grub_ata_regs_t): New struct.
18824 (grub_disk_ata_pass_through_parms): Likewise.
18825 (grub_ata_device): Renamed to ...
18826 (grub_ata): ... this.
18827 (grub_ata_dev): New struct.
18828 Removed all low-level inline functions.
18829 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18830 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18831 iterate hooks and open. All users updated.
18832 * util/grub-install.in: Handle AHCI disk module.
18834 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18836 Add support for DRI and RSTn markers in JPEG files.
18838 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18839 (JPEG_MARKER_RST0): Likewise.
18840 (JPEG_MARKER_RST1): Likewise.
18841 (JPEG_MARKER_RST2): Likewise.
18842 (JPEG_MARKER_RST3): Likewise.
18843 (JPEG_MARKER_RST4): Likewise.
18844 (JPEG_MARKER_RST5): Likewise.
18845 (JPEG_MARKER_RST6): Likewise.
18846 (JPEG_MARKER_RST7): Likewise.
18847 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18848 (grub_jpeg_decode_dri): New function.
18849 (grub_jpeg_decode_sos): Move image data related part into
18850 grub_jpeg_decode_data function.
18851 (grub_jpeg_decode_data): New function.
18852 (grub_jpeg_reset): New function.
18853 (grub_jpeg_decode_jpeg): Handle new markers.
18855 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18857 * util/ieee1275/ofpath.c (check_sas): Close fd.
18858 (main): Free of_path.
18859 Reported by: David Volgyes <dvolgyes>.
18861 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18863 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
18864 Reported by: David Volgyes <dvolgyes>.
18866 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18868 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
18870 Reported by: David Volgyes <dvolgyes>.
18872 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18874 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
18876 Reported by: David Volgyes <dvolgyes>.
18878 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18880 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
18881 Prevent memory leak.
18883 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18885 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
18886 (main): Close file.
18887 Reported by: David Volgyes <dvolgyes>.
18889 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18891 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
18892 to continue if allocation is failed.
18894 Reported by: David Volgyes <dvolgyes>.
18896 2011-06-23 David Volgyes <dvolgyes>
18898 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
18901 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18903 Fix spurious warning.
18905 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
18906 (acorn_partition_map_find): Use .bin member.
18908 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18910 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
18911 /dev/root as a valid device.
18913 2011-06-23 Jim Meyering <meyering@redhat.com>
18915 Avoid NULL deref in grub_device_open.
18917 * grub-core/kern/device.c (grub_device_open): Don't dereference
18918 a NULL pointer upon failed grub_env_get.
18920 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18922 Support non-512B sectors and agglomerate reads.
18924 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
18925 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
18926 (disk_io_guid): Removed.
18927 (make_devices): Locate solely by BlockIO.
18928 (grub_efidisk_open): Fill log_sector_size and total_sectors.
18929 (grub_efidisk_read): Use read_blocks.
18930 (grub_efidisk_write): Use write_blocks.
18931 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
18933 (get_safe_sectors): Handle non-512B sectors.
18934 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
18936 (grub_biosdisk_write): Handle non-512B sectors.
18937 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
18938 (grub_scsi_read): Remove special non-512B block handling (now handled
18940 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
18941 and do sanity checks.
18942 (grub_disk_adjust_range): Handle non-512B sectors.
18943 (transform_sector): New function.
18944 (grub_disk_read_small): Likewise.
18945 (grub_disk_read): Rewritten.
18946 (grub_disk_write): Handle non-512B sectors.
18947 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
18949 (open_device): Use log_sector_size.
18950 (grub_util_biosdisk_read): Likewise.
18951 (grub_util_biosdisk_write): Likewise.
18952 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
18954 (pc_partition_map_embed): Likewise.
18955 * include/grub/disk.h (grub_disk): New field log_sector_size.
18956 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
18957 (GRUB_DISK_CACHE_BITS): Increased to 6.
18958 * util/grub-fstest.c (fstest): New command testload.
18959 (argp_parser): Likewise.
18961 2011-06-16 Robert Millan <rmh@gnu.org>
18963 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
18964 `ata' driver on kernel of FreeBSD 9.
18966 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
18967 (get_ataraid_disk_name): New functions.
18968 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
18969 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
18970 get_ataraid_disk_name() and get_ada_disk_name().
18972 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
18974 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
18977 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
18979 * docs/grub.texi (Obtaining and Building GRUB): Substitute
18980 `ftp.gnu.org' for `alpha.gnu.org'.
18982 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18984 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
18985 partitions under /dev/disk/by-id/.
18987 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
18989 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
18990 after ten consecutive open failures. Scanning all the way up to
18991 10000 is excessive and can cause serious performance problems in
18992 some configurations.
18993 Fixes Ubuntu bug #787461.
18995 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
18997 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19000 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19001 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19003 Don't stat devices unless we have to.
19005 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19006 dir == /dev/mapper.
19007 (grub_guess_root_device): Use already known os_dev if possible.
19008 * grub-core/kern/emu/hostdisk.c
19009 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19010 if device is known to be a dm one.
19012 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19014 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19015 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19016 Reported by: Pawel Tecza.
19018 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19020 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19021 (lsefisystab): Likewise.
19023 (lsefimmap): Likewise.
19024 (hdparm): Enable on qemu-mips.
19025 (setjmp): Add ia64 nodist.
19026 (serial): Simplify tags.
19028 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19030 * Makefile.util.def (grub-ofpathname): Install manual page.
19032 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19034 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19036 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19038 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19040 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19042 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19045 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19047 Use full 64-bit division.
19049 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19050 (grub_divmod64): ... this.
19051 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19054 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19056 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19059 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19061 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19062 to avoid accidents when debugging with 'sh -x'.
19063 * grub-core/gensyminfo.sh.in: Likewise.
19064 * tests/example_scripted_test.in: Likewise.
19065 * tests/grub_cmd_regexp.in: Likewise.
19066 * tests/grub_script_blanklines.in: Likewise.
19067 * tests/grub_script_dollar.in: Likewise.
19068 * tests/grub_script_expansion.in: Likewise.
19069 * tests/grub_script_final_semicolon.in: Likewise.
19070 * tests/partmap_test.in: Likewise.
19071 * tests/util/grub-shell-tester.in: Likewise.
19072 * tests/util/grub-shell.in: Likewise.
19074 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19076 Move gfxmenu color handling to video, so that gfxterm can use it
19079 * grub-core/gfxmenu/named_colors.c: Move to ...
19080 * grub-core/video/colors.c: ... here. Rename
19081 grub_gui_get_named_color to grub_video_get_named_color.
19082 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19083 * grub-core/video/colors.c (my_isxdigit): ... here.
19084 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19086 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19087 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19089 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19091 * include/grub/gui.h (grub_gui_color_t): Move to ...
19092 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19093 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19094 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19095 * include/grub/gui.h (grub_gui_map_color): Move to ...
19096 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19097 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19099 * include/grub/video.h (grub_video_get_named_color): ... here.
19100 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19101 * include/grub/video.h (grub_video_parse_color): ... here.
19103 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19105 (gfxmenu): Remove gfxmenu/named_colors.c.
19106 (video) [videomodules]: Add video/colors.c.
19108 Add a background_color command.
19110 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19112 (GRUB_MOD_INIT): Register background_color command.
19113 (GRUB_MOD_FINI): Unregister background_color command.
19114 (redraw_screen_rect): Allow blend/replace of text layer to be
19115 controlled independently from whether there is a background bitmap.
19116 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19119 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19121 Patch BPB in ntldr and chainloader --bpb.
19123 * grub-core/fs/fat.c: Include grub/fat.h.
19124 (grub_fat_bpb): Moved to ...
19125 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19126 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19128 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19130 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19132 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19134 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19135 (GRUB_MOD_INIT): Show --bpb.
19136 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19137 * grub-core/normal/main.c (features): New variable.
19138 (GRUB_MOD_INIT): Set feature_* variables.
19139 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19141 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19143 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19145 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19148 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19150 FreeDOS direct loading support.
19152 * docs/grub.texi (Supported OS): Add FreeDOS.
19153 * grub-core/Makefile.core.def (freedos): New module.
19154 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19156 (grub_relocator16_boot): Handle %ebx.
19157 * grub-core/lib/i386/relocator16.S: Likewise.
19158 * grub-core/loader/i386/pc/freedos.c: New file.
19160 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19162 Long Linux command line support.
19164 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19165 (maximal_cmdline_size): New variable.
19166 (allocate_pages): Use maximal_cmdline_size.
19167 (grub_cmd_linux): Set and use maximal_cmdline_size.
19168 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19169 (allocate_pages): Use maximal_cmdline_size.
19170 (grub_cmd_linux): Set and use maximal_cmdline_size.
19171 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19172 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19175 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19176 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19178 Improve devmapper support
19180 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19181 (grub_util_is_lvm): New function.
19182 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19183 than lvm if not dmraid.
19184 Handle mapped md nodes.
19185 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19186 (grub_util_device_is_mapped): ... this. Make always available. All users
19188 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19189 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19191 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19193 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19195 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19197 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19198 * grub-core/modinfo.sh.in: New file.
19199 * grub-core/Makefile.core.def (modinfo.sh): New script.
19200 * util/grub-mknetdir.in: Use modinfo.sh.
19201 * util/grub-mkrescue.in: Likewise.
19203 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19205 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19206 Fix potential usage of Elf32 instead of Elf64 when compiling on
19207 32-bit architecture. Add endianness macros while on it.
19209 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19211 Use mipsel- rather than mips- in directories involving mipsel ports to
19212 allow both endiannesses coexist.
19214 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19215 mips. All conditions adjusted.
19216 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19218 * util/grub-install.in: Adjust conditions to take renaming into account.
19219 * util/grub-mkimage.c (image_targets): Likewise. New target
19220 mips-qemu_mips-elf for bigendian mips.
19222 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19224 Avoid unnecessary copying on MIPS.
19226 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19227 early if src == dest.
19228 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19229 compression is none.
19231 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19233 Reduce memory footprint on SGI by putting modules before the kernel
19234 as opposed to after.
19236 * grub-core/Makefile.core.def (kernel): Increase linking address.
19237 (none_decompress): Likewise.
19238 (xz_decompress): Likewise.
19239 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19241 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19243 (grub_arch_modules_addr): New function.
19244 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19245 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19246 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19248 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19249 (grub_total_modules_size): ... this. Make global.
19250 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19251 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19253 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19254 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19255 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19256 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19257 * util/grub-mkimage.c (image_target_desc): New flag
19258 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19259 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19260 (generate_image): Handle images with modules before kernel.
19262 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19264 Prevent potential loss of memory map by overwrite on qemu-mips.
19266 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19267 Save ram size in $s4.
19268 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19269 All users changed to grub_arch_memsize.
19270 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19272 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19273 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19274 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19277 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19279 * .bzrignore: Remove grub-dumpbios.
19281 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19283 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19284 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19285 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19286 existing options which append).
19287 * docs/grub.texi (Simple configuration): Document new options.
19288 Reported by: Ian Jackson. Fixes Debian bug #617538.
19290 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19292 * util/grub-fstest.c (cmd_cat): New function.
19293 (fstest): Handle CMD_CAT.
19294 (options): Add cat.
19295 (argp_parser): Handle cat.
19297 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19299 * Makefile.util.def (grub-bin2h): Don't install.
19300 * docs/man/grub-bin2h.h2m: Remove.
19302 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19304 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19307 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19309 Reenable qemu-mips port.
19311 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19312 Fix small arc bug while on it.
19313 * gentpl.py: Handle qemu_mips.
19314 * grub-core/Makefile.am: Likewise.
19315 * grub-core/Makefile.core.def: Likewise.
19316 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19317 inappropriate includes.
19318 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19319 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19320 * grub-core/kern/main.c (grub_modules_get_end)
19321 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19322 * grub-core/kern/mips/qemu-mips: Moved to ..
19323 * grub-core/kern/mips/qemu_mips: ... this.
19324 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19325 (grub_machine_init): Call terminfo_init and serial_init.
19326 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19327 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19329 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19331 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19332 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19333 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19334 * include/grub/mips/qemu_mips/cmos.h: New file.
19335 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19336 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19338 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19339 Use correct mips-style address.
19340 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19341 (GRUB_TICKS_PER_SECOND): Removed.
19342 (grub_get_rtc): Likewise.
19343 (grub_cpu_idle): Likewise.
19344 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19346 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19347 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19348 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19349 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19350 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19351 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19352 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19353 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19355 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19359 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19360 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19362 * configure.ac: New target mips-arc.
19363 * gentpl.py: Likewise.
19364 * grub-core/Makefile.am: Likewise.
19365 * grub-core/Makefile.core.def: Likewise.
19366 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19367 (none_decompress): Likewise.
19368 (lsdev): New module.
19369 (datetime): Use lib/arc/datetime.c on ARC.
19370 (part_dvh): New module.
19371 * grub-core/commands/arc/lsdev.c: New file.
19372 * grub-core/disk/arc/arcdisk.c: Likewise.
19373 * grub-core/kern/mips/arc/init.c: Likewise.
19374 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19376 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19378 (grub_arch_dl_relocate_symbols): Likewise.
19379 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19380 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19381 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19383 * grub-core/lib/arc/datetime.c: New file.
19384 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19385 pci.h on non-loongson.
19386 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19387 (grub_linux_boot): Set unused registers to 0.
19388 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19389 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19390 * grub-core/mmap/mips/uppermem.c: ...here.
19391 * grub-core/partmap/dvh.c: New file.
19392 * grub-core/term/arc/console.c: Likewise.
19393 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19394 (grub_terminfo_set_current): Add terminal "arc".
19395 (grub_terminfo_readkey): Support ARC sequences.
19396 * include/grub/arc/arc.h: New file.
19397 * include/grub/arc/console.h: Likewise.
19398 * include/grub/disk.h (grub_disk_dev_id): Add
19399 GRUB_DISK_DEVICE_ARCDISK_ID.
19400 * include/grub/mips/arc/kernel.h: New file.
19401 * include/grub/mips/arc/memory.h: Likewise.
19402 * include/grub/mips/arc/time.h: Likewise.
19403 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19404 * include/grub/mips/kernel.h (grub_halt): ... here.
19405 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19407 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19408 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19409 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19410 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19412 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19414 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19415 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19416 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19417 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19418 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19419 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19420 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19421 (grub_phys_addr_t): Moved from here ...
19422 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19423 (grub_vtop): Moved from here ...
19424 * include/grub/mips/memory.h (grub_vtop): ... here.
19425 (grub_map_memory): Moved from here ...
19426 * include/grub/mips/memory.h (grub_map_memory): ... here.
19427 (grub_unmap_memory): Moved from here ...
19428 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19429 (grub_machine_mmap_iterate): Moved from here ...
19430 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19431 (grub_mmap_get_lower): Moved from here ...
19432 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19433 (grub_mmap_get_upper): Moved from here ...
19434 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19435 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19437 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19438 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19440 * include/grub/mips/time.h (grub_get_rtc): ... 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_cpu_idle): Moved from
19446 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19447 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19449 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19450 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19451 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19452 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19453 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19454 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19455 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19456 (GRUB_MACHINE_LINK_ADDR): Likewise.
19457 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19459 * util/grub-install.in: Run dvhtool on ARC.
19460 * util/grub-mkimage.c (image_targets): Add mips-arc.
19461 (generate_image): Handle ECOFF output for mips-arc.
19463 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19465 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19468 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19470 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19471 after enabling port.
19473 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19475 Skip incorrect USB devices.
19477 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19479 * include/grub/usb.h (grub_usb_err_t): New enum value
19480 GRUB_USB_ERR_BADDEVICE.
19482 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19484 Fuloong video init support.
19486 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19488 (grub_vga_read_arx): New function.
19489 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19491 (framebuffer): New members io, mmioptr and mmiobase.
19492 (read_sis_cmd): New function.
19493 (write_sis_cmd): Likewise.
19494 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19495 rather than 640x400.
19496 * grub-core/video/sis315_init.c: New file.
19498 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19500 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19502 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19503 to grub_dl_register_symbol.
19505 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19507 Fix compilation errors.
19509 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19510 potentially unused.
19511 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19512 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19513 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19514 to loongson machines.
19516 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19518 Several FS mtime support.
19520 * grub-core/fs/affs.c (grub_affs_time): New struct.
19521 (grub_affs_file): New field mtime.
19522 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19523 type. Removed 'size'. New field 'di'. All users updated.
19524 (grub_affs_mount): Simplify checsum checking.
19525 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19526 (grub_affs_dir): Handle mtime.
19527 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19528 (grub_cpio_dir): Likewise.
19529 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19530 (grub_hfs_filerec): New field mtime.
19531 (grub_hfs_dir): Handle mtime.
19532 (grub_hfs_mtime): New function.
19533 (grub_hfs_fs): Register grub_hfs_mtime.
19534 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19535 (grub_iso9660_dir): New field mtime.
19536 (grub_fshelp_node): New field dirent.
19537 (iso9660_to_unixtime): New function.
19538 (iso9660_to_unixtime2): Likewise.
19539 (grub_iso9660_read_symlink): Use node->dirent.
19540 (grub_iso9660_iterate_dir): Likewise.
19541 (grub_iso9660_dir): Set mtime.
19542 (grub_iso9660_mtime): New function.
19543 (grub_iso9660_fs): Register grub_iso9660_mtime.
19544 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19545 (grub_jfs_inode): New fields atime, ctime and mtime.
19546 (grub_jfs_dir): Set mtime.
19547 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19548 * grub-core/fs/ntfs.c (list_file): Set mtime.
19549 (grub_ntfs_dir): Likewise.
19550 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19551 (grub_reiserfs_iterate_dir): Set mtime.
19552 (grub_reiserfs_dir): Likewise.
19553 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19554 (grub_fshelp_node): Likewise.
19555 (grub_sfs_iterate_dir): Set mtime.
19556 (grub_sfs_dir): Likewise.
19557 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19558 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19559 (grub_xfs_inode): New fields atime, mtime, ctime.
19560 (grub_xfs_dir): Set mtime.
19561 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19562 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19563 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19565 Support UDF symlinks.
19567 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19568 (grub_ufs_read_symlink): New function. All users updated.
19570 Check amiga partmap checksum.
19572 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19573 (grub_amiga_partition): Likewise.
19574 (amiga_partition_map_checksum): New function.
19575 (amiga_partition_map_iterate): Check checksum.
19577 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19581 * Makefile.util.def (libgrubmods.a): Add romfs.
19582 * grub-core/Makefile.core.def (romfs): New module.
19583 * grub-core/fs/romfs.c: New file.
19585 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19587 Squashfs v4 support.
19589 * Makefile.util.def (libgrubmods.a): Add squash4.
19590 * grub-core/Makefile.core.def (squash4): New module.
19591 * grub-core/fs/squash4.c: New file.
19592 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19593 disk_input_start, disk_input.
19594 (get_byte): Handle disk_input.
19595 (grub_zlib_disk_read): New function.
19596 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19598 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19599 2011-05-15 Feiran Zheng <famcool@gmail.com>
19601 * Makefile.util.def (libgrubmods.a): Add minix3.
19602 * grub-core/Makefile.core.def (minix3): New module.
19603 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19604 (GRUB_MINIX_BSIZE): Removed.
19605 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19606 (grub_minix_ino_t): New type.
19607 (grub_minix_le_to_cpu_ino): New macro.
19608 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19609 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19610 (grub_minix_data): New field block_size.
19611 (grub_minix_read_file): Handle 64-bit correctly.
19612 * grub-core/fs/minix3.c: New file.
19614 2011-05-15 Tristan Gingold <gingold@free.fr>
19615 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19616 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19620 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19621 * configure.ac: Add ia64-efi target.
19622 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19623 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19624 * gentpl.py: Add ia64_efi platform.
19625 Rename x86_efi to efi and Add ia64-efi. All users updated.
19626 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19627 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19628 Remove kern/generic/rtc_get_time_ms.c on EFI.
19629 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19630 kern/ia64/dl_helper.c on ia64-efi.
19631 Add kern/emu/cache.c on emu.
19632 (linux): Use on loader/ia64/efi/linux.c on ia64.
19633 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19634 whether symbol is a function.
19635 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19636 (grub_symbol): New field 'isfunc'.
19637 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19638 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19639 (grub_dl_load_segments): Place all sections into the same region.
19640 [__ia64__]: Create trampolines and got.
19641 [GRUB_MACHINE_EMU]: Call mprotect.
19642 (grub_dl_resolve_symbols): Resolve symbol type as well.
19643 [__ia64__]: Create function descriptors.
19644 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19645 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19646 (grub_get_rtc): New function.
19647 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19648 * grub-core/kern/emu/cache.S: Renamed to ...
19649 * grub-core/kern/emu/cache_s.S: ... this.
19650 [__ia64__]: Add a nop.
19651 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19652 [__ia64__]: New function.
19653 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19654 * grub-core/kern/ia64/dl.c: New file.
19655 * grub-core/kern/ia64/dl_helper.c: Likewise.
19656 * grub-core/kern/ia64/efi/init.c: New file.
19657 * grub-core/kern/ia64/efi/startup.S: Likewise.
19658 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19659 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19660 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19661 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19662 * grub-core/loader/ia64/efi/linux.c: New file.
19663 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19664 (GRUB_MOD_DEP): Likewise.
19665 (grub_dl) [__ia64__]: New fields got and tramp.
19666 (grub_dl): New field 'base'.
19667 (grub_dl_register_symbol): New argument isfunc. All users updated.
19668 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19669 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19670 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19671 (grub_ia64_dl_get_tramp_got_size): New proto.
19672 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19673 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19674 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19675 * include/grub/efi/api.h: Skip call wrappers on ia64.
19676 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19677 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19678 * include/grub/elf.h (ELF_ST_INFO): New definition.
19679 * include/grub/ia64/efi/kernel.h: New file.
19680 * include/grub/ia64/efi/memory.h: Likewise.
19681 * include/grub/ia64/efi/time.h: Likewise.
19682 * include/grub/ia64/kernel.h: Likewise.
19683 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19684 * include/grub/ia64/time.h: New file.
19685 * include/grub/ia64/types.h: Likewise.
19686 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19687 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19689 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19690 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19691 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19692 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19694 (EFI64_HEADER_SIZE): New definition. All users updated.
19695 (image_targets): Add ia64-efi.
19696 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19697 jumpers_addr. All users updated.
19698 Create function descriptors.
19699 (count_funcs): New function.
19700 (unaligned_uint32): New struct.
19701 (MASK20): New definition.
19702 (MASK19): Likewise.
19703 (MASKF21): Likewise.
19704 (add_value_to_slot_20b): New function.
19705 (add_value_to_slot_21_real): Likewise.
19706 (add_value_to_slot_21): Likewise.
19707 (ia64_kernel_trampoline): New struct.
19708 (nopm): New variable.
19710 (make_trampoline): New function.
19711 (relocate_addresses): Handle ia64.
19712 (make_reloc_section): Likewise.
19713 (load_image): Likewise.
19715 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19717 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19718 warning. Move variables before code while on it.
19720 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19724 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19725 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19726 * grub-core/boot/mips/loongson/fuloong.S: New file.
19727 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19728 Explicitly init CS5536.
19729 [FULOONG]: Don't use serial until CS5536 is available.
19730 Set GPIO based on dumps.
19731 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19732 [FULOONG]: Handle GPIO and memory controller differences.
19733 Parse machine type in $a2.
19734 * grub-core/boot/mips/startup_raw.S: Determine and save the
19736 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19737 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19738 init on architecture type.
19739 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19740 SIS315E. Don't init at_keyboard on fuloong.
19741 (grub_halt): Support Fuloong.
19742 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19743 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19744 (loongson_machtypes): New array.
19745 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19747 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19748 config. All users updated. Handle CS5536 serial.
19749 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19750 default port on machine type. Register serial as inactive.
19751 * grub-core/video/sis315pro.c: New file.
19752 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19754 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19755 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19756 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19757 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19758 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19759 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19761 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19762 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19764 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19765 (grub_arch_machine): New extern var.
19766 * include/grub/mips/loongson/serial.h
19767 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19768 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19769 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19770 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19771 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19772 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19773 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19774 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19775 * include/grub/term.h (grub_term_register_input_inactive): New inline
19777 (grub_term_register_output_inactive): Likewise.
19778 * include/grub/video.h (grub_video_driver_id): New value
19779 GRUB_VIDEO_DRIVER_SIS315PRO.
19780 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19781 New field "names". All users updated.
19782 New field value IMAGE_FULOONG_FLASH.
19783 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19785 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19787 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19788 and add some clarification.
19790 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19792 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19793 platforms if kernel is compressed.
19795 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19797 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19798 unused modules since currently referrence counter isn't reliable and
19799 there isn't much memory to recover there anyway.
19801 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19803 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19804 rather than resetting it to allow modules to reference themselves
19807 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19809 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19810 counter on dependencies since grub_dl_unref already handles this.
19812 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19814 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19815 on error if not already done.
19817 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19819 Fix few potential memory misusage.
19821 * grub-core/font/font.c (load_font_index): Don't free char_index to
19823 (grub_font_load): Zero-fill font at alloc for safety.
19824 Close file on error.
19825 (free_font): Free bmp_idx.
19827 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19829 * docs/grub.texi (Installation): Fix several outdated claims.
19831 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19833 Handle module_license on windows.
19835 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19837 (insert_string): Make argument const char * instead of char *.
19838 (write_section_data): Handle long section names.
19839 Handle module_license.
19841 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19843 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19844 handle class-free menuentries.
19845 (grub_normal_add_menu_entry): Add a check to be sure.
19847 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19849 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19852 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19854 * configure.ac: Bump version to 1.99.
19856 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19858 Give ATA device a bit more time on first try in order to allow disks
19861 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
19862 if dev->present is 1. Reset dev->present on failure.
19863 (grub_ata_device_initialize): Set dev->present to 1.
19864 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
19865 (grub_ata_device): New member 'present'.
19867 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19869 * util/grub-mkimage.c (generate_image): Update hash.
19871 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19873 Flush caches on DMA memory.
19875 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
19876 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
19877 (grub_dma_free): Likewise.
19878 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
19880 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19882 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
19883 to avoid asm treating ld and sd as macros.
19885 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19887 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
19890 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19892 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
19893 grub_decompress_core since later would fail if grub_decompress_core
19896 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19898 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
19899 R_MIPS_JALR since it's used by newer compiler.
19901 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
19903 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
19905 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19907 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
19908 file_path to 0 for surety.
19909 (grub_chainloader_boot): Set exit_data to NULL.
19910 Unset the loader once done.
19911 (grub_cmd_chainloader): Fix confusing error message if file is empty.
19913 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19915 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
19916 unknown key into a dprintf.
19918 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19920 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
19921 on first non-existant partition.
19923 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19925 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
19927 Reported by: Mark Korenberg.
19929 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19931 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
19934 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
19936 * util/grub-mkimage.c (main): Explicitely flush and sync the output
19937 before closing to ensure that it will be readable by grub-setup.
19939 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19941 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
19942 (devpath_1): Use MAKE_PIWG_PATH.
19943 (devpath_2): Likewise.
19944 (devpath_3): Likewise.
19945 (devpath_4): Likewise.
19946 (devpath_5): Likewise.
19947 (devpath_6): Likewise.
19949 The appleldr.mod was checked that to be binary identical to previous
19952 2011-05-05 Zach <mikezackles>
19954 Support 2010 Macbooks.
19956 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
19957 (devs): Add devpath_6.
19959 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19961 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
19962 /dev/random. /dev/urandom is good enough for our purposes (salting).
19964 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19966 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
19968 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19970 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
19973 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
19975 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
19976 and not 0 on failure.
19978 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19980 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
19981 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
19982 disk; otherwise grub_fs_probe will not fall back to the next
19984 (grub_pxefs_open): Likewise, for consistency.
19985 Reported and tested by: Ezekiel Grave.
19987 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
19989 * tests/partmap_test.in: Don't hardcode path to parted.
19990 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
19992 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
19994 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
19995 of `ls' to find out which devices are available.
19997 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
19999 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20000 than source address for efi mmap buffer.
20002 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20004 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20005 wrong action on non-detecting the magic.
20007 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20009 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20010 already supplied by another part of the module (fixes compilation on
20013 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20015 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20016 match the one used by mdadm.
20018 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20020 * po/README: Add instructions for creating po/LINGUAS.
20022 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20024 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20027 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20028 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20029 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20030 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20031 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20032 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20033 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20034 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20035 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20036 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20037 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20038 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20039 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20040 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20041 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20042 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20043 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20044 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20045 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20046 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20047 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20048 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20050 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20052 * grub-core/kern/emu/getroot.c
20053 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20054 test that was incorrectly reintroduced in r3214.
20055 Reported by: Ian Dall. Fixes Savannah bug #33133.
20057 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20059 Fix stack pointer handling in 16-bit relocator.
20061 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20062 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20063 Fixes Ubuntu bug #683904.
20065 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20067 * configure.ac: Bump version to 1.99~rc2.
20069 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20071 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20072 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20073 * grub-core/lib/x86_64/setjmp.S: Likewise.
20074 * grub-core/lib/mips/setjmp.S: Likewise.
20075 * grub-core/lib/powerpc/setjmp.S: Likewise.
20076 * grub-core/lib/sparc64/setjmp.S: Likewise.
20078 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20080 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20081 * grub-core/lib/efi/datetime.c: Likewise.
20083 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20085 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20087 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20088 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20089 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20091 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20093 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20095 (grub_gfxterm_term_init): Likewise.
20097 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20099 Take into account the decorations the computing menu entry width.
20101 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20102 (grub_gfxmenu_create_box): Register get_border_width.
20103 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20105 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20108 2011-04-18 Endres Puschner <code@e7p.de>
20110 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20111 Don't skip first class.
20113 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20115 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20117 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20119 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20121 Complete 64-bit division support.
20123 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20124 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20125 * include/grub/misc.h (grub_divmod64): Rename to ...
20126 (grub_divmod64_full): ... this.
20127 (grub_divmod64): New inline function.
20129 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20131 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20133 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20135 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20136 performing the necessary test.
20138 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20140 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20141 (kfreebsd.elf): Likewise.
20142 (pc-chainloader.elf): Likewise.
20143 (ntldr.elf): Likewise.
20145 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20147 Identify RAID by its UUID rather than (guessed) name.
20149 * grub-core/disk/raid.c (ascii2hex): New function.
20150 (grub_raid_open): Accept mduuid/%s specification.
20151 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20152 (get_mdadm_uuid): ... this.
20153 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20155 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20157 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20160 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20162 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20164 * util/grub.d/20_linux_xen.in: Likewise.
20166 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20168 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20169 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20171 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20172 Build a list of relevant visible mounts using the mnt_id and
20173 parent_mnt_id fields, and then scan that list at the end.
20175 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20177 * docs/grub.texi (normal): New section.
20178 (normal_exit): New section.
20179 (Embedded configuration): Add reference to normal.
20180 (GRUB only offers a rescue shell): Likewise.
20181 * docs/grub-dev.texi (Error Handling): Fix typo.
20183 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20185 * NEWS: Drop obsolete entry about probe-only btrfs support.
20187 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20189 * util/import_gcry.py: Fix typo.
20191 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20193 * NEWS: Add btrfs support.
20195 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20196 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20198 BtrFS support. Written by me (Vladimir) with important bugfixes and
20199 even more important testing by Colin.
20201 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20202 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20203 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20204 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20205 mem_input_off and mem_input. All users updated to accept in-RAM input.
20206 (gzio_seek): New function.
20207 (test_zlib_header): Likewise.
20208 (grub_gzio_read): Likewise.
20209 (grub_zlib_decompress): Likewise.
20210 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20211 Accept partial and non-virtual mounts.
20212 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20213 avoid receiving /dev/dm-X as device.
20214 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20215 Handle bind and partial mounts.
20216 * grub-core/lib/crc.c: New file.
20217 * include/grub/deflate.h: Likewise.
20218 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20220 * include/grub/lib/crc.h: New file.
20222 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20224 Implement automatic module license checking according to new GNU
20227 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20228 (grub_dl_load_core): Use grub_dl_check_license.
20229 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20230 (GRUB_MOD_LICENSE): Likewise.
20231 (GRUB_MOD_DUAL_LICENSE): Likewise.
20232 All modules updated.
20234 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20236 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20237 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20239 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20241 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20243 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20245 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20247 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20250 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20252 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20253 parenthesis in the middle of the filename.
20255 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20257 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20258 rather than trying to put initrd way too high.
20259 Reported by: Ryan Lortie <desrt@desrt.ca>
20261 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20263 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20264 improperly removed string.
20266 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20268 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20270 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20271 (open_device) Likewise.
20272 (grub_util_biosdisk_close): Likewise.
20273 Reported by: Mark Korenberg.
20275 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20277 * util/grub-mkconfig_lib.in: Add missing quotes.
20279 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20281 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20284 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20286 Dynamically count the number of lines for the lower banner.
20288 * grub-core/normal/menu_entry.c (per_term_screen): New member
20290 (print_down): Use num_entries.
20291 (update_screen): Likewise.
20292 (grub_menu_entry_run): Set num_entries.
20293 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20295 (grub_print_message_indented): Move real part to ...
20296 (grub_print_message_indented_real): ... here. Additional argument
20298 (draw_border): Additional argument num_entries.
20299 (print_message): Additional argument dry_run.
20300 (print_entries): Receive menu viewer data.
20301 (grub_menu_init_page): New argment num_entries.
20302 (menu_text_set_chosen_entry): Use num_entries.
20303 (grub_menu_try_text): Likewise.
20304 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20306 (grub_ucs4_count_lines): New function.
20307 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20308 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20309 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20310 (grub_term_border_height): Likewise.
20311 (grub_term_num_entries): Likewise.
20313 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20315 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20316 Remove now unused string.
20318 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20320 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20322 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20324 (Comment): Fix typo.
20325 (Getting started): General copy-editing.
20326 (Typical Development Experience): Likewise.
20327 (Error Handling): Likewise.
20328 (Video API): Likewise.
20330 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20332 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20335 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20337 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20340 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20342 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20343 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20346 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20348 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20349 grub_strcpy since the lines aren't necessarily 0-terminated.
20351 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20353 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20356 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20358 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20359 (GRUB_MOD_INIT): DEVICE isn't optional.
20361 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20363 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20364 word on new line if it's too long anyway. Fixes a hang.
20366 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20368 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20370 * util/grub-setup.c (main): Reuse md device name if available.
20371 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20372 not GRUB name as argument.
20373 Based on patch by: Florian Wagner <fwagner>.
20375 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20377 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20378 Place mbi on low memory for better compatibility.
20380 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20382 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20384 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20385 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20387 * autogen.sh: Ensure that collate and ctype locale is C.
20388 * conf/Makefile.common: Likewise.
20390 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20392 * grub-core/normal/menu.c: Add missing include.
20394 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20396 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20398 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20400 * util/grub-mkconfig.in: Ignore emacsen backup.
20402 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20404 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20406 (grub_util_biosdisk_close): Likewise.
20408 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20410 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20411 const attribute and use grub_isdigit.
20413 2011-04-06 Andrey <dev_null@ukr.net>
20415 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20418 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20420 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20421 useful grub_dprintf's.
20423 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20425 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20427 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20429 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20431 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20433 Output errors if theme loading failed.
20435 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20436 grub_gfxterm_fullscreen on error paths to ...
20437 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20438 theme loading error.
20440 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20442 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20443 space for older compilers.
20444 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20446 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20448 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20449 and report them as not RAID members since they are useless for GRUB.
20450 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20452 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20454 Increase LVM implementation robustness in order not to crash on
20455 configurations like pvmove. Previously code assumed that in some places
20456 only lvs or only pvs are used whereas it seems that they are used
20459 * grub-core/disk/lvm.c (read_node): New function.
20460 (read_lv): Use read_node.
20461 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20462 Match volumes only at the end when all lvs are found. Take both
20463 pvs (first) and lvs (second) into account.
20464 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20465 mirror_* into node_*. All users updated.
20466 (grub_lvm_stripe): Merge this ...
20467 (grub_lvm_mirror): ... and this ...
20468 (grub_lvm_node): ... into this. All users updated.
20470 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20472 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20473 of function to allow further scanning for LVMs.
20475 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20477 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20478 on failed seek as it breaks open fd reusage.
20480 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20482 * util/grub-install.in: Add a recommendation to use --recheck before
20485 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20487 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20490 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20492 GRUB developper manual based on existing Internals section and
20493 contributions by the various authors with active copyright assignment.
20495 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20496 * docs/font_char_metrics.png: New file.
20497 * docs/font_char_metrics.txt: Likewise.
20498 * docs/grub-dev.texi: Likewise.
20499 * docs/grub.texi (Internals): Move from here ...
20500 * docs/grub-dev.texi: ... here.
20502 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20504 Store the loopback device as data on loopback grub_disk structures,
20505 rather than the file it points to. This fixes use of freed memory
20506 if an existing loopback device is replaced.
20508 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20509 disk->data, not dev->file.
20510 (grub_loopback_read): Adjust file assignment to match.
20511 Fixes Ubuntu bug #742967.
20513 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20515 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20516 when replacing an existing device.
20518 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20520 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20521 memory corruptions.
20523 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20525 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20526 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20527 (grub_jfs_read_inode): Likewise.
20528 (grub_jfs_opendir): Likewise. Remove now useless casts.
20529 (grub_jfs_getent): Likewise.
20530 Make ino a grub_uint32_t rather than int.
20531 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20532 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20533 division and module with bit operations.
20534 (grub_jfs_find_file): Make ino a grub_uint32_t.
20535 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20537 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20539 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20540 warning. (This was in fact always initialised before use, but GCC
20541 wasn't smart enough to prove that.)
20542 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20544 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20546 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20548 (efi_wrap_1): Likewise.
20549 (efi_wrap_2): Likewise.
20550 (efi_wrap_3): Likewise.
20551 (efi_wrap_4): Likewise.
20552 (efi_wrap_5): Likewise.
20553 (efi_wrap_6): Likewise.
20554 (efi_wrap_10): Likewise.
20555 Based on information by: Red Hat/Peter Jones.
20557 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20559 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20560 set-but-not-used variable.
20562 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20564 * docs/grub.texi (Simple configuration): Be more explicit about
20565 GRUB_DEFAULT, and add an example.
20566 Reported by: Leslie Rhorer.
20568 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20570 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20573 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20575 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20576 * util/grub.d/20_linux_xen.in: Likewise.
20578 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20580 * util/grub.d/10_linux.in: Try alternative config filenames where
20581 we parse config file.
20582 * util/grub.d/20_linux_xen.in: Likewise.
20584 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20586 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20587 * util/grub.d/20_linux_xen.in: Likewise.
20589 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20591 * grub-core/disk/raid.c (insert_array): Add few potentially
20592 useful grub_util_info.
20593 (grub_raid_register): Likewise.
20595 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20597 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20598 Preserve partition number in mdadm code path.
20600 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20602 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20603 few potentially useful grub_util_info.
20605 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20607 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20609 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20611 * docs/grub.texi (default): Use @example rather than nested
20612 itemized lists to avoid breaking gendocs.
20614 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20616 * docs/grub.texi (Future): Update.
20618 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20620 * docs/grub.texi (Environment): New chapter.
20621 (Changes from GRUB Legacy): Link to "Environment block" section for
20622 details of limitations.
20623 (Simple configuration): Likewise. Link to documentation of gfxmode
20624 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20626 (Shell-like scripting): Note that normal variables are stored in the
20628 (gettext): Link to documentation of lang and locale_dir.
20629 (list_env): New section.
20630 (load_env): New section.
20631 (save_env): New section.
20633 (Reporting bugs): Fix typo.
20635 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20637 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20640 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20642 * grub-core/term/at_keyboard.c (set_scancodes)
20643 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20645 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20647 * docs/grub.texi (Menu-specific commands): Remove some semantics
20648 that were true in GRUB Legacy but not in GRUB 2.
20649 (submenu): New section.
20650 (false): New section.
20651 (read): New section.
20652 (true): New section.
20654 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20656 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20658 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20660 * docs/grub.texi (Simple configuration): Explain some of the
20661 current limitations of grub-mkconfig.
20662 Reported by: Leslie Rhorer.
20664 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20666 Old macs search for boot.efi rather than for bootia32.efi.
20668 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20669 * util/grub-mkrescue.in: Likewise.
20670 Suggested by: Peter Jones.
20672 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20674 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20676 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20678 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20679 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20680 (grub_lvm_mirror): New struct.
20681 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20682 (grub_lvm_iterate): Iterate only visible volumes.
20683 (grub_lvm_read): Factor out to ..
20684 (read_lv): ... this. Support mirrors.
20685 (grub_lvm_read): New wrapper function.
20686 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20687 stripped or mirrored.
20689 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20691 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20693 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20695 * docs/grub.texi (loopback): New section.
20697 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20699 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20702 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20704 * docs/grub.texi (BIOS installation): New section, partly based on
20705 previous text in other sections.
20706 (Installing GRUB using grub-install): Replace BIOS discussion with a
20708 (Images): Likewise.
20710 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20712 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20713 [HAVE_DIOCGDINFO]: Add safety checks.
20715 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20717 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20718 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20720 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20722 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20723 real_sb->size is zero (e.g. RAID-0), get the disk size from
20724 real_sb->data_size instead.
20725 Fixes Ubuntu bug #743136.
20727 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20729 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20730 printf clauses for printing size and start.
20732 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20734 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20735 Reported and tested by: Timothy Nikkel.
20737 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20739 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20740 (dirty_region_add_real): ... this.
20741 (dirty_region_add): Don't discard margin refresh when performing
20744 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20746 * grub-core/lib/relocator.c (allocate_regstart)
20747 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20748 terminals are capabple of malloc-free operation.
20749 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20750 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20752 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20754 * util/grub-setup.c: Copy the partition table zone if floppy support
20755 is disabled, even if no partition table is found.
20757 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20758 during POST if an invalid partition table is contained in the PBR
20759 of the active partition when GRUB is installed to a partition.
20761 2011-03-28 Colin Watson <cjwatson@debian.org>
20763 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20766 2011-03-28 Colin Watson <cjwatson@debian.org>
20768 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20769 to be specific about what kind of RAID device we're scanning for.
20771 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20773 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20774 return freed string.
20776 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20778 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20780 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20782 Use libgeom on FreeBSD to detect partitions.
20784 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20785 (grub-mkrelpath): Likewise.
20786 (grub-script-check): Likewise.
20787 (grub-editenv): Likewise.
20788 (grub-mkpasswd-pbkdf2): Likewise.
20789 (grub-fstest): Likewise.
20790 (grub-mkfont): Likewise.
20791 (grub-mkdevicemap): Likewise.
20792 (grub-probe): Likewise.
20793 (grub-setup): Likewise.
20794 (grub-ofpathname): Likewise.
20795 (grub-mklayout): Likewise.
20796 (example_unit_test): Likewise.
20797 (grub-menulst2cfg): Likewise.
20798 * grub-core/Makefile.core.def (grub-emu): Likewise.
20799 (grub-emu-lite): Likewise.
20800 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20801 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20802 define HAVE_DIOCGDINFO.
20803 (follow_geom_up) [FreeBSD]: New function.
20804 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20805 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20806 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20807 unconditionally of HAVE_DIOCGDINFO.
20809 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20811 Fix FreeBSD compilation problem.
20813 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20814 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20816 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20818 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20819 Switch back to page zero before loading a kernel, since some kernel
20820 drivers expect that.
20821 Thanks to: Felix Kuehling.
20823 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20825 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20826 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20827 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20829 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20831 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20832 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20834 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20836 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20837 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20838 malloc is disabled.
20840 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20842 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20843 for modules headers when counting the needed allocation size.
20845 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20847 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20848 if no ASCII character is found to prevent crash.
20850 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20852 * grub-core/video/bitmap.c (match_extension): Ignore case.
20854 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20856 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
20858 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20860 * grub-core/script/parser.y: Declare "time" as valid argument.
20862 2011-03-23 Peter Jones <pjones@redhat.com>
20864 Fix incorrect assert failure reporting.
20866 * grub-core/tests/example_functional_test.c (example_test): Add
20868 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
20869 (failure_start): ...this. Check that malloc succeeded.
20870 Don't call xvasprintf. Return failure struct.
20871 (failure_append_vtext): New function.
20872 (failure_append_text): Likewise.
20873 (add_failure): Likewise.
20874 (grub_test_assert_helper): Likewise.
20875 * include/grub/test.h (grub_test_assert_helper): New declaration.
20876 (grub_test_assert): Macro rewritten.
20878 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20880 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
20882 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20884 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
20886 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20888 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
20889 into GRUB-style one.
20891 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20893 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
20894 error and not grub_errno.
20895 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
20897 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20899 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
20900 GRUB_USB_SPEED_NONE in case of failure and not the error code.
20902 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20904 * grub-core/efiemu/i386/pc/cfgtables.c
20905 (grub_machine_efiemu_init_tables): Make declaration a prototype.
20906 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
20907 (grub_xnu_unlock): Likewise.
20908 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
20910 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20912 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
20913 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
20914 * grub-core/commands/hashsum.c (aliases): Likewise.
20915 * grub-core/commands/setpci.c (pci_registers): Likewise.
20916 * grub-core/disk/usbms.c (attach_hook): Likewise.
20917 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
20918 (zio_checksum_table): Likewise.
20919 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
20920 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
20921 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
20922 * grub-core/lib/relocator.c (leftovers): Likewise.
20923 (extra_blocks): Likewise.
20924 * grub-core/loader/i386/bsd.c (relocator): Likewise.
20925 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
20926 (modules_last): Likewise.
20927 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
20928 (devices): Likewise.
20929 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
20930 (modules_last): Likewise.
20931 * grub-core/normal/auth.c (users): Likewise.
20932 * grub-core/normal/context.c (initial_menu): Likewise.
20933 (current_menu): Likewise.
20934 * grub-core/normal/crypto.c (crypto_specs): Likewise.
20935 * grub-core/term/serial.c (grub_serial_ports): Likewise.
20936 (grub_serial_terminfo_input_template): Likewise.
20937 (grub_serial_terminfo_output_template): Likewise.
20938 (grub_serial_terminfo_input): Likewise.
20939 (grub_serial_terminfo_output): Likewise.
20940 (registered): Likewise.
20941 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
20943 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20945 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
20946 grub_video_mode_type_t.
20947 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
20948 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
20949 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
20951 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20953 * util/grub-install.in: Correct the x86-64 name as x86_64.
20955 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
20957 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
20958 initial chunk read from the kernel always includes GRUB's multiboot
20959 header, which is now outside the first sector.
20961 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20963 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
20964 cached mmap_size, so that this works correctly when called multiple
20966 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
20968 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
20970 * docs/grub.texi (Simple configuration): Tidy up formatting.
20972 2011-03-07 Szymon Janc <szymon@janc.net.pl>
20974 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
20975 Set-but-not-used variable removed.
20977 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20979 Workaround yet another IEEE1275 bug.
20981 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
20982 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
20983 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
20984 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
20986 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20987 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
20989 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
20991 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
20994 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
20996 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
20997 empty, since in that case we can only generate either nothing or a
20998 syntactically invalid configuration file.
20999 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21001 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21003 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21004 (Making a GRUB bootable CD-ROM): Likewise.
21005 (Invoking grub-mkrescue): New section.
21006 Reported by: Yann Dirson. Fixes Debian bug #612585.
21008 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21010 * util/grub-install.in: Remove unnecessary brackets from tr
21012 * util/grub.d/10_hurd.in: Likewise.
21013 * util/grub.d/10_kfreebsd.in: Likewise.
21014 * util/grub.d/10_linux.in: Likewise.
21015 * util/grub.d/20_linux_xen.in: Likewise.
21016 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21018 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21020 * include/grub/file.h (not_easly_seekable): Rename to ...
21021 (not_easily_seekable): ... this. Update all users.
21023 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21025 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21028 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21030 * util/grub-mkimage.c (generate_image): Refuse to create the images
21031 bigger than the actual flash (512K) in Loongson machines. 512K is also
21032 the biggest chip supported by them.
21034 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21036 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21038 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21040 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21041 super_offset field.
21043 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21045 * util/grub-install.in: Ignore install device on platforms
21046 where it doesn't make sense. Always use UUIDs except on pc, efi and
21048 Reported by: Daniel Kahn Gillmor.
21050 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21052 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21054 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21056 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21057 (iterate_real): Don't rely on partition being non-NULL.
21059 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21061 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21062 supported platforms. Put a compile time assert for this rather than
21063 generate a warning with 32-bit shift.
21065 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21067 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21068 logical expression more readable.
21070 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21072 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21073 even if some elements have a name.
21074 Reported by: Alexander GQ Gerasiov.
21076 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21078 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21079 path unreadable if `grub-probe -t abstraction' fails, for example if
21080 memberlist fails on an LVM volume group.
21081 Reported by: Darius Jahandarie.
21083 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21085 * docs/grub.texi (Simple configuration): Document
21086 GRUB_PRELOAD_MODULES.
21088 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21090 * .bzrignore: Remove nonexistent grub-pbkdf2.
21092 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21094 * configure.ac: Bump version to 1.99~rc1.
21096 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21098 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21101 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21103 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21106 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21108 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21110 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21112 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21115 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21117 Fix compilation on cygwin.
21119 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21120 -R .drectve on cygwin.
21121 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21122 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21123 (COND_CYGWIN): New condition.
21124 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21125 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21126 not @TARGET_OBJ2ELF@.
21127 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21128 type to determine whether aux is to be used.
21130 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21132 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21133 realpath'ed device string.
21134 Handle floppy (somewhat).
21135 Issue error in unknown case rather than garbage.
21136 Reported by: Axel Beckert.
21138 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21140 * util/grub.d/00_header.in (load_video): Handle the case when no video
21142 Thanks to: Axel Beckert.
21144 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21146 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21147 variable. Fixes problem on big endian platforms.
21149 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21151 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21152 It doesn't work well there.
21154 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21156 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21158 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21159 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21162 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21164 Use alias->path rather than buggy "canon".
21166 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21167 (ofdisk_hash_add): New argument curcan. All users updated.
21169 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21171 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21173 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21175 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21176 loadmask before doing any calculations. Use correct type for offset.
21177 (grub_linux_load64): Likewise.
21179 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21181 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21183 (console_grub_equivalences_unshift): Likewise.
21184 Reported by: Daniel Dehennin.
21186 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21188 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21189 (set_env_limn_ro): Likewise.
21190 (GRUB_MOD_INIT): Likewise.
21191 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21192 ARRAY_SIZE while on it.
21193 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21194 * grub-core/normal/context.c (grub_env_export): Move from here ...
21195 * grub-core/kern/env.c (grub_env_export): ... here.
21196 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21198 * grub-core/kern/main.c (grub_main): Export root and prefix.
21199 * include/grub/env.h (grub_env_export): Export.
21200 Reported by: Seth Goldberg.
21202 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21204 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21205 Take into account space used by ELF sections and multiboot palette.
21206 Reported by: Grégoire Sutre.
21208 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21212 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21214 Pass more appropriate video id to Linux.
21216 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21217 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21219 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21220 shift params->lfb_size.
21221 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21223 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21225 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21227 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21229 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21230 separator and pass bootpath/devid even if only one of them is available.
21231 Reported by: Seth Goldberg.
21233 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21235 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21236 implementations bug on them.
21238 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21240 (filter_memory_map): Likewise.
21242 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21244 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21245 Reported by: nebuchadnezzar.
21247 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21249 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21250 Reported by: nebuchadnezzar.
21252 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21254 Submenu default support.
21256 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21257 auto_boot. All users updated.
21259 Handle chosen and default with submenus.
21260 (grub_menu_execute_with_fallback): Declared static.
21261 Don't notify failure if autobooted. Upper level does it.
21262 (menuentry_eq): New function.
21263 (get_entry_number): Use menuentry_eq.
21264 (show_menu): New parameter "autobooted". All users updated.
21265 (grub_show_menu): Likewise.
21266 * include/grub/normal.h (grub_show_menu): Likewise.
21267 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21268 (grub_menu_execute_with_fallback): Likewise.
21270 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21272 * util/grub-mklayout.c (usage): Update help text.
21274 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21276 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21278 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21280 * util/grub-menulst2cfg.c (main): Trim the line.
21282 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21284 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21285 (grub_machine_init): Don't check amount of low memory as reportedly
21286 INT 12h can be broken and if low memory is too low we wouldn't have
21287 gotten into grub_machine_init anyway.
21289 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21291 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21292 (grub_machine_mmap_iterate): Take low memory into account
21294 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21296 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21298 Reported by: TiCPU.
21300 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21302 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21305 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21307 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21308 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21310 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21312 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21313 openbsd and netbsd types being in part_bsd module.
21315 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21317 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21318 (_FILE_OFFSET_BITS): Likewise.
21319 Reported by: Seth Goldberg.
21321 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21323 * configure.ac: Check for libdevmapper header.
21325 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21327 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21329 (fzap_lookup): Likewise.
21330 (dnode_get): Likewise.
21331 (make_mdn): Likewise.
21332 (zfs_mount): Likewise.
21333 (fzap_iterate): Use temporary pointer to avoid aliasing.
21334 (grub_zfs_read): Likewise.
21335 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21336 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21337 pointers to avoid aliasing.
21338 (grub_cmd_xnu_kernel64): Likewise.
21339 (grub_xnu_load_driver): Likewise.
21341 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21343 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21345 (grub_cmd_terminal_output): Likewise.
21346 Reported and tested by: Grégoire Sutre.
21348 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21350 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21352 Reported and tested by: Grégoire Sutre.
21354 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21356 * configure.ac: Do CPU substitution even if it's specified explicitly.
21357 Reported and tested by: Alain Greppin.
21359 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21361 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21362 Reported and tested by: Alain Greppin.
21364 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21366 Satisfy some bison versions need for inttypes.h.
21368 * grub-core/lib/posix_wrap/inttypes.h: New file.
21369 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21370 (int16_t): Likewise.
21371 (int32_t): Likewise.
21372 (int64_t): Likewise.
21373 Reported and tested by: Alain Greppin.
21375 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21377 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21378 Silence spurious warning.
21379 Reported and tested by: Alain Greppin.
21381 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21383 * docs/grub.texi (Support automatic decompression): Update with xz
21384 decompression support.
21386 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21388 Improve loaders' kernel command line handling.
21390 * grub-core/lib/cmdline.c: New file.
21391 * include/grub/lib/cmdline.h: Likewise.
21392 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21393 grub_create_loader_cmdline to create kernel command line.
21394 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21395 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21396 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21397 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21398 (linux): Add lib/cmdline.c on common.
21400 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21402 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21403 inopos might be unaligned.
21405 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21407 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21408 endian transformations.
21409 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21410 Based on report by: Doug Nazar.
21412 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21414 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21415 array->members[i].start_sector.
21416 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21418 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21420 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21421 Reported and tested by: Grégoire Sutre.
21423 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21425 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21426 avoid causing test failures by clearing the screen.
21428 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21430 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21431 Fix prefix check to handle the case where dir ends with a slash
21432 (most significantly, "/" itself).
21433 Reported by: Michael Vogt.
21435 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21437 Run terminfo_cls on initing terminfo output to clear the screen and
21438 move the cursor to (0,0).
21440 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21441 Call grub_terminfo_output_init.
21442 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21443 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21444 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21446 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21448 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21451 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21453 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21456 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21458 The E820 type 5 is BADRAM, not EXEC_CODE.
21460 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21461 (GRUB_E820_BADRAM): New define.
21462 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21463 into reserved. Propagate BADRAM.
21464 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21465 (GRUB_E820_BADRAM): New define.
21467 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21469 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21470 Ignore the memory post-4G.
21471 (grub_relocator_firmware_alloc_region): Additional debug statement.
21473 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21475 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21477 Reported by: David Pravec.
21479 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21481 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21484 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21486 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21488 (grub_reed_solomon_recover): Likewise.
21490 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21492 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21494 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21496 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21499 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21501 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21502 descriptions of extract_legacy_entries_source and
21503 extract_legacy_entries_configfile.
21504 Reported by: Seung Soo, Ha.
21506 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21508 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21509 on devices that do not implement function 0.
21511 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21513 * grub-core/fs/hfsplus.c: Make parent unsigned.
21514 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21516 (grub_hfsplus_cmp_extkey): Likewise
21518 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21520 * util/grub-install.in: Correctly use bootloader_id and not
21521 GRUB_DISTRIBUTOR on efibootmgr line.
21523 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21525 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21527 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21529 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21530 Xen and reorder menu item wording to make it clearer that this entry
21531 will launch Xen. Print separate messages when loading Xen and
21534 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21536 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21537 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21538 loop in case of incorrect amiga partmap.
21540 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21542 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21543 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21546 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21548 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21550 Reported by: crocket
21552 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21554 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21556 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21558 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21560 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21562 (grub_cmd_xnu_kextdir): Likewise.
21563 (grub_cmd_xnu_splash): Likewise.
21565 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21567 Avoid using Reed-Solomon with 0 redundancy.
21569 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21570 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21572 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21573 (grub_reed_solomon_recover): Likewise.
21575 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21577 Don't use disk subsystem in freebsd_boot.
21579 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21580 (freebsd_biosdev): Likewise.
21581 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21582 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21584 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21586 Handling of files of unknown size is currently limited. They can't be
21587 used e.g. for initrd or modules. Moreover gzip handling of not
21588 easily seekable files is buggy. Disable unknown file size for now. May
21589 be inefficient but works.
21591 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21592 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21594 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21596 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21599 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21601 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21603 2010-12-25 Shea Levy <shlevy>
21605 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21607 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21609 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21610 Windows Server 2008.
21611 Reported by: Devin Giddings.
21613 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21615 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21616 writing an error message because of async power management.
21617 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21618 (grub_reboot): Likewise.
21620 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21622 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21623 keep unit tests from failing when they shouldn't.
21625 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21627 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21628 previous patch increased the size of the RS code by 20 bytes (at
21629 least with gcc-4.4), so increase this by 20 bytes to match.
21630 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21632 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21634 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21635 scratch area. Make sure to initialise chosen in standalone mode as
21636 well as non-standalone.
21637 Reported by: Robert Hooker and Andy Whitcroft.
21638 Tested by: Andy Whitcroft.
21640 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21642 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21643 constructing a new unescaped string and passing it to grub_xputs in
21644 one go, rather than passing characters to grub_printf one at a time.
21646 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21648 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21649 initialising utf16.
21651 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21653 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21654 comment. Add an extra layer of quotation, requiring the output of
21655 this function to be used in a printf format string.
21656 (gettext_printf): New function.
21657 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21658 Extract translatable strings from here-documents and use a temporary
21659 variable instead, so that xgettext can find them.
21660 * util/grub.d/10_kfreebsd.in: Likewise.
21661 * util/grub.d/10_linux.in: Likewise.
21662 * util/grub.d/20_linux_xen.in: Likewise.
21664 * po/grub.d.sed: New file.
21665 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21666 arguments. Set c-format flags on all strings extracted from
21667 util/grub.d/ (xgettext refuses to include these itself for strings
21668 it extracted from a shell file, but these really are c-format).
21670 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21672 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21673 Avoid next pointing to nowhere.
21675 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21677 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21678 rather than assuming than rootblock is exactly in the middle.
21679 (grub_affs_label): Likewise.
21681 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21683 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21684 reserved_first_sector to 0.
21685 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21686 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21687 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21689 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21691 Fix handling of UTF-16 UDF labels.
21693 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21694 (read_string): .. here.
21695 (grub_udf_label): Use read_string.
21697 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21699 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21700 editor under argument scope.
21701 Reported by: Jordan Uggla
21703 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21705 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21707 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21709 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21710 line, and other keys scroll an entire page (previous handling was
21711 for \r and \n to scroll a page and other keys to scroll two lines).
21713 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21715 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21716 Set ptrdest to correct get_physical_target_address rather than
21717 incorrect get_virtual_current_address.
21719 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21721 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21722 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21724 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21726 * .bzrignore: Ignore grub-core/rs_decoder.S.
21728 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21730 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21731 .mo/.mo.gz opening sequence to ...
21732 (grub_mofile_open_lang): ... here.
21733 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21734 * util/grub.d/00_header.in (grub_lang): Include country part of
21736 Reported by: Mario Limonciello.
21738 2010-12-09 Robert Millan <rmh@gnu.org>
21740 * NEWS: Document addition of ZFS support.
21742 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21744 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21745 rather than `/ 2', as the latter requires -Wa,--divide which would
21746 require bumping our minimum binutils version.
21748 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21750 * util/grub-script-check.c (main): Print script line number on
21753 2010-12-01 Robert Millan <rmh@gnu.org>
21755 * grub-core/fs/zfs/zfs.c: New file.
21756 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21757 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21758 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21759 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21761 * include/grub/zfs/dmu.h: Likewise.
21762 * include/grub/zfs/dmu_objset.h: Likewise.
21763 * include/grub/zfs/dnode.h: Likewise.
21764 * include/grub/zfs/dsl_dataset.h: Likewise.
21765 * include/grub/zfs/dsl_dir.h: Likewise.
21766 * include/grub/zfs/sa_impl.h: Likewise.
21767 * include/grub/zfs/spa.h: Likewise.
21768 * include/grub/zfs/uberblock_impl.h: Likewise.
21769 * include/grub/zfs/vdev_impl.h: Likewise.
21770 * include/grub/zfs/zap_impl.h: Likewise.
21771 * include/grub/zfs/zap_leaf.h: Likewise.
21772 * include/grub/zfs/zfs.h: Likewise.
21773 * include/grub/zfs/zfs_acl.h: Likewise.
21774 * include/grub/zfs/zfs_znode.h: Likewise.
21775 * include/grub/zfs/zil.h: Likewise.
21776 * include/grub/zfs/zio.h: Likewise.
21777 * include/grub/zfs/zio_checksum.h: Likewise.
21779 * Makefile.util.def: Build ZFS into libgrubmods.
21780 * grub-core/Makefile.core.def: Build zfs.mod.
21782 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21784 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21786 * grub-core/commands/wildcard.c (match_files): Likewise.
21788 2010-11-30 Robert Millan <rmh@gnu.org>
21790 * grub-core/loader/i386/bsd.c
21791 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21792 whether kernel is loaded using grub_loader_is_loaded(), rather
21793 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21794 certain error conditions.
21796 2010-11-30 Robert Millan <rmh@gnu.org>
21798 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21799 (grub_cmd_echo): Call grub_refresh() after printing a message.
21801 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21803 Avoid using tricks for initialising endian variables.
21805 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21807 (GRUB_MOD_INIT): Don't byte-swap.
21808 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21809 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21810 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21811 (grub_swap_bytes32_compile_time): Likewise.
21812 (grub_cpu_to_le32_compile_time): Likewise.
21813 (grub_cpu_to_le16_compile_time): Likewise.
21815 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21817 * util/grub-setup.c (setup): Stop recommending --force. People who
21818 understand the dangers of blocklists are able to find this option
21819 anyway and the ones who don't shouldn't use it anyway.
21821 2010-11-26 Robert Millan <rmh@gnu.org>
21823 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21826 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21828 Fix LVM-on-RAID probing.
21830 * util/grub-probe.c (probe): Remember which disk was detected as
21831 RAID (perhaps an LVM physical volume). Use that disk's raidname
21832 rather than that of the top-level disk.
21834 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21836 Fix cmdline argument quotes for setparams command of menuentry
21839 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21840 quotes for arguments.
21841 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
21842 grub_strchrsub function instead.
21844 * include/grub/misc.h (grub_strchrsub): New function.
21846 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21848 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21849 effort by skipping "." and ".." entries up-front.
21850 Suggested by: Michael Lazarev.
21852 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21854 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21855 ldflags to ldadd, to fix link line ordering.
21856 (none_decompress): Likewise.
21858 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21860 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
21862 (grub-emu-lite): Remove kern/emu/cache.S.
21864 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21866 * util/deviceiter.c (compare_devices): If the by-id link for a
21867 device couldn't be resolved, fall back to sorting by the by-id link
21868 rather than segfaulting.
21869 Reported and tested by: Daniel Mierswa.
21871 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21873 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
21874 ldflags, to fix link line ordering.
21876 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21878 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
21879 linkers are picky about this.
21881 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21883 * grub-core/Makefile.am (command.lst): Adjust sed expression
21884 ordering so that extended and priority commands aren't treated as
21887 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21889 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21890 Remove byte-swapping function calls, which are not valid in
21891 structure initialisers.
21892 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
21894 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
21895 grub_gpt_partition_type_bios_boot.
21897 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21899 Fix test program build on GNU/kFreeBSD.
21901 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
21902 $(LIBNVPAIR)' library dependencies.
21904 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21906 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
21908 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21910 * util/grub-install.in: Remove excessive quoting that broke
21911 installations to RAID devices.
21913 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21915 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
21916 bootloader version instead of 0.
21918 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21920 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
21923 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
21925 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
21926 retrieve the metadat sector if size isn't known.
21927 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21929 2010-11-18 Robert Millan <rmh@gnu.org>
21931 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
21932 with grub_memcmp().
21934 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
21936 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
21938 Reported by: Jordan Uggla.
21940 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21942 Make better UTF compliant.
21944 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
21945 sequences as incorrect.
21946 (grub_is_valid_utf8): Likewise.
21947 (grub_utf8_to_ucs4): Likewise.
21948 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
21949 (grub_ucs4_to_utf8_alloc): Likewise.
21950 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
21952 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
21954 Make legacy_source behave like source.
21956 * grub-core/commands/legacycfg.c (legacy_file): Don't call
21958 (grub_cmd_legacy_source): Call grub_show_menu if needed.
21960 2010-11-16 Colin Watson <cjwatson@debian.org>
21962 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
21963 (-Wunused implies -Wunused-parameter, but not vice versa).
21965 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
21967 * configure.ac: Make error messages less confusing by testing for
21968 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
21969 accepted, but produces a diagnostic if something else is wrong).
21971 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21973 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
21974 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
21976 (grub_keyboard_controller_init)
21977 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
21978 read the initial state since controller isn't inited yet.
21980 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
21982 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
21983 allocate_regbeg may need to create new chunk header.
21985 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21987 Fix quoting in legacy parser.
21989 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
21991 (grub_legacy_parse): Likewise.
21992 Reported by: Jordan Uggla.
21993 Tested by: Jordan Uggla.
21995 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
21997 Don't add -lgcc on i386 and x86_64.
21999 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22000 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22001 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22003 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22005 * configure.ac: Add -Wno-trampolines when supported.
22007 2010-11-14 Modestas Vainius <modax@debian.org>
22009 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22012 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22014 Add generic logical block size support for UDF.
22016 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22017 (GRUB_UDF_BLKSZ): Removed.
22018 (struct grub_udf_data): New field "lbshift" to hold the logical block
22019 size of the file system in log2 format. All users updated.
22020 (sblocklist): Change type to unsigned.
22021 (grub_udf_mount): Change type of "sblklist" to unsigned.
22022 Move AVDP search before VRS recognition, because the latter requires
22023 knowledge of the logical block size, which is detected during the
22025 Detect and validate logical block size during AVDP search, adding
22026 support for block sizes 512, 1024 and 4096.
22027 Make VRS recognition independent of block size.
22029 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22031 Properly handle deleted files on UDF.
22033 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22034 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22037 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22039 Support reading files larger than 2 GiB.
22041 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22042 "offset" to grub_off_t.
22043 (grub_udf_read_file): Likewise for parameter "pos".
22045 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22047 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22049 (Simple configuration): Refer to Changes from GRUB Legacy about
22050 save_env availability.
22052 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22054 * util/grub-install.in: Ignore empty partition table detection
22055 instead of trying to include part_ module.
22057 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22059 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22060 LVM on RAID support.
22062 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22064 Properly define WORDS_BIGENDIAN in wrapped environments.
22066 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22068 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22070 Reported by: Manoel Rebelo Abranches.
22071 Tested by: Manoel Rebelo Abranches.
22073 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22075 * util/grub-mkconfig.in: Fix quoting.
22077 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22079 Support big ext2 files.
22081 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22082 (grub_ext2_read_block): Support triple indirect blocks.
22083 (grub_ext2_read_file): Use 64-bit types and read size_high.
22084 (grub_ext2_open): Read size_high.
22085 Reported by: Ximin Luo.
22086 Tested by: Manoel Rebelo Abranches.
22088 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22090 * util/grub-install.in: Handle filenames containing spaces.
22091 Reported by: Jordan Uggla.
22092 Tested by: Jordan Uggla.
22094 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22096 * util/grub-mkconfig.in (grub_script_check): New variable.
22097 Use grub_script_check instead of grub-script-check.
22098 Reported by: Barry Jackson.
22100 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22102 * docs/grub.texi (menu): Correct the order.
22103 Reported by: D. Hugh Redelmeier.
22105 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22107 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22110 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22112 * include/grub/elfload.h (grub_elf32_size): New parameter.
22114 Return maximum segments alignment.
22115 (grub_elf64_size): Likewise.
22116 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22117 Return maximum segments alignment.
22118 (grub_elf64_size): Likewise.
22119 * grub-core/loader/powerpc/ieee1275/linux.c:
22120 (grub_linux_claimmap_iterate): New function. Uses the
22121 "available" property in the "memory" node for memory allocation
22122 for kernel in the PowerPC loader.
22123 (grub_linux_load32): Correctly find linux entry point offset.
22124 (grub_linux_load64): Likewise.
22126 2010-11-07 Robert Millan <rmh@gnu.org>
22128 On mips-yeeloong, build with -march=loongson2f when this flag is
22129 available (GCC >= 4.4).
22130 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22132 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22133 or otherwise add -march=mips3.
22135 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22137 Suppress shell expansion on echo '*' and echo "*" like cases.
22138 Reported by: Jordan Uggla.
22140 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22141 string arguments before shell expansion.
22142 * tests/grub_cmd_echo.in: New testcases.
22144 2010-11-07 Robert Millan <rmh@gnu.org>
22146 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22149 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22151 * grub-core/kern/emu/hostdisk.c
22152 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22154 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22156 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22157 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22158 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22160 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22162 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22164 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22166 * util/grub-install.in: Replace useless recomendation to pass
22167 --modules with a recomendation to report a bug.
22169 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22171 Properly register serial terminfo.
22172 Reported by: Jordan Uggla
22174 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22176 (grub_serial_terminfo_output_template): Likewise.
22177 (grub_cmd_serial): Register "serial" with terminfo.
22178 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22179 grub_serial_terminfo_output.
22181 2010-11-05 Robert Millan <rmh@gnu.org>
22183 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22186 2010-11-05 Robert Millan <rmh@gnu.org>
22188 On Yeeloong, pass machine type information to Linux.
22190 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22191 (LOONGSON_MACHTYPE): New macro, set to
22192 "machtype=lemote-yeeloong-2f-8.9inches".
22193 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22194 additional argument to Linux.
22196 2010-11-04 Robert Millan <rmh@gnu.org>
22198 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22199 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22200 (its SATA disks are detected as slaveless IDE master drives on
22202 Reported by Carsten Aulbert.
22204 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22206 * util/bin2h.c (main): Fix spelling error in generated output.
22208 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22210 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22212 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22214 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22215 vga= option is supplied.
22217 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22219 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22220 * util/grub.d/10_kfreebsd.in: Likewise.
22221 * util/grub.d/10_linux.in: Likewise.
22222 * util/grub.d/20_linux_xen.in: Likewise.
22224 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22226 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22227 argument as an argument to no-argument option.
22229 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22231 * util/grub.d/10_linux.in: Add missing load_video with explicit
22232 GRUB_GFXPAYLOAD_LINUX.
22234 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22236 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22238 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22240 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22241 elements with invlid index.
22242 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22243 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22245 * include/grub/raid.h (grub_raid_member): New struct.
22246 (grub_raid_array): Transform devices and start_sector into usage of
22247 grub_raid_member. All users updated
22248 (allocated_devs): New member.
22250 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22252 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22255 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22257 NetBSD build fix for getline function conflict from gnulib.
22259 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22260 components that depend on gnulib headers.
22261 (libgrubmods.a): Renamed from earlier libgrub.a.
22262 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22264 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22266 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22267 install rather than creating a broken install.
22269 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22271 * util/grub-setup.c (argp): Remove misleading example of installing to
22274 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22276 * util/grub-setup.c (setup): Clarify the error message.
22278 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22280 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22282 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22284 * grub-core/kern/emu/misc.c
22285 (grub_make_system_path_relative_to_its_root)
22286 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
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): Revert r2882.
22293 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22295 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22296 useless field head. All users updated.
22297 (free_subchunk): Correct handling of IN_REGION subchunk.
22299 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22301 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22302 (Supported kernels): Likewise.
22304 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22306 Make mktemp invocations portable.
22308 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22309 exit if mktemp fails.
22310 * tests/grub_script_blockarg.in: Likewise.
22311 * tests/partmap_test.in: Likewise.
22312 * tests/util/grub-shell-tester.in: Likewise.
22313 * tests/util/grub-shell.in: Likewise.
22314 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22315 * Makefile.am: Likewise, and chain shell commands with `&&'
22317 * util/grub-mkrescue.in: Use the same explicit template as above, and
22318 exit if mktemp fails.
22320 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22322 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22323 Linux kernel, reported by Dennis Schridde.
22325 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22327 * grub-core/normal/auth.c (grub_auth_check_authentication):
22328 Set-but-not-used variable removed.
22330 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22332 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22333 32-bit linux protocol.
22335 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22337 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22338 cursor shape for sanity.
22340 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22342 * docs/grub.texi (Installation): Document buggy BIOS install.
22344 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22346 * docs/grub.texi (Installation): Indent.
22348 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22350 * util/grub-setup.c (setup): New parameter allow_floppy.
22351 (arguments): New member allow_floppy.
22352 (argp_parser): Handle --allow-floppy.
22353 (main): Pass allow_floppy.
22354 * util/grub-install.in: New option --allow-floppy passed though to
22357 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22359 * util/grub-install.in: Handle partitionless disks.
22361 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22363 * util/grub-setup.c (setup): Don't clean blocklists before readability
22366 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22368 * docs/grub.texi (Installation): Document embedding zone. Remove
22369 obsolete grub-install example.
22371 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22373 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22374 Set-but-not-used variable ifdef'ed.
22375 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22376 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22378 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22379 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22380 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22381 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22382 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22383 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22384 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22385 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22386 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22387 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22388 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22391 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22393 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22394 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22397 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22399 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22400 synonym to _S5_. Needed for some DSDTs.
22402 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22404 Userspace ACPI parser debugging.
22406 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22407 headers and add relevant defines. Don't include standard headers.
22408 (main) [GRUB_DSDT_TEST]: New function.
22409 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22410 Don't declare functions.
22412 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22414 Remove dead grub_efi_mm_fini.
22416 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22417 (ALLOCATED_PAGES_SIZE): Likewise.
22418 (MAX_ALLOCATED_PAGES): Likewise.
22419 (allocated_pages): Likewise.
22420 (grub_efi_allocate_pages): Don't record allocated pages.
22421 (grub_efi_free_pages): Likewise.
22422 (grub_efi_mm_init): Likewise.
22423 (grub_efi_mm_fini): Removed.
22425 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22427 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22428 (grub_efi_mm_init): Take into account the memory map size increase.
22430 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22432 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22433 (serial_hw_put): Wait based on real time rather than port reads. Don't
22435 * include/grub/serial.h (grub_serial_port): New field broken.
22437 2010-10-16 Robert Millan <rmh@gnu.org>
22439 * grub-core/kern/emu/misc.c
22440 (grub_make_system_path_relative_to_its_root): Fix premature return
22441 when processing non-root ZFS filesystems.
22442 Reported by Sergio Talens-Oliag.
22444 2010-10-15 Robert Millan <rmh@gnu.org>
22446 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22447 guarantee compressed ones are processed first.
22449 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22451 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22452 grub_efiemu_autocore.
22454 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22456 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22458 (grub_console_getkey): Use correct jae opcode rather than ja.
22460 2010-10-12 Robert Millan <rmh@gnu.org>
22462 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22463 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22464 variable. All references updated.
22466 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22468 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22470 Correctly distinguish mdraid flavours.
22472 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22473 (insert_array): New argument raid.
22474 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22475 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22476 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22478 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22480 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22481 handling of special keys.
22483 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22485 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22486 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22488 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22490 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22491 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22493 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22494 Use right endpoint when querying descriptor.
22496 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22498 Clear out 0x80 color bit on EFI.
22500 Reported by: decoder and meta tech.
22502 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22503 (grub_console_setcolorstate): Clear out 0x80 bit.
22504 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22505 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22506 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22508 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22510 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22513 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22515 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22516 mo_file after freeing.
22518 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22520 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22522 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22524 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22527 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22529 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22532 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22534 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22536 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22537 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22538 and terminfo.h when needed.
22539 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22540 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22541 (terminfo): Enable only on terminfokernel.
22542 (extcmd): Likewise.
22543 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22544 * include/grub/lib/arg.h: Likewise.
22545 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22546 incorrect usage of ->.
22548 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22550 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22551 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22553 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22555 Fix coreboot compilation.
22557 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22558 Take VBE info into account even if only text is supported.
22559 (fill_vbe_info): Take into account the case when only VGA text
22561 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22562 on coreboot, multiboot and qemu.
22564 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22566 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22568 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22570 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22572 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22575 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22577 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22578 if they were BSD-style.
22580 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22582 * grub-core/boot/i386/pc/lnxboot.S: Replace
22583 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22584 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22586 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22588 Write embedding zone using Reed-Solomon.
22590 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22591 * grub-core/Makefile.am (rs_decoder.S): New target.
22592 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22593 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22594 (multiboot): Move to RS part.
22595 (post_reed_solomon): New label.
22596 (grub_boot_drive): Move to non-RS part since it's modified in memory
22598 Include rs_decoder.S.
22599 * grub-core/lib/reed_solomon.c: New file.
22600 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22602 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22603 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22604 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22605 * include/grub/partition.h (grub_partition_map): Change prototype of
22606 embed to allow returning additional sectors.
22607 * include/grub/reed_solomon.h: New file.
22608 * util/grub-setup.c (setup): Handle Reed-Solomon.
22610 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22612 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22613 i386 and x86-64 definedness tests.
22615 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22617 Fix generation of kernel_syms.lst
22619 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22622 2010-09-26 Robert Millan <rmh@gnu.org>
22624 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22626 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22627 the pool is an array of devices, iterate through it and return the
22628 first device that passes a stat() test (instead of blindly returning
22631 2010-09-26 Robert Millan <rmh@gnu.org>
22633 Build fixes for GNU/kFreeBSD.
22635 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22636 to programs that require ZFS conversion.
22637 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22638 kernels that don't have FLOPPY_MAJOR.
22640 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22642 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22644 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22646 Fix grub-emu build.
22648 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22649 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22650 mdraid09 and mdraid1x.
22652 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22654 Re-enable grub-extras.
22656 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22657 avoid confusing Automake. Run autogen only twice, once for the top
22658 level and once for grub-core. Add Makefile.util.def and
22659 Makefile.core.def from extra modules to the appropriate autogen
22660 invocations. If Makefile.common exists in an extra module, include
22661 it in both Makefile.util.am and grub-core/Makefile.core.am;
22662 similarly, include any Makefile.util.common file in Makefile.util.am
22663 and any Makefile.core.common file in grub-core/Makefile.core.am.
22664 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22665 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22666 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22667 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22669 * gentpl.py (gvar_add): Turn GVARS into a set.
22670 (global_variable_initializers): Sort global variables on output.
22671 (vars_init): New function.
22672 (first_time): Likewise.
22673 (library): Ensure that non-global variable initialisations are
22674 emitted before the first time we emit code for a library block.
22675 Append to variables rather than setting them. Only emit
22676 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22677 each conditional path.
22678 (program): installdir() emits an Autogen macro, so must be passed to
22679 var_add rather than gvar_add.
22681 (script): Likewise.
22682 (rules): New function, centralising handling for different target
22683 types. Set up Guile association lists for first_time and vars_init,
22684 and send most output to a diversion so that variable initialisations
22685 can be emitted first.
22686 (module_rules): Use new rules function.
22687 (kernel_rules): Likewise.
22688 (image_rules): Likewise.
22689 (library_rules): Likewise.
22690 (program_rules): Likewise.
22691 (script_rules): Likewise.
22692 (data_rules): Likewise.
22694 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22696 * .bzrignore: Add contrib and grub-core/contrib. Remove
22697 grub-core/Makefile.gcry.am.
22699 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22701 * grub-core/lib/LzFind.c: Add missing include.
22702 * grub-core/lib/LzmaEnc.c: Likewise.
22703 * grub-core/script/lexer.c: Likewise.
22704 * grub-core/script/yylex.l: Likewise.
22705 * util/grub-macho2img.c: Likewise.
22706 * util/grub-menulst2cfg.c: Likewise.
22707 * util/grub-mklayout.c: Likewise.
22708 * util/grub-mkpasswd-pbkdf2.c
22709 * util/grub-mkrelpath.c: Likewise.
22710 * util/resolve.c: Likewise.
22712 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22714 * Makefile.util.def (example_unit_test): Add
22715 grub-core/gnulib/libgnu.a.
22717 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22719 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22721 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22723 Support xz compression on yeeloong.
22725 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22726 * configure.ac: Check for LZMA.
22727 * grub-core/Makefile.core.def (xz_decompress): New target.
22728 (none_decompress): Likewise.
22729 * grub-core/boot/decompressor/minilib.c: New file.
22730 * grub-core/boot/decompressor/none.c: Likewise.
22731 * grub-core/boot/decompressor/xz.c: Likewise.
22732 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22733 * grub-core/kern/mips/cache_flush.S: Likewise.
22734 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22735 * grub-core/kern/mips/startup.S: Move first stage to ...
22736 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22738 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22739 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22740 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22741 Allocate statically.
22742 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22743 Allocate statically or use scratch. Don't check CRC32.
22744 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22745 Allocate statically. Don't check CRC32.
22746 * include/grub/decompressor.h: New file.
22747 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22749 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22750 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22751 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22752 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22753 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22754 * util/grub-mkimage.c (grub_compression_t): New type.
22755 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22756 (image_target_desc): New field default_compression.
22757 (image_targets): Adjust yeeloong targets.
22758 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22759 (compress_kernel): New parameter comp.
22760 (generate_image): Likewise. Handle new compression case.
22761 (options): New option --compression
22763 (main): Handle new option.
22765 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22767 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22769 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22771 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22772 typo in __i386__ conditional.
22774 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22776 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22779 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22781 Implement EFI and ACPI multiboot2 extensions.
22783 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22784 new tags as supported.
22785 (acpiv2_size): New function.
22786 (grub_multiboot_get_mbi_size): Take new tags into account.
22787 (grub_multiboot_make_mbi): Add new tags.
22788 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22790 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22792 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22793 Added missing configuration of USB device.
22795 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22797 * grub-core/normal/menu_entry.c (run): Make sure we always return
22800 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22802 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22803 NumberOfPages is UINT64 according to the UEFI specification, not
22804 UINTN. Fix printf format.
22806 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22808 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22809 `err' to grub_usb_err_t.
22810 Reported and tested by: KESHAV P.R.
22812 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22814 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22815 tpart non-const, so that we can assign to it. (Since this is a
22816 typedef, the constness refers to the pointer rather than what it
22819 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22821 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22822 $(top_srcdir)/grub-core/gnulib as well as
22823 $(top_builddir)/grub-core/gnulib.
22824 Reported by: KESHAV P.R.
22826 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22828 * util/grub-install.in: Fix the bootloader ID option to be
22829 consistently --bootloader-id, not --bootloader_id.
22830 Reported by: KESHAV P.R.
22832 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22834 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22835 check hash checksum." consistently translatable.
22837 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22839 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22842 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22844 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22845 (GRUB_MOD_INIT): Register sha1sum command.
22846 (GRUB_MOD_FINI): Unregister sha1sum command.
22848 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22850 Keep boot and grub directory names in sync with utils scripts
22852 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22853 * config.h.in: Add previous macros.
22854 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22855 * util/grub-install.in: Use $bootdir and $grubdir variables.
22857 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22859 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
22860 convert partition names to disk names if the new `convert' parameter
22862 (grub_util_biosdisk_get_grub_dev): If opening the disk device
22863 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
22864 disk in its own right. This can happen with Xen disk images.
22866 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22868 * util/grub-editenv.c: Update strings to avoid warnings when generating
22870 * util/grub-setup.c: Likewise.
22872 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22874 * configure.ac: Change version to 1.99~beta0.
22876 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22878 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22880 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
22882 * include/multiboot.h: Resynced with specification.
22883 * include/multiboot2.h: Likewise.
22885 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22887 Fix po directory handling.
22889 * configure.ac: Create po/Makefile.in rather than po/Makefile.
22890 * grub-core/gnulib/Makefile.am: Import gettext module.
22891 * m4/gnulib-cache.m4: Likewise.
22892 * m4/gnulib-comp.m4: Likewise.
22893 * m4/gettext.m4: New file, from gnulib.
22894 * m4/glibc2.m4: Likewise.
22895 * m4/iconv.m4: Likewise.
22896 * m4/intdiv0.m4: Likewise.
22897 * m4/intl.m4: Likewise.
22898 * m4/intldir.m4: Likewise.
22899 * m4/intlmacosx.m4: Likewise.
22900 * m4/intmax.m4: Likewise.
22901 * m4/inttypes-pri.m4: Likewise.
22902 * m4/lcmessage.m4: Likewise.
22903 * m4/lib-ld.m4: Likewise.
22904 * m4/lib-link.m4: Likewise.
22905 * m4/lib-prefix.m4: Likewise.
22906 * m4/lock.m4: Likewise.
22907 * m4/nls.m4: Likewise.
22908 * m4/po.m4: Likewise.
22909 * m4/printf-posix.m4: Likewise.
22910 * m4/progtest.m4: Likewise.
22911 * m4/threadlib.m4: Likewise.
22912 * m4/uintmax_t.m4: Likewise.
22913 * m4/visibility.m4: Likewise.
22914 * po/Makefile.am: Remove.
22915 * po/Makefile.in.in: New file, from gettext.
22916 ($(DOMAIN).pot-update): Support POTFILES-shell.
22917 * po/Makevars: New file.
22918 * po/POTFILES-shell: Rename to ...
22919 * po/POTFILES-shell.in: ... this. Update.
22920 * po/POTFILES: Rename to ...
22921 * po/POTFILES.in: ... this. Update.
22922 * po/Rules-quot: New file, from gettext.
22923 * po/boldquot.sed: Likewise.
22924 * po/en@boldquot.header: Likewise.
22925 * po/en@quot.header: Likewise.
22926 * po/insert-header.sin: Likewise.
22927 * po/quot.sed: Likewise.
22928 * po/remove-potcdate.sin: Likewise.
22930 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22932 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
22934 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22936 * util/grub.d/20_linux_xen.in: Use submenus.
22938 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22942 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
22943 parameter submenu. All users updated.
22944 * grub-core/normal/main.c (free_menu): Rename to ...
22945 (grub_normal_free_menu): ... this. Made global.
22946 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
22948 * grub-core/normal/menu_entry.c (screen): New field submenu.
22949 (make_screen): Set submenu.
22950 (run): Open new context if requested.
22951 * include/grub/menu.h (grub_menu_entry): New field submenu.
22952 * include/grub/normal.h (grub_normal_free_menu): New proto.
22954 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22956 Menu entries extractor.
22958 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
22960 (GRUB_MOD_INIT): Register new variants.
22961 (GRUB_MOD_FINI): Unregister new variants.
22962 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
22963 into grub_cmd_legacy_source.
22964 (grub_cmd_legacy_source): Implement extractor variants.
22965 (GRUB_MOD_INIT): Register new variants.
22966 (GRUB_MOD_FINI): Unregister new variants.
22967 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
22969 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
22970 search as an extractor.
22971 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
22972 test as an extractor.
22973 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
22975 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
22976 (grub_env_new_context): New function.
22977 (grub_env_context_open): Likewise.
22978 (grub_env_extractor_open): Likewise.
22979 (grub_env_extractor_close): Likewise.
22980 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
22981 grub_extractor_level.
22982 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
22983 * include/grub/env.h (grub_env_extractor_open): New proto.
22984 (grub_env_extractor_close): Likewise.
22985 * include/grub/normal.h (grub_extractor_level): New external variable.
22987 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22989 Make cutmem accept a region specification.
22990 Suggested by: Samuel Thibault
22992 * grub-core/mmap/mmap.c (parsemem): New function.
22993 (grub_cmd_cutmem): Handle new arguments.
22995 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
22997 New command cutmem.
22999 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23000 (GRUB_MOD_INIT): Register new command.
23001 (GRUB_MOD_FINI): Unregister new command.
23003 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23005 Support some annoying BSD and Minix subpartitions.
23007 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23008 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23009 Properly handle concatenation.
23010 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23011 * grub-core/normal/completion.c (iterate_partition): Likewise.
23012 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23013 contain partition. All users updated.
23014 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23016 (grub_openbsdlabel_partition_map): Likewise.
23017 (bsdlabel_partition_map_iterate): Rename to ..
23018 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23019 (bsdlabel_partition_map_iterate): New function.
23020 (netopenbsdlabel_partition_map_iterate): Likewise.
23021 (netbsdlabel_partition_map_iterate): Likewise.
23022 (openbsdlabel_partition_map_iterate): Likewise.
23023 (GRUB_MOD_INIT): Register new partmaps.
23024 (GRUB_MOD_FINI): Unregister new partmaps.
23025 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23026 (grub_partition_msdos_iterate): ... this. All users updated.
23027 Don't support embedding other than in a minix partition.
23028 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23030 * include/grub/partition.h (grub_partition): New field msdostype.
23031 * util/grub-install.in: Handle openbsd and netbsd types being in
23034 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23036 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23038 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23039 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23040 (mdraid09): ... this.
23041 (mdraid1x): New module.
23042 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23043 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23045 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23047 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23050 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23052 * grub-core/commands/efi/lsefimmap.c: Correct header.
23055 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23057 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23058 as printf format strings; the translations might contain '%' which
23059 could cause a crash.
23061 * util/grub-fstest.c (argp_parser): Likewise.
23062 * util/grub-setup.c (argp_parser): Likewise.
23065 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23067 Use argp in grub-fstest.
23069 * util/grub-fstest.c: Don't include getopt.h.
23071 (root): New variable.
23072 (args_count): Likewise.
23074 (num_disks): Likewise.
23075 (images): Likewise.
23077 (debug_str): Likewise.
23079 (options): Transformed to argp.
23081 (main): Split argument parsing into ...
23082 (argp_parser): ... this. Changed to argp format.
23083 (argp): New variable.
23084 (main): Use argp_parse.
23086 2010-09-20 Tristan Gingold <gingold@free.fr>
23087 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23088 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23090 * grub-core/commands/efi/lsefimmap.c: New file.
23091 * grub-core/Makefile.core.def (lsefimmap): New module.
23092 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23094 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23096 Pause the execution (10s max) if any errors are displayed so the user
23097 has a chance to see them.
23099 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23100 (grub_print_error): Increment grub_err_printed_errors.
23101 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23102 execution if any errors were displayed.
23103 (show_menu): Remove old code for pause.
23104 * grub-core/normal/menu_entry.c (run): Likewise.
23105 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23107 (grub_normal_get_char_counter): Likewise.
23108 * include/grub/err.h (grub_err_printed_errors): New external variable.
23109 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23111 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23113 Support multiboot VBE info.
23115 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23116 Take VBE info into account.
23117 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23118 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23119 Call fill_vbe_info when appropriate.
23120 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23121 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23123 (grub_multiboot_get_mbi_size): Take new tags into account.
23124 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23125 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23126 Call fill_vbe_tag when appropriate.
23127 (grub_multiboot_make_mbi): Properly align tags.
23128 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23130 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23132 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23134 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23136 Suport manual terminal geometry specification.
23138 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23139 Save state in grub_ofconsole_terminfo_output.
23140 (grub_ofconsole_term): Use grub_terminfo_getwh.
23141 (grub_ofconsole_getwh): Removed.
23142 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23143 (grub_serial_term): Use grub_terminfo_getwh.
23144 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23145 (options): New struct.
23146 (OPTION_*): New enum.
23147 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23148 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23150 (grub_terminfo_getwh): New proto.
23151 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23153 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23155 Handle legacy "terminal" command.
23157 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23159 (legacy_commands): Add terminal and title.
23160 (grub_legacy_parse): Handle terminal. Simplify title handling.
23162 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23164 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23165 parameters overflow.
23167 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23169 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23172 * docs/grub.texi (Shell-like scripting): Document `!'.
23173 (Network): Simplify using new i386-pc-pxe format. Mention
23178 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23180 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23181 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23184 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23186 * grub-core/commands/efi/lsefisystab.c: Correct header.
23187 * grub-core/commands/efi/lssal.c: Likewise.
23188 * grub-core/commands/testload.c: Likewise.
23190 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23192 * util/grub-mkrescue.in: Add explicit root argument to --set to
23193 prevent the UUID being interpreted as an argument to --set (matches
23194 previous change to prepare_grub_to_access_device).
23196 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23198 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23199 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23200 the verbosity of later #ifs.
23201 (find_partition_start): Define this function on FreeBSD too.
23202 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23204 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23207 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23209 * util/grub-editenv.c: Use argp instead of getopt.
23211 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23213 * util/grub-setup.c: Use argp instead of getopt.
23215 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23217 Use gnulib-tool to create gnulib source files.
23219 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23220 grub-core/gnulib directories
23221 * .bzignore: Add **/.deps and autogenerated gnulib files
23222 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23223 of gnulib macros, add grub-core/gnulib/Makefile
23224 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23225 include m4 directory to aclocal.
23226 * Makefile.util.def: Remove direct compilation of gnulib source files
23227 and use the new grub-core/gnulib/libgnu.a.
23228 * build-aux/config.rpath: move config.rpath from top directory to
23230 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23232 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23233 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23234 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23236 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23239 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23241 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23242 grub-core/genmod.sh and grub-core/gensyminfo.sh
23244 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23246 Add a test for echo command options.
23248 * tests/grub_cmd_echo.in: New test.
23249 * Makefile.util.def: Rules for new test.
23251 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23253 Remove crc.mod and move crc command to hashsum.mod.
23254 Remove lib/crc.c - users updated to use gcrypt implementation.
23256 * grub-core/commands/crc.c: Removed.
23257 * grub-core/Makefile.core.def (crc): Module removed.
23258 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23259 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23260 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23261 * grub-core/lib/crc.c: Removed.
23262 * include/grub/lib/crc.h: Removed.
23263 * Makefile.util.def (crc): Remove lib/crc.c
23264 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23265 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23266 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23267 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23268 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23269 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23271 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23273 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23275 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23277 Split config.h for util and core.
23279 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23280 (ADDR32): Likewise.
23281 (DATA32): Likewise.
23282 (BSS_START_SYMBOL): Likewise.
23283 (END_SYMBOL): Likewise.
23284 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23285 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23286 * config.h.in: New file.
23287 * configure.ac: Use config-util.h as config define file.
23288 Rename MACHINE into GRUB_MACHINE. All users updated.
23289 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23291 (NESTED_FUNC_ATTR): Likewise.
23292 Substitue new variables.
23293 (COND_HAVE_ASM_USCORE): New conditional.
23294 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23295 (kernel_syms.lst): Use ASM_PREFIX.
23296 * grub-core/kern/emu/console.c: Include config-util.h.
23297 * grub-core/kern/emu/misc.c: Likewise.
23298 * grub-core/kern/emu/mm.c: Likewise.
23299 * include/grub/emu/misc.h: Likewise.
23300 * include/grub/libgcc.h: Likewise.
23302 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23304 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23306 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23307 Fix GRUB_TERM_KEY_* constants usage.
23308 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23310 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23312 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23314 * grub-core/bus/usb/uhci.c: Remove empty define.
23315 (grub_uhci_check_transfer): Add missing cast.
23316 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23318 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23320 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23322 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23324 * grub-core/Makefile.core.def (legacycfg): Add
23325 lib/i386/pc/vesa_modes_table.c on emu.
23327 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23329 Reduce number of temporary files generated by build system.
23331 * grub-core/gencmdlist.sh: Removed.
23332 * grub-core/genfslist.sh: Removed.
23333 * grub-core/genhandlerlist.sh: Removed.
23334 * grub-core/genmodsrc.sh: Removed.
23335 * grub-core/genpartmaplist.sh: Removed.
23336 * grub-core/genparttoollist.sh: Removed.
23337 * grub-core/gentermiinallist.sh: Removed.
23338 * grub-core/genvideolist.sh: Removed.
23340 * grub-core/genmod.sh.in: New file.
23341 * grub-core/gensyminfo.sh.in: New file.
23343 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23344 * conf/Makefile.extra-dist: Update with new files.
23345 * gentpl.py: Remove rules related to unnecessary temporary files.
23346 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23348 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23350 * grub-core/bus/usb/uhci.c: Remove empty #define.
23351 * grub-core/genmoddep.awk: Updated with new syminfo format.
23352 * util/bash-completion.d/Makefile.am: Add config.log to
23355 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23357 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23359 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23361 * util/grub-mkconfig.in: Check the config script for syntax errors
23364 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23365 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23367 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23369 * util/grub-install.in: Add EFI and IEEE1275 support.
23370 * util/i386/efi/grub-install.in: Removed.
23371 * util/ieee1275/grub-install.in: Likewise.
23373 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23375 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23376 (grub_cmd_cmosclean): Likewise.
23377 (GRUB_MOD_INIT): Register command cmosclean.
23378 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23379 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23381 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23382 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23383 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23385 Add keyboard layouts support.
23387 * Makefile.util.def (grub-mklayout): New file.
23388 (grub-kbdcomp): New script.
23389 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23390 Add keyboard_layouts.h.
23391 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23392 commands/boot.c on yeeloong.
23393 (keylayouts): New module.
23394 * grub-core/bus/usb/ohci.c
23395 * grub-core/bus/usb/uhci.c
23396 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23397 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23398 (attach_root_port): Likewise.
23399 (poll_nonroot_hub): Likewise.
23400 (grub_usb_poll_devices): Likewise.
23401 (detach_device): Close transfer.
23402 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23404 (grub_usb_bulk_setup_readwrite): Likewise.
23405 (grub_usb_bulk_finish_readwrite): Likewise.
23406 * grub-core/commands/keylayouts.c: New file.
23407 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23408 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23410 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23411 support scancode 2.
23412 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23413 * include/grub/keyboard_layouts.h: New file.
23414 * util/grub-mklayout.c: New file.
23415 * util/grub-kbdcomp.in: Likewise.
23417 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23419 Unify memory types.
23421 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23422 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23424 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23425 (grub_upper_mem): Likewise.
23426 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23427 * include/grub/memory.h (grub_memory_type_t): New enum.
23430 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23432 * grub-core/Makefile.core.def (lsapm): New module.
23433 * grub-core/commands/i386/pc/lsapm.c: New file.
23434 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23435 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23437 * include/grub/i386/pc/apm.h: New file.
23438 * include/multiboot.h (multiboot_apm_info): New struct.
23440 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23442 GRUB-legacy configuration file support.
23444 * Makefile.util.def (grub-menulst2cfg): New util.
23445 * docs/man/grub-menulst2cfg.h2m: New file.
23446 * grub-core/Makefile.core.def (legacycfg): New module.
23447 * grub-core/commands/legacycfg.c: New file.
23448 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23449 (grub_normal_add_menu_entry): ... this.
23450 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23451 (grub_normal_set_password): ...this.
23452 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23453 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23454 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23455 * grub-core/lib/legacy_parse.c: New file.
23456 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23457 * include/grub/i386/pc/vesa_modes_table.h: New file.
23458 * include/grub/legacy_parse.h: Likewise.
23459 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23460 * util/grub-menulst2cfg.c: New file.
23462 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23464 * grub-core/kern/emu/hostdisk.c
23465 (convert_system_partition_to_system_disk): Initialise node.
23467 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23469 * grub-core/kern/emu/hostdisk.c
23470 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23472 Reported and based on patch by: Modestas Vainius.
23474 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23476 Fix DM-RAID probing with recent versions of device-mapper udev
23479 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23480 canonicalise device paths under /dev/mapper/.
23481 (convert_system_partition_to_system_disk): Compare the
23482 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23483 path, since device nodes under /dev/mapper/ are often symlinks.
23485 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23487 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23489 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23491 * configure.ac: Avoid some annoying error messages if freetype-config
23492 program is not found.
23494 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23496 Support RAID on virtio devices, and others.
23498 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23500 [__MINGW32__] (grub_find_device): ... this.
23501 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23502 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23503 reasonable default if dir is NULL.
23504 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23506 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23507 (grub_guess_root_device): Update callers.
23508 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23510 * util/raid.c (grub_util_getdiskname): Remove.
23511 (grub_util_raid_getmembers): Use grub_find_device rather than
23512 grub_util_getdiskname.
23514 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23516 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23517 needing to be compiled with serial support.
23518 (ls): Indicate that multiple files are accepted.
23519 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23520 indicate that multiple files are accepted.
23522 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23524 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23525 libgrub_a_init.c, and util/bash-completion.d/grub.
23527 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23529 * util/grub-setup.c (setup): Fix incorrect container semantics.
23531 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23533 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23535 Reported by: J. Nick Terry
23537 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23539 Move embedding routines to partmap sources files.
23541 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23542 [GRUB_UTIL]: New variable.
23543 (gpt_partition_map_iterate): Set part.parent.
23544 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23545 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23546 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23548 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23549 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23550 (grub_partition_map) [GRUB_UTIL]: New field embed.
23551 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23552 (setup): Use ->embed.
23554 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23556 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23558 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23559 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23561 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23563 Add function to get completions from usage.
23565 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23566 completions from usage. Use LC_ALL=C to get options properly.
23568 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23570 * grub-core/gnulib/basename-lgpl.c: Imported.
23571 * grub-core/gnulib/basename.c: Likewise.
23572 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23573 * grub-core/gnulib/dirname.c: Likewise.
23574 * grub-core/gnulib/dirname.h: Likewise.
23575 * grub-core/gnulib/stripslash.c: Likewise.
23577 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23579 * grub-core/gnulib/error.c: Resynced.
23580 * grub-core/gnulib/getopt.c: Likewise.
23581 * grub-core/gnulib/getopt_int.h: Likewise.
23582 * grub-core/gnulib/regex.h: Likewise.
23583 * grub-core/gnulib/regex_internal.c: Likewise.
23584 * grub-core/gnulib/regex_internal.h: Likewise.
23586 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23588 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23589 CRC calculations and validity checks.
23590 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23593 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23595 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23597 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23599 Fix incorrect echo options handling.
23600 Reported by: Yves Blusseau.
23602 * include/grub/command.h (grub_command_flags_t): New flags
23603 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23604 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23605 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23607 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23609 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23611 (GRUB_COMMAND_FLAG_MENU): Likewise.
23612 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23613 (GRUB_COMMAND_FLAG_TITLE): Removed.
23614 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23615 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23616 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23617 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23618 (grub_command_flags_t): New enum. All users updated.
23620 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23622 Fix solaris compilation.
23624 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23625 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23626 (grub-emu-list): Likewise.
23628 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23630 Remove deprecated root command.
23632 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23635 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23637 * util/i386/pc/grub-setup.c: Merge this ...
23638 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23639 * util/grub-setup.c: ... into this.
23640 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23643 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23645 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23648 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23650 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23653 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23655 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23656 explicit root argument to set to prevent UUID to be interpreted as
23659 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23661 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23663 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23665 Don't export grub_gate_a20.
23667 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23668 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23670 (grub_gate_a20): ... this. All users updated.
23671 * include/grub/i386/pc/init.h: Removed. All users updated.
23673 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23675 Create euro.pf2 which supports most European languages.
23677 * Makefile.am (grubdata_DATA): Add euro.pf2.
23678 (euro.pf2): New target.
23679 (CLEANFILES): Add euro.pf2.
23681 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23683 * configure.ac: Disable emu-usb by default to prevent inadvertent
23686 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23688 Disable usbserial on grub-emu since our libusb code isn't good enough
23691 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23692 (usbserial_pl2303): Likewise.
23693 (usbserial_ftdi): Likewise.
23695 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23697 * include/grub/disk.h (grub_disk): Remove has_partitions.
23699 * disk/loopback.c (grub_loopback): Remove has_partitions.
23701 (options): Remove partitions. All users updated.
23702 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23703 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23704 actual partition table is found.
23706 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23708 Remove readability checks (too many false negatives).
23710 * util/grub-install.in: Remove readability checks.
23711 * util/grub-mkconfig.in: Likewise.
23712 * util/grub.d/10_hurd.in: Likewise.
23713 * util/grub.d/10_kfreebsd.in: Likewise.
23714 * util/grub.d/10_linux.in: Likewise.
23715 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23718 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23720 Enable acpi shutdown on all ACPI platforms.
23722 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23723 on coreboo, multiboot and EFI.
23724 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23725 (grub_acpi_halt): Likewise.
23726 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23727 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23728 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23729 * grub-core/lib/i386/halt.c (grub_halt)
23730 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23732 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23734 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23737 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23739 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23740 * grub-core/video/efi_uga.c: Likewise.
23742 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23744 Filter devaliases and never open same device twice.
23746 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23747 (last_ihandle): Likewise.
23748 (ofdisk_hash_ent): New member shortest.
23749 (ofdisk_hash_add): Add canonical path too.
23750 (scan): New function.
23751 (grub_ofdisk_iterate): Iterate over hashed entries.
23752 (compute_dev_path): Don't add :0.
23753 (grub_ofdisk_open): Don't really open the disk.
23754 (grub_ofdisk_close): Avoid closing unrelated disk.
23755 (grub_ofdisk_read): Implement reopen logic.
23756 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23758 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23761 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23765 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23766 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23767 right address. Add sparc64_ieee1275_ldflags.
23768 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23769 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23770 to grub_host_to_target_addr
23771 (load_image): Likewise.
23773 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23775 * grub-core/normal/completion.c (complete_file): Handle device
23777 Fix based on patch by Doug Nazar.
23779 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23781 grub-mknetdir script.
23783 * Makefile.util.def (grub-mknetdir): New module.
23784 * tests/util/grub-shell.in: Support boot=net
23785 * util/grub-mknetdir.in: New file.
23787 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23789 videoinfo on non-vbe.
23791 * grub-core/Makefile.core.def (vbeinfo): Removed.
23792 (vbetest): Removed.
23793 (videoinfo): New module.
23794 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23795 * grub-core/commands/i386/pc/vbetest.c: Removed.
23796 * grub-core/commands/videoinfo.c: New file.
23797 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23799 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23801 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23802 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23803 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23804 mode_number. New parameter mode. All users updated.
23805 (grub_video_gop_iterate): New function.
23806 (grub_video_efi_gop): New member iterate.
23807 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23808 (grub_vbe_set_video_mode): Remove setting useless fields.
23809 (vbe2videoinfo): New function.
23810 (grub_video_vbe_iterate): Likewise.
23811 (grub_video_vbe_setup): Use vbe2videoinfo.
23812 (grub_video_vbe_print_adapter_specific_info): New function.
23813 (grub_video_vbe_adapter): New fields iterate and
23814 print_adapter_specific_info.
23815 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23817 (grub_video_mode_info): New field mode_number.
23818 (grub_video_adapter): New fields iterate and
23819 print_adapter_specific_info.
23821 2010-09-13 Tristan Gingold <gingold@free.fr>
23822 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23823 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23825 * grub-core/commands/efi/lsefisystab.c: New file.
23826 * grub-core/commands/efi/lssal.c: Likewise.
23827 * grub-core/Makefile.core.def (lsacpi): New module.
23828 (lsefisystab): Likewise.
23829 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23830 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23831 (grub_efi_sal_system_table): New struct.
23832 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23833 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23834 (grub_efi_sal_system_table_platform_features): Likewise.
23835 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23836 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23837 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23838 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23840 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23842 Support explicit user claim that a device is BIOS-visible.
23844 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23845 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23846 * grub-core/kern/emu/hostdisk.c
23847 (convert_system_partition_to_system_disk): Support mdX.
23848 (find_system_device): New parameter add. All users updated.
23849 (grub_util_biosdisk_is_present): New function.
23850 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23853 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23855 Search hints support.
23857 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
23860 2010-09-13 Yves Blusseau <blusseau@zetam.org>
23862 Bash completion script for util commands
23864 * Makefile.am: Add util/bash-completion.d directory
23865 * configure.ac: Likewise.
23866 * util/bash-completion.d/Makefile.am: New file.
23867 * util/bash-completion.d/grub-completion.bash.in: Likewise.
23869 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23871 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
23872 (print_backlog): set backlog_ucs4 and backlog_glyphs.
23873 Reported by: Yves Blusseau.
23875 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23877 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
23878 partition size and offset.
23880 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23882 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
23884 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23886 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
23888 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23890 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
23891 (grub_xvasprintf): Likewise.
23893 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23895 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
23897 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23899 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
23900 args ending with NULL.
23902 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23904 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
23907 2010-09-11 Szymon Janc <szymon@janc.net.pl>
23909 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
23911 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23913 Shutdown using ACPI.
23915 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
23916 * grub-core/commands/acpihalt.c: New file.
23917 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
23918 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
23919 (grub_acpi_halt): New proto.
23920 (GRUB_ACPI_SLP_EN): New const.
23921 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
23922 (GRUB_ACPI_OPCODE_*): New enum.
23923 (GRUB_ACPI_EXTOPCODE_*): Likewise.
23925 2010-09-11 Tristan Gingold <gingold@free.fr>
23926 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
23927 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23929 * commands/lsacpi.c: New file.
23930 * grub-core/Makefile.core.def (lsacpi): New module.
23931 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
23932 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
23933 (grub_acpi_madt_entry_header): New struct.
23934 (grub_acpi_madt): Likewise.
23935 (grub_acpi_madt_entry_interrupt_override): Likewise.
23936 (grub_acpi_madt_entry_sapic): Likewise.
23937 (grub_acpi_madt_entry_lsapic): Likewise.
23938 (grub_acpi_madt_entry_platform_int_source): Likewise.
23939 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
23940 (PRIuGRUB_UINT32_T): Likewise.
23941 (PRIxGRUB_UINT64_T): Likewise.
23943 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23945 Implement loading palette on ieee1275_fb.
23947 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
23948 (have_setcolors): Likewise.
23949 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
23950 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
23951 (grub_video_ieee1275_set_palette): Implement.
23953 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23954 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
23956 * util/grub-install.in (grub_partition): New variable.
23957 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
23958 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
23959 Fixes a bug reported by Yves Blusseau.
23961 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
23965 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
23966 =grub_cpu_flush_cache on all mips and not only yeeloong.
23967 * configure.ac (COND_mips): New conditional.
23968 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
23970 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
23971 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
23972 [GRUB_LINKER_HAVE_INIT]: New function.
23973 (grub_emu_post_init): Likewise.
23974 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
23975 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
23976 * include/grub/cache.h (_mips): Include mips/cache.h.
23977 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
23978 LVM and RAID prototypes.
23979 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
23980 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
23983 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23985 * util/grub-install.in: Don't try to verify core.img until after
23986 running grub-mkimage to create it.
23988 2010-09-10 Robert Millan <rmh@gnu.org>
23990 * util/grub.d/10_hurd.in: Add misc readability checks.
23991 * util/grub.d/10_kfreebsd.in: Likewise.
23992 * util/grub.d/10_linux.in: Likewise.
23994 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
23996 * util/grub-install.in: ${imgext} won't be defined here until the
23997 install branch is merged. For the meantime, only verify core.img on
23998 i386-pc and sparc64-ieee1275 platforms.
24000 2010-09-10 Robert Millan <rmh@gnu.org>
24002 Solaris support in grub_find_zpool_from_dir(). Thanks
24003 Seth Goldberg for referring to getextmntent() facility.
24005 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24007 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24009 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24010 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24011 method for finding zpool name.
24013 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24015 grub-fstest needs the host and hostfs modules while other utilities
24016 actively require those modules to be absent, so grub-fstest needs
24017 its own initialisation and finalisation code.
24019 * Makefile.am (grub_fstest.pp): New target.
24020 (grub_fstest_init.lst): Likewise.
24021 (grub_fstest_init.c): Likewise.
24022 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24024 2010-09-10 Robert Millan <rmh@gnu.org>
24026 * configure.ac: Check for `struct statfs.f_fstypename' and
24027 `struct statfs.f_mntfromname'.
24029 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24030 kFreeBSD-specific code.
24032 2010-09-10 Robert Millan <rmh@gnu.org>
24034 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24035 on ZFS. Now non-main filesystems are supported as / too.
24037 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24039 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24040 and grub-core/disk/host.c to ...
24041 (grub-fstest): ... here. Having the host disk implementation
24042 present confuses grub-probe and other utility programs.
24044 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24045 when writing to a file, not when writing to stdout.
24047 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24049 * tests/partmap_test.in: New test for partitions.
24050 * Makefile.util.def: Rules for new test.
24052 2010-09-09 Robert Millan <rmh@gnu.org>
24054 * util/grub-probe.c (probe): Fix a pair of unhandled error
24057 2010-09-09 Robert Millan <rmh@gnu.org>
24059 Basic Btrfs support (detection and UUID).
24061 * grub-core/fs/btrfs.c: New file.
24062 * Makefile.util.def (library): Register btrfs.c.
24063 * grub-core/Makefile.core.def: Likewise.
24065 2010-09-08 Robert Millan <rmh@gnu.org>
24067 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24068 with (optional) parameters to specify device and relative path.
24069 * util/grub-install.in: Use is_path_readable_by_grub() to
24070 verify readability of a few critical files.
24071 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24072 verify readability of grub.cfg.new.
24074 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24076 Split minix.mod into minix.mod and minix2.mod.
24078 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24079 * grub-core/Makefile.core.def (minix2): New module.
24080 * grub-core/fs/minix.c: Use definitions instead of runtime version
24082 * grub-core/fs/minix2.c: New file.
24084 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24086 Add new --boot-directory option to replace --root-directory
24088 * util/grub-install.in: Add new --boot-directory option
24089 * util/grub-reboot.in: Likewise.
24090 * util/grub-set-default.in: Likewise.
24092 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24094 * util/grub-mkconfig.in: Use new variable.
24096 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24098 * configure.ac: Define some useful variables.
24100 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24102 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24103 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24104 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24105 Use terminfo and don't use cursor-on/cursor-off unless it's known
24107 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24108 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24110 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24112 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24113 starts with "(,", fill the drive containing the loaded image in
24114 between those two characters, but expect that a full partition
24115 specification including partition map names will follow.
24117 2010-09-08 Robert Millan <rmh@gnu.org>
24119 * configure.ac: Remove `--enable-grub-fstest' option.
24120 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24122 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24123 `grub-fstest' instead of `grub-probe' for readability verification.
24124 * util/grub-probe.c (probe): Remove readability verification kludge.
24126 2010-09-08 Robert Millan <rmh@gnu.org>
24128 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24129 initializing `GRUB_FS'.
24131 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24133 Not command (!) support to GRUB script.
24135 * tests/grub_script_not.in: New test.
24136 * Makefile.util.def: Rules for new test.
24138 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24139 ! command as a special case.
24140 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24142 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24144 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24147 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24149 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24151 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24153 * docs/grub.texi (Shell-like scripting): Documentation for break,
24154 continue, shift and return commands.
24156 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24158 Rename CD-ROM to cd on BIOS.
24160 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24162 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24164 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24166 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24167 * util/grub-probe.c (main): Likewise.
24168 * util/i386/pc/grub-setup.c (main): Likewise.
24169 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24170 Reported and debugged by: alexxy
24172 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24174 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24177 2010-09-05 Jo Shields <directhex@apebox.org>
24179 * util/grub.d/30_os-prober.in: Add missing classes.
24181 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24183 * docs/grub.texi (Theme file format): Document new position format.
24185 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24187 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24188 a table. Use @code instead of @verbatim.
24190 2010-09-05 Colin D Bennett <colin@gibibit.com>
24192 Gfxmenu documentation.
24194 * docs/grub.texi (Theme file format): New chapter.
24196 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24198 * grub-core/Makefile.core.def (xzio): New module.
24199 * grub-core/io/xzio.c: New file.
24200 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24201 * grub-core/lib/xzembed/xz_config.h: Likewise.
24202 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24203 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24204 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24205 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24206 * grub-core/lib/xzembed/xz_private.h: Likewise.
24207 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24208 * include/grub/file.h (grub_file_filter_id): New compression filter
24209 GRUB_FILE_FILTER_XZIO.
24211 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24213 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24214 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24217 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24219 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24220 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24222 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24224 Uncompressed checksum support.
24226 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24227 (check_list): New parameter uncompress.
24228 (grub_cmd_hashsum): Handle --uncompress.
24230 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24232 Reintroduce testload.
24234 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24236 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24237 (GRUB_MOD_INIT): New function.
24238 (GRUB_MOD_FINI): Likewise.
24239 * grub-core/Makefile.core.def (testload): New module.
24241 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24243 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24244 (uint8_t): New type.
24245 (uint16_t): Likewise.
24246 (uint32_t): Likewise.
24247 (uint64_t): Likewise.
24249 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24251 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24253 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24255 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24257 (grub_gzfile_open): Removed. All users updated.
24258 (GRUB_MOD_INIT): New function.
24259 (GRUB_MOD_FINI): Likewise.
24260 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24261 (grub_file_filters_enabled): Likewise.
24262 (grub_file_open): Handle filters.
24263 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24264 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24265 * include/grub/file.h (grub_file_filter_id_t): New type.
24266 (grub_file_filter_t): Likewise.
24267 (grub_file_filters_all): New extern variable.
24268 (grub_file_filters_enabled): Likewise.
24269 (grub_file_filter_register): New inline function.
24270 (grub_file_filter_unregister): Likewise.
24271 (grub_file_filter_disable): Likewise.
24272 (grub_file_filter_disable_compression): Likewise.
24273 * include/grub/gzio.h: Removed.
24275 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24277 Filename expansion support for wildcards in GRUB script.
24279 * tests/grub_script_expansion.in: New test.
24280 * Makefile.util.def: Rule for new test.
24282 * grub-core/commands/wildcard.c: New file, implements filename
24283 expansion support for GRUB script.
24284 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24285 * grub-core/script/argv.c: Cosmetic changes.
24286 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24287 Refactored to perform wildcard expansion on arguments.
24288 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24291 * tests/util/grub-shell.in: Fix quoting for read input.
24293 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24295 Support for updating environment variables with matched substrings
24298 * tests/grub_cmd_regexp.in: New test.
24299 * Makefile.util.def: Rule for new test.
24301 * grub-core/commands/regexp.c: New option -s to update environment
24302 variables with regexp matches.
24304 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24306 * include/grub/file.h (grub_file): New member not_easly_seekable.
24307 (grub_file_seekable): New inline function.
24308 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24310 (grub_gzio_open): Set not_easly_seekable.
24311 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24312 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24314 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24316 Support for options to appear multiple times on cmdline.
24318 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24319 * grub-core/commands/extcmd.c: Support for repeatable option.
24320 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24321 repeatable option support.
24323 Refactor menuentry into a regular command.
24325 * grub-core/commands/menuentry.c: New file, menuentry command
24327 * grub-core/Makefile.core.def: Rule update for normal.mod.
24328 * grub-core/normal/main.c: Moved menuentry creation to
24329 grub-core/commands/menuentry.c.
24330 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24331 (grub_menu_execute_entry_real): Removed.
24332 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24334 (grub_script_execute_menuentry): Removed.
24335 * grub-core/script/parser.y (menuentry): Removed.
24336 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24337 * grub-core/script/yylex.l (menuentry): Removed.
24338 * include/grub/menu.h (grub_menu_init): New prototype.
24339 (grub_menu_fini): New prototype.
24340 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24341 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24342 (grub_script_execute_sourcecode): New prototype.
24344 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24346 "return" command for GRUB script functions.
24348 * tests/grub_script_return.in: New test.
24349 * Makefile.util.def: Rules for new test.
24351 * grub-core/script/execute.c (grub_script_return): New function.
24352 * grub-core/script/main.c: Register/unregister return commaond.
24353 * include/grub/script_sh.h (grub_script_return): New prototype.
24355 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24357 "setparams" command to update positional parameters.
24359 * tests/grub_script_setparams.in: New test.
24360 * Makefile.util.def: Rules for new test.
24362 * grub-core/script/argv.c (grub_script_argv_make): New function.
24363 * grub-core/script/execute.c (replace_scope): New function.
24364 (grub_script_setparams): New function.
24365 * grub-core/script/lexer.c: Remove unused variables.
24366 * grub-core/script/main.c: Register/unregister setparams command.
24367 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24368 (grub_script_setparams): New prototype.
24370 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24372 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24375 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24377 Support for passing block of commands as an argument to extcmds.
24379 * Makefile.util.def: Rules for new test.
24380 * tests/grub_script_blockarg.in: New test.
24381 * grub-core/tests/test_blockarg.c: New file, block argument
24382 command used in the test.
24384 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24385 (grub_register_extcmd_prio): New function prototype.
24386 (grub_extcmd_dispatcher): New function prototype.
24387 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24389 * include/grub/script_sh.h (struct grub_script): New members
24390 `children', `next_siblings' and `refcnt' for block arguments and
24391 reference counting.
24392 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24393 (grub_script_arg): New member `script' for block argument.
24394 (grub_script_argv): New member `script' for block argument.
24395 (grub_parser_param): New member `scripts' for block argument.
24396 (grub_script_mem_free): New extern function prototype.
24397 (grub_script_ref): New function prototype.
24398 (grub_script_unref): New function prototype.
24400 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24401 extcmd form to support block arguments.
24402 * grub-core/script/argv.c: Block arguments support.
24403 * grub-core/script/execute.c: Likewise.
24404 * grub-core/script/lexer.c: Likewise.
24405 * grub-core/script/main.c: Likewise.
24406 * grub-core/script/script.c: Likewise.
24407 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24410 * grub-core/commands/acpi.c: Update extcmd implementations with
24411 grub_extcmd_context_t.
24412 * grub-core/commands/cat.c: Likewise.
24413 * grub-core/commands/echo.c: Likewise.
24414 * grub-core/commands/extcmd.c: Likewise.
24415 * grub-core/commands/hashsum.c: Likewise.
24416 * grub-core/commands/hdparm.c: Likewise.
24417 * grub-core/commands/help.c: Likewise.
24418 * grub-core/commands/hexdump.c: Likewise.
24419 * grub-core/commands/i386/cpuid.c: Likewise.
24420 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24421 * grub-core/commands/i386/pc/halt.c: Likewise.
24422 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24423 * grub-core/commands/iorw.c: Likewise.
24424 * grub-core/commands/keystatus.c: Likewise.
24425 * grub-core/commands/loadenv.c: Likewise.
24426 * grub-core/commands/ls.c: Likewise.
24427 * grub-core/commands/lspci.c: Likewise.
24428 * grub-core/commands/memrw.c: Likewise.
24429 * grub-core/commands/probe.c: Likewise.
24430 * grub-core/commands/search_wrap.c: Likewise.
24431 * grub-core/commands/setpci.c: Likewise.
24432 * grub-core/commands/sleep.c: Likewise.
24433 * grub-core/disk/loopback.c: Likewise.
24434 * grub-core/hello/hello.c: Likewise.
24435 * grub-core/loader/i386/bsd.c: Likewise.
24436 * grub-core/loader/xnu.c: Likewise.
24437 * grub-core/term/gfxterm.c: Likewise.
24438 * grub-core/term/serial.c: Likewise.
24439 * grub-core/tests/lib/functional_test.c: Likewise.
24441 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24443 Multi-line quoted strings support.
24445 * grub-core/script/lexer.c (append_newline): Removed.
24446 (grub_script_lexer_yywrap): Refactored.
24447 (grub_script_lexer_init): Refactored.
24448 * grub-core/script/yylex.l (yywrap): New function.
24449 (grub_lexer_resplit): New function.
24450 (grub_lexer_unput): New function.
24451 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24453 * tests/grub_script_echo1.in: Added few more testcases.
24455 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24457 * grub-core/kern/misc.c: Don't add abort alias in utils.
24458 Reported by: echoline.
24460 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24462 Add missing files into "make dist" tarball for other platforms.
24464 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24465 * conf/Makefile.common (dist_noinst_DATA): New variable.
24466 * conf/Makefile.extra-dist: Added missing make dist files.
24467 * grub-core/Makefile.core.def: Likewise.
24469 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24471 Compress grub_prefix.
24473 * grub-core/boot/i386/pc/lnxboot.S: Use
24474 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24475 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24476 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24477 GRUB_MACHINE_PREFIX_END. All users updated.
24478 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24479 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24481 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24482 * util/grub-mkimage.c (image_target_desc): Change data_end to
24483 prefix_end. All users updated.
24485 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24487 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24489 (grub_openbsd_boot): Likewise.
24490 (grub_netbsd_boot): Likewise.
24491 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24492 (grub_xnu_boot): Likewise.
24494 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24496 * configure.ac: Clean LIBS variable after tests.
24498 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24500 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24502 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24504 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24505 echo if libdevmapper will be used.
24507 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24509 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24510 constant for the same file.
24512 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24514 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24516 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24518 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24521 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24523 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24524 required by the boot protocol.
24526 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24527 ebp and edi members.
24528 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24529 state.ebp and state.edi.
24530 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24531 %ebp and %edi according to grub_relocator32_ebp and
24532 grub_relocator32_edi respectively.
24533 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24536 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24538 Add i386-pc-pxe image target.
24540 * util/grub-mkimage.c (image_target_desc): New enum value
24542 (image_targets): New target i386-pc-pxe.
24543 (generate_image): Handle i386-pc-pxe image.
24545 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24549 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24550 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24552 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24553 (grub_pxe_pxenv): Correct type.
24555 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24557 * NEWS: Document most of the important changes since 1.98.
24559 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24561 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24562 generated manual page) a little.
24564 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24566 * docs/grub.texi: Add myself as an author.
24568 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24570 * Makefile.util.def (libgrub.a): Add missing sunpc.
24571 Reported by: Seth Goldberg.
24573 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24575 Interrupt wrapping and code simplifications.
24577 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24578 x86_noieee1275 which are functionaly equivalent in this case.
24579 (grub-install): Make source on each platform explicit. Enable on
24581 * gentpl.py (x86_efi_pc): Removed group.
24582 (x86_noefi): Likewise.
24583 (i386_noefi): Likewise.
24584 (x86_noieee1275): Likewise.
24585 (i386_noieee1275): Likewise.
24586 (i386_noefi_noieee1275): Likewise.
24587 (i386_pc_qemu_coreboot): Likewise.
24588 (i386_coreboot_multiboot): Likewise.
24589 (i386_pc_coreboot_multiboot_qemu): Likewise.
24590 (x86_noefi_mips): Likewise.
24591 (noieee1275): Likewise.
24592 (ieee1275_mips): Likewise.
24593 (noemu_noieee1275): Likewise.
24596 (videoinkernel): Likewise.
24597 (videomodules): Likewise.
24598 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24599 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24600 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24601 include/grub/loader.h, include/grub/msdos_partition.h,
24602 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24603 include/grub/machine/console.h, include/grub/machine/vga.h,
24604 include/grub/machine/vbe.h, include/grub/machine/init.h,
24605 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24606 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24607 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24608 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24609 * grub-core/Makefile.core.def (kernel): Explicit the source for
24610 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24611 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24612 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24613 Use videoinkernel tag.
24614 (usb): Enable on all usb.
24615 (usbserial_common): Likewise.
24616 (usbserial_pl2303): Likewise.
24617 (usbserial_ftdi): Likewise.
24618 (uhci): Enable on all x86.
24619 (ohci): Enable on all pci.
24620 (cmostest): Enable on all CMOS.
24621 (acpi): Include commands/acpi.c on all platforms.
24622 (halt): Add relevant lib/*/halt.c.
24623 (hdparm): Enable on all pci.
24625 (usbtest): Enable on all usb.
24626 (ata): Enable on all pci.
24627 (ata_pthru): Likewise.
24628 (usbms): Enable on all usb.
24629 (usb_keyboard): Likewise.
24630 (font): Use tag videomodules.
24632 (datetime): Use tag cmos. Enable on all noemu.
24633 (mmap): Use tags common and x86.
24634 (gfxterm): Use tag videomodules.
24635 (bitmap): Likewise.
24636 (bitmap_scale): Likewise.
24637 (video_fb): Likewise.
24639 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24640 adjust padding accordingly. All users updated.
24641 (grub_ohci_transaction): Fix bad format specification.
24642 (GRUB_MOD_INIT): Add asserts for struct size.
24643 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24644 (grub_alloc_td): Likewise.
24645 (grub_free_queue): Likewise.
24646 (grub_uhci_transfer): Likewise.
24647 (grub_uhci_transaction): Fix bad format specification.
24648 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24649 (grub_usb_bulk_readwrite): Likewise.
24650 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24651 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24653 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24655 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24656 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24657 Transformed into C.
24658 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24659 Moved from here ...
24660 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24661 ... here. Transformed into C. Made static.
24662 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24663 Moved from here ...
24664 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24665 ... here. Transformed into C. Made static.
24666 * grub-core/kern/i386/pc/startup.S
24667 (grub_biosdisk_check_int13_extensions): Moved from here ...
24668 * grub-core/disk/i386/pc/biosdisk.c
24669 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24671 * grub-core/kern/i386/pc/startup.S
24672 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24673 * grub-core/disk/i386/pc/biosdisk.c
24674 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24675 Transformed into C. Made static.
24676 * grub-core/kern/i386/pc/startup.S
24677 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24678 * grub-core/disk/i386/pc/biosdisk.c
24679 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24680 Transformed into C. Made static.
24681 * grub-core/kern/i386/pc/startup.S
24682 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24683 * grub-core/disk/i386/pc/biosdisk.c
24684 (grub_biosdisk_get_diskinfo_standard): ... here.
24685 Transformed into C. Made static.
24686 * grub-core/kern/i386/pc/startup.S
24687 (grub_biosdisk_get_num_floppies): Moved from here ...
24688 * grub-core/disk/i386/pc/biosdisk.c
24689 (grub_biosdisk_get_num_floppies): ... here.
24690 Transformed into C. Made static.
24691 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24693 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24694 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24695 Transformed into C. Made static.
24696 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24697 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24698 Transformed into C. Made static.
24699 * grub-core/kern/i386/ieee1275/init.c: Removed.
24700 * grub-core/kern/i386/misc.S: Likewise.
24701 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24702 Splitted from here ...
24703 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24704 Transformed into C. Made static. All users updated.
24705 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24706 Transformed into C. Made static. All users updated.
24707 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24709 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24710 Transformed into C. Made static. All users updated.
24711 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24713 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24714 Transformed into C. Made static. All users updated.
24715 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24716 Removed (replaced by C version).
24717 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24719 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24720 Transformed into C. Made static.
24721 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24723 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24724 ... here. Transformed into C.
24725 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24727 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24728 ... here. Transformed into C.
24729 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24731 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24732 ... here. Transformed into C. Made static.
24733 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24735 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24736 ... here. Transformed into C.
24737 * grub-core/kern/i386/pc/startup.S
24738 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24739 * grub-core/video/i386/pc/vbe.c
24740 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24741 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24743 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24744 ... here. Transformed into C.
24745 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24747 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24748 ... here. Transformed into C.
24749 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24751 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24752 ... here. Transformed into C.
24753 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24755 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24756 ... here. Transformed into C.
24757 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24759 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24760 ... here. Transformed into C. Made static.
24761 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24763 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24764 ... here. Transformed into C. Made static.
24765 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24767 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24768 ... here. Transformed into C. Made static.
24769 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24770 pxe_rm_entry as third argument.
24771 (grub_bios_interrupt): New function.
24772 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24773 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24774 of calling grub_stop.
24775 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24776 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24777 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24778 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24779 * grub-core/lib/i386/halt.c: Moved from here ...
24780 * grub-core/lib/i386/halt.c: ... here.
24781 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24782 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24783 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24785 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24786 * include/grub/i386/coreboot/init.h: Removed.
24787 * include/grub/i386/multiboot/init.h: Likewise.
24788 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24789 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24790 * include/grub/i386/pc/int.h: New file.
24791 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24792 (grub_pxe_scan): Removed.
24793 (grub_pxe_call): Update prototype.
24794 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24796 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24797 * include/grub/i386/qemu/init.h: Removed.
24798 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24800 (grub_halt): Likewise.
24801 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24802 (grub_reboot): Likewise.
24803 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24804 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24805 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24807 2010-08-30 Robert Millan <rmh@gnu.org>
24809 * NEWS: Document addition of ZFS support in `grub-install' and
24812 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24814 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24817 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24819 Remove leftover embedding of font objects.
24821 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24822 * util/grub-install.in (font): Removed.
24823 * util/grub-mkimage.c (generate_image): Remove font support. All users
24826 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24828 Remove leftover embedding of font objects.
24830 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24831 * util/grub-install.in (font): Removed.
24832 * util/grub-mkimage.c (generate_image): Remove font support. All users
24835 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24837 * docs/grub.texi (Network): Fix reference to pxe_blksize.
24838 Reported by: Ian Turner
24840 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24842 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24843 timeout to avoid indefinite boot stalling.
24845 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24847 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24848 (grub_env_write_color_highlight): Likewise.
24850 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24852 * grub-core/normal/term.c (print_more): Return to normal and not
24853 to standard state after printing "---MORE---".
24855 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24857 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
24858 Mask out the bit 0x80 since it has other meaning that specifiing color.
24860 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24862 New relocator. Allows for more kernel support and more straightforward
24865 * Makefile.am (BOOTTARGET): New variable.
24866 (QEMU32): Likewise.
24867 (linux.init.x86_64): New target.
24868 (linux.init.i386): Likewise.
24869 (multiboot.elf): Likewise.
24870 (kfreebsd.elf): Likewise.
24871 (kfreebsd.aout): Likewise.
24872 (pc-chainloader.elf): Likewise.
24873 (pc-chainloader.bin): Likewise.
24874 (ntldr.elf): Likewise.
24875 (ntldr.bin): Likewise.
24876 (multiboot2.elf): Likewise.
24877 (kfreebsd.init.x86_64): Likewise.
24878 (kfreebsd.init.i386): Likewise.
24879 (knetbsd.init.i386): Likewise.
24880 (kopenbsd.init.i386): Likewise.
24881 (knetbsd.init.x86_64): Likewise.
24882 (kopenbsd.init.x86_64): Likewise.
24883 (linux-initramfs.i386): Likewise.
24884 (linux-initramfs.x86_64): Likewise.
24885 (kfreebsd-mfsroot.i386.img): Likewise.
24886 (knetbsd.image.i386): Likewise.
24887 (kopenbsd.image.i386): Likewise.
24888 (kopenbsd.image.x86_64): Likewise.
24889 (knetbsd.miniroot-image.i386.img): Likewise.
24890 (kfreebsd-mfsroot.x86_64.img): Likewise.
24891 (knetbsd.image.x86_64): Likewise.
24892 (knetbsd.miniroot-image.x86_64.img): Likewise.
24893 (kfreebsd-mfsroot.i386.gz): Likewise.
24894 (bootcheck-kfreebsd-i386): Likewise.
24895 (kfreebsd-mfsroot.x86_64.gz): Likewise.
24896 (bootcheck-kfreebsd-x86_64): Likewise.
24897 (knetbsd.miniroot-image.i386.gz): Likewise.
24898 (bootcheck-knetbsd-i386): Likewise.
24899 (bootcheck-kopenbsd-i386): Likewise.
24900 (bootcheck-kopenbsd-x86_64): Likewise.
24901 (knetbsd.miniroot-image.x86_64.gz): Likewise.
24902 (bootcheck-knetbsd-x86_64): Likewise.
24903 (bootcheck-linux-i386): Likewise.
24904 (bootcheck-linux-x86_64): Likewise.
24905 (bootcheck-linux16-i386): Likewise.
24906 (bootcheck-linux16-x86_64): Likewise.
24907 (bootcheck-multiboot): Likewise.
24908 (bootcheck-multiboot2): Likewise.
24909 (bootcheck-kfreebsd-aout): Likewise.
24910 (bootcheck-pc-chainloader): Likewise.
24911 (bootcheck-ntldr): Likewise.
24912 (CLEANFILES): Add new targets.
24913 (BOOTCHECKS): New variable.
24914 (.PHONY): Add bootchecks.
24915 (SUCCESSFUL_BOOT_STRING): New variable.
24916 (BOOTCHECK_TIMEOUT): Likewise.
24917 (bootcheck): New target
24918 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
24919 * configure.ac: Correct efiemu excuse.
24920 * docs/grub.texi (Supported kernels): New chapter.
24921 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
24922 include/grub/mm_private.h. Simplify inclusion of
24923 include/grub/boot.h, include/grub/loader.h
24924 and include/grub/msdos_partition.h
24925 (KERNEL_HEADER_FILES) [i386_coreboot]:
24926 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
24927 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
24928 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
24929 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
24930 include/grub/machine/loader.h.
24931 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
24932 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
24934 (pci.mod): Enable on i386-multiboot.
24935 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
24936 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
24938 (relocator.mod): Rewritten.
24939 (aout.mod): Enable on all x86.
24940 (bsd.mod): Likewise.
24941 (ntldr.mod): New module.
24942 (linux.mod): Use loader/i386/linux.c on all x86.
24943 (xnu.mod): Enable on all x86.
24944 (vga_text.mod): disable on EFI and QEMU.
24945 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
24946 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
24947 * grub-core/efiemu/loadcore.c: Likewise.
24948 * grub-core/efiemu/main.c: Likewise.
24949 (grub_efiemu_exit_boot_services): Removed.
24950 (grub_efiemu_finish_boot_services): Likewise.
24951 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
24953 * grub-core/efiemu/i386/nocfgtables.c: New file.
24954 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
24955 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
24956 (grub_efi_finish_boot_services): Moved from here ...
24957 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
24958 Fille finish memory map and related data.
24959 (finish_mmap_buf): New variable.
24960 (grub_efi_uintn_t finish_mmap_size): Likewise.
24961 (grub_efi_uintn_t finish_key): Likewise.
24962 (grub_efi_uintn_t finish_desc_size): Likewise.
24963 (grub_efi_uint32_t finish_desc_version): Likewise.
24964 (grub_efi_is_finished): Likewise.
24965 (grub_efi_get_memory_map): Use saved memory map if EFI is already
24967 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
24968 (grub_elf64_phdr_iterate): Likewise.
24969 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
24970 (grub_os_area_size): Likewise.
24971 (grub_machine_init): Don't reserve os area.
24972 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
24973 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
24974 * grub-core/kern/i386/loader.S: Removed.
24975 * grub-core/kern/i386/pc/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/pc/startup.S (grub_chainloader_real_boot):
24979 Don't call grub_dl_unload_all.
24980 Don't include loader.S.
24981 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
24982 Declare the memory after _end as available.
24983 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
24984 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
24985 (GRUB_MM_ALLOC_MAGIC): Moved from here...
24986 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
24987 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
24988 * include/grub/mm_private.h (grub_mm_header): ... here.
24989 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
24990 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
24991 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
24992 (grub_mm_region): ..here. Removed addr. Added pre_size.
24994 * grub-core/kern/mm.c (base): Renamed to ...
24995 (grub_mm_base): ... this. Made global.
24996 (grub_real_malloc): Alloc from end of region.
24997 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
24998 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
24999 * grub-core/kern/powerpc/cache_flush.S: ... here.
25000 * grub-core/lib/efi/relocator.c: New file.
25001 * grub-core/lib/i386/relocator.c: Rewritten.
25002 * grub-core/lib/i386/relocator16.S: New file.
25003 * grub-core/lib/i386/relocator32.S: Likewise.
25004 * grub-core/lib/i386/relocator64.S: Likewise.
25005 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25006 * grub-core/lib/i386/relocator_common.S: New file.
25007 * grub-core/lib/ieee1275/relocator.c: Likewise.
25008 * grub-core/lib/mips/relocator.c: Rewritten.
25009 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25010 stylistic adjustments.
25011 * grub-core/lib/powerpc/relocator.c: New file.
25012 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25013 * grub-core/lib/relocator.c: Rewritten.
25014 * grub-core/lib/x86_64/relocator_asm.S: New file.
25015 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25016 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25017 (bsd_tag): New struct.
25018 (tags): New variable.
25019 (tags_last): Likewise.
25020 (netbsd_module): New struct.
25021 (netbsd_mods): New variable.
25022 (netbsd_mods_last): Likewise.
25023 (openbsd_opts): New parameter "serial".
25024 (OPENBSD_SERIAL_ARG): New definition.
25025 (netbsd_opts): New parameter "serial".
25026 (NETBSD_SERIAL_ARG): New definition.
25027 (grub_freebsd_add_meta): Reorganised into ...
25028 (grub_bsd_add_meta): ...this. All users updated.
25029 (grub_freebsd_add_mmap): Reorganised into ...
25030 (generate_e820_mmap): ...this...
25031 (grub_bsd_add_mmap): ...and this. All users updated.
25032 (grub_freebsd_list_modules): Use tags.
25033 (grub_netbsd_add_meta_module): New function.
25034 (grub_netbsd_list_modules): Likewise.
25035 (grub_freebsd_boot): Use relocator and finish EFI.
25036 (grub_openbsd_boot): Likewise.
25037 (grub_netbsd_setup_video): New function.
25038 (grub_netbsd_add_modules): Likewise.
25039 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25041 (grub_bsd_unload): Unload tags.
25042 (grub_bsd_load_aout): Use relocator.
25043 (grub_bsd_elf32_size_hook): New function.
25044 (grub_bsd_elf32_hook): Use relocator.
25045 (grub_bsd_elf64_size_hook): New function.
25046 (grub_bsd_elf64_hook): Use relocator.
25047 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25048 (grub_bsd_load): Zero-out openbsd_ramdisk.
25049 (grub_bsd_load): Use relocator.
25050 (grub_cmd_openbsd): Support serial.
25051 (grub_cmd_netbsd): Support modules.
25052 (grub_cmd_freebsd_module): Use relocator.
25053 (grub_netbsd_module_load): New function.
25054 (grub_cmd_netbsd_module): Likewise.
25055 (grub_cmd_openbsd_ramdisk): Likewise.
25056 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25058 (GRUB_MOD_FINI): Unregister new commands.
25059 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25060 (grub_freebsd_load_elfmodule_obj): Use relocator.
25061 (grub_freebsd_load_elfmodule): Likewise.
25062 (grub_freebsd_load_elf_meta): Likewise.
25063 (grub_netbsd_load_elf_meta): New function.
25064 (grub_openbsd_find_ramdisk): Likewise.
25065 * grub-core/loader/i386/bsd_helper.S: Removed.
25066 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25067 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25068 * grub-core/loader/i386/efi/linux.c: Likewise.
25069 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25070 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25071 (DEFAULT_VIDEO_MODE): Likewise.
25072 (real_mode_target): New variable.
25073 (prot_mode_target): Likewise.
25074 (initrd_mem_target): Likewise.
25075 (relocator): Likewise.
25076 (efi_mmap_buf): Likewise.
25077 (efi_mmap_size): Likewise.
25078 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25079 (free_pages): Use relocator.
25080 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25081 (grub_linux_setup_video): Return error.
25082 (grub_linux_trampoline_start): Removed.
25083 (grub_linux_trampoline_end): Likewise.
25084 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25085 andd video parameters depending on firmware.
25086 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25087 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25088 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25089 (grub_cmd_initrd): Use relocator.
25090 * grub-core/loader/i386/linux_trampoline.S: Removed.
25091 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25092 (elf_sec_entsize): Likewise.
25093 (elf_sec_shstrndx): Likewise.
25094 (elf_sections): Likewise.
25095 (grub_multiboot_load): Use relocator.
25096 (grub_multiboot_get_mbi_size): Account for sections.
25097 (grub_multiboot_make_mbi): Use relocator and support sections.
25098 (grub_multiboot_add_elfsyms): New function.
25099 (grub_multiboot_free_mbi): Free sections.
25100 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25101 (grub_linux_real_target): Likewise.
25102 (grub_linux_real_chunk): Likewise.
25103 (grub_linux16_prot_size): Likewise.
25104 (grub_linux16_boot): Use relocator.
25105 (grub_linux_unload): Unload relocator.
25106 (grub_cmd_linux): Use relocator.
25107 (grub_cmd_initrd): Likewise.
25108 * grub-core/loader/i386/pc/ntldr.c: New file.
25109 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25110 Don't try to guess CPU frequency.
25111 (grub_xnu_set_video): Stretch bitmap.
25112 (grub_xnu_boot): Use relocator.
25113 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25114 (grub_linux_unload): Free relocator.
25115 (grub_linux_load32): Use relocator.
25116 (grub_linux_load64): Likewise.
25117 (grub_cmd_initrd): Likewise.
25118 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25119 (grub_multiboot_unload): Unload relocator.
25120 (grub_cmd_multiboot): Use relocator.
25121 (grub_cmd_module): Likewise.
25122 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25123 Use relocator and support sections.
25124 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25125 (elf_sec_entsize): Likewise.
25126 (elf_sec_shstrndx): Likewise.
25127 (elf_sections): Likewise.
25128 (grub_multiboot_load): Use relocator.
25129 (grub_multiboot_get_mbi_size): Account for sections.
25130 (grub_multiboot_make_mbi): Use relocator and support sections.
25131 (grub_multiboot_add_elfsyms): New function.
25132 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25133 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25134 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25135 Prototype changed. All users updated.
25136 (grub_xnu_align_heap): Simplified.
25137 (grub_xnu_writetree_toheap): Likewise.
25138 (grub_xnu_unload): Unload relocator.
25139 (grub_cmd_xnu_kernel): Use relocator.
25140 (grub_cmd_xnu_kernel64): Likewise.
25141 (grub_xnu_register_memory): Simplified.
25142 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25143 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25145 (grub_console_checkkey): Likewise.
25146 (grub_console_getkey): Likewise.
25147 (grub_console_getwh): Likewise.
25148 (grub_console_getxy): Likewise.
25149 (grub_console_gotoxy): Likewise.
25150 (grub_console_cls): Likewise.
25151 (grub_console_setcolorstate): Likewise.
25152 (grub_console_setcursor): Likewise.
25153 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25154 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25155 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25156 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25157 * grub-core/tests/boot/kernel-8086.S: Likewise.
25158 * grub-core/tests/boot/kernel-i386.S: Likewise.
25159 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25160 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25161 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25162 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25163 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25164 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25165 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25166 * grub-core/tests/boot/linux.cfg: Likewise.
25167 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25168 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25169 * grub-core/tests/boot/linux16.cfg: Likewise.
25170 * grub-core/tests/boot/multiboot.cfg: Likewise.
25171 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25172 * grub-core/tests/boot/ntldr.cfg: Likewise.
25173 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25174 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25175 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25177 * include/grub/dl.h (grub_dl_unload_all): Removed.
25178 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25179 (grub_efi_finish_boot_services): Change prototype.
25180 (grub_efi_is_finished): New variable.
25181 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25183 (grub_efiemu_finish_boot_services): Removed.
25184 (grub_machine_efiemu_init_tables): New prototype.
25185 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25186 (grub_elf64_phdr_iterate): Likewise.
25187 * include/grub/i386/bsd.h: Include relocator.h.
25188 (freebsd_tag_header): New struct.
25189 (grub_openbsd_bios_mmap): Removed.
25190 (grub_unix_real_boot): Removed.
25191 (grub_freebsd_load_elfmodule32): Changed prototype.
25192 (grub_freebsd_load_elfmodule_obj64): Likewise.
25193 (grub_freebsd_load_elf_meta32): Likewise.
25194 (grub_freebsd_load_elf_meta64): Likewise.
25195 (grub_freebsd_add_meta): Removed.
25196 (grub_netbsd_load_elf_meta32): New prototype.
25197 (grub_netbsd_load_elf_meta64): Likewise.
25198 (grub_bsd_add_meta): Likewise.
25199 (grub_openbsd_ramdisk_descriptor): New struct.
25200 (grub_openbsd_find_ramdisk32): New prototype.
25201 (grub_openbsd_find_ramdisk64): Likewise.
25202 * include/grub/i386/coreboot/loader.h: Removed.
25203 * include/grub/i386/efi/loader.h: Likewise.
25204 * include/grub/i386/ieee1275/loader.h: Likewise.
25205 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25207 * include/grub/i386/loader.h: Removed.
25208 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25210 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25211 (grub_phys_addr_t): New type.
25212 (grub_vtop): New inline function.
25213 (grub_map_memory): Likewise.
25214 (grub_unmap_memory): Likewise.
25215 * include/grub/i386/multiboot/loader.h: Removed.
25216 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25217 (NETBSD_BTINFO_CONSOLE): New definition.
25218 (NETBSD_BTINFO_SYMTAB): Likewise.
25219 (NETBSD_BTINFO_MODULES): Likewise.
25220 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25221 (grub_netbsd_bootinfo): New struct.
25222 (grub_netbsd_btinfo_common): Use explicit bitsize.
25223 (grub_netbsd_btinfo_mmap_entry): Removed.
25224 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25225 (grub_netbsd_btinfo_bootdisk): New struct.
25226 (grub_netbsd_btinfo_symtab): Likewise.
25227 (grub_netbsd_btinfo_serial): Likewise.
25228 (grub_netbsd_btinfo_modules): Likewise.
25229 (grub_netbsd_btinfo_framebuf): Likewise.
25230 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25231 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25233 (grub_openbsd_bootargs): Use explicit bitsize.
25234 (grub_openbsd_bootarg_console): New struct.
25235 (GRUB_OPENBSD_COM_MAJOR): New definition.
25236 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25237 * include/grub/i386/pc/efiemu.h: Removed.
25238 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25239 * include/grub/i386/qemu/loader.h: Removed.
25240 * include/grub/i386/relocator.h: Rewritten.
25241 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25242 * include/grub/mips/memory.h: New file.
25243 * include/grub/mips/multiboot.h: Rewritten.
25244 * include/grub/mips/relocator.h: Rewritten.
25245 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25246 (grub_vtop): New function.
25247 (grub_map_memory): Likewise.
25248 (grub_unmap_memory): Likewise.
25249 * include/grub/misc.h (ALIGN_DOWN): New definition.
25250 * include/grub/mm.h (grub_mm_check_real): New proto.
25251 (GRUB_MM_CHECK): New definition.
25252 * include/grub/mm_private.h: New file.
25253 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25254 (grub_multiboot_get_mbi_size): Removed.
25255 (grub_multiboot_make_mbi): Change prottype.
25256 (grub_multiboot_set_accepts_video): New proto.
25257 (grub_multiboot_add_elfsyms): Likewise.
25258 (grub_multiboot_payload_eip): New variable.
25259 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25261 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25263 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25264 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25265 * include/grub/powerpc/ieee1275/loader.h: Removed.
25266 * include/grub/powerpc/memory.h: New file.
25267 * include/grub/powerpc/relocator.h: Likewise.
25268 * include/grub/relocator.h: Likewise.
25269 * include/grub/relocator_private.h: Likewise.
25270 * include/grub/sparc64/ieee1275/loader.h: Removed.
25271 * include/grub/x86_64/memory.h: New file.
25272 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25273 (grub_xnu_heap_malloc): Likewise.
25274 (grub_xnu_heap_real_start): Removed.
25275 (grub_xnu_heap_start): Likewise.
25276 (grub_xnu_relocator): New variable.
25277 (grub_xnu_heap_target_start): Likewise.
25278 * tests/util/grub-shell.in: Support non-pc.
25279 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25281 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25283 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25285 (grub_bidi_logical_to_visual): Check that malloc succeded.
25286 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25288 (grub_xputs_normal): Likewise.
25290 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25292 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25295 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25297 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25299 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25301 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25303 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25305 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25308 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25310 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25312 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25314 * grub-core/normal/term.c (print_more): Fix a memory leak.
25315 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25316 (grub_xputs_normal): Likewise.
25318 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25320 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25321 the begining of the string
25323 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25325 * grub-core/script/script.c (grub_script_parse): Free parsed on
25328 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25330 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25333 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25335 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25338 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25340 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25341 (scroll_up): Fix a memory leak.
25343 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25345 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25348 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25350 Handle USB pendrives exposed as floppies.
25352 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25354 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25355 Check for partitions on all devices.
25357 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25359 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25360 (readkey): Likewise.
25362 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25364 Multiple variable names support to "export" command.
25366 * normal/context.c (grub_cmd_export): "export" command supports
25367 multiple variable names.
25369 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25371 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25372 --target=drive output to Mach device name.
25374 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25376 New Automake based build system for GRUB.
25378 * ABOUT-NLS: New file.
25379 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25380 in Makefile.util.def file.
25381 * Makefile.util.def: New file. Autogen build definitions file for
25383 * conf/Makefile.common: New file. Common variables for GRUB host
25384 utils and target modules.
25385 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25386 * docs/Makefile.am: New file. Automake file for docs.
25387 * gentpl.py: New file. Python script to generate Autogen
25389 * grub-core/Makefile.am: New file. GRUB target modules' rules
25390 that doesn't fit in Makefile.core.def file.
25391 * grub-core/Makefile.core.def: New file. Autogen build
25392 definitions file for GRUB target modules.
25393 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25394 specific setjmp.S file.
25395 * po/Makefile.am: New file.
25397 * .bzrignore: New ignores.
25398 * INSTALL: New requirements, without Ruby.
25399 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25400 * autogen.sh: Updated to invoke autogen as necessary.
25401 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25402 and defines for Automake conditionals.
25403 * geninit.sh: Refactoring.
25405 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25407 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25410 * include/grub/test.h: Fix functional test modules' naming.
25411 * grub-core/tests/example_functional_test.c: Fix test module name.
25413 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25414 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25415 * util/grub-editenv.c: Likewise.
25416 * util/grub-fstest.c: Likewise.
25417 * util/grub-mkdevicemap.c: Likewise.
25418 * util/grub-mkfont.c: Likewise.
25419 * util/grub-mkimage.c: Likewise.
25420 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25421 * util/grub-probe.c: Likewise.
25422 * util/grub-script-check.c: Likewise.
25423 * util/i386/pc/grub-setup.c: Likewise.
25424 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25426 * tests/util/grub-shell.in: Fix override directory path.
25427 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25428 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25430 * util/lvm.c: Update #includes.
25431 * util/raid.c: Likewise.
25432 * util/resolve.c: Likewise.
25433 * grub-core/bus/emu/pci.c: Likewise.
25434 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25435 * grub-core/lib/posix_wrap/string.h: Likewise.
25436 * grub-core/kern/emu/main.c: Likewise.
25438 * grub-core/gensymlist.sh: New file. Script for generating kernel
25440 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25442 * grub-core/gentrigtables.c: Fix unused variable warnings.
25444 * Makefile.in: Removed.
25445 * conf/any-emu.rmk: Removed.
25446 * conf/common.rmk: Removed.
25447 * conf/i386-coreboot.rmk: Removed.
25448 * conf/i386-efi.rmk: Removed.
25449 * conf/i386-ieee1275.rmk: Removed.
25450 * conf/i386-multiboot.rmk: Removed.
25451 * conf/i386-pc.rmk: Removed.
25452 * conf/i386-qemu.rmk: Removed.
25453 * conf/i386.rmk: Removed.
25454 * conf/mips-yeeloong.rmk: Removed.
25455 * conf/mips.rmk: Removed.
25456 * conf/powerpc-ieee1275.rmk: Removed.
25457 * conf/sparc64-ieee1275.rmk: Removed.
25458 * conf/tests.rmk: Removed.
25459 * conf/x86-efi.rmk: Removed.
25460 * conf/x86_64-efi.rmk: Removed.
25461 * gendistlist.sh: Removed.
25462 * geninitheader.sh: Removed.
25463 * genkernsyms.sh.in: Removed.
25464 * genmk.rb: Removed.
25465 * gensymlist.sh.in: Removed.
25466 * mkinstalldirs: Removed.
25468 * grub-core/boot: ... to here.
25470 * grub-core/bus: ... to here.
25471 * commands: Moved ...
25472 * grub-core/commands: ... to here.
25474 * grub-core/disk: ... to here.
25475 * efiemu: Moved ...
25476 * grub-core/efiemu: ... to here.
25478 * grub-core/font: ... to here.
25480 * grub-core/fs: ... to here.
25481 * gencmdlist.sh: Moved ...
25482 * grub-core/gencmdlist.sh: ... to here.
25483 * genemuinit.sh: Moved ...
25484 * grub-core/genemuinit.sh: ... to here.
25485 * genemuinitheader.sh: Moved ...
25486 * grub-core/genemuinitheader.sh: ... to here.
25487 * genfslist.sh: Moved ...
25488 * grub-core/genfslist.sh: ... to here.
25489 * genhandlerlist.sh: Moved ...
25490 * grub-core/genhandlerlist.sh: ... to here.
25491 * genmoddep.awk: Moved ...
25492 * grub-core/genmoddep.awk: ... to here.
25493 * genmodsrc.sh: Moved ...
25494 * grub-core/genmodsrc.sh: ... to here.
25495 * genpartmaplist.sh: Moved ...
25496 * grub-core/genpartmaplist.sh: ... to here.
25497 * genparttoollist.sh: Moved ...
25498 * grub-core/genparttoollist.sh: ... to here.
25499 * genterminallist.sh: Moved ...
25500 * grub-core/genterminallist.sh: ... to here.
25501 * gentrigtables.c: Moved ...
25502 * grub-core/gentrigtables.c: ... to here.
25503 * genvideolist.sh: Moved ...
25504 * grub-core/genvideolist.sh: ... to here.
25505 * gettext: Moved ...
25506 * grub-core/gettext: ... to here.
25507 * gfxmenu: Moved ...
25508 * grub-core/gfxmenu: ... to here.
25509 * gnulib: Moved ...
25510 * grub-core/gnulib: ... to here.
25512 * grub-core/hello: ... to here.
25514 * grub-core/hook: ... to here.
25516 * grub-core/io: ... to here.
25518 * grub-core/kern: ... to here.
25520 * grub-core/lib: ... to here.
25521 * loader: Moved ...
25522 * grub-core/loader: ... to here.
25524 * grub-core/mmap: ... to here.
25525 * normal: Moved ...
25526 * grub-core/normal: ... to here.
25527 * partmap: Moved ...
25528 * grub-core/partmap: ... to here.
25529 * parttool: Moved ...
25530 * grub-core/parttool: ... to here.
25531 * script: Moved ...
25532 * grub-core/script: ... to here.
25534 * grub-core/term: ... to here
25535 * tests/example_functional_test.c: Moved ...
25536 * grub-core/tests/example_functional_test.c: ... to here.
25537 * tests/lib/functional_test.c: Moved ...
25538 * grub-core/tests/lib/functional_test.c: ... to here.
25539 * tests/lib/test.c: Moved ...
25540 * grub-core/tests/lib/test.c: ... to here.
25542 * grub-core/video: ... to here.
25544 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25546 Replace --enable-grub-emu-modules with grub-emu-lite.
25548 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25551 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25552 * kern/emu/full.c: New file. For grub-emu specific initialization.
25553 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25554 * kern/emu/main.c: Call initialization function grub_emu_init.
25556 * Makefile.in: Include grub-emu-lite in install.
25557 * commands/parttool.c: Use grub_no_autoload to differentiate
25558 between grub-emu and grub-emu-lite.
25559 * include/grub/misc.h: New variable grub_no_autoload.
25561 * conf/any-emu.rmk: New rules for grub-emu-lite.
25562 * configure.ac: Remove --enable-grub-emu-modules.
25563 * genmk.rb: Cleanup unnecessary rules.
25564 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25566 * normal/main.c: Don't load list files on grub-emu-lite.
25567 * util/misc.c (grub_arch_sync_caches): Removed.
25569 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25571 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25572 grub-mkimage rather than grub-mkelfimage.
25573 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25575 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25577 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25578 a key after CapsLock or NumLock. It's just a qemu bug.
25580 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25582 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25583 needed by libusb wrapper.
25585 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25587 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25589 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25591 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25592 --nounzip is passed.
25594 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25596 USB hotunplugging and USB serial support.
25598 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25599 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25600 (grub_uhci_transfer): Respect timeout and set *actual.
25601 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25602 non-standard length.
25603 (grub_usb_device_attach): Autoload modules.
25604 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25605 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25606 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25608 (grub_usb_add_hub): Fill nports and children.
25609 (attach_root_port): Receive hub instead of controller.
25610 All users updated. Fill hub->devices.
25611 (grub_usb_root_hub): Allocate hub->devices.
25612 (detach_device): New function.
25613 (poll_nonroot_hub): Fill children and detach devices.
25614 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25615 actual arguments. All users updated.
25616 (grub_usb_bulk_read_extended): New function.
25617 * bus/usb/serial/common.c: New file.
25618 * bus/usb/serial/ftdi.c: Likewise.
25619 * bus/usb/serial/pl2303.c: Likewise.
25620 * commands/terminal.c (handle_command): Support wildcard.
25621 * commands/usbtest.c: Output "Unknown" instead of empty string.
25622 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25623 (usbserial_common_mod_SOURCES): New variable.
25624 (usbserial_common_mod_CFLAGS): Likewise.
25625 (usbserial_common_mod_LDFLAGS): Likewise.
25626 (pkglib_MODULES): Add usbserial_pl2303.mod.
25627 (usbserial_pl2303_mod_SOURCES): New variable.
25628 (usbserial_pl2303_mod_CFLAGS): Likewise.
25629 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25630 (pkglib_MODULES): Add usbserial_ftdi.mod.
25631 (usbserial_ftdi_mod_SOURCES): New variable.
25632 (usbserial_ftdi_mod_CFLAGS): Likewise.
25633 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25634 (pkglib_MODULES): Add serial.mod.
25635 (serial_mod_SOURCES): New variable.
25636 (serial_mod_CFLAGS): Likewise.
25637 (serial_mod_LDFLAGS): Likewise.
25638 * conf/i386-pc.rmk: Likewise.
25639 * conf/mips-yeeloong.rmk: Likewise.
25640 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25641 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25642 * disk/usbms.c (first_available_slot): New variable.
25643 (grub_usbms_attach): Don't reuse free slots due to potential cache
25645 * include/grub/serial.h: Moved to ..
25646 * include/grub/ns8250.h: ...this.
25647 * include/grub/serial.h: New file.
25648 * include/grub/term.h (grub_term_poll_usb): New variable.
25649 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25650 readkey. All users updated.
25651 (grub_terminfo_output_state): Pass term to put.
25652 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25653 (grub_usb_controller_dev): Add timeout and actual arguments to
25654 transfer. All users updated.
25655 (grub_usb_interface): New field detach_data.
25656 (grub_usb_device): New fields children and nports.
25657 (grub_usb_ep_type_t): New type.
25658 (grub_usb_get_ep_type): New function.
25659 (grub_usb_bulk_read_extended): Likewise.
25660 * include/grub/usbdesc.h (grub_usb_desc): New type.
25661 * include/grub/usbserial.h: New file.
25662 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25663 * kern/term.c (grub_term_poll_usb): New variable.
25664 (grub_getkey): Call grub_term_poll_usb if set.
25665 (grub_checkkey): Likewise.
25666 (grub_getkeystatus): Likewise.
25667 * term/serial.c: Moved controller-specific parts to ...
25668 * term/ns8250.c: ... here.
25669 * term/serial.c: Mostly rewritten.
25670 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25673 2010-08-20 Robert Millan <rmh@gnu.org>
25675 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25676 a separate module and maybe other interesting combinations.
25678 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25679 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25680 (kfreebsd_entry): Add generic filesystem module load routine.
25681 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25683 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25685 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25686 "numcenter" (I misunderstood the purpose of this entry).
25687 * docs/grub.texi (sendkey): Likewise.
25689 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25691 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25692 status flag options; simply omitting the option is equivalent and
25693 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25694 (keysym_table): Rename "num5numlock" to "numlock".
25695 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25696 can uniformly say that only the last of multiple `sendkey'
25697 invocations has any effect.
25698 * docs/grub.texi (sendkey): New section.
25700 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25702 * commands/i386/pc/sendkey.c (options): Fix three typos.
25704 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25706 Implement sendkey support.
25708 * commands/i386/pc/sendkey.c: New file.
25709 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25710 (sendkey_mod_SOURCES): New variable.
25711 (sendkey_mod_CFLAGS): Likewise.
25712 (sendkey_mod_LDFLAGS): Likewise.
25714 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25716 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25717 fix warnings from Autoconf.
25719 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25721 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25722 to avoid false positives with some assemblers that output things
25723 like "someprefix_func" as part of their output.
25725 2010-08-15 Robert Millan <rmh@gnu.org>
25727 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25729 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25730 grub_get_libzfs_handle() errors.
25732 2010-08-14 Robert Millan <rmh@gnu.org>
25734 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25735 filesystem is not ZFS.
25737 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25739 Fix for misspelled color names defaulting to black/black (bug
25740 reported by Doug Nazar)
25742 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25743 status to prototype.
25744 * normal/color.c (grub_parse_color_name_pair): Return failure
25746 (grub_env_write_color_normal): Ignore bad color names.
25747 (grub_env_write_color_highlight): Likewise.
25748 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25750 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25752 "shift" command support to GRUB script.
25754 * include/grub/script_sh.h (grub_script_shift): New prototype.
25755 * script/execute.c (grub_script_shift): New function.
25756 * script/main.c (grub_script_init): Register shift command.
25757 (grub_script_fini): Unregister shift command.
25758 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25760 * tests/grub_script_shift.in: New testcase.
25761 * conf/tests.rmk: Rules for new testcase.
25763 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25765 "continue" command support to GRUB script.
25767 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25768 (grub_script_break): Continue support.
25769 * script/main.c (grub_script_init): Register continue command.
25770 (grub_script_fini): Unregister continue command.
25772 * tests/grub_script_continue.in: New testcase.
25773 * conf/tests.rmk: Rules for new testcase.
25775 2010-08-12 BVK Chaitanya <bvk@dbook>
25777 "break" command support to GRUB script.
25779 * conf/common.rmk: Rule updates to grub-script-check.
25780 * include/grub/misc.h (grub_min): New function.
25781 * include/grub/script_sh.h (grub_script_init): New prototype.
25782 (grub_script_fini): New prototype.
25783 (grub_script_break): New prototype.
25784 * script/main.c (grub_script_init): New function.
25785 (grub_script_fini): New function.
25786 * script/execute.c (grub_script_break): New function.
25787 * normal/main.c: Calls to grub_script_{init,fini}.
25788 * util/grub-script-check.c (grub_script_break): New function.
25790 * tests/grub_script_break.in: New testcase.
25791 * conf/tests.rmk: Rules for new test case.
25793 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25795 Function parameters support to GRUB script.
25797 * script/yylex.l (VARIABLE): Regular expression update.
25798 * script/function.c (grub_script_function_call): Moved ...
25799 * script/execute.c (grub_script_function_call): ... to here.
25800 (grub_script_execute_arglist_to_argv): Removed.
25801 (grub_script_arglist_to_argv): New function.
25802 * script/argv.c: New file.
25803 (grub_script_argv_free): New function.
25804 (grub_script_argv_next): Likewise.
25805 (grub_script_argv_append): Likewise.
25806 (grub_script_argv_split_append): Likewise.
25807 * include/grub/script_sh.h (grub_script_argv): New struct.
25808 (grub_script_argv_free): New function.
25809 (grub_script_argv_next): Likewise.
25810 (grub_script_argv_append): Likewise.
25811 (grub_script_argv_split_append): Likewise.
25813 * conf/common.rmk (normal.mod): New source script/argv.c.
25815 * tests/grub_script_echo1.in: More tests.
25816 * tests/grub_script_vars1.in: Likewise.
25817 * tests/grub_script_functions.in: New test case.
25818 * conf/tests.rmk: Rules for new testcase.
25820 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25822 Remove grub_script_cmdblock struct.
25824 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25825 * script/parser.y: Likewise.
25826 * script/execute.c: Rename cmdblock suffix to cmdlist.
25827 * script/script.c: Likewise.
25828 * util/grub-script-check.c: Likewise.
25830 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25832 * .bzrignore: add grub-macho2img
25834 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25836 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25838 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25840 Remove the dump of sm712 initialisation sequence.
25842 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25843 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25844 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25845 (GRUB_VGA_CR_*): Added many registers.
25846 (GRUB_VGA_SR_*): Likewise.
25847 (GRUB_VGA_GR_*): Likewise.
25848 (grub_vga_write_arx): New function.
25849 (grub_video_hw_config): New struct.
25850 (grub_vga_set_geometry): New function.
25851 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25852 GRUB_PCI_CLASS_SUBCLASS_VGA.
25853 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25854 * video/sm712.c (grub_sm712_write_reg): New function
25855 (grub_sm712_read_reg): Likewise.
25856 (grub_sm712_sr_write): Likewise.
25857 (grub_sm712_gr_write): Likewise.
25858 (grub_sm712_cr_write): Likewise.
25859 (grub_sm712_write_arx): Likewise.
25860 (grub_sm712_cr_shadow_write): Likewise.
25861 (grub_sm712_write_dda_lookup): Likewise.
25862 (grub_video_sm712_setup): Initialise the video rather then
25863 blindly replay the dump.
25864 (main) [TEST]: Add a routine to be able to compile as standalone for
25866 * video/sm712_init.c (sm712_init): Removed.
25867 (sm712_sr_seq1): New array.
25868 (sm712_sr_seq2): Likewise.
25870 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25872 * include/grub/vga.h: Add missing grub/pci.h include.
25874 2010-08-10 Yves Blusseau <blusseau@zetam.org>
25876 * util/grub-macho2img.c (main): fix typo
25878 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25880 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
25881 (grub_vga_gr_read): Likewise.
25882 (grub_vga_cr_write): Likewise.
25883 (grub_vga_cr_read): Likewise.
25884 (grub_vga_sr_write): Likewise.
25885 (grub_vga_sr_read): Likewise.
25886 (grub_vga_palette_read): Likewise.
25887 (grub_vga_palette_write): Likewise.
25888 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
25889 (grub_sm712_sr_read): New function.
25890 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
25891 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
25893 2010-08-09 Robert Millan <rmh@gnu.org>
25895 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
25896 out unused variables on non-ZFS build.
25898 2010-08-08 Robert Millan <rmh@gnu.org>
25900 Fix path generation for sub-filesystems in ZFS.
25902 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
25905 2010-08-08 Robert Millan <rmh@gnu.org>
25907 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
25909 2010-08-08 Robert Millan <rmh@gnu.org>
25911 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
25912 exist, issue a proper error message (rely on `ls' for translated
25915 2010-08-08 Robert Millan <rmh@gnu.org>
25917 Fix grub-probe invocation.
25919 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
25921 2010-08-04 Robert Millan <rmh@gnu.org>
25923 * configure.ac: Remove checks for getfsstat() and getmntany().
25924 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
25925 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
25926 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
25927 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
25928 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
25930 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
25931 via find_mount_point_from_dir() and getfsstat() / getmntany().
25933 2010-08-04 Robert Millan <rmh@gnu.org>
25935 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
25936 (grub_find_zpool_from_mount_point): Merge into ...
25937 (grub_find_zpool_from_dir): ... this.
25938 * kern/emu/misc.c: Likewise.
25941 (grub_make_system_path_relative_to_its_root): Replace
25942 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
25943 with grub_find_zpool_from_dir().
25944 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
25946 2010-08-04 Robert Millan <rmh@gnu.org>
25948 Support OpenSolaris in ZFS device resolution.
25950 * configure.ac: Check for getmntany().
25951 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
25952 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
25955 2010-08-03 Robert Millan <rmh@gnu.org>
25957 Fix grub-emu build.
25959 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
25960 * include/grub/emu/misc.h: ... here.
25962 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
25963 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
25965 * util/misc.c: Remove `<grub/util/libzfs.h>'.
25966 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
25967 (grub_get_libzfs_handle): Move to ...
25968 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
25969 (grub_get_libzfs_handle): ... here.
25971 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
25973 * script/execute.c (grub_script_execute_cmdline): Check for NULL
25974 as command name case.
25976 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
25978 * disk/raid.c (insert_array): Select unique numbers for named arrays
25979 as well, for use as keys in the disk cache.
25981 2010-08-01 Robert Millan <rmh@gnu.org>
25983 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
25984 kFreeBSD device name, except on ZFS where the filesystem label is
25986 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
25987 `/boot/zfs/zpool.cache'.
25988 Set mountfrom kernel variable using ${kfreebsd_device}.
25990 2010-08-01 Robert Millan <rmh@gnu.org>
25992 Make it even harder to use uninitialized `libzfs_handle' (and
25993 make the interface a bit simpler).
25995 * include/grub/util/misc.h (grub_util_init_libzfs)
25996 (libzfs_handle): Remove.
25997 (grub_get_libzfs_handle): New prototype.
25999 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26001 (grub_util_init_libzfs): Remove.
26002 (grub_get_libzfs_handle): New function.
26004 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26005 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26006 accessing `libzfs_handle' directly.
26008 2010-08-01 Robert Millan <rmh@gnu.org>
26010 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26011 (grub_find_zpool_from_mount_point): New function prototypes.
26013 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26014 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26016 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26017 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26018 `static' attribute.
26020 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26021 finding zpool from mount point into ...
26022 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26024 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26025 requested path is part of a ZFS pool, use
26026 grub_find_zpool_from_mount_point() to detect its filesystem name,
26027 and generate a path with `/fsname@path' syntax.
26029 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26031 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26032 (void) rather than () so that this is a proper prototype.
26034 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26036 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26038 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26040 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26041 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26043 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26045 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26047 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26049 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26051 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26053 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26054 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26055 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26056 disable gfxpayload.
26057 (Shell-like scripting): Add real content.
26058 (Serial terminal): Suggest `terminal_input serial; terminal_output
26059 serial' rather than putting the two commands on separate lines,
26060 since console input will be inoperative after the first command.
26061 (menuentry): Document --class, --users, and --hotkey options.
26062 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26063 Vladimir Serbinenko).
26065 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26066 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26068 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26070 2010-08-01 Robert Millan <rmh@gnu.org>
26072 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26073 (grub_find_zpool_from_mount_point): New function prototypes.
26075 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26076 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26078 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26079 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26080 `static' attribute.
26082 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26083 finding zpool from mount point into ...
26084 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26086 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26087 requested path is part of a ZFS pool, use
26088 grub_find_zpool_from_mount_point() to detect its filesystem name,
26089 and generate a path with `/fsname@path' syntax.
26091 2010-08-01 Robert Millan <rmh@gnu.org>
26093 Prevent accidental use of uninitialized libzfs_handle.
26095 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26096 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26097 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26099 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26101 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26102 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26104 2010-08-01 Robert Millan <rmh@gnu.org>
26106 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26108 2010-07-31 Robert Millan <rmh@gnu.org>
26110 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26112 2010-07-31 Robert Millan <rmh@gnu.org>
26114 * kern/emu/misc.c: Add missing license header.
26116 2010-07-31 Robert Millan <rmh@gnu.org>
26118 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26120 * include/grub/util/libnvpair.h: Include `<config.h>'.
26121 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26122 declaring libnvpair prototypes ourselves.
26123 * include/grub/util/libzfs.h: Include `<config.h>'.
26124 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26125 declaring libzfs prototypes ourselves.
26127 (libzfs_handle): Moved to ...
26128 * include/grub/util/misc.h (libzfs_handle): ... here.
26129 Include `<grub/util/libzfs.h>'.
26131 2010-07-30 Robert Millan <rmh@gnu.org>
26133 * include/grub/emu/misc.h: Add missing license header.
26135 2010-07-30 Robert Millan <rmh@gnu.org>
26137 Enable `grub-probe -t device' resolution on ZFS.
26139 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26140 * include/grub/util/libnvpair.h: New file.
26141 * include/grub/util/libzfs.h: New file.
26143 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26144 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26145 `<grub/util/libnvpair.h>'.
26146 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26148 (find_mount_point_from_dir): New static function.
26149 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26151 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26152 find_root_device_from_libzfs() before ressorting to find_root_device().
26154 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26156 * util/misc.c: Include `<grub/util/libzfs.h>'.
26157 (grub_util_init_libzfs): New function.
26158 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26159 [HAVE_LIBZFS] (fini_libzfs): New static function.
26160 (grub_util_init_libzfs): New function.
26161 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26163 2010-07-30 Robert Millan <rmh@gnu.org>
26165 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26166 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26167 `warn_unused_result' attribute.
26168 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26169 (grub_xasprintf, grub_xvasprintf): Likewise.
26170 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26172 2010-07-29 Robert Millan <rmh@gnu.org>
26174 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26175 (probe): Handle `PRINT_FS_LABEL'.
26176 (main): Handle `-t fs_label'.
26178 2010-07-29 Robert Millan <rmh@gnu.org>
26180 * configure.ac: Remove grub-mkisofs checks.
26182 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26184 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26185 Reported by: Lennart Sorensen.
26187 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26189 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26190 prior to terminal_input/terminal_output separation. It's been over 1.5
26191 years and those versions weren't widely deployed.
26193 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26195 * disk/raid.c (insert_array): Don't count named arrays when looking
26196 for unused array numbers.
26197 Reported and tested by: Michael Guntsche.
26199 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26201 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26202 implementation of this so that grub-emu links again, with a note
26203 that this should support hotplugging in the future.
26205 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26207 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26209 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26211 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26213 (grub_loopback_close): Remove empty function.
26214 (grub_loopback_dev): Remove close method.
26216 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26218 Disable EFI cursor when the EFI console becomes inactive.
26220 * term/efi/console.c (grub_efi_console_init): New function.
26221 (grub_efi_console_fini): New function.
26222 (grub_console_term_output): Register init and fini methods.
26224 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26226 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26229 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26231 * disk/loopback.c (grub_loopback): Replace filename with file.
26232 (delete_loopback): Handle new semantics.
26233 (grub_cmd_loopback): Likewise.
26234 (grub_loopback_iterate): Likewise.
26235 (grub_loopback_close): Likewise.
26237 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26239 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26241 Reported by: Tito Keitel.
26243 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26245 * docs/grub.texi (Naming convention): Document new naming convention.
26247 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26248 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26250 Generate device.map in something closer to the old ordering.
26252 * util/deviceiter.c (struct device): New declaration.
26253 (compare_file_names): Rename to ...
26254 (compare_devices): ... this. Sort by kernel name in preference to
26255 the stable by-id name, but keep the latter as a fallback comparison.
26256 Update header comment.
26257 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26258 of `struct device' rather than of plain file names.
26260 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26262 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26265 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26267 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26269 (setv1table): Likewise.
26271 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26273 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26274 removing the homehost if present.
26275 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26276 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26277 removing the homehost if present.
26278 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26280 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26282 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26283 parameter. Set its pointer target to 0.
26284 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26285 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26286 `data_offset' value from the superblock for 1.x metadata.
26287 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26288 data on the device.
26289 (insert_array): Record the start sector of data on the device.
26290 (grub_raid_register): Pass start_sector parameters to
26291 grub_raid_list->detect and insert_array.
26292 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26294 (struct grub_raid): Add start_sector parameter to `detect'.
26296 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26297 __attribute__ ((packed)), leaving a comment.
26298 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26299 (grub_mdraid_detect_09): ... here and ...
26300 (grub_mdraid_detect_1x): ... here.
26302 2010-07-20 Peter Henn <peter.henn@web.de>
26304 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26305 chunk size and disk size, which are already given as sector counts
26306 as distinct from the 0.90 units. Fetch the correct device number
26307 from the role table instead of using the table index.
26309 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26311 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26312 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26313 (WriteMostly1): New macro.
26314 Set array->name to NULL for metadata format 0.90. Add support for
26315 metadata 1.x. Fix some comments.
26316 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26318 * util/getroot.c (grub_util_get_grub_dev): Add support for
26319 /dev/md/name style devices.
26321 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26323 * .bzrignore: Ignore 20_linux_xen.
26325 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26327 * util/import_unicode.py: Remove unnecessary imports.
26329 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26331 Hotplugging and USB hub support.
26333 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26334 (grub_ohci): Likewise.
26335 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26336 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26337 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26338 (GRUB_OHCI_CTRL_EDS): Likewise.
26339 (GRUB_OHCI_BULK_EDS): Likewise.
26340 (GRUB_OHCI_TDS): Likewise.
26341 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26342 (grub_ohci_ed_phys2virt): New function.
26343 (grub_ohci_virt_to_phys): Likewise.
26344 (grub_ohci_td_phys2virt): Likewise.
26345 (grub_ohci_td_virt2phys): Likewise.
26346 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26348 (grub_ohci_find_ed): New function.
26349 (grub_ohci_alloc_td): Likewise.
26350 (grub_ohci_free_td): Likewise.
26351 (grub_ohci_free_tds): Likewise.
26352 (grub_ohci_transfer): Use previously allocated memory.
26353 (grub_ohci_portstatus): Reset status changed bit.
26354 (grub_ohci_detect_dev): Supply status changed.
26355 (grub_ohci_fini_hw): Free memory.
26356 (grub_ohci_restore_hw): Reallocate memory.
26357 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26358 Reset status change.
26359 (grub_uhci_detect_dev): Supply status_change.
26360 * bus/usb/usb.c (attach_hooks): New var.
26361 (grub_usb_device_attach): New function.
26362 (grub_usb_register_attach_hook_class): Likewise.
26363 (grub_usb_unregister_attach_hook_class): Likewise.
26364 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26365 (grub_usb_add_hub): Reset connection changed bit.
26366 (attach_root_port): New function.
26367 (grub_usb_root_hub): Likewise.
26368 (poll_nonroot_hub): Likewise.
26369 (grub_usb_poll_devices): Likewise.
26370 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26371 * disk/usbms.c (grub_usbms_open): Use device hooks.
26372 (grub_usbms_iterate) :Poll devices.
26373 (grub_usbms_finddevs): Split into ...
26374 (grub_usbms_attach): ... this ...
26375 (grub_usbms_attach): ... and this.
26376 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26378 (grub_usb_interface): New fields attached and detach_hook.
26379 (grub_usb_attach_hook_class): New type.
26380 (grub_usb_attach_desc): New struct.
26381 (grub_usb_register_attach_hook_class): New function.
26382 (grub_usb_unregister_attach_hook_class): Likewise.
26383 (grub_usb_poll_devices): Likewise.
26384 (grub_usb_device_attach): Likewise.
26385 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26386 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26388 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26390 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26391 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26392 delta determination style. Works with most NetBSD partitions too.
26394 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26396 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26397 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26399 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26401 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26403 2010-07-14 Anton Blanchard <anton@samba.org>
26405 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26408 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26410 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26412 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26414 * kern/partition.c (grub_partition_check_containment): New function to
26415 check that a partition is physically contained in a parent. Since
26416 offsets are relative (and non-negative), this reduces to checking that
26417 the partition ends before its parent.
26418 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26419 (grub_partition_iterate): Likewise.
26420 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26422 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26423 partitions that start before their parent, and add debug printfs.
26425 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26427 * Makefile.in (.SUFFIX): Spell correctly, as ...
26428 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26429 bare module name without `.mod', e.g. `test') tried to invoke a
26432 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26434 * README: Point to the Info manual.
26436 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26438 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26439 2nd superblock position from partition size.
26441 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26443 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26444 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26445 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26448 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26450 Restructure SCSI .id handling.
26451 Reported and tested by: Aleš Nesrsta.
26453 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26454 (grub_atapi_dev): Changed .name to "ata". New field .id.
26455 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26456 (grub_usbms_dev): New field .id.
26457 * disk/scsi.c (grub_scsi_iterate): Generate name.
26458 (grub_scsi_open): Parse name.
26459 * include/grub/scsi.h (grub_make_scsi_id): New function.
26460 (grub_scsi_dev): Change iterate and open to number instead of naming
26461 busses. All users updated.
26462 (grub_scsi): Remove name. Add .bus.
26464 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26466 * commands/help.c (grub_cmd_help): Fix a typo.
26468 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26470 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26471 Reported and tested by: Colin Watson.
26473 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26475 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26478 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26480 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26482 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26484 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26487 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26489 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26490 and disk/raid6_recover.c.
26491 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26492 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26494 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26496 * term/gfxterm.c (repaint_schedulded): Rename to ...
26497 (repaint_scheduled): ... this. Update all callers.
26498 (repaint_was_schedulded): Rename to ...
26499 (repaint_was_scheduled): ... this. Update all callers.
26501 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26503 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26504 which we expect to be handled by upper layers.
26506 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26508 * bus/usb/usbhub.c: #include time.h header.
26510 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26512 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26513 entry_name also for entries without stat blocks (e.g. ".."); fixes
26514 corruption of the first entry in a directory.
26516 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26518 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26519 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26520 doesn't work otherwise.
26522 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26524 * docs/grub.texi (Features): Update list of supported file systems.
26525 (GNU/Linux): Update for GRUB 2.
26526 (Serial terminal): Remove mention of --disable-serial, which was a
26527 GRUB Legacy configure option. Update instructions to use
26528 `terminal_input' and `terminal_output' rather than `terminal'.
26529 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26530 configuration' and `Installing GRUB using grub-install'.
26531 (Menu entry editor): Update for GRUB 2.
26532 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26533 Document new -a, -u, and -v options.
26534 (initrd): New section.
26535 (initrd16): New section.
26536 (linux): New section.
26537 (linux16): New section.
26538 (search): The `var' argument to `--set' is optional.
26539 (GRUB only offers a rescue shell): Go into a little more detail on
26542 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26544 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26546 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26548 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26549 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26551 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26553 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26554 install_prefix, in line with install_dos_part and install_bsd_part.
26555 Add new prefix variable, which is copied to install_prefix after
26556 comparing core.img in memory with the one read from disk in the
26557 no-embedding case, and use that rather than overwriting
26558 install_prefix immediately when installing to a partition.
26559 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26562 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26564 * configure.ac: Avoid == in test command, it's not portable.
26565 * util/grub.d/30_os-prober.in: Likewise.
26567 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26569 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26571 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26573 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26574 multiple (top-level) partmaps.
26576 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26578 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26579 Reported by: Tino Keitel.
26581 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26583 Bidi and diacritics support.
26585 * Makefile.in (widthspec.bin): New target.
26586 (widthspec.h): Likewise.
26587 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26588 * autogen.sh: Generate unidata.c.
26589 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26590 * commands/ls.c (grub_ls_list_devices): Likewise.
26591 (grub_ls_list_files): Likewise.
26592 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26593 (grub_mini_cmd_lsmod): Likewise.
26594 * commands/read.c: Likewise.
26595 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26596 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26597 * lib/arg.c (grub_arg_show_help): Likewise.
26598 * lib/crypto.c (grub_password_get): Likewise.
26599 * normal/auth.c (grub_username_get): Likewise.
26600 * normal/misc.c (grub_normal_print_device_info): Likewise.
26601 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26602 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26603 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26604 (normal/charset.c_DEPENDENCIES): New variable.
26605 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26606 (pkglib_MODULES): Remove charset.mod.
26607 (charset_mod_SOURCES): Removed.
26608 (charset_mod_CFLAGS): Likewise.
26609 (charset_mod_LDFLAGS): Likewise.
26610 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26611 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26613 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26614 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26615 (kernel_img_HEADERS): Add terminfo.h.
26616 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26617 Fill ->font. Reverse ascii bitmaps.
26618 (grub_font_get_xheight): New function.
26619 * font/font.c (grub_font_get_string_width): Moved from here ...
26620 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26621 * font/font.c (grub_font_draw_string): Moved from here ...
26622 * gfxmenu/font.c (grub_font_draw_string): ... here.
26623 * font/font.c (grub_font_dup_glyph): New function.
26624 (grub_font_blit_glyph): Likewise.
26625 (grub_font_blit_glyph_mirror): Likewise.
26626 (blit_comb): Likewise.
26627 (grub_font_construct_dry_run): Likewise.
26628 (grub_font_get_constructed_device_width): Likewise.
26629 (grub_font_construct_glyph): Likewise.
26630 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26631 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26632 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26633 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26634 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26635 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26636 (grub_font_get_xheight): New proto.
26637 (grub_font_get_constructed_device_width): Likewise.
26638 (grub_font_construct_glyph): Likewise.
26639 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26640 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26641 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26642 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26643 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26644 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26645 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26646 (grub_console_getcharwidth): Likewise.
26647 * include/grub/misc.h (grub_xputs): New proto.
26648 (grub_puts): Inlined.
26649 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26650 (grub_normal_get_line_counter): Removed.
26651 (grub_install_newline_hook): Likewise.
26652 (grub_normal_get_char_counter): New proto.
26653 (grub_normal_reset_more): Likewise.
26654 (grub_xputs_normal): Likewise.
26655 * include/grub/powerpc/ieee1275/console.h: Removed.
26656 * include/grub/sparc64/ieee1275/console.h: Likewise.
26657 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26658 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26659 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26660 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26661 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26662 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26663 (grub_term_input): Pass reference to self. All users updated.
26664 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26665 Pass reference to self. New fields normal_color, highlight_color and
26666 data. All users updated.
26667 (grub_putchar): Removed.
26668 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26669 (grub_unicode_estimate_width): New function.
26670 (grub_term_getcharwidth): Add defaults.
26671 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26672 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26673 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26674 (grub_cls): Remove EXPORT_FUNC.
26675 (grub_setcolorstate): Inline.
26676 (grub_newline_hook): Removed.
26677 * include/grub/terminfo.h: Rewritten. All users updated.
26678 * include/grub/unicode.h: New file.
26679 * include/grub/video.h (grub_video_signed_rect): New type.
26680 * kern/emu/console.c (grub_console_highlight_color): Removed.
26681 (grub_console_normal_color): Likewise.
26682 (grub_console_standard_color): Made static.
26683 (grub_ncurses_putchar): Remove mapping.
26684 (grub_ncurses_getcharwidth): Removed.
26685 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26686 (grub_ncurses_setcolor): Removed.
26687 (grub_ncurses_getcolor): Likewise.
26688 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26689 (grub_console_putchar): ... this.
26690 (grub_console_putchar): Handle argument difference.
26691 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26692 console_init_early and console_init_lately.
26693 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26694 * kern/misc.c (grub_puts): Removed.
26695 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26696 (grub_vsnprintf_real): Remove str = NULL support.
26697 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26698 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26699 * kern/term.c (grub_putcode): Renamed to ...
26700 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26701 (grub_putchar): Removed.
26702 (grub_xputs_dumb): New function.
26703 (grub_xputs): New variable.
26704 * lib/charset.c: Move from here ...
26705 * normal/charset.c: ... to here.
26706 (grub_ucs4_to_utf8): New function.
26707 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26708 (join_types): New variable.
26709 (unpack_join): New function.
26710 (bidi_types): New variable.
26711 (unpack_bidi): New function.
26712 (get_bidi_type): Likewise.
26713 (get_join_type): Likewise.
26714 (is_mirrored): Likewise.
26715 (grub_unicode_get_comb_type): Likewise.
26716 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26717 (is_type_after): Likewise.
26718 (grub_unicode_aglomerate_comb): Likewise.
26719 (bidi_line_wrap): Likewise.
26720 (grub_bidi_line_logical_to_visual): Likewise.
26721 (grub_bidi_logical_to_visual): Likewise.
26722 (grub_unicode_mirror_code): Likewise.
26723 (grub_unicode_shape_code): Likewise.
26724 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26725 Don't use grub_putchar.
26726 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26727 (grub_normal_reader_init): Likewise.
26728 (grub_xputs_saved): New variable.
26729 (GRUB_MOD_INIT): Set grub_xputs.
26730 (GRUB_MOD_FINI): Restore grub_xputs.
26731 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26732 (menu_init): Avoid printing gfxmenu error.
26733 (show_menu): Use grub_normal_get_char_counter.
26734 * normal/menu_entry.c (update_screen): Fix out-of-array.
26735 (complete): Avoid NULL dereferencing.
26736 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26737 * normal/menu_text.c (print_spaces): Removed.
26738 (grub_print_ucs4): Likewise.
26739 (grub_print_message_indented): Use grub_print_ucs4.
26740 (print_message): Use grub_putcode.
26741 (print_entry): Hanlde diacritics.
26742 * normal/term.c (term_state): New type.
26743 (grub_more_lines): Removed.
26744 (term_states): New variable.
26745 (grub_normal_line_counter): Renamed to ..
26746 (grub_normal_char_counter): ...this. All users updated.
26747 (grub_normal_get_line_counter): Renamed to ...
26748 (grub_normal_get_char_counter): ... this.
26749 (grub_normal_reset_more): New function.
26750 (process_newline): Removed.
26751 (print_more): New function.
26752 (grub_install_newline_hook): Removed.
26753 (map_code): New function.
26754 (grub_puts_terminal): Use grub_print_ucs4.
26755 (putglyph): New function.
26756 (putcode_real): Likewise.
26757 (grub_putcode): Use putcode_real.
26758 (get_maxwidth): New function.
26759 (get_startwidth): Likewise.
26760 (print_ucs4_terminal): Likewise.
26761 (find_term_state): Likewise.
26762 (put_glyphs_terminal): Likewise.
26763 (print_backlog): Likewise.
26764 (print_ucs4_real): Likewise.
26765 (grub_print_ucs4): Likewise.
26766 (grub_xputs_normal): Likewise.
26767 * term/efi/console.c (grub_console_putchar): Output diacritics.
26768 (grub_console_getcharwidth): Removed.
26769 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26770 * term/gfxterm.c (clear_char): Free chars.
26771 (scroll_up): Avoid leaking memory.
26772 (grub_gfxterm_putchar): Support diacritics.
26773 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26774 * term/i386/pc/console.c (grub_console_term_output): Declare as
26775 GRUB_TERM_CODE_TYPE_VGA.
26776 * term/i386/pc/vga.c (grub_vga_term): Declare as
26777 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26778 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26779 GRUB_TERM_CODE_TYPE_VGA.
26780 * term/i386/vga_common.c (map_char): Removed.
26781 (grub_console_putchar): Likewise.
26782 (grub_console_getcharwidth): Likewise.
26783 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26784 (colors): Reordered to match terminfo.
26785 (grub_ofconsole_normal_color): Removed.
26786 (grub_ofconsole_writeesc): Likewise.
26787 (grub_ofconsole_highlight_color): Likewise.
26788 (grub_ofconsole_getcharwidth): Likewise.
26789 (grub_ofconsole_setcolorstate): Likewise.
26790 (grub_ofconsole_setcolor): Likewise.
26791 (grub_ofconsole_getcolor): Likewise.
26792 (grub_ofconsole_readkey): Renamed to ...
26793 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26795 (grub_ofconsole_checkkey): Removed.
26796 (grub_ofconsole_getkey): Likewise.
26797 (grub_ofconsole_getxy): Likewise.
26798 (grub_ofconsole_gotoxy): Likewise.
26799 (grub_ofconsole_cls): Likewise.
26800 (grub_ofconsole_refresh): Likewise.
26801 (grub_ofconsole_terminfo_input): New struct.
26802 (grub_ofconsole_terminfo_output): Likewise.
26803 (grub_ofconsole_term_input): Use terminfo.
26804 (grub_ofconsole_term_output): Likewise.
26805 (grub_console_init): Split into ...
26806 (grub_console_init_early): ...this and ...
26807 (grub_console_init_lately): ...this. Use terminfo.
26808 (grub_ofconsole_putchar): Renamed to ...
26809 (put): ... this. Remove mapping.
26810 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26811 * term/serial.c: Simplify using terminfo.
26814 (keep_track): Likewise.
26815 (registered): Likewise.
26816 (input_buf): Likewise.
26817 (npending): Likewise.
26818 (serial_translate_key_sequence): Likewise.
26819 (fill_input_buf): Likewise.
26820 (grub_serial_checkkey): Likewise.
26821 (grub_serial_getkey): Likewise.
26822 (grub_serial_getxy): Likewise.
26823 (grub_serial_gotoxy): Likewise.
26824 (grub_serial_putchar): Likewise.
26825 (grub_serial_cls): Likewise.
26826 (grub_serial_setcolorstate): Likewise.
26827 (grub_serial_setcursor): Likewise.
26828 (serial_hw_init): Use serial_hw_fetch.
26829 (grub_serial_terminfo_input): New variable.
26830 (grub_serial_terminfo_output): Likewise.
26831 (grub_serial_term_input): Use terminfo.
26832 (grub_serial_term_output): Likewise.
26833 * term/terminfo.c (putstr): Use put.
26834 (grub_terminfo_all_free): New function
26835 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26836 (grub_terminfo_output_register): New function.
26837 (grub_terminfo_output_unregister): Likewise.
26838 (grub_terminfo_getxy): Likewise.
26839 (grub_terminfo_readkey): Likewise.
26840 (grub_terminfo_checkkey): Likewise.
26841 (grub_terminfo_getkey): Likewise.
26842 (grub_terminfo_input_init): Likewise.
26843 (print_terminfo): Likewise.
26844 (grub_cmd_terminfo): Handle encoding.
26845 (grub_terminfo_gotoxy): Track position.
26846 (grub_terminfo_cls): Likewise.
26847 (grub_terminfo_putchar): Likewise.
26848 (grub_terminfo_setcolorstate): Handle colors
26849 (grub_terminfo_cursor_on): This ...
26850 (grub_terminfo_cursor_off): ... and this merged into ...
26851 (grub_terminfo_setcursor): ... this.
26852 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26853 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26854 * unicode/BidiMirroring.txt: Likewise.
26855 * unicode/UnicodeData.txt: Likewise.
26856 * unicode/COPYING: Likewise.
26857 * util/grub-editenv.c (grub_putchar): Removed.
26858 (grub_xputs_real): New function.
26859 (grub_xputs): New variable.
26860 * util/grub-fstest.c (grub_putchar): Removed.
26861 (grub_xputs_real): New function.
26862 (grub_xputs): New variable.
26863 * util/grub-mkdevicemap.c (grub_putchar): Removed.
26864 (grub_xputs_real): New function.
26865 (grub_xputs): New variable.
26866 * util/grub-probe.c (grub_putchar): Removed.
26867 (grub_xputs_real): New function.
26868 (grub_xputs): New variable.
26869 * util/grub-script-check.c (grub_putchar): Removed.
26870 (grub_xputs_real): New function.
26871 (grub_xputs): New variable.
26872 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
26873 (grub_xputs_real): New function.
26874 (grub_xputs): New variable.
26875 * util/import_unicode.py: New file.
26876 * util/grub-mkfont.c (ft_errmsgs): New array.
26877 (grub_glyph_info): Make bitmap a pointer.
26878 (file_formats): New type WIDTH_SPEC.
26879 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
26880 (options): Add width-spec.
26882 (add_char): Renamed to ...
26883 (add_glyph): ... this.
26884 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
26885 (glyph_replace): New type.
26886 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
26887 (add_char): New function.
26888 (add_subst): Likewise.
26889 (process_cursive): Likewise.
26890 (add_font): Handle GSUB.
26891 (write_font_width_spec): New function.
26892 (main): Sort glyphs.
26893 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
26894 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
26895 * kern/term.c (grub_cls): Moved from here...
26896 * normal/term.c (grub_cls): ... here.
26898 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26900 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
26901 suitable for using within the format argument of printf when
26902 converting grub_size_t.
26903 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
26904 "x" to convert grub_size_t arguments.
26906 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26908 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
26910 (list_get_minimal_size): Take selection box into account.
26912 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26914 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
26917 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26919 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
26920 devices when iterating over /dev/disk/by-id; they will be handled
26921 later if appropriate, which they aren't always (e.g. LVM).
26923 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26925 * include/grub/misc.h (grub_reboot): Declare as noreturn.
26926 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
26928 (grub_halt): Likewise.
26929 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
26931 (grub_halt): Don't return, even if all of shut-down, power-off, and
26934 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26936 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
26937 arguments, not three.
26939 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26941 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
26942 * util/grub.d/10_linux.in: Use it to check for LVM, so that
26943 LVM-on-RAID is handled correctly.
26945 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26947 * docs/grub.texi (Changes from GRUB Legacy): New section.
26948 (Future): Fix typo.
26950 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26952 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
26953 grub.d/README accidentally ends up executable for one reason or
26954 another. Ignore it.
26956 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26958 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
26959 (gpt_partition_map_iterate): Support non-512B sectors.
26961 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26963 * kern/efi/init.c (grub_efi_init): Disable watchdog.
26964 Tested by: Seth Goldberg.
26966 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26968 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
26969 Properly align mbi.
26970 Reported by: Seth Goldberg.
26972 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26974 * util/grub-mkrescue.in: Avoid module duplication.
26976 2010-07-01 Sean Finney <seanius@seanius.net>
26978 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
26980 2010-07-01 Sean Finney <seanius@seanius.net>
26982 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
26984 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26986 * disk/lvm.c (grub_lvm_checkvalue): New function.
26987 (grub_lvm_check_flag): Likewise.
26989 2010-07-01 Robert Millan <rmh@gnu.org>
26991 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
26992 Support 'p' as partition separator on kernel of FreeBSD (used
26994 (grub_util_biosdisk_get_grub_dev): Likewise.
26996 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
26998 Yeeloong firmware port.
27000 * boot/mips/yeeloong/fwstart.S: New file.
27001 * bus/cs5536.c (gpiodump): New const.
27002 (set_io_space): New function.
27003 (set_iod): Likewise.
27004 (set_p2d): Likewise.
27005 (grub_cs5536_init_geode): Likewise.
27006 * commands/mips/yeeloong/lsspd.c: New file.
27007 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27008 (serial_mod_SOURCES): New variable.
27009 (serial_mod_CFLAGS): Likewise.
27010 (serial_mod_LDFLAGS): Likewise.
27011 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27012 term/terminfo.c and term/tparm.c.
27013 (pkglib_IMAGES): Add fwstart.img.
27014 (fwstart_img_SOURCES): New variable.
27015 (fwstart_img_CFLAGS): Likewise.
27016 (fwstart_img_ASFLAGS): Likewise.
27017 (fwstart_img_LDFLAGS): Likewise.
27018 (fwstart_img_FORMAT): Likewise.
27019 (pkglib_MODULES): Add lsspd.mod.
27020 (lsspd_mod_SOURCES): New variable.
27021 (lsspd_mod_CFLAGS): Likewise.
27022 (lsspd_mod_LDFLAGS): Likewise.
27023 (pkglib_MODULES): Add halt.mod.
27024 (halt_mod_SOURCES): New variable.
27025 (halt_mod_CFLAGS): Likewise.
27026 (halt_mod_LDFLAGS): Likewise.
27027 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27028 (serial_mod_SOURCES): Removed.
27029 (serial_mod_CFLAGS): Likewise.
27030 (serial_mod_LDFLAGS): Likewise.
27031 * disk/ata.c (check_device): New function.
27032 (grub_ata_device_initialize): Use check_device.
27033 (grub_ata_iterate): Recheck devices.
27034 (grub_ata_open): Likewise.
27035 (grub_atapi_iterate): Likewise.
27036 (grub_atapi_open): Likewise.
27037 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27038 (GRUB_ATA_CH1_PORT1): Likewise.
27039 (GRUB_ATA_CH0_PORT2): Likewise.
27040 (GRUB_ATA_CH1_PORT2): Likewise.
27041 * include/grub/mips/loongson.h: New file.
27042 * include/grub/mips/yeeloong/ec.h: Likewise.
27043 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27044 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27045 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27046 * include/grub/misc.h (grub_halt): Declare as noreturn.
27047 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27048 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27049 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27050 (UART_ENABLE_DTRRTS): Likewise.
27051 (UART_ENABLE_MODEM): Removed.
27052 (UART_ENABLE_OUT2): New const.
27053 * include/grub/term.h (grub_term_register_input_active): New function.
27054 (grub_term_register_output_active): Likewise.
27055 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27057 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27058 (init_pci): New function.
27059 (grub_machine_init): Execute platform init when firmware. Init serial.
27060 (grub_halt): Implement.
27061 (grub_exit): Likewise.
27062 (grub_reboot): Likewise.
27063 * term/serial.c (serial_hw_init): Update macros.
27064 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27065 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27066 (image_targets): New target mipsel-yeeloong-flash.
27067 (generate_image): Support IMAGE_YEELOONG_FLASH.
27068 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27069 (grub_video_sm712_setup): Init card.
27070 (grub_video_sm712_set_palette): Removed.
27071 * video/sm712_init.c: New file.
27073 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27075 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27076 PATH when running help2man and then run it on the unadorned
27077 executable names, rather than passing $(builddir)/* paths to
27078 help2man. This avoids the build directory ending up in generated
27081 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27083 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27084 to avoid accidents when debugging with 'sh -x'.
27085 * util/grub-mkrescue.in: Likewise.
27086 * util/grub.d/00_header.in: Likewise.
27087 * util/grub.d/10_hurd.in: Likewise.
27088 * util/grub.d/10_kfreebsd.in: Likewise.
27089 * util/grub.d/10_linux.in: Likewise.
27090 * util/grub.d/10_netbsd.in: Likewise.
27091 * util/grub.d/10_windows.in: Likewise.
27092 * util/grub.d/20_linux_xen.in: Likewise.
27093 * util/grub.d/30_os-prober.in: Likewise.
27094 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27096 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27098 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27099 last character in the buffer.
27100 Reported by: Vladimir Serbinenko.
27102 2010-06-29 Robert Millan <rmh@gnu.org>
27104 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27105 (Command-line and menu entry commands): Document `badram' command.
27107 2010-06-28 Robert Millan <rmh@gnu.org>
27109 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27110 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27111 command using ${GRUB_BADRAM} as parameter.
27113 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27115 * docs/grub.texi (Device map): New section.
27116 (Themes): New section (stub).
27117 * Makefile.in (docs/grub.info): The info documentation now builds
27118 without errors. Make sure it stays that way.
27120 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27122 Use normal parser for menu entries.
27123 Reported by: Thomas Frauendorfer
27125 * include/grub/parser.h (grub_parser_execute): Don't export.
27126 * normal/menu.c (grub_menu_execute_entry_real): New function.
27127 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27129 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27131 * docs/grub.texi (Embedded configuration): New section (replacing
27132 old "Preset Menu" stub).
27133 (Images): New section.
27134 (configfile): Note that any menu entries defined in `file' are shown
27137 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27139 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27141 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27143 * util/grub-install.in: Add --debug-image= option.
27145 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27147 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27150 * util/deviceiter.c (check_device): Rename to ...
27151 (check_device_readable_unique): ... this. Update all callers.
27152 Maintain and check a list of which devices (by canonicalized name)
27153 have already been seen.
27154 (clear_seen_devices): New function.
27155 (compare_file_names) [__linux__]: New function.
27156 (grub_util_iterate_devices): Clear the list of seen devices on exit
27157 and (just in case) on entry.
27158 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27159 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27160 seen-devices list, superseded by general code in check_device.
27162 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27164 * commands/cat.c (options): New variable.
27165 (grub_cmd_cat): Parse options. If the --dos option is given, print
27166 DOS-style "\r\n" line endings as simple newlines (Debian bug
27168 (GRUB_MOD_INIT): Use extcmd.
27169 (GRUB_MOD_FINI): Likewise.
27170 * docs/grub.texi (cat): Document --dos.
27172 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27174 XEN with Linux grub-mkconfig support.
27176 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27177 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27178 GRUB_CMDLINE_XEN_DEFAULT.
27179 * util/grub.d/20_linux_xen.in: New file.
27181 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27183 Initialise VGA video on qemu ourselves.
27185 * boot/i386/qemu/boot.S: Don't call 0xc000.
27186 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27187 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27188 (kernel_img_HEADERS): Add pci.h.
27189 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27190 * configure.ac: Force unifont on qemu and yeeloong.
27191 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27192 (grub_vga_palette_write): Use correct register.
27193 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27194 Call grub_qemu_init_cirrus.
27195 * kern/i386/qemu/init.c: New file.
27196 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27198 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27200 2010-06-26 Pavel Roskin <proski@gnu.org>
27202 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27205 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27207 * docs/grub.texi (Simple configuration): Explain that
27208 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27209 set to `true' to disable their respective recovery entries, not
27212 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27214 Make the `source' command slightly faster.
27216 * normal/main.c (grub_normal_execute): Don't re-read list files when
27219 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27221 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27222 field position and mask size to red fields from mode_info, not
27224 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27225 Remove redundant tag->common.framebuffer_type assignment.
27226 Reported by: Seth Goldberg.
27228 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27230 Sync up other versions of the Linux loader with Robert Millan's
27231 change of 2010-01-09, "Make loader output a bit more user-friendly".
27233 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27235 (grub_cmd_linux): Likewise.
27236 (grub_cmd_initrd): Likewise.
27237 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27238 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27240 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27242 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27243 larger than MEMORY_MAP_SIZE.
27245 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27247 Fix parallel build.
27249 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27251 * script/parser.y: #include grub_script.tab.h header.
27253 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27255 Support >3GiB and <16MiB RAM in i386-qemu.
27257 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27258 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27259 (grub_lower_mem): Removed.
27260 (grub_upper_mem): Likewise.
27261 (mem_size): Made static.
27262 (above_4g): New variable.
27263 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27264 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27267 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27269 Cirrus 5446 and Bochs video cards support.
27271 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27273 (video_cirrus_mod_SOURCES): New variable.
27274 (video_cirrus_mod_CFLAGS): Likewise.
27275 (video_cirrus_mod_LDFLAGS): Likewise.
27276 (video_bochs_mod_SOURCES): Likewise.
27277 (video_bochs_mod_CFLAGS): Likewise.
27278 (video_bochs_mod_LDFLAGS): Likewise.
27279 * include/grub/vga.h: New file.
27280 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27281 (grub_video_fb_set_page_t): New type.
27282 (grub_video_fb_setup): New prototype.
27283 (grub_video_fb_swap_buffers): Likewise.
27284 (grub_video_fb_get_info_and_fini): Likewise.
27285 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27286 (CRTC_DATA_PORT): Likewise.
27287 (CRTC_CURSOR): Likewise.
27288 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27289 (CRTC_CURSOR_ADDR_LOW): Likewise.
27290 (CRTC_CURSOR_DISABLE): Likewise.
27291 (update_cursor): Use grub_vga_cr_write.
27292 (grub_vga_text_setcursor): Likewise.
27293 * video/bochs.c: New file.
27294 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27295 (palette): Likewise.
27296 (palette_size): Likewise.
27297 (framebuffer): New variable.
27298 (grub_video_fb_init): Use 'framebuffer'.
27299 (grub_video_fb_fini): Likewise.
27300 (grub_video_fb_get_info): Likewise.
27301 (grub_video_fb_get_palette): Likewise.
27302 (grub_video_fb_set_palette): Likewise.
27303 (grub_video_fb_set_viewport): Likewise.
27304 (grub_video_fb_get_viewport): Likewise.
27305 (grub_video_fb_map_color): Likewise.
27306 (grub_video_fb_map_rgb): Likewise.
27307 (grub_video_fb_map_rgba): Likewise.
27308 (grub_video_fb_unmap_color): Likewise.
27309 (grub_video_fb_unmap_color_int): Likewise.
27310 (grub_video_fb_fill_rect): Likewise.
27311 (grub_video_fb_blit_bitmap): Likewise.
27312 (grub_video_fb_blit_render_target): Likewise.
27313 (grub_video_fb_scroll): Likewise.
27314 (grub_video_fb_create_render_target): Likewise.
27315 (grub_video_fb_doublebuf_blit_init): Likewise.
27316 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27317 (doublebuf_pageflipping_update_screen): New function.
27318 (doublebuf_pageflipping_init): Likewise.
27319 (grub_video_fb_setup): Likewise.
27320 (grub_video_fb_swap_buffers): Likewise.
27321 (grub_video_fb_get_info_and_fini): Likewise.
27322 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27324 (doublebuf_pageflipping_commit): Restructured into ...
27325 (doublebuf_pageflipping_set_page): ... this.
27326 (doublebuf_pageflipping_update_screen): Removed.
27327 (doublebuf_pageflipping_init): Likewise.
27328 (double_buffering_init): Likewise.
27329 (grub_video_vbe_setup): Use grub_video_fb_setup.
27330 (grub_video_vbe_swap_buffers): Removed.
27331 (grub_video_vbe_set_active_render_target): Likewise.
27332 (grub_video_vbe_get_active_render_target): Likewise.
27333 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27334 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27335 grub_video_fb_set_active_render_target and
27336 grub_video_fb_get_active_render_target.
27337 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27338 (SEQUENCER_DATA_PORT): Likewise.
27339 (MAP_MASK_REGISTER): Likewise.
27340 (CRTC_ADDR_PORT): Likewise.
27341 (CRTC_DATA_PORT): Likewise.
27342 (START_ADDR_HIGH_REGISTER): Likewise.
27343 (START_ADDR_LOW_REGISTER): Likewise.
27344 (GRAPHICS_ADDR_PORT): Likewise.
27345 (GRAPHICS_DATA_PORT): Likewise.
27346 (READ_MAP_REGISTER): Likewise.
27347 (INPUT_STATUS1_REGISTER): Likewise.
27348 (INPUT_STATUS1_VERTR_BIT): Likewise.
27349 (get_map_mask): Use grub_vga_sr_read.
27350 (set_map_mask): Use grub_vga_sr_write.
27351 (set_read_map): Use grub_vga_gr_write.
27352 (set_start_address): Use grub_vga_cr_write.
27353 * video/sm712.c (framebuffer): Remove leftover fields.
27355 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27357 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27358 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27359 instead. Replace the gfxterm backend check with a check that
27360 ${GRUB_PREFIX}/video.lst is non-empty.
27361 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27363 (load_video): New generated function. Call it before loading
27364 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27365 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27366 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27367 * docs/grub.texi (Simple configuration): Document
27368 GRUB_VIDEO_BACKEND.
27370 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27372 Use video functions in linux and xnu loaders.
27374 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27375 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27376 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27377 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27378 loader/i386/pc/linux.c.
27379 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27380 (find_line_len): Removed.
27381 (find_framebuf): Likewise.
27382 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27383 * loader/i386/efi/xnu.c: Removed.
27384 * loader/i386/pc/xnu.c: Moved from here...
27385 * loader/i386/xnu.c: ...here.
27387 Enable priorities in video drivers.
27389 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27390 (grub_video_adapter): New field prio.
27391 (grub_video_register): Respect prio when inserting.
27392 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27393 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27394 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27395 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27396 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27397 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27398 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27402 * include/grub/video.h (grub_video_driver_id_t): New value
27403 GRUB_VIDEO_DRIVER_SDL.
27404 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27406 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27408 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27409 argument to printf.
27410 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27412 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27414 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27415 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27417 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27419 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27420 directly, and recommend grub-install instead.
27421 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27423 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27425 Fix i386-pc prefix handling with nested partitions (Debian bug
27426 #585068). Note that the case where the core image is booted using
27427 multiboot and relocated from its original location still requires
27430 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27431 with "(,", fill the boot drive in between those two characters, but
27432 expect that a full partition specification including partition map
27434 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27435 specified, write a prefix without the drive name but including a
27436 full partition specification.
27438 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27440 * util/grub-mkconfig.in: Ignore non-option arguments, for
27441 compatibility with older versions (before 2010-06-12) which did the
27442 same. In particular, this makes it easier to ship an update-grub
27443 wrapper which is compatible with that used with GRUB Legacy (Debian
27446 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27448 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27449 for manual page generation.
27451 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27453 * po/POTFILES: Remove leftover commands/handler.c.
27455 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27457 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27458 left this script non-functional.
27460 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27462 * docs/man/grub-emu.h2m: New file.
27464 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27466 * docs/grub.texi (Commands): Document reduced command set in rescue
27468 (cpuid): New section.
27470 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27472 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27473 new partition naming style.
27474 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27476 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27478 Add "-o grub.iso" like cmdline options support.
27480 * util/grub-install.in: Improve cmdline option parsing.
27481 * util/grub-mkconfig.in: Likewise.
27482 * util/grub-mkrescue.in: Likewise.
27483 * util/grub-reboot.in: Likewise.
27484 * util/grub-set-default.in: Likewise.
27485 * util/i386/efi/grub-install.in: Likewise.
27486 * util/ieee1275/grub-install.in: Likewise.
27487 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27489 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27491 * .bzrignore: Ignore 41_custom.
27493 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27495 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27497 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27499 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27500 prototype declarations.
27502 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27503 generating fs, partmap, and video lists.
27504 * include/grub/fs.h (grub_fs_register): Omit prototype if
27505 GRUB_LST_GENERATOR is defined.
27506 * include/grub/partition.h (grub_partition_map_register): Likewise.
27507 * include/grub/video.h (grub_video_register): Likewise.
27509 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27511 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27513 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27515 * util/grub-mkrescue.in: Support --xorriso argument.
27517 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27519 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27520 Suggested by: Thomas Schmitt.
27522 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27524 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27525 Suggested by: Thomas Schmitt.
27527 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27529 custom.cfg support.
27531 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27532 * util/grub.d/41_custom.in: New file.
27534 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27536 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27537 been merged back into normal.
27539 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27541 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27542 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27544 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27546 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27547 when generating manual pages.
27548 * docs/man/grub-bin2h.h2m: New file.
27549 * docs/man/grub-editenv.h2m: New file.
27550 * docs/man/grub-fstest.h2m: New file.
27551 * docs/man/grub-install.h2m: New file.
27552 * docs/man/grub-macho2img.h2m: New file.
27553 * docs/man/grub-mkconfig.h2m: New file.
27554 * docs/man/grub-mkdevicemap.h2m: New file.
27555 * docs/man/grub-mkfont.h2m: New file.
27556 * docs/man/grub-mkimage.h2m: New file.
27557 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27558 * docs/man/grub-mkrelpath.h2m: New file.
27559 * docs/man/grub-mkrescue.h2m: New file.
27560 * docs/man/grub-ofpathname.h2m: New file.
27561 * docs/man/grub-pe2elf.h2m: New file.
27562 * docs/man/grub-probe.h2m: New file.
27563 * docs/man/grub-reboot.h2m: New file.
27564 * docs/man/grub-script-check.h2m: New file.
27565 * docs/man/grub-set-default.h2m: New file.
27566 * docs/man/grub-setup.h2m: New file.
27568 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27570 Use FOR_* macros instead of *_iterate whenever possible.
27572 * commands/handler.c: Removed.
27573 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27574 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27575 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27576 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27577 (grub_probe_SOURCES): Remove kern/parser.c.
27578 (util/grub-script-check.c_DEPENDENCIES): Removed.
27579 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27580 and grub_script_check_init.c.
27581 (grub_script_check_init.lst): Removed.
27582 (grub_script_check_init.h): Likewise.
27583 (grub_script_check_init.c): Likewise.
27584 (pkglib_MODULES): Remove handler.mod and sh.mod.
27585 (handler_mod_SOURCES): Removed.
27586 (handler_mod_CFLAGS): Likewise.
27587 (handler_mod_LDFLAGS): Likewise.
27588 (normal_mod_SOURCES): Remove normal/handler.c.
27589 Add script/main.c, script/script.c, script/execute.c,
27590 script/function.c, script/lexer.c, grub_script.tab.c
27591 and grub_script.yy.c.
27592 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27593 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27594 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27595 (grub_setup_SOURCES): Remove kern/parser.c.
27596 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27597 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27598 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27599 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27600 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27601 (grub_setup_SOURCES): Remove kern/parser.c.
27602 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27603 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27604 * include/grub/command.h (grub_command_iterate): Removed.
27605 (FOR_COMMANDS): New macro.
27606 * include/grub/dl.h (grub_dl): New member next.
27607 (grub_dl_iterate): Removed.
27608 (grub_dl_head): New variable declaration.
27609 (FOR_DL_MODULES): New macro.
27610 * include/grub/fs.h: Include list.h.
27611 (grub_fs): Make next first element.
27612 (grub_fs_list): New variable declaration.
27613 (grub_fs_register): Make inline.
27614 (grub_fs_unregister): Likewise.
27615 (grub_fs_iterate): Removed.
27616 (FOR_FILESYSTEMS): New macro.
27617 * include/grub/handler.h: Removed.
27618 * include/grub/list.h (grub_list_hook_t): Removed.
27619 (grub_list_test_t): Likewise.
27620 (grub_list_pop): Likewise.
27621 (grub_list_iterate): Likewise.
27622 (grub_list_insert): Likewise.
27623 (FOR_LIST_ELEMENTS): New macro.
27624 * include/grub/parser.h (grub_parser_class): Removed.
27625 (grub_parser_register): Likewise.
27626 (grub_parser_unregister): Likewise.
27627 (grub_parser_get_current): Likewise.
27628 (grub_parser_set_current): Likewise.
27629 (grub_register_rescue_parser): Likewise.
27630 (grub_rescue_parse_line): New function.
27631 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27632 * include/grub/script_sh.h (grub_script_function_list): New variable
27634 (FOR_SCRIPT_FUNCTIONS): New macro.
27635 (grub_script_function_iterate): Removed.
27636 (grub_normal_parse_line): New prototype.
27637 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27638 (FOR_DISABLED_TERM_INPUTS): Likewise.
27639 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27640 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27641 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27643 (grub_video_register): Inline.
27644 (grub_video_unregister): Likewise.
27645 (grub_video_adapter_list): New variable declaration.
27646 (grub_video_iterate): Removed.
27647 (FOR_VIDEO_ADAPTERS): New macro.
27648 * kern/dl.c (grub_dl_list): Removed. All users updated.
27649 (grub_dl_iterate): Removed.
27650 * kern/fs.c (grub_fs_list): Make global.
27651 (grub_fs_register): Removed.
27652 (grub_fs_unregister): Likewise.
27653 (grub_fs_iterate): Likewise.
27654 * kern/handler.c: Removed.
27655 * kern/list.c (grub_list_pop): Removed.
27656 (grub_list_iterate): Likewise.
27657 (grub_list_insert): Likewise.
27658 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27659 (grub_prio_list_insert): Don't use grub_list_insert.
27660 * kern/main.c (grub_register_rescue_parser): Don't call
27661 grub_register_rescue_parser.
27662 * kern/parser.c (grub_parser_class): Removed.
27663 (grub_parser_execute): Use grub_rescue_parse_line.
27664 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27665 (grub_rescue_parser): Removed.
27666 (grub_register_rescue_parser): Likewise.
27667 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27668 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27669 (grub_auth_check_authentication): Likewise.
27670 * normal/completion.c (iterate_command): Removed.
27671 (grub_normal_do_completion): Use FOR_COMMANDS.
27672 * normal/handler.c: Removed.
27673 * normal/main.c (read_config_file): Remove parser changing.
27674 (grub_normal_execute): Don't call read_handler_list.
27675 (grub_normal_read_line_real): Statically allocate prompt.
27676 (grub_cmdline_run): Use grub_normal_parse_line.
27677 (GRUB_MOD_FINI): Don't call free_handler_list.
27678 * normal/menu_entry.c (run): Likewise.
27679 * script/function.c (grub_script_function_list): Make global.
27680 (grub_script_function_iterate): Removed.
27681 * script/main.c (grub_normal_parse_line): Make global.
27682 (grub_sh_parser): Removed.
27683 (GRUB_MOD_INIT): Likewise.
27684 (GRUB_MOD_FINI): Likewise.
27685 * tests/lib/functional_test.c (grub_functional_test): Use
27687 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27688 (grub_test_run): Use FOR_LIST_ELEMENTS.
27689 * tests/lib/unit_test.c (main): Likewise.
27690 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27692 * util/grub-fstest.c (grub_term_input_class): Removed.
27693 (grub_term_output_class): Likewise.
27694 * util/grub-probe.c: Likewise.
27695 * util/i386/pc/grub-setup.c: Likewise.
27696 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27697 * util/grub-script-check.c (main): Don't call grub_init_all and
27699 * video/video.c (grub_video_adapter_list): Make global.
27700 (grub_video_register): Removed.
27701 (grub_video_unregister): Likewise.
27702 (grub_video_iterate): Likewise.
27704 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27706 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27707 reported by Henrique Ferreiro.
27709 2010-06-09 Robert Millan <rmh@gnu.org>
27711 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27712 ones, when both are available.
27714 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27716 Make --version uniform and avoid hard-coded program name.
27718 * util/grub-mkimage.c (main): Use `program_name' instead of
27720 * util/i386/pc/grub-setup.c (main): Likewise.
27721 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27722 * util/grub-install.in: Save the basename of $0 in $self, and use the
27723 latter in informational messages. Use the same format for --version
27724 as the binary programs.
27725 * util/grub-mkconfig.in: Likewise.
27726 * util/grub-mkrescue.in: Likewise.
27727 * util/grub-reboot.in: Likewise.
27728 * util/grub-set-default.in: Likewise.
27729 * util/i386/efi/grub-install.in: Likewise.
27730 * util/ieee1275/grub-install.in: Likewise.
27731 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27733 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27735 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27736 embedding area. Use <= instead of == when checking for non-emptiness.
27738 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27740 * configure.ac: Add `.' to the directories searched for unifont.
27742 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27744 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27747 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27749 * docs/grub.texi (History): Expand to cover GRUB 2.
27750 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27751 commands, not `terminal'.
27752 (serial): Likewise.
27753 (terminal_input): New section.
27754 (terminal_output): New section.
27755 (uppermem): New section (stub).
27756 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27758 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27760 * docs/grub.texi (Security): Menu entries are unrestricted by
27761 default, not restricted to superusers as I had previously thought.
27762 Reword to account for this.
27764 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27766 * kern/emu/misc.c (device_mapper_null_log): New function.
27767 (grub_device_mapper_supported): New function.
27768 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27770 * kern/emu/hostdisk.c (find_partition_start): Check whether
27771 device-mapper is supported before trying to use it.
27772 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27774 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27776 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27777 (File name syntax): Likewise.
27778 (help): --all is no longer supported in GRUB 2. Be more precise
27779 about pattern matching.
27781 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27783 * normal/completion.c (grub_normal_do_completion): When completing
27784 arguments to "set" and the current word contains an equals sign,
27785 skip to after the equals sign before starting completion.
27787 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27789 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27791 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27793 * docs/grub.texi (Network): New section.
27794 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27795 `(nd)' as in GRUB Legacy.
27796 (pxe_unload): New section.
27798 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27800 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27801 in the rescue shell, so recommend using `set' instead. Thanks,
27804 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27806 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27807 (password): New section.
27808 (password_pbkdf2): New section.
27809 (search): New section.
27810 (Security): New section.
27811 (Troubleshooting): New section, currently very incomplete.
27812 (Invoking grub-mkpasswd-pbkdf2): New section.
27813 (Internals): New section, currently very incomplete.
27815 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27817 * util/grub.d/00_header.in: Add some more quoting (of
27818 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27820 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27822 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27824 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27825 to `count', fixing variable shadowing that broke the -c option.
27827 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27829 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27830 in case they contain spaces.
27832 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27834 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27835 "part_" to partmap module names, in line with grub-install.
27836 Reported by: Jindřich Makovička (Debian bug #584426).
27838 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27840 * util/grub-mkimage.c: Make target-related error messages slightly
27841 more helpful; -O talks about "format". Explicitly point to the use
27842 of -O if no target is specified.
27843 Reported by: Didier Raboud (Debian bug #584415).
27845 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
27847 * INSTALL: Document several build requirements for optional features
27848 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27850 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27852 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27853 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27854 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
27856 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27858 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
27859 Thanks to Jordan Uggla for spotting this.
27861 2010-06-02 Aleš Nesrsta <starous@volny.cz>
27863 Finally make USB usable.
27865 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
27866 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
27867 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
27868 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
27869 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
27870 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
27871 (GRUB_OHCI_FSMPS): Likewise.
27872 (GRUB_OHCI_PERIODIC_START): Likewise.
27873 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
27874 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
27875 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
27876 (GRUB_OHCI_SET_PORT_RESET): Likewise.
27877 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
27878 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
27879 (grub_ohci_transaction): Likewise.
27880 (grub_ohci_transfer): Improve condition detection algorithms.
27881 Handle toggle property. Program the transactions correctly.
27882 Improve error handling. Various important fixups.
27883 (grub_ohci_portstatus): Put register writes in right order.
27884 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
27885 (grub_uhci_transfer): Don't show "failed" message on success.
27886 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
27888 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
27889 determine its size.
27890 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
27891 before initialization is completed. Use IN direction for empty
27892 transfers. Use last_trans and compute toggle.
27893 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
27894 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
27895 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
27896 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
27897 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
27898 (grub_usb_device): Increase toggle to 256.
27899 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
27900 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
27901 GRUB_USBMS_SUBCLASS_SFF8070.
27902 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
27903 (grub_scsi_inquiry): New member page and alloc_length.
27904 (grub_scsi_request_sense): New structure.
27905 (grub_scsi_request_sense_data): Likewise.
27906 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
27908 * disk/scsi.c (grub_scsi_request_sense): New function.
27909 (grub_scsi_test_unit_ready): Likewise.
27910 (grub_scsi_inquiry): Fill new fields.
27911 (grub_scsi_read_capacity): Likewise.
27912 (grub_scsi_read10): Add request sense at the end.
27913 (grub_scsi_read12): Likewise.
27914 (grub_scsi_write10): Likewise.
27915 (grub_scsi_write12): Likewise.
27916 (grub_scsi_open): Add Test Unit Ready.
27917 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
27918 Support additional subclasses. Con't clear halt yet. Activate the
27919 proper config. Calculate LUNs correctly.
27920 (grub_usbms_transfer): Various important fixups.
27922 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27924 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
27925 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
27926 (grub_ohci_fini_hw): New function.
27927 (grub_ohci_restore_hw): Likewise.
27928 (GRUB_MOD_INIT(ohci)): Register preboot hook.
27929 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
27930 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
27932 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27934 Dedicated DMA allocations.
27936 * bus/pci.c (grub_memalign_dma32): New function
27937 (grub_dma_free): Likewise.
27938 (grub_dma_get_virt): Likewise.
27939 (grub_dma_get_phys): Likewise.
27940 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
27941 (grub_ohci_pci_iter): Use dma32_alloc.
27942 (grub_ohci_transfer): Likewise.
27943 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
27944 (grub_usb_bulk_readwrite): Likewise.
27945 * include/grub/pci.h: Add declarations.
27947 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
27951 * bus/cs5536.c: New file.
27952 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
27953 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
27954 (cs5536_mod_SOURCES): New variable.
27955 (cs5536_mod_CFLAGS): Likewise.
27956 (cs5536_mod_LDFLAGS): Likewise.
27957 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
27959 (kernel_img_SOURCES): Add bus/cs5536.c.
27960 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
27962 (usb_mod_SOURCES): New variable.
27963 (usb_mod_CFLAGS): New variable.
27964 (usb_mod_LDFLAGS): New variable.
27965 (usbtest_mod_SOURCES): New variable.
27966 (usbtest_mod_CFLAGS): New variable.
27967 (usbtest_mod_LDFLAGS): New variable.
27968 (ohci_mod_SOURCES): New variable.
27969 (ohci_mod_CFLAGS): New variable.
27970 (ohci_mod_LDFLAGS): New variable.
27971 (usbms_mod_SOURCES): New variable.
27972 (usbms_mod_CFLAGS): New variable.
27973 (usbms_mod_LDFLAGS): New variable.
27974 (usb_keyboard_mod_SOURCES): New variable.
27975 (usb_keyboard_mod_CFLAGS): New variable.
27976 (usb_keyboard_mod_LDFLAGS): New variable.
27977 * include/grub/smbus.h: New file.
27978 * include/grub/cs5536.h: New file.
27980 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27982 * util/grub.d/00_header.in: Add safety check to make sure that
27983 ${locale_dir} exists before trying to probe it.
27985 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27987 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
27988 per the GNU Coding Standards; this is now too obscure to be worth
27991 (chainloader): Remove cross-reference to `SCO UnixWare'.
27993 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27995 * docs/grub.texi (Chain-loading): New section.
27996 (DOS/Windows): New section, borrowed from GRUB Legacy with details
27997 adjusted for GRUB 2.
27998 (SCO UnixWare): Likewise.
28000 (chainloader): Add reference to `Block list syntax'.
28001 (drivemap): New section.
28002 (parttool): New section.
28004 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28006 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28008 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28009 (Installing GRUB using grub-install): Remove reference to the grub
28010 shell; mention `grub-mkimage' and `grub-setup' instead.
28011 (Invoking grub-install): Likewise.
28012 (Interface): Add reference to `Menu entry editor'.
28013 (serial): Remove `--device' option.
28015 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28017 * docs/grub.texi (Configuration): New section, documenting
28018 configuration file generation using grub-mkconfig. I've left a slot
28019 for documenting the full shell scripting format but have not yet
28020 started on writing that up.
28021 (Invoking grub-mkconfig): New section.
28023 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28025 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28026 (GNU GRUB manual): Likewise.
28027 (General commands): Update description of `terminfo' for GRUB 2.
28029 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28031 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28032 (GRUB_MOD_INIT): Fix capitalisation.
28033 * docs/grub.texi (Command-line and menu entry commands): Document
28034 gettext and gptsync commands.
28036 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28038 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28039 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28041 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28043 Add btrfs probing support, currently only in the single-device case.
28045 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28047 (grub_guess_root_device): Call find_root_device_from_mountinfo
28048 before looking in /dev.
28050 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28052 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28053 GRUB_DISK_SIZE_UNKNOWN.
28054 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28056 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28058 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28059 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28060 corrupted or not synced properly.
28062 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28064 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28065 Reported by: Seth Goldberg.
28067 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28069 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28071 Reported by: Seth Goldberg.
28073 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28075 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28076 Reported by: Seth Goldberg.
28078 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28080 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28081 64-bit address as signed on MIPS.
28083 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28085 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28086 to the empty string.
28088 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28090 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28092 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28093 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28094 * kern/misc.c (__enable_execute_stack): Disable on
28097 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28099 Make grub-probe work with symbolic links under /dev/mapper as well
28100 as with real block devices. The Linux world seems to be (at best)
28101 in transition here, and GRUB shouldn't get caught in the middle.
28103 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28106 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28108 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28109 input files (in which case exit zero).
28111 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28113 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28114 return NULL for various reasons even if it has a maximum-length
28115 buffer: for example, there might be a symlink loop, or the path
28116 might exceed PATH_MAX. If this happens, return NULL.
28118 2010-05-27 Robert Millan <rmh@gnu.org>
28120 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28121 partmap module to handle cross-partmap setups.
28122 Reported by Orestes Mas. Gràcies!
28124 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28126 * util/grub-mkrescue.in: Initialise override_dir rather than
28127 assuming that it's unset or empty in the environment.
28129 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28131 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28132 variable index into p_index to suppress a warning with -Wshadow.
28134 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28136 * INSTALL: Added flex >= 2.5.35 requirement.
28138 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28140 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28142 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28146 * commands/i386/cmostest.c: New file.
28147 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28148 (cmostest_mod_SOURCES): New variable.
28149 (cmostest_mod_CFLAGS): Likewise.
28150 (cmostest_mod_LDFLAGS): Likewise.
28151 * conf/i386-pc.rmk: Likewise.
28152 * docs/grub.texi (Vendor power-on keys): New section.
28153 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28154 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28155 and GRUB_BUTTON_CMOS_ADDRESS.
28156 * util/grub.d/00_header.in: Handle powering-on by separate button.
28158 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28160 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28161 Removed drawing_scrollbar argument. All users updated
28163 Reported by Jo Shields
28165 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28167 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28168 buffer since gfxterm handles double repaint.
28170 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28172 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28173 * term/gfxterm.c (real_scroll): Likewise.
28175 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28177 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28178 before calling BIOS.
28180 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28182 * include/grub/i18n.h: Always enable grub_gettext.
28184 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28186 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28187 partition naming style.
28189 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28191 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28192 not the first option.
28194 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28196 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28198 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28200 * util/misc.c: Move inclusion of <limits.h> to ...
28201 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28203 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28205 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28206 Fix merge error in NetBSD code.
28207 (find_partition_start) [__NetBSD__]: Likewise.
28209 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28211 Fix grub-mkrescue usage unit testing.
28213 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28215 2010-05-18 Christian Franke <franke@computer.org>
28217 * util/grub.d/10_windows.in: Use path names instead of
28218 drive letters to prevent warning from Cygwin 1.7.
28219 Add drivemap command to menuentry if needed.
28221 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28223 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28224 gnumach and gnumach.gz.
28226 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28228 * include/grub/i18n.h (gettext): Inline instead of using #define.
28229 (grub_gettext): Likewise.
28232 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28234 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28235 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28236 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28237 (main): Add a slash after pkglibdirroot.
28239 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28241 * util/grub-install.in: Add missing "in" keyword.
28243 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28245 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28246 Reported by: Seth Goldberg.
28248 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28250 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28252 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28254 * configure.ac: Check for Linux device-mapper support.
28256 * util/hostdisk.c (device_is_mapped): New function.
28257 (find_partition_start): New function, partly broken out from
28258 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28259 device-mapper support added.
28260 (linux_find_partition): Use find_partition_start.
28261 (convert_system_partition_to_system_disk): Add `st' argument.
28262 Support Linux /dev/mapper/* devices if device-mapper support is
28263 available; only DM-RAID devices are understood at present.
28264 (find_system_device): Add `st' argument. Pass it to
28265 convert_system_partition_to_system_disk.
28266 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28267 find_system_device and convert_system_partition_to_system_disk. Use
28268 find_partition_start.
28270 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28271 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28272 * util/deviceiter.c [__linux__]: Define MINOR.
28273 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28274 * util/mkdevicemap.c (grub_putchar): New function.
28275 (grub_getkey): New function.
28276 (grub_refresh): New function.
28277 (main): Set debug=all if -v -v is used.
28279 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28281 Fix build with non-GNU libcs.
28283 * util/misc.c (canonicalize_file_name): Move to ...
28284 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28285 grub_make_system_path_relative_to_its_root.
28287 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28289 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28290 we handle finding grub-mkimage. Default to finding grub-mkimage in
28291 ${bindir} with program_transform_name applied, and provide a
28292 --grub-mkimage option to override this.
28294 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28296 Remove grub-mkisofs.
28298 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28299 (grub_mkisofs_SOURCES): Removed.
28300 (grub_mkisofs_CFLAGS): Removed.
28301 * util/mkisofs/defaults.h: Removed.
28302 * util/mkisofs/eltorito.c: Likewise.
28303 * util/mkisofs/exclude.h: Likewise.
28304 * util/mkisofs/hash.c: Likewise.
28305 * util/mkisofs/include/: Likewise.
28306 * util/mkisofs/include/fctldefs.h: Likewise.
28307 * util/mkisofs/include/mconfig.h: Likewise.
28308 * util/mkisofs/include/prototyp.h: Likewise.
28309 * util/mkisofs/include/statdefs.h: Likewise.
28310 * util/mkisofs/iso9660.h: Likewise.
28311 * util/mkisofs/joliet.c: Likewise.
28312 * util/mkisofs/match.c: Likewise.
28313 * util/mkisofs/match.h: Likewise.
28314 * util/mkisofs/mkisofs.c: Likewise.
28315 * util/mkisofs/mkisofs.h: Likewise.
28316 * util/mkisofs/msdos_partition.h: Likewise.
28317 * util/mkisofs/multi.c: Likewise.
28318 * util/mkisofs/name.c: Likewise.
28319 * util/mkisofs/rock.c: Likewise.
28320 * util/mkisofs/tree.c: Likewise.
28321 * util/mkisofs/write.c: Likewise.
28323 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28325 Unify grub-mkimage accross platforms.
28327 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28328 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28329 (grub_mkelfimage_SOURCES): Removed.
28330 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28331 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28332 (bin_UTILITIES): Add grub-mkimage.
28333 (grub_mkimage_SOURCES): New variable.
28334 (kernel_img_HEADERS): Remove machine/kernel.h.
28335 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28336 (pkglib_PROGRAMS): Add kernel.img.
28337 (kernel_img_HEADERS): Add machine/kernel.h.
28338 (kernel_img_FORMAT): Removed.
28339 (bin_UTILITIES): Remove grub-mkimage.
28340 (grub_mkimage_SOURCES): Removed.
28341 (grub_mkimage_CFLAGS): Likewise.
28342 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28343 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28344 (pkglib_PROGRAMS): Add kernel.img.
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/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28350 (pkglib_PROGRAMS): Add kernel.img.
28351 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28352 (pkglib_PROGRAMS): Add kernel.img.
28353 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28354 (grub_mkimage_SOURCES): Removed.
28355 (grub_mkimage_CFLAGS): Likewise.
28356 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28357 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28358 (pkglib_PROGRAMS): Add kernel.img.
28359 (bin_UTILITIES): Remove grub-mkimage.
28360 (grub_mkimage_SOURCES): Removed.
28361 (grub_mkimage_CFLAGS): Likewise.
28362 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28363 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28364 (grub_mkimage_SOURCES): Removed.
28365 (grub_mkimage_CFLAGS): Likewise.
28366 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28367 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28368 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28369 (grub_pe32_optional_header): ... this.
28370 (grub_pe64_optional_header): ... and this. All users updated.
28371 (GRUB_PE32_PE32_MAGIC): Split into ..
28372 (GRUB_PE32_PE32_MAGIC): .. this.
28373 (GRUB_PE32_PE64_MAGIC): .. and this.
28374 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28375 * include/grub/elf.h (PT_GNU_STACK): New definition.
28376 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28377 * include/grub/i386/efi/kernel.h: Likewise.
28378 * include/grub/i386/kernel.h: Likewise.
28379 * include/grub/i386/pc/kernel.h: Likewise.
28380 * include/grub/i386/qemu/boot.h: Likewise.
28381 * include/grub/mips/kernel.h: Likewise.
28382 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28383 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28384 * include/grub/powerpc/kernel.h: Likewise.
28385 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28386 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28387 * include/grub/sparc64/kernel.h: Likewise.
28388 * include/grub/x86_64/efi/kernel.h: Likewise.
28389 * include/grub/x86_64/kernel.h: Likewise.
28390 * include/grub/offsets.h: New file.
28391 * include/grub/kernel.h (grub_module_info): Split into ...
28392 (grub_module_info32): ... this.
28393 (grub_module_info64): ... and this.
28394 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28395 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28396 (grub_boot_blocklist): Moved from here ...
28397 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28398 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28399 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28400 * include/grub/types.h (grub_target_to_host16): Removed.
28401 (grub_target_to_host32): Likewise.
28402 (grub_target_to_host64): Likewise.
28403 (grub_host_to_target16): Likewise.
28404 (grub_host_to_target32): Likewise.
28405 (grub_host_to_target64): Likewise.
28406 (grub_host_to_target_addr): Likewise.
28408 Support grub-mkrescue for efi, coreboot and qemu.
28410 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28411 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28412 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28413 * util/grub-mkrawimage.c: Moved from here ...
28414 * util/grub-mkimage.c: ... here. All users updated.
28415 (ALIGN_ADDR): Use image_target.
28416 (TARGET_NO_FIELD): New const.
28417 (image_target_desc): New type.
28418 (image_targets): New array.
28419 (grub_target_to_host64): Use image_target.
28420 (grub_target_to_host32): Likewise.
28421 (grub_target_to_host16): Likewise.
28422 (grub_host_to_target64): Likewise.
28423 (grub_host_to_target32): Likewise.
28424 (grub_host_to_target16): Likewise.
28425 (grub_host_to_target_addr): Likewise.
28426 (generate_image): Handle multiimage.
28427 (main): Require -O parameter. All users updated.
28428 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28429 util/efi/grub-mkimage.c
28430 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28431 New option --rom-directory.
28433 * util/i386/efi/grub-mkimage.c: Removed.
28434 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28435 (grub_target_to_host32): Likewise.
28436 (grub_target_to_host64): Likewise.
28437 (grub_host_to_target16): Likewise.
28438 (grub_host_to_target32): Likewise.
28439 (grub_host_to_target64): Likewise.
28440 * util/sparc64/ieee1275/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.
28447 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28449 Source tree is reorganized for emu build.
28451 * include/grub/util/console.h: Move from here...
28452 * include/grub/emu/console.h: ...to here.
28453 * include/grub/util/getroot.h: Move from here...
28454 * include/grub/emu/getroot.h: ...to here.
28455 * include/grub/util/hostdisk.h: Move from here...
28456 * include/grub/emu/hostdisk.h: ...to here.
28457 * util/console.c: Move from here...
28458 * kern/emu/console.c: ...to here.
28459 * util/getroot.c: Move from here...
28460 * kern/emu/getroot.c: ...to here.
28461 * util/grub-emu.c: Move from here...
28462 * kern/emu/main.c: ...to here.
28463 * util/hostdisk.c: Move from here...
28464 * kern/emu/hostdisk.c: ...to here.
28465 * util/hostfs.c: Move from here...
28466 * kern/emu/hostfs.c: ...to here.
28467 * util/mm.c: Move from here...
28468 * kern/emu/mm.c: ...to here.
28469 * util/pci.c: Move from here...
28470 * bus/emu/pci.c: ...to here.
28471 * util/sdl.c: Move from here...
28472 * video/emu/sdl.c: ...to here.
28473 * util/time.c: Move from here...
28474 * kern/emu/time.c: ...to here.
28475 * util/usb.c: Move from here...
28476 * bus/usb/emu/usb.c: ...to here.
28478 * include/grub/emu/misc.h: New header for grub-emu functions.
28479 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28481 * conf/any-emu.rmk: Rule updates for above renames.
28482 * conf/common.rmk: Likewise.
28483 * conf/i386-pc.rmk: Likewise.
28484 * conf/i386-qemu.rmk: Likewise.
28485 * conf/mips.rmk: Likewise.
28486 * conf/sparc64-ieee1275.rmk: Likewise.
28487 * conf/x86-efi.rmk: Likewise.
28489 * disk/lvm.h: #include updates for above renames.
28490 * util/grub-mkrelpath.c: Likewise.
28491 * util/grub-probe.c: Likewise.
28492 * util/i386/pc/grub-setup.c: Likewise.
28493 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28494 * kern/emu/console.c: Likewise.
28495 * kern/emu/getroot.c: Likewise.
28496 * kern/emu/hostdisk.c: Likewise.
28497 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28499 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28500 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28501 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28502 * util/misc.c: Remove grub-emu functions.
28504 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28507 Reported by: Thorsten Grützmacher.
28509 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28511 (circprog_set_property): Register and unregister timeout hook.
28512 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28513 (label_destroy): Free template. and unregister hook.
28514 (label_set_state): New function.
28515 (label_set_property): Handle templates and hooks.
28516 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28518 (progress_bar_set_property): Register and unregister timeout hook.
28519 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28520 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28521 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28522 (update_timeout_visit): Removed.
28523 (update_timeouts): New function.
28524 (redraw_timeouts): Likewise.
28525 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28526 (grub_gfxmenu_clear_timeout): Likewise.
28527 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28528 (grub_gfxmenu_timeout_notify): Likewise.
28529 (grub_gfxmenu_timeout_notifications): New external variable.
28530 (grub_gfxmenu_timeout_register): New function.
28531 (grub_gfxmenu_timeout_unregister): Likewise.
28533 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28535 Transform (broken) vga terminal into (working) vga video driver.
28537 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28538 video/i386/pc/vga.c.
28539 * include/grub/video.h (grub_video_driver_id):
28540 Add GRUB_VIDEO_DRIVER_VGA.
28541 * term/i386/pc/vga.c: Renamed to ...
28542 * video/i386/pc/vga.c: ...this
28543 (DEBUG_VGA): Removed.
28544 (CHAR_WIDTH): Likewise.
28545 (CHAR_HEIGHT): Likewise.
28546 (TEXT_WIDTH): Likewise.
28547 (TEXT_HEIGHT): Likewise.
28548 (DEFAULT_FG_COLOR): Likewise.
28549 (DEFAULT_BG_COLOR): Likewise.
28550 (colored_char): Likewise.
28553 (cursor_state): Likewise.
28554 (fg_color): Likewise.
28555 (bg_color): Likewise.
28556 (text_buf): Likewise.
28559 (framebuffer): New variable.
28560 (set_read_map): Disabled.
28561 (setup): New variable.
28562 (is_target): Likewise.
28563 (grub_vga_mod_init): Likewise.
28564 (grub_vga_mod_fini): Likewise.
28565 (check_vga_mem): Likewise.
28566 (write_char): Likewise.
28567 (write_cursor): Likewise.
28568 (scroll_up): Likewise.
28569 (grub_vga_putchar): Likewise.
28570 (grub_vga_getcharwidth): Likewise.
28571 (grub_vga_getwh): Likewise.
28572 (grub_vga_getxy): Likewise.
28573 (grub_vga_gotoxy): Likewise.
28574 (grub_vga_cls): Likewise.
28575 (grub_vga_setcolorstate): Likewise.
28576 (grub_vga_setcursor): Likewise.
28577 (grub_video_vga_init): New function.
28578 (grub_video_vga_setup): Likewise.
28579 (grub_video_vga_fini): Likewise.
28580 (update_target): Likewise.
28581 (grub_video_vga_blit_bitmap): Likewise.
28582 (grub_video_vga_blit_render_target): Likewise.
28583 (grub_video_vga_set_active_render_target): Likewise.
28584 (grub_video_vga_get_active_render_target): Likewise.
28585 (grub_video_vga_swap_buffers): Likewise.
28586 (grub_video_vga_set_palette): Likewise.
28587 (grub_video_vga_get_info_and_fini): Likewise.
28588 (grub_vga_term): Removed.
28589 (grub_video_vga_adapter): New variable.
28590 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28591 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28593 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28595 * video/readers/jpeg.c: Indented.
28597 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28599 Various jpeg cleanups.
28601 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28602 (grub_jpeg_decode_quan_table): Use sizeof.
28603 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28605 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28607 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28608 tables. Ignore non-last ac bit.
28609 (grub_jpeg_decode_quan_table): Likewise.
28611 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28613 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28614 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28615 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28616 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28617 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28618 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28620 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28622 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28625 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28627 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28629 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28631 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28634 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28636 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28639 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28641 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28644 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28646 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28648 2010-05-01 Christian Franke <franke@computer.org>
28650 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28651 Remove broken Cygwin path conversion.
28652 * util/misc.c: [__CYGWIN__] Add include and define.
28653 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28655 (make_system_path_relative_to_its_root): Simplify loop, replace early
28657 [__CYGWIN__] Add conversion to win32 path.
28658 Include "/" case in trailing slash removal.
28660 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28662 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28663 Reported by: Seth Goldberg
28665 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28667 * commands/help.c (grub_cmd_help): Fix a typo.
28668 Reported by: Seth Goldberg
28670 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28672 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28674 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28675 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28676 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28677 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28678 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28679 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28680 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28681 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28682 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28683 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28684 * normal/context.c (GRUB_MOD_INIT): Likewise.
28685 * normal/main.c (GRUB_MOD_INIT): Likewise.
28686 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28687 * term/serial.c (GRUB_MOD_INIT): Likewise.
28688 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28690 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28692 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28695 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28697 * commands/iorw.c: New file.
28698 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28699 (iorw_mod_SOURCES): New variable.
28700 (iorw_mod_CFLAGS): Likewise.
28701 (iorw_mod_LDFLAGS): Likewise.
28703 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28707 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28708 * normal/main.c (hotkey_aliases): New variable.
28709 (grub_normal_add_menu_entry): Parse "--hotkey".
28710 * normal/menu_text.c (run_menu): Handle hotkeys.
28712 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28714 * kern/i386/coreboot/init.c (grub_machine_init): Call
28715 grub_machine_mmap_init on qemu.
28717 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28719 * boot/i386/qemu/boot.S: Add a missing .code16.
28721 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28723 Use LBIO on coreboot.
28725 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28726 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28727 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28729 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28730 grub_machine_mmap_init on coreboot.
28731 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28732 GRUB_LINUXBIOS_MEMBER_LINK.
28733 (grub_machine_mmap_iterate): Fix declaration.
28734 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28736 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28738 Split coreboot and multiboot ports.
28740 * conf/i386-multiboot.rmk: New file.
28741 * configure.ac: Add multiboot port.
28742 * include/grub/i386/multiboot/boot.h: New file.
28743 * include/grub/i386/multiboot/console.h: Likewise.
28744 * include/grub/i386/multiboot/init.h: Likewise.
28745 * include/grub/i386/multiboot/kernel.h: Likewise.
28746 * include/grub/i386/multiboot/loader.h: Likewise.
28747 * include/grub/i386/multiboot/memory.h: Likewise.
28748 * include/grub/i386/multiboot/serial.h: Likewise.
28749 * include/grub/i386/multiboot/time.h: Likewise.
28750 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28751 * loader/multiboot.c: Likewise.
28752 * loader/multiboot_mbi2.c: Likewise.
28753 * util/grub-mkrescue.in: Generate multiboot rescue.
28755 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28757 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28759 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28761 Merge handling of input and output terminals. Fix a hang.
28763 * commands/terminal.c (abstract_terminal): New struct.
28764 (handle_command): New function. Based on grub_cmd_terminal_input.
28765 (grub_cmd_terminal_input): Use handle_command.
28766 (grub_cmd_terminal_output): Use handle_command.
28768 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28770 Fix comment handling.
28772 * tests/grub_script_comments.in: New testcase.
28773 * conf/tests.rmk: Rules for new testcase.
28774 * script/yylex.l: Updated flex rules.
28776 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28778 * docs/grub.texi (play): Document that zero pitches produce rests.
28779 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28782 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28784 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28787 2010-04-26 Christian Franke <franke@computer.org>
28789 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28790 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28791 (grub_get_prefix): Remove function.
28792 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28793 make_system_path_relative_to_its_root ().
28794 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28796 2010-04-24 Christian Franke <franke@computer.org>
28798 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28799 (kernel_img_LDFLAGS): Remove -static-libgcc.
28801 2010-04-24 Christian Franke <franke@computer.org>
28803 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28804 and CHECK_END_SYMBOL if grub-emu is built.
28805 Unset TARGET_OBJ2ELF if grub-emu is built
28806 without module support.
28808 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28812 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28813 (grub_fstest_SOURCES): Likewise.
28814 (pkglib_MODULES): Add nilfs2.mod.
28815 (nilfs2_mod_SOURCES): New variable.
28816 (nilfs2_mod_CFLAGS): Likewise.
28817 (nilfs2_mod_LDFLAGS): Likewise.
28818 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28819 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28820 * fs/nilfs2.c: New file.
28822 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28824 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28827 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28829 Add grub-mkconfig support for NetBSD.
28831 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28832 * util/grub-mkconfig.in: export new NetBSD specific variables.
28833 * po/POTFILES-shell: added 10_netbsd.in.
28834 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28836 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28838 Fix emu build with grub-emu-pci and grub-emu-modules.
28840 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28842 * include/grub/libpciaccess.h: New file.
28843 * conf/any-emu.rmk: Update kernel headers for emu build.
28845 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28847 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28849 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28851 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28853 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28855 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
28856 Retrieve chosen/bootpath if bootpath isn't hardcoded.
28857 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
28858 util/ieee1275/ofpath.c.
28859 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
28860 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
28861 * include/grub/sparc64/ieee1275/boot.h
28862 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
28863 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
28864 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
28865 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
28867 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
28868 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
28869 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
28872 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
28874 * util/grub-mkconfig.in: Corrected two == equality tests.
28875 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
28876 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
28877 expect a number appended to it.
28878 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
28879 expects a number appended to it.
28881 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28883 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
28885 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28887 * util/hostdisk.c (make_device_name): Change to new partition naming.
28889 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
28891 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
28893 2010-04-17 Christian Franke <franke@computer.org>
28895 * Makefile.in: Add missing localedir setting.
28897 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
28899 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
28900 mistake in r2156. Noticed by Anthony Fok.
28902 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
28904 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28906 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
28908 Fix a spurious, uninitialized variable warning.
28910 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
28911 Initialize variable, shdr.
28912 (grub_freebsd_load_elfmodule): Likewise.
28913 (grub_freebsd_load_elf_meta): Likewise.
28915 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
28917 Fix for escaped dollar in double quoted strings.
28919 * script/yylex.l: Updated flex rules.
28920 * conf/tests.rmk: Rule for new testcase.
28921 * tests/grub_script_dollar.in: New testcase.
28923 2010-04-13 Carles Pina i Estany <carles@pina.cat>
28924 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
28926 Enclose all translated strings in grub.cfg in single quotes, and
28927 escape them appropriately (Ubuntu bug #552921).
28929 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
28930 * util/grub.d/10_hurd.in: Use it.
28931 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28932 * util/grub.d/10_linux.in (linux_entry): Likewise.
28934 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28936 Fix cygwin compilation.
28938 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
28939 * include/grub/misc.h (__register_frame_info)
28940 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
28941 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28942 * kern/misc.c (__register_frame_info)
28943 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
28944 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
28946 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28948 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
28950 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
28952 Unify libgcc processing.
28954 * Makefile.in (kernel_img_LDFLAGS): New variable.
28955 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
28956 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
28958 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
28959 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
28960 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
28961 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
28962 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
28963 overwriting. Remove -lgcc and -static-libgcc
28964 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
28965 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28966 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
28967 (kernel_img_LDFLAGS): Append instead of overwriting.
28968 Remove -lgcc and -static-libgcc
28969 * conf/sparc64-ieee1275.rmk: Likewise.
28970 * include/grub/powerpc/libgcc.h: Move to ...
28971 * include/grub/libgcc.h: .. this.
28972 * include/grub/libgcc.h: Don't export most of the function on x86.
28973 (__bswapsi2): New export.
28974 (__bswapdi2): Likewise.
28975 * include/grub/mips/libgcc.h: Removed.
28976 * include/grub/sparc64/libgcc.h: Likewise.
28978 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
28980 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
28981 disk_info_msg (conflicts with gettexting into languages with cases).
28983 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
28985 Add grub-probe support for NetBSD.
28987 * util/getroot.c (find_root_device): Convert block device to
28988 character device on NetBSD.
28989 * util/probe.c (probe): Require character device on NetBSD.
28990 * util/hostdisk.c: NetBSD specific headers.
28991 (configure_device_driver): new function to tune device driver
28992 parameters (currently only for NetBSD floppy driver).
28993 (grub_util_biosdisk_open): NetBSD specific code (get disk size
28994 via disklabel ioctl).
28995 (open_device): call configure_device_driver on NetBSD.
28996 (convert_system_partition_to_system_disk): NetBSD specific code.
28997 (device_is_wholedisk): Likewise.
28998 (grub_util_biosdisk_get_grub_dev): Likewise.
28999 (make_device_name): Fixed a typo in bsd_part_str.
29000 * configure.ac: check for opendisk() and getrawpartition() on
29001 NetBSD and set LIBUTIL.
29002 * Makefile.in: add LIBUTIL to LIBS.
29004 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29008 * util/grub-script-check.c: Better help message.
29010 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29014 * configure.ac: Flex version check.
29015 * conf/common.rmk: Add -Wno-error to sh.mod.
29016 * script/yylex.l: Remove all #pragma.
29018 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29020 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29022 Reported by: Seth Goldberg.
29024 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29026 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29027 Rename "module" to "module2".
29028 Reported by: Seth Goldberg.
29030 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29032 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29034 Reported by: Seth Goldberg.
29036 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29038 * lib/posix_wrap/locale.h: Add missing file.
29039 Reported by: Seth Goldberg.
29041 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29043 grub-emu module load support.
29045 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29046 NO_DYNAMIC_MODULES switched to this.
29047 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29048 (CFLAGS): Likewise.
29049 * conf/any-emu.rmk: Generate symlist.
29050 (kernel_img_HEADERS): Add util/datetime.h.
29051 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29052 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29053 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29054 kern/$(target_cpu)/cache.S.
29055 * configure.ac (grub-emu-modules): New option.
29056 * genmk.rb: Handle multiple source lists.
29057 * include/grub/sdl.h: New file.
29058 * include/grub/libusb.h: Likewise.
29059 * util/grub-emu.c (main): Hanle (host) root.
29060 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29061 GRUB_ERR_UNKNOWN_DEVICE.
29062 * util/misc.c: Move mm functions to ...
29063 * util/mm.c: ... here. All users updated.
29065 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29067 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29068 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29070 (maintainer-clean): Remove libgcrypt-grub.
29072 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29074 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29076 2010-04-09 EFI Coder <eficoder@hotmail.com>
29078 * normal/menu_text.c (print_message): Clean up the message and show
29079 the Fn information when on EFI
29080 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29082 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29084 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29086 * normal/crypto.c (read_crypto_list): Likewise.
29087 * normal/dyncmd.c (read_command_list): Likewise.
29088 * normal/term.c (read_terminal_list): Likewise.
29089 * normal/main.c (read_lists): Use explicit prefix.
29090 (read_lists_hook): Use read_lists.
29091 (grub_normal_execute): Likewise.
29093 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29095 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29096 Reported by: Thomas Schmitt.
29097 Add -no-emul-boot to grub-mkisofs parameters.
29099 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29101 * font/font.c: Indented.
29103 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29105 Elif support to GRUB script (by Deepak Vankadaru).
29107 * tests/grub_script_if.in: New testcase.
29108 * conf/tests.rmk: Rule for new testcase.
29109 * script/parser.y: Grammar rules for elif.
29111 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29113 While and until loops support to GRUB script.
29115 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29116 (grub_script_create_cmdwhile): New function prototype.
29117 (grub_script_execute_cmdwhile): New function prototype.
29118 * script/execute.c (grub_script_execute_cmdwhile): New function.
29119 * script/parser.y (command): New commands.
29120 (whilecmd): New grammar rule.
29121 (untilcmd): New grammar rule.
29122 * script/script.c (grub_script_create_cmdwhile): New function.
29123 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29126 * tests/grub_script_while1.in: New testcase.
29127 * conf/tests.rmk: Rule for new testcase.
29129 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29131 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29134 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29136 GRUB_BACKGROUND support.
29138 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29139 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29141 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29143 Load fonts and modules for gfxmenu in grub-mkconfig.
29144 Idea by: Mario Vazquez
29146 * util/grub.d/00_header.in: Load pf2 and image modules.
29148 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29150 grub-mkconfig multiple terminal support.
29152 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29153 * util/grub.d/00_header.in: Likewise.
29155 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29157 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29158 we use cd $(srcdir).
29160 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29162 * util/grub.d/10_linux.in: Only use the first word of
29163 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29164 spaces in GRUB_DISTRIBUTOR.
29165 * util/grub.d/10_kfreebsd.in: Likewise.
29166 * util/grub.d/10_hurd.in: Likewise.
29168 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29170 Fix unit testing framework for Qemu 0.12.
29172 * tests/util/grub-shell.in: Remove -serial stdio option.
29174 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29176 POSIX header file wrappers.
29178 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29180 * lib/posix_wrap/ctype.h: Likewise.
29181 * lib/posix_wrap/errno.h: Likewise.
29182 * lib/posix_wrap/langinfo.h: Likewise.
29183 * lib/posix_wrap/limits.h: Likewise.
29184 * lib/posix_wrap/localcharset.h: Likewise.
29185 * lib/posix_wrap/stdint.h: Likewise.
29186 * lib/posix_wrap/stdio.h: Likewise.
29187 * lib/posix_wrap/stdlib.h: Likewise.
29188 * lib/posix_wrap/string.h: Likewise.
29189 * lib/posix_wrap/sys/types.h: Likewise.
29190 * lib/posix_wrap/unistd.h: Likewise.
29191 * lib/posix_wrap/wchar.h: Likewise.
29192 * lib/posix_wrap/wctype.h: Likewise.
29193 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29194 (grub_script.yy.h): Likewise.
29195 * script/yylex.l: Remove POSIX emulation #defines.
29196 * Makefile.in (POSIX_CFLAGS): New variable.
29197 (GNULIB_UTIL_CFLAGS): Likewise.
29201 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29202 (regexp_mod_SOURCES): New variable.
29203 (regexp_mod_CFLAGS): Likewise.
29204 (regexp_mod_LDFLAGS): Likewise.
29205 * commands/regexp.c: New file.
29206 * gnulib/regcomp.c: New file. Imported from gnulib.
29207 * gnulib/regex.c: Likewise.
29208 * gnulib/regex_internal.c: Likewise.
29209 * gnulib/regex_internal.h: Likewise.
29210 * gnulib/regexec.c: Likewise.
29211 * gnulib/regex.h: Likewise.
29213 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29215 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29216 unsupported video mode types.
29218 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29220 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29222 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29224 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29225 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29227 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29229 Remove unused grub_vga_get_font.
29231 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29232 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29234 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29236 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29237 * include/grub/misc.h: Likewise.
29239 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29241 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29242 for which failure is fatal.
29244 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29246 * util/grub-install.in: Use mkdir -p to create grub directory.
29247 * util/i386/efi/grub-install.in: Likewise.
29248 * util/ieee1275/grub-install.in: Likewise.
29250 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29252 * Makefile.in (LEX): new variable.
29254 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29256 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29257 `=' and added double quotes on operands of this equality test.
29259 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29261 * Makefile.in (uninstall): Remove a leftover debug echo.
29262 Reported by: Grégoire Sutre
29264 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29266 MIPS multiboot2 support.
29268 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29269 (multiboot2_mod_SOURCES): New variable.
29270 (multiboot2_mod_CFLAGS): Likewise.
29271 (multiboot2_mod_LDFLAGS): Likewise.
29272 (multiboot2_mod_ASFLAGS): Likewise.
29273 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29275 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29276 (MULTIBOOT_MBI_REGISTER): Likewise.
29277 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29278 (MULTIBOOT_ELF32_MACHINE): Likewise.
29279 (MULTIBOOT_ELF64_MACHINE): Likewise.
29280 * include/grub/mips/multiboot.h: New file.
29281 * include/grub/video.h (grub_video_driver_id): New type
29282 GRUB_VIDEO_DRIVER_SM712.
29283 (grub_video_get_info_and_fini): Export.
29284 (grub_video_get_palette): Likewise.
29285 (grub_video_get_driver_id): Likewise.
29286 * include/multiboot2.h: Resynced with spec.
29287 * loader/i386/multiboot.c: Moved from here ...
29288 * loader/multiboot.c: ... here. All users updated.
29289 (grub_multiboot_boot): Use platform-specific macros.
29290 * loader/i386/multiboot_elfxx.c: Moved from here ...
29291 * loader/multiboot_elfxx.c: ... here. All users updated.
29292 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29293 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29294 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29296 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29298 Import gnulib argp module.
29300 * gnulib/argp-ba.c: New file.
29301 * gnulib/argp-eexst.c: Likewise.
29302 * gnulib/argp-fmtstream.c: Likewise.
29303 * gnulib/argp-fmtstream.h: Likewise.
29304 * gnulib/argp-fs-xinl.c: Likewise.
29305 * gnulib/argp-help.c: Likewise.
29306 * gnulib/argp-namefrob.h: Likewise.
29307 * gnulib/argp-parse.c: Likewise.
29308 * gnulib/argp-pin.c: Likewise.
29309 * gnulib/argp-pv.c: Likewise.
29310 * gnulib/argp-pvh.c: Likewise.
29311 * gnulib/argp-version-etc.c: Likewise.
29312 * gnulib/argp-version-etc.h: Likewise.
29313 * gnulib/argp-xinl.c: Likewise.
29314 * gnulib/argp.h: Likewise.
29316 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29318 * kern/device.c (grub_device_iterate): Clear errors after failed
29321 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29323 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29324 returned by firmware.
29326 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29328 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29329 compilation on coreboot and qemu
29331 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29333 * include/multiboot2.h: Resync with spec.
29335 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29337 Multiboot2 tag support
29339 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29340 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29341 Remove loader/multiboot_loader.c.
29342 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29343 (grub_multiboot2_real_boot): Likewise.
29344 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29345 (grub_get_multiboot_mmap_count): New proto.
29346 (grub_fill_multiboot_mmap): Likewise.
29347 (grub_multiboot_set_video_mode): Likewise.
29348 (grub_multiboot_set_console): Likewise.
29349 (grub_multiboot_load): Likewise.
29350 (grub_multiboot_load_elf): Likewise.
29351 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29352 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29353 * include/multiboot.h: Resynced with specification.
29354 * include/multiboot2.h: Resynced with specification.
29355 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29356 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29357 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29358 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29360 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29361 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29362 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29364 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29366 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29367 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29369 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29370 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29371 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29373 * loader/i386/multiboot_mbi2.c: New file.
29375 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29377 Resync with gnulib.
29379 * Makefile.in (GNULIB_CFLAGS): New variable.
29380 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29381 (grub_script_check_CFLAGS): New variable.
29382 * gnulib/alloca.h: Resync with gnulib.
29383 * gnulib/error.c: Likewise.
29384 * gnulib/error.h: Likewise.
29385 * gnulib/fnmatch.c: Likewise.
29386 * gnulib/fnmatch_loop.c: Likewise.
29387 * gnulib/getdelim.c: Likewise.
29388 * gnulib/getline.c: Likewise.
29389 * gnulib/getopt.c: Likewise.
29390 * gnulib/getopt1.c: Likewise.
29391 * gnulib/getopt_int.h: Likewise.
29392 * gnulib/gettext.h: Likewise.
29393 * gnulib/progname.c: Likewise.
29394 * gnulib/progname.h: Likewise.
29396 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29398 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29399 which is the case with --disabled-nls.
29401 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29402 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29403 * util/misc.c: Likewise.
29404 * util/mkisofs/mkisofs.c: Likewise.
29405 * util/mkisofs/mkisofs.h: Likewise.
29407 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29409 Simplify Apple CC support.
29411 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29412 Add 0 byte at the end not to have a symbol with empty target.
29413 * mmap/i386/pc/mmap_helper.S: Likewise.
29414 * genmk.rb: Ignore errors 2030 and 2050.
29415 * kern/i386/pc/startup.S: Use LOCAL when possible.
29417 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29419 Testcase and the fix for final semicolon on cmdline.
29421 * tests/grub_script_final_semicolon.in: New testcase.
29422 * conf/tests.rmk: Rules for the new testcase.
29423 * script/parser.y: Grammar fix.
29425 2010-03-26 BVK Chaitanya <bvk@localhost>
29427 Blank lines testcase for GRUB script.
29429 * tests/grub_script_blanklines.in: New testcase.
29430 * conf/tests.rmk: Rules for the new testcase.
29432 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29434 Don't use __FILE__.
29436 * genmk.rb: Add -DGRUB_FILE to all C targets.
29437 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29438 * include/grub/list.h: Likewise.
29439 * include/grub/misc.h: Likewise.
29440 * include/grub/mm.h: Likewise.
29441 * include/grub/test.h: Likewise.
29442 * kern/mm.c: Likewise.
29443 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29445 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29447 Sunpc partitions support.
29449 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29450 (grub_fstest_SOURCES): Likewise.
29451 (pkglib_MODULES): Add part_sunpc.mod.
29452 (part_sunpc_mod_SOURCES): New variable.
29453 (part_sunpc_mod_CFLAGS): Likewise.
29454 (part_sunpc_mod_LDFLAGS): Likewise.
29455 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29456 * partmap/sunpc.c: New file.
29458 2010-03-26 BVK Chaitanya <bvk@localhost>
29460 For loop support to GRUB script.
29462 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29463 (grub_script_create_cmdfor): New function prototype.
29464 (grub_script_execute_cmdfor): New function prototype.
29465 * script/execute.c (grub_script_execute_cmdfor): New function.
29466 * script/parser.y (command): New for command.
29467 (forcmd): New grammar rule.
29468 * script/script.c (grub_script_create_cmdfor): New function.
29469 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29471 * tests/grub_script_for1.in: New testcase.
29472 * conf/tests.rmk: Rules for new testcase.
29474 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29478 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29479 'partition' is NULL, grub_partition_get_start already does that.
29480 * commands/loadenv.c (check_blocklists): Likewise.
29481 (write_blocklists): Likewise.
29482 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29483 (grub_fstest_SOURCES): Likewise.
29484 (pkglib_MODULES): Add part_bsd.mod.
29485 (part_bsd_mod_SOURCES): New variable.
29486 (part_bsd_mod_CFLAGS): Likewise.
29487 (part_bsd_mod_LDFLAGS): Likewise.
29488 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29489 (grub_emu_SOURCES): Likewise.
29490 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29491 * include/grub/bsdlabel.h: New file.
29492 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29494 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29495 (grub_partition_map_list): New variable.
29496 (grub_partition_map_register): Inline.
29497 (grub_partition_map_unregister): Likewise.
29498 (FOR_PARTITION_MAPS): New macro.
29499 (grub_partition_map_iterate): Removed.
29500 (grub_partition_get_start): Handle nested partitions.
29501 * include/grub/msdos_partition.h: Remove bsd-related entries.
29502 (grub_pc_partition): Remove.
29503 * kern/disk.c (grub_disk_close): Free partition data.
29504 (grub_disk_adjust_range): Handle nested partitions.
29505 * kern/partition.c (grub_partition_map_probe): New function.
29506 (grub_partition_probe): Parse name to number, handle subpartitions.
29507 (get_partmap): New function.
29508 (grub_partition_iterate): Handle subpartitions.
29509 (grub_partition_get_name): Likewise.
29510 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29511 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29512 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29513 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29515 (acorn_partition_map_probe): Remove.
29516 (acorn_partition_map_get_name): Likewise.
29517 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29519 Set 'index' to 0 since there can be only one partition entry per sector.
29520 (amiga_partition_map_probe): Remove.
29521 (amiga_partition_map_get_name): Likewise.
29522 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29524 Set 'offset' and 'index' to real positions of partitions.
29525 (apple_partition_map_probe): Remove.
29526 (apple_partition_map_get_name): Likewise.
29527 * partmap/bsdlabel.c: New file.
29528 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29530 Allocate 'data' so it can be correctly freed.
29531 Set 'index' to offset inside sector.
29532 (gpt_partition_map_probe): Remove.
29533 (gpt_partition_map_get_name): Likewise.
29534 * partmap/msdos.c (grub_partition_parse): Remove.
29535 (pc_partition_map_iterate): Don't force raw access.
29537 Make 'ext_offset' a local variable.
29538 (pc_partition_map_probe): Remove.
29539 (pc_partition_map_get_name): Remove.
29540 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29542 (sun_partition_map_probe): Remove.
29543 (sun_partition_map_get_name): Likewise.
29544 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29545 (grub_pcpart_type): Likewise.
29546 * util/hostdisk.c (open_device): Handle new numbering scheme.
29547 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29548 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29549 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29550 * util/grub-install.in: Insert all subpartition modules.
29551 * util/ieee1275/grub-install.in: Likewise.
29553 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29555 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29558 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29560 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29562 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29564 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29565 match where 'make install' puts them.
29566 * util/i386/efi/grub-install.in: Likewise.
29568 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29570 * .bzrignore: Add gentrigtables, grub-script-check,
29571 grub_script_check_init.c, grub_script_check_init.h, and
29574 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29576 * kern/parser.c: Indented.
29578 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29580 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29582 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29584 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29585 alpha_mask_size == 0 case.
29587 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29589 GRUB shell lexer and parser improvements.
29591 * conf/any-emu.rmk: Build rule updates.
29592 * conf/common.rmk: Likewise.
29593 * conf/i386-coreboot.rmk: Likewise.
29594 * conf/i386-efi.rmk: Likewise.
29595 * conf/i386-ieee1275.rmk: Likewise.
29596 * conf/i386-pc.rmk: Likewise.
29597 * conf/powerpc-ieee1275.rmk: Likewise.
29598 * conf/x86_64-efi.rmk: Likewise.
29600 * configure.ac: Configure check for flex.
29602 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29604 (grub_lexer_param): Struct member updates.
29605 (grub_parser_param): Likewise.
29606 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29607 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29608 (grub_script_lexer_init): Prototype update.
29609 (grub_script_lexer_record_start): Likewise.
29610 (grub_script_lexer_record_stop): Likewise.
29611 (grub_script_lexer_yywrap): New function prototype.
29612 (grub_script_lexer_fini): Likewise.
29613 (grub_script_execute_argument_to_string): Removed by...
29614 (grub_script_execute_argument_to_argv): ...better version.
29616 * script/execute.c (ROUND_UPTO): New macro.
29617 (grub_script_execute_cmdline): Out of memory fixes.
29618 (grub_script_execute_menuentry): Likewise.
29619 (grub_script_execute_argument_to_string): Removed. Update all
29621 (grub_script_execute_argument_to_argv): ...better version.
29622 * script/function.c (grub_script_function_create): Use
29623 grub_script_execute_argument_to_argv instead of
29624 grub_script_execute_argument_to_string.
29626 * script/lexer.c (check_varstate): Removed.
29627 (check_textstate): Removed.
29628 (grub_script_lexer_record_start): Likewise.
29629 (grub_script_lexer_record_stop): Likewise.
29630 (recordchar): Replaced with...
29631 (grub_script_lexer_record): ...new function.
29632 (nextchar): Removed.
29633 (grub_script_lexer_init): Rewritten.
29634 (grub_script_yylex): Rewritten.
29635 (append_newline): New function.
29636 (grub_script_lexer_yywrap): New function.
29637 (grub_script_lexer_fini): New function.
29638 (grub_script_yyerror): Sets error flag.
29640 * script/yylex.l: New file.
29641 (grub_lexer_yyfree): Wrapper for flex yyffre.
29642 (grub_lexer_yyalloc): Likewise.
29643 (grub_lexer_yyrealloc): Likewise.
29644 * script/parser.y: Refactored.
29646 * script/script.c (grub_script_arg_add): Out of memory fixes.
29647 (grub_script_add_arglist): Likewise.
29648 (grub_script_create_cmdline): Likewise.
29649 (grub_script_create_cmdmenu): Likewise.
29650 (grub_script_add_cmd): Likewise.
29651 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29652 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29655 * tests/grub_script_echo1.in: New testcase.
29656 * tests/grub_script_vars1.in: New testcase.
29657 * tests/grub_script_echo_keywords.in: New testcase.
29659 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29661 Remove some redundancy in build system.
29663 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29664 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29665 (TARGET_LDFLAGS): Add -nostdlib.
29666 (TARGET_IMG_LDFLAGS): Likewise.
29667 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29668 anything since mmap isn't available.
29669 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29671 (pkglib_MODULES): Remove reboot.mod.
29672 (reboot_mod_SOURCES): Removed.
29673 (reboot_mod_CFLAGS): Likewise.
29674 (reboot_mod_LDFLAGS): Likewise.
29675 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29676 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29677 (DEFSYMFILES): Add kernel_syms.lst.
29678 (kernel_img_HEADERS): Add common headers.
29679 (symlist.c): New target.
29680 (kernel_syms.lst): Likewise.
29681 (pkglib_MODULES): Add memdisk.mod.
29682 (memdisk_mod_SOURCES): New variable.
29683 (memdisk_mod_CFLAGS): Likewise.
29684 (memdisk_mod_LDFLAGS): Likewise.
29685 (pkglib_MODULES): Add reboot.mod.
29686 (reboot_mod_SOURCES): New variable.
29687 (reboot_mod_CFLAGS): Likewise.
29688 (reboot_mod_LDFLAGS): Likewise.
29689 (pkglib_MODULES): Add date.mod.
29690 (date_mod_SOURCES): New variable.
29691 (date_mod_CFLAGS): Likewise.
29692 (date_mod_LDFLAGS): Likewise.
29693 (pkglib_MODULES): Add datehook.mod.
29694 (datehook_mod_SOURCES): New variable.
29695 (datehook_mod_CFLAGS): Likewise.
29696 (datehook_mod_LDFLAGS): Likewise.
29697 (pkglib_MODULES): Add lsmmap.mod.
29698 (lsmmap_mod_SOURCES): New variable.
29699 (lsmmap_mod_CFLAGS): Likewise.
29700 (lsmmap_mod_LDFLAGS): Likewise.
29701 (pkglib_MODULES): Add boot.mod.
29702 (boot_mod_SOURCES): New variable.
29703 (boot_mod_CFLAGS): Likewise.
29704 (boot_mod_LDFLAGS): Likewise.
29705 * conf/i386-coreboot.rmk: Removed redundant parts.
29706 * conf/i386-ieee1275.rmk: Likewise.
29707 * conf/i386-pc.rmk: Likewise.
29708 * conf/mips-yeeloong.rmk: Likewise.
29709 * conf/mips.rmk: Likewise.
29710 * conf/powerpc-ieee1275.rmk: Likewise.
29711 * conf/sparc64-ieee1275.rmk: Likewise.
29712 * conf/x86_64-efi.rmk: Likewise.
29713 * conf/i386-coreboot.rmk: Moved qemu parts ..
29714 * conf/i386-qemu.rmk: ... here
29715 * conf/i386-efi.rmk: Moved common parts to...
29716 * conf/x86-efi.rmk: ... here.
29717 * conf/i386.rmk: Added modules common to all x86 variants.
29718 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29719 * disk/memdisk.c: Remove grub/machine/kernel.h.
29720 * gensymlist.sh.in: Include symbol.h.
29721 * hook/datehook.c: Correct module name.
29722 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29723 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29724 * include/grub/i386/efi/serial.h: New file.
29725 * include/grub/x86_64/efi/serial.h: Likewise.
29726 * util/time.c: Likewise.
29727 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29729 2010-03-14 Colin King <colin.king@ubuntu.com>
29730 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29732 Shrink the pre-partition-table part of boot.img by eight bytes.
29734 * boot/i386/pc/boot.S (ERR): New macro.
29735 (chs_mode): Use ERR.
29736 (geometry_error): Likewise.
29737 (hd_probe_error): Remove. This is only used once, so we wrwite
29739 (read_error): Instead of printing read_error_string, just set up
29740 %si and fall through to ...
29741 (error_message): ... this new function, also used by ERR.
29743 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29745 Speed up consecutive hostdisk operations on the same device.
29747 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29748 (grub_util_biosdisk_open): Initialise disk->data.
29749 (struct linux_partition_cache): New structure.
29750 (linux_find_partition): Cache partition start positions; these are
29751 expensive to compute on every read and write.
29752 (open_device): Cache open file descriptor in disk->data, so that we
29753 don't have to reopen it and flush the buffer cache for consecutive
29754 operations on the same device.
29755 (grub_util_biosdisk_close): New function.
29756 (grub_util_biosdisk_dev): Set `close' member.
29758 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29759 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29760 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29761 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29762 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29764 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29766 Compile parts of grub-emu as modules.
29768 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29769 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29770 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29771 (all-local): Add $(GRUB_EMU).
29772 (install-local): Install $(GRUB_EMU).
29773 (uninstall): Uninstall $(GRUB_EMU).
29774 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29775 * kern/dl.c: Likewise.
29776 * commands/sleep.c: Not include machine/time.h.
29777 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29778 (COMMON_CFLAGS): Likewise.
29779 (sbin_UTILITIES): Remove grub-emu.
29780 (grub_emu_SOURCES): Removed.
29781 (kernel_img_RELOCATABLE): New variable.
29782 (pkglib_PROGRAMS): Add kernel.img.
29783 (kernel_img_SOURCES): New variable
29784 (kernel_img_CFLAGS): Likewise.
29785 (kernel_img_LDFLAGS): Likewise.
29786 (TARGET_NO_STRIP): Likewise.
29787 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29788 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29789 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29790 (grub-emu): New target.
29791 (GRUB_EMU): New variable.
29792 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29793 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29794 * loader/xnu.c: Likewise.
29795 * include/grub/pci.h: Likewise.
29796 * genemuinit.sh: New file.
29797 * genemuinitheader.sh: Likewise.
29798 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29799 Support TARGET_NO_DYNAMIC_MODULES.
29800 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29801 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29802 * disk/loopback.c: Likewise.
29803 * font/font_cmd.c: Likewise.
29804 * partmap/acorn.c: Likewise.
29805 * partmap/amiga.c: Likewise.
29806 * partmap/apple.c: Likewise.
29807 * partmap/gpt.c: Likewise.
29808 * partmap/msdos.c: Likewise.
29809 * partmap/sun.c: Likewise.
29810 * parttool/msdospart.c: Likewise.
29811 * term/gfxterm.c: Likewise.
29812 * video/bitmap.c: Likewise.
29813 * video/readers/jpeg.c: Likewise.
29814 * video/readers/png.c: Likewise.
29815 * video/readers/tga.c: Likewise.
29816 * video/video.c: Likewise.
29817 * util/grub-emu.c (read_command_list): Removed.
29818 (main): Don't call util_init_nls.
29819 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29820 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29822 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29824 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29825 date.mod, datehook.mod.
29826 (datetime_mod_SOURCES): New variable.
29827 (datetime_mod_CFLAGS): Likewise.
29828 (datetime_mod_LDFLAGS): Likewise.
29829 (date_mod_SOURCES): Likewise.
29830 (date_mod_CFLAGS): Likewise.
29831 (date_mod_LDFLAGS): Likewise.
29832 (datehook_mod_SOURCES): Likewise.
29833 (datehook_mod_CFLAGS): Likewise.
29834 (datehook_mod_LDFLAGS): Likewise.
29835 * conf/sparc64-ieee1275.rmk: Likewise.
29836 * lib/ieee1275/datetime.c: New file.
29838 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29840 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29841 (ieee1275_fb_mod_SOURCES): New variable.
29842 (ieee1275_fb_mod_CFLAGS): Likewise.
29843 (ieee1275_fb_mod_LDFLAGS): Likewise.
29844 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29846 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29847 (HEAP_MAX_ADDR): Likewise.
29848 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29850 Correct stop condition.
29851 (grub_ieee1275_devices_iterate): New function.
29852 * video/ieee1275.c: New file.
29854 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29856 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
29858 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
29860 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
29861 SCRATCH_PAD_DISKBOOT as scratch.
29862 (bootit): Pass Openfirmware pointer in %o4.
29863 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
29865 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
29866 with util/grub-mkrawimage.c.
29867 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
29868 * include/grub/aout.h (AOUT_MID_SUN): New definition.
29869 (grub_aout_get_type) [GRUB_UTIL]: Removed.
29870 (grub_aout_load) [GRUB_UTIL]: Likewise.
29871 * include/grub/kernel.h (grub_modules_get_end): New proto.
29872 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
29873 (SCRATCH_PAD_BOOT): New definition.
29874 (SCRATCH_PAD_DISKBOOT): Likewise.
29875 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
29876 * include/grub/sparc64/ieee1275/ieee1275.h
29877 (grub_ieee1275_original_stack): New variable
29878 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29880 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
29881 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
29882 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
29883 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
29884 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
29885 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
29886 (grub_platform_image_format_t): New type.
29887 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
29888 * kern/main.c (grub_modules_get_end)
29889 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
29890 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
29891 (codestart): Switch stacks.
29892 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
29894 (grub_heap_init): Use grub_modules_get_end.
29895 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
29897 * util/grub-mkrawimage.c (generate_image): Support sparc64.
29899 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
29901 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
29903 * util/grub-mkrescue.in: Base ISO UUID on UTC.
29905 2010-03-08 Matt Kraai <kraai@ftbfs.org>
29907 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
29910 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
29912 * genmoddep.awk: Output all missing symbols and not only first.
29914 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29916 * NEWS: Put the date of 1.98 release.
29918 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29920 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
29923 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29925 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
29926 completition in the middle of string.
29928 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29930 * util/grub-mkrescue.in: Use mktemp with explicit template.
29932 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29934 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
29936 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
29938 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
29941 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29943 Fix FreeBSD compilation.
29945 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
29946 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
29948 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
29950 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
29952 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29954 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
29956 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29958 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
29960 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
29962 Support relative image path in theme file.
29964 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
29965 (image_set_property): Handle theme_dir and relative path.
29967 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29969 * configure.ac: Alias amd64 to x86_64.
29971 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29973 * NEWS: mention multiboot on EFI.
29975 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29977 * kern/main.c (grub_load_modules): Handle errors from init functions of
29980 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29982 * normal/autofs.c (autoload_fs_module): Handle errors.
29984 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
29986 Disable linux.mod on qemu-mips since it's not functional and leads
29987 to compilation failure.
29989 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
29990 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
29991 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
29992 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
29993 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
29994 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
29995 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
29996 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
29997 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
29998 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
29999 Reported by: BVK Chaitanya
30001 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30003 * INSTALL: Add gettext as a dependency and add qemu to a new section
30004 "Prerequisites for make-check".
30006 2010-03-04 Christian Franke <franke@computer.org>
30008 * util/grub-pe2elf.c: Add missing include "progname.h".
30010 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30012 * normal/crypto.c (read_crypto_list): Fix a typo.
30013 Reported by: Seth Goldberg.
30015 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30017 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30018 Reported by: Seth Goldberg.
30020 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30022 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30025 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30027 * genmk.rb: Remove terminal*.lst in make clean.
30028 Reported by: Seth Goldberg.
30030 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30032 * util/i386/efi/grub-install.in: Copy gettext files.
30034 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30036 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30038 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30040 Wait for user entry basing on presence of output rather than on errors.
30042 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30043 (grub_install_newline_hook): Likewise.
30044 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30045 * normal/menu.c (show_menu): Check line_counter to determine presence
30047 * normal/term.c (grub_normal_line_counter): New variable.
30048 (grub_normal_get_line_counter): New function.
30049 (grub_install_newline_hook): Likewise.
30051 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30053 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30055 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30057 * configure.ac: Update version to 1.98.
30059 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30061 * util/grub.d/10_linux.in (linux_entry): Don't default to
30062 gfxpayload=keep if Linux doesn't support video handover.
30064 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30066 Don't compile video modules on yeeloong since video subsystem is part
30069 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30070 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30071 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30072 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30073 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30074 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30075 * include/grub/bitmap_scale.h: Likewise.
30076 * include/grub/bufio.h: Likewise.
30077 * include/grub/font.h: Likewise.
30078 * include/grub/gfxterm.h: Likewise.
30079 * include/grub/video.h: Likewise.
30080 * include/grub/vbe.h: Don't include video_fb.h.
30081 * video/i386/pc/vbe.c: Include video_fb.h.
30082 * commands/i386/pc/vbetest.c: Include video.h.
30084 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30086 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30087 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30088 default entry if GRUB_SAVEDEFAULT=true. This allows using
30089 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30090 saving a new default on every boot.
30092 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30094 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30095 * normal/term.c (read_terminal_list): Likewise.
30096 * normal/main.c (grub_normal_init_page): Likewise.
30097 (grub_normal_read_line_real): Likewise.
30099 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30101 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30103 Reported by: Seth Goldberg.
30105 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30107 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30108 duplicate declaration of `start'.
30110 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30112 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30114 Reported by: Georgy Buranov
30116 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30118 * util/grub-mkrawimage.c (usage): Change string formatting to
30121 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30123 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30126 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30128 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30129 Reported by: Michael Suchanek.
30131 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30133 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30134 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30136 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30138 Remove any reference to non-free fonts.
30140 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30141 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30142 uses non-free components.
30143 * font/font.c (grub_font_get_name): Remove example name.
30144 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30145 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30146 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30147 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30149 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30151 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30153 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30155 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30157 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30159 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30161 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30163 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30165 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30167 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30168 * docs/grub.texi (Command-line and menu entry commands): Document play
30171 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30173 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30174 parse arguments as inline tempo and notes. Move code for playing notes
30176 (play): ... new function.
30178 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30180 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30181 grub_uint16_t instead of short.
30182 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30183 disk from little endian to cpu endianness.
30185 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30187 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30188 GRUB_TICKS_PER_SECOND instead of 120.
30190 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30192 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30193 escape sequence after \e.
30195 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30197 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30198 non-ASCII characters.
30200 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30202 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30203 set root in single quotes to prevent \, from being unescaped.
30205 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30207 Prevent unknown commands from stopping menuentry execution.
30209 * script/execute.c (grub_script_execute_cmdline): Print error after
30212 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30214 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30215 Reported by: Pavel Pisa.
30217 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30219 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30221 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30223 Merge grub_ieee1275_map_physical into grub_map and rename to
30226 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30227 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30229 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30230 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30232 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30234 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30236 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30237 opening and not after.
30239 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30241 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30244 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30246 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30247 (alloc_phys): Use ALIGN_UP instead of align_addr.
30249 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30251 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30253 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30255 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30257 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30259 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30262 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30264 Fix over-4GiB seek on sparc64.
30266 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30267 Replace pos_i and pos_lo with pos. All users updated.
30268 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30270 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30272 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30275 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30277 * util/grub-mkrawimage.c (main): Call set_program_name.
30279 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30281 Properly align 64-bit targets.
30283 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30284 (generate_image): Use ALIGN_ADDR.
30286 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30288 Properly create cross-endian images.
30290 * include/grub/types.h (grub_host_to_target_addr): New macro
30291 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30293 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30295 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30297 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30299 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30301 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30302 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30303 (grub_linux_boot): Divide by 64K when on VESA.
30305 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30307 Support GRUB_GFXPAYLOAD_LINUX.
30309 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30310 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30312 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30314 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30315 to show messages instead of discarding them.
30316 Process errors after executing command and not before. Keep old method
30319 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30321 * configure.ac: Check for ft2build.h.
30323 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30325 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30327 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30329 * genkernsyms.sh.in: Use TARGET_CC.
30331 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30335 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30337 * include/grub/multiboot2.h: Remove leftover file.
30338 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30339 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30341 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30343 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30345 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30347 Fix warnings in grub-emu when compiling with maximum warning options.
30349 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30350 (grub_arch_modules_addr): Return 0 and not NULL.
30351 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30352 (xstrdup): Use newstr instead of dup.
30353 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30354 of disk to dsk to avoid shadowing.
30355 (find_free_slot): Fix prototype.
30356 * util/getroot.c (grub_util_is_dmraid): Make static.
30357 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30358 Add missing prototype.
30359 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30361 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30363 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30366 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30368 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30371 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30373 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30374 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30375 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30376 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30377 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30378 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30380 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30382 * include/grub/err.h (grub_err_printf): Don't export.
30384 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30386 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30388 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30390 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30391 * kern/misc.c (grub_gettext_dummy): Make static.
30393 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30395 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30397 * kern/term.c (grub_putchar): Likewise.
30399 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30401 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30402 buggy hook call and memory leak.
30404 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30406 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30408 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30410 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30412 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30414 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30416 Return grub_errno on allocation error.
30418 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30420 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30422 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30424 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30425 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30427 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30429 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30431 (grub_pxefs_open): Likewise.
30433 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30435 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30436 * util/grub.d/10_kfreebsd.in: Likewise.
30437 * util/grub.d/10_linux.in: Likewise.
30439 2010-02-06 Colin D Bennett <colin@gibibit.com>
30441 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30442 (gfxmenu_mod_SOURCES): New variable.
30443 (gfxmenu_mod_CFLAGS): Likewise.
30444 (gfxmenu_mod_LDFLAGS): Likewise.
30445 * include/grub/term.h (grub_term_set_current_output): Declare
30447 * docs/gfxmenu-theme-example.txt: New file.
30448 * gfxmenu/gfxmenu.c: Likewise.
30449 * gfxmenu/gui_box.c: Likewise.
30450 * gfxmenu/gui_canvas.c: Likewise.
30451 * gfxmenu/gui_circular_progress.c: Likewise.
30452 * gfxmenu/gui_image.c: Likewise.
30453 * gfxmenu/gui_label.c: Likewise.
30454 * gfxmenu/gui_list.c: Likewise.
30455 * gfxmenu/gui_progress_bar.c: Likewise.
30456 * gfxmenu/gui_string_util.c: Likewise.
30457 * gfxmenu/gui_util.c: Likewise.
30458 * gfxmenu/icon_manager.c: Likewise.
30459 * gfxmenu/model.c: Likewise.
30460 * gfxmenu/named_colors.c: Likewise.
30461 * gfxmenu/theme_loader.c: Likewise.
30462 * gfxmenu/view.c: Likewise.
30463 * gfxmenu/widget-box.c: Likewise.
30464 * include/grub/gfxmenu_model.h: Likewise.
30465 * include/grub/gfxmenu_view.h: Likewise.
30466 * include/grub/gfxwidgets.h: Likewise.
30467 * include/grub/gui.h: Likewise.
30468 * include/grub/gui_string_util.h: Likewise.
30469 * include/grub/icon_manager.h: Likewise.
30471 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30473 Agglomerate scrolling in gfxterm.
30475 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30476 (grub_virtual_screen_setup): Initialise 'total_screen'.
30477 (write_char): Split to ...
30478 (paint_char): ... this ...
30479 (write_char): ... and this.
30480 (paint_char): Handle delayed scrolling.
30481 (draw_cursor): Likewise.
30482 (scroll_up): Split to ...
30483 (real_scroll): ... this ...
30484 (scroll_up): ... and this.
30485 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30487 (grub_gfxterm_refresh): Call real_scroll.
30489 2010-02-06 Colin D Bennett <colin@gibibit.com>
30491 * include/grub/misc.h (grub_iscntrl): New inline function.
30492 (grub_isalnum): Likewise.
30493 (grub_strtol): Likewise.
30495 2010-02-06 Colin D Bennett <colin@gibibit.com>
30497 * normal/menu_text.c (get_entry_number): Move from here ...
30498 * normal/menu.c (get_entry_number): ... moved here.
30499 * include/grub/menu.h (grub_menu_get_default_entry_index):
30501 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30502 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30503 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30504 (grub_menu_viewer_should_return): Likewise.
30505 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30506 * normal/menu_text.c (run_menu): Enable menu switching.
30507 * normal/menu_viewer.c (should_return): New variable.
30508 (menu_viewer_changed): Likewise.
30509 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30510 (grub_menu_viewer_should_return): New function.
30511 (menuviewer_write_hook): Likewise.
30512 (grub_menu_viewer_init): Likewise.
30514 2010-02-06 Colin D Bennet <colin@gibibit.com>
30515 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30517 Support for gfxterm in a window.
30519 * include/grub/gfxterm.h: New file.
30520 * include/grub/video.h (struct grub_video_rect): New declaration.
30521 (grub_video_rect_t): Likewise.
30522 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30523 (refcount): New variable.
30524 (render_target): Likewise.
30525 (window): Likewise.
30526 (repaint_callback): Likewise.
30527 (grub_virtual_screen_setup): Use 'render_target'.
30528 (init_window): New function.
30529 (grub_gfxterm_init_window): Likewise.
30530 (grub_gfxterm_init): Check reference counter.
30532 (destroy_window): New function.
30533 (grub_gfxterm_destroy_window): Likewise.
30534 (grub_gfxterm_fini): Check reference counter.
30535 Use destroy_window.
30536 (redraw_screen_rect): Restore viewport.
30537 Use 'render_target' and 'window'.
30538 Call 'repaint_callback'.
30539 (write_char): Use 'render_target'.
30540 (draw_cursor): Likewise.
30541 (scroll_up): Restore viewport.
30542 Use 'render_target' and 'window'.
30543 Call 'repaint_callback'.
30544 (grub_gfxterm_cls): Likewise.
30545 (grub_gfxterm_refresh): Use 'window'.
30546 (grub_gfxterm_set_repaint_callback): New function.
30547 (grub_gfxterm_background_image_cmd): Use 'window'.
30548 (grub_gfxterm_get_term): New function.
30549 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30551 2010-02-06 Colin D Bennett <colin@gibibit.com>
30553 Bitmap scaling support.
30555 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30556 (bitmap_scale_mod_SOURCES): New variable.
30557 (bitmap_scale_mod_CFLAGS): Likewise.
30558 (bitmap_scale_mod_LDFLAGS): Likewise.
30559 * include/grub/bitmap_scale.h: New file.
30560 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30561 (background_image_cmd_options): New variable.
30562 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30563 (cmd): Rename and change type to ...
30564 (background_image_cmd_handle): ... this. All users updated.
30565 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30566 * video/bitmap_scale.c: New file.
30568 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30572 * Makefile.in (LIBSDL): New variable.
30573 (enable_grub_emu_sdl): Likewise.
30574 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30575 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30576 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30577 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30578 * util/sdl.c: New file.
30580 2010-02-06 Colin D Bennett <colin@gibibit.com>
30581 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30583 Double buffering support.
30585 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30586 * include/grub/video.h: Update comment.
30587 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30589 (grub_video_fb_doublebuf_blit_init): New prototype.
30590 * term/gfxterm.c (scroll_up): Support double buffering.
30591 (grub_gfxterm_refresh): Likewise.
30592 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30593 (grub_video_fb_doublebuf_blit_init): Likewise.
30594 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30595 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30596 'displayed_page', 'render_page' and 'update_screen'.
30597 (grub_video_vbe_fini): Free offscreen buffer.
30598 (doublebuf_pageflipping_commit): New function.
30599 (doublebuf_pageflipping_update_screen): Likewise.
30600 (doublebuf_pageflipping_init): Likewise.
30601 (double_buffering_init): Likewise.
30602 (grub_video_vbe_setup): Enable doublebuffering.
30603 (grub_video_vbe_swap_buffers): Implement.
30604 (grub_video_vbe_set_active_render_target): Handle double buffering.
30605 (grub_video_vbe_get_active_render_target): Likewise.
30606 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30607 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30608 (grub_video_vbe_enable_double_buffering): Likewise.
30609 (grub_video_vbe_swap_buffers): Use update_screen.
30610 (grub_video_set_mode): Use double buffering.
30612 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30614 * maintainance/gentrigtables.py: Remove.
30615 * lib/trig.c: Likewise.
30617 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30619 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30621 (trigtables.c): New rule.
30622 (gentrigtables): Likewise.
30623 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30625 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30627 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30630 2010-02-06 Colin D Bennet <colin@gibibit.com>
30632 Trigonometry support.
30634 * include/grub/trig.h: New file.
30635 * lib/trig.c: Likewise.
30636 * maintainance/gentrigtables.py: Likewise.
30637 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30638 (trig_mod_SOURCES): New variable.
30639 (trig_mod_CFLAGS): Likewise.
30640 (trig_mod_LDFLAGS): Likewise.
30642 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30644 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30647 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30649 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30652 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30654 * util/hostdisk.c (open_device): Don't use partition device when reading
30655 before the partition.
30656 (grub_util_biosdisk_read): Don't read from partition and before the
30657 partition in single operation.
30658 (grub_util_biosdisk_write): Don't write to partition and before the
30659 partition in single operation.
30661 2010-02-03 Torsten Landschoff <torsten@debian.org>
30663 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30666 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30668 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30670 (grub_biosdisk_write): Refuse to write to CDROM.
30672 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30674 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30676 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30678 * font/font.c (find_glyph): Check that bmp_idx is available before
30680 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30681 with (font == NULL).
30683 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30685 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30687 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30689 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30690 * util/grub-script-check.c (getline): Fix empty lines case.
30692 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30694 * Makefile.in (check): Exit with fail status when one of the tests
30696 * tests/example_functional_test.c (example_test): Fix reversed assert.
30697 * tests/example_unit_test.c (example_test): Likewise.
30699 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30701 * util/grub.d/10_linux.in: This script does not use any of the
30702 contents of gettext.sh, only the external command `gettext', so stop
30703 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30704 the same prefix as GRUB.)
30705 * util/grub.d/10_kfreebsd.in: Likewise.
30707 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30709 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30712 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30714 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30717 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30719 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30720 having a 4KiB and not 32KiB buffer size.
30722 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30724 * util/hostfs.c: Include `<errno.h>'.
30725 (grub_hostfs_read): Handle errors from fseeko() and fread().
30727 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30729 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30730 loop when using read hooks on files whose size isn't sector-aligned.
30732 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30734 Remove unused parameter.
30736 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30737 (grub_iso9660_open): Remove initialization of `data->length'.
30739 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30741 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30742 memleak conditions.
30744 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30746 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30747 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30749 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30751 * util/bin2h.c (usage): Fix warning (space after backslash).
30753 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30755 * font/font.c: Include `grub/fontformat.h.
30756 Remove font file format constants.
30757 (grub_font_load): Use the new macros.
30758 * include/grub/fontformat.h: New file.
30759 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30760 (write_font_pf2): Use the new macros.
30762 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30764 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30767 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30769 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30771 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30772 (_start): Macroify `0x7F'.
30774 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30775 (make_install_device): Use "(pxe)" as fallback prefix when booting
30778 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30780 * configure.ac: Reset LIBS after check for libgcc symbols.
30782 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30784 * util/hostdisk.c (open_device): Add trailing newline to debug
30787 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30789 * configure.ac: Check for `limits.h'.
30790 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30792 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30794 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30795 capitalize error strings.
30797 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30799 * util/grub.d/10_hurd.in: Add a recovery mode.
30801 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30803 * configure.ac: Check for libgcc symbols with -nostdlib.
30805 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30807 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30809 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30811 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30812 stack since heap may be unavailable at that point.
30813 (grub_ofconsole_gotoxy): Likewise.
30815 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30817 * configure.ac: Check for _restgpr_14_x.
30818 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30819 and _savegpr_* prototypes.
30821 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30823 Use generic grub_reboot() for i386-efi.
30825 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30826 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30827 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30829 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30831 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30832 presence of "prefix" variable as it breaks when normal.mod is
30835 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30837 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30838 stack since heap is unavailable at that point.
30840 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30842 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30843 (grub_freebsd_bootinfo): Rewritten.
30844 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30846 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30848 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30850 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30852 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30855 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
30857 * util/misc.c (make_system_path_relative_to_its_root): Change the work
30858 around for handling "/" to the correct fix. Fix a memory leak. Use
30859 xstrdup instead of strdup.
30861 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30863 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
30865 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30867 Optimise glyph lookup by Basic Multilingual Plane lookup array.
30869 * font/font.c (struct grub_font): New member 'bmp_idx'.
30870 (font_init): Initialise 'bmp_idx'.
30871 (load_font_index): Fill 'bmp_idx'.
30872 (find_glyph): Make inline. Use bmp_idx for BMP characters.
30874 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30876 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
30879 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30881 Move context handling out of the kernel.
30883 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
30884 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
30885 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
30886 * conf/i386-efi.rmk: Likewise.
30887 * conf/i386-ieee1275.rmk: Likewise.
30888 * conf/i386-pc.rmk: Likewise.
30889 * conf/powerpc-ieee1275.rmk: Likewise.
30890 * conf/sparc64-ieee1275.rmk: Likewise.
30891 * conf/x86_64-efi.rmk: Likewise.
30892 * include/grub/env.h: Include grub/menu.h.
30893 (grub_env_var_type): Removed.
30894 (grub_env_var): Replaced field 'type' with 'global'.
30895 (grub_env_find): New prototype.
30896 (grub_env_context_open): Remove EXPORT_FUNC.
30897 (grub_env_context_close): Likewise.
30898 (grub_env_export): Likewise.
30899 (grub_env_set_data_slot): Removed.
30900 (grub_env_get_data_slot): Likewise.
30901 (grub_env_unset_data_slot): Likewise.
30902 (grub_env_unset_menu): New prototype.
30903 (grub_env_set_menu): Likewise.
30904 (grub_env_get_menu): Likewise.
30905 * include/grub/env_private.h: New file.
30906 * include/grub/normal.h (grub_context_init): New prototype.
30907 (grub_context_fini): Likewise.
30908 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
30909 * normal/context.c (grub_cmd_export): ... to here.
30910 * kern/env.c: Include env_private.h.
30911 (HASHSZ): Moved to include/grub/env_private.h.
30912 (grub_env_context): Likewise.
30913 (grub_env_sorted_var): Likewise.
30914 (current_context): Renamed from this ...
30915 (grub_current_context): ...to this. 'static' removed. All users updated.
30916 (grub_env_find): Removed 'static'.
30917 (grub_env_context_open): Moved to normal/context.c.
30918 (grub_env_context_close): Likewise.
30919 (grub_env_export): Likewise.
30920 (mangle_data_slot_name): Removed.
30921 (grub_env_set_data_slot): Likewise.
30922 (grub_env_get_data_slot): Likewise.
30923 (grub_env_unset_data_slot): Likewise.
30924 * kern/main.c (grub_set_root_dev): Don't export root.
30925 It will be done later.
30926 (grub_main): Don't export prefix.
30927 It will be done later.
30928 * normal/context.c: New file.
30929 * normal/main.c (free_menu): Use grub_env_unset_menu.
30930 (grub_normal_add_menu_entry): Use grub_env_get_menu.
30931 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
30932 (GRUB_MOD_INIT(normal)): Call grub_context_init.
30933 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
30935 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30939 * commands/setpci.c: New file.
30940 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
30941 (setpci_mod_SOURCES): New variable.
30942 (setpci_mod_CFLAGS): Likewise.
30943 (setpci_mod_LDFLAGS): Likewise.
30945 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30947 Byte-addressable PCI configuration space.
30949 * bus/pci.c (grub_pci_make_address): Use byte address instead of
30951 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
30952 GRUB_PCI_REG_CACHELINE.
30953 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
30954 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
30955 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
30956 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
30957 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
30958 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
30959 grub_pci_make_address.
30960 (lock_rom_area): Likewise.
30961 * commands/lspci.c (grub_lspci_iter): Use macroses
30962 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
30963 of grub_pci_make_address.
30964 * disk/ata.c (grub_ata_pciinit): Likewise.
30965 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
30966 (GRUB_PCI_REG_VENDOR): Likewise.
30967 (GRUB_PCI_REG_DEVICE): Likewise.
30968 (GRUB_PCI_REG_COMMAND): Likewise.
30969 (GRUB_PCI_REG_STATUS): Likewise.
30970 (GRUB_PCI_REG_REVISION): Likewise.
30971 (GRUB_PCI_REG_CLASS): Likewise.
30972 (GRUB_PCI_REG_CACHELINE): Likewise.
30973 (GRUB_PCI_REG_LAT_TIMER): Likewise.
30974 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
30975 (GRUB_PCI_REG_BIST): Likewise.
30976 (GRUB_PCI_REG_ADDRESSES): Likewise.
30977 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30978 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30979 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30980 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30981 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30982 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
30983 (GRUB_PCI_REG_CIS_POINTER): Likewise.
30984 (GRUB_PCI_REG_SUBVENDOR): Likewise.
30985 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
30986 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
30987 (GRUB_PCI_REG_CAP_POINTER): Likewise.
30988 (GRUB_PCI_REG_IRQ_LINE): Likewise.
30989 (GRUB_PCI_REG_IRQ_PIN): Likewise.
30990 (GRUB_PCI_REG_MIN_GNT): Likewise.
30991 (GRUB_PCI_REG_MAX_LAT): Likewise.
30992 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
30993 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
30994 * video/efi_uga.c (find_framebuf): Likewise.
30995 * video/sm712.c (grub_video_sm712_setup): Likewise.
30996 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
30999 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31001 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31002 can be reliably determined to be supported.
31004 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31006 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31007 that VESA is supported.
31008 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31011 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31013 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31015 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31017 * util/misc.c (make_system_path_relative_to_its_root): Work around
31018 special-casing of "/", as previous incarnation of this routine did.
31020 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31022 Fix any-emu compilation.
31024 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31025 * grub_bin2h_SOURCES: New variable.
31027 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31029 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31031 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31033 * util/grub.d/00_header.in: Fix handling of locale_dir.
31035 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31037 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31038 as possible unifont location (Gentoo).
31039 Reported by: Alexander Brüning
31041 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31043 Don't try to generate lists for kernel.img.
31045 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31046 (pkglib_MODULES): Remove kernel.img.
31047 (kernel_img_EXPORTS): Removed.
31048 (kernel_img_RELOCATABLE): New variable.
31049 * conf/x86_64-efi.rmk: Likewise.
31050 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31052 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31054 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31055 grub_xasprintf or grub_snprintf.
31056 (grub_vsprintf): Likewise.
31057 (grub_snprintf): New proto.
31058 (grub_vsnprintf): Likewise.
31059 (grub_xasprintf): Likewise.
31060 (grub_xvasprintf): Likewise.
31061 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31062 (grub_sprintf): Removed.
31063 (grub_vsnprintf): New function.
31064 (grub_snprintf): Likewise.
31065 (grub_xvasprintf): Likewise.
31066 (grub_xasprintf): Likewise.
31067 (grub_vsprintf): Renamed to ...
31068 (grub_vsnprintf_real): ...this. New argument max_len.
31070 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31072 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31073 fix grub-script-check warning.
31075 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31077 * include/grub/font.h (grub_font_load): Fix prototype.
31079 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31081 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31083 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31085 * include/grub/x86_64/at_keyboard.h: New file.
31087 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31089 * loader/mips/linux.c: Include missing grub/i18n.h.
31091 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31093 * normal/menu.c (notify_execution_failure): Clarify error message.
31095 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31097 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31098 return value (and revert all return statements). Update users.
31100 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31102 * kern/device.c (grub_device_iterate): Allocate new part_ent
31103 structure based on sizeof (*p) rather than sizeof (p->next), to
31104 account for structure padding.
31106 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31107 disk is NULL, which might happen for LVM physical volumes with no
31110 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31112 * loader/mips/linux.c (grub_cmd_initrd)
31113 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31115 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31117 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31118 (grub_video_video_init, grub_video_bitmap_init)
31119 (grub_font_manager_init, grub_term_gfxterm_init)
31120 (grub_at_keyboard_init): New extern declarations.
31121 (grub_machine_init): Initialize gfxterm and at_keyboard.
31123 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31125 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31126 `gfxterm.mod' into core image.
31128 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31129 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31130 (kernel_img_FORMAT): Copy to ...
31132 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31133 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31134 (kernel_img_FORMAT): ... here, and ...
31136 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31137 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31138 (kernel_img_FORMAT): ... here.
31140 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31141 and input (at_keyboard) terminals in kernel.
31142 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31144 (pkglib_MODULES): Remove `pci.mod'.
31145 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31146 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31147 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31148 (at_keyboard_mod_LDFLAGS): Remove variables.
31150 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31152 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31154 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31156 * include/grub/mips/libgcc.h: Only export symbols for functions
31157 that libgcc provides.
31159 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31163 * bus/bonito.c: New file.
31164 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31165 GRUB_PCI_NUM_DEVICES.
31166 * term/i386/pc/serial.c: Move to ...
31167 * term/serial.c: ... here. All users updated.
31168 * util/i386/pc/grub-mkimage.c: Move to ...
31169 * util/grub-mkrawimage.c: ... here. All users updated.
31170 * term/i386/pc/at_keyboard.c: Move to ...
31171 * term/at_keyboard.c: ... here. All users updated.
31172 * conf/mips-qemu-mips.rmk: New file.
31173 * conf/mips-yeeloong.rmk: Likewise.
31174 * conf/mips.rmk: Likewise.
31175 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31177 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31179 (grub_ata_pciinit): Support CS5536.
31180 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31181 * font/font_cmd.c (loadfont_command): Open file before passing it to
31183 (pseudo_file_read): New function.
31184 (pseudo_file_close): Likewise.
31185 (pseudo_fs): New structure.
31186 (load_font_module): New function.
31187 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31188 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31189 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31190 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31191 * include/grub/i386/at_keyboard.h: Split into ...
31192 * include/grub/at_keyboard.h: ... this ...
31193 * include/grub/i386/at_keyboard.h: ... and this.
31194 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31196 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31198 (grub_elf64_size): Likewise.
31199 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31201 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31202 * include/grub/i386/coreboot/serial.h: Rewritten.
31203 * include/grub/i386/ieee1275/serial.h: Include
31204 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31205 * include/grub/i386/pc/serial.h: Moved from here ...
31206 * include/grub/serial.h: ... to here. All users updated.
31207 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31208 (GRUB_PCI_NUM_BUS): Likewise.
31209 (GRUB_PCI_NUM_DEVICES): Likewise.
31210 (grub_pci_device_map_range): Add missing volatile keyword.
31211 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31212 * include/grub/mips/at_keyboard.h: New file.
31213 * include/grub/mips/cache.h: Likewise.
31214 * include/grub/mips/io.h: Likewise.
31215 * include/grub/mips/kernel.h: Likewise.
31216 * include/grub/mips/libgcc.h: Likewise.
31217 * include/grub/mips/pci.h: Likewise.
31218 * include/grub/mips/qemu-mips/boot.h: Likewise.
31219 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31220 * include/grub/mips/qemu-mips/loader.h: Likewise.
31221 * include/grub/mips/qemu-mips/memory.h: Likewise.
31222 * include/grub/mips/qemu-mips/serial.h: Likewise.
31223 * include/grub/mips/qemu-mips/time.h: Likewise.
31224 * include/grub/mips/relocator.h: Likewise.
31225 * include/grub/mips/time.h: Likewise.
31226 * include/grub/mips/types.h: Likewise.
31227 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31228 * include/grub/mips/yeeloong/boot.h: Likewise.
31229 * include/grub/mips/yeeloong/kernel.h: Likewise.
31230 * include/grub/mips/yeeloong/loader.h: Likewise.
31231 * include/grub/mips/yeeloong/memory.h: Likewise.
31232 * include/grub/mips/yeeloong/pci.h: Likewise.
31233 * include/grub/mips/yeeloong/serial.h: Likewise.
31234 * include/grub/mips/yeeloong/time.h: Likewise.
31235 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31236 * kern/elf.c (grub_elf32_size): New parameter. All users
31238 (grub_elf64_size): Likewise.
31239 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31240 Load modules before saying "Welcome to GRUB!".
31241 Call grub_refresh after saying "Welcome to GRUB!".
31242 * kern/mips/cache.S: New file.
31243 * kern/mips/cache_flush.S: Likewise.
31244 * kern/mips/dl.c: Likewise.
31245 * kern/mips/init.c: Likewise.
31246 * kern/mips/qemu-mips/init.c: Likewise.
31247 * kern/mips/startup.S: Likewise.
31248 * kern/mips/yeeloong/init.c: Likewise.
31249 * kern/term.c (grub_putcode): Handle NULL terminal.
31250 (grub_getcharwidth): Likewise.
31251 (grub_getkey): Likewise.
31252 (grub_checkkey): Likewise.
31253 (grub_getkeystatus): Likewise.
31254 (grub_getxy): Likewise.
31255 (grub_getwh): Likewise.
31256 (grub_gotoxy): Likewise.
31257 (grub_cls): Likewise.
31258 (grub_setcolorstate): Likewise.
31259 (grub_setcolor): Likewise.
31260 (grub_getcolor): Likewise.
31261 (grub_refresh): Likewise.
31262 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31263 (write_jump): Add hatch nop.
31264 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31265 * lib/mips/setjmp.S: New file.
31266 * loader/mips/linux.c: Likewise.
31267 * term/i386/pc/at_keyboard.c: Move from here ...
31268 * term/at_keyboard.c: ... to here.
31269 * term/i386/pc/serial.c: Moved from here ...
31270 * term/serial.c: ... to here. All users updated.
31271 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31272 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31273 (serial_translate_key_sequence): Avoid deadlock.
31274 (grub_serial_getkey): Handle backspace.
31275 (grub_serial_putchar): Fix newline handling.
31276 * util/i386/pc/grub-mkimage.c: Move from here ...
31277 * util/grub-mkrawimage.c: ... to here. All users updated.
31278 (generate_image): New parameters 'font_path' and 'format'.
31279 Support embedding font.
31280 Use grub_host_to_target* instead of grub_cpu_to_le*.
31281 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31282 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31283 (options): New option "--font".
31285 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31286 (main): Handle "--font".
31287 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31288 (grub_virtual_screen_setup): Set bg_color_display.
31289 (redraw_screen_rect): Use bg_color_display instead of incorrect
31291 (grub_gfxterm_cls): Likewise.
31292 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31293 Support embedding config file.
31294 (add_segments): Likewise.
31295 (options): New option "--config".
31296 (main): Handle "--config".
31297 * video/sm712.c: New file.
31299 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31301 Fix parallel builds.
31303 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31304 font.c depend on ascii.h).
31306 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31308 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31310 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31312 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31313 By default: disabled.
31314 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31317 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31319 * font/font.c: Update copyright years.
31320 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31322 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31324 * font/font.c: Include `ascii.h'.
31325 (ASCII_BITMAP_SIZE): New macro.
31326 (ascii_font_glyph): Define.
31327 (ascii_glyph_lookup): New function.
31328 (grub_font_get_string_width): Change comment. If glyph not found, use
31329 ascii_glyph_lookup.
31330 (grub_font_get_glyph_with_fallback): If glyph not available returns
31331 ascii_glyph_lookup.
31332 * util/grub-mkfont.c (file_formats): New enum.
31333 (options): Add `ascii-bitmaps' new option.
31334 (usage): Add `asii-bitmaps' new option.
31335 (write_font_ascii_bitmap): New function.
31336 (write_font): Rename to ...
31337 (write_font_p2): ... this. Remove print_glyphs call.
31338 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31339 used. Call print_glyphs.
31340 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31342 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31344 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31345 (grub_bin2h_SOURCES): New variable.
31346 * util/bin2h.c: New file.
31348 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31350 * include/multiboot.h: Resynced with spec.
31351 * include/multiboot2.h: Likewise.
31352 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31353 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31355 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31357 * include/grub/term.h (grub_term_register_input,
31358 grub_term_register_output): Check return of terminal init()
31359 routines, and abort if errors are raised.
31361 * commands/terminal.c: Update copyright year.
31363 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31365 * commands/terminal.c (grub_cmd_terminal_input)
31366 (grub_cmd_terminal_output): Check return of terminal init()
31367 routines, and abort if errors are raised.
31369 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31371 * include/grub/i386/bsd.h: Fix include pathes.
31373 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31375 Add missing *BSD copyright headers.
31377 * include/grub/aout.h: Add BSD licence.
31378 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31379 * include/grub/i386/freebsd_linker.h: ... here,
31380 * include/grub/i386/freebsd_reboot.h: ... here,
31381 * include/grub/i386/netbsd_bootinfo.h: ... here,
31382 * include/grub/i386/netbsd_reboot.h: ... here,
31383 * include/grub/i386/openbsd_bootarg.h: ... here,
31384 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31385 licence to each file.
31387 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31389 * acinclude.m4: Remove `nop' assembly instruction; it's not
31390 implemented by all architectures.
31392 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31394 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31395 ELILO. This is no longer necessary.
31397 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31399 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31401 * util/grub-script-check.c: grub-script-check tool.
31402 * conf/common.rmk: Make rules for grub-script-check.
31404 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31406 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31407 spotting it back in 2008. Shame on me for forgetting he did.
31409 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31411 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31413 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31414 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31415 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31416 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31417 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31418 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31420 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31422 * include/grub/test.h: Add license header.
31423 * tests/example_functional_test.c: Likewise.
31424 * tests/example_unit_test.c: Likewise.
31425 * tests/lib/functional_test.c: Likewise.
31426 * tests/lib/test.c: Likewise.
31427 * tests/lib/unit_test.c: Likewise.
31429 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31431 Use flag-based instead of hook-based video mode selection and "auto"
31434 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31435 (grub_video_set_mode): Changed prototype. All users updated.
31436 (grub_video_check_mode_flag): New inline function.
31437 * video/video.c (parse_modespec): New function.
31438 (grub_video_set_mode): Parse flags and keywords.
31440 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31442 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31445 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31447 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31449 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31451 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31453 * util/grub-emu.c (usage): Likewise.
31454 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31455 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31456 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31457 * util/i386/pc/grub-setup.c (usage): Likewise.
31459 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31461 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31463 (grub_util_info): Likewise.
31464 (grub_util_error): Likewise.
31465 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31466 and/or new lines in `grub_util_warna', `grub_util_info',
31467 `grub_util_error' calls.
31468 * util/getroot.c: Likewise.
31469 * util/grub-editenv.c: Likewise.
31470 * util/grub-emu.c: Likewise.
31471 * util/grub-fstest.c: Likewise.
31472 * util/grub-mkdevicemap.c: Likewise.
31473 * util/grub-mkfont.c: Likewise.
31474 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31475 * util/grub-mkrelpath.c: Likewise.
31476 * util/grub-pe2elf.c: Likewise.
31477 * util/grub-probe.c: Likewise.
31478 * util/hostdisk.c: Likewise.
31479 * util/i386/efi/grub-mkimage.c: Likewise.
31480 * util/i386/pc/grub-mkimage.c: Likewise.
31481 * util/i386/pc/grub-setup.c: Likewise.
31482 * util/ieee1275/ofpath.c: Likewise.
31483 * util/mkisofs/eltorito.c: Likewise.
31484 * util/mkisofs/rock.c: Likewise.
31485 * util/mkisofs/write.c: Likewise.
31486 * util/raid.c: Likewise.
31487 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31488 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31490 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31492 Enable multiboot on non-pc.
31494 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31495 multiboot.mod and multiboot2.mod to ...
31496 * conf/i386.rmk (pkglib_MODULES): ... here.
31497 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31499 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31500 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31502 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31503 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31505 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31506 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31508 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31509 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31511 (ata_mod_SOURCES): Removed.
31512 (ata_mod_CFLAGS): Likewise.
31513 (ata_mod_LDFLAGS): Likewise.
31514 (relocator_mod_SOURCES): Removed.
31515 (relocator_mod_CFLAGS): Likewise.
31516 (relocator_mod_ASFLAGS): Likewise.
31517 (relocator_mod_LDFLAGS): Likewise.
31519 * include/grub/x86_64/multiboot.h: New file.
31520 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31523 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31525 Video multiboot support.
31527 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31529 * include/multiboot.h: Resynced with multiboot specification.
31530 * include/multiboot2.h: Likewise.
31531 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31532 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31533 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31534 (HAS_VGA_TEXT): Likewise.
31535 (accepts_video): New variable.
31536 (grub_multiboot_set_accepts_video): New function.
31537 (grub_multiboot_get_mbi_size): Account for video structures.
31538 (set_video_mode): New function.
31539 (retrieve_video_parameters): Likewise.
31540 (grub_multiboot_make_mbi): Fill video fields.
31542 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31546 * include/grub/video.h (grub_video_driver_id): New type.
31547 (grub_video_adapter): New member 'id'. All users updated.
31548 (grub_video_get_driver_id): New proto.
31549 * video/video.c (grub_video_get_driver_id): New function.
31551 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31553 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31556 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31558 * normal/cmdline.c (print_completion): Gettextizze.
31560 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31562 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31564 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31566 * gettext/gettext.c (grub_gettext_translate): Push and pop
31568 (grub_gettext_delete_list): Change comment style.
31569 * kern/err.c (grub_error): Gettextizze.
31570 (grub_fatal): Gettextizze.
31572 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31574 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31575 (grub_linux16_real_boot): ... this.
31576 * kern/i386/loader.S: Likewise.
31577 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31578 (grub_linux16_boot): New function. Switches to text mode and calls
31579 grub_linux16_real_boot().
31581 * loader/i386/bsd.c: Include `<grub/video.h>'.
31582 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31583 text mode before calling grub_unix_real_boot().
31585 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31586 (grub_multiboot_boot): Switch to text mode before calling
31587 grub_relocator32_boot().
31589 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31590 (grub_chainloader_boot): Switch to text mode before calling
31591 grub_chainloader_real_boot().
31593 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31594 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31596 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31599 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31600 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31602 * util/grub.d/00_header.in: Define a "savedefault" function for use
31604 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31606 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31607 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31609 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31610 saved_entry if boot_once is unset.
31611 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31612 previous saved entry (i.e. grub-reboot).
31614 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31616 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31618 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31620 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31622 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31624 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31626 * util/grub-reboot.in: Fix --version output.
31627 * util/grub-set-default.in: Likewise.
31629 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31631 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31634 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31636 * util/grub.d/00_header.in: Quote the value assigned to `default',
31637 in case it contains spaces.
31639 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31641 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31642 `save_default_entry' call from the macosx case to the linux case.
31644 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31645 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31647 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31648 in `chosen' environment variable.
31649 * normal/menu_text.c (get_entry_number): Check if the variable
31650 matches the title of a menu entry.
31651 (run_menu): Pass menu to get_entry_number.
31653 * util/grub-reboot.in: New file.
31654 * util/grub-set-default.in: New file.
31655 * conf/common.rmk (grub-reboot): New utility.
31656 (grub-set-default): New utility.
31658 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31659 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31660 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31661 move it to `saved_entry' for the next boot. Load environment on
31663 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31664 * util/grub.d/10_hurd.in: Likewise.
31665 * util/grub.d/10_linux.in (linux_entry): Likewise.
31666 * util/grub.d/10_windows.in: Likewise.
31667 * util/grub.d/30_os-prober.in: Likewise.
31669 * util/grub-install.in: Create environment block.
31670 * util/i386/efi/grub-install.in: Likewise.
31671 * util/ieee1275/grub-install.in: Likewise.
31672 * util/sparc64/ieee1275/grub-install.in: Likewise.
31674 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31676 Unit testing framework for GRUB.
31678 * Makefile.in: Test framework build rules for 'make check'.
31679 * conf/tests.rmk: Build rules for individual tests and framework.
31681 * include/grub/test.h: Header file for whitebox tests.
31682 * tests/lib/functional_test.c: Framework support for whitebox
31684 * tests/lib/test.c: Common whitebox testing code for unit and
31686 * tests/lib/unit_test.c: Framework support for whitebox unit
31689 * tests/util/grub-shell-tester.in: Support utility for grub-script
31691 * tests/util/grub-shell.in: Utility to execute grub-script
31692 commands in a Qemu instance.
31694 * tests/example_functional_test.c: Example whitebox functional
31696 * tests/example_grub_script_test.in: Example grub-script test.
31697 * tests/example_scripted_test.in: Example scripted test.
31698 * tests/example_unit_test.c: Example whitebox unit test.
31700 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31702 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31703 Add loader/i386/multiboot_mbi.c.
31704 (multiboot2_mod_SOURCES): Likewise.
31705 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31706 (multiboot2_mod_SOURCES): Likewise.
31707 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31708 (grub_multiboot_make_mbi): Likewise.
31709 (grub_multiboot_free_mbi): Likewise.
31710 (grub_multiboot_init_mbi): Likewise.
31711 (grub_multiboot_add_module): Likewise.
31712 (grub_multiboot_set_bootdev): Likewise.
31713 * loader/i386/multiboot.c (mbi): Removed.
31714 (mbi_dest): Likewise.
31715 (alloc_mbi): New variable.
31716 (grub_multiboot_payload_size): Removed. All users updated.
31717 (grub_multiboot_pure_size): New variable.
31718 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31719 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31720 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31721 (grub_fill_multiboot_mmap): Likewise.
31722 (grub_multiboot_get_bootdev): Likewise.
31723 (grub_multiboot): Use multiboot_mbi functions.
31724 * loader/i386/multiboot_mbi.c: New file.
31726 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31728 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31729 it would result in module crash.
31731 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31733 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31734 (grub_ofconsole_getwh): Split to ...
31735 (grub_ofconsole_getwh): ... this.
31736 (grub_ofconsole_dimensions): ...and this.
31737 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31739 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31741 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31743 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31745 * loader/i386/pc/multiboot2.c: Removed stalled file.
31747 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31749 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31750 Reported by: Grégoire Sutre
31752 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31754 * util/misc.c (canonicalize_file_name): New function.
31755 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31756 instead of realpath().
31758 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31760 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31761 and make it clearer that it's optional. Based on confusion
31764 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31766 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31767 in premature implicit newline.
31769 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31771 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31772 which resulted in garbled command line at the end of screen.
31774 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31776 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31777 initialization with similar approach as with other Linux loaders.
31779 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31781 Fix i386-ieee1275 build.
31783 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31784 and grub_term_height() for video_{width,height} initialization.
31786 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31788 Fix grub-emu build.
31790 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31792 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31793 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31795 Support for multiple terminals.
31797 * Makefile.in (pkglib_DATA): terminal.lst.
31798 (terminal.lst): New target.
31799 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31800 (GRUB_MOD_INIT(handler)): Likewise.
31801 (GRUB_MOD_FINI(handler)): Likewise.
31802 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31803 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31804 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31805 (grub_cmd_sleep): Use grub_term_save_pos.
31806 * commands/terminal.c: New file.
31807 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31808 commands/terminal.c and lib/charset.c.
31809 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31810 (pkglib_MODULES): Add terminal.mod.
31811 (terminal_mod_SOURCES): New variable.
31812 (terminal_mod_CFLAGS): Likewise.
31813 (terminal_mod_LDFLAGS): Likewise.
31814 * genhandlerlist.sh: Don't handle terminals.
31815 * genmk.rb: Generate terminal-*.lst.
31816 * genterminallist.sh: New file.
31817 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31818 (grub_is_valid_utf8): Likewise.
31819 (grub_utf8_to_ucs4_alloc): Likewise.
31820 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31821 (grub_menu_register_viewer): Changed argument.
31822 (grub_menu_try_text): New proto.
31823 (grub_gfxmenu_try_hook): New declaration.
31824 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31825 (grub_menu_init_page): Additional argument term.
31826 (grub_normal_init_page): Likewise.
31827 (grub_cmdline_get): Arguments simplified.
31828 (grub_utf8_to_ucs4_alloc): Removed.
31829 (grub_print_ucs4): Additional argument term.
31830 (grub_getstringwidth): Likewise.
31831 (grub_print_message_indented): Likewise.
31832 (grub_menu_text_register_instances): New proto.
31833 (grub_show_menu): Likewise.
31834 (read_terminal_list): Likewise.
31835 (grub_set_more): Likewise.
31836 * include/grub/parser.h: Include handler.h.
31837 * include/grub/reader.h: Rewritten.
31838 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31839 (GRUB_TERM_WIDTH): Changed to function.
31840 (GRUB_TERM_HEIGHT): Likewise.
31841 (GRUB_TERM_BORDER_WIDTH): Likewise.
31842 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31843 (GRUB_TERM_NUM_ENTRIES): Likewise.
31844 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31845 (GRUB_TERM_CURSOR_X): Likewise.
31846 (grub_term_input_class): Likewise.
31847 (grub_term_output_class): Likewise.
31848 (grub_term_outputs_disabled): New declaration.
31849 (grub_term_inputs_disabled): Likewise.
31850 (grub_term_outputs): Likewise.
31851 (grub_term_inputs): Likewise.
31852 (grub_term_register_input): Rewritten.
31853 (grub_term_register_output): Likewise.
31854 (grub_term_unregister_input): Likewise.
31855 (grub_term_unregister_output): Likewise.
31856 (FOR_ACTIVE_TERM_INPUTS): New macro.
31857 (FOR_DISABLED_TERM_INPUTS): Likewise.
31858 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
31859 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
31860 * include/grub/terminfo.h: Add oterm argument to all protypes.
31861 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
31862 Use grub_rescue_run.
31863 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
31865 * kern/reader.c: Removed. All users updated.
31866 * kern/rescue_reader.c (grub_rescue_init): Removed.
31867 (grub_rescue_reader): Likewise.
31868 (grub_register_rescue_reader): Likewise.
31869 (grub_rescue_run): New function based on kern/reader.c.
31870 * kern/term.c: Adapted for multiterm.
31871 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
31872 (grub_is_valid_utf8): Likewise.
31873 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
31874 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
31876 * loader/i386/linux.c (grub_linux_boot): Likewise.
31877 * normal/auth.c (grub_username_get): New function.
31878 (grub_auth_check_authentication): Use grub_username_get.
31879 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
31880 * normal/color.c: Adapt for multiterm.
31881 * normal/main.c (read_config_file): Don't use grub_reader_loop.
31882 (grub_normal_init_page): Additional argument term.
31883 (read_lists): Call read_terminal_lists.
31884 (grub_enter_normal_mode): Call grub_cmdline_run.
31885 Handle grub_normal_exit_level.
31886 (grub_cmd_normal): Make reentrant.
31887 (grub_cmd_normal_exit): New function.
31888 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
31889 * normal/menu.c: Adapt for multiterm.
31890 * normal/menu_entry.c: Likewise.
31891 * normal/menu_text.c: Likewise.
31892 * normal/menu_viewer.c: Removed. All users updated.
31893 * normal/term.c: New file.
31894 * util/console.c: Change order of includes to workaround a bug in
31896 * term/terminfo.c: New argument oterm on all exported functions.
31898 * util/grub-editenv.c (grub_term_input_class): Removed.
31899 (grub_term_output_class): Likewise.
31901 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31903 Make loader output a bit more user-friendly.
31905 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
31906 is being loaded. Likewise for the Hurd.
31908 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
31909 that kernel of FreeBSD ${version} is being loaded.
31911 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
31913 (grub_cmd_initrd): Likewise.
31914 * util/grub.d/10_linux.in (linux_entry): Print message indicating
31915 that Linux ${version} is being loaded. Likewise for initrd.
31917 2010-01-09 Carles Pina i Estany <carles@pina.cat>
31919 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
31921 2010-01-08 Carles Pina i Estany <carles@pina.cat>
31923 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
31924 (GRUB_MOD_INIT): Gettextizze.
31925 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
31926 (GRUB_MOD_INIT): Gettextizze.
31927 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
31928 (grub_cmd_linux): Capitalise Linux.
31929 (GRUB_MOD_INIT): Gettextizze.
31930 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
31931 (grub_cmd_linux): Capitalise Linux.
31932 (GRUB_MOD_INIT): Gettextizze.
31933 * loader/i386/linux.c: Include `<grub/i18n.h>'.
31934 (grub_cmd_linux): Capitalise Linux.
31935 (GRUB_MOD_INIT): Gettextizze.
31936 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
31937 (GRUB_MOD_INIT): Gettextizze.
31938 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
31939 (grub_cmd_linux): Capitalise Linux.
31940 (GRUB_MOD_INIT): Gettextizze.
31941 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
31942 (grub_cpu_xnu_init): Gettextizze.
31943 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
31944 (GRUB_MOD_INIT): Gettextizze.
31945 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
31946 (GRUB_MOD_INIT): Gettextizze.
31947 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
31948 (grub_linux_load64): Capitalise Linux.
31949 (GRUB_MOD_INIT): Gettextizze.
31950 * loader/xnu.c: Include `<grub/i18n.h>'.
31951 (GRUB_MOD_INIT): Gettextizze.
31952 * po/POTFILES: Add `loader/efi/appleloader.c',
31953 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
31954 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
31955 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
31956 `loader/i386/xnu.c', `loader/multiboot_loader.c',
31957 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
31958 and `loader/xnu.c'.
31960 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31962 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
31964 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
31966 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
31967 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
31968 * util/mkisofs/mkisofs.c (main): Readjust --version output.
31970 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
31972 Reset Multiboot 2 support. New loader implements the draft in
31973 /branches/multiboot2 and shares as much code as possible with the
31974 production Multiboot 1 implementation.
31976 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
31977 * loader/multiboot2.c: Likewise.
31978 * loader/i386/multiboot_helper.S: Likewise.
31979 * include/multiboot2.h: Replace with latest version from the draft
31980 in /branches/multiboot2.
31982 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
31983 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
31984 and `loader/multiboot2.c'.
31985 (pkglib_MODULES): Add `multiboot2.mod'.
31986 (multiboot2_mod_SOURCES): New variable.
31987 (multiboot2_mod_LDFLAGS): Likewise.
31988 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
31990 * conf/i386-pc.rmk: Likewise.
31992 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
31993 (multiboot_mod_SOURCES): Remove variable.
31994 (multiboot_mod_LDFLAGS): Likewise.
31995 (multiboot_mod_CFLAGS): Likewise.
31997 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
31998 `<multiboot2.h>' instead of `<multiboot.h>'.
31999 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32000 (MULTIBOOT_HEADER_MAGIC): New macros.
32002 * loader/multiboot_loader.c (module_version_status): Remove variable.
32003 (find_multi_boot2_header): Remove function.
32004 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32005 logic. Always check for the Multiboot version we're compiling for.
32006 (grub_cmd_module_loader): Likewise.
32007 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32008 command instead of `multiboot'.
32010 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32012 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32013 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32016 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32017 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32019 Fix breakage introduced with previous commit.
32021 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32023 * normal/handler.c (read_handler_list): Revert part of previous commit
32024 affecting this file.
32025 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32026 (grub_normal_execute): ... here.
32028 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32030 Merge prefix-redefinition-fix branch.
32032 * normal/autofs.c (read_fs_list): Make function capable of being
32033 run multiple times, gracefuly replacing the previous data
32035 * normal/dyncmd.c (read_command_list): Likewise.
32036 * normal/handler.c (read_handler_list): Likewise.
32037 * normal/main.c (read_lists): New function. Calls all the
32038 list reading functions.
32039 (grub_normal_execute): Use read_lists() instead of calling all
32040 list reading functions explicitly. Register read_lists() as a
32041 variable hook attached to ${prefix}.
32043 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32045 Merge crypto branch.
32047 * Makefile.in (pkglib_DATA): Add crypto.lst.
32048 (crypto.lst): New target.
32049 * commands/hashsum.c: New file.
32050 * commands/password.c (check_password): Use grub_crypto_memcmp.
32051 * commands/password_pbkdf2.c: New file.
32052 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32053 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32054 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32055 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32056 -I$(srcdir)/lib/libgcrypt_wrap.
32057 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32058 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32059 password_pbkdf2.mod.
32060 (crypto_mod_SOURCES): New variable.
32061 (crypto_mod_CFLAGS): Likewise.
32062 (crypto_mod_LDFLAGS): Likewise.
32063 (hashsum_mod_SOURCES): New variable.
32064 (hashsum_mod_CFLAGS): Likewise.
32065 (hashsum_mod_LDFLAGS): Likewise.
32066 (pbkdf2_mod_SOURCES): New variable.
32067 (pbkdf2_mod_CFLAGS): Likewise.
32068 (pbkdf2_mod_LDFLAGS): Likewise.
32069 (password_pbkdf2_mod_SOURCES): New variable.
32070 (password_pbkdf2_mod_CFLAGS): Likewise.
32071 (password_pbkdf2_mod_LDFLAGS): Likewise.
32072 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32073 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32074 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32075 Include conf/gcry.rmk.
32076 * include/grub/auth.h: Rewritten.
32077 * include/grub/crypto.h: New file.
32078 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32079 * include/grub/normal.h (read_crypto_list): New prototype.
32080 * lib/crypto.c: New file.
32081 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32082 * lib/pbkdf2.c: Likewise.
32083 * normal/auth.c (grub_auth_strcmp): Removed.
32084 (grub_iswordseparator): Likewise.
32085 (grub_auth_strword): Likewise.
32086 (is_authenticated): Use grub_strword.
32087 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32088 and grub_strword. Pass entered password to authentication callback.
32089 * normal/crypto.c: New file.
32090 * normal/main.c: Call read_crypto_list.
32091 * util/grub-mkpasswd-pbkdf2.c: New file.
32092 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32094 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32096 Fix descent and ascent calculation.
32098 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32099 (options): New option "asce".
32101 (add_char): Ignore invalid glyphs for descent calculation.
32102 Calculate ascent from actual content.
32103 (print_glyphs): Use 'asce'.
32104 (write_font): Likewise. Allow ascent override.
32105 (main): Handle "asce" option.
32107 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32109 * kern/err.c: Include `<grub/i18n.h>'.
32110 (grub_print_error): Add full stop. Gettextizze.
32111 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32112 (grub_bsd_load_elf): Capitalise ELF.
32113 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32114 (grub_cmd_freebsd_module): Likewise.
32115 (grub_cmd_freebsd_module_elf): Likewise.
32116 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32118 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32120 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32121 * commands/search_file.c (HELP_MESSAGE): New macro.
32122 * commands/search_label.c (HELP_MESSAGE): Likewise.
32123 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32124 * po/POTFILES: Add `commands/search_file.c',
32125 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32126 `commands/search.c'.
32128 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32130 * config.rpath: Update from Gnulib.
32132 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32134 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32136 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32138 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32140 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32142 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32143 arguments to fread so that we get a return value in bytes, rather
32144 than something that will normally be rounded down to 0.
32145 Adjust error handling to avoid producing garbage when size_t is not
32146 the same size as long long.
32148 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32150 * util/mkisofs/write.c (padblock_write): Check return value of
32153 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32155 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32158 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32160 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32162 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32163 instead of manual alignment.
32164 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32165 verbose). Avoid attempts to read past end of the device
32166 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32167 but GRUB_DISK_CACHE_SIZE may exceed that).
32169 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32171 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32172 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32175 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32177 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32179 (grub_efi_piwg_device_path): New structure
32180 (grub_efi_piwg_device_path_t): New type.
32181 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32182 (devpath_1): Transform to a structure. All users updated.
32183 (devpath_2): Likewise.
32184 (devpath_3): Likewise.
32185 (devpath_4): Likewise.
32186 (devpath_5): Likewise.
32188 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32190 * loader/efi/appleloader.c: Restored. Update all users.
32192 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32194 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32196 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32197 (struct boot_blocklist): Move from here ...
32198 * include/grub/i386/pc/boot.h [ASM_FILE]
32199 (struct grub_boot_blocklist): ... to here. Update all users.
32200 (setup): Only initialize `start' member of `first_block'
32201 structure. Add assert() calls to verify the other members.
32203 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32204 (generate_image): Fix broken blocklist length initialization.
32205 Add assert() call to verify blocklist `segment' field.
32207 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32209 * loader/efi/appleloader.c: Remove. Update all users.
32211 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32213 * boot/i386/pc/boot.S: Update copyright year.
32214 * boot/i386/pc/cdboot.S: Likewise.
32215 * boot/i386/pc/diskboot.S: Likewise.
32216 * boot/i386/pc/lnxboot.S: Likewise.
32217 * boot/i386/pc/pxeboot.S: Likewise.
32218 * bus/pci.c: Likewise.
32219 * commands/cmp.c: Likewise.
32220 * commands/help.c: Likewise.
32221 * commands/hexdump.c: Likewise.
32222 * commands/i386/pc/halt.c: Likewise.
32223 * commands/i386/pc/play.c: Likewise.
32224 * commands/i386/pc/vbeinfo.c: Likewise.
32225 * commands/ls.c: Likewise.
32226 * commands/test.c: Likewise.
32227 * disk/dmraid_nvidia.c: Likewise.
32228 * disk/i386/pc/biosdisk.c: Likewise.
32229 * disk/ieee1275/nand.c: Likewise.
32230 * disk/ieee1275/ofdisk.c: Likewise.
32231 * disk/lvm.c: Likewise.
32232 * disk/raid.c: Likewise.
32233 * disk/raid6_recover.c: Likewise.
32234 * disk/scsi.c: Likewise.
32235 * fs/affs.c: Likewise.
32236 * fs/cpio.c: Likewise.
32237 * fs/ext2.c: Likewise.
32238 * fs/hfs.c: Likewise.
32239 * fs/iso9660.c: Likewise.
32240 * fs/ntfs.c: Likewise.
32241 * fs/sfs.c: Likewise.
32242 * fs/udf.c: Likewise.
32243 * fs/ufs.c: Likewise.
32244 * fs/xfs.c: Likewise.
32245 * gencmdlist.sh: Likewise.
32246 * genmk.rb: Likewise.
32247 * include/grub/disk.h: Likewise.
32248 * include/grub/efi/api.h: Likewise.
32249 * include/grub/efi/efi.h: Likewise.
32250 * include/grub/efi/pe32.h: Likewise.
32251 * include/grub/elf.h: Likewise.
32252 * include/grub/fs.h: Likewise.
32253 * include/grub/i386/at_keyboard.h: Likewise.
32254 * include/grub/i386/pc/memory.h: Likewise.
32255 * include/grub/i386/pc/vbe.h: Likewise.
32256 * include/grub/i386/pci.h: Likewise.
32257 * include/grub/i386/tsc.h: Likewise.
32258 * include/grub/ieee1275/ieee1275.h: Likewise.
32259 * include/grub/ntfs.h: Likewise.
32260 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32261 * include/grub/sparc64/libgcc.h: Likewise.
32262 * include/grub/symbol.h: Likewise.
32263 * include/grub/types.h: Likewise.
32264 * include/multiboot2.h: Likewise.
32265 * io/gzio.c: Likewise.
32266 * kern/device.c: Likewise.
32267 * kern/disk.c: Likewise.
32268 * kern/efi/efi.c: Likewise.
32269 * kern/efi/mm.c: Likewise.
32270 * kern/elf.c: Likewise.
32271 * kern/file.c: Likewise.
32272 * kern/i386/dl.c: Likewise.
32273 * kern/i386/pc/init.c: Likewise.
32274 * kern/i386/pc/startup.S: Likewise.
32275 * kern/ieee1275/ieee1275.c: Likewise.
32276 * kern/ieee1275/init.c: Likewise.
32277 * kern/main.c: Likewise.
32278 * kern/mm.c: Likewise.
32279 * kern/powerpc/dl.c: Likewise.
32280 * kern/sparc64/dl.c: Likewise.
32281 * kern/x86_64/dl.c: Likewise.
32282 * lib/hexdump.c: Likewise.
32283 * loader/efi/appleloader.c: Likewise.
32284 * loader/i386/ieee1275/linux.c: Likewise.
32285 * loader/i386/pc/chainloader.c: Likewise.
32286 * loader/i386/pc/linux.c: Likewise.
32287 * loader/i386/pc/multiboot2.c: Likewise.
32288 * loader/ieee1275/multiboot2.c: Likewise.
32289 * loader/multiboot2.c: Likewise.
32290 * loader/multiboot_loader.c: Likewise.
32291 * loader/powerpc/ieee1275/linux.c: Likewise.
32292 * normal/completion.c: Likewise.
32293 * normal/menu_entry.c: Likewise.
32294 * partmap/apple.c: Likewise.
32295 * util/grub.d/10_hurd.in: Likewise.
32296 * util/hostfs.c: Likewise.
32297 * video/readers/png.c: Likewise.
32299 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32301 * include/grub/misc.h (GNUC_PREREQ): New macro.
32302 (ATTRIBUTE_ERROR): New macro.
32303 * include/grub/list.h (grub_bad_type_cast_real): Use
32306 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32308 * normal/menu_text.c (print_message): Change messages.
32310 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32312 * normal/menu_entry.c (store_completion): Gettextizze.
32314 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32316 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32318 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32320 * po/POTFILES: Sort correctly.
32322 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32324 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32325 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32326 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32328 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32329 summary. Gettextizze the strings.
32330 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32331 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32332 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32334 (GRUB_MOD_INIT): Remove command name from summary.
32335 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32337 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32338 * term/i386/pc/serial.c (options): Add full stops.
32339 (GRUB_MOD_INIT): Remove command name from the summary.
32341 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32343 * commands/acpi.c: Gettextizze help strings and/or options. Include
32344 `grub/i18n.h' if needed.
32345 * commands/blocklist.c: Likewise.
32346 * commands/boot.c: Likewise.
32347 * commands/cat.c: Likewise.
32348 * commands/cmp.c: Likewise.
32349 * commands/configfile.c: Likewise.
32350 * commands/crc.c: Likewise.
32351 * commands/date.c: Likewise.
32352 * commands/echo.c: Likewise.
32353 * commands/efi/fixvideo.c: Likewise.
32354 * commands/efi/loadbios.c: Likewise.
32355 * commands/gptsync.c: Likewise.
32356 * commands/halt.c: Likewise.
32357 * commands/handler.c: Likewise.
32358 * commands/hdparm.c: Likewise.
32359 * commands/hexdump.c: Likewise.
32360 * commands/i386/cpuid.c: Likewise.
32361 * commands/i386/pc/drivemap.c: Likewise.
32362 * commands/i386/pc/halt.c: Likewise.
32363 * commands/i386/pc/pxecmd.c: Likewise.
32364 * commands/i386/pc/vbeinfo.c: Likewise.
32365 * commands/i386/pc/vbetest.c: Likewise.
32366 * commands/ieee1275/suspend.c: Likewise.
32367 * commands/keystatus.c: Likewise.
32368 * commands/loadenv.c: Likewise.
32369 * commands/ls.c: Likewise.
32370 * commands/lsmmap.c: Likewise.
32371 * commands/lspci.c: Likewise.
32372 * commands/memrw.c: Likewise.
32373 * commands/minicmd.c: Likewise.
32374 * commands/parttool.c: Likewise.
32375 * commands/password.c: Likewise.
32376 * commands/probe.c: Likewise.
32377 * commands/read.c: Likewise.
32378 * commands/reboot.c: Likewise.
32379 * commands/search.c: Likewise.
32380 * commands/sleep.c: Likewise.
32381 * commands/test.c: Likewise.
32382 * commands/true.c: Likewise.
32383 * commands/usbtest.c: Likewise.
32384 * commands/videotest.c: Likewise.
32385 * commands/xnu_uuid.c: Likewise.
32386 * disk/loopback.c: Likewise.
32387 * hello/hello.c: Likewise.
32388 * loader/i386/bsd.c: Likewise.
32389 * term/i386/pc/serial.c: Likewise.
32390 * po/POTFILES: Add new files.
32392 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32394 * term/i386/pc/at_keyboard.c
32395 (keyboard_controller_wait_untill_ready): Rename to ...
32396 (keyboard_controller_wait_until_ready): ... this. Update all users.
32398 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32400 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32401 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32402 string using string width.
32403 * normal/menu_text.c (grub_print_message_indented): Use
32404 grub_print_spaces and not print_spaces.
32405 (print_timeout): Likewise.
32406 (print_spaces): Move to...
32407 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32409 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32411 Import from Gnulib.
32413 * gnulib/getdelim.c: New file.
32414 * gnulib/getline.c: Likewise.
32416 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32418 * include/grub/list.h (grub_assert_fail): Removed.
32419 (grub_bad_type_cast_real): New function.
32420 (grub_bad_type_cast): New macro.
32421 (GRUB_AS_LIST): Use grub_bad_type_cast.
32422 (GRUB_AS_LIST_P): Likewise.
32423 (GRUB_AS_NAMED_LIST): Likewise.
32424 (GRUB_AS_NAMED_LIST_P): Likewise.
32425 (GRUB_AS_PRIO_LIST): Likewise.
32426 (GRUB_AS_PRIO_LIST_P): Likewise.
32427 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32429 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32431 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32434 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32436 * configure.ac: Check for TARGET_CFLAGS initialization before we
32437 initialize it ourselves (sigh).
32438 Move a few modifications to TARGET_CFLAGS to be unconditional
32439 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32442 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32443 * term/i386/pc/at_keyboard.c
32444 (keyboard_controller_wait_untill_ready): Likewise.
32445 (keyboard_controller_led): Rename `led_status' paramter to avoid
32448 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32450 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32453 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32455 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32457 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32459 * normal/menu_text.c (grub_print_message_indented): Prevent
32460 past-the-end-of-array dereference.
32462 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32464 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32465 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32467 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32469 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32470 * normal/main.c (grub_normal_read_line): Remove a space from the
32473 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32475 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32476 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32477 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32478 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32479 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32480 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32481 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32483 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32485 * video/readers/jpeg.c (cmd): Declare.
32486 (grub_cmd_jpegtest): Use `grub_command_t' type.
32487 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32489 (GRUB_MOD_FINI): Use `cmd' to unregister.
32490 * video/readers/png.c (cmd): Declare.
32491 (grub_cmd_pngtest): Use `grub_command_t' type.
32492 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32494 (GRUB_MOD_FINI): Use `cmd' to unregister.
32495 * video/readers/tga.c (cmd): Declare.
32496 (grub_cmd_tgatest): Use `grub_command_t' type.
32497 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32499 (GRUB_MOD_FINI): Use `cmd' to unregister.
32501 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32503 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32505 * kern/corecmd.c (grub_register_core_commands): Likewise.
32506 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32507 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32508 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32509 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32510 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32511 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32512 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32513 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32514 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32515 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32516 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32517 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32518 * normal/handler.c (insert_handler): Likewise.
32519 * normal/main.c (GRUB_MOD_INIT): Likewise.
32520 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32522 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32524 * commands/help.c (grub_cmd_help): Print the command name before the
32526 (GRUB_MOD_INIT): Remove command name from the summary.
32527 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32529 * lib/arg.c (find_long): Print the command name before the summary.
32530 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32532 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32533 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32534 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32535 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32536 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32537 * commands/date.c (GRUB_MOD_INIT): Likewise.
32538 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32539 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32540 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32541 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32542 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32543 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32544 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32545 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32546 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32547 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32548 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32549 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32550 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32551 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32552 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32553 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32554 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32555 * commands/password.c (GRUB_MOD_INIT): Likewise.
32556 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32557 * commands/read.c (GRUB_MOD_INIT): Likewise.
32558 * commands/search.c (GRUB_MOD_INIT): Likewise.
32559 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32560 * commands/test.c (GRUB_MOD_INIT): Likewise.
32561 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32562 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32563 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32564 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32565 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32566 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32567 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32568 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32569 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32570 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32571 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32572 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32573 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32574 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32576 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32578 Use search command for preliminar UUID search.
32580 * commands/search.c: Split into ...
32581 * commands/search_wrap.c: ...this
32582 * commands/search.c: ...and this.
32583 * commands/search_file.c: New file.
32584 * commands/search_label.c: New file.
32585 * commands/search_uuid.c: New file.
32586 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32587 Add commands/search_wrap.c, commands/search_file.c,
32588 commands/search_label.c and commands/search_uuid.c.
32589 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32590 (search_mod_SOURCES): Set to commands/search_wrap.c.
32591 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32593 (search_fs_file_mod_SOURCES): New variable.
32594 (search_fs_file_mod_CFLAGS): Likewise.
32595 (search_fs_file_mod_LDFLAGS): Likewise.
32596 (search_label_mod_SOURCES): Likewise.
32597 (search_label_mod_CFLAGS): Likewise.
32598 (search_label_mod_LDFLAGS): Likewise.
32599 (search_fs_uuid_mod_SOURCES): New variable.
32600 (search_fs_uuid_mod_CFLAGS): Likewise.
32601 (search_fs_uuid_mod_LDFLAGS): Likewise.
32602 (fs_file_mod_SOURCES): Removed.
32603 (fs_file_mod_CFLAGS): Likewise.
32604 (fs_file_mod_LDFLAGS): Likewise.
32605 (fs_uuid_mod_SOURCES): Removed.
32606 (fs_uuid_mod_CFLAGS): Likewise.
32607 (fs_uuid_mod_LDFLAGS): Likewise.
32608 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32609 Set to util/grub-install.in.
32610 * disk/fs_file.c: Removed.
32611 * disk/fs_uuid.c: Likewise.
32612 * include/grub/search.h: New file.
32613 * util/grub-install.in: Handle sparc64.
32614 Create and use load.cfg.
32615 * util/sparc64/ieee1275/grub-install.in: Removed.
32617 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32619 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32620 Ignore return status if CF is cleared.
32621 (grub_biosdisk_get_diskinfo_standard): Likewise.
32623 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32625 * term/i386/pc/at_keyboard.c
32626 (keyboard_controller_wait_untill_ready): New function.
32627 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32628 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32629 for keyboard polling, rather than duplicate the same loop. This
32630 saves a few bytes in code size.
32632 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32634 Support for (pxe[:server[:gateway]]) syntax and
32635 use environment variable for PXE.
32637 * commands/i386/pc/pxecmd.c (options): Removed.
32638 (print_ip): Removed.
32639 (grub_cmd_pxe): Removed
32640 (grub_cmd_pxe_unload): New function.
32641 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32642 (grub_pxe_your_ip): Made static.
32643 (grub_pxe_default_server_ip): Likewise.
32644 (grub_pxe_default_gateway_ip): Likewise.
32645 (grub_pxe_blksize): Likewise.
32646 (parse_ip): New function.
32647 (grub_pxe_open): Support server and gateway specification.
32648 (grub_pxe_close): Free disk->data.
32649 (grub_pxefs_open): Use disk->data.
32650 (grub_pxefs_read): Likewise.
32651 (grub_env_write_readonly): New function.
32652 (set_mac_env): Likewise.
32653 (set_env_limn_ro): Likewise.
32654 (parse_dhcp_vendor): Likewise.
32655 (grub_pxe_detect): Set the environment variables.
32656 (set_ip_env): New function.
32657 (write_ip_env): Likewise.
32658 (grub_env_write_pxe_default_server): Likewise.
32659 (grub_env_write_pxe_default_gateway): Likewise.
32660 (grub_env_write_pxe_blocksize): Likewise.
32661 (GRUB_MOD_INIT(pxe)): Set environment variables.
32662 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32663 (grub_pxe_mac_addr_t): ... this. All users updated.
32664 (grub_pxe_your_ip): Removed.
32665 (grub_pxe_server_ip): Likewise.
32666 (grub_pxe_gateway_ip): Likewise.
32667 (grub_pxe_blksize): Likewise.
32669 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32671 * commands/help.c: Include `<grub/i18n.h>'.
32672 (grub_cmd_help): Gettextizze.
32673 (GRUB_MOD_INIT): Likewise.
32674 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32675 (GRUB_MOD_INIT): Gettextizze.
32676 * commands/search.c: Include `<grub/i18n.h>'.
32677 (options): Gettextizze.
32678 (GRUB_MOD_INIT): Gettextizze.
32679 * lib/arg.c: Include `<grub/i18n.h>'.
32680 (help_options): Gettextizze.
32681 (find_long): Likewise.
32682 (grub_arg_show_help): Likewise.
32683 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32684 (read_command_list): Gettextizze.
32685 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32686 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32688 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32690 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32691 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32692 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32693 (led_status): New variable.
32694 (keyboard_controller_led): New function.
32695 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32696 update led status for caps lock, num lock and scroll lock.
32698 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32700 * util/hostdisk.c (open_device): Fix a comment.
32702 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32704 * util/grub-install.in (host_os): New variable.
32705 * util/i386/efi/grub-install.in (host_os): Likewise.
32707 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32709 * util/mkisofs/write.c (padblock_write): Abort when given an
32710 excedingly large embed image, instead of silently truncating it.
32712 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32714 * include/multiboot.h: Indentation fixes.
32716 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32718 * include/multiboot.h (struct multiboot_aout_symbol_table)
32719 (struct multiboot_elf_section_header_table): New structure
32720 declarations (stolen from GRUB Legacy).
32721 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32724 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32725 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32728 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32730 * include/multiboot.h: Make comments src2texi-friendly.
32732 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32734 For consistency with [multiboot]/docs/boot.S.
32736 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32737 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32738 (MULTIBOOT_MAGIC2): Rename from this ...
32739 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32741 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32743 * include/multiboot.h: Remove `<grub/types.h>'.
32744 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32745 types. Update all users.
32747 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32749 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32750 `couldn't' and `can not' by `cannot'.
32751 * commands/i386/pc/drivemap.c: Likewise.
32752 * disk/ata.c: Likewise.
32753 * disk/ieee1275/nand.c: Likewise.
32754 * fs/affs.c: Likewise.
32755 * fs/fat.c: Likewise.
32756 * fs/hfs.c: Likewise.
32757 * fs/hfsplus.c: Likewise.
32758 * fs/iso9660.c: Likewise.
32759 * fs/jfs.c: Likewise.
32760 * fs/minix.c: Likewise.
32761 * fs/reiserfs.c: Likewise.
32762 * fs/sfs.c: Likewise.
32763 * fs/udf.c: Likewise.
32764 * fs/ufs.c: Likewise.
32765 * fs/xfs.c: Likewise.
32766 * loader/powerpc/ieee1275/linux.c: Likewise.
32767 * loader/sparc64/ieee1275/linux.c: Likewise.
32768 * util/grub-probe.c: Likewise.
32769 * util/misc.c: Likewise.
32771 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32773 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32775 * commands/acpi.c: Likewise.
32776 * commands/blocklist.c: Likewise.
32777 * commands/efi/loadbios.c: Likewise.
32778 * commands/i386/pc/drivemap.c: Likewise.
32779 * commands/loadenv.c: Likewise.
32780 * commands/memrw.c: Likewise.
32781 * commands/password.c: Likewise.
32782 * commands/videotest.c: Likewise.
32783 * disk/ata.c: Likewise.
32784 * disk/ata_pthru.c: Likewise.
32785 * disk/dmraid_nvidia.c: Likewise.
32786 * disk/ieee1275/nand.c: Likewise.
32787 * disk/ieee1275/ofdisk.c: Likewise.
32788 * disk/loopback.c: Likewise.
32789 * disk/lvm.c: Likewise.
32790 * disk/mdraid_linux.c: Likewise.
32791 * disk/raid.c: Likewise.
32792 * disk/raid6_recover.c: Likewise.
32793 * disk/scsi.c: Likewise.
32794 * efiemu/main.c: Likewise.
32795 * efiemu/mm.c: Likewise.
32796 * efiemu/pnvram.c: Likewise.
32797 * efiemu/symbols.c: Likewise.
32798 * font/font.c: Likewise.
32799 * fs/cpio.c: Likewise.
32800 * fs/hfsplus.c: Likewise.
32801 * fs/iso9660.c: Likewise.
32802 * fs/jfs.c: Likewise.
32803 * fs/minix.c: Likewise.
32804 * fs/ntfs.c: Likewise.
32805 * fs/ntfscomp.c: Likewise.
32806 * fs/reiserfs.c: Likewise.
32807 * fs/ufs.c: Likewise.
32808 * fs/xfs.c: Likewise.
32809 * gettext/gettext.c: Likewise.
32810 * include/grub/auth.h: Likewise.
32811 * kern/elf.c: Likewise.
32812 * kern/file.c: Likewise.
32813 * kern/ieee1275/init.c: Likewise.
32814 * kern/ieee1275/mmap.c: Likewise.
32815 * kern/ieee1275/openfw.c: Likewise.
32816 * kern/powerpc/dl.c: Likewise.
32817 * kern/sparc64/dl.c: Likewise.
32818 * lib/arg.c: Likewise.
32819 * loader/i386/bsd.c: Likewise.
32820 * loader/i386/bsdXX.c: Likewise.
32821 * loader/i386/efi/linux.c: Likewise.
32822 * loader/i386/efi/xnu.c: Likewise.
32823 * loader/i386/ieee1275/linux.c: Likewise.
32824 * loader/i386/linux.c: Likewise.
32825 * loader/i386/multiboot.c: Likewise.
32826 * loader/i386/pc/linux.c: Likewise.
32827 * loader/i386/pc/multiboot2.c: Likewise.
32828 * loader/i386/xnu.c: Likewise.
32829 * loader/ieee1275/multiboot2.c: Likewise.
32830 * loader/macho.c: Likewise.
32831 * loader/machoXX.c: Likewise.
32832 * loader/multiboot2.c: Likewise.
32833 * loader/multiboot_loader.c: Likewise.
32834 * loader/powerpc/ieee1275/linux.c: Likewise.
32835 * loader/sparc64/ieee1275/linux.c: Likewise.
32836 * loader/xnu.c: Likewise.
32837 * loader/xnu_resume.c: Likewise.
32838 * mmap/i386/pc/mmap.c: Likewise.
32839 * normal/menu_viewer.c: Likewise.
32840 * partmap/acorn.c: Likewise.
32841 * partmap/amiga.c: Likewise.
32842 * partmap/apple.c: Likewise.
32843 * script/lexer.c: Likewise.
32844 * term/gfxterm.c: Likewise.
32845 * term/i386/pc/serial.c: Likewise.
32846 * term/i386/pc/vga.c: Likewise.
32847 * term/ieee1275/ofconsole.c: Likewise.
32848 * term/terminfo.c: Likewise.
32849 * video/bitmap.c: Likewise.
32850 * video/efi_gop.c: Likewise.
32851 * video/efi_uga.c: Likewise.
32852 * video/fb/video_fb.c: Likewise.
32853 * video/i386/pc/vbe.c: Likewise.
32854 * video/readers/tga.c: Likewise.
32855 * video/video.c: Likewise.
32857 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
32859 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
32860 * commands/lspci.c: Likewise.
32861 * commands/probe.c: Likewise.
32862 * commands/xnu_uuid.c: Likewise.
32863 * conf/i386-coreboot.rmk: Likewise.
32864 * conf/i386-efi.rmk: Likewise.
32865 * conf/i386-ieee1275.rmk: Likewise.
32866 * conf/i386-pc.rmk: Likewise.
32867 * conf/powerpc-ieee1275.rmk: Likewise.
32868 * conf/sparc64-ieee1275.rmk: Likewise.
32869 * conf/x86_64-efi.rmk: Likewise.
32870 * fs/i386/pc/pxe.c: Likewise.
32871 * gettext/gettext.c: Likewise.
32872 * include/grub/efi/graphics_output.h: Likewise.
32873 * include/grub/i386/pc/memory.h: Likewise.
32874 * kern/env.c: Likewise.
32875 * kern/i386/qemu/startup.S: Likewise.
32876 * lib/i386/pc/biosnum.c: Likewise.
32877 * lib/i386/relocator.c: Likewise.
32878 * lib/i386/relocator_asm.S: Likewise.
32879 * lib/relocator.c: Likewise.
32880 * loader/i386/bsd.c: Likewise.
32881 * loader/i386/multiboot.c: Likewise.
32882 * loader/i386/pc/chainloader.c: Likewise.
32883 * loader/i386/xnu.c: Likewise.
32884 * loader/xnu.c: Likewise.
32885 * normal/main.c: Likewise.
32886 * normal/menu_text.c: Likewise.
32887 * util/getroot.c: Likewise.
32888 * util/grub-mkconfig_lib.in: Likewise.
32889 * util/grub.d/00_header.in: Likewise.
32890 * util/i386/pc/grub-mkimage.c: Likewise.
32891 * util/mkisofs/eltorito.c: Likewise.
32892 * util/mkisofs/exclude.h: Likewise.
32893 * util/mkisofs/hash.c: Likewise.
32894 * util/mkisofs/iso9660.h: Likewise.
32895 * util/mkisofs/joliet.c: Likewise.
32896 * util/mkisofs/mkisofs.c: Likewise.
32897 * util/mkisofs/mkisofs.h: Likewise.
32898 * util/mkisofs/multi.c: Likewise.
32899 * util/mkisofs/name.c: Likewise.
32900 * util/mkisofs/rock.c: Likewise.
32901 * util/mkisofs/tree.c: Likewise.
32902 * util/mkisofs/write.c: Likewise.
32903 * video/efi_gop.c: Likewise.
32905 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
32907 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
32910 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32912 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
32913 * genmk.rb (class SCRIPT): Modify the target file instead of source.
32915 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32917 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
32918 (GRUB_MOD_INIT(memrw)): Update help line.
32920 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32922 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
32923 Use grub_extcmd_t. All users updated.
32924 (options): New variable.
32925 (grub_cmd_read): Restructure for readability. Support "-v" option.
32926 (grub_cmd_write): Restructure for readability.
32928 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32930 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
32932 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32934 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
32935 with the actual contents of the correspondending make variable.
32936 * util/grub-mkrescue.in (pkglib_DATA): New variable.
32937 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
32938 specifying `*.lst' and `efiemu??.o'
32940 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32942 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
32943 after function name.
32944 Noticed by Rene Engelhard <rene@debian.org>.
32946 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32948 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
32949 (options): New variable.
32950 (iospace): Likewise.
32951 (grub_lspci_iter): List IO spaces if "-i" was given.
32952 (grub_cmd_lspci): Parse options.
32953 (GRUB_MOD_INIT(lspci)): Use extcmd.
32954 (GRUB_MOD_FINI(lspci)): Likewise.
32956 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
32958 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
32959 `function' keyword.
32960 Patch by Tony Mancill <tmancill@debian.org>.
32962 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
32964 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
32965 (grub_uhci_portstatus): Likewise.
32966 (grub_uhci_portstatus): Add necessary delay.
32967 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
32969 2009-12-21 Carles Pina i Estany <carles@pina.cat>
32971 * commands/acpi.c (options): Fix capitalizations and/or full stops.
32972 (GRUB_MOD_INIT): Likewise.
32973 * commands/boot.c (GRUB_MOD_INIT): Likewise.
32974 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
32975 * commands/echo.c (options): Fix capitalizations and/or full stops.
32976 * commands/efi/loadbios.c (enable_rom_area): Likewise.
32977 (enable_rom_area): Likewise.
32978 (GRUB_MOD_INIT): Likewise.
32979 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32980 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
32981 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32982 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
32983 * commands/hexdump.c (options): Likewise.
32984 * commands/i386/cpuid.c (options): Likewise.
32985 (GRUB_MOD_INIT): Likewise.
32986 * commands/i386/pc/drivemap.c (options): Likewise.
32987 (GRUB_MOD_INIT): Likewise.
32988 * commands/i386/pc/halt (options): Likewise.
32989 (GRUB_MOD_INIT): Likewise.
32990 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32991 * commands/i386/pc/pxecmd.c (options): Likewise.
32992 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
32993 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
32994 * commands/keystatus.c (options): Likewise.
32995 (GRUB_MOD_INIT): Likewise.
32996 * commands/loadenv.c (options): Likewise.
32997 * commands/ls.c (options): Likewise.
32998 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32999 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33000 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33001 * commands/parttool.c (helpmsg): Likewise.
33002 * commands/probe.c (options): Likewise.
33003 * commands/read.c (GRUB_MOD_INIT): Likewise.
33004 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33005 * commands/search.c (options): Likewise.
33006 * commands/sleep.c (options): Likewise.
33007 * commands/test.c (GRUB_MOD_INIT): Likewise.
33008 * commands/true.c (GRUB_MOD_INIT): Likewise.
33009 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33010 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33011 * lib/arg.c (help_options): Likewise.
33012 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33014 * po/POTFILES: Add `commands/loadenv.c'.
33016 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33018 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33019 instead of specifying them explicit.
33021 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33023 * NEWS: Add grub-probe support for GNU/Hurd.
33025 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33027 * NEWS: gettext was added after 1.97.
33029 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33031 * util/mkisofs/msdos_partition.h: New file (based on
33032 include/grub/msdos_partition.h).
33033 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33034 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33035 (ld_options, main): Recognize --protective-msdos-label.
33036 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33037 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33038 (padblock_write): If `use_protective_msdos_label' is set, patch a
33039 protective DOS-style label in the output image.
33041 * util/grub-mkrescue.in: Use --protective-msdos-label.
33043 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33045 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33048 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33050 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33052 (ld_options, main): Recognize `--embedded-boot'.
33053 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33055 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33056 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33057 (padblock_write): Likewise. Rewrite to support embedded boot image.
33059 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33060 for BIOS-based disk boot instead of only ElTorito.
33062 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33064 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33065 build (not needed for bootstrap).
33067 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33069 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33070 from i386-pc build (not needed for bootstrap).
33071 Rewrite a pair of strings.
33073 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33075 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33077 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33079 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33081 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33083 * kern/env.c (grub_env_context_open): Mark exported variable for
33086 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33088 * kern/env.c (grub_env_export): Create nonexistent variables before
33091 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33093 * include/grub/auth.h: Include `<grub/i18n.h>'.
33094 (GRUB_GET_PASSWORD): Gettextizze string.
33095 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33097 (grub_utf8_to_ucs4_alloc): Fix indentation.
33098 (grub_print_ucs4): Likewise.
33099 (grub_getstringwidth): Likewise.
33100 (print_message_indented): New declaration.
33101 * normal/auth.c: Include `<grub/i18n.h>'.
33102 (grub_auth_check_authentication): Gettexttize string.
33103 * normal/cmdline.c: Include `<grub/i18n.h>'.
33104 (grub_cmdline_get): Gettextizze.
33105 * normal/color.c: Include `<grub/i18n.h>'.
33106 (grub_parse_color_name_pair): Gettexttize strings.
33107 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33108 string (use `print_message_indented').
33109 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33110 `include/grub/normal.h'.
33111 (print_message_indented): Renamed to ...
33112 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33113 used in normal/main.c).
33114 (print_message): Use `grub_print_message_indented' instead of
33115 `print_message_indented'.
33116 (print_timeout): Likewise.
33117 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33118 (grub_normal_print_device_info): Gettexttize strings.
33119 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33121 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33123 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33124 of arguments. Return number of tokens and not arguments. All users
33127 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33129 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33130 non-MSDOS paritions.
33132 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33134 * include/grub/types.h (UNUSED): Removed since it conflicts with
33135 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33136 Reported by Grégoire Sutre.
33138 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33140 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33141 (grub_print_ucs4_alloc): Likewise.
33142 (grub_getstringwidth): Likewise.
33143 * normal/main.c (grub_normal_init_page): Gettextize version string.
33144 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33145 (getstringwidth): Renamed to ...
33146 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33147 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33148 (grub_print_ucs4): Remove `static' qualifer (now used in
33150 * po/POTFILES: Add normal/main.c.
33152 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33154 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33155 (print_message_indented): Add `margin_left' and `margin_right'
33157 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33159 (print_timeout): Use `print_message_indented' to print the message.
33160 Deletes `second_stage' parameter.
33161 (run_menu): Update `print_timeout' calls.
33163 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33165 Fix console palette on OpenFirmware.
33167 * term/ieee1275/ofconsole.c (MAX): Removed.
33168 (colors): Redone based on VGA palette.
33169 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33170 colors are supported.
33171 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33173 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33175 Fix potential EfiEmu double prepare.
33177 * efiemu/main.c (prepared): New variable
33178 (grub_efiemu_unload): Set prepare to '0'.
33179 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33181 set_virtual_address_map support.
33183 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33185 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33187 (grub_efiemu_crc32): Likewise.
33188 (grub_efiemu_crc64): Likewise.
33189 (grub_efiemu_set_virtual_address_map): Likewise.
33190 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33192 (grub_autoefi_set_virtual_address_map): Likewise.
33193 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33194 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33195 Restructure flow to accomodate it.
33196 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33197 (grub_efiemu_crc): Recompute CRC32.
33198 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33199 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33200 * efiemu/symbols.c (relocated_handle): New variable.
33201 (grub_efiemu_free_syms): Free relocated_handle.
33202 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33203 (grub_efiemu_write_sym_markers): New function.
33204 (grub_efiemu_set_virtual_address_map): Likewise.
33206 Newer XNU parameters.
33208 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33209 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33210 (grub_xnu_fill_devicetree): New prototype.
33211 (grub_xnu_heap_real_start): New variable.
33212 * loader/xnu.c (get_name_ptr): New function.
33213 (grub_xnu_load_driver): Fill namelen and name.
33215 64-bit xnu support.
33217 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33218 and 'loader/macho64.c'.
33219 * conf/i386-pc.rmk: Likewise.
33220 * conf/x86_64-efi.rmk: Likewise.
33221 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33222 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33223 * include/grub/macho.h (grub_macho_segment64): New structure.
33224 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33225 (grub_macho_size32): ... to this.
33226 (grub_macho32_get_entry_point): Renamed from ...
33227 (grub_macho_get_entry_point32): ... to this.
33228 (grub_macho_contains_macho64): New prototype.
33229 (grub_macho_size64): Likewise.
33230 (grub_macho_get_entry_point64): Likewise.
33231 (grub_macho32_load): Renamed from ...
33232 (grub_macho_load32): ... to this.
33233 (grub_macho32_filesize): Renamed from ...
33234 (grub_macho_filesize32): ... to this.
33235 (grub_macho32_readfile): Renamed from ...
33236 (grub_macho_readfile32): ... to this.
33237 (grub_macho_filesize64): New prototype.
33238 (grub_macho_readfile64): Likewise.
33239 (grub_macho_parse32): Likewise.
33240 (grub_macho_parse64): Likewise.
33241 * loader/macho.c: Split into ...
33242 * loader/machoXX.c: ... and this. Replace 32 with XX.
33243 * loader/macho32.c: New file.
33244 * loader/macho64.c: Likewise.
33245 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33246 (grub_cmd_xnu_kernel): Make 32-bit only.
33247 (grub_cmd_xnu_kernel64): New function.
33248 (grub_xnu_load_driver): Support Mach-O 64.
33249 (grub_cmd_xnu_mkext): Likewise.
33250 * util/grub.d/30_os-prober.in (osx_entry): New function.
33251 Generate entries for 64-bit boot too.
33253 Eliminate ad-hoc tree format in XNU and EfiEmu.
33255 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33256 * efiemu/pnvram.c: Rewritten to use environment variables.
33259 Inline utf16_to_utf8.
33261 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33262 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33264 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33266 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33267 * commands/usbtest.c (grub_usb_get_string): ... move here.
33268 (usb_print_str): Fix error handling.
33269 * include/grub/usb.h (grub_usb_get_string): Remove.
33271 UTF-8 to UTF-16 transformation.
33273 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33274 (charset_mod_SOURCES): New variable.
33275 (charset_mod_CFLAGS): Likewise.
33276 (charset_mod_LDFLAGS): Likewise.
33277 * include/grub/utf.h: New file.
33278 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33280 Support for device properties.
33282 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33283 (grub_xnu_devprop_device_header): Likewise.
33284 (grub_xnu_devprop_device_descriptor): Likewise.
33285 (grub_xnu_devprop_add_device): New prototype.
33286 (grub_xnu_devprop_remove_device): Likewise.
33287 (grub_xnu_devprop_remove_property): Likewise.
33288 (grub_xnu_devprop_add_property_utf8): Likewise.
33289 (grub_xnu_devprop_add_property_utf16): Likewise.
33290 (grub_cpu_xnu_init): Likewise.
33291 (grub_cpu_xnu_fini): Likewise.
33292 (grub_cpu_xnu_unload): Likewise.
33293 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33294 (property_descriptor): Likewise.
33295 (devices): New variable.
33296 (grub_xnu_devprop_remove_property): New function.
33297 (grub_xnu_devprop_add_device): Likewise.
33298 (grub_xnu_devprop_remove_device): Likewise.
33299 (grub_xnu_devprop_add_property): Likewise.
33300 (grub_xnu_devprop_add_property_utf8): Likewise.
33301 (grub_xnu_devprop_add_property_utf16): Likewise.
33302 (hextoval): Likewise.
33303 (grub_cpu_xnu_fill_devprop): Likewise.
33304 (grub_cmd_devprop_load): Likewise.
33305 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33306 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33307 (cmd_devprop_load): New variable.
33308 (grub_cpu_xnu_init): New function.
33309 (grub_cpu_xnu_fini): Likewise.
33310 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33311 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33312 (grub_cmd_xnu_devtree): Likewise.
33313 (hextoval): New function.
33314 (unescape): Likewise.
33315 (grub_xnu_fill_devicetree): Likewise.
33317 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33318 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33320 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33322 Workaround for broken ATI VBE.
33324 * video/i386/pc/vbe.c (last_set_mode): New variable.
33325 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33326 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33327 (grub_video_vbe_setup): Don't check for reserved flag.
33329 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33331 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33332 the `find' command.
33334 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33336 UUID support for HFS.
33338 * fs/hfs.c (grub_hfs_uuid): New function.
33339 (grub_hfs_fs): New value .uuid.
33340 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33342 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33344 Fix a segfault with parsing unknown long options.
33346 * util/grub-mkrelpath.c (options): Zero terminate it.
33348 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33350 * include/grub/misc.h (grub_puts): New declaration.
33351 (grub_puts_): Likewise.
33352 * kern/misc.c (grub_puts): New definition.
33353 (grub_puts_): Likewise.
33355 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33357 * util/grub-probe.c (probe): Improve error message.
33359 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33361 * loader/i386/multiboot_elfxx.c
33362 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33365 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33367 Relocator framework
33369 * loader/i386/xnu_helper.S: Removed. All users updated.
33370 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33371 (relocator_mod_SOURCES): New variable.
33372 (relocator_mod_CFLAGS): Likewise.
33373 (relocator_mod_LDFLAGS): Likewise.
33374 (relocator_mod_ASFLAGS): Likewise.
33375 * conf/x86_64.rmk: Likewise.
33376 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33377 (grub_multiboot_payload_entry_offset): Likewise.
33378 (grub_multiboot_forward_relocator): Likewise.
33379 (grub_multiboot_forward_relocator_end): Likewise.
33380 (grub_multiboot_backward_relocator): Likewise.
33381 (grub_multiboot_backward_relocator_end): Likewise.
33382 (grub_multiboot_payload_eip): New variable.
33383 (grub_multiboot_payload_orig): Likewise.
33384 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33385 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33386 * include/grub/i386/memory.h
33387 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33388 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33389 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33390 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33391 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33392 * include/grub/i386/relocator.h: New file.
33393 * include/grub/x86_64/relocator.h: Likewise.
33394 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33395 (XNU_RELOCATOR): New macro.
33396 (grub_xnu_launcher_start): Remove.
33397 (grub_xnu_launcher_end): Likewise.
33398 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33399 (grub_xnu_heap_real_start): Remove.
33400 (grub_xnu_heap_start): Change to void *. All users updated.
33401 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33402 * lib/i386/relocator.c: New file.
33403 * lib/i386/relocator_asm.S: Likewise.
33404 * lib/i386/relocator_backward.S: Likewise.
33405 * lib/mips/relocator.c: Likewise.
33406 * lib/mips/relocator_asm.S: Likewise.
33407 * lib/relocator.c: Likewise.
33408 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33410 (playground): Likewise.
33411 (grub_multiboot_payload_orig): New variable.
33412 (grub_multiboot_payload_dest): Likewise.
33413 (grub_multiboot_payload_size): Likewise.
33414 (grub_multiboot_payload_eip): Likewise.
33415 (grub_multiboot_payload_esp): Likewise.
33416 (grub_multiboot_boot): Use grub_relocator32_boot.
33417 (grub_multiboot_unload): Free relocators.
33418 (grub_multiboot): Setup stack. Use relocators.
33419 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33420 (grub_multiboot_load_elfXX): Use relocators.
33421 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33422 (grub_multiboot_payload_size): Likewise.
33423 (grub_multiboot_payload_dest): Likewise.
33424 (grub_multiboot_payload_entry_offset): Likewise.
33425 (grub_multiboot_forward_relocator): Likewise.
33426 (grub_multiboot_backward_relocator): Likewise.
33427 (grub_multiboot_real_boot): Likewise.
33428 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33429 (grub_xnu_entry_point): Likewise.
33430 (grub_xnu_arg1): Likewise.
33431 (grub_xnu_stack): Likewise.
33432 (grub_xnu_launch): Removed.
33433 (grub_xnu_boot_resume): New function.
33434 (grub_xnu_boot): Use relocators.
33435 * loader/i386/xnu_helper.S: Removed.
33436 * loader/xnu.c (grub_xnu_heap_start): New variable.
33437 (grub_xnu_heap_size): Likewise.
33438 (grub_xnu_heap_malloc): Use relocators.
33439 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33441 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33443 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33446 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33448 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33449 GRUB_ERR_NONE before calling grub_env_set.
33451 2009-12-12 Robert Millan <rmh@aybabtu.com>
33453 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33454 * genmk.rb (video): New variable.
33455 (CLEANFILES, VIDEOFILES): Add #{video}.
33456 (#{video}): New target rule.
33457 * genvideolist.sh: New file.
33458 * Makefile.in (pkglib_DATA): Add video.lst.
33459 (video.lst): New target rule.
33460 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33462 * util/grub.d/30_os-prober.in: Replace `vbe' with
33463 ${GRUB_VIDEO_BACKEND}.
33465 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33467 * THANKS: Add David Miller.
33469 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33471 libpciaccess support.
33473 * Makefile.in (LIBPCIACCESS): New variable.
33474 (enable_grub_emu_pci): Likewise.
33475 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33476 util/pci.c and commands/lspci.c.
33477 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33478 * configure.ac (grub-emu-pci): New option.
33479 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33480 (grub_pci_device_unmap_range): Likewise.
33481 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33482 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33483 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33484 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33485 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33486 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33487 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33488 * include/grub/pciutils.h: New file.
33489 * util/pci.c: Likewise.
33491 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33493 * util/misc.c: Don't include <errno.h> twice.
33495 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33497 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33498 name in an error message.
33499 (grub_biosdisk_rw): Likewise.
33501 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33503 Eliminate NTFS 4Gib barrier.
33505 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33506 (read_run_data): Likewise.
33507 (grub_ntfs_read_run_list): Likewise.
33508 (grub_ntfs_read_block): Likewise.
33509 (grub_ntfs_iterate_dir): Likewise.
33510 (read_mft): Likewise.
33511 (read_data): Likewise.
33513 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33514 to avoid 64-bit division
33515 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33516 (grub_ntfs_rlst): Use grub_disk_addr_t.
33518 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33520 Eliminate grub-fstest 4Gib barrier.
33522 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33523 (read_file): Fix error reporting.
33525 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33527 Eliminate hexdump 4Gib barrier.
33529 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33530 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33532 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33534 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33537 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33539 Remove miscellaneous files in distclean target.
33541 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33543 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33545 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33546 if they're already set. This resolves the conflict between my
33547 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33548 fixing the --grub-probe option again.
33549 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33550 change on 2009-10-06, so that we now once again source
33551 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33553 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33555 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33556 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33557 `util/devicemap.c'.
33559 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33561 * include/grub/misc.h (grub_printf_): New declaration.
33562 * kern/misc.c (grub_printf_): New definition.
33563 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33564 instead of `grub_printf' and `_'.
33565 * normal/menu_entry.c (store_completion): Likewise.
33567 (grub_menu_entry_run): Likewise.
33568 * normal/menu_text.c (grub_wait_after_message): Likewise.
33569 (notify_booting): Likewise.
33570 (notify_fallback): Likewise.
33571 (notify_execution_failure): Likewise.
33573 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33575 * configure.ac: Check for vasprintf.
33576 * util/misc.c (asprintf): Move allocation from here ...
33577 (vasprintf): ... to here. New function.
33578 (xasprintf): New function.
33579 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33581 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33582 * util/grub-mkfont.c (write_font): Likewise.
33583 * util/grub-probe.c (probe): Likewise.
33584 * util/hostdisk.c (make_device_name): Likewise.
33586 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33588 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33589 anything even prefixed with 'cdrom' as a cdrom.
33591 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33593 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33596 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33598 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33599 grub_gettext_msg_list.
33600 (grub_gettext_gettranslation_from_position): Return const char *
33602 (grub_gettext_translate): Add the translated strings into a list,
33603 returns from the list if existing there.
33604 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33605 (grub_gettext_delete_list): Delete the list.
33606 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33607 lang environment variable is changed.
33608 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33610 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33612 Rename kernel.mod to kernel.img.
33614 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33615 (kernel_mod_EXPORTS): Rename to ...
33616 (kernel_img_EXPORTS): ... this.
33617 (kernel_mod_SOURCES): Rename to ...
33618 (kernel_img_SOURCES): ... this.
33619 (kernel_mod_HEADERS): Rename to ...
33620 (kernel_img_HEADERS): ... this. All users updated.
33621 (kernel_mod_CFLAGS): Rename to ...
33622 (kernel_img_CFLAGS): ... this.
33623 (kernel_mod_ASFLAGS): Rename to ...
33624 (kernel_img_ASFLAGS): ... this.
33625 (kernel_mod_LDFLAGS): Rename to ...
33626 (kernel_img_LDFLAGS): ... this.
33627 * conf/x86_64-efi.rmk: Likewise.
33628 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33629 (read_kernel_image): ... this. All users updated.
33630 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33632 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33634 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33635 (print_spaces): New function.
33636 (grub_print_ucs4): New function.
33637 (getstringwidth): New function.
33638 (print_message_indented): New function.
33639 (print_message): Gettexttize strings using print_message_indented.
33640 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33642 (get_entry_number): Gettextize and uses dynamic terminal width.
33643 (notify_booting, notify_fallback, notify_execution_failure):
33645 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33648 (grub_menu_entry_run): Likewise.
33649 * PO/POTFILES: Add normal/menu_entry.c.
33651 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33653 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33655 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33657 * util/grub-install.in: Install gettext .mo files.
33658 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33660 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33662 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33665 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33667 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33668 non-firmware-dependant one in realmode.S takes precedence.
33670 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33672 * commands/halt.c: Replace misc arch-specific headers with
33674 * commands/reboot.c: Likewise.
33675 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33677 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33678 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33679 (kernel_img_SOURCES): ... to here.
33681 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33682 * include/grub/i386/pc/init.h: Likewise.
33683 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33684 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33686 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33688 * include/grub/i386/halt.h: Remove.
33689 * include/grub/i386/reboot.h: Likewise.
33691 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33693 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33695 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33696 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33697 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33699 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33700 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33701 (usage): Add missing comma in printf.
33703 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33705 Use the same reboot approach on i386 coreboot and qemu as we do on
33708 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33709 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33710 * kern/i386/reboot.c: Remove.
33711 * include/grub/i386/reboot.h (grub_reboot): Export function.
33712 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33713 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33714 0xf000:0xfff0 instead of 0xffff:0x0000.
33715 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33716 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33718 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33720 Fix $srcdir != $objdir build.
33722 * Makefile.in (po/%.po): Rewrite as ...
33723 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33725 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33727 Fix GNU/Hurd grub-install crash.
33728 * util/grub-probe.c (probe): Try to access `path' only when it is not
33731 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33733 Correct module naming.
33735 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33736 (GRUB_MOD_INIT(efi_uga)): ... to this
33737 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33738 (GRUB_MOD_FINI(efi_uga)): ... to this
33739 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33740 (GRUB_MOD_INIT(efi_gop)): ... to this
33741 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33742 (GRUB_MOD_FINI(efi_gop)): ... to this
33744 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33746 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33748 (usage): Translate `arg' strings using gettext().
33749 Thanks to Jordi Mallach for the suggestion.
33751 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33753 GOP support. Based on patch from Bean
33754 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33756 * video/efi_gop.c: New file.
33757 * include/grub/efi/graphics_output.h: Likewise.
33758 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33759 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33761 * conf/x86_64-efi.rmk: Likewise.
33763 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33765 Rename efi_fb to efi_uga.
33767 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33769 (efi_fb_mod_SOURCES): Rename this ...
33770 (efi_uga_mod_SOURCES): ... to this.
33771 (efi_fb_mod_CFLAGS): Rename this ...
33772 (efi_uga_mod_CFLAGS): ... to this.
33773 (efi_fb_mod_LDFLAGS): Rename this ...
33774 (efi_uga_mod_LDFLAGS): ... to this.
33775 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33777 (efi_fb_mod_SOURCES): Rename this ...
33778 (efi_uga_mod_SOURCES): ... to this.
33779 (efi_fb_mod_CFLAGS): Rename this ...
33780 (efi_uga_mod_CFLAGS): ... to this.
33781 (efi_fb_mod_LDFLAGS): Rename this ...
33782 (efi_uga_mod_LDFLAGS): ... to this.
33783 * video/efi_fb.c: Move this ...
33784 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33786 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33788 * po/README: New file. Explain our PO file workflow.
33790 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33792 * po/ChangeLog: Remove. Move relevant entries back to ...
33793 * ChangeLog: ... here.
33794 * po/ca.po: Remove (now handled by TLP).
33795 * po/id.po: Likewise.
33796 * po/zh_CN.po: Likewise.
33797 * Makefile.in (LINGUAS): Initialize in a way that supports
33800 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33802 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33803 reliing on po/LINGUAS.
33804 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33805 (po/%.po): ... this.
33807 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33809 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33810 (main): Use `program_name' instead of nonexistent `progname'.
33812 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33814 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33815 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33817 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33819 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33821 * conf/i386-efi.rmk: Likewise.
33822 * conf/i386-ieee1275.rmk: Likewise.
33823 * conf/powerpc-ieee1275.rmk: Likewise.
33824 * conf/sparc64-ieee1275.rmk: Likewise.
33825 * conf/x86_64-efi.rmk: Likewise.
33827 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33829 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33831 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33833 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33835 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33837 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33838 (grub_mkdevicemap_SOURCES): New variable.
33839 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33840 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33841 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33842 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33843 (grub_mkdevicemap_SOURCES): Remove.
33844 * conf/i386-efi.rmk: Likewise.
33845 * conf/i386-ieee1275.rmk: Likewise.
33846 * conf/i386-pc.rmk: Likewise.
33847 * conf/powerpc-ieee1275.rmk: Likewise.
33848 * conf/sparc64-ieee1275.rmk: Likewise.
33849 * conf/x86_64-efi.rmk: Likewise.
33850 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33851 (usage): Fix strings to use `program_name'.
33852 (main): Initialize gettext.
33853 * util/grub-editenv.c: Likewise.
33854 * util/grub-emu.c: Likewise.
33855 * util/grub-fstest.c: Likewise.
33856 * util/grub-mkdevicemap.c: Likewise.
33857 * util/grub-mkfont.c: Likewise.
33858 * util/grub-mkrelpath.c: Likewise.
33859 * util/grub-pe2elf.c: Likewise.
33860 * util/grub-probe.c: Likewise.
33861 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
33862 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33863 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33865 * util/misc.c: Include `"progname.h"'.
33866 (progname): Remove variable.
33867 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
33869 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33871 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
33872 printf and print a newline after the menuentry header line.
33873 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33875 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33877 autoconf >= 2.60 support $(localedir).
33879 * INSTALL: Note that autoconf 2.60 is required.
33880 * configure.ac (AC_PREREQ): Bump to 2.60.
33881 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
33882 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
33884 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
33886 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
33889 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33891 * normal/main.c (grub_normal_read_line): Fix off-by-one
33894 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33896 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
33897 "parser.grub" in grub_command_execute() call.
33899 2009-11-24 Carles Pina i Estany <carles@pina.cat>
33901 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
33902 * conf/i386-efi.rmk: Likewise.
33903 * conf/i386-ieee1275.rmk: Likewise.
33904 * conf/i386-pc.rmk: Likewise.
33905 * conf/powerpc-ieee1275.rmk: Likewise.
33906 * conf/sparc64-ieee1275.rmk: Likewise.
33907 * conf/x86_64-efi.rmk: Likewise.
33908 * gettext/gettex.c: Include <grub/i18n.h>.
33909 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
33911 * include/grub/i18n.h: ... to here
33912 * include/grub/i18n.h: ... to here.
33913 * kern/misc.c: Include <grub/i18n.h>
33914 (grub_gettext_dummy): Move above user.
33916 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33918 * util/Makefile.in (install-local): Convert a `for' into a normal
33921 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
33923 * autogen.sh: Add automake call.
33924 * config.guess: Remove.
33925 * config.sub: Likewise.
33926 * install-sh: Likewise.
33928 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33930 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
33932 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33934 * util/Makefile.in (install-local): Convert a make `$(foreach)'
33935 function to a normal shell `for'.
33937 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33939 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33941 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33943 * util/grub-mkrelpath.c: New file.
33944 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
33945 (grub_mkrelpath_SOURCES): New variable.
33946 * include/grub/util/misc.h: New function prototype.
33947 * util/misc.c (make_system_path_relative_to_its_root): New function.
33949 * util/grub-mkconfig_lib.in (bindir): New variable.
33950 (grub_mkrelpath): Likewise.
33951 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
33953 * util/probe.c (probe): Make the file path relative to its root.
33954 Change a info message to use the GRUB path. Enable again the
33955 check if we can read the file with GRUB facilities.
33957 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
33960 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33962 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
33965 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33967 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
33970 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
33972 * util/getroot.c (grub_util_is_dmraid): New function.
33973 (grub_util_get_dev_abstraction): Treat dmraid and multipath
33974 devices as normal ones, not as LVM.
33976 2009-11-23 Carles Pina i Estany <carles@pina.cat>
33978 * conf/common.rmk: Add grub-gettext_lib target and updates
33979 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
33981 * gettext/gettext.c: New file. (Reads mo files).
33982 * include/grub/file.h (grub_file_pread): New prototype.
33983 * include/grub/i18n.h (_): New prototype.
33984 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
33986 * kern/misc.c (grub_gettext_dummy): New function.
33987 * normal/menu_text.c: Include <grub/i18n.h>.
33988 * normal/menu_text.c (print_timeout): Gettexttize string.
33989 * normal/menu_text.c (print_message): Gettexttize string.
33990 * po/POTFILES: Add `normal/menu_text.c'.
33991 * po/ca.po: Add new translations.
33992 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
33993 gettext module and defines locale_dir and lang in grub.cfg.
33994 * NEWS: Add gettext support.
33996 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
33998 * util/hostdisk.c: Include `<grub/i18n.h>'.
33999 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34000 (make_device_name): Rewrite using asprintf.
34001 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34002 (find_system_device): If a device is not found, generate one just
34003 by reusing the OS path name.
34004 (read_device_map): Make it permissible for device.map not to exist.
34006 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34008 * script/sh/execute.c: Move from here ...
34009 * script/execute.c: ... to here. Update all users.
34010 * script/sh/function.c: Move from here ...
34011 * script/function.c: ... to here. Update all users.
34012 * script/sh/lexer.c: Move from here ...
34013 * script/lexer.c: ... to here. Update all users.
34014 * script/sh/main.c: Move from here ...
34015 * script/main.c: ... to here. Update all users.
34016 * script/sh/parser.y: Move from here ...
34017 * script/parser.y: ... to here. Update all users.
34018 * script/sh/script.c: Move from here ...
34019 * script/script.c: ... to here. Update all users.
34021 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34023 * configure.ac: Detect all `emu' platforms. Define
34024 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34025 --enable-grub-emu logic. Disable include/grub/machine
34026 symlink on `emu' platforms.
34028 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34029 * gensymlist.sh.in: Likewise.
34031 * include/grub/i386/coreboot/machine.h: Remove file.
34032 * include/grub/i386/efi/machine.h: Likewise.
34033 * include/grub/i386/ieee1275/machine.h: Likewise.
34034 * include/grub/i386/pc/machine.h: Likewise.
34035 * include/grub/i386/qemu/machine.h: Likewise.
34036 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34037 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34038 * include/grub/x86_64/efi/machine.h: Likewise.
34040 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34041 * commands/halt.c: Likewise.
34042 * commands/reboot.c: Likewise.
34043 * include/grub/autoefi.h: Likewise.
34044 * include/grub/i386/at_keyboard.h: Likewise.
34045 * include/grub/i386/kernel.h: Likewise.
34046 * include/grub/i386/loader.h: Likewise.
34047 * include/grub/i386/pc/memory.h: Likewise.
34048 * kern/dl.c: Likewise.
34049 * kern/i386/coreboot/init.c: Likewise.
34050 * loader/i386/bsd.c: Likewise.
34051 * loader/i386/linux.c: Likewise.
34052 * loader/multiboot_loader.c: Likewise.
34053 * term/i386/pc/serial.c: Likewise.
34054 * term/usb_keyboard.c: Likewise.
34056 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34057 `<grub/machine/machine.h>'
34058 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34059 * util/misc.c: Remove `<grub/machine/machine.h>' and
34060 `<grub/machine/time.h>'.
34062 * Makefile.in (enable_grub_emu): Remove variable.
34063 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34065 * conf/any-emu.rmk: New file.
34066 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34067 (grub_emu_init.c): Move from here ...
34068 * conf/any-emu.rmk: ... to here.
34070 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34071 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34072 * conf/any-emu.rmk: ... to here.
34074 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34076 * include/grub/parser.h (grub_parser_register): Document need
34077 of `name' parameter.
34078 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34079 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34082 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34084 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34086 * include/grub/i18n.h (N_): New macro.
34087 * util/mkisofs/mkisofs.h: Likewise.
34088 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34090 (usage): Use gettext() to translate help strings when printing them.
34092 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34094 Based on patch from Bean
34095 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34097 * video/efi_fb.c: New file.
34098 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34099 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34101 * conf/x86_64-efi.rmk: Likewise.
34103 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34105 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34106 * util/i386/pc/grub-setup.c: Likewise.
34108 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34110 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34112 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34113 file_get_storage_info to implement grub_guess_root_device.
34115 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34117 * Makefile.in (target): Use make's builtin $(shell) function
34118 instead of calling directly $(SHELL) to create the locale directories,
34119 inside the $(foreach) function.
34121 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34123 * util/grub-mkrescue.in: Print an error and usage if output option
34124 has not been given.
34126 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34128 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34129 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34130 root and /boot are on different devices.
34132 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34134 Fix build for srcdir != objdir.
34136 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34137 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34139 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34140 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34141 reference for input.
34143 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34145 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34146 or hardlinking it). Remove -J option, Joliet is not compatible with
34147 multiple source directories.
34149 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34150 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34152 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34153 (process_input_dir): New function. Process an arbitrary input
34155 Misc adjustments to support both "override mode" and system-wide mode.
34157 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34159 * configure.ac (UNIFONT_BDF): Rename to ...
34160 (FONT_SOURCE): ... this. Update all users.
34162 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34164 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34165 to the list of unifont files to look for.
34167 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34169 Patch from Joe Auricchio <jauricchio@gmail.com>
34170 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34171 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34172 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34174 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34176 * Makefile.in (install-local): Add a missing backslash.
34178 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34180 * include/grub/x86_64/io.h: New file.
34182 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34184 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34185 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34186 Include `"progname.h"'.
34187 (main): Initialize gettext.
34188 * util/i386/pc/grub-setup.c: Gettexttize.
34189 * util/i386/pc/grub-mkimage.c: Likewise.
34191 * Makefile.in (po/*.po): Redefine as ...
34192 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34194 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34196 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34198 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34199 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34200 (program_name): Remove.
34201 (main): Initialize gettext support.
34202 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34203 Include `<libintl.h>'.
34206 * util/mkisofs/eltorito.c: Gettexttize.
34207 * util/mkisofs/joliet.c: Likewise.
34208 * util/mkisofs/mkisofs.c: Likewise.
34209 * util/mkisofs/multi.c: Likewise.
34210 * util/mkisofs/rock.c: Likewise.
34211 * util/mkisofs/tree.c: Likewise.
34212 * util/mkisofs/write.c: Likewise.
34214 * po/POTFILES: Update with new files.
34216 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34218 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34219 * util/mkisofs/iso9660.h: Likewise.
34220 * util/mkisofs/joliet.c: Likewise.
34221 * util/mkisofs/mkisofs.c: Likewise.
34222 * util/mkisofs/mkisofs.h: Likewise.
34223 * util/mkisofs/rock.c: Likewise.
34224 * util/mkisofs/tree.c: Likewise.
34225 * util/mkisofs/write.c: Likewise.
34227 * util/mkisofs/eltorito.c (rcsid): Remove.
34228 * util/mkisofs/hash.c: Likewise.
34229 * util/mkisofs/joliet.c: Likewise.
34230 * util/mkisofs/name.c: Likewise.
34231 * util/mkisofs/rock.c: Likewise.
34232 * util/mkisofs/tree.c: Likewise.
34233 * util/mkisofs/write.c: Likewise.
34235 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34237 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34238 instead of static allocation.
34239 * util/mkisofs/match.h: Likewise.
34241 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34243 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34244 and `util/grub.d/10_linux.in'.
34245 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34246 translatable Shell files.
34248 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34250 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34252 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34254 * INSTALL: Document Automake is needed for bootstrap.
34255 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34256 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34257 Add gettext initialization.
34258 (kfreebsd_entry): Make menuentry output translatable.
34260 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34262 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34263 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34264 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34265 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34266 (LINGUAS): Auto-generate using `po/LINGUAS'.
34267 * po/LINGUAS: New file.
34269 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34271 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34273 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34274 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34275 bindtextdomain() calls for gettext initialization.
34277 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34279 * gnulib/progname.c: New file (imported from Gnulib).
34280 * gnulib/progname.h: Likewise.
34281 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34282 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34283 (usage): Replace `progname' with `program_name'.
34284 (main): Use set_program_name() for program name initialization.
34286 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34288 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34290 * Makefile.in (CPPFLAGS): ... to here.
34292 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34294 * aclocal.m4: Move from here ...
34295 * acinclude.m4: ... to here.
34296 * autogen.sh: Add call to `aclocal'.
34297 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34299 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34301 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34302 (LINGUAS): New variable.
34303 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34304 (install-local): Install MO files.
34305 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34306 * include/grub/i18n.h: New file.
34307 * po/POTFILES: New file.
34308 * po/ca.po: New file.
34309 * util/grub.d/10_linux.in (bindir): New variable.
34310 Add gettext initialization.
34311 (linux_entry): Make menuentry output translatable.
34312 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34313 (usage): Make --help output translatable.
34314 (main): Initialize gettext.
34316 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34318 * import_gcry.py: New file (written by Vladimir with minor
34320 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34322 * INSTALL: Document that Python is required for bootstrap.
34324 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34326 Import ciphers from libgcrypt 1.4.4.
34328 * lib/libgcrypt/cipher/ChangeLog
34329 * lib/libgcrypt/cipher/ac.c
34330 * lib/libgcrypt/cipher/arcfour.c
34331 * lib/libgcrypt/cipher/bithelp.h
34332 * lib/libgcrypt/cipher/blowfish.c
34333 * lib/libgcrypt/cipher/camellia-glue.c
34334 * lib/libgcrypt/cipher/camellia.c
34335 * lib/libgcrypt/cipher/camellia.h
34336 * lib/libgcrypt/cipher/cast5.c
34337 * lib/libgcrypt/cipher/cipher.c
34338 * lib/libgcrypt/cipher/crc.c
34339 * lib/libgcrypt/cipher/des.c
34340 * lib/libgcrypt/cipher/dsa.c
34341 * lib/libgcrypt/cipher/ecc.c
34342 * lib/libgcrypt/cipher/elgamal.c
34343 * lib/libgcrypt/cipher/hash-common.c
34344 * lib/libgcrypt/cipher/hash-common.h
34345 * lib/libgcrypt/cipher/hmac-tests.c
34346 * lib/libgcrypt/cipher/md.c
34347 * lib/libgcrypt/cipher/md4.c
34348 * lib/libgcrypt/cipher/md5.c
34349 * lib/libgcrypt/cipher/primegen.c
34350 * lib/libgcrypt/cipher/pubkey.c
34351 * lib/libgcrypt/cipher/rfc2268.c
34352 * lib/libgcrypt/cipher/rijndael-tables.h
34353 * lib/libgcrypt/cipher/rijndael.c
34354 * lib/libgcrypt/cipher/rmd.h
34355 * lib/libgcrypt/cipher/rmd160.c
34356 * lib/libgcrypt/cipher/rsa.c
34357 * lib/libgcrypt/cipher/seed.c
34358 * lib/libgcrypt/cipher/serpent.c
34359 * lib/libgcrypt/cipher/sha1.c
34360 * lib/libgcrypt/cipher/sha256.c
34361 * lib/libgcrypt/cipher/sha512.c
34362 * lib/libgcrypt/cipher/tiger.c
34363 * lib/libgcrypt/cipher/twofish.c
34364 * lib/libgcrypt/cipher/whirlpool.c
34366 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34368 Fix build for systems without error().
34370 * gnulib/error.c: New file (imported from Gnulib).
34371 * gnulib/error.h: Likewise.
34372 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34373 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34374 (this variable is now used by error()).
34376 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34378 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34379 instead of relying that char is signed.
34381 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34383 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34384 blocksize different from specified.
34385 (grub_pxefs_read): Likewise.
34387 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34389 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34391 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34392 (grub_ata_readwrite): Likewise. Update 2 format strings.
34393 (grub_atapi_read): Likewise.
34395 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34396 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34397 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34398 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34399 (ata_mod_LDFLAGS): Move from here ...
34400 * conf/i386.rmk: ... to here ...
34401 * conf/x86_64-efi.rmk: ... and here.
34402 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34403 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34405 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34407 Relicense multiboot.h, with RMS' blessing.
34409 * include/multiboot.h: Change to X11 license.
34411 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34413 Support --version in grub-mkisofs.
34415 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34416 (OPTION_VERSION): New macro.
34417 (ld_options): Recognize --version.
34418 (usage): Move `program_name' from here ...
34419 (program_name): ... to here. Add `static' qualifier.
34420 (main): Recognize `OPTION_VERSION'.
34422 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34424 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34425 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34427 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34429 Fix help2man generation for mkisofs.
34431 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34432 (usage): Send output to stdout (rather than stderr).
34434 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34436 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34437 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34438 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34439 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34440 (bin_SCRIPTS): Add `grub-mkfloppy'.
34441 (grub_mkfloppy_SOURCES): New variable.
34443 * util/grub-mkrescue.in: New file.
34444 * util/i386/pc/grub-mkfloppy.in: New file.
34446 * util/i386/coreboot/grub-mkrescue.in: Remove.
34447 * util/i386/pc/grub-mkrescue.in: Remove.
34449 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34451 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34453 * include/multiboot.h (struct multiboot_header): ... to here. Update
34455 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34457 * include/multiboot.h (struct multiboot_info): ... to here. Update
34459 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34461 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34463 * include/grub/multiboot.h (struct grub_mod_list): Move
34465 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34468 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34470 * include/multiboot2.h (multiboot_word): Rename from this ...
34471 (multiboot2_word): ... to this. Update all users.
34472 (multiboot_header): Rename from this ...
34473 (multiboot2_header): ... to this. Update all users.
34474 (multiboot_tag_header): Rename from this ...
34475 (multiboot2_tag_header): ... to this. Update all users.
34476 (multiboot_tag_start): Rename from this ...
34477 (multiboot2_tag_start): ... to this. Update all users.
34478 (multiboot_tag_name): Rename from this ...
34479 (multiboot2_tag_name): ... to this. Update all users.
34480 (multiboot_tag_module): Rename from this ...
34481 (multiboot2_tag_module): ... to this. Update all users.
34482 (multiboot_tag_memory): Rename from this ...
34483 (multiboot2_tag_memory): ... to this. Update all users.
34484 (multiboot_tag_unused): Rename from this ...
34485 (multiboot2_tag_unused): ... to this. Update all users.
34486 (multiboot_tag_end): Rename from this ...
34487 (multiboot2_tag_end): ... to this. Update all users.
34489 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34491 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34492 this platform we should support Multiboot1 first.
34494 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34495 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34496 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34498 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34500 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34501 of write calls (converting them to fwrite() if they aren't already).
34502 (get_torito_desc): Likewise.
34503 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34505 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34507 * util/i386/pc/grub-install.in: Move from here ...
34508 * util/grub-install.in: ... to here. Update all users.
34510 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34512 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34514 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34516 Support for El Torito without floppy emulation.
34518 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34519 (init_boot_catalog): Improve error handling.
34520 (get_torito_desc): Don't use floppy emulation unless requested by
34521 user. Patch boot information table when requested via
34522 `-boot-info-table'.
34523 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34524 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34525 (use_boot_info_table): New variables.
34526 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34527 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34528 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34529 `--eltorito-emul-floppy'.
34530 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34531 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34532 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34533 (use_boot_info_table, get_731): New prototypes.
34534 * util/mkisofs/write.c (get_731): New function.
34536 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34538 Fix the generation of the man page.
34540 * util/pc/i386/grub-install.in: Source
34541 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34543 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34545 Large file support for grub-mkisofs.
34547 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34548 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34549 (session_start): Upgrade type to `uint64_t'. Update all users.
34550 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34551 (struct directory_entry): Upgrade type of `starting_block' and
34552 `size' to `uint64_t'. Update all users.
34553 (struct deferred): Remove unused structure.
34554 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34556 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34557 file is larger than `UINT32_MAX'.
34558 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34559 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34561 (struct deferred_write): Upgrade type of `extent' and `size' to
34562 `uint64_t'. Update all users.
34563 (last_extent_written): Upgrade type to `uint64_t'. Update all
34565 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34566 Update all users. Upgrade type of `remain' to `int64_t' and
34567 `use' to `size_t'. Use error() to handle fread() errors.
34568 (write_files): Rely on write_one_file() rather than calling
34569 xfwrite() directly.
34571 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34573 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34575 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34577 * util/mkisofs/fnmatch.c: Remove.
34578 * util/mkisofs/getopt1.c: Likewise.
34579 * util/mkisofs/getopt.c: Likewise.
34580 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34581 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34582 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34583 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34584 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34586 * configure.ac: Detect `mingw32msvc' host_os.
34587 Check for lstat(), getuid() and getgid().
34589 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34590 instances of `u_char' with `uint8_t'.
34592 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34593 [!HAVE_GETUID] (getuid): New function (stub).
34594 [!HAVE_GETGID] (getgid): Likewise.
34595 [!HAVE_LSTAT] (lstat): Likewise.
34596 [!S_IROTH] (S_IROTH): New macro (dummy).
34597 [!S_IRGRP] (S_IRGRP): Likewise.
34599 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34601 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34602 conditional expression).
34604 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34606 Import from Gnulib.
34608 * gnulib/fnmatch.c: New file.
34609 * gnulib/fnmatch.h: Likewise.
34610 * gnulib/fnmatch_loop.c: Likewise.
34611 * gnulib/getopt.c: Likewise.
34612 * gnulib/getopt.h: Likewise.
34613 * gnulib/getopt1.c: Likewise.
34614 * gnulib/getopt_int.h: Likewise.
34615 * gnulib/gettext.h: Likewise.
34617 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34619 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34620 * normal/handler.c (read_handler_list): Likewise.
34622 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34626 * kern/command.c (grub_register_command_prio): Use
34627 grub_zalloc() instead of explicitly zeroing data.
34628 * kern/list.c: Include `<grub/mm.h>'.
34629 (grub_named_list_find): Replace `0' with `NULL'.
34630 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34631 (fs_module_list): Change type to `grub_named_list_t'. Update all
34633 * normal/dyncmd.c (read_command_list): Add space between function
34634 call and parenthesis.
34635 * normal/handler.c (read_handler_list): Likewise.
34637 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34639 * normal/auth.c (punishment_delay): Moved from here ...
34640 (grub_auth_strcmp): ... to here (inside function).
34642 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34644 * include/grub/list.h (struct grub_named_list): Remove `const'
34645 qualifier from `name'.
34646 (struct grub_prio_list): Likewise.
34648 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34650 * normal/auth.c: Include `<grub/time.h>'.
34651 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34653 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34655 * normal/auth.c (punishment_delay): New variable.
34656 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34657 (grub_auth_check_authentication): Punish failed login attempts with
34658 an incremental (2^N) delay.
34660 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34662 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34663 path with $(srcdir).
34665 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34667 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34669 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34671 * util/i386/coreboot/grub-mkrescue.in: New file.
34672 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34675 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34676 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34677 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34679 * util/mkisofs/defaults.h: New file.
34680 * util/mkisofs/eltorito.c: Likewise.
34681 * util/mkisofs/exclude.h: Likewise.
34682 * util/mkisofs/fnmatch.c: Likewise.
34683 * util/mkisofs/getopt.c: Likewise.
34684 * util/mkisofs/getopt1.c: Likewise.
34685 * util/mkisofs/hash.c: Likewise.
34686 * util/mkisofs/include/fctldefs.h: Likewise.
34687 * util/mkisofs/include/mconfig.h: Likewise.
34688 * util/mkisofs/include/prototyp.h: Likewise.
34689 * util/mkisofs/include/statdefs.h: Likewise.
34690 * util/mkisofs/iso9660.h: Likewise.
34691 * util/mkisofs/joliet.c: Likewise.
34692 * util/mkisofs/match.c: Likewise.
34693 * util/mkisofs/match.h: Likewise.
34694 * util/mkisofs/mkisofs.c: Likewise.
34695 * util/mkisofs/mkisofs.h: Likewise.
34696 * util/mkisofs/multi.c: Likewise.
34697 * util/mkisofs/name.c: Likewise.
34698 * util/mkisofs/rock.c: Likewise.
34699 * util/mkisofs/tree.c: Likewise.
34700 * util/mkisofs/write.c: Likewise.
34702 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34704 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34707 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34709 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34710 `grub-mkimage' (and use $0 when possible).
34712 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34714 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34715 error message for excessively large memory map.
34717 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34719 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34722 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34724 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34725 message for coreboot users.
34727 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34729 Fix build with GNU gold.
34731 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34732 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34733 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34735 * aclocal.m4: Likewise.
34737 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34739 * configure.ac (AC_PREREQ): Bump to 2.59d.
34740 * INSTALL: Make it more clear when Autoconf and Ruby are
34741 needed and when to run `./autogen.sh'.
34743 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34745 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34748 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34750 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34752 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34754 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34755 giving it to GNU Mach.
34757 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34759 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34760 GNU partition number to get internal GRUB partition number.
34762 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34764 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34765 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34767 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34769 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34770 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34773 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34775 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34777 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34781 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34782 `-isystem=$(srcdir)/include'.
34784 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34786 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34787 checked (grub-install doesn't currently rely on it).
34789 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34793 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34794 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34795 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34796 * conf/i386-ieee1275.rmk: Likewise.
34797 * conf/i386-pc.rmk: Likewise.
34798 * conf/powerpc-ieee1275.rmk: Likewise.
34799 * conf/sparc64-ieee1275.rmk: Likewise.
34800 * conf/x86_64-efi.rmk: Likewise.
34802 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34804 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34806 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34808 * include/grub/misc.h: Stop checking for APPLE_CC.
34810 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34812 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34813 doesn't cause an infinite call loop.
34815 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34817 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34820 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34822 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34824 * Makefile.in: Likewise.
34826 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34828 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34830 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34832 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34834 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34836 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34838 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34840 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34842 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34844 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34846 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34847 in $(MAKEINFO) invocation. This makes it clear in output that
34848 errors are being ignored.
34850 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34852 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34854 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34855 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
34856 * conf/i386-ieee1275.rmk: Likewise.
34857 * conf/i386-pc.rmk: Likewise.
34858 * conf/powerpc-ieee1275.rmk: Likewise.
34859 * conf/sparc64-ieee1275.rmk: Likewise.
34860 * conf/x86_64-efi.rmk: Likewise.
34862 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34864 * util/grub-editenv.c (main): If only a command is given, use
34865 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
34866 (usage): FILENAME is now optional and has a default.
34868 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34870 Improve grub-mkconfig performance when there are several menu
34871 entries on a single filesystem.
34873 * util/grub.d/10_linux.in (linux_entry): Cache the output of
34874 prepare_grub_to_access_device.
34875 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34876 * util/grub.d/30_os-prober.in: Likewise.
34878 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34880 * util/grub.d/10_freebsd.in: Remove.
34881 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
34882 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
34884 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34886 * docs/grub.cfg: Fix example usage of *BSD loaders.
34888 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34890 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
34891 grub_util_error() call.
34893 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34895 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
34896 `reserved_first_sector' member.
34897 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
34898 `reserved_first_sector' to 1.
34899 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
34900 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
34901 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
34902 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
34903 filesystems which begin at first sector.
34904 (options): New option --skip-fs-probe.
34905 (main): Handle --skip-fs-probe and pass it to setup().
34907 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34909 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
34910 (memset): Fix function prototype.
34912 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34913 2009-10-25 Vasily Averin <vvs@parallels.com>
34915 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
34916 `dirent.direntlen == 0'.
34918 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34920 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
34922 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
34924 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34926 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
34927 `__trampoline_setup' and `__ucmpdi2'.
34928 * include/grub/powerpc/libgcc.h: Only export symbols for functions
34929 that libgcc provides.
34931 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34933 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
34934 * include/grub/sparc64/libgcc.h (memset): Likewise.
34935 * include/grub/misc.h (memset, memcmp): New function prototypes.
34937 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34939 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
34941 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
34943 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34945 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
34946 * docs/grub.cfg: Compensate for recent change in multiboot
34947 loader (since 2009-08-14 it won't pass filename to payload).
34948 * util/grub.d/10_hurd.in: Likewise.
34950 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
34952 * config.guess: Update to latest version from config git
34954 * config.sub: Likewise.
34956 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
34958 Fix build on sparc64.
34960 * configure.ac: Perform checks for libgcc symbols before
34961 adding `-nostdlib' to LDFLAGS.
34963 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34965 Let user specify OpenBSD root device.
34967 * loader/i386/bsd.c (openbsd_root): New variable.
34968 (openbsd_opts): New option 'root'.
34969 (OPENBSD_ROOT_ARG): New macro.
34970 (grub_openbsd_boot): Use 'openbsd_root'.
34971 (grub_cmd_openbsd): Fill 'openbsd_root'.
34973 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34975 * NEWS: Misc adjustments.
34977 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
34979 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
34981 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
34983 * configure.ac: Bump version to 1.97.
34985 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
34987 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
34988 -mno-3dnow on x86 architectures. Some toolchains enable these
34989 features by default, but they rely on registers that aren't enabled
34990 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
34992 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
34994 Make entry text a bit more readable.
34996 * util/grub.d/10_linux.in: Add `with' before `Linux'.
34998 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35000 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35002 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35004 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35007 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35009 * configure.ac: Add missing dollar.
35011 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35013 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35015 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35016 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35018 * include/grub/sparc64/libgcc.h: Likewise. Use
35019 preprocessor conditionals.
35021 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35023 * conf/common.rmk (grub-dumpbios): Remove rule.
35024 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35025 * util/grub-dumpbios.in: Remove file.
35027 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35029 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35030 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35032 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35033 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35036 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35037 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35038 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35039 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35042 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35044 * term/tparm.c: Switch to GPLv3.
35046 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35048 * include/grub/i386/cpuid.h: Add header protection.
35050 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35052 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35054 * include/grub/i386/cpuid.h: New file.
35055 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35056 (has_longmode): Rename to ...
35057 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35058 `static' attribute.
35059 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35060 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35061 on a CPU that doesn't implement AMD64 instruction set.
35063 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35065 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35066 that version.texi is rebuilt on version number changes.
35068 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35070 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35073 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35075 * util/i386/pc/grub-install.in: Source
35076 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35077 that the --grub-probe option will work.
35078 * util/sparc64/ieee1275/grub-install.in: Likewise.
35080 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35082 * configure.ac: Bump version to 1.97~beta4.
35084 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35086 Resync grub-mkdevicemap in x86_64-efi.
35088 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35089 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35090 `util/devicemap.c'.
35092 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35094 * util/grub-editenv.c (create_envblk_file): Write new block with a
35095 .new suffix and then rename it into place, to ensure atomic
35098 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35100 Do not automatically install headers.
35102 * Makefile.in (include_DATA): Remove. Update all users.
35104 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35106 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35107 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35109 * util/osdetect.lua: Remove.
35110 * script/lua/lauxlib.c: Likewise.
35111 * script/lua/ldebug.c: Likewise.
35112 * script/lua/grub_main.c: Likewise.
35113 * script/lua/lauxlib.h: Likewise.
35114 * script/lua/ldebug.h: Likewise.
35115 * script/lua/ltablib.c: Likewise.
35116 * script/lua/liolib.c: Likewise.
35117 * script/lua/lstrlib.c: Likewise.
35118 * script/lua/lualib.h: Likewise.
35119 * script/lua/ldo.c: Likewise.
35120 * script/lua/ldump.c: Likewise.
35121 * script/lua/ldo.h: Likewise.
35122 * script/lua/loslib.c: Likewise.
35123 * script/lua/lundump.c: Likewise.
35124 * script/lua/grub_lib.c: Likewise.
35125 * script/lua/ldblib.c: Likewise.
35126 * script/lua/lundump.h: Likewise.
35127 * script/lua/lmem.c: Likewise.
35128 * script/lua/grub_lib.h: Likewise.
35129 * script/lua/lmathlib.c: Likewise.
35130 * script/lua/lstate.c: Likewise.
35131 * script/lua/ltm.c: Likewise.
35132 * script/lua/lvm.c: Likewise.
35133 * script/lua/lmem.h: Likewise.
35134 * script/lua/lstate.h: Likewise.
35135 * script/lua/ltm.h: Likewise.
35136 * script/lua/ltable.c: Likewise.
35137 * script/lua/lvm.h: Likewise.
35138 * script/lua/llex.c: Likewise.
35139 * script/lua/lgc.c: Likewise.
35140 * script/lua/grub_lua.h: Likewise.
35141 * script/lua/loadlib.c: Likewise.
35142 * script/lua/lfunc.c: Likewise.
35143 * script/lua/lopcodes.c: Likewise.
35144 * script/lua/lparser.c: Likewise.
35145 * script/lua/ltable.h: Likewise.
35146 * script/lua/llex.h: Likewise.
35147 * script/lua/lgc.h: Likewise.
35148 * script/lua/lfunc.h: Likewise.
35149 * script/lua/lbaselib.c: Likewise.
35150 * script/lua/lopcodes.h: Likewise.
35151 * script/lua/lparser.h: Likewise.
35152 * script/lua/lzio.c: Likewise.
35153 * script/lua/linit.c: Likewise.
35154 * script/lua/lobject.c: Likewise.
35155 * script/lua/llimits.h: Likewise.
35156 * script/lua/lstring.c: Likewise.
35157 * script/lua/lzio.h: Likewise.
35158 * script/lua/lapi.c: Likewise.
35159 * script/lua/lcode.c: Likewise.
35160 * script/lua/lua.h: Likewise.
35161 * script/lua/lobject.h: Likewise.
35162 * script/lua/lstring.h: Likewise.
35163 * script/lua/lapi.h: Likewise.
35164 * script/lua/lcode.h: Likewise.
35165 * script/lua/luaconf.h: Likewise.
35167 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35169 * docs/grub.texi (Command-line and menu entry commands): Document
35170 date and echo commands.
35172 2009-09-24 Pavel Roskin <proski@gnu.org>
35174 * include/grub/kernel.h (struct grub_module_header): Remove
35175 `grub_module_header_types'. Make `type' unsigned. Make `size'
35176 32-bit on all platforms.
35177 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35178 8-bit field. Use grub_host_to_target32() for `size'.
35179 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35180 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35181 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35183 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35185 Fix "lost keypress" bug in at_keyboard.
35187 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35188 Checks for readyness of input buffer (without flushing it).
35189 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35190 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35192 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35194 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35195 size check within GRUB_MACHINE_PCBIOS section.
35197 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35199 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35201 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35202 KEYBOARD_ISREADY check.
35203 (grub_at_keyboard_checkkey): Rename to ...
35204 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35205 Remove gratuitous cast.
35207 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35209 * configure.ac: Call AC_PROG_MKDIR_P.
35210 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35211 version.texi in $(builddir) rather than $(srcdir).
35212 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35213 to makeinfo's @include search path.
35215 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35217 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35219 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35221 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35224 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35226 Build info documentation. Some code borrowed from Automake.
35228 * configure.ac: Check for makeinfo.
35229 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35230 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35232 (MOSTLYCLEANFILES): Add vti.tmp.
35233 (docs/version.texi, docs/stamp-vti): Update automatically.
35234 (docs/grub.info): Build info documentation. Use --force and ignore
35236 (all-local): Add $(INFOS).
35237 (install-local): Install info files.
35238 (uninstall): Uninstall info files.
35239 * docs/version.texi: Remove from revision control. This file is
35240 automatically generated on build now.
35241 * gendistlist.sh: Add `*.info'.
35243 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35245 * kern/term.c: Fix indentation.
35247 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35249 * util/hostdisk.c: Fix a comment.
35251 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35253 Fix regression introduced in r2539.
35255 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35258 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35260 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35261 os-prober. Under normal operation, it does not print anything to
35262 stderr; if it does, we need to debug it, and throwing away stderr
35263 makes that excessively difficult.
35265 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35267 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35269 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35271 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35272 AC_LANG_PROGRAM from autoconf.
35273 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35274 prototypes (fixes warning).
35276 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35277 `--disable-werror' was used.
35279 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35281 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35282 uninitialized `lastaddr'.
35284 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35286 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35288 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35290 * commands/test.c (get_fileinfo): Return immediately if
35291 grub_fs_probe fails.
35293 2009-09-14 José Martínez <xosemp@gmail.com>
35295 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35297 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35299 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35302 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35304 * configure.ac: Remove --enable-grub-pe2elf. Only build
35305 grub-pe2elf when needed by the build system itself.
35306 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35308 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35310 * configure.ac: Bump version to 1.97~beta3.
35311 * docs/version.texi: Likewise.
35313 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35315 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35316 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35318 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35319 (grub_linux_setup_video): ... to here (with some adjustments).
35321 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35323 Fix memory corruption issue (spotted by Colin Watson).
35325 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35326 causing returned size to be stored in an incorrect memory location.
35327 Fix use of uninitialized value when storing the returned size.
35329 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35331 Change clean rules to properly remove files
35333 * genmk.rb: add new clean rules
35334 * Makefile.in (clean): add the new targets
35335 (mostlyclean): likewise
35337 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35339 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35341 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35342 non-resident files.
35344 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35346 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35347 part of bug #27349.
35349 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35351 * util/grub-mkconfig.in: Make the created config mode 400 and
35352 print a warning if it fails.
35354 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35356 * util/grub.d/40_custom.in: Ask user to type custom entries below
35357 comment, rather than below 'exec tail' line.
35359 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35361 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35362 visible in grub.cfg.
35364 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35366 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35369 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35371 * docs/grub.cfg: Add an example menu entry for memtest86+.
35373 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35375 * config.guess: Update to latest version from config git.
35376 * config.sub: Likewise.
35378 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35380 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35381 unknown-command case. Fixes bug #27320.
35383 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35385 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35386 `help' if the command exists.
35388 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35390 * INSTALL: Require GCC 4.1.3 or later.
35392 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35394 * Makefile.in (RMKFILES): add i386-qemu.rmk
35395 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35396 $(srcdir)/stamp-h.in
35398 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35400 * util/grub-probe.c (probe): Comment out buggy codepath, which
35401 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35402 should be re-enabled after 1.97.
35404 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35406 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35409 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35411 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35412 unnecessary calls to grub_error.
35414 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35416 * NEWS: Mention `keystatus' and Unicode fonts.
35418 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35420 * configure.ac: Bump version to 1.97~beta2.
35421 * docs/version.texi: Likewise.
35423 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35425 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35426 containing unwind information in some cases where it previously did
35427 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35428 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35431 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35433 Embedding loadenv module into grub-emu
35435 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35437 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35438 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35439 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35440 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35441 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35442 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35444 2009-09-03 Magnus Granberg <zorry@ume.nu>
35446 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35447 include -fPIE in the default specs.
35448 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35451 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35453 * INSTALL: Note that GNU Bison 2.3 or later is required.
35455 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35457 * kern/i386/pc/startup.S: Fix typo.
35459 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35461 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35464 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35466 * docs/grub.texi (Naming convention): Describe one-based partition
35468 (Device syntax): Likewise.
35469 (File name syntax): Likewise.
35470 (Block list syntax): Likewise.
35471 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35473 (File name syntax): Likewise.
35474 (Command-line and menu entry commands): Document acpi, blocklist,
35475 crc, export, insmod, keystatus, ls, set, and unset commands.
35477 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35479 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35480 to avoid implying that only one of --shift, --ctrl, or --alt may be
35483 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35485 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35486 rather than comparing against S_IFREG, which will almost never work.
35488 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35490 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35491 (write_blocklists): Likewise.
35493 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35495 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35496 argument to grub_printf.
35498 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35500 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35503 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35505 * kern/file.c (grub_file_read): Spelling fix
35507 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35509 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35510 loading of headers in some cases.
35512 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35514 * configure.ac: Bump version to 1.97~beta1.
35515 * docs/version.texi: Likewise.
35517 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35519 * include/grub/i386/xnu.h: Add license header.
35520 include grub/err.h explicitly.
35522 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35524 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35525 to `ufs' in the vfs.root.mountfrom kernel parameter.
35527 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35529 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35531 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35532 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35534 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35535 `ARRAY_SIZE' macro.
35537 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35539 * kern/file.c (grub_file_read): Check offset.
35540 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35541 * fs/jfs.c (grub_jfs_read_file): Likewise.
35542 * fs/ntfs.c (grub_ntfs_read): Likewise.
35543 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35544 * fs/minix.c (grub_minix_read_file): Correct offset check.
35545 * fs/ufs.c (grub_ufs_read_file): Likewise.
35547 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35549 * term/i386/pc/console.c (bios_data_area): Cast
35550 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35552 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35554 1-bit optimised blitters.
35556 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35558 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35559 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35560 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35561 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35562 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35563 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35564 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35566 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35567 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35568 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35569 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35570 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35571 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35572 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35574 * video/video.c (grub_video_get_blit_format): Return
35575 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35577 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35579 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35580 the first argument to grub_printf.
35582 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35583 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35585 Add `getkeystatus' terminal method. Add a new `keystatus' command
35588 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35589 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35590 modifier key bitmasks.
35591 (struct grub_term_input): Add `getkeystatus' member.
35592 (grub_getkeystatus): Add prototype.
35593 * kern/term.c (grub_getkeystatus): New function.
35595 * include/grub/i386/pc/memory.h
35596 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35597 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35599 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35600 (grub_console_term_input): Set `getkeystatus' member.
35601 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35603 (grub_usb_keyboard_getreport): Likewise.
35604 (grub_usb_keyboard_checkkey): Likewise.
35605 (grub_usb_keyboard_getkeystatus): New function.
35606 (grub_usb_keyboard_term): Set `getkeystatus' member.
35608 * commands/keystatus.c: New file.
35609 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35610 (keystatus_mod_SOURCES): New variable.
35611 (keystatus_mod_CFLAGS): Likewise.
35612 (keystatus_mod_LDFLAGS): Likewise.
35613 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35614 commands/keystatus.c.
35615 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35616 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35617 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35618 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35619 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35620 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35622 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35624 Split befs.mod and afs.mod into *_be.mod and *.mod
35626 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35627 (grub_fstest_SOURCES): Likewise.
35628 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35629 (afs_be_mod_SOURCES): New variable.
35630 (afs_be_mod_CFLAGS): Likewise.
35631 (afs_be_mod_LDFLAGS): Likewise.
35632 (befs_be_mod_SOURCES): Likewise.
35633 (befs_be_mod_CFLAGS): Likewise.
35634 (befs_be_mod_LDFLAGS): Likewise.
35635 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35636 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35637 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35638 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35639 (grub_emu_SOURCES): Likewise.
35640 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35641 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35642 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35643 * fs/afs_be.c: New file.
35644 * fs/befs_be.c: New file.
35645 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35646 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35647 (U16): Replaced with ...
35648 (grub_afs_to_cpu16): ...this. All users updated.
35649 (U32): Replaced with ...
35650 (grub_afs_to_cpu32): ...this. All users updated.
35651 (U64): Replaced with ...
35652 (grub_afs_to_cpu64): ...this. All users updated.
35653 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35654 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35655 (grub_afs_validate_sblock): Check only one endianness.
35656 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35657 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35658 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35659 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35660 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35661 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35662 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35663 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35665 2009-08-26 Bean <bean123ch@gmail.com>
35667 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35669 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35670 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35671 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35673 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35675 NetBSD memory map support.
35677 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35678 (grub_netbsd_btinfo_mmap_header): New structure.
35679 (grub_netbsd_btinfo_mmap_entry): Likewise.
35680 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35682 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35684 Enable bsd.mod on coreboot.
35686 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35687 (bsd_mod_SOURCES): New variable.
35688 (bsd_mod_CFLAGS): Likewise.
35689 (bsd_mod_LDFLAGS): Likewise.
35690 (bsd_mod_ASFLAGS): Likewise.
35691 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35692 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35694 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35696 Cleanup NetBSD root support.
35698 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35699 grub_bsd_get_device.
35702 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35704 * util/grub.d/00_header.in: Move check for the video backend of
35705 gfxterm from here ...
35706 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35707 a suitable video backend.
35709 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35711 Fix breakage in grub-setup.
35713 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35714 "msdos_partition_map".
35716 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35718 Fix breakage in normal/auth.c.
35720 * normal/auth.c (grub_iswordseparator): New function.
35722 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35724 Authentication support.
35726 * commands/password.c: New file.
35727 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35728 (password_mod_SOURCES): New variable.
35729 (password_mod_CFLAGS): Likewise.
35730 (password_mod_LDFLAGS): Likewise.
35731 (normal_mod_SOURCES): Add normal/auth.c.
35732 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35734 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35735 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35736 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35737 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35738 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35739 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35740 * include/grub/auth.h: New file.
35741 * include/grub/err.h (grub_err_t): New enum value
35742 GRUB_ERR_ACCESS_DENIED.
35743 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35745 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35746 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35748 * normal/auth.c: New file.
35749 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35750 (grub_cmdline_run): Don't allow to go to command line without
35752 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35753 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35754 menuentry without superuser rights.
35755 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35756 user isn't a superuser.
35758 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35760 Save space by inlining misc.c functions.
35762 * kern/misc.c (grub_iswordseparator): Made static.
35763 * kern/misc.c (grub_strcat): Moved from here ...
35764 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35765 * kern/misc.c (grub_strncat): Moved from here ...
35766 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35767 * kern/misc.c (grub_strcasecmp): Moved from here ...
35768 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35769 * kern/misc.c (grub_strncasecmp): Moved from here ...
35770 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35771 * kern/misc.c (grub_isalpha): Moved from here ...
35772 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35773 * kern/misc.c (grub_isdigit): Moved from here ...
35774 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35775 * kern/misc.c (grub_isgraph): Moved from here ...
35776 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35777 * kern/misc.c (grub_tolower): Moved from here ...
35778 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35780 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35782 * script/sh/function.c (grub_script_function_find): Cut error message
35783 not to flood terminal.
35784 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35786 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35788 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35790 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35791 `report' grub_uint8_t *.
35792 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35793 Use a 50-millisecond timeout rather than just repeating
35794 grub_usb_keyboard_getreport 50 times.
35795 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35797 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35799 Rename *_partition_map to part_*
35801 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35802 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35803 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35804 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35806 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35808 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35809 * util/grub-probe.c (probe_partmap): Don't transform partition name
35810 to get module name.
35812 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35814 Fix OpenBSD and NetBSD support.
35816 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35817 memory address conflict.
35818 (OPENBSD_MMAP_ACPI): New definition.
35819 (OPENBSD_MMAP_NVS): Likewise.
35820 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35821 and OPENBSD_MMAP_NVS.
35822 Add memory map terminator
35823 Explicit cast when calling grub_unix_real_boot.
35824 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35826 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35828 Let user specify NetBSD root device.
35830 * loader/i386/bsd.c (netbsd_root): New variable.
35831 (netbsd_opts): New option 'root'.
35832 (NETBSD_ROOT_ARG): New macro.
35833 (grub_netbsd_boot): Use 'netbsd_root'.
35834 (grub_bsd_unload): Free 'netbsd_root'.
35835 (grub_cmd_netbsd): Fill 'netbsd_root'.
35837 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35839 Support for 64-bit NetBSD.
35841 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35842 point when booting non-FreeBSD.
35844 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35846 Support --no-smp and --no-acpi for NetBSD.
35848 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35849 (NETBSD_AB_NOACPI): Likewise.
35850 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35851 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35853 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35855 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
35857 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
35858 errors. Call grub_error when needed.
35860 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35862 * commands/search.c (search_fs): Try searching without autoload first.
35863 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
35864 filesystem module explicitly for faster booting.
35866 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35868 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
35870 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35872 * util/grub.d/30_os-prober.in: Disable os-prober if
35873 `GRUB_DISABLE_OS_PROBER' was set to true.
35875 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
35877 * partmap/pc.c: Rename to ...
35878 * partmap/msdos.c: ... this. Update all users.
35879 (grub_pc_partition_map): Rename to ...
35880 (grub_msdos_partition_map): ... this. Update all users.
35882 * parttool/pcpart.c: Rename to ...
35883 * parttool/msdospart.c: ... this. Update all users.
35885 * include/grub/pc_partition.h: Rename to ...
35886 * include/grub/msdos_partition.h: ... this. Update all users.
35887 (grub_pc_partition_bsd_entry): Rename to ...
35888 (grub_msdos_partition_bsd_entry): ... this. Update all users.
35889 (grub_pc_partition_disk_label): Rename to ...
35890 (grub_msdos_partition_disk_label): ... this. Update all users.
35891 (grub_pc_partition_entry): Rename to ...
35892 (grub_msdos_partition_entry): ... this. Update all users.
35893 (grub_pc_partition_mbr): Rename to ...
35894 (grub_msdos_partition_mbr): ... this. Update all users.
35895 (grub_pc_partition): Rename to ...
35896 (grub_msdos_partition): ... this. Update all users.
35897 (grub_pc_partition_is_empty): Rename to ...
35898 (grub_msdos_partition_is_empty): ... this. Update all users.
35899 (grub_pc_partition_is_extended): Rename to ...
35900 (grub_msdos_partition_is_extended): ... this. Update all users.
35901 (grub_pc_partition_is_bsd): Rename to ...
35902 (grub_msdos_partition_is_bsd): ... this. Update all users.
35904 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
35905 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
35906 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
35907 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
35908 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
35909 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
35910 (gpt_mod_LDFLAGS): Rename to ...
35911 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
35912 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
35913 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
35914 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
35915 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
35916 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
35917 (part_gpt_mod_LDFLAGS): ... this.
35918 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
35919 `pcpart.mod' to `msdospart.mod'.
35920 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
35922 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
35923 (msdospart_mod_LDFLAGS): ... this.
35925 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35927 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
35928 (openbsd_opts): Likewise.
35929 (netbsd_opts): Likewise.
35930 (freebsd_flags): Added 0 terminator.
35931 (openbsd_flags): Likewise.
35932 (netbsd_flags): Likewise.
35933 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
35934 (grub_cmd_freebsd): Transformed into extended command.
35935 (grub_cmd_openbsd): Likewise.
35936 (grub_cmd_netbsd): Likewise.
35937 (cmd_freebsd): Changed type to grub_extcmd_t.
35938 (cmd_openbsd): Likewise.
35939 (cmd_netbsd): Likewise.
35940 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
35941 grub_cmd_openbsd as extended commands.
35942 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
35943 cmd_netbsd and cmd_openbsd
35945 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
35947 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
35949 2009-08-21 Pavel Roskin <proski@gnu.org>
35951 * Makefile.in (install-local): When checking if a file is in the
35952 build directory, use "test -e" to detect symlinks.
35954 * Makefile.in (install-local): Remove all files in
35955 $(DESTDIR)$(pkglibdir) before installing new files there.
35957 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35959 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
35962 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
35964 * util/grub-mkconfig.in: Don't use gfxterm by default if not
35965 explicitly specified by the user.
35967 2009-08-18 Pavel Roskin <proski@gnu.org>
35969 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
35970 grub_uint8_t pointer for data.
35971 * include/grub/fbutil.h (struct grub_video_fbblit_info):
35973 * video/fb/fbutil.c: Remove unnecessary casts.
35975 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35979 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
35980 (grub_vbe_set_video_mode): Save active mode info
35981 only after setting the mode.
35982 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
35985 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
35987 Rename variables for clarity.
35989 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
35990 (active_vbe_mode_info): ... this. All users updated.
35991 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
35993 (initial_mode): Rename to ...
35994 (initial_vbe_mode): ... this. All users updated.
35995 (mode_in_use): Rename to ..
35996 (vbe_mode_in_use): ... this. All users updated.
35997 (mode_list): Rename to ..
35998 (vbe_mode_list): ... this. All users updated.
35999 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36000 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36001 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36002 'mode_list_size' to 'vbe_mode_list_size'.
36003 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36004 'best_mode_info' to 'best_vbe_mode_info' and
36005 'best_mode' to 'best_vbe_mode'
36007 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36009 Remove duplicate grub_video_fb_get_video_ptr.
36011 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36012 (grub_video_fb_get_video_ptr): ... this.
36013 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36014 * video/fb/fbutil.c: Add comment about addressing.
36015 (get_data_ptr): Rename to ...
36016 (grub_video_fb_get_video_ptr): ... this. All users updated.
36017 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36019 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36021 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36022 grub_dprintf() that was just added.
36024 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36026 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36027 (DEFAULT_VIDEO_MODE): Remove macros.
36028 (grub_linux_boot): Remove assumption that Linux has FB support,
36029 and use "text" as default video mode.
36031 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36033 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36035 * fs/fat.c (grub_fat_read_data): Likewise.
36037 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36039 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36041 (grub_module): Likewise.
36043 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36045 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36046 mbi->cmdline but free playground.
36048 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36050 Handle group offset on UFS1.
36052 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36053 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36055 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36057 Split ufs.mod into ufs1.mod and ufs2.mod.
36059 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36060 (grub_fstest_SOURCES): Likewise.
36061 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36062 (ufs_mod_SOURCES): Remove.
36063 (ufs_mod_CFLAGS): Likewise.
36064 (ufs_mod_LDFLAGS): Likewise.
36065 (ufs1_mod_SOURCES): New variable.
36066 (ufs1_mod_CFLAGS): Likewise.
36067 (ufs1_mod_LDFLAGS): Likewise.
36068 (ufs2_mod_SOURCES): New variable.
36069 (ufs2_mod_CFLAGS): Likewise.
36070 (ufs2_mod_LDFLAGS): Likewise.
36071 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36072 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36074 (grub_emu_SOURCES): Likewise.
36075 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36076 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36077 (grub_setup_SOURCES): Likewise.
36078 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36079 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36080 (grub_setup_SOURCES): Likewise.
36081 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36083 * fs/ufs2.c: New file.
36084 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36086 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36090 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36091 subsystem at the end.
36092 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36093 (video_fb_mod_SOURCES): New variable.
36094 (video_fb_mod_CFLAGS): Likewise.
36095 (video_fb_mod_LDFLAGS): Likewise.
36096 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36097 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36098 * video/i386/pc/vbeblit.c: Moved from here ...
36099 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36100 * video/i386/pc/vbefill.c: Moved from here ...
36101 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36102 * video/i386/pc/vbeutil.c: Moved from here ...
36103 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36104 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36105 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36106 * include/grub/i386/pc/vbefill.h: Moved from here ...
36107 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36108 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36109 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36110 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36111 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36112 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36113 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36114 (grub_video_adapter): Added 'get_info_and_fini'.
36115 (grub_video_get_info_and_fini): New prototype.
36116 (grub_video_set_mode): make modestring const char *.
36117 * loader/i386/linux.c (grub_linux_setup_video): Use
36118 grub_video_get_info_and_fini.
36119 (grub_linux_boot): Move modesetting just before booting.
36120 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36121 grub_video_get_info_and_fini.
36122 * video/i386/pc/vbe.c: Moved framebuffer part ...
36123 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36124 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36125 grub_video_fbstd_colors and grub_video_fb_set_palette.
36126 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36127 grub_video_fb_init.
36128 (grub_video_vbe_fini): Use grub_video_fb_fini.
36129 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36130 render_target and use grub_video_fb_set_active_render_target and
36131 grub_video_fb_set_palette.
36132 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36133 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36134 (grub_video_vbe_adapter): Use framebuffer.
36135 * video/video.c (grub_video_get_info_and_fini): New function.
36136 (grub_video_set_mode): Make modestring const char *.
36137 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36138 values are already initialised.
36140 2009-08-14 Pavel Roskin <proski@gnu.org>
36142 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36144 * boot/i386/pc/diskboot.S: Likewise.
36145 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36146 sectors allow compilation on MacOSX.
36147 * conf/i386-pc.rmk: Enable unconditional compilation of
36150 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36152 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36153 * util/grub.d/00_header.in: Enter interruptible sleep if
36154 GRUB_HIDDEN_TIMEOUT is set.
36156 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36158 * include/grub/symbol.h: Add the LOCAL macro.
36159 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36160 starting with "L_".
36162 2009-08-13 Pavel Roskin <proski@gnu.org>
36164 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36165 any modern compilers we support.
36167 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36168 Use local labels starting with "L_" so that Apple assembler
36169 knows they are local.
36171 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36173 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36174 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36175 (bsd_kernel_types): ... this enum.
36177 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36178 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36179 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36181 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36182 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36183 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36186 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36188 * util/grub-dumpdevtree: Moved from here ...
36189 * util/i386/efi/grub-dumpdevtree: ... to here.
36190 (hexify): New function. Converts a string to its hex version.
36191 Generate hex versions of "efi" and "device-properties" by calling
36192 hexify() on the ASCII strings rather than by hardcoding numbers.
36194 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36196 * fs/jfs.c: Update copyright year.
36198 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36200 * util/grub.d/00_header.in: Fix a comment.
36201 * util/grub.d/10_linux.in: Likewise.
36202 * util/grub.d/10_windows.in: Likewise.
36203 * util/grub.d/10_hurd.in: Likewise.
36205 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36207 * util/grub-mkconfig.in: Allow the user to specify the used font
36210 2009-08-08 Pavel Roskin <proski@gnu.org>
36212 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36213 available, xfs.mod needs it now.
36215 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36216 the "g" modifier in sed when the intention is to strip something
36217 once. This fixes comparison of kernels with multiple dashes.
36219 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36220 on it. Add missing space before closing bracket. Fix
36221 misleading formatting.
36223 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36225 * docs/grub.texi: Major overhaul. Remove all sections that are
36226 specific to GRUB Legacy, or mostly composed of Legacy-specific
36229 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36231 * docs/version.texi: New file. Provides version information for
36234 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36236 * docs/grub.texi: Update CVS information to SVN.
36237 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36239 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36241 * util/grub-mkconfig.in: Remove a wrong `fi'.
36243 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36245 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36246 (grub_jfs_uuid): New function.
36247 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36249 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36251 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36253 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36254 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36256 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36258 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36259 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36262 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36263 not just "vmlinu[zx]".
36264 Moved from here ...
36265 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36268 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36269 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36272 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36274 * util/grub.d/10_freebsd.in: Use an absolute device path for
36275 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36277 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36279 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36280 handling of multiple abstraction modules.
36282 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36284 Fix a bug resulting in black screen when loading Linux using a
36287 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36290 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36291 (grub_vbe_bios_getset_dac_palette_width): New function.
36292 (grub_vbe_bios_get_dac_palette_width)
36293 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36294 grub_vbe_bios_getset_dac_palette_width()).
36296 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36297 check for return status.
36298 (grub_vbe_get_video_mode_info): When getting information for a packed
36299 mode (<= 8 bpp), obtain DAC palette width using
36300 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36301 {red,green,blue}_mark_size.
36303 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36305 * commands/search.c (options): Fix help output to match actual code.
36307 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36309 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36312 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36314 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36315 on XFS or ReiserFS.
36317 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36319 Support Apple partition map with sector size different from 512 bytes.
36321 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36322 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36323 and 'apart.partmap_size'.
36325 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36326 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36330 * commands/i386/cpuid.c (options): New variable.
36331 (grub_cmd_cpuid): Return real error.
36332 (GRUB_MOD_INIT(cpuid)): Declare options.
36334 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36336 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36339 2009-07-31 Bean <bean123ch@gmail.com>
36341 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36343 (grub_fshelp_node): Move inode field to the end.
36344 (grub_xfs_data): Remove inode field.
36345 (grub_xfs_inode_block): Calculate inode size using sblock.
36346 (grub_xfs_inode_offset): Likewise.
36347 (grub_xfs_read_inode): Calculate inode size using sblock.
36348 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36349 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36350 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36351 to match inode size.
36352 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36353 not accessible when data is null.
36354 (grub_xfs_open): Likewise.
36356 2009-07-31 Bean <bean123ch@gmail.com>
36358 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36359 Don't change pv->disk if it's already set.
36361 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36362 (grub_raid_register): ... here.
36363 (grub_raid_rescan): Removed.
36365 * include/grub/raid.h (grub_raid_rescan): Removed.
36367 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36368 (fstest): Replace grub_raid_rescan with module fini function followed
36371 * util/grub-probe.c: Add include file <grub/raid.h>.
36372 (probe_raid_level): New function.
36373 (probe): Detect abstraction by walking the disk device, support two
36374 level of abstraction (LVM on RAID) when detecting partition map.
36376 2009-07-31 Pavel Roskin <proski@gnu.org>
36378 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36379 to grub_zalloc(), it was erroneous.
36380 Reported by Bean <bean123ch@gmail.com>
36382 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36384 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36385 embedding zone, not only the first one.
36387 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36389 * term/gfxterm.c (clear_char): New function.
36390 (grub_virtual_screen_setup): Use clear_char.
36391 (scroll_up): Likewise.
36392 (grub_virtual_screen_cls): Likewise.
36394 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36396 * util/deviceiter.c (get_acceleraid_disk_name): New static
36398 (grub_util_iterate_devices): Handle Accelraid devices.
36399 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36401 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36403 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36404 separator for the suggested gfxpayload string (';' collides with the
36405 parser and needs escaping).
36407 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36409 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36410 Clear direction flag before jumping to OS.
36411 (grub_multiboot2_real_boot): Likewise.
36413 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36415 * util/i386/pc/grub-install: Fix parsing of --disk-module
36418 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36420 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36423 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36425 * util/grub-mkconfig.in (package_version): New variable.
36426 Use it do display the version.
36428 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36430 * kern/file.c (grub_file_open): Revert to previous check with
36433 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36435 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36436 from help line. It's out of sync with code.
36438 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36440 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36441 entries on failed boot.
36443 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36445 * kern/file.c (grub_file_open): Fix an error check.
36447 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36449 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36450 partition map couldn't be identified.
36452 2009-07-23 Pavel Roskin <proski@gnu.org>
36454 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36455 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36456 case of little endian words becomes just an optimization.
36457 Respect const modifier.
36458 (md5_final): Use code that doesn't depend on endianness.
36460 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36461 to avoid loss of upper bits if align is unsigned and shorter
36464 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36466 UUID support for UFS
36468 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36469 (grub_ufs_uuid): New function.
36470 (grub_ufs_fs): add .uuid
36472 2009-07-21 Pavel Roskin <proski@gnu.org>
36474 * kern/dl.c (grub_dl_check_header): Make static.
36476 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36478 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36479 add drivemap for Vista. It breaks Windows 7.
36481 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36483 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36486 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36490 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36491 (grub_fstest_SOURCES): Likewise.
36492 (pkglib_MODULES): Add befs.mod.
36493 (befs_mod_SOURCES): New variable.
36494 (befs_mod_CFLAGS): Likewise.
36495 (befs_mod_LDFLAGS): Likewise.
36496 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36497 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36498 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36499 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36500 (grub_setup_SOURCES): Likewise.
36501 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36502 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36503 (grub_setup_SOURCES): Likewise.
36504 * fs/befs.c: New file.
36505 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36506 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36507 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36508 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36509 (B_KEY_INDEX_ALIGN): New declaration.
36510 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36511 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36512 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36513 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36514 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36515 (grub_afs_mount) [MODE_BFS]: Likewise.
36516 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36517 (grub_afs_fs): Use GRUB_AFS_FSNAME
36518 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36519 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36520 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36521 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36523 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36525 * util/getroot.c (find_root_device): Add support for MacOSX.
36526 * util/hostdisk.c: Likewise.
36528 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36530 * font/font.c (find_glyph): Check whether a font is present to avoid
36531 segmentation fault.
36533 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36535 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36537 2009-07-20 Pavel Roskin <proski@gnu.org>
36539 * configure.ac: Trim excessively wordy excuses.
36541 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36543 Add symlink, mtime and label support to AtheFS.
36545 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36546 (grub_afs_iterate_dir): Handle symlinks.
36547 (grub_afs_open): Use grub_afs_read_symlink.
36548 (grub_afs_dir): Likewise.
36550 (grub_afs_label): New function.
36551 (grub_afs_fs): Add grub_afs_label.
36552 (grub_afs_read_symlink): New function.
36554 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36556 Fix AtheFS support.
36558 * fs/afs.c: Fix comments style.
36559 (grub_afs_blockrun): Declare as packed.
36560 (grub_afs_datastream): Likewise.
36561 (grub_afs_bnode): Likewise.
36562 (grub_afs_btree): Likewise.
36563 (grub_afs_sblock): Likewise.
36564 Declare `name' as char.
36565 (grub_afs_inode): Declare as packed.
36566 Change void *vnode to grub_uint32_t unused.
36567 (grub_afs_iterate_dir): Check that key_size is positive.
36568 (grub_afs_mount): Don't read superblock twice.
36569 (grub_afs_dir): Don't free node in case of error,
36570 grub_fshelp_find_file already handles this.
36571 (grub_afs_open): Likewise.
36573 2009-07-19 Pavel Roskin <proski@gnu.org>
36575 * Makefile.in: Remove LIBLZO and enable_lzo.
36576 * conf/i386-pc.rmk: Remove lzo support.
36577 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36578 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36580 * kern/i386/pc/lzo1x.S: Remove.
36581 * kern/i386/pc/startup.S: Remove lzo support.
36582 * util/i386/pc/grub-mkimage.c: Likewise.
36584 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36586 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36587 * fs/xfs.c (grub_xfs_dir): Likewise.
36588 * fs/afs.c (grub_afs_dir): Likewise.
36589 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36590 (grub_iso9660_open): Likewise.
36591 * fs/jfs.c (grub_jfs_open): Likewise.
36592 * fs/ext2.c (grub_ext2_dir): Likewise.
36593 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36594 * script/sh/lexer.c (grub_script_yylex): Likewise.
36596 2009-07-16 Pavel Roskin <proski@gnu.org>
36598 * configure.ac: Never add "-c" to CFLAGS.
36600 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36602 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36603 grub_cv_cc_efiemu should be used.
36605 * configure.ac: Typo fixes.
36607 * kern/mm.c (grub_zalloc): New function.
36608 (grub_debug_zalloc): Likewise.
36609 * include/grub/mm.h: Declare grub_zalloc() and
36610 grub_debug_zalloc().
36611 * util/misc.c (grub_zalloc): New function.
36612 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36613 instead of grub_malloc(), remove unneeded initializations.
36614 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36615 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36616 * commands/parttool.c (grub_cmd_parttool): Likewise.
36617 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36618 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36619 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36620 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36621 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36622 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36623 (grub_cmd_efiemu_pnvram): Likewise.
36624 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36625 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36626 (grub_iso9660_iterate_dir): Likewise.
36627 * fs/jfs.c (grub_jfs_opendir): Likewise.
36628 * fs/ntfs.c (list_file): Likewise.
36629 (grub_ntfs_mount): Likewise.
36630 * kern/disk.c (grub_disk_open): Likewise.
36631 * kern/dl.c (grub_dl_load_core): Likewise.
36632 * kern/elf.c (grub_elf_file): Likewise.
36633 * kern/env.c (grub_env_context_open): Likewise.
36634 (grub_env_set): Likewise.
36635 (grub_env_set_data_slot): Likewise.
36636 * kern/file.c (grub_file_open): Likewise.
36637 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36638 * loader/i386/multiboot.c (grub_module): Likewise.
36639 * loader/xnu.c (grub_xnu_create_key): Likewise.
36640 (grub_xnu_create_value): Likewise.
36641 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36642 (read_config_file): Likewise.
36643 * normal/menu_entry.c (make_screen): Likewise.
36644 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36645 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36646 * script/sh/script.c (grub_script_parse): Likewise.
36647 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36648 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36649 * video/readers/png.c (grub_png_output_byte): Likewise.
36650 (grub_video_reader_png): Likewise.
36652 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36654 Enable all targets that can be built by default
36656 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36657 grub-mkfont and grub-fstest if they can be built
36659 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36661 Fix hang and segmentation fault in grub-emu-usb
36663 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36664 * util/usb.c (grub_libusb_devices): likewise
36665 (grub_libusb_init): rename to ...
36666 (GRUB_MOD_INIT (libusb)):...this
36667 (grub_libusb_fini): rename to ..
36668 (GRUB_MOD_FINI (libusb)):...this
36669 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36670 * include/grub/disk.h (grub_raid_init): removed, it's useless
36671 (grub_raid_fini): likewise
36672 (grub_lvm_init): likewise
36673 (grub_lvm_fini): likewise
36674 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36677 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36681 * Makefile.in (LIBUSB): new macro
36682 * genmk.rb (Utility/print_tail): new method
36683 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36684 (top level): call util.print_tail at the end.
36686 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36688 Make FreeBSD accept zpool.cache
36690 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36691 type is /boot/zfs/zpool.cache
36693 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36697 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36698 correct wrong typedef
36699 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36701 2009-07-15 Pavel Roskin <proski@gnu.org>
36703 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36704 * kern/disk.c (struct grub_disk_cache): Likewise.
36706 * commands/probe.c (options): Typo fix.
36708 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36709 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36711 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36713 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36714 the end of "Error" to make the message more readable.
36716 * boot/i386/pc/boot.S (kernel_segment): Remove.
36717 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36720 * boot/i386/pc/boot.S (boot_version): Remove.
36721 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36724 * include/grub/i386/pc/boot.h: Sort all offsets.
36725 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36726 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36727 * boot/i386/pc/boot.S: Assert location of every offset listed in
36728 include/grub/i386/pc/boot.h.
36730 2009-07-13 Pavel Roskin <proski@gnu.org>
36732 * include/grub/i386/coreboot/machine.h: Rename
36733 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36734 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36735 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36737 * kern/dl.c: Force native word size to suppress warnings when
36738 compiling grub-emu.
36740 * kern/device.c (grub_device_iterate): Change struct part_ent to
36741 hold the name, not a pointer to it. Use one grub_malloc() per
36742 partition, not two. Free partition_name if grub_malloc() fails.
36743 Set ents to NULL only before grub_partition_iterate() is called.
36745 2009-07-11 Bean <bean123ch@gmail.com>
36747 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36750 2009-07-10 Bean <bean123ch@gmail.com>
36751 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36753 * kern/ieee1275/openfw.c (grub_children_iterate)
36754 (grub_devalias_iterate): Fix size evaluation for property or path
36755 strings, which was broken since r2132.
36757 2009-07-07 Pavel Roskin <proski@gnu.org>
36759 * commands/search.c (search_file): Merge into ...
36760 (search_fs): ... this. Accept search type as argument.
36761 (grub_cmd_search): Pass search type to search_fs().
36763 * include/grub/util/console.h: New file.
36764 * util/console.c: Use it instead of grub/machine/console.h.
36765 * util/grub-emu.c: Likewise.
36767 * lib/arg.c (find_long_option): Remove.
36768 (find_long): Add `len' argument, make `s' const char *.
36769 (grub_arg_parse): Parse long options in place, not in a
36772 2009-07-06 Pavel Roskin <proski@gnu.org>
36774 * commands/search.c (search_fs): Fix potential NULL pointer
36777 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36780 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36782 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36785 2009-07-05 Pavel Roskin <proski@gnu.org>
36787 * include/grub/i386/linux.h (struct linux_kernel_params):
36788 Restore padding3, it's still needed.
36790 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36792 * util/osdetect.lua: Likewise.
36794 2009-07-05 Bean <bean123ch@gmail.com>
36796 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36798 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36799 (grub_lua_getenv): Likewise.
36800 (grub_lua_setenv): Likewise.
36801 (save_errno): New function.
36802 (push_result): Likewise.
36803 (grub_lua_enum_device): Likewise.
36804 (grub_lua_enum_file): Likewise.
36805 (grub_lua_file_open): Likewise.
36806 (grub_lua_file_close): Likewise.
36807 (grub_lua_file_seek): Likewise.
36808 (grub_lua_file_read): Likewise.
36809 (grub_lua_file_getline): Likewise.
36810 (grub_lua_file_getsize): Likewise.
36811 (grub_lua_file_getpos): Likewise.
36812 (grub_lua_file_eof): Likewise.
36813 (grub_lua_file_exist): Likewise.
36814 (grub_lua_add_menu): Likewise.
36816 * script/lua/grub_lua.h (isupper): New inline function.
36817 (islower): Likewise.
36818 (ispunct): Likewise.
36819 (isxdigit): Likewise.
36820 (strcspn): Change to normal function.
36821 (strpbkr): New function declaration.
36822 (memchr): Likewise.
36824 * script/lua/grub_main.c (scan_str): New function.
36825 (strcspn): Likewise.
36826 (strpbrk): Likewise.
36827 (memchr): Likewise.
36829 * script/lua/linit.c (lualibs): Enable the string library.
36831 * util/osdetect.lua: New file.
36833 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36835 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36836 `capabilities' member.
36838 2009-07-02 Pavel Roskin <proski@gnu.org>
36840 * genparttoollist.sh: Add missing newline at the end.
36842 2009-07-01 Pavel Roskin <proski@gnu.org>
36844 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36846 * util/hostdisk.c (open_device): Remove `const' from
36847 `sysctl_size', as sysctlbyname() can change it (in this case it
36848 doesn't actually happen).
36850 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36851 using signed long int constants.
36853 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36854 constant to avoid a warning on FreeBSD.
36856 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
36859 * Makefile.in: Install include/grub/machine symlink.
36861 * Makefile.in: When installing symlinks, use "cp -fR", which
36862 works on FreeBSD and MacOSX.
36863 From Yves Blusseau <cl7m42e02@sneakemail.com>
36865 * kern/dl.c (grub_dl_resolve_symbol): Make static.
36866 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
36868 * util/misc.c: Move grub_reboot() and grub_halt() ...
36869 * util/grub-emu.c: ... here. Make main_env static.
36870 * include/grub/util/misc.h: Remove main_env.
36872 * kern/mm.c: Use correct format to print size_t.
36874 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
36875 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
36876 * kern/powerpc/dl.c: Likewise.
36877 * kern/sparc64/dl.c: Likewise.
36878 * kern/x86_64/dl.c: Likewise.
36880 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36882 Fix grub-emu build on sparc64-ieee1275.
36884 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
36885 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
36887 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36889 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
36890 (grub_reboot, grub_halt): New functions.
36892 * util/i386/pc/misc.c: Delete. Update all users.
36893 * util/sparc64/ieee1275/misc.c: Likewise.
36894 * util/powerpc/ieee1275/misc.c: Likewise.
36896 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36898 * conf/i386.rmk (setjmp_mod_SOURCES)
36899 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
36900 * conf/common.rmk (setjmp_mod_SOURCES)
36901 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
36902 to use $(target_cpu).
36903 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
36904 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
36905 * conf/powerpc-ieee1275.rmk: Likewise.
36906 * conf/sparc64-ieee1275.rmk: Likewise.
36908 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
36909 $(target_cpu) for kern/$(target_cpu)/dl.c.
36910 * conf/i386-efi.rmk: Likewise.
36911 * conf/i386-ieee1275.rmk: Likewise.
36912 * conf/x86_64-efi.rmk: Likewise.
36913 * conf/i386-coreboot.rmk: Likewise.
36914 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
36915 $(target_cpu) for kern/$(target_cpu)/dl.c and for
36916 kern/$(target_cpu)/cache.S.
36917 * conf/sparc64-ieee1275.rmk: Likewise.
36919 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36921 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
36922 type to `grub_uint8_t', and adjust `padding9' accordingly.
36924 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36926 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
36928 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
36929 assembly in final jump, using register constraints.
36931 (grub_linux_boot): For text mode, initialize `have_vga' using
36932 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
36934 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
36935 right before the final jump.
36937 Set `video_mode' to 0x3.
36939 Document initialization of `video_page', `video_mode' and
36942 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36944 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
36945 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
36946 and set GRUB_LINUX_FLAG_QUIET appropriately.
36948 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
36950 Fix build on Debian / sparc.
36952 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
36954 2009-06-28 Pavel Roskin <proski@gnu.org>
36956 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
36959 * util/grub.d/10_linux.in: Match SUSE style initrd names.
36961 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36963 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
36966 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36970 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
36971 file can't be opened. grub_file_open() is already supposed to set
36972 grub_errno / grub_errmsg appropriately.
36973 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
36975 2009-06-27 Pavel Roskin <proski@gnu.org>
36976 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
36978 * include/grub/dl.h: Include grub/elf.h.
36979 (struct grub_dl): Add symtab field.
36980 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
36981 GRUB_MODULES_MACHINE_READONLY.
36982 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
36983 of the header for read-only modules.
36984 (grub_dl_unload): Free mod->symtab for read-only modules.
36985 * kern/i386/dl.c: Use mod->symtab.
36986 * kern/powerpc/dl.c: Likewise.
36987 * kern/sparc64/dl.c: Likewise.
36988 * kern/x86_64/dl.c: Likewise.
36990 * conf/i386-qemu.rmk: New file.
36991 * kern/i386/qemu/startup.S: Likewise.
36992 * kern/i386/qemu/mmap.c: Likewise.
36993 * boot/i386/qemu/boot.S: Likewise.
36994 * include/grub/i386/qemu/time.h: Likewise.
36995 * include/grub/i386/qemu/serial.h: Likewise.
36996 * include/grub/i386/qemu/kernel.h: Likewise.
36997 * include/grub/i386/qemu/console.h: Likewise.
36998 * include/grub/i386/qemu/boot.h: Likewise.
36999 * include/grub/i386/qemu/init.h: Likewise.
37000 * include/grub/i386/qemu/machine.h: Likewise.
37001 * include/grub/i386/qemu/loader.h: Likewise.
37002 * include/grub/i386/qemu/memory.h: Likewise.
37004 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37005 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37006 [qemu] (pkglib_IMAGES): Add `boot.img'.
37007 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37008 [qemu] (boot_img_FORMAT): New variables.
37009 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37010 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37011 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37012 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37013 [qemu] (kernel_img_FORMAT): New variables.
37015 * configure.ac: Recognise `i386-qemu'.
37017 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37018 (for no compression).
37019 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37020 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37021 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37022 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37025 2009-06-27 Pavel Roskin <proski@gnu.org>
37027 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37029 * efiemu/prepare32.c: Likewise.
37030 * efiemu/prepare64.c: Likewise.
37032 2009-06-26 Pavel Roskin <proski@gnu.org>
37034 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37035 * include/grub/elf.h: Define symbols without "32" or "64" based
37036 on GRUB_TARGET_WORDSIZE.
37037 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37038 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37040 * efiemu/loadcore64.c: Likewise.
37041 * loader/i386/bsd32.c: Likewise.
37042 * loader/i386/bsd64.c: Likewise.
37043 * kern/dl.c: Remove own ELF definitions.
37044 * util/i386/efi/grub-mkimage.c: Likewise.
37046 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37048 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37049 segment 0x0 unconditionally, because the reference generated by
37050 GAS is an absolute address.
37052 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37054 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37055 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37057 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37059 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37060 indexes. Check for -f explicitly.
37061 (search_file): Improve error message.
37062 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37064 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37066 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37067 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37069 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37071 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37072 * conf/i386-ieee1275.rmk: Likewise.
37073 * conf/i386-coreboot.rmk: Likewise.
37075 * kern/i386/pc/startup.S (grub_stop): Remove function.
37076 * kern/i386/ieee1275/startup.S: Likewise.
37077 * kern/i386/coreboot/startup.S: Likewise.
37078 * kern/i386/misc.S (grub_stop): New function.
37080 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37082 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37083 * kern/i386/realmode.S (real_to_prot): ... to here.
37085 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37087 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37089 (kernel_elf_SOURCES): Rename to ...
37090 (kernel_img_SOURCES): ... this.
37091 (kernel_elf_HEADERS): Rename to ...
37092 (kernel_img_HEADERS): ... this. Update all users.
37093 (kernel_elf_ASFLAGS): Rename to ...
37094 (kernel_img_ASFLAGS): ... this.
37095 (kernel_elf_CFLAGS): Rename to ...
37096 (kernel_img_CFLAGS): ... this.
37097 (kernel_elf_LDFLAGS): Rename to ...
37098 (kernel_img_LDFLAGS): ... this.
37099 * conf/i386-coreboot.rmk: Likewise.
37100 * conf/powerpc-ieee1275.rmk: Likewise.
37102 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37105 2009-06-21 Pavel Roskin <proski@gnu.org>
37107 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37108 to match nested functions.
37109 * loader/sparc64/ieee1275/linux.c: Likewise.
37111 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37113 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37115 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37116 all i386 platforms.
37118 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37120 Fix asm file handling on ELF, and remove workarounds.
37122 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37123 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37124 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37125 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37127 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37129 Load BSD ELF modules
37131 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37132 and loader/i386/bsd64.c
37133 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37134 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37135 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37136 (grub_freebsd_load_elfmodule32): New declaration
37137 (grub_freebsd_load_elfmoduleobj64): Likewise
37138 (grub_freebsd_load_elf_meta32): Likewise
37139 (grub_freebsd_load_elf_meta64): Likewise
37140 (grub_freebsd_add_meta): Likewise
37141 (grub_freebsd_add_meta_module): Likewise
37142 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37143 (grub_freebsd_add_meta_module): Likewise and move module-specific
37144 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37145 (grub_cmd_freebsd): Add elf-kernel specific parts
37146 based on grub_freebsd_add_meta_module
37147 (grub_cmd_freebsd_module): Add type parsing moved from
37148 grub_freebsd_add_meta_module
37149 (grub_cmd_freebsd_module_elf): New function
37150 (cmd_freebsd_module_elf): New variable
37151 (GRUB_MOD_INIT): Register freebsd_module_elf
37152 * loader/i386/bsd32.c: New file
37153 * loader/i386/bsd64.c: Likewise
37154 * loader/i386/bsdXX.c: Likewise
37155 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37156 (grub_elf64_load): Likewise
37157 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37159 (grub_elf64_load_hook_t): Likewise
37161 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37163 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37165 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37166 don't write a menu entry for recovery mode.
37168 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37170 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37171 after it's no longer needed.
37173 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37175 * include/grub/i386/loader.h (grub_linux_prot_size)
37176 (grub_linux_tmp_addr, grub_linux_real_addr)
37177 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37178 GRUB_MACHINE_PCBIOS.
37179 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37180 common grub_util_info() call to ...
37181 (generate_image): ... here.
37182 Fix use of uninitialized memory, comparison of signed with
37183 unsigned integers and memory leak.
37184 Remove bogus module address message.
37186 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37188 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37190 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37192 2009-06-19 Pavel Roskin <proski@gnu.org>
37194 * configure.ac: Remove stray AC_MSG_CHECKING.
37196 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37198 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37200 2009-06-18 Pavel Roskin <proski@gnu.org>
37202 * conf/common.rmk: Add fs_file.mod.
37203 * disk/fs_file.c: New file.
37204 * include/grub/disk.h (enum grub_disk_dev_id): Add
37205 GRUB_DISK_DEVICE_FILE_ID.
37207 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37209 Fix build with Apple's toolchain. Part 2
37211 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37214 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37216 Fix build with Apple's toolchain. Part 1
37218 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37220 * configure.ac: remove a leftover AC_MSG_RESULT
37221 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37224 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37228 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37229 (decomp_block): initialize ch
37230 use grub_memcpy instead of memcpy
37232 2009-06-17 Pavel Roskin <proski@gnu.org>
37234 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37235 version, use declarations needed to use vga_text as the startup
37238 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37239 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37241 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37242 and grub_at_keyboard_fini(), it's done on module load and
37245 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37247 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37248 file can't be found.
37249 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37251 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37253 Fix newline handling
37255 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37256 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37257 (grub_script_yylex): don't segfault on unterminated script
37258 newline terminates command and variable
37260 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37262 avoid double grub_adjust_range call. Bug reported by David Simner
37264 * kern/disk.c (grub_disk_write): change to raw disk access before
37267 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37269 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37270 spaces, for the benefit of help2man.
37271 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37273 2009-06-16 Pavel Roskin <proski@gnu.org>
37275 * kern/i386/halt.c: Include grub/machine/init.h.
37276 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37278 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37280 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37281 drivemap menuentry.
37283 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37285 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37288 2009-06-16 Pavel Roskin <proski@gnu.org>
37290 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37291 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37292 save %dx, we only need %dl and we never change it.
37293 * boot/i386/pc/cdboot.S: Don't set the root drive.
37294 * boot/i386/pc/pxeboot.S: Likewise.
37295 * include/grub/i386/pc/boot.h: Remove
37296 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37297 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37298 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37299 * kern/i386/pc/init.c (make_install_device): Remove references
37300 to grub_root_drive.
37301 * kern/i386/pc/startup.S: Likewise.
37302 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37304 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37308 * commands/xnu_uuid.c: new file
37309 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37310 (xnu_uuid_mod_SOURCES): new variable
37311 (xnu_uuid_mod_CFLAGS): likewise
37312 (xnu_uuid_mod_LDFLAGS): likewise
37313 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37314 * conf/i386-ieee1275.rmk: likewise
37315 * conf/i386-pc.rmk: likewise
37316 * conf/powerpc-ieee1275.rmk: likewise
37317 * conf/sparc64-ieee1275.rmk: likewise
37318 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37320 2009-06-16 Pavel Roskin <proski@gnu.org>
37322 * configure.ac: Avoid '==' in test command, it's not portable.
37324 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37328 * commands/probe.c: new file
37329 * conf/common.rmk (pkglib_MODULES): add probe.mod
37330 (probe_mod_SOURCES): new variable
37331 (probe_mod_CFLAGS): likewise
37332 (probe_mod_LDFLAGS): likewise
37333 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37334 * conf/i386-ieee1275.rmk: likewise
37335 * conf/i386-pc.rmk: likewise
37336 * conf/powerpc-ieee1275.rmk: likewise
37337 * conf/sparc64-ieee1275.rmk: likewise
37339 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37341 Fix handling of string like \"hello\" and "a
37344 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37345 (grub_script_yylex): fix parsing of quoting, escaping and newline
37347 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37349 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37352 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37354 * util/grub-mkconfig.in: Fix parsing of --output option.
37356 2009-06-12 Pavel Roskin <proski@gnu.org>
37358 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37359 genmk.rb don't need to be generated or installed.
37361 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37363 * commands/i386/pc/drivemap_int13h.S: add more comments
37365 2009-06-11 Pavel Roskin <proski@gnu.org>
37367 * Makefile.in (uninstall): Uninstall manuals.
37369 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37370 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37371 and update-grub_lib in two places.
37372 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37374 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37375 a compiler warning.
37377 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37378 `entry_lo' to fix variable shadowing.
37380 2009-06-11 Christian Franke <franke@computer.org>
37382 * kern/misc.c (__enable_execute_stack): Add missing return type
37383 to prevent gcc warning.
37385 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37387 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37389 2009-06-11 Pavel Roskin <proski@gnu.org>
37391 * Makefile.in: Don't rely on any scripts being executable.
37392 Always use $(SHELL) to run shell scripts.
37394 * configure.ac: Always define ___main if using -nostdlib. This
37395 fixes tests on Cygwin.
37397 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37401 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37402 is in bytes and not in blocks
37404 2009-06-11 Pavel Roskin <proski@gnu.org>
37406 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37409 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37411 * util/grub.d/30_os-prober.in: Fix a comment. Source
37412 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37413 to set the root device. Place drivemap command in the generated
37416 2009-06-11 Pavel Roskin <proski@gnu.org>
37418 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37419 have long been resolved.
37421 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37423 * util/grub.d/10_linux.in: Capitalise "Linux".
37425 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37427 2009-06-11 Pavel Roskin <proski@gnu.org>
37429 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37430 fix a gcc warning and ensure that the function won't ever exit.
37432 * kern/i386/ieee1275/init.c: Add missing prototype for
37433 grub_stop_floppy().
37435 * loader/ieee1275/multiboot2.c [__i386__]: Include
37436 grub/cpu/multiboot.h.
37438 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37439 casts to short - they are not portable and cause warnings. Fix
37440 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37442 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37446 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37448 (grub_get_root_biosnumber_saved): new variable
37449 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37450 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37451 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37452 %dx after the call if necessary
37453 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37454 (boot_mod_SOURCES): remove
37455 (boot_mod_CFLAGS): remove
37456 (boot_mod_LDFLAGS): remove
37457 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37458 (boot_mod_SOURCES): new variable
37459 (boot_mod_CFLAGS): likewise
37460 (boot_mod_LDFLAGS): likewise
37461 * conf/i386-efi.rmk: likewise
37462 * conf/i386-ieee1275.rmk: likewise
37463 * conf/i386-pc.rmk: likewise
37464 * conf/powerpc-ieee1275.rmk: likewise
37465 * conf/sparc64-ieee1275.rmk: likewise
37466 * conf/x86_64-efi.rmk: likewise
37467 * include/grub/i386/pc/biosnum.h: new file
37468 * lib/i386/pc/biosnum.c: likewise
37469 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37470 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37471 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37473 2009-06-10 Pavel Roskin <proski@gnu.org>
37475 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37476 Use separate variables. Read only the file size at the end, but
37477 not the checksum that we don't use.
37479 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37480 Adjust all callers.
37482 * kern/ieee1275/openfw.c: Remove libc includes.
37483 * kern/ieee1275/cmain.c: Likewise.
37484 * include/grub/ieee1275/ieee1275.h: Likewise.
37486 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37489 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37491 * Makefile.in: Remove all trailing whitespace.
37492 * conf/i386-pc.rmk: Likewise.
37493 * conf/powerpc-ieee1275.rmk: Likewise.
37494 * conf/sparc64-ieee1275.rmk: Likewise.
37495 * docs/grub.texi: Likewise.
37496 * docs/texinfo.tex: Likewise.
37497 * disk/fs_uuid.c: Likewise.
37498 * disk/lvm.c: Likewise.
37499 * disk/scsi.c: Likewise.
37500 * disk/ata.c: Likewise.
37501 * disk/ieee1275/ofdisk.c: Likewise.
37502 * disk/i386/pc/biosdisk.c: Likewise.
37503 * disk/host.c: Likewise.
37504 * disk/raid.c: Likewise.
37505 * disk/efi/efidisk.c: Likewise.
37506 * disk/usbms.c: Likewise.
37507 * disk/memdisk.c: Likewise.
37508 * disk/loopback.c: Likewise.
37509 * kern/powerpc/dl.c: Likewise.
37510 * kern/device.c: Likewise.
37511 * kern/dl.c: Likewise.
37512 * kern/sparc64/dl.c: Likewise.
37513 * kern/ieee1275/ieee1275.c: Likewise.
37514 * kern/term.c: Likewise.
37515 * kern/fs.c: Likewise.
37516 * kern/i386/dl.c: Likewise.
37517 * kern/i386/pc/startup.S: Likewise.
37518 * kern/i386/pc/init.c: Likewise.
37519 * kern/i386/pc/mmap.c: Likewise.
37520 * kern/i386/pc/lzo1x.S: Likewise.
37521 * kern/i386/ieee1275/init.c: Likewise.
37522 * kern/i386/realmode.S: Likewise.
37523 * kern/i386/tsc.c: Likewise.
37524 * kern/partition.c: Likewise.
37525 * kern/corecmd.c: Likewise.
37526 * kern/file.c: Likewise.
37527 * kern/efi/efi.c: Likewise.
37528 * kern/efi/init.c: Likewise.
37529 * kern/efi/mm.c: Likewise.
37530 * kern/main.c: Likewise.
37531 * kern/err.c: Likewise.
37532 * kern/env.c: Likewise.
37533 * kern/disk.c: Likewise.
37534 * kern/generic/millisleep.c: Likewise.
37535 * kern/generic/rtc_get_time_ms.c: Likewise.
37536 * kern/misc.c: Likewise.
37537 * kern/parser.c: Likewise.
37538 * genmk.rb: Likewise.
37539 * configure.ac: Likewise.
37540 * boot/i386/pc/diskboot.S: Likewise.
37541 * boot/i386/pc/pxeboot.S: Likewise.
37542 * boot/i386/pc/boot.S: Likewise.
37543 * boot/i386/pc/lnxboot.S: Likewise.
37544 * boot/i386/pc/cdboot.S: Likewise.
37545 * parttool/pcpart.c: Likewise.
37546 * video/readers/tga.c: Likewise.
37547 * video/video.c: Likewise.
37548 * video/bitmap.c: Likewise.
37549 * lib/envblk.c: Likewise.
37550 * lib/i386/setjmp.S: Likewise.
37551 * fs/xfs.c: Likewise.
37552 * fs/afs.c: Likewise.
37553 * fs/fat.c: Likewise.
37554 * fs/ntfs.c: Likewise.
37555 * fs/udf.c: Likewise.
37556 * fs/affs.c: Likewise.
37557 * fs/iso9660.c: Likewise.
37558 * fs/hfs.c: Likewise.
37559 * fs/fshelp.c: Likewise.
37560 * fs/ext2.c: Likewise.
37561 * fs/jfs.c: Likewise.
37562 * fs/reiserfs.c: Likewise.
37563 * fs/hfsplus.c: Likewise.
37564 * fs/minix.c: Likewise.
37565 * fs/cpio.c: Likewise.
37566 * fs/sfs.c: Likewise.
37567 * fs/ufs.c: Likewise.
37568 * efiemu/prepare.c: Likewise.
37569 * efiemu/loadcore_common.c: Likewise.
37570 * efiemu/runtime/efiemu.sh: Likewise.
37571 * efiemu/runtime/efiemu.S: Likewise.
37572 * efiemu/runtime/efiemu.c: Likewise.
37573 * efiemu/pnvram.c: Likewise.
37574 * efiemu/main.c: Likewise.
37575 * efiemu/i386/pc/cfgtables.c: Likewise.
37576 * efiemu/i386/loadcore64.c: Likewise.
37577 * efiemu/i386/loadcore32.c: Likewise.
37578 * efiemu/loadcore.c: Likewise.
37579 * efiemu/symbols.c: Likewise.
37580 * efiemu/mm.c: Likewise.
37581 * include/grub/autoefi.h: Likewise.
37582 * include/grub/datetime.h: Likewise.
37583 * include/grub/term.h: Likewise.
37584 * include/grub/hfs.h: Likewise.
37585 * include/grub/lvm.h: Likewise.
37586 * include/grub/i386/tsc.h: Likewise.
37587 * include/grub/i386/linux.h: Likewise.
37588 * include/grub/i386/xnu.h: Likewise.
37589 * include/grub/i386/efiemu.h: Likewise.
37590 * include/grub/i386/pc/biosdisk.h: Likewise.
37591 * include/grub/i386/pc/memory.h: Likewise.
37592 * include/grub/i386/pc/vbe.h: Likewise.
37593 * include/grub/parttool.h: Likewise.
37594 * include/grub/video.h: Likewise.
37595 * include/grub/memory.h: Likewise.
37596 * include/grub/fs.h: Likewise.
37597 * include/grub/partition.h: Likewise.
37598 * include/grub/xnu.h: Likewise.
37599 * include/grub/efi/api.h: Likewise.
37600 * include/grub/efi/pe32.h: Likewise.
37601 * include/grub/efi/memory.h: Likewise.
37602 * include/grub/multiboot.h: Likewise.
37603 * include/grub/usbdesc.h: Likewise.
37604 * include/grub/multiboot2.h: Likewise.
37605 * include/grub/acpi.h: Likewise.
37606 * include/grub/efiemu/efiemu.h: Likewise.
37607 * include/grub/disk.h: Likewise.
37608 * include/grub/ieee1275/ieee1275.h: Likewise.
37609 * include/grub/net.h: Likewise.
37610 * include/grub/machoload.h: Likewise.
37611 * include/grub/macho.h: Likewise.
37612 * include/multiboot.h: Likewise.
37613 * genmoddep.awk: Likewise.
37614 * normal/main.c: Likewise.
37615 * normal/menu_entry.c: Likewise.
37616 * normal/menu_viewer.c: Likewise.
37617 * normal/completion.c: Likewise.
37618 * normal/cmdline.c: Likewise.
37619 * normal/misc.c: Likewise.
37620 * normal/datetime.c: Likewise.
37621 * bus/usb/usbtrans.c: Likewise.
37622 * bus/usb/ohci.c: Likewise.
37623 * bus/usb/uhci.c: Likewise.
37624 * bus/usb/usb.c: Likewise.
37625 * mmap/efi/mmap.c: Likewise.
37626 * mmap/i386/pc/mmap_helper.S: Likewise.
37627 * mmap/i386/pc/mmap.c: Likewise.
37628 * mmap/i386/mmap.c: Likewise.
37629 * mmap/i386/uppermem.c: Likewise.
37630 * mmap/mmap.c: Likewise.
37631 * commands/acpi.c: Likewise.
37632 * commands/echo.c: Likewise.
37633 * commands/blocklist.c: Likewise.
37634 * commands/loadenv.c: Likewise.
37635 * commands/usbtest.c: Likewise.
37636 * commands/boot.c: Likewise.
37637 * commands/parttool.c: Likewise.
37638 * commands/search.c: Likewise.
37639 * commands/cat.c: Likewise.
37640 * commands/i386/pc/play.c: Likewise.
37641 * commands/i386/pc/drivemap.c: Likewise.
37642 * commands/i386/pc/vbeinfo.c: Likewise.
37643 * commands/i386/pc/acpi.c: Likewise.
37644 * commands/i386/pc/vbetest.c: Likewise.
37645 * commands/ls.c: Likewise.
37646 * commands/cmp.c: Likewise.
37647 * commands/test.c: Likewise.
37648 * commands/efi/acpi.c: Likewise.
37649 * commands/gptsync.c: Likewise.
37650 * commands/help.c: Likewise.
37651 * partmap/amiga.c: Likewise.
37652 * partmap/apple.c: Likewise.
37653 * partmap/acorn.c: Likewise.
37654 * partmap/pc.c: Likewise.
37655 * partmap/sun.c: Likewise.
37656 * partmap/gpt.c: Likewise.
37657 * script/sh/lexer.c: Likewise.
37658 * script/sh/function.c: Likewise.
37659 * font/font.c: Likewise.
37660 * font/font_cmd.c: Likewise.
37661 * loader/powerpc/ieee1275/linux.c: Likewise.
37662 * loader/efi/chainloader.c: Likewise.
37663 * loader/multiboot_loader.c: Likewise.
37664 * loader/macho.c: Likewise.
37665 * loader/i386/multiboot.c: Likewise.
37666 * loader/i386/linux.c: Likewise.
37667 * loader/i386/pc/linux.c: Likewise.
37668 * loader/i386/pc/multiboot2.c: Likewise.
37669 * loader/i386/pc/chainloader.c: Likewise.
37670 * loader/i386/pc/xnu.c: Likewise.
37671 * loader/i386/bsd_trampoline.S: Likewise.
37672 * loader/i386/efi/linux.c: Likewise.
37673 * loader/i386/multiboot_elfxx.c: Likewise.
37674 * loader/i386/bsd_helper.S: Likewise.
37675 * loader/i386/bsd.c: Likewise.
37676 * loader/i386/linux_trampoline.S: Likewise.
37677 * loader/i386/xnu_helper.S: Likewise.
37678 * loader/i386/xnu.c: Likewise.
37679 * loader/i386/bsd_pagetable.c: Likewise.
37680 * loader/i386/multiboot_helper.S: Likewise.
37681 * loader/xnu.c: Likewise.
37682 * loader/xnu_resume.c: Likewise.
37683 * io/gzio.c: Likewise.
37684 * term/efi/console.c: Likewise.
37685 * term/terminfo.c: Likewise.
37686 * term/ieee1275/ofconsole.c: Likewise.
37687 * term/i386/pc/serial.c: Likewise.
37688 * term/i386/pc/vesafb.c: Likewise.
37689 * term/i386/pc/vga.c: Likewise.
37690 * term/usb_keyboard.c: Likewise.
37691 * term/gfxterm.c: Likewise.
37692 * aclocal.m4: Likewise.
37693 * util/lvm.c: Likewise.
37694 * util/grub.d/30_os-prober.in: Likewise.
37695 * util/grub.d/10_hurd.in: Likewise.
37696 * util/console.c: Likewise.
37697 * util/grub-macho2img.c: Likewise.
37698 * util/grub-probe.c: Likewise.
37699 * util/hostfs.c: Likewise.
37700 * util/i386/pc/grub-mkimage.c: Likewise.
37701 * util/i386/pc/grub-setup.c: Likewise.
37702 * util/i386/efi/grub-mkimage.c: Likewise.
37703 * util/grub-mkconfig.in: Likewise.
37704 * util/raid.c: Likewise.
37705 * util/resolve.c: Likewise.
37706 * util/grub-mkdevicemap.c: Likewise.
37707 * util/grub-emu.c: Likewise.
37708 * util/getroot.c: Likewise.
37709 * util/hostdisk.c: Likewise.
37710 * util/usb.c: Likewise.
37711 * util/grub-editenv.c: Likewise.
37712 * util/misc.c: Likewise.
37714 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37716 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37717 `genparttoollist.sh'.
37718 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37719 Add `*.sh' to the list find searches for and change `mdate.sh'
37722 2009-06-10 Pavel Roskin <proski@gnu.org>
37724 * include/grub/multiboot2.h: Provide compatibility defines for
37726 * include/multiboot2.h: Include stdint.h only if needed, using
37728 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37730 * loader/ieee1275/multiboot2.c: Likewise.
37731 * loader/multiboot2.c: Likewise.
37732 * loader/multiboot_loader.c: Likewise.
37734 * configure.ac: Use -nostdlib when probing for the target. It
37735 should not be required to have libc for the target.
37737 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37738 they fail without libc headers for the target.
37739 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37741 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37742 preprocessor conditionals.
37744 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37745 build system doesn't need to be aware of the tar.c internals.
37747 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37749 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37751 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37753 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37754 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37756 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37758 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37759 aren't available if ata.mod gets used.
37761 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37763 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37764 initialising controller.
37765 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37767 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37769 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37770 to choose between ata and biosdisk module on i386-pc.
37772 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37774 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37775 Subclass and Programming Interface fields in terms of the 3 byte
37776 Class Code register.
37777 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37779 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37780 interface is OHCI. Add grub_dprintf for symmetry with
37782 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37783 interface is UHCI. Add interf variable for programming
37784 interface. Print interface with class/subclass.
37786 * bus/usb/ohci.c: Set interf with correct field.
37788 * bus/usb/uhci.c: Remove unneeded doubled lines.
37789 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37790 Remove whitespace inside comment.
37792 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37794 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37795 as fallback an equivalent option without depth.
37797 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37799 Not fail if unable to retrieve C/H/S on LBA disks
37801 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37802 if unable to retrieve C/H/S on LBA disks
37804 2009-06-08 Pavel Roskin <proski@gnu.org>
37806 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37809 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37811 * Makefile.in (uninstall): Remove all $lib_DATA files.
37813 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37815 Bugfix: install on partitionless device
37817 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37820 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37822 * Makefile.in (uninstall): Remove all $include_DATA files.
37824 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37826 * commands/true.c: New file. Implement the true and false commands.
37827 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37828 (true_mod_SOURCES): New variable.
37829 (true_mod_CFLAGS): Likewise.
37830 (true_mod_LDFLAGS): Likewise.
37832 2009-06-05 Colin D Bennett <colin@gibibit.com>
37834 Optimized font character lookup using binary search instead of linear
37835 search. Fonts now are required to have the character index ordered by
37838 * font/font.c (load_font_index): Verify that fonts have ordered
37840 (find_glyph): Use binary search instead of linear search to find a
37841 character in a font.
37843 2009-06-05 Michael Scherer <misc@mandriva.org>
37845 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37846 uses case sensitive btree.
37847 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37848 only for case insensitive filesystems.
37850 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37852 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37853 * conf/common.rmk (search_mod_CFLAGS): likewise
37855 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37857 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
37858 compensate a compiler bug
37860 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37862 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
37865 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37867 Definitions for creating asm symbols with Apple's CC
37869 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
37870 [APPLE_CC] (VARIABLE): likewise
37872 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37874 Disable lnxboot.img when compiled
37877 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
37878 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
37879 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
37880 [! APPLE_CC] (CODE_LENG): skip
37881 [! APPLE_CC] (setup_sects): likewise
37882 [! APPLE_CC]: skip filling
37884 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37886 Address in trampolines based on 32-bit registers when compiled
37889 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
37891 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
37893 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37895 Avoid aliases when compiling with Apple's CC for PCBIOS machine
37897 * kern/misc.c [APPLE_CC] (memcpy): new function
37898 [APPLE_CC] (memmove): likewise
37899 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
37900 (memcpy): define alias conditionally on !APPLE_CC
37903 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
37904 APPLE_CC are defined
37905 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
37906 (grub_assert_fail): make prototype conditional
37908 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37910 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
37912 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
37914 (CLEANFILES): add grub-macho2img
37915 (grub_macho2img_SOURCES): new variable
37916 * kern/i386/pc/startup.S (bss_start): new variable
37917 (bss_end): likewise
37918 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
37919 * util/grub-macho2img.c: new file
37921 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37923 Use objconv when compiling with Apple's CC
37925 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
37926 (efiemu64.o): likewise
37927 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
37928 when compiling with Apple's CC
37929 (efiemu64_s.o): likewise
37930 * configure.ac: check for objconv when compiling with Apple's CC
37931 * genmk.rb: use objconv for modules when compiled with Apple's CC
37933 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37935 Define segment as well as section when compiling with
37938 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
37939 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
37940 (efiemu_convert_pointer): likewise
37941 (efiemu_set_virtual_address_map): likewise
37942 (efiemu_convert_pointer): likewise
37943 (efiemu_getcrc32): likewise
37944 (init_crc32_table): likewise
37945 (reflect): likewise
37946 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
37947 (GRUB_MOD_DEP): likewise
37949 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37951 Allow a compilation without -mcmodel=large
37953 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
37954 when compiled without -mcmodel=large
37955 (filter_memory_map): remove memory post 4 GiB when compiled
37956 without -mcmodel=large
37957 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
37958 TARGET_CFLAGS when -mcmodel=large isn't supported
37960 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37962 Remove nested functions in efiemu core
37964 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
37966 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37968 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
37970 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
37972 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
37974 (grub_cpu_is_tsc_supported): likewise
37975 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
37977 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37979 Absolute addressing through constant with Apple's cc
37981 * kern/i386/pc/startup.S: Define necessary constants
37982 and address through it when using ABS with Apple's CC
37983 * boot/i386/pc/diskboot.S: likewise
37984 * boot/i386/pc/boot.S: likewise
37985 * boot/i386/pc/lnxboot.S: likewise
37986 * boot/i386/pc/cdboot.S: likewise
37987 * mmap/i386/pc/mmap_helper.S: likewise
37988 * commands/i386/pc/drivemap_int13h.S: likewise
37990 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37992 Check if compiler is apple cc
37994 * Makefile.in (ASFLAGS): new variable
37995 (TARGET_ASFLAGS): likewise
37996 (TARGET_MODULE_FORMAT): likewise
37997 (TARGET_APPLE_CC): likewise
37998 (OBJCONV): likewise
37999 (TARGET_IMG_CFLAGS): likewise
38000 (TARGET_CPPFLAGS): add includedir
38001 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38002 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38003 Check for linker script only if compiler isn't Apple's CC
38004 (TARGET_MODULE_FORMAT): set
38005 (TARGET_APPLE_CC): likewise
38006 (TARGET_ASFLAGS): likewise
38007 (ASFLAGS): likewise
38008 Check for objcopy only if compiler isn't Apple's CC
38009 Check for BSS symbol only if compiler isn't Apple's CC
38010 * genmk.rb: adapt nm options if we use Apple's utils
38011 * aclocal.m4 (grub_apple_cc): new test
38012 (grub_apple_target_cc): likewise
38014 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38016 Simplify sed expressions and improve awk
38018 * Makefile.in (install-local): simplify sed expression
38019 * gencmdlist.sh: likewise
38020 * genmoddep.awk: avoid adding module as a dependency of itself
38022 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38024 Add missing start symbols
38026 * boot/i386/pc/boot.S: add start
38027 * boot/i386/pc/pxeboot.S: likewise
38029 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38031 Fix wrong assumptions with grub-mkimage on EFI
38033 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38034 (relocate_addresses): consider both r_addend and value at offset
38035 (make_mods_section): zerofill modinfo and header
38036 (convert_elf): write prefix here
38038 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38040 Use .asciz instead of .string
38042 * i386/pc/diskboot.S: use .asciz instead of .string
38043 * i386/pc/boot.S: likewise
38044 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38045 (GRUB_MOD_NAME): likewise
38047 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38051 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38052 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38053 (grub_video_setup): remove
38054 (grub_video_set_mode): new prototype
38055 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38057 (linux_vesafb_res): compile only on PCBIOS
38058 (grub_linux_boot): support gfxpayload
38059 * loader/i386/pc/xnu.c (video_hook): new function
38060 (grub_xnu_set_video): support gfxpayload
38061 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38062 (DEFAULT_VIDEO_HEIGHT): likewise
38063 (DEFAULT_VIDEO_FLAGS): likewise
38064 (DEFAULT_VIDEO_MODE): new definition
38065 (video_hook): new function
38066 (grub_gfxterm_init): use grub_video_set_mode
38067 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38069 * video/video.c (grub_video_setup): removed
38070 (grub_video_set_mode): new function based on grub_gfxterm_init and
38073 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38075 Avoid calling biosdisk in drivemap
38077 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38078 (revparse_biosdisk): likewise
38079 (list_mappings): derive name from id directly
38080 (grub_cmd_drivemap): use tryparse_diskstring
38082 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38086 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38087 (grub_lexer_param): add tokenonhold
38088 (grub_script_create_cmdline): remove cmdline. All callers updated
38089 (grub_script_function_create): make functionname
38090 grub_script_arg. All callers updated
38091 (grub_script_execute_argument_to_string): new prototype
38092 * kern/parser.c (state_transitions): reorder
38093 (grub_parser_cmdline_state): fix a bug and make more compact
38094 * script/sh/execute.c (grub_script_execute_argument_to_string):
38096 (grub_script_execute_cmdline): use new format
38097 * script/sh/function.c (grub_script_function_create): make functionname
38098 grub_script_arg. All callers updated
38099 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38100 (grub_script_yylex): remove
38101 (grub_script_yylex2): renamed to ...
38102 (grub_script_yylex): ...renamed
38103 parse the expressions like a${b}c
38104 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38105 (GRUB_PARSER_TOKEN_VAR): remove
38106 (GRUB_PARSER_TOKEN_NAME): likewise
38107 ("if"): declare as typeless
38108 ("while"): likewise
38109 ("function"): likewise
38114 (argument): likewise
38115 (script): accept empty scripts and make exit on error
38116 (arguments): use GRUB_PARSER_TOKEN_ARG
38117 (function): likewise
38118 (command): move error handling to script
38119 (menuentry): move grub_script_lexer_ref before
38120 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38121 argument. All callers updated
38123 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38125 Prevent GRUB from probing floppies during boot.
38127 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38128 * commands/search.c (options): Add --no-floppy.
38129 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38130 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38131 --no-floppy when searching for UUIDs.
38133 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38135 Simplify the code duplication in commands/search.c.
38137 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38138 (search_fs): ... this. Update all users.
38140 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38142 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38144 2009-05-28 Pavel Roskin <proski@gnu.org>
38146 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38147 Remove the original symlink explicitly.
38149 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38150 just one slash. That's how grub_fshelp_find_file() does it.
38152 2009-05-26 Pavel Roskin <proski@gnu.org>
38154 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38157 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38160 2009-05-25 Christian Franke <franke@computer.org>
38162 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38164 (grub_atapi_identify): Add wait after drive select.
38165 (grub_ata_identify): Do more strict status register check before
38166 calling grub_atapi_identify (). Suppress error message if status
38167 register is 0x00 after command failure. Add status register
38168 check after PIO read to avoid bogus identify due to stuck DRQ.
38169 Thanks to Pavel Roskin for testing.
38170 (grub_device_initialize): Remove unsafe status register check.
38171 Thanks to 'phcoder' for problem report and patch.
38172 Prevent sign extension in debug message.
38174 2009-05-23 Colin D Bennett <colin@gibibit.com>
38176 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38177 definition file, and functions defined in `normal/menu.c' have had
38178 their prototypes moved to `include/grub/menu.h' for consistency.
38180 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38182 (grub_menu_get_entry): Likewise.
38183 (grub_menu_get_timeout): Likewise.
38184 (grub_menu_set_timeout): Likewise.
38185 (grub_menu_execute_entry): Likewise.
38186 (grub_menu_execute_with_fallback): Likewise.
38187 (grub_menu_entry_run): Likewise.
38189 * include/grub/normal.h: Re-ordered and grouped function
38190 prototypes by file that the function is defined in.
38191 (grub_menu_execute_callback): Removed; moved to menu.h.
38192 (grub_menu_get_entry): Likewise.
38193 (grub_menu_get_timeout): Likewise.
38194 (grub_menu_set_timeout): Likewise.
38195 (grub_menu_execute_entry): Likewise.
38196 (grub_menu_execute_with_fallback): Likewise.
38197 (grub_menu_entry_run): Likewise.
38198 (grub_menu_addentry): Renamed from this ...
38199 (grub_normal_add_menu_entry): ... to this.
38201 * normal/main.c (grub_menu_addentry): Renamed from this ...
38202 (grub_normal_add_menu_entry): ... to this.
38204 * script/sh/execute.c (grub_script_execute_menuentry): Update
38205 reference to renamed grub_menu_addentry function.
38207 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38209 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38211 2009-05-22 Pavel Roskin <proski@gnu.org>
38213 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38214 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38215 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38216 compiling for the i386 targets, but not for the utilities.
38218 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38220 (grub_root_drive): Likewise.
38221 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38223 (grub_root_drive): Change size to byte.
38224 (grub_start_addr): Remove.
38225 (grub_end_addr): Likewise.
38226 (grub_apm_bios_info): Likewise.
38228 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38230 * normal/i386: Remove.
38231 * normal/powerpc: Likewise.
38232 * normal/sparc64: Likewise.
38233 * normal/x86_64: Likewise.
38235 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38237 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38238 * loader/i386/linux_trampoline.S: Fix indentation
38239 * loader/i386/xnu_helper.S: Likewise
38241 2009-05-18 Colin D Bennett <colin@gibibit.com>
38243 Display error messages when parsing a Lua statement fails.
38244 Previously, executing a syntactically invalid statement like
38245 ")foo" or "bar;" would silently fail.
38247 * script/lua/grub_main.c (handle_lua_error): New function.
38248 (grub_lua_parse_line): Improved reporting of Lua parser and
38251 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38253 Remove -Werror which causes build to fail on some systems
38255 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38256 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38257 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38259 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38261 trampoline for linux on 64-bit platform
38263 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38264 loader/i386/efi/linux_trampoline.S
38265 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38267 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38269 * loader/i386/linux_trampoline.S: moved here
38270 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38272 (jumpvector): removed
38273 (grub_linux_trampoline_start): new declaration
38274 (grub_linux_trampoline_end): likewise
38275 (grub_linux_boot): use trampoline when on 64-bit platform
38276 * loader/i386/linux.c: likewise
38278 2009-05-16 Pavel Roskin <proski@gnu.org>
38280 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38281 const to avoid a warning.
38282 (grub_lua_setenv): Likewise.
38283 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38284 lmsg to fix a warning.
38286 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38288 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38289 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38290 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38291 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38292 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38293 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38294 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38295 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38297 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38299 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38301 2009-05-16 Bean <bean123ch@gmail.com>
38303 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38304 (lua_mod_SOURCES): New variable.
38305 (lua_mod_CFLAGS): Likewise.
38306 (lua_mod_LDFLAGS): Likewise.
38308 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38309 (setjmp_mod_SOURCES): New variable.
38310 (setjmp_mod_CFLAGS): Likewise.
38311 (setjmp_LDFLAGS): Likewise.
38313 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38314 (setjmp_mod_SOURCES): New variable.
38315 (setjmp_mod_CFLAGS): Likewise.
38316 (setjmp_LDFLAGS): Likewise.
38318 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38319 (setjmp_mod_SOURCES): New variable.
38320 (setjmp_mod_CFLAGS): Likewise.
38321 (setjmp_LDFLAGS): Likewise.
38323 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38324 (setjmp_mod_SOURCES): New variable.
38325 (setjmp_mod_CFLAGS): Likewise.
38326 (setjmp_LDFLAGS): Likewise.
38328 * normal/i386/setjmp.S: Moved from here ...
38329 * lib/i386/setjmp.S: ... Moved here
38330 * normal/x86_64/setjmp.S: Moved from here ...
38331 * lib/x86_64/setjmp.S: ... Moved here
38332 * normal/powerpc/setjmp.S: Moved from here ...
38333 * lib/powerpc/setjmp.S: ... Moved here
38334 * normal/sparc64/setjmp.S: Moved from here ...
38335 * lib/sparc64/setjmp.S: ... Moved here
38337 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38338 returns_twice in mingw.
38340 * script/lua/grub_lib.c: New file.
38341 * script/lua/grub_lib.h: Likewise.
38342 * script/lua/grub_lua.h: Likewise.
38343 * script/lua/grub_main.c: Likewise.
38344 * script/lua/lapi.c: Likewise.
38345 * script/lua/lapi.h: Likewise.
38346 * script/lua/lauxlib.c: Likewise.
38347 * script/lua/lauxlib.h: Likewise.
38348 * script/lua/lbaselib.c: Likewise.
38349 * script/lua/lcode.c: Likewise.
38350 * script/lua/lcode.h: Likewise.
38351 * script/lua/ldblib.c: Likewise.
38352 * script/lua/ldebug.c: Likewise.
38353 * script/lua/ldebug.h: Likewise.
38354 * script/lua/ldo.c: Likewise.
38355 * script/lua/ldo.h: Likewise.
38356 * script/lua/ldump.c: Likewise.
38357 * script/lua/lfunc.c: Likewise.
38358 * script/lua/lfunc.h: Likewise.
38359 * script/lua/lgc.c: Likewise.
38360 * script/lua/lgc.h: Likewise.
38361 * script/lua/linit.c: Likewise.
38362 * script/lua/liolib.c: Likewise.
38363 * script/lua/llex.c: Likewise.
38364 * script/lua/llex.h: Likewise.
38365 * script/lua/llimits.h: Likewise.
38366 * script/lua/lmathlib.c: Likewise.
38367 * script/lua/lmem.c: Likewise.
38368 * script/lua/lmem.h: Likewise.
38369 * script/lua/loadlib.c: Likewise.
38370 * script/lua/lobject.c: Likewise.
38371 * script/lua/lobject.h: Likewise.
38372 * script/lua/lopcodes.c: Likewise.
38373 * script/lua/lopcodes.h: Likewise.
38374 * script/lua/loslib.c: Likewise.
38375 * script/lua/lparser.c: Likewise.
38376 * script/lua/lparser.h: Likewise.
38377 * script/lua/lstate.c: Likewise.
38378 * script/lua/lstate.h: Likewise.
38379 * script/lua/lstring.c: Likewise.
38380 * script/lua/lstring.h: Likewise.
38381 * script/lua/lstrlib.c: Likewise.
38382 * script/lua/ltable.c: Likewise.
38383 * script/lua/ltable.h: Likewise.
38384 * script/lua/ltablib.c: Likewise.
38385 * script/lua/ltm.c: Likewise.
38386 * script/lua/ltm.h: Likewise.
38387 * script/lua/lua.h: Likewise.
38388 * script/lua/luaconf.h: Likewise.
38389 * script/lua/lualib.h: Likewise.
38390 * script/lua/lundump.c: Likewise.
38391 * script/lua/lundump.h: Likewise.
38392 * script/lua/lvm.c: Likewise.
38393 * script/lua/lvm.h: Likewise.
38394 * script/lua/lzio.c: Likewise.
38395 * script/lua/lzio.h: Likewise.
38397 2009-05-16 Bean <bean123ch@gmail.com>
38399 * include/grub/kernel.h (grub_module_header_types): Add type
38402 * kern/main.c (grub_load_config): New function.
38403 (grub_main): Call grub_load_config to read boot config.
38405 * grub-mkimage (generate_image): New parameter config_path.
38406 (options): New option --config.
38407 (main): Parse --config option, and pass it to generate_image.
38409 2009-05-14 Christian Franke <franke@computer.org>
38411 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38412 This fixes build on Cygwin.
38414 2009-05-14 Pavel Roskin <proski@gnu.org>
38416 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38417 jump. This saves two bytes, so the typical case of 2 swapped
38418 drives would fit 32 bytes.
38420 2009-05-13 Pavel Roskin <proski@gnu.org>
38422 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38423 grub_uint32_t to avoid a warning.
38425 * loader/i386/linux.c (allocate_pages): When assigning
38426 real_mode_mem, cast through grub_size_t to fix a warning. The
38427 code already makes sure that the value would fit a pointer.
38428 (grub_linux_setup_video): Cast render_target->data to
38429 grub_size_t to fix a warning.
38431 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38433 * commands/i386/pc/drivemap.c: New file - implement drivemap
38435 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38436 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38438 2009-05-13 Pavel Roskin <proski@gnu.org>
38440 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38441 embedding_area_exists.
38443 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38445 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38446 it easier to understand / work with.
38447 Improve warning messages for cases where there's no embedding area,
38448 or when it is too small (or core.img too large).
38450 2009-05-13 Pavel Roskin <proski@gnu.org>
38452 * loader/i386/pc/multiboot2.c: Add necessary includes for
38453 grub_multiboot2_real_boot().
38455 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38456 PX record is always little-endian. We only need the lower 2
38459 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38460 facilitate code reuse.
38461 (grub_cpio_mount): Use "struct head", not a char buffer. This
38462 fixes a warning reported by gcc 4.4.
38464 * kernel/disk.c (grub_disk_read): Use void pointer for the
38466 (grub_disk_write): Use const void pointer for the buffer.
38467 Adjust all callers. Remove unnecessary casts.
38469 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38471 * util/i386/pc/grub-install.in: Update copyright year.
38473 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38477 * commands/gptsync.c: new file
38478 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38479 (gptsync_mod_SOURCES): new variable
38480 (gptsync_mod_CFLAGS): likewise
38481 (gptsync_mod_LDFLAGS): likewise
38482 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38484 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38485 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38486 * conf/i386-ieee1275.rmk: likewise
38487 * conf/i386-pc.rmk: likewise
38488 * conf/powerpc-ieee1275.rmk: likewise
38490 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38494 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38495 (grub_dl_ref): likewise
38497 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38499 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38500 split in two functions (one for msdos and one for gpt).
38502 2009-05-08 Pavel Roskin <proski@gnu.org>
38504 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38507 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38508 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38509 Initialize them with -1. Add sanity check for bad1. Eliminate
38512 2009-05-08 David S. Miller <davem@davemloft.net>
38514 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38516 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38518 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38521 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38523 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38524 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38526 2009-05-05 David S. Miller <davem@davemloft.net>
38528 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38530 2009-05-05 Pavel Roskin <proski@gnu.org>
38532 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38533 of grub_dl_ref() and grub_dl_unref().
38534 * commands/parttool.c: Remove preprocessor conditionals around
38535 grub_dl_ref() and grub_dl_unref().
38536 * fs/affs.c: Likewise.
38537 * fs/afs.c: Likewise.
38538 * fs/cpio.c: Likewise.
38539 * fs/ext2.c: Likewise.
38540 * fs/fat.c: Likewise.
38541 * fs/hfs.c: Likewise.
38542 * fs/hfsplus.c: Likewise.
38543 * fs/iso9660.c: Likewise.
38544 * fs/jfs.c: Likewise.
38545 * fs/minix.c: Likewise.
38546 * fs/ntfs.c: Likewise.
38547 * fs/reiserfs.c: Likewise.
38548 * fs/sfs.c: Likewise.
38549 * fs/udf.c: Likewise.
38550 * fs/ufs.c: Likewise.
38551 * fs/xfs.c: Likewise.
38552 * include/grub/dl.h: Likewise.
38553 * loader/xnu.c: Likewise.
38555 2009-05-04 Pavel Roskin <proski@gnu.org>
38557 * commands/acpi.c: Remove unused variable my_mod.
38558 * partmap/amiga.c: Likewise.
38559 * partmap/apple.c: Likewise.
38560 * partmap/gpt.c: Likewise.
38561 * partmap/pc.c: Likewise.
38562 * partmap/sun.c: Likewise.
38563 * term/gfxterm.c: Likewise.
38564 * term/i386/pc/vesafb.c: Likewise.
38565 * term/i386/pc/vga.c: Likewise.
38567 2009-05-04 David S. Miller <davem@davemloft.net>
38569 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38570 pointer args to grub_ieee1275_get_property().
38572 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38574 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38575 devices, and do not traverse down under controller nodes.
38577 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38578 (grub_ofdisk_open): Use it to un-escape "," characters.
38579 * kern/disk.c (find_part_sep): New.
38580 (grub_disk_open): Use it to find the first non-escaped ','
38581 character in the disk name.
38582 * util/ieee1275/devicemap.c (escape_of_path): New.
38583 (grub_util_emit_devicemap_entry): Use it.
38584 * util/sparc64/ieee1275/grub-install.in: Update script to
38585 strip partition specifiers properly by not triggering on
38586 '\' escaped ',' characters.
38588 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38590 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38592 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38594 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38595 on documentation from Wikipedia).
38597 2009-05-04 Pavel Roskin <proski@gnu.org>
38599 * disk/ata.c: Spelling fixes.
38600 * disk/raid.c: Likewise.
38601 * disk/usbms.c: Likewise.
38602 * disk/dmraid_nvidia.c: Likewise.
38603 * kern/ieee1275/openfw.c: Likewise.
38604 * kern/ieee1275/init.c: Likewise.
38605 * kern/ieee1275/cmain.c: Likewise.
38606 * boot/i386/pc/cdboot.S: Likewise.
38607 * video/readers/png.c: Likewise.
38608 * video/i386/pc/vbe.c: Likewise.
38609 * fs/udf.c: Likewise.
38610 * fs/hfs.c: Likewise.
38611 * fs/reiserfs.c: Likewise.
38612 * efiemu/runtime/efiemu.c: Likewise.
38613 * efiemu/main.c: Likewise.
38614 * efiemu/mm.c: Likewise.
38615 * include/grub/elf.h: Likewise.
38616 * include/grub/xnu.h: Likewise.
38617 * include/grub/usbdesc.h: Likewise.
38618 * include/grub/usb.h: Likewise.
38619 * include/grub/script_sh.h: Likewise.
38620 * include/grub/lib/LzmaEnc.h: Likewise.
38621 * include/grub/efiemu/efiemu.h: Likewise.
38622 * include/grub/command.h: Likewise.
38623 * normal/menu.c: Likewise.
38624 * normal/main.c: Likewise.
38625 * normal/datetime.c: Likewise.
38626 * bus/usb/uhci.c: Likewise.
38627 * mmap/i386/uppermem.c: Likewise.
38628 * mmap/mmap.c: Likewise.
38629 * commands/acpi.c: Likewise.
38630 * commands/test.c: Likewise.
38631 * partmap/apple.c: Likewise.
38632 * font/font.c: Likewise.
38633 * loader/sparc64/ieee1275/linux.c: Likewise.
38634 * loader/macho.c: Likewise.
38635 * loader/i386/bsd_trampoline.S: Likewise.
38636 * loader/i386/bsd.c: Likewise.
38637 * loader/xnu.c: Likewise.
38638 * term/i386/pc/vesafb.c: Likewise.
38639 * term/usb_keyboard.c: Likewise.
38640 * util/resolve.c: Likewise.
38641 * util/getroot.c: Likewise.
38643 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38645 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38647 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38649 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38652 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38654 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38655 parameter only available on BIOS.
38657 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38659 Removed wrong semicolon in declaration
38661 * grub/misc.h (grub_dprintf): remove semicolon
38663 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38665 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38666 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38667 is done by grub_cmd_linux() now).
38668 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38669 restore video to text mode.
38670 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38671 indicates lack of "vga=" parameter. "vga=0" is mapped to
38672 `GRUB_LINUX_VID_MODE_NORMAL'.
38674 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38676 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38677 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38678 and `normal/script.c'. Add `kern/rescue_reader.c',
38679 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38680 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38681 `grub_script.tab.c'.
38683 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38684 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38685 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38686 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38687 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38689 * Makefile.in: Remove duplicated 2008 in Copyright line.
38691 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38693 * util/misc.c (grub_util_warn): New function. Emits a warning
38695 * include/grub/util/misc.h (grub_util_warn): New declaration.
38697 * util/i386/pc/grub-install.in: Understand --force and pass it down
38700 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38702 (setup): Improve error messages and add warnings when requested to
38703 install in odd layouts. Refuse to install using blocklists unless
38706 2009-05-04 martin f. krafft <madduck@madduck.net>
38708 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38710 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38712 Updated copyright year
38714 * fs/hfsplus.c: updated copyright year
38716 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38720 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38721 in the space previously used by unused3
38722 (grub_hfsplus_uuid): new function
38723 (grub_hfsplus_fs): added uuid field
38725 2009-05-03 Pavel Roskin <proski@gnu.org>
38727 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38728 suppress warnings. It's no longer needed.
38729 * disk/host.c: Likewise.
38730 * disk/ata_pthru.c: Likewise.
38731 * disk/loopback.c: Likewise.
38732 * hook/datehook.c: Likewise.
38733 * parttool/pcpart.c: Likewise.
38734 * fs/i386/pc/pxe.c: Likewise.
38735 * fs/ntfscomp.c: Likewise.
38736 * efiemu/main.c: Likewise.
38737 * mmap/mmap.c: Likewise.
38738 * commands/crc.c: Likewise.
38739 * commands/hexdump.c: Likewise.
38740 * commands/hdparm.c: Likewise.
38741 * commands/acpi.c: Likewise.
38742 * commands/echo.c: Likewise.
38743 * commands/minicmd.c: Likewise.
38744 * commands/blocklist.c: Likewise.
38745 * commands/memrw.c: Likewise.
38746 * commands/loadenv.c: Likewise.
38747 * commands/usbtest.c: Likewise.
38748 * commands/lsmmap.c: Likewise.
38749 * commands/boot.c: Likewise.
38750 * commands/parttool.c: Likewise.
38751 * commands/configfile.c: Likewise.
38752 * commands/search.c: Likewise.
38753 * commands/ieee1275/suspend.c: Likewise.
38754 * commands/cat.c: Likewise.
38755 * commands/i386/pc/pxecmd.c: Likewise.
38756 * commands/i386/pc/play.c: Likewise.
38757 * commands/i386/pc/halt.c: Likewise.
38758 * commands/i386/pc/vbeinfo.c: Likewise.
38759 * commands/i386/pc/vbetest.c: Likewise.
38760 * commands/lspci.c: Likewise.
38761 * commands/date.c: Likewise.
38762 * commands/handler.c: Likewise.
38763 * commands/ls.c: Likewise.
38764 * commands/test.c: Likewise.
38765 * commands/cmp.c: Likewise.
38766 * commands/efi/loadbios.c: Likewise.
38767 * commands/efi/fixvideo.c: Likewise.
38768 * commands/halt.c: Likewise.
38769 * commands/help.c: Likewise.
38770 * commands/reboot.c: Likewise.
38771 * hello/hello.c: Likewise.
38772 * script/sh/main.c: Likewise.
38773 * loader/xnu.c: Likewise.
38774 * term/terminfo.c: Likewise.
38775 * term/i386/pc/serial.c: Likewise.
38776 * term/usb_keyboard.c: Likewise.
38778 2009-05-03 David S. Miller <davem@davemloft.net>
38780 * normal/menu.c: Include grub/parser.h
38782 2009-05-03 Pavel Roskin <proski@gnu.org>
38784 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38786 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38787 Suggested by Javier Martín <lordhabbit@gmail.com>
38789 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38790 efiemu??.o doesn't exist.
38791 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38794 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38796 FreeBSD 64-bit support
38798 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38799 and loader/i386/bsd_trampoline.S
38800 (bsd_mod_ASFLAGS): new variable
38801 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38802 (FREEBSD_MODTYPE_KERNEL64): likewise
38803 (grub_bsd64_trampoline_start): likewise
38804 (grub_bsd64_trampoline_end): likewise
38805 (grub_bsd64_trampoline_selfjump): likewise
38806 (grub_bsd64_trampoline_gdt): likewise
38807 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38808 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38809 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38810 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38811 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38813 * loader/i386/bsd_pagetable.c: new file
38814 * loader/i386/bsd_trampoline.S: likewise
38815 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38816 (ALIGN_VAR): likewise
38817 (entry_hi): new variable
38818 (kern_end_mdofs): likewise
38819 (is_64bit): likewise
38820 (grub_freebsd_add_meta): use ALIGN_VAR
38821 (grub_e820_mmap): new declaration
38822 (grub_freebsd_add_mmap): new function
38823 (grub_freebsd_add_meta_module): support 64 bit kernels
38824 (grub_freebsd_list_modules): use ALIGN_VAR
38825 (gdt_descriptor): new declaration
38826 (grub_freebsd_boot): support 64 bit kernels
38827 (grub_bsd_elf64_hook): new function
38828 (grub_bsd_load_elf): support elf64
38830 2009-05-03 Bean <bean123ch@gmail.com>
38832 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38833 after we get the result of if statement.
38835 2009-05-03 Bean <bean123ch@gmail.com>
38837 * Makefile.in (enable_efiemu): New variable.
38839 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38841 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38843 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38844 path, add -mno-red-zone option.
38845 (efiemu64_s.o): Likewise.
38846 (efiemu64.o): Use macro $^ for source file.
38848 * configure.ac (--enable-efiemu): New option.
38850 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38854 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38855 (pkglib_MODULES): add xnu.mod
38856 (xnu_mod_SOURCES): new variable
38857 (xnu_mod_CFLAGS): likewise
38858 (xnu_mod_LDFLAGS): likewise
38859 (xnu_mod_ASFLAGS): likewise
38860 * conf/i386-pc.rmk: likewise
38861 * conf/x86_64-efi.rmk: likewise
38862 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
38864 * include/grub/i386/macho.h: new file
38865 * include/grub/i386/xnu.h: likewise
38866 * include/grub/macho.h: likewise
38867 * include/grub/machoload.h: likewise
38868 * include/grub/x86_64/macho.h: likewise
38869 * include/grub/x86_64/xnu.h: likewise
38870 * include/grub/xnu.h: likewise
38871 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
38872 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
38873 * loader/i386/efi/xnu.c: new file
38874 * loader/i386/pc/xnu.c: likewise
38875 * loader/i386/xnu.c: likewise
38876 * loader/i386/xnu_helper.S: likewise
38877 * loader/macho.c: likewise
38878 * loader/xnu.c: likewise
38879 * loader/xnu_resume.c: likewise
38880 * util/grub-dumpdevtree: likewise
38881 * include/grub/i386/pit.h: include grub/err.h
38882 (grub_pit_wait): export
38883 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
38885 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38889 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
38890 _linux_efi, linux_efi.
38891 new files in grub-emu
38892 new targets efiemu32.o and efiemu64.o
38893 * loader/linux_normal_efiemu.c: likewise
38894 * loader/i386/efi/linux.c: added preliminary efiemu support
38895 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
38897 * include/grub/autoefi.h: new file
38898 * include/grub/i386/efiemu.h: likewise
38899 * include/grub/i386/pc/efiemu.h: likewise
38900 * include/grub/efi/api.h: add LL suffix when necessary
38901 new definitions relating to tables
38902 * include/grub/efiemu/efiemu.h: new file
38903 * include/grub/efiemu/runtime.h: likewise
38904 * efiemu/prepare.c: likewise
38905 * efiemu/loadcore_common.c: likewise
38906 * efiemu/loadcore64.c: likewise
38907 * efiemu/runtime/efiemu.sh: likewise
38908 * efiemu/runtime/efiemu.S: likewise
38909 * efiemu/runtime/efiemu.c: likewise
38910 * efiemu/runtime/config.h: likewise
38911 * efiemu/prepare32.c: likewise
38912 * efiemu/main.c: likewise
38913 * efiemu/modules/pnvram.c: likewise
38914 * efiemu/modules/i386: likewise
38915 * efiemu/modules/i386/pc: likewise
38916 * efiemu/modules/acpi.c: likewise
38917 * efiemu/i386/pc/cfgtables.c: likewise
38918 * efiemu/i386/loadcore64.c: likewise
38919 * efiemu/i386/loadcore32.c: likewise
38920 * efiemu/prepare64.c: likewise
38921 * efiemu/loadcore.c: likewise
38922 * efiemu/symbols.c: likewise
38923 * efiemu/mm.c: likewise
38924 * efiemu/loadcore32.c: likewise
38926 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38930 * commands/acpi.c: new file
38931 * commands/i386/pc/acpi.c: likewise
38932 * commands/efi/acpi.c: likewise
38933 * include/grub/acpi.h: likewise
38934 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
38935 (acpi_mod_SOURCES): new variable
38936 (acpi_mod_CFLAGS): likewise
38937 (acpi_mod_LDFLAGS): likewise
38938 * conf/i386-efi.rmk: likewise
38939 * conf/x86_64-efi.rmk: likewise
38941 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38943 Missing part from mmap patch
38945 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
38946 (grub_mmap_unregister)
38947 (grub_mmap_free_and_unregister): use grub_mmap_register
38949 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38953 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
38954 * loader/i386/linux.c (find_mmap_size): likewise
38955 (allocate_pages): likewise
38956 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
38957 (grub_fill_multiboot_mmap): likewise
38958 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
38959 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
38960 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
38961 (OPENBSD_MMAP_RESERVED): likewise
38962 * include/grub/i386/pc/memory.h: include grub/memory.h
38963 (grub_lower_mem): removed
38964 (grub_upper_mem): likewise
38965 (GRUB_MACHINE_MEMORY_ACPI): new definition
38966 (GRUB_MACHINE_MEMORY_NVS): likewise
38967 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
38968 (GRUB_MACHINE_MEMORY_HOLE): likewise
38969 (grub_machine_mmap_register): likewise
38970 (grub_machine_mmap_unregister): likewise
38971 (grub_machine_get_upper): likewise
38972 (grub_machine_get_lower): likewise
38973 (grub_machine_get_post64): likewise
38974 * include/grub/i386/efi/memory.h: new file
38975 * include/grub/x86_64/efi/memory.h: likewise
38976 * include/grub/efi/memory.h: likewise
38977 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
38978 (mmap_mod_SOURCES): new variable
38979 (mmap_mod_LDFLAGS): likewise
38980 (mmap_mod_ASFLAGS): likewise
38981 * conf/i386-coreboot.rmk: likewise
38982 * conf/i386-ieee1275.rmk: likewise
38983 * conf/i386-efi.rmk: likewise
38984 * conf/x86_64-efi.rmk: likewise
38985 * include/grub/types.h (UINT_TO_PTR): new macro
38986 (PTR_TO_UINT32): likewise
38987 (PTR_TO_UINT64): likewise
38988 * include/grub/memory.h: new file
38989 * mmap/i386/pc/mmap.c: likewise
38990 * mmap/i386/pc/mmap_helper.S: likewise
38991 * mmap/i386/uppermem.c: likewise
38992 * mmap/mmap.c: likewise
38993 * mmap/efi/mmap.c: likewise
38994 * kern/i386/coreboot/init.c (grub_machine_init): don't use
38996 * kern/i386/pc/init.c (grub_lower_mem): removed variable
38997 (grub_upper_mem): likewise
38998 (grub_machine_init): don't use grub_upper_mem,
38999 make grub_lower_mem local
39000 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39001 grub_mmap_iterate and grub_mmap_get_upper
39002 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39004 2009-05-02 Bean <bean123ch@gmail.com>
39006 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39007 script/sh/parser.y.
39008 (pkglib_MODULES): Add normal.mod and sh.mod.
39009 (normal_SOURCES): New variable.
39010 (normal_mod_CFLAGS): Likewise.
39011 (normal_mod_LDFLAGS): Likewise.
39012 (sh_mod_SOURCES): Likewise.
39013 (sh_mod_CFLAGS): Likewise.
39014 (sh_mod_LDFLAGS): Likewise.
39016 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39017 script/sh/lexer.c_DEPENDENCIES.
39018 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39019 kern/rescue_reader.c and kern/rescue_parser.c.
39020 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39021 (grub_emu_SOURCES): Change source files.
39022 (pkglib_MODULES): Remove normal.mod.
39023 (normal_SOURCES): Removed.
39024 (normal_mod_CFLAGS): Likewise.
39025 (normal_mod_LDFLAGS): Likewise.
39026 * conf/i386-coreboot.rmk: Likewise.
39027 * conf/i386-efi.rmk: Likewise.
39028 * conf/i386-ieee1276.rmk: Likewise.
39029 * conf/powerpc-ieee1275.rmk: Likewise.
39030 * conf/sparc64-ieee1275.rmk: Likewise.
39031 * conf/x86_64-efi.rmk: Likewise.
39033 * include/grub/command.h (grub_command_execute): New inline function.
39035 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39037 * include/grub/normal.h: Remove <grub/setjmp.h>.
39038 (grub_fs_module_list): Moved to normal/autofs.c.
39039 (grub_exit_env): Removed.
39040 (grub_command_execute): Likewise.
39041 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39043 (read_command_list): New function declaration.
39044 (read_fs_list): Likewise.
39046 * include/parser.h: Include <grub/reader.h>.
39047 (grub_parser_split_cmdline): Change type of getline parameter.
39048 (grub_parser): New structure.
39049 (grub_parser_class): New variable.
39050 (grub_parser_execute): New function declaration.
39051 (grub_register_rescue_parser): Likewise.
39052 (grub_parser_register): New inline function.
39053 (grub_parser_unregister): Likewise.
39054 (grub_parser_get_current): Likewise.
39055 (grub_parser_set_current): Likewise.
39057 * include/grub/reader.h: New file.
39058 * kern/reader.c: Likewise.
39059 * kern/rescue_parser.c: Likewise.
39060 * kern/rescue_reader.c: Likewise.
39061 * normal/autofs.c: Likewise.
39062 * normal/dyncmd.c: Likewise.
39064 * include/grub/rescue.h: Removed.
39065 * normal/command.h: Likewise.
39067 * include/grub/script.h: Moved to ...
39068 * include/grub/script_sh.h: ... Moved here.
39069 * normal/execute.c: Moved to ...
39070 * script/sh/execute.c: ... Moved here.
39071 * normal/function.c: Moved to ...
39072 * script/sh/function.c: ... Moved here.
39073 * normal/lexer.c: Moved to ...
39074 * script/sh/lexer.c: ... Moved here.
39075 * normal/parser.y: Moved to ...
39076 * script/sh/parser.y: ... Moved here.
39077 * normal/script.c: Moved to ...
39078 * script/sh/script.c: ... Moved here.
39080 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39082 (grub_exit_env): Removed.
39083 (fs_module_list): Moved to normal/autofs.c.
39084 (grub_file_getline): Don't handle comment here.
39085 (free_menu): Skip removed field entry->commands.
39086 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39088 (read_config_file): Removed nested parameter, change getline function.
39089 (grub_enter_normal_mode): Removed.
39090 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39091 (read_command_list): Likewise.
39092 (autoload_fs_module): Moved to normal/autofs.c.
39093 (read_fs_list): Likewise.
39094 (reader_nested): New variable.
39095 (grub_normal_execute): Run parser.sh to switch to sh parser.
39096 (grub_cmd_rescue): Removed.
39097 (cmd_normal): Removed.
39098 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39100 (grub_cmdline_run): New function.
39101 (grub_normal_reader_init): Likewise.
39102 (grub_normal_read_line): Likewise.
39103 (grub_env_write_pager): Likewise.
39104 (cmdline): New variable.
39105 (grub_normal_reader): Likewise.
39106 (GRUB_MOD_INIT): Register normal reader and set as current, register
39107 pager hook, register normal command with grub_register_command_prio,
39108 so that it won't show up in command.lst.
39109 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39110 grub_fs_autoload_hook.
39112 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39113 (grub_menu_execute_entry): Replace grub_script_execute with
39114 grub_parser_execute, change parameter to grub_command_execute.
39116 * normal/menu_text.c: Remove <grub/script.h>.
39118 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39119 and <grub/parser.h>.
39120 (run): Change editor_getline to use new parser interface. Change
39121 parameter to grub_command_execute.
39123 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39124 <grub/reader.h> and <grub/parser.h>.
39125 (grub_load_normal_mode): Execute normal command.
39126 (grub_main): Call grub_register_core_commands,
39127 grub_register_rescue_parser and grub_register_rescue_reader, use
39128 grub_reader_loop to enter input loop.
39130 * kern/parser.c (grub_parser_split_cmdline): Change type of
39132 (grub_parser_class): New variable.
39133 (grub_parser_execute): New function.
39135 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39136 * loader/multiboot2.c: Likewise.
39137 * loader/sparc64/ieee1275/linux.c: Likewise.
39139 * util/grub-emu.c (read_command_list): New dummy function.
39141 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39143 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39144 count to 16 for CCISS and IDA.
39146 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39148 * normal/menu_text.c (grub_wait_after_message): Print a newline
39149 after waiting for user input.
39151 * loader/i386/linux.c: Include `<grub/normal.h>'.
39152 (grub_cmd_linux): Improve the error message about `ask' mode, by
39153 waiting for user input so it's not missed (we can do this, since
39154 user requested interaction).
39156 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39158 Added missing lst to grub-mkrescue
39160 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39161 and ${input_dir}/parttool.lst
39163 2009-04-30 David S. Miller <davem@davemloft.net>
39165 * util/hostdisk.c (device_is_wholedisk): New function.
39166 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39167 zero only if device_is_wholedisk() returns true.
39169 * util/hostdisk.c (convert_system_partition_to_system_disk):
39170 Handle virtual disk devices named /dev/vdiskX as found on sparc
39173 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39174 lettered partition specifier is found, convert to numbered.
39176 2009-04-29 David S. Miller <davem@davemloft.net>
39178 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39179 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39181 * normal/command.c: Add missing newline at end of file.
39183 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39185 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39186 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39187 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39188 ihandles have a 32-bit type but need to be stored in a "void *".
39190 2009-04-28 Pavel Roskin <proski@gnu.org>
39192 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39193 not disk. Adjust all dependencies.
39194 (grub_fs_uuid_close): Use grub_device_close(), not
39197 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39198 parent's partition, don't copy it by reference, as it gets freed
39201 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39203 Preboot hooks support
39205 * commands/boot.c (struct grub_preboot_t): new declaration
39206 (preboots_head): new variable
39207 (preboots_tail): likewise
39208 (grub_loader_register_preboot_hook): new function
39209 (grub_loader_unregister_preboot_hook): likewise
39210 (grub_loader_set): launch preboot hooks
39211 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39212 (grub_loader_register_preboot_hook): new declaration
39213 (grub_loader_unregister_preboot_hook): likewise
39215 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39219 * disk/scsi.c (grub_scsi_open): added missing cast when
39220 calling grub_dprintf
39222 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39224 Bug and warning fixes
39226 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39228 * commands/test.c (test_parse): fixed bug with file tests and corrected
39229 declaration of find_file
39231 2009-04-26 Pavel Roskin <proski@gnu.org>
39233 * Makefile.in: Don't install empty manual pages if help2man is
39234 missing. Use help2man option for output, not shell redirection.
39236 2009-04-26 David S. Miller <davem@davemloft.net>
39238 * util/grub-mkdevicemap.c (make_device_map): Add missing
39239 NESTED_FUNC_ATTR to process_device().
39241 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39245 * commands/test.c: rewritten to use bash-like test
39247 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39249 Parttool autoloading and improvements
39251 * Makefile.in (pkglib_DATA): add parttool.lst
39252 (parttool.lst): new target
39253 * genmk.rb: generate parttool-*
39254 (CLEANFILES): add #{parttool}
39255 (PARTTOOLFILES): new variable
39256 * genparttoollist.sh: new file
39257 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39258 (grub_pcpart_type): likewise
39259 * commands/parttool.c (helpmsg): new variable
39260 (grub_cmd_parttool): output help if not enough arguments are supplied
39262 (GRUB_MOD_INIT(parttool)): use helpmsg
39264 2009-04-24 David S. Miller <davem@davemloft.net>
39266 Avoiding opening same device multiple times in device iterator.
39268 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39269 and use it to build a list of partitions in iterate_disk() and
39270 iterate_partition().
39272 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39275 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39276 grub_devalias_iterate() result instead of unconditional 0.
39277 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39278 Also, capture hook return value, either directly or via
39279 grub_children_iterate(), and propagate to caller.
39280 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39281 grub_children_iterate): Return value is now 'int' instead of
39283 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39284 like a proper iterator, stopping when hooks return non-zero.
39285 (grub_devalias_iterate): Likewise.
39287 2009-04-23 David S. Miller <davem@davemloft.net>
39289 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39291 2009-04-22 David S. Miller <davem@davemloft.net>
39293 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39294 is larger than address_cells, use that value for address_cells too.
39296 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39297 IEEE1275_MAX_PATH_LEN): Define.
39298 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39299 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39300 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39301 'devtype'. Explicitly NULL terminate devalias expansion.
39303 * util/sparc64/ieee1275/misc.c: New file.
39304 * util/sparc64/ieee1275/grub-setup.c: New file.
39305 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39306 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39307 * util/sparc64/ieee1275/grub-install.in: New file.
39308 * util/ieee1275/ofpath.c: New file.
39309 * util/ieee1275/devicemap.c: New file.
39310 * util/devicemap.c: New file.
39311 * util/deviceiter.c: New file.
39312 * kern/sparc64/ieee1275/init.c: New file.
39313 * include/grub/util/ofpath.h: New file.
39314 * include/grub/util/deviceiter.h: New file.
39315 * util/grub-mkdevicemap.c: Include deviceiter.h.
39316 Implement using grub_util_emit_devicemap_entry and
39317 grub_util_iterate_devices.
39318 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39319 util/devicemap.c into grub-mkdevicemap
39320 * conf/i386-efi.rmk: Likewise.
39321 * conf/i386-ieee1275.rmk: Likewise.
39322 * conf/i386-pc.rmk: Likewise.
39323 * conf/powerpc-ieee1275.rmk: Likewise.
39324 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39325 images and installation utilities. Build kernel as image
39326 instead of as elf binary. Use common rules as much as possible.
39328 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39330 Correct GPT definition
39332 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39335 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39337 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39339 2009-04-19 David S. Miller <davem@davemloft.net>
39341 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39342 (grub_rescue_cmd_linux): Rename to...
39343 (grub_cmd_linux): and fix prototype.
39344 (grub_rescue_cmd_initrd): Rename to...
39345 (grub_cmd_initrd): and fix prototype.
39346 (cmd_linux, cmd_initrd): New.
39347 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39348 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39350 2009-04-17 Pavel Roskin <proski@gnu.org>
39352 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39354 (grub_ohci_transfer): Likewise.
39356 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39358 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39359 return without a value. Fix inconsistent indentation.
39361 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39362 match struct grub_fs.
39364 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39365 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39366 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39367 * commands/lspci.c (grub_lspci_iter): Likewise.
39369 2009-04-16 Bean <bean123ch@gmail.com>
39371 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39374 2009-04-15 Pavel Roskin <proski@gnu.org>
39376 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39377 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39378 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39381 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39383 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39384 that no multiple data or metadata areas are supported and `Unknown
39387 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39389 Move loader out of the kernel
39391 * kern/loader.c: moved to ...
39392 * commands/boot.c: ... moved here
39393 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39394 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39395 * include/grub/kernel.h (grub_machine_fini): export
39396 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39397 (grub_loader_set): likewise
39398 (grub_loader_unset): likewise
39399 (grub_loader_boot): likewise
39400 * conf/common.rmk: new module boot.mod
39401 (pkglib_MODULES): add boot.mod
39402 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39403 (grub_emu_SOURCES): likewise
39404 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39405 (grub_emu_SOURCES): likewise
39406 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39407 (grub_emu_SOURCES): likewise
39408 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39409 (grub_emu_SOURCES): likewise
39410 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39411 (grub_emu_SOURCES): likewise
39412 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39413 (grub_emu_SOURCES): likewise
39414 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39415 (grub_emu_SOURCES): likewise
39417 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39419 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39421 * kern/misc.c (grub_itoa): Removed function
39422 (grub_ltoa): likewise
39423 (grub_vsprintf): use grub_lltoa
39425 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39429 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39430 * conf/i386-coreboot.rmk: likewise
39431 * conf/i386-ieee1275.rmk: likewise
39432 * conf/powerpc-ieee1275.rmk: likewise
39434 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39436 * INSTALL: Add that `./autogen.sh' needs to be run before
39439 2009-04-14 Bean <bean123ch@gmail.com>
39441 * Makefile.in (pkglib_DATA): Add handler.lst.
39442 (handler.lst): New rule.
39444 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39445 * conf/i386-coreboot.rmk: Likewise.
39446 * conf/i386-ieee1275.rmk: Likewise.
39447 * conf/i386-efi.rmk: Likewise.
39448 * conf/x86_64-efi.rmk: Likewise.
39449 * conf/powerpc-ieee1275.rmk: Likewise.
39450 * conf/sparc64-ieee1275.rmk: Likewise.
39452 * genhandlerlist.sh: New file.
39454 * genmk.rb: Add rules to generate handler.lst.
39456 * include/grub/normal.h (grub_file_getline): New function definition.
39457 (read_handler_list): Likewise.
39458 (free_handler_list): Likewise.
39460 * include/grub/term.h (grub_term_register_input): Add name parameter
39461 for auto generation of handler.lst.
39462 (grub_term_register_output): Likewise.
39464 * normal/handler.c: New file.
39466 * normal/main.c (get_line): Renamed to grub_file_getline.
39467 (read_config_file): Use the newly renamed grub_file_getline.
39468 (read_command_list): Likewise.
39469 (read_fs_list): Likewise.
39470 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39471 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39473 * term/efi/console.c (grub_console_init): Add name parameter for auto
39474 generation of handler.lst.
39475 * term/gfxterm.c: Likewise.
39476 * term/i386/pc/at_keyboard.c: Likewise.
39477 * term/i386/pc/console.c: Likewise.
39478 * term/i386/pc/serial.c: Likewise.
39479 * term/i386/pc/vesafb.c: Likewise.
39480 * term/i386/pc/vga.c: Likewise.
39481 * term/i386/pc/vga_text.c: Likewise.
39482 * term/ieee1275/ofconsole.c: Likewise.
39483 * term/usb_keyboard.c: Likewise.
39485 2009-04-14 Bean <bean123ch@gmail.com>
39487 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39488 properly with null character.
39490 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39492 * configure: Remove.
39493 * config.h.in: Likewise.
39494 * stamp-h.in: Likewise.
39495 * DISTLIST: Likewise.
39496 * conf/common.mk: Likewise.
39497 * conf/i386-coreboot.mk: Likewise.
39498 * conf/i386-efi.mk: Likewise.
39499 * conf/i386-ieee1275.mk: Likewise.
39500 * conf/i386.mk: Likewise.
39501 * conf/i386-pc.mk: Likewise.
39502 * conf/powerpc-ieee1275.mk: Likewise.
39503 * conf/sparc64-ieee1275.mk: Likewise.
39504 * conf/x86_64-efi.mk: Likewise.
39506 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39509 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39510 David S. Miller <davem@davemloft.net>
39512 * util/hostdisk.c (make_device_name): Fix buffer length
39515 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39517 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39518 <sys/param.h> and <sys/sysctl.h>.
39519 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39520 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39521 opening the device and reset them afterwards.
39523 2009-04-13 Pavel Roskin <proski@gnu.org>
39525 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39526 Reported by John Stanley <jpsinthemix@verizon.net>
39528 2009-04-13 Robert Millan <rmh@aybabtu.com>
39530 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39531 that name for menuentries when appropriate.
39533 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39535 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39537 2009-04-13 Robert Millan <rmh@aybabtu.com>
39539 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39540 to Linux, simply abort telling the user it's no longer supported.
39542 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39544 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39545 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39546 `freebsd_loadenv' only when devices.hints exist.
39548 2009-04-13 Pavel Roskin <proski@gnu.org>
39550 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39552 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39554 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39556 (grub_drive): Likewise.
39558 2009-04-13 David S. Miller <davem@davemloft.net>
39560 * kern/sparc64/ieee1275/ieee1275.c: New file.
39561 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39562 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39563 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39564 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39565 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39566 grub_ieee1275_alloc_physmem): Declare new exported functions.
39568 * include/grub/sparc64/ieee1275/loader.h: New file.
39569 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39570 * include/grub/sparc64/kernel.h: Likewise.
39571 * loader/sparc64/ieee1275/linux.c: Likewise.
39573 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39574 (grub_fstest_SOURCES): Likewise.
39576 * util/hostdisk.c (make_device_name): Do not make any assumptions
39577 about the length of drive names.
39579 * kern/dl.c (grub_dl_load_file): Close file immediately when
39580 we are done using it.
39582 2009-04-12 David S. Miller <davem@davemloft.net>
39584 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39585 values. Noticed by Pavel Roskin.
39587 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39590 * genmk.rb: Add more flexible image type specification, also
39591 pass --strip-unneeded to objcopy.
39592 * conf/i386-pc.rmk: Use *_FORMAT.
39593 * conf/i386-pc.mk: Rebuilt.
39595 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39596 (OFDISK_HASH_SZ): Define.
39597 (ofdisk_hash): New hash table.
39598 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39599 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39600 instead of device phandle which is not unique.
39602 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39603 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39604 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39605 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39606 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39607 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39608 GRUB_KERNEL_MACHINE_DATA_END): Define.
39609 (grub_kernel_image_size, grub_total_module_size): Declare.
39611 2009-04-12 Pavel Roskin <proski@gnu.org>
39613 * configure.ac: Change the logic when we check for target tools.
39614 Do it when the target is specified and it's different from the
39615 specified value of the host.
39617 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39619 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39620 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39621 GNU/kFreeBSD. Check if a device is a character device. Use
39622 DIOCGMEDIASIZE to get the size.
39623 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39624 support for GNU/kFreeBSD.
39625 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39626 is a character device instead of a block device. Add support for
39627 FreeBSD device names.
39629 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39630 is a character device instead of a block device.
39632 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39633 is a character device instead of a block device.
39635 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39637 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39638 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39639 FreeBSD. Check if a device is a character device. Use
39640 DIOCGMEDIASIZE to get the size.
39641 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39642 support for FreeBSD.
39643 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39644 is a character device instead of a block device. Add support for
39645 FreeBSD device names.
39647 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39648 a character device instead of a block device.
39649 (grub_util_check_char_device): New function.
39651 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39652 a character device instead of a block device.
39654 * include/grub/util/getroot.h (grub_util_check_char_device): New
39657 2009-04-11 David S. Miller <davem@davemloft.net>
39659 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39661 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39662 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39663 function, if present.
39664 (__bswapdi2): Likewise.
39666 * include/grub/sparc64/ieee1275/boot.h: New file.
39667 * boot/sparc64/ieee1275/boot.S: Likewise.
39668 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39670 * kern/misc.c (grub_ltoa): New function.
39671 (grub_vsprintf): Use it to format 'long' integers.
39673 2009-04-10 David S. Miller <davem@davemloft.net>
39675 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39676 slots are of type grub_ieee1275_cell_t.
39677 (grub_nand_read): Likewise.
39678 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39679 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39680 macros are used to compare values in arg/ret block of the call.
39681 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39682 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39683 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39684 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39685 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39686 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39687 grub_ieee1275_close, grub_ieee1275_set_property,
39688 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39689 grub_ieee1275_cell_t.
39690 * kern/ieee1275/openfw.c (grub_map): Likewise.
39691 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39692 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39694 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39695 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39696 (grub_devalias_iterate): Likewise.
39698 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39702 * fs/ufs.c (INODE_NBLOCKS): new definition
39703 (struct grub_ufs_dirent): added fields for non-BSD dirents
39704 (grub_ufs_get_file_block): fixed double indirect handling
39705 (grub_ufs_lookup_symlink): use more robust way to determine whether
39707 (grub_ufs_find_file): support for non-BSD dirents
39708 (grub_ufs_dir): support for non-BSD dirents
39710 2009-04-10 Bean <bean123ch@gnail.com>
39712 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39713 attribute, otherwise the size would be wrong for i386 platform.
39715 * include/grub/pci.h (grub_pci_read_word): New inline function.
39716 (grub_pci_read_byte): Likewise.
39717 (grub_pci_write): Likewise.
39718 (grub_pci_write_word): Likewise.
39719 (grub_pci_write_byte): Likewise.
39721 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39723 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39724 (find_framebuf): Scan pci to locate the frame buffer address.
39726 * commands/efi/fixvideo.c: New file.
39728 * commands/efi/loadbios.c: Likewise.
39730 * commands/memrw.c: Likewise.
39732 * util/grub-dumpbios.in: Likewise.
39734 * conf/common.rmk (grub-dumpbios): New utility.
39735 (pkglib_MODULES): New module memrw.mod.
39736 (memrw_mod_SOURCE): New macro.
39737 (memrw_mod_CFLAGS): Likewise.
39738 (memrw_mod_LDFLAGS): Likewise.
39740 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39742 (loadbios_mod_SOURCE): New macro.
39743 (loadbios_mod_CFLAGS): Likewise.
39744 (loadbios_mod_LDFLAGS): Likewise.
39745 (fixvideo_mod_SOURCE): Likewise.
39746 (fixvideo_mod_CFLAGS): Likewise.
39747 (fixvideo_mod_LDFLAGS): Likewise.
39749 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39751 (loadbios_mod_SOURCE): New macro.
39752 (loadbios_mod_CFLAGS): Likewise.
39753 (loadbios_mod_LDFLAGS): Likewise.
39754 (fixvideo_mod_SOURCE): Likewise.
39755 (fixvideo_mod_CFLAGS): Likewise.
39756 (fixvideo_mod_LDFLAGS): Likewise.
39758 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39760 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39762 2009-04-07 David S. Miller <davem@davemloft.net>
39764 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39765 support for R_SPARC_OLO10 relocations. Fix compile warning for
39766 R_SPARC_WDISP30 case.
39767 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39769 2009-04-06 Pavel Roskin <proski@gnu.org>
39771 * include/grub/misc.h (ARRAY_SIZE): New macro.
39772 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39774 * loader/i386/linux.c (allocate_pages): Use free_pages().
39775 (grub_linux_unload): Don't use free_pages().
39776 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39777 wrong index. Treat all other modes as text modes.
39778 (grub_cmd_linux): Initialize vid_mode unconditionally to
39779 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39781 * commands/help.c (print_command_help): Use cmd->prio, not
39782 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39784 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39788 * parttool/pcpart.c: new file
39789 * commands/parttool.c: likewise
39790 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39791 (parttool_mod_SOURCES): new variable
39792 (parttool_mod_CFLAGS): likewise
39793 (parttool_mod_LDFLAGS): likewise
39794 (pcpart_mod_SOURCES): likewise
39795 (pcpart_mod_CFLAGS): likewise
39796 (pcpart_mod_LDFLAGS): likewise
39797 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39798 and parttool/pcpart.c
39799 * conf/i386-efi.rmk: likewise
39800 * conf/i386-ieee1275.rmk: likewise
39801 * conf/i386-pc.rmk: likewise
39802 * conf/powerpc-ieee1275.rmk: likewise
39803 * conf/sparc64-ieee1275.rmk: likewise
39804 * conf/x86_64-ieee1275.rmk: likewise
39806 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39808 Support for mtime and further expandability of dir command
39810 * include/grub/lib/datetime.h: moved to ...
39811 * include/grub/datetime.h: ... moved here and added
39812 declaration of grub_unixtime2datetime. All users updated
39813 * include/grub/fs.h: new syntax for dir and mtime functions in
39815 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39816 and GRUB_FSHELP_FLAGS_MASK
39817 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39818 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39819 (grub_ext2_mtime): new function
39820 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39821 (grub_hfsplus_mtime): new function
39822 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39823 (GRUB_UFS_ATTR_FILE): likewise
39824 (GRUB_UFS_ATTR_LNK): likewise
39825 (struct grub_ufs_sblock): new fields mtime
39826 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39828 (grub_ufs_dir): mtime support
39829 (grub_ufs_mtime): new function
39830 * fs/affs.c (grub_affs_dir): use new dir syntax
39831 * fs/afs.c (grub_afs_dir): likewise
39832 * fs/cpio.c (grub_cpio_dir): likewise
39833 * fs/fat.c (grub_fat_find_dir): likewise
39834 * fs/hfs.c (grub_hfs_dir): likewise
39835 * fs/iso9660.c (grub_iso9660_dir): likewise
39836 * fs/jfs.c (grub_jfs_dir): likewise
39837 * fs/minix.c (grub_minix_dir): likewise
39838 * fs/ntfs.c (grub_ntfs_dir): likewise
39839 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39840 * fs/sfs.c (grub_sfs_dir): likewise
39841 * fs/xfs.c (grub_xfs_dir): likewise
39842 * util/hostfs.c (grub_hostfs_dir): likewise
39843 * lib/datetime.c: moved to ...
39844 * normal/datetime.c: ... moved here
39845 (grub_unixtime2datetime): new function
39846 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
39847 * normal/completion.c (iterate_dir): use new dir syntax
39848 * normal/misc.c (grub_normal_print_device_info): tell the
39849 last modification time of a volume
39850 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
39851 * conf/common.rmk: added lib/datetime.c to ls.mod
39852 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
39853 (normal_mod_SOURCES): likewise
39854 (datetime_mod_SOURCES): Removed lib/datetime.c
39855 * conf/i386-efi.rmk: likewise
39856 * conf/i386-ieee1275.rmk: likewise
39857 * conf/i386-pc.rmk: likewise
39858 * conf/powerpc-ieee1275.rmk: likewise
39859 * conf/sparc64-ieee1275.rmk: likewise
39860 * conf/x86_64-efi.rmk: likewise
39862 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39864 Trim trailing spaces in FAT label and support mtools-like labels
39866 * fs/fat.c (grub_fat_iterate_dir): New function based
39867 on grub_fat_find_dir
39868 (grub_fat_find_dir): use grub_fat_iterate_dir
39869 (grub_fat_label): likewise
39871 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
39873 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
39875 remove extraneous kernel_elf_HEADERS
39877 2009-04-04 Bean <bean123ch@gnail.com>
39879 * include/grub/util/misc.h: Add dummy function fsync for mingw.
39881 * util/misc.c: Likewise.
39883 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39885 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
39886 instead of grub_printf.
39888 2009-04-03 Robert Millan <rmh@aybabtu.com>
39890 * loader/i386/linux.c (grub_linux_setup_video): Fill
39891 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
39892 values from `mode info' structure instead of hardcoded
39895 2009-04-01 Pavel Roskin <proski@gnu.org>
39897 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
39899 * genmk.rb: Likewise.
39900 * configure.ac: Likewise.
39902 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
39904 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
39905 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
39907 2009-04-01 David S. Miller <davem@davemloft.net>
39909 * normal/sparc64/setjmp.S: Fix setjmp implementation.
39910 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
39911 (grub_setjmp): Mark with 'returns_twice' attribute.
39912 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
39913 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
39914 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
39916 2009-04-01 Robert Millan <rmh@aybabtu.com>
39918 Reapply fix from 2008-07-28 which was accidentally reverted; also
39919 perform the same fix to a similar check in same function.
39921 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
39922 with the same number are found, just use issue a warning with
39923 grub_dprintf(), as this error has been reported to be non-fatal.
39925 2009-03-31 Pavel Roskin <proski@gnu.org>
39927 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
39928 for cross-compilation.
39930 2009-03-30 Robert Millan <rmh@aybabtu.com>
39932 Fix i386-ieee1275 build.
39934 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
39935 Remove declaration.
39937 2009-03-30 Pavel Roskin <proski@gnu.org>
39939 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
39940 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
39941 zero-terminated, rely only on the strlen value. Fix comparison
39942 of strings differing in length.
39944 2009-03-30 Robert Millan <rmh@aybabtu.com>
39946 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
39947 checking for abi version. Improve error messages on BIOS to notify
39948 user about `linux16' command.
39950 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
39954 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
39955 in case of collision
39956 * disk/scsi.c (grub_scsi_open): free scsi in case of error
39958 2009-03-29 Robert Millan <rmh@aybabtu.com>
39960 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
39961 set `vid_mode' accordingly.
39962 (grub_linux_boot): Process `vid_mode' and set video mode.
39964 2009-03-29 Robert Millan <rmh@aybabtu.com>
39966 * util/grub.d/10_linux.in (linux_entry): New function.
39967 Factorize generation of Linux boot entries.
39969 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
39971 Make the format of Environment Block plain text. The boot loader
39972 part is not tested well yet.
39974 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
39976 (envblk): Likewise.
39977 (usage): Remove "info" and "clear". Add "unset". Update the
39978 description of "set", as this does not delete variables any
39980 (create_envblk_file): Complete rewrite.
39981 (open_envblk_file): Likewise.
39982 (cmd_info): Removed.
39983 (cmd_list): Likewise.
39984 (cmd_set): Likewise.
39985 (cmd_clear): Likewise.
39986 (list_variables): New function.
39987 (write_envblk): Likewise.
39988 (set_variables): Likewise.
39989 (unset_variables): Likewise.
39990 (main): Complete rewrite.
39992 * commands/loadenv.c (buffer): Removed.
39993 (envblk): Likewise.
39994 (open_envblk_file): New function.
39995 (read_envblk_file): Complete rewrite.
39996 (grub_cmd_load_env): Likewise.
39997 (grub_cmd_list_env): Likewise.
39998 (struct blocklist): New struct.
39999 (free_blocklists): New function.
40000 (check_blocklists): Likewise.
40001 (write_blocklists): Likewise.
40002 (grub_cmd_save_env): Complete rewrite.
40004 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40005 a plain text signature.
40006 (GRUB_ENVBLK_MAXLEN): Removed.
40007 (struct grub_envblk): Complete rewrite.
40008 (grub_envblk_find): Removed.
40009 (grub_envblk_insert): Likewise.
40010 (grub_envblk_open): New prototype.
40011 (grub_envblk_set): Likewise.
40012 (grub_envblk_delete): Put const to VALUE.
40013 (grub_envblk_iterate): Put const to NAME and VALUE.
40014 (grub_envblk_close): New prototype.
40015 (grub_envblk_buffer): New inline function.
40016 (grub_envblk_size): Likewise.
40018 * lib/envblk.c: Include grub/mm.h.
40019 (grub_env_find): Removed.
40020 (grub_envblk_open): New function.
40021 (grub_envblk_close): Likewise.
40022 (escaped_value_len): Likewise.
40023 (find_next_line): Likewise.
40024 (grub_envblk_insert): Removed.
40025 (grub_envblk_set): New function.
40026 (grub_envblk_delete): Complete rewrite.
40027 (grub_envblk_iterate): Likewise.
40029 2009-03-28 Robert Millan <rmh@aybabtu.com>
40031 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40032 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40033 variables. Use 16-bit loader.
40034 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40036 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40037 (grub_linux16_boot): ... this. Update all users.
40038 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40039 (grub_linux_boot): ... this. Update all users.
40041 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40042 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40043 commands to `linux16' and `initrd16'.
40044 (GRUB_MOD_FINI(linux)): Rename to ...
40045 (GRUB_MOD_FINI(linux16)): ... this.
40047 2009-03-24 Pavel Roskin <proski@gnu.org>
40049 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40050 not just for compilation.
40052 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40054 Move multiboot helper out of kernel
40056 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40057 `loader/i386/multiboot_helper.S'.
40058 * conf/i386-coreboot.rmk: Likewise
40059 * conf/i386-ieee1275.rmk: Likewise
40061 * kern/i386/loader.S: Move multiboot helpers from here...
40062 * loader/i386/multiboot_helper.S: ...moved here
40063 * include/grub/i386/loader.h: Move declarations of multiboot
40064 helpers from here...
40065 * include/grub/i386/multiboot.h: ...moved here
40066 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40068 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40070 * kern/env.c (grub_env_context_open): Added an argument to specify
40071 whether a new context inherits exported variables from current
40072 one. This is useful when making a sandbox to interpret a config
40074 All callers updated.
40076 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40078 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40080 * kern/env.c (grub_env_context_close): Fix memory leaks.
40082 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40084 * normal/main.c (grub_normal_execute): Added an argument
40085 BATCH to specify if an interactive interface should be provided
40086 after reading a config file.
40087 All callers updated.
40088 (read_command_list): Prevent being executed twice.
40089 (read_fs_list): Likewise.
40091 * include/grub/normal.h (grub_normal_execute): Updated the
40094 2009-03-22 Pavel Roskin <proski@gno.org>
40096 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40098 * kern/i386/pc/startup.S: Likewise.
40099 * kern/i386/efi/startup.S: Likewise.
40100 * kern/i386/ieee1275/startup.S: Likewise.
40101 * kern/i386/coreboot/startup.S: Likewise.
40102 * kern/x86_64/efi/startup.S: Likewise.
40104 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40105 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40106 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40108 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40110 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40112 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40114 Use vaddr of correct segment for entry_point.
40116 2009-03-21 Bean <bean123ch@gmail.com>
40118 * commands/blocklist.c: Add include file <grub/command.h>, remove
40119 <grub/normal.h> and <grub/arg.h>.
40120 (grub_cmd_blocklist): Use the new command interface.
40121 (GRUB_MOD_INIT): Likewise.
40122 (GRUB_MOD_FINI): Likewise.
40123 * commands/boot.c: Likewise.
40124 * commands/cat.c: Likewise.
40125 * commands/cmp.c: Likewise.
40126 * commands/configfile.c: Likewise.
40127 * commands/crc.c: Likewise.
40128 * commands/echo.c: Likewise.
40129 * commands/halt.c: Likewise.
40130 * commands/handler.c: Likewise.
40131 * commands/hdparm.c: Likewise.
40132 * commands/help.c: Likewise.
40133 * commands/hexdump.c: Likewise.
40134 * commands/loadenv.c: Likewise.
40135 * commands/ls.c: Likewise.
40136 * commands/lsmmap.c: Likewise.
40137 * commands/lspci.c: Likewise.
40138 * commands/loadenv.c: Likewise.
40139 * commands/read.c: Likewise.
40140 * commands/reboot.c: Likewise.
40141 * commands/search.c: Likewise.
40142 * commands/sleep.c: Likewise.
40143 * commands/test.c: Likewise.
40144 * commands/usbtest.c: Likewise.
40145 * commands/videotest.c: Likewise.
40146 * commands/i386/cpuid.c: Likewise.
40147 * commands/i386/pc/halt.c: Likewise.
40148 * commands/i386/pc/play.c: Likewise.
40149 * commands/i386/pc/pxecmd.c: Likewise.
40150 * commands/i386/pc/vbeinfo.c: Likewise.
40151 * commands/i386/pc/vbetest.c: Likewise.
40152 * commands/ieee1275/suspend.c: Likewise.
40153 * disk/loopback.c: Likewise.
40154 * font/font_cmd.c: Likewise.
40155 * hello/hello.c: Likewise.
40156 * loader/efi/appleloader.c: Likewise.
40157 * loader/efi/chainloader.c: Likewise.
40158 * loader/i386/bsd.c: Likewise.
40159 * loader/i386/efi/linux.c: Likewise.
40160 * loader/i386/ieee1275/linux.c: Likewise.
40161 * loader/i386/linux.c: Likewise.
40162 * loader/i386/pc/chainloader.c: Likewise.
40163 * loader/i386/pc/linux.c: Likewise.
40164 * loader/powerpc/ieee1275/linux.c: Likewise.
40165 * loader/multiboot_loader.c: Likewise.
40166 * term/gfxterm.c: Likewise.
40167 * term/i386/pc/serial.c: Likewise.
40168 * term/terminfo.c: Likewise.
40170 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40171 * term/i386/pc/vga.c: Likewise.
40172 * video/readers/jpeg.c: Likewise.
40173 * video/readers/png.c: Likewise.
40174 * video/readers/tga.c: Likewise.
40176 * util/grub-fstest (cmd_loopback): Removed.
40177 (cmd_blocklist): Likewise.
40178 (cmd_ls): Likewise.
40179 (grub_register_command): Likewise.
40180 (grub_unregister_command): Likewise.
40181 (execute_command): Use grub_command_find to locate command and execute
40184 * include/grub/efi/chainloader.h: Removed.
40185 * loader/efi/chainloader_normal.c: Likewise.
40186 * loader/i386/bsd_normal.c: Likewise.
40187 * loader/i386/pc/chainloader_normal.c: Likewise.
40188 * loader/i386/pc/multiboot_normal.c: Likewise.
40189 * loader/linux_normal.c: Likewise.
40190 * loader/multiboot_loader_normal.c: Likewise.
40191 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40193 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40194 and grub_register_command_p1.
40196 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40197 kern/command.c, lib/arg.c and commands/extcmd.c.
40198 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40199 (minicmd_mod_SOURCES): New variable.
40200 (minicmd_mod_CFLAGS): Likewise.
40201 (minicmd_mod_LDFLAGS): Likewise.
40202 (extcmd_mod_SOURCES): Likewise.
40203 (extcmd_mod_CFLAGS): Likewise.
40204 (extcmd_mod_LDFLAGS): Likewise.
40205 (boot_mod_SOURCES): Removed.
40206 (boot_mod_CFLAGS): Likewise.
40207 (boot_mod_LDFLAGS): Likewise.
40209 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40211 (kernel_img_HEADERS): Add command.h.
40212 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40213 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40215 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40216 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40217 remove the corresponding normal mode command.
40218 (normal_mod_SOURCES): Remove normal/arg.c.
40219 * conf/i386-coreboot.rmk: Likewise.
40220 * conf/i386-efi.rmk: Likewise.
40221 * conf/i386-ieee1275.rmk: Likewise.
40222 * conf/powerpc-ieee1275.rmk: Likewise.
40223 * conf/x86_64-efi.rmk: Likewise.
40225 * include/grub/arg.h: Move from here ...
40226 * include/grub/lib/arg.h: ... to here.
40228 * normal/arg.c: Move from here ...
40229 * lib/arg.c: ... to here.
40231 * commands/extcmd.c: New file.
40232 * commands/minicmd.c: Likewise.
40233 * include/grub/command.h: Likewise.
40234 * include/grub/extcmd.h: Likewise.
40235 * kern/command.c: Likewise.
40236 * kern/corecmd.c: Likewise.
40238 * kern/list.c (grub_list_iterate): Return int instead of void.
40239 (grub_list_insert): New function.
40240 (grub_prio_list_insert): Likewise.
40242 * kern/rescue.c (grub_rescue_command): Removed.
40243 (grub_rescue_command_list): Likewise.
40244 (grub_rescue_register_command): Likewise.
40245 (grub_rescue_unregister_command): Likewise.
40246 (grub_rescue_cmd_boot): Move to minicmd.c
40247 (grub_rescue_cmd_help): Likewise.
40248 (grub_rescue_cmd_info): Likewise.
40249 (grub_rescue_cmd_boot): Likewise.
40250 (grub_rescue_cmd_testload): Likewise.
40251 (grub_rescue_cmd_dump): Likewise.
40252 (grub_rescue_cmd_rmmod): Likewise.
40253 (grub_rescue_cmd_lsmod): Likewise.
40254 (grub_rescue_cmd_exit): Likewise.
40255 (grub_rescue_print_devices): Moved to corecmd.c.
40256 (grub_rescue_print_files): Likewise.
40257 (grub_rescue_cmd_ls): Likewise.
40258 (grub_rescue_cmd_insmod): Likewise.
40259 (grub_rescue_cmd_set): Likewise.
40260 (grub_rescue_cmd_unset): Likewise.
40261 (attempt_normal_mode): Use grub_command_find to get normal module.
40262 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40263 commands, remove grub_rescue_register_command calls.
40265 * normal/command.c (grub_register_command): Removed.
40266 (grub_unregister_command): Likewise.
40267 (grub_command_find): Likewise.
40268 (grub_iterate_commands): Likewise.
40269 (rescue_command): Likewise.
40270 (export_command): Moved to corecmd.c.
40271 (set_command): Removed.
40272 (unset_command): Likewise.
40273 (insmod_command): Likewise.
40274 (rmmod_command): Likewise.
40275 (lsmod_command): Likewise.
40276 (grub_command_init): Likewise.
40278 * normal/completion.c (iterate_command): Use cmd->prio to check for
40280 (complete_arguments): Use grub_extcmd_t structure to find options.
40281 (grub_normal_do_completion): Change function grub_iterate_commands to
40282 grub_command_iterate.
40284 * normal/execute.c (grub_script_execute_cmd): No need to parse
40287 * normal/main.c (grub_dyncmd_dispatcher): New function.
40288 (read_command_list): Register unload commands as dyncmd.
40289 (grub_cmd_normal): Use new command interface, register rescue,
40290 unregister normal at entry, register normal, unregister rescue at exit.
40292 * include/grub/list.h (grub_list_test_t): New type.
40293 (grub_list_iterate): Return int instead of void.
40294 (grub_list_insert): New function.
40295 (GRUB_AS_NAMED_LIST_P): New macro.
40296 (GRUB_AS_PRIO_LIST): Likewise.
40297 (GRUB_AS_PRIO_LIST_P): Likewise.
40298 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40299 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40300 (grub_prio_list): New structure.
40301 (grub_prio_list_insert): New function.
40302 (grub_prio_list_remove): New inline function.
40304 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40305 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40306 (GRUB_COMMAND_FLAG_MENU): Likewise.
40307 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40308 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40309 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40310 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40311 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40312 (grub_command): Likewise.
40313 (grub_register_command): Likewise.
40314 (grub_command_find): Likewise.
40315 (grub_iterate_commands): Likewise.
40316 (grub_command_init): Likewise.
40317 (grub_arg_parse): Likewise.
40318 (grub_arg_show_help): Likewise.
40320 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40321 (grub_rescue_unregister_command): Likewise.
40323 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40324 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40325 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40327 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40328 grub_rescue_cmd_initrd.
40329 * include/grub/i386/loader.h: Likewise.
40330 * include/grub/x86_64/loader.h: Likewise.
40332 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40334 2009-03-21 Bean <bean123ch@gmail.com>
40336 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40337 instead of stat in mingw environment.
40339 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40341 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40343 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40346 2009-03-21 Bean <bean123ch@gmail.com>
40348 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40349 out of range error.
40351 2009-03-18 Michel Dänzer <michel@daenzer.net>
40353 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40354 checking inode flags for EXT4_EXTENTS_FLAG.
40356 2009-03-18 Robert Millan <rmh@aybabtu.com>
40358 * loader/i386/linux.c: Include `<grub/video.h>' and
40359 `<grub/i386/pc/vbe.h>'..
40360 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40361 (grub_linux32_boot): Attempt to configure video settings with
40362 grub_linux_setup_video().
40363 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40364 to avoid grub_console_fini() which would step out of graphical mode
40367 2009-03-14 Robert Millan <rmh@aybabtu.com>
40369 Fix build on powerpc.
40370 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40372 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40374 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40375 background image command.
40377 2009-03-12 Colin D Bennett <colin@gibibit.com>
40379 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40380 (grub_gfxterm_putchar): Extract pairs of identical calls to
40381 draw_cursor out of conditional blocks.
40383 2009-03-11 Pavel Roskin <proski@gnu.org>
40385 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40386 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40388 2009-03-11 Robert Millan <rmh@aybabtu.com>
40390 * loader/i386/multiboot_elfxx.c
40391 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40393 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40395 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40398 2009-03-11 Robert Millan <rmh@aybabtu.com>
40400 * loader/i386/multiboot.c (code_size): New variable.
40401 (grub_multiboot): Define offsets by adding to `code_size' rather
40402 than subtracting from `grub_multiboot_payload_size'. Provide
40403 4-byte alignment to MBI and others by increasing
40404 `boot_loader_name_length' appropriately.
40406 * loader/i386/multiboot_elfxx.c
40407 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40409 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40411 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40414 2009-03-08 Robert Millan <rmh@aybabtu.com>
40416 Make loader/i386/linux.c usable on i386-pc again.
40418 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40420 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40423 2009-03-07 Bean <bean123ch@gmail.com>
40425 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40428 2009-03-06 Robert Millan <rmh@aybabtu.com>
40430 Fix display issue on terminals with screen size other than 80x25
40431 (e.g. gfxterm with resolution higher than 640x480).
40433 * normal/main.c (grub_normal_init_page): Display title text in a
40434 position relative to the center of the terminal instead of relying
40435 on a hardcoded offset.
40437 2009-03-04 Robert Millan <rmh@aybabtu.com>
40439 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40442 * Makefile.in (host_kernel): New variable.
40443 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40444 scripts instead of just the windows one.
40445 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40447 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40449 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40451 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40452 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40453 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40454 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40455 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40456 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40458 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40460 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40461 or if there's no space for the disk label and print the partition number on a
40464 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40466 * util/misc.c: Include <time.h>.
40467 (grub_millisleep): New function.
40469 2009-03-04 Bean <bean123ch@gmail.com>
40471 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40472 another option -mno-red-zone.
40474 * commands/handler.c: Change module description.
40476 * kern/handler.c: Add missing space at the end of description line.
40478 * kern/list.c: Likewise.
40480 2009-03-03 Robert Millan <rmh@aybabtu.com>
40482 Move more components to the relocation area, and fix mbi pointer
40483 handling to use the destination rather than the origin (thanks to
40484 Vladimir Serbinenko for spotting).
40486 * loader/i386/multiboot.c (mbi_dest): New variable.
40487 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40488 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40491 2009-03-01 Bean <bean123ch@gmail.com>
40493 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40494 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40495 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40496 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40498 * loader/i386/efi/linux.c (acpi_guid): New variable.
40499 (acpi_guid): Likewise.
40500 (EBDA_SEG_ADDR): New constant.
40501 (LOW_MEM_ADDR): Likewise.
40502 (FAKE_EBDA_SEG): Likewise.
40503 (fake_bios_data): New function.
40504 (grub_linux_boot): Call fake_bios_data.
40506 2009-03-01 Bean <bean123ch@gmail.com>
40508 * commands/terminal.c: Removed.
40510 * commands/handler.c: New file.
40512 * include/grub/list.h: Likewise.
40514 * include/grub/handler.h: Likewise.
40516 * kern/list.c: Likewise.
40518 * kern/handler.c: Likewise.
40520 * kern/term.h: Include header file <grub/handler.h>.
40521 (grub_term_input): Move next field to the beginning.
40522 (grub_term_output): Likewise.
40523 (grub_term_input_class): New variable.
40524 (grub_term_output_class): Likewise.
40525 (grub_term_register_input): Changed to inline function.
40526 (grub_term_register_output): Likewise.
40527 (grub_term_unregister_input): Likewise.
40528 (grub_term_unregister_output): Likewise.
40529 (grub_term_set_current_input): Likewise.
40530 (grub_term_set_current_output): Likewise.
40531 (grub_term_get_current_input): Likewise.
40532 (grub_term_get_current_output): Likewise.
40533 (grub_term_iterate_input): Removed.
40534 (grub_term_iterate_output): Likewise.
40536 * kern/term.c (grub_term_list_input): Removed.
40537 (grub_term_list_output): Likewise.
40538 (grub_term_input_class): New variable.
40539 (grub_term_output_class): Likewise.
40540 (grub_cur_term_input): Change variable as macro.
40541 (grub_cur_term_output): Likewise.
40542 (grub_term_register_input): Removed.
40543 (grub_term_register_output): Likewise.
40544 (grub_term_unregister_input): Likewise.
40545 (grub_term_unregister_output): Likewise.
40546 (grub_term_set_current_input): Likewise.
40547 (grub_term_set_current_output): Likewise.
40548 (grub_term_iterate_input): Likewise.
40549 (grub_term_iterate_output): Likewise.
40550 (grub_term_get_current_input): Likewise.
40551 (grub_term_get_current_output): Likewise.
40553 * util/grub-editenv.c: Include header file <grub/handler.h>.
40554 (grub_term_get_current_input): Removed.
40555 (grub_term_get_current_output): Likewise.
40556 (grub_term_input_class): New variable.
40557 (grub_term_output_class): Likewise.
40559 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40560 (grub_term_get_current_output): Likewise.
40561 (grub_term_input_class): New variable.
40562 (grub_term_output_class): Likewise.
40564 * util/grub-probe.c (grub_term_get_current_input): Removed.
40565 (grub_term_get_current_output): Likewise.
40566 (grub_term_input_class): New variable.
40567 (grub_term_output_class): Likewise.
40569 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40570 (grub_term_get_current_output): Likewise.
40571 (grub_term_input_class): New variable.
40572 (grub_term_output_class): Likewise.
40574 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40575 (terminal_mod_SOURCES): Likewise.
40576 (terminal_mod_CFLAGS): Likewise.
40577 (terminal_mod_LDFLAGS): Likewise.
40579 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40581 (kernel_img_SOURCES): Add list.c and handler.c.
40582 (kernel_img_HEADERS): Add list.h and handler.h.
40584 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40586 (kernel_mod_SOURCES): Add list.c and handler.c.
40587 (kernel_mod_HEADERS): Add list.h and handler.h.
40589 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40591 (kernel_elf_SOURCES): Add list.c and handler.c.
40592 (kernel_elf_HEADERS): Add list.h and handler.h.
40594 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40596 (kernel_elf_SOURCES): Add list.c and handler.c.
40597 (kernel_elf_HEADERS): Add list.h and handler.h.
40599 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40601 (kernel_mod_SOURCES): Add list.c and handler.c.
40602 (kernel_mod_HEADERS): Add list.h and handler.h.
40604 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40606 (kernel_elf_SOURCES): Add list.c and handler.c.
40607 (kernel_elf_HEADERS): Add list.h and handler.h.
40609 2009-02-27 Robert Millan <rmh@aybabtu.com>
40611 Factorize elf32 / elf64 code in Multiboot loader. This will
40612 prevent it from getting out of sync again.
40614 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40615 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40616 grub_multiboot_load_elf64): Move from here ...
40617 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40618 grub_multiboot_load_elf): ... to here (new file).
40620 2009-02-27 Robert Millan <rmh@aybabtu.com>
40622 * util/grub.d/10_linux.in: Rename "single-user mode" to
40625 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40627 Don't leak in SCSI code.
40628 * disk/scsi.c (grub_scsi_close): free `scsi'.
40630 2009-02-27 Robert Millan <rmh@aybabtu.com>
40632 * loader/i386/pc/multiboot.c: Move from here ...
40633 * loader/i386/multiboot.c: ... to here. Update all users.
40635 2009-02-27 Robert Millan <rmh@aybabtu.com>
40637 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40638 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40640 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40642 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40645 2009-02-27 Robert Millan <rmh@aybabtu.com>
40647 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40648 `0x' qualifier as 0 when base is specified as parameter).
40650 2009-02-24 Bean <bean123ch@gmail.com>
40652 * configure.ac: Check for -mcmodel=large in x86_64 target.
40654 * include/grub/efi/api.h (efi_call_10): New macro.
40655 (efi_wrap_10): New function.
40657 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40658 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40659 (GRUB_PE32_REL_BASED_LOW): Likewise.
40660 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40661 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40662 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40663 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40664 (GRUB_PE32_REL_BASED_REL): Likewise.
40665 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40666 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40667 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40669 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40672 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40673 (efi_wrap_10): New function.
40675 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40677 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40678 MB/MBP model (NV chipset).
40679 (devdata_devs): Add devpath_5 to the list.
40681 * load/i386/efi/linux.c (video_base): Remove variable.
40682 (RGB_MASK): New macro.
40683 (RGB_MAGIC): Likewise.
40684 (LINE_MIN): Likewise.
40685 (LINE_MAX): Likewise.
40686 (FBTEST_STEP): Likewise.
40687 (FBTEST_COUNT): Likewise.
40688 (fb_list): New variable.
40689 (grub_find_video_card): Remove function.
40690 (find_framebuf): New function.
40691 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40694 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40695 problem for x86_64.
40697 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40699 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40701 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40704 2009-02-22 Robert Millan <rmh@aybabtu.com>
40706 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40707 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40708 in our relocation, instead of using it directly from heap. Also
40709 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40711 2009-02-21 Robert Millan <rmh@aybabtu.com>
40713 Implement USB keyboard support (based on patch by Marco Gerards)
40715 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40716 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40717 (usb_keyboard_mod_LDFLAGS): New variables.
40719 * term/usb_keyboard.c: New file.
40721 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40723 Corrected wrong declaration
40725 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40727 2009-02-14 Christian Franke <franke@computer.org>
40729 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40730 (grub_lspci_iter): Print class code and programming interface byte.
40732 2009-02-14 Christian Franke <franke@computer.org>
40734 * gendistlist.sh: Ignore `.svn' directories.
40736 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40738 * fs/fat.c: Add 2009 to Copyright line.
40740 2009-02-14 Christian Franke <franke@computer.org>
40742 * commands/hdparm.c: New file. Provides `hdparm' command
40743 which sends ATA commands via grub_disk_ata_pass_through ().
40745 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40747 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40748 and <grub/cpu/io.h> to include/grub/ata.h.
40749 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40750 (GRUB_CDROM_SECTOR_SIZE): Remove.
40751 (GRUB_ATA_*): Move to include/grub/ata.h.
40752 (GRUB_ATAPI_*): Likewise.
40753 (enum grub_ata_commands): Likewise.
40754 (enum grub_ata_timeout_milliseconds): Likewise.
40755 (struct grub_ata_device): Likewise.
40756 (grub_ata_regset): Likewise.
40757 (grub_ata_regget): Likewise.
40758 (grub_ata_regset2): Likewise.
40759 (grub_ata_regget2): Likewise.
40760 (grub_ata_check_ready): Likewise.
40761 (grub_ata_wait_not_busy): Remove static, exported in
40762 include/grub/ata.h.
40763 (grub_ata_wait_drq): Likewise.
40764 (grub_ata_pio_read): Likewise.
40766 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40767 function for hdparm.mod.
40769 * include/grub/ata.h: New file, contains declarations from
40771 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40773 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40774 (grub_disk_ata_pass_through): New exported variable.
40776 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40778 2009-02-13 Colin D Bennett <colin@gibibit.com>
40780 Support multiple fallback entries, and provide an API to support
40781 executing default+fallback menu entries. Renamed the `terminal' menu
40784 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40785 variable declaration.
40786 (grub_menu_execute_callback): New structure declaration.
40787 (grub_menu_execute_callback_t): New typedef.
40788 (grub_menu_execute_with_fallback): New function declaration.
40789 (grub_menu_get_entry): Likewise.
40790 (grub_menu_get_timeout): Likewise.
40791 (grub_menu_set_timeout): Likewise.
40793 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40795 * normal/menu.c (grub_wait_after_message): Moved to
40796 `normal/menu_text.c'.
40797 (draw_border): Likewise.
40798 (print_message): Likewise.
40799 (print_entry): Likewise.
40800 (print_entries): Likewise.
40801 (grub_menu_init_page): Likewise.
40802 (get_entry_number): Likewise.
40803 (print_timeout): Likewise.
40804 (run_menu): Likewise.
40805 (grub_menu_execute_entry): Likewise.
40806 (show_text_menu): Likewise.
40807 (get_and_remove_first_entry_number): New function.
40808 (grub_menu_execute_with_fallback): Likewise.
40809 (get_entry): Renamed to ...
40810 (grub_menu_get_entry): .. this and made it global.
40811 (get_timeout): Renamed to ...
40812 (grub_menu_get_timeout): ... this and made it global.
40813 (set_timeout): Renamed to ...
40814 (grub_menu_set_timeout): ... this and made it global.
40815 (grub_normal_terminal_menu_viewer): Renamed to ...
40816 (grub_normal_text_menu_viewer): ... this.
40818 * normal/menu_text.c: New file. Extracted text-menu-specific code
40819 from normal/menu.c.
40821 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40822 (normal_mod_SOURCES): Likewise.
40824 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40825 (normal_mod_SOURCES): Likewise.
40827 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40828 (normal_mod_SOURCES): Likewise.
40830 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40831 (normal_mod_SOURCES): Likewise.
40833 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40834 (normal_mod_SOURCES): Likewise.
40836 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40837 (normal_mod_SOURCES): Likewise.
40839 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40840 (normal_mod_SOURCES): Likewise.
40842 2009-02-11 Robert Millan <rmh@aybabtu.com>
40844 * util/grub.d/00_header.in: Update old reference to `font' command.
40846 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
40848 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40850 Based on patch from Javier Martín.
40852 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40854 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
40855 to avoid false positives with FAT.
40856 (grub_fstest_SOURCES): Likewise.
40857 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40858 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40859 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40860 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40861 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40862 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40864 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40866 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
40867 bpb.version_specific.fat12_or_fat16.fstype and
40868 bpb.version_specific.fat32.fstype.
40870 2009-02-08 Robert Millan <rmh@aybabtu.com>
40872 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
40874 2009-02-08 Robert Millan <rmh@aybabtu.com>
40876 * Makefile.in (host_os, host_cpu): New variables.
40877 (target_os): Remove. Update all users.
40879 2009-02-08 Marco Gerards <marco@gnu.org>
40881 * Makefile.in (enable_grub_emu_usb): New variable.
40882 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
40883 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
40884 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
40885 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
40886 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
40887 `usbtest.mod' and `usbms.mod'.
40888 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
40889 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
40890 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
40891 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
40892 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
40895 * disk/usbms.c: New file.
40897 * include/grub/usb.h: Likewise.
40899 * include/grub/usbtrans.h: Likewise.
40901 * include/grub/usbdesc.h: Likewise.
40903 * bus/usb/usbtrans.c: Likewise.
40905 * bus/usb/ohci.c: Likewise.
40907 * bus/usb/uhci.c: Likewise.
40909 * bus/usb/usbhub.c: Likewise.
40911 * bus/usb/usb.c: Likewise.
40913 * commands/usbtest.c: Likewise.
40915 * util/usb.c: Likewise.
40917 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
40919 * configure.ac: Test for libusb presence.
40921 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
40923 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
40925 * kern/mm.c: Add more comments.
40927 2009-02-08 Robert Millan <rmh@aybabtu.com>
40929 Patch from Javier Martín.
40930 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
40931 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
40933 2009-02-08 Robert Millan <rmh@aybabtu.com>
40935 * fs/cpio.c: Split tar functionality to ...
40936 * fs/tar.c: ... here (new file). Update all users.
40938 2009-02-07 Robert Millan <rmh@aybabtu.com>
40940 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
40941 backward-incompatible features.
40943 Based on patch from Javier Martín, with some adjustments.
40945 2009-02-07 Michael Scherer <misc@mandriva.org>
40947 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
40949 2009-02-07 Robert Millan <rmh@aybabtu.com>
40951 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
40952 position of `disk/lvm.c' to ensure grub_init_all() always picks it
40953 after the RAID stuff.
40955 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
40957 Fixes problem when running vbetest command as reported by
40958 Vladimir Serbinenko <phcoder@gmail.com>.
40960 * (grub_vbe_set_video_mode): Fixed problem with text modes.
40962 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
40964 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
40965 /dev/md/NpN style mdraid devices.
40967 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40969 * util/unifont2pff.rb: Remove.
40971 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40973 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
40976 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
40978 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
40979 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40980 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40981 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40982 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40983 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40984 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40986 2009-02-02 Christian Franke <franke@computer.org>
40988 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
40990 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
40992 * INSTALL: Note that we now require at least autoconf 2.59 and
40993 that LZO is optional.
40995 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
40997 Base on patch on bug #24154 created by Tomas Tintera
40998 <trosos@seznam.cz>.
41000 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41002 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41004 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41005 <bero@arklinux.org>.
41007 * normal/parser.y (script_init): Add missing semicolon.
41009 2009-01-31 Colin D Bennett <colin@gibibit.com>
41011 * normal/main.c: Add include to grub/menu_viewer.h.
41012 (free_menu_entry_classes): Added.
41013 (grub_normal_menu_addentry): Added class property handling.
41014 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41015 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41017 * normal/menu_viewer.c: New file.
41019 * normal/menu.c (run_menu_entry): Renamed to ...
41020 (grub_menu_execute_entry): ... this and made it as global.
41021 (grub_menu_run): Renamed to ...
41022 (show_text_menu): ... this and made it local.
41023 (show_text_menu): Adapt to new function names.
41024 (grub_normal_terminal_menu_viewer): New global variable.
41026 * include/grub/menu.h: New file.
41028 * include/grub/menu_viewer.h: New file.
41030 * include/grub/normal.h: Added include to grub/menu.h.
41031 (grub_menu_entry): Moved to include/grub/menu.h.
41032 (grub_menu_entry_t): Likewise.
41033 (grub_menu): Likewise.
41034 (grub_menu_t): Likewise.
41035 (grub_normal_terminal_menu_viewer): Added.
41036 (grub_menu_execute_entry): Likewise.
41037 (grub_menu_run): Removed.
41039 * DISTLIST: Added include/grub/menu.h.
41040 Added include/grub/menu_viewer.h.
41041 Added normal/menu_viewer.c.
41043 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41045 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41046 arglist for menutitle arguments.
41048 * normal/main.c (grub_normal_menu_addentry): Likewise.
41050 * normal/parser.y (menuentry): Likewise.
41052 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41054 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41055 (grub_script_create_cmdmenu): Likewise.
41057 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41059 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41062 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41064 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41066 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41068 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41070 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41072 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41074 2009-01-30 Christian Franke <franke@computer.org>
41076 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41077 in option help text.
41079 2009-01-27 Pavel Roskin <proski@gnu.org>
41081 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41083 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41085 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41087 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41089 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41090 unregister function.
41092 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41094 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41096 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41098 * util/grub-mkfont.c (usage): Fix typo.
41100 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41102 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41104 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41106 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41108 * kern/misc.c (grub_strcasecmp): New function.
41109 (grub_strcasecmp): Use grub_size_t instead of int for length.
41111 * include/grub/misc.h: Update function prototypes.
41113 2009-01-26 Robert Millan <rmh@aybabtu.com>
41115 * configure.ac: Fix cross-compilation check.
41117 2009-01-22 Christian Franke <franke@computer.org>
41119 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41120 (precision) digit string. Allow `.format2' without `format1' (width).
41121 Limit input chars for `%s' output to `format2' if specified. This is
41122 compatible with standard printf ().
41124 2009-01-22 Christian Franke <franke@computer.org>
41126 * disk/ata.c (grub_ata_wait_status): Replace by ...
41127 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41128 other status bits may be invalid while BSY is asserted.
41129 (grub_ata_check_ready): New function.
41130 (grub_ata_cmd): Removed.
41131 (grub_ata_wait_drq): New function.
41132 (grub_ata_strncpy): Remove inline.
41133 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41134 and error check now done by grub_ata_wait_drq ().
41135 (grub_ata_pio_write): Likewise.
41136 (grub_atapi_identify): Set DEV before check for !BSY. Use
41137 grub_ata_wait_drq () to wait for data.
41138 (grub_ata_device_initialize): Add status register check to
41139 detect missing SATA slave devices. Add debug messages.
41140 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41141 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41142 transfer loop by grub_ata_pio_write ().
41143 (grub_ata_identify): Set DEV before check for !BSY. Use
41144 grub_ata_wait_drq () to wait for data.
41145 (grub_ata_setaddress): Set DEV before check for !BSY.
41146 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41147 read/write in one loop. Fix invalid command on write. Fix incomplete
41148 command on (size % batch) == 0. Add missing error check after write of
41149 last block. Add debug messages.
41150 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41152 2009-01-19 Christian Franke <franke@computer.org>
41154 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41155 (GRUB_ATAPI_IREASON_*): Likewise.
41156 (grub_ata_pio_write): Fix timeout error return.
41157 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41158 (grub_atapi_wait_drq): New function.
41159 (grub_atapi_packet): New parameter `size'.
41160 Use grub_atapi_wait_drq () and direct write instead of
41161 grub_ata_pio_write ().
41162 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41163 reads the number of bytes requested by the device for each DRQ
41165 (grub_atapi_write): Remove old implementation, return not
41166 implemented instead.
41168 2009-01-19 Christian Franke <franke@computer.org>
41170 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41171 of 512 to calculate data size.
41172 (grub_scsi_read12): Likewise.
41173 (grub_scsi_write10): Likewise.
41174 (grub_scsi_write12): Likewise.
41175 (grub_scsi_read): Adjust size according to blocksize.
41176 Add checks for invalid blocksize and unaligned transfer.
41178 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41180 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41182 * term/gfxterm.c (write_char): Fix background rendering for wide
41185 2009-01-19 Robert Millan <rmh@aybabtu.com>
41187 * config.guess: Update to latest version from config git.
41188 * config.sub: Likewise.
41190 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41192 * Makefile.in: Change font compilation to use new grub-mkfont instead
41195 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41196 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41197 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41198 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41199 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41200 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41201 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41202 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41203 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41205 2009-01-16 Christian Franke <franke@computer.org>
41207 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41208 (enum grub_ata_timeout_milliseconds): New enum.
41209 (grub_ata_wait_status): Add parameter milliseconds.
41210 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41211 recovery from timed-out commands.
41212 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41213 return grub_errno instead of REG_ERROR.
41214 (grub_ata_pio_write): Add parameter milliseconds.
41215 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41216 Pass milliseconds to grub_ata_wait_status () and
41217 grub_ata_pio_read ().
41218 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41219 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41220 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41221 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41222 It is not suitable for device detection, because DEV bit is ignored,
41223 the command may run too long, and not all devices set the signature
41225 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41226 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41227 Fix device selection, DEV bit must be set first to address the registers
41228 of the correct device.
41229 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41230 grub_ata_pio_read/write ().
41231 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41232 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41234 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41236 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41238 2009-01-13 Bean <bean123ch@gmail.com>
41240 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41242 2009-01-13 Bean <bean123ch@gmail.com>
41244 * Makefile.in: (enable_grub_mkfont): New variable.
41245 (freetype_cflags): Likewise.
41246 (freetype_libs): Likewise.
41248 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41249 (grub_mkfont_SOURCES): New variable.
41250 (grub_mkfont_CFLAGS): Likewise.
41251 (grub_mkfont_LDFLAGS): Likewise.
41253 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41254 library if `--enable-grub-mkfont' is requested.
41255 (enable_grub_mkfont): New variable.
41256 (freetype_cflags): Likewise.
41257 (freetype_libs): Likewise.
41259 * util/grub-mkfont.c: New file.
41261 2009-01-12 Christian Franke <franke@computer.org>
41263 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41264 mode check. Fix setting of compat_use[].
41266 2009-01-10 Robert Millan <rmh@aybabtu.com>
41268 Update a few copyright years which we forgot to do in 2008 (only for
41269 files whose changes made in 2008 were copyright-significant)
41271 * Makefile.in: Add 2008 to Copyright line.
41272 * disk/ieee1275/ofdisk.c: Likewise.
41273 * disk/efi/efidisk.c: Likewise.
41274 * kern/dl.c: Likewise.
41275 * kern/sparc64/ieee1275/init.c: Likewise.
41276 * kern/mm.c: Likewise.
41277 * kern/efi/mm.c: Likewise.
41278 * boot/i386/pc/boot.S: Likewise.
41279 * genfslist.sh: Likewise.
41280 * fs/iso9660.c: Likewise.
41281 * fs/hfs.c: Likewise.
41282 * fs/jfs.c: Likewise.
41283 * fs/minix.c: Likewise.
41284 * fs/ufs.c: Likewise.
41285 * gensymlist.sh.in: Likewise.
41286 * genkernsyms.sh.in: Likewise.
41287 * include/grub/misc.h: Likewise.
41288 * include/grub/types.h: Likewise.
41289 * include/grub/symbol.h: Likewise.
41290 * include/grub/elf.h: Likewise.
41291 * include/grub/kernel.h: Likewise.
41292 * include/grub/disk.h: Likewise.
41293 * include/grub/dl.h: Likewise.
41294 * include/grub/i386/linux.h: Likewise.
41295 * include/grub/i386/pc/biosdisk.h: Likewise.
41296 * include/grub/efi/api.h: Likewise.
41297 * include/grub/efi/pe32.h: Likewise.
41298 * include/grub/util/misc.h: Likewise.
41299 * normal/execute.c: Likewise.
41300 * normal/arg.c: Likewise.
41301 * normal/completion.c: Likewise.
41302 * normal/lexer.c: Likewise.
41303 * normal/parser.y: Likewise.
41304 * normal/misc.c: Likewise.
41305 * commands/i386/pc/vbeinfo.c: Likewise.
41306 * commands/hexdump.c: Likewise.
41307 * commands/terminal.c: Likewise.
41308 * commands/ls.c: Likewise.
41309 * commands/help.c: Likewise.
41310 * partmap/pc.c: Likewise.
41311 * loader/efi/chainloader.c: Likewise.
41312 * loader/multiboot_loader.c: Likewise.
41313 * loader/i386/pc/multiboot2.c: Likewise.
41314 * term/efi/console.c: Likewise.
41315 * term/i386/pc/serial.c: Likewise.
41316 * util/lvm.c: Likewise.
41317 * util/console.c: Likewise.
41318 * util/i386/efi/grub-mkimage.c: Likewise.
41319 * util/raid.c: Likewise.
41321 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41323 * commands/videotest.c: Removed include to grub/machine/memory.h.
41325 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41326 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41327 (video_mod_SOURCES): Removed.
41328 (video_mod_CFLAGS): Likewise.
41329 (video_mod_LDFLAGS): Likewise.
41330 (gfxterm_mod_SOURCES): Likewise.
41331 (gfxterm_mod_CFLAGS): Likewise.
41332 (gfxterm_mod_LDFLAGS): Likewise.
41333 (videotest_mod_SOURCES): Likewise.
41334 (videotest_mod_CFLAGS): Likewise.
41335 (videotest_mod_LDFLAGS): Likewise.
41336 (bitmap_mod_SOURCES): Likewise.
41337 (bitmap_mod_CFLAGS): Likewise.
41338 (bitmap_mod_LDFLAGS): Likewise.
41339 (tga_mod_SOURCES): Likewise.
41340 (tga_mod_CFLAGS): Likewise.
41341 (tga_mod_LDFLAGS): Likewise.
41342 (jpeg_mod_SOURCES): Likewise.
41343 (jpeg_mod_CFLAGS): Likewise.
41344 (jpeg_mod_LDFLAGS): Likewise.
41345 (png_mod_SOURCES): Likewise.
41346 (png_mod_CFLAGS): Likewise.
41347 (png_mod_LDFLAGS): Likewise.
41349 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41350 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41351 (video_mod_SOURCES): Added.
41352 (video_mod_CFLAGS): Likewise.
41353 (video_mod_LDFLAGS): Likewise.
41354 (videotest_mod_SOURCES): Likewise.
41355 (videotest_mod_CFLAGS): Likewise.
41356 (videotest_mod_LDFLAGS): Likewise.
41357 (bitmap_mod_SOURCES): Likewise.
41358 (bitmap_mod_CFLAGS): Likewise.
41359 (bitmap_mod_LDFLAGS): Likewise.
41360 (tga_mod_SOURCES): Likewise.
41361 (tga_mod_CFLAGS): Likewise.
41362 (tga_mod_LDFLAGS): Likewise.
41363 (jpeg_mod_SOURCES): Likewise.
41364 (jpeg_mod_CFLAGS): Likewise.
41365 (jpeg_mod_LDFLAGS): Likewise.
41366 (png_mod_SOURCES): Likewise.
41367 (png_mod_CFLAGS): Likewise.
41368 (png_mod_LDFLAGS): Likewise.
41369 (gfxterm_mod_SOURCES): Likewise.
41370 (gfxterm_mod_CFLAGS): Likewise.
41371 (gfxterm_mod_LDFLAGS): Likewise.
41373 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41374 grub/machine/console.h.
41376 2009-01-04 Jerone Young <jerone@gmail.com>
41378 Make on screen instructions clearer
41380 Based on patch created by Jidanni <jidanni@jidanni.org>
41382 * normal/menu.c: print clearer instructions on the screen
41384 2009-01-02 Colin D Bennett <colin@gibibit.com>
41388 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41389 build system and fixed gfxterm.c to work with different sized fonts.
41391 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41393 * configure: Re-generated.
41395 * DISTLIST: Removed font/manager.c.
41397 Added font/font_cmd.c.
41399 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41402 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41404 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41406 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41408 * normal/menu.c: Likewise.
41410 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41411 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41413 * include/grub/font.h: Replaced with new file.
41415 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41416 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41417 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41418 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41419 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41420 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41421 fg_red, fg_green, fg_blue, fg_alpha.
41422 (grub_video_adapter): Removed blit_glyph.
41423 (grub_video_blit_glyph): Removed.
41425 * font/manager.c: Removed file.
41427 * font/font.c: New file.
41429 * font/font_cmd.c: Likewise.
41431 * video/video.c (grub_video_blit_glyph): Removed.
41433 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41434 (grub_video_vbe_map_rgba): Likewise.
41435 (grub_video_vbe_unmap_color_int): Likewise.
41436 (grub_video_vbe_blit_glyph): Removed.
41437 (grub_video_vbe_adapter): Removed blit_glyph.
41439 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41440 (get_pixel): Likewise.
41441 (set_pixel): Likewise.
41443 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41445 * term/gfxterm.c: Adapted to new font engine.
41447 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41449 * term/i386/pc/vga.c: Likewise.
41451 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41453 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41455 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41457 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41459 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41461 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41463 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41465 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41467 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41469 * util/grub.d/00_header.in: Changed to use new loadfont command.
41471 * util/grub-mkconfig_lib.in: Changed font extension.
41473 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41475 * util/getroot.c (grub_util_get_grub_dev): Add support for
41476 /dev/md/dNNpNN style partitionable mdraid devices.
41478 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41480 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41481 at a time limit of the PXE TFTP API correctly.
41482 (grub_pxefs_close): Likewise.
41484 2008-11-29 Robert Millan <rmh@aybabtu.com>
41486 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41487 grub_ata_device_initialize() calls.
41489 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41491 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41493 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41495 2008-11-28 Robert Millan <rmh@aybabtu.com>
41497 Fix build on powerpc-ieee1275. Based on patch created by
41498 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41499 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41500 `kern/ieee1275/mmap.c'.
41501 * include/grub/powerpc/ieee1275/memory.h: New file.
41503 Provide grub-install on coreboot.
41504 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41505 (grub_install_SOURCES): New variable.
41506 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41507 usable on coreboot.
41509 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41511 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41512 to `grub_term_input_t'.
41513 (grub_term_get_current_output): Change return type to
41514 `grub_term_output_t'.
41516 2008-11-22 Robert Millan <rmh@aybabtu.com>
41518 Fix breakage on coreboot due to declaration mismatch.
41519 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41520 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41521 grub_vga_text_cls().
41523 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41524 comments. Avoid copying one more byte than necessary (just in case).
41526 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41527 to 0x200000 (avoids trouble with some OFW implementations, and matches
41528 with the one in Yaboot).
41529 Reported by Manoel Abranches
41531 2008-11-20 Robert Millan <rmh@aybabtu.com>
41533 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41534 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41536 * util/grub-mkconfig_lib.in (grub_warn): New function.
41537 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41538 warnings, to obtain consistent formatting.
41539 * util/grub.d/00_header.in: Likewise.
41540 * util/update-grub_lib.in: Likewise.
41542 * loader/i386/linux.c (allocate_pages): Fix a warning.
41543 Move comment text to `#error' stanza.
41545 Harmonize ieee1275's grub_available_iterate() with the generic
41546 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41547 build problem on i386-ieee1275):
41548 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41549 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41550 parameter `type'. Update all users of this function.
41551 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41552 `kern/ieee1275/mmap.c'.
41553 * kern/ieee1275/init.c
41554 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41556 (grub_machine_mmap_iterate): ... this.
41557 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41558 return type to `grub_err_t'. Update all implementations of this
41559 function prototype.
41560 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41563 Add `lsmmap' command (lists firmware-provided memory map):
41564 * commands/lsmmap.c: New file.
41565 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41566 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41568 * conf/powerpc-ieee1275.rmk: Likewise.
41569 * conf/i386-coreboot.rmk: Likewise.
41570 * conf/i386-ieee1275.rmk: Likewise.
41572 2008-11-19 Robert Millan <rmh@aybabtu.com>
41574 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41575 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41576 constraints to initrd allocation (based on code from
41577 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41578 for Linux to find it.
41580 2008-11-14 Robert Millan <rmh@aybabtu.com>
41582 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41583 order to cope with duplicate slashes.
41585 2008-11-14 Robert Millan <rmh@aybabtu.com>
41587 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41588 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41589 don't want to mess with lower memory, because it is used in the Linux
41592 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41593 an appropriate place in lower memory, between 0x10000 and 0x90000,
41594 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41595 is in our heap (probably as a result of it being corrupted during
41596 decompression). Add #error instance with comment to explain why this
41597 loader isn't currently usable on PC/BIOS.
41599 2008-11-14 Robert Millan <rmh@aybabtu.com>
41601 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41602 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41604 2008-11-12 Robert Millan <rmh@aybabtu.com>
41606 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41608 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41609 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41611 * include/grub/i386/pc/memory.h: ... to here.
41613 2008-11-12 Robert Millan <rmh@aybabtu.com>
41615 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41618 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41619 (grub_console_cur_color, grub_console_real_putchar)
41620 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41621 (grub_console_setcolorstate, grub_console_setcolor)
41622 (grub_console_getcolor): Move from here ...
41623 * include/grub/i386/vga_common.h: ... to here (new file).
41625 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41626 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41627 `<grub/i386/io.h>'.
41628 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41629 `<grub/i386/vga_common.h>'.
41631 2008-11-12 Robert Millan <rmh@aybabtu.com>
41633 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41634 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41635 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41637 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41638 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41640 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41641 grub_console_init() with call to grub_vga_text_init().
41642 (grub_machine_fini): Replace call to
41643 grub_console_fini() with call to grub_vga_text_fini() and
41644 grub_at_keyboard_fini().
41646 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41647 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41648 (grub_console_setcolorstate, grub_console_setcolor)
41649 (grub_console_getcolor): New function prototypes.
41651 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41652 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41653 (grub_vga_text_setcursor): Static-ize.
41654 (grub_vga_text_term): New structure.
41655 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41657 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41658 (grub_console_cur_color, grub_console_standard_color)
41659 (grub_console_normal_color, grub_console_highlight_color)
41660 (map_char, grub_console_putchar, grub_console_getcharwidth)
41661 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41662 (grub_console_getcolor): Move from here ...
41663 * term/i386/vga_common.c: ... to here (same function names).
41665 2008-11-12 Robert Millan <rmh@aybabtu.com>
41667 Use newly-added Multiboot support in coreboot.
41669 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41670 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41672 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41673 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41674 (codestart): Store the MBI in `startup_multiboot_info' when we're
41675 being loaded using Multiboot.
41677 * kern/i386/coreboot/init.c (grub_machine_init): Move
41678 grub_at_keyboard_init() call to beginning of function (useful for
41679 debugging). Call grub_machine_mmap_init() before attempting to use
41680 grub_machine_mmap_iterate().
41681 (grub_lower_mem, grub_upper_mem): Move from here ...
41682 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41685 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41686 function prototype.
41688 2008-11-12 Robert Millan <rmh@aybabtu.com>
41690 Fix a regression introduced by the at_keyboard.mod split. Because
41691 some terminals are default on some platforms and non-default on
41692 others, the first terminal being registered determines which is
41693 going to be default.
41695 * kern/term.c (grub_term_register_input): If this is the first
41696 terminal being registered, set it as the current one.
41697 (grub_term_register_output): Likewise.
41699 * term/efi/console.c (grub_console_init): Do not call
41700 grub_term_set_current_output() or grub_term_set_current_input().
41701 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41702 * term/i386/pc/console.c (grub_console_init): Likewise.
41703 (grub_console_fini): Do not call grub_term_set_current_input()
41704 (but leave grub_term_set_current_output() to restore text mode).
41706 2008-11-10 Robert Millan <rmh@aybabtu.com>
41708 * util/grub.d/00_header.in: Add backward compatibility check for
41709 versions of terminal.mod that don't understand `terminal_input' or
41712 2008-11-09 Robert Millan <rmh@aybabtu.com>
41714 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41715 `terminal_input' / `terminal_output', not `terminal'.
41717 2008-11-08 Robert Millan <rmh@aybabtu.com>
41719 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41720 (DISTCLEANFILES): Add `build_env.mk'.
41722 2008-11-08 Robert Millan <rmh@aybabtu.com>
41724 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41725 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41726 members. Update all users.
41727 * util/console.c (grub_ncurses_term): Split in ...
41728 (grub_ncurses_term_input): ... this, and ...
41729 (grub_ncurses_term_output): ... this. Update all users.
41730 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41732 2008-11-08 Robert Millan <rmh@aybabtu.com>
41734 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41735 (PKGDATA): Add $(pkgdata_SRCDIR).
41736 (pkglib_BUILDDIR): New variable.
41737 (pkgdata_SRCDIR): New variable.
41738 (build_env.mk): New target.
41739 (include_DATA): New variable.
41740 (install-local): Install $(include_DATA) files in $(includedir).
41742 2008-11-07 Pavel Roskin <proski@gnu.org>
41744 * gendistlist.sh: Use C locale for sorting to ensure consistent
41745 output on all systems.
41747 * util/grub.d/00_header.in: Remove incorrect space before
41750 2008-11-07 Robert Millan <rmh@aybabtu.com>
41752 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41754 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41755 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41756 (based on find_multi_boot1_header).
41757 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41758 using find_multi_boot2_header(), and abort if neither Multiboot or
41759 Multiboot headers were found.
41761 2008-11-07 Robert Millan <rmh@aybabtu.com>
41763 Modularize at_keyboard.mod:
41765 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41766 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41767 (at_keyboard_mod_LDFLAGS): New variables.
41769 Actual terminal split:
41771 * include/grub/term.h (struct grub_term): Split in ...
41772 (struct grub_term_input): ... this, and ...
41773 (struct grub_term_output): ... this. Update all users.
41774 (grub_term_set_current): Split in ...
41775 (grub_term_set_current_input): ... this, and ...
41776 (grub_term_set_current_output): ... this.
41777 (grub_term_get_current): Split in ...
41778 (grub_term_get_current_input): ... this, and ...
41779 (grub_term_get_current_output): ... this.
41780 (grub_term_register): Split in ...
41781 (grub_term_register_input): ... this, and ...
41782 (grub_term_register_output): ... this.
41783 (grub_term_unregister): Split in ...
41784 (grub_term_unregister_input): ... this, and ...
41785 (grub_term_unregister_output): ... this.
41786 (grub_term_iterate): Split in ...
41787 (grub_term_iterate_input): ... this, and ...
41788 (grub_term_iterate_output): ... this.
41790 * kern/term.c (grub_term_list): Split in ...
41791 (grub_term_list_input): ... this, and ...
41792 (grub_term_list_output): ... this. Update all users.
41793 (grub_cur_term): Split in ...
41794 (grub_cur_term_input): ... this, and ...
41795 (grub_cur_term_output): ... this. Update all users.
41796 (grub_term_set_current): Split in ...
41797 (grub_term_set_current_input): ... this, and ...
41798 (grub_term_set_current_output): ... this.
41799 (grub_term_get_current): Split in ...
41800 (grub_term_get_current_input): ... this, and ...
41801 (grub_term_get_current_output): ... this.
41802 (grub_term_register): Split in ...
41803 (grub_term_register_input): ... this, and ...
41804 (grub_term_register_output): ... this.
41805 (grub_term_unregister): Split in ...
41806 (grub_term_unregister_input): ... this, and ...
41807 (grub_term_unregister_output): ... this.
41808 (grub_term_iterate): Split in ...
41809 (grub_term_iterate_input): ... this, and ...
41810 (grub_term_iterate_output): ... this.
41812 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41813 a check for input and one for output (and only attempt to get keys
41814 from user when input works).
41816 * util/grub-probe.c (grub_term_get_current): Split in ...
41817 (grub_term_get_current_input): ... this, and ...
41818 (grub_term_get_current_output): ... this.
41819 * util/grub-fstest.c: Likewise.
41820 * util/i386/pc/grub-setup.c: Likewise.
41821 * util/grub-editenv.c: Likewise.
41823 Portability adjustments:
41825 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41826 `term/i386/pc/at_keyboard.c'.
41827 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41828 grub_keyboard_controller_init() (now handled by terminal .init).
41829 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41830 grub_at_keyboard_init().
41831 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41832 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41833 at_keyboard.mod via input terminal interface).
41834 * include/grub/i386/coreboot/console.h: Convert into a stub for
41835 `<grub/i386/pc/console.h>'.
41837 Migrate full terminals to new API:
41839 * term/efi/console.c (grub_console_term): Split into ...
41840 (grub_console_term_input): ... this, and ...
41841 (grub_console_term_output): ... this. Update all users.
41842 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41843 (grub_ofconsole_init): Split into ...
41844 (grub_ofconsole_init_input): ... this, and ...
41845 (grub_ofconsole_init_output): ... this.
41846 (grub_ofconsole_term): Split into ...
41847 (grub_ofconsole_term_input): ... this, and ...
41848 (grub_ofconsole_term_output): ... this. Update all users.
41849 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41850 (grub_serial_term_input): ... this, and ...
41851 (grub_serial_term_output): ... this. Update all users.
41852 * term/i386/pc/console.c (grub_console_term): Split into ...
41853 (grub_console_term_input): ... this, and ...
41854 (grub_console_term_output): ... this. Update all users.
41855 (grub_console_term_input): Only enable it on PC/BIOS platform.
41856 (grub_console_init): Remove grub_keyboard_controller_init() call.
41858 Migrate input terminals to new API:
41860 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
41861 `i386' and `i386/pc' to enable build on x86_64 (this driver is
41862 i386-specific anyway).
41863 (grub_console_checkkey): Rename to ...
41864 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
41866 (grub_keyboard_controller_orig): New variable.
41867 (grub_console_getkey): Rename to ...
41868 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
41870 (grub_keyboard_controller_init): Static-ize. Save original
41871 controller value so that it can be restored ...
41872 (grub_keyboard_controller_fini): ... here (new function).
41873 (grub_at_keyboard_term): New structure.
41874 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
41877 Migrate output terminals to new API:
41879 * term/i386/pc/vga.c (grub_vga_term): Change type to
41880 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41881 members. Update all users.
41882 * term/gfxterm.c (grub_video_term): Change type to
41883 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41884 members. Update all users.
41885 * include/grub/i386/pc/console.h (grub_console_checkkey)
41886 (grub_console_getkey): Do not export (no longer needed by gfxterm,
41889 Migrate `terminal' command and userland tools to new API:
41891 * commands/terminal.c (grub_cmd_terminal): Split into ...
41892 (grub_cmd_terminal_input): ... this, and ...
41893 (grub_cmd_terminal_output): ... this.
41894 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
41895 `terminal_input' and `terminal_output'.
41896 * util/grub.d/00_header.in: Adjust `terminal' calls to new
41897 `terminal_input' / `terminal_output' API.
41898 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
41899 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
41900 provided ${GRUB_TERMINAL}, convert it).
41902 2008-11-04 Robert Millan <rmh@aybabtu.com>
41904 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
41906 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
41908 2008-11-03 Bean <bean123ch@gmail.com>
41910 * kern/elf.c (grub_elf32_load): Revert to previous code.
41911 (grub_elf64_load): Likewise.
41913 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
41915 2008-11-01 Robert Millan <rmh@aybabtu.com>
41917 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
41918 (TARGET_CPPFLAGS): Likewise.
41919 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
41921 2008-11-01 Carles Pina i Estany <carles@pina.cat>
41923 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
41925 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41927 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
41928 addition of objects until the code is not going to be able to fail.
41930 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
41932 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
41933 (add a missing NULL check, and correct them by moving the pointer
41934 operations after the actual check).
41936 2008-10-29 Robert Millan <rmh@aybabtu.com>
41938 * util/i386/pc/grub-install.in: Handle empty string as output from
41939 make_system_path_relative_to_its_root().
41941 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
41943 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
41944 circular metadata worst case scenario. If the metadata is circular
41945 then copy the wrap in place.
41946 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
41947 project lib/format_text/layout.h
41948 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
41950 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41952 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
41954 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
41956 * util/update-grub_lib.in: Mention filename in warning message.
41958 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41960 * NEWS: Update for rename of update-grub to grub-mkconfig.
41962 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
41964 * util/update-grub_lib.in: Copy to ...
41965 * util/grub-mkconfig_lib.in: ... this. Update all users.
41966 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
41967 * util/update-grub.in: Rename to ...
41968 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
41969 option. Add `--output' option to allow users to specify the generated
41970 configuration file. Default to stdout.
41971 (update_grub_dir): Rename to ...
41972 (grub_mkconfig_dir): ... this.
41973 (grub_cfg): Default to an empty string.
41974 * conf/common.rmk (update-grub): Rename to ...
41975 (grub-mkconfig): ... this.
41976 (update-grub_lib): Copy to ...
41977 (grub-mkconfig_lib): ... this.
41978 (update-grub_SCRIPTS): Copy to ...
41979 (grub-mkconfig_SCRIPTS): ... this. Update all users.
41980 (update-grub_DATA): Rename to ...
41981 (grub-mkconfig_DATA): ... this.
41983 2008-09-28 Robert Millan <rmh@aybabtu.com>
41985 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
41986 to `modified'. Add the real `created' field.
41987 (grub_iso9660_uuid): Use `modified' rather than `created' for
41988 constructing the UUID.
41990 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
41992 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
41993 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
41995 2008-09-28 Bean <bean123ch@gmail.com>
41997 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
41998 Thanks to Christian Franke for finding this bug.
42000 2008-09-25 Robert Millan <rmh@aybabtu.com>
42002 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42003 instances of grub_util_get_disk_name() (see previous commit).
42005 2008-09-25 Robert Millan <rmh@aybabtu.com>
42007 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42008 `util/i386/get_disk_name.c'.
42009 * conf/i386-efi.rmk: Likewise.
42010 * conf/x86_64-efi.rmk: Likewise.
42011 * conf/i386-coreboot.rmk: Likewise.
42012 * conf/i386-ieee1275.rmk: Likewise.
42013 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42014 `util/ieee1275/get_disk_name.c'.
42015 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42016 * util/ieee1275/get_disk_name.c: Remove file.
42017 * util/i386/get_disk_name.c: Remove file.
42018 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42019 "hd%d" for device.map entries, rather than using
42020 grub_util_get_disk_name().
42022 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42024 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42026 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42028 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42030 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42032 (GRUB_TERM_PPAGE): Changed to 0x4900.
42034 2008-09-24 Robert Millan <rmh@aybabtu.com>
42036 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42037 macros (they were i386-pc specific).
42038 * include/grub/sparc64/ieee1275/console.h: Likewise.
42039 * include/grub/efi/console.h: Likewise.
42041 2008-09-22 Bean <bean123ch@gmail.com>
42043 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42044 resident and in attribute list.
42046 * include/grub/ntfs.h (BMP_LEN): Removed.
42048 2008-09-22 Bean <bean123ch@gmail.com>
42050 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42051 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42053 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42054 error occurs, as grub_disk_open will call grub_disk_close, which will
42055 call p->close (scsi).
42057 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42059 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42060 (AC_PREREQ): Bumped to 2.59.
42061 (AC_TRY_COMPILE): Replace obsolete macro with ...
42062 (AC_COMPILE_IFELSE): ... this.
42063 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42064 (AC_LINK_IFELSE): ... this.
42066 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42068 * autogen.sh: Add a call to `gendistlist.sh'.
42070 2008-09-19 Christian Franke <franke@computer.org>
42072 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42073 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42074 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42075 Export __enable_execute_stack() to modules.
42076 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42079 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42081 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42084 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42086 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42087 #include <grub/util/hostdisk.h>.
42089 2008-09-08 Robert Millan <rmh@aybabtu.com>
42091 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42092 segments when their filesz is zero (grub_file_read() interprets
42093 zero-size as "read until EOF", which results in memory corruption).
42094 Use `lowest_segment' rather than 0 for calculating the current
42095 segment load address.
42097 2008-09-08 Robert Millan <rmh@aybabtu.com>
42099 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42100 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42101 clobbered useful information.
42103 2008-09-08 Robert Millan <rmh@aybabtu.com>
42105 * include/grub/util/biosdisk.h: Move to ...
42106 * include/grub/util/hostdisk.h: ... here. Update all users.
42107 * util/biosdisk.c: Move to ...
42108 * util/hostdisk.c: ... here. Update all users.
42110 2008-09-07 Robert Millan <rmh@aybabtu.com>
42112 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42114 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42115 and length can be stored directly in the `mbi->mmap_addr' and
42116 `mbi->mmap_length' struct fields.
42118 2008-09-07 Robert Millan <rmh@aybabtu.com>
42120 * conf/i386.rmk: New file. Provides declaration for building
42122 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42123 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42125 Include `conf/i386.mk'.
42126 * conf/i386-efi.rmk: Likewise.
42127 * conf/x86_64-efi.rmk: Likewise.
42128 * conf/i386-coreboot.rmk: Likewise.
42129 * conf/i386-ieee1275.rmk: Likewise.
42131 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42133 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42134 Adds optimization support for BGR based modes.
42136 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42137 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42138 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42139 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42140 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42141 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42142 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42143 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42144 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42145 (grub_video_i386_vbeblit_index_index): Likewise.
42146 (grub_video_i386_vbeblit_replace_directN): Added.
42147 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42148 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42149 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42150 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42151 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42152 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42153 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42154 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42155 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42156 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42157 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42158 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42159 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42161 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42162 (grub_video_i386_vbefill_R8G8B8): Likewise.
42163 (grub_video_i386_vbefill_index): Likewise.
42164 (grub_video_i386_vbefill_direct32): Added.
42165 (grub_video_i386_vbefill_direct24): Likewise.
42166 (grub_video_i386_vbefill_direct16): Likewise.
42167 (grub_video_i386_vbefill_direct8): Likewise.
42169 * include/grub/video.h (grub_video_blit_format): Removed
42170 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42171 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42172 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42173 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42174 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42176 * video/video.c (grub_video_get_blit_format): Updated to use new
42177 blit formats. Added handling for 16 bit color modes.
42179 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42181 (common_blitter): Updated to use new blitters.
42183 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42185 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42186 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42187 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42188 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42189 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42190 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42191 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42192 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42193 (grub_video_i386_vbeblit_index_index): Likewise.
42194 (grub_video_i386_vbeblit_replace_directN): Added.
42195 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42196 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42197 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42198 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42199 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42200 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42201 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42202 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42203 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42204 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42205 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42206 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42207 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42209 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42210 (grub_video_i386_vbefill_R8G8B8): Likewise.
42211 (grub_video_i386_vbefill_index): Likewise.
42212 (grub_video_i386_vbefill_direct32): Added.
42213 (grub_video_i386_vbefill_direct24): Likewise.
42214 (grub_video_i386_vbefill_direct16): Likewise.
42215 (grub_video_i386_vbefill_direct8): Likewise.
42217 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42220 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42223 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42226 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42229 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42231 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42234 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42236 * fs/iso9660.c (grub_iso9660_date): New structure.
42237 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42238 (grub_iso9660_uuid): New function.
42240 2008-09-05 Bean <bean123ch@gmail.com>
42242 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42244 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42245 insensitive bit for names in Win32 and Win32 & DOS namespace.
42247 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42249 * include/grub/types.h (LONG_MAX): Likewise.
42251 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42253 * util/getroot.c: Include <config.h>.
42254 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42255 add support for /dev/md/N devices and handle LVM double dash escaping.
42257 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42259 * config.guess: Update to latest version from config git.
42260 * config.sub: Likewise.
42262 2008-09-03 Robert Millan <rmh@aybabtu.com>
42264 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42265 `disk->total_sectors'.
42267 2008-09-01 Colin D Bennett <colin@gibibit.com>
42269 * include/grub/normal.h: Fixed incorrect comment for
42270 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42272 2008-09-01 Colin D Bennett <colin@gibibit.com>
42274 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42275 values with defines.
42277 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42278 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42279 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42280 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42281 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42282 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42283 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42284 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42285 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42286 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42287 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42288 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42289 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42290 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42291 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42292 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42293 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42294 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42295 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42297 2008-08-31 Robert Millan <rmh@aybabtu.com>
42299 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42301 (grub_multiboot): Fix a few warnings.
42303 2008-08-31 Robert Millan <rmh@aybabtu.com>
42305 * loader/i386/pc/multiboot.c: Update comment not to say that
42306 boot_device support is unimplemented.
42308 2008-08-31 Robert Millan <rmh@aybabtu.com>
42310 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42311 or memory map support are unimplemented.
42313 2008-08-31 Colin D Bennett <colin@gibibit.com>
42315 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42317 2008-08-31 Colin D Bennett <colin@gibibit.com>
42319 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42320 total video memory in 'vbeinfo' output; show color format details for
42323 2008-08-30 Pavel Roskin <proski@gnu.org>
42325 * util/genmoddep.c: Remove for real this time.
42326 * DISTLIST: Remove util/genmoddep.c.
42328 2008-08-30 Robert Millan <rmh@aybabtu.com>
42330 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42331 as required by Multiboot spec (it was already 4-byte aligned, but
42334 2008-08-29 Pavel Roskin <proski@gnu.org>
42336 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42337 * kern/powerpc/ieee1275/startup.S: ... this.
42338 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42339 * DISTLIST: Likewise.
42341 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42342 grub/cpu/kernel.h. Add start label for consistency with other
42343 platforms. Add grub_prefix immediately after start. Add jump
42344 to the code after grub_prefix.
42345 * include/grub/powerpc/kernel.h: Provide valid values for
42346 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42348 2008-08-29 Bean <bean123ch@gmail.com>
42350 * configure.ac: Change host_os to cygwin for mingw.
42351 (asprintf): New check for function.
42353 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42354 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42356 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42357 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42358 sync, sleep and grub_util_get_disk_size for mingw.
42360 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42361 to get size in mingw.
42362 (open_device): Use flag O_BINARY if it's defined.
42363 (find_root_device): Add dummy code for mingw.
42365 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42366 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42367 (get_scsi_disk_name): Return 0 for mingw.
42369 * util/hostfs.c: #include <grub/util/misc.h>.
42370 (grub_hostfs_open): Use "rb" flag to open file, use
42371 grub_util_get_disk_size to get disk size for mingw.
42373 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42374 (asprintf): New function if HAVE_ASPRINTF is not set.
42375 (sync): New function for mingw.
42377 (grub_util_get_disk_size): Likewise.
42379 2008-08-28 Pavel Roskin <proski@gnu.org>
42381 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42384 2008-08-28 Robert Millan <rmh@aybabtu.com>
42386 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42388 2008-08-28 Robert Millan <rmh@aybabtu.com>
42390 Change find_grub_drive() syntax so it doesn't prevent it from
42391 detecting NULL names as errors.
42393 * util/biosdisk.c (find_grub_drive): Move free slot search code
42395 (find_free_slot): ... to here.
42396 (read_device_map): Use find_free_slot() to search for free slots.
42398 2008-08-27 Marco Gerards <marco@gnu.org>
42400 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42401 (scsi_mod_SOURCES): New variable.
42402 (scsi_mod_CFLAGS): Likewise
42403 (scsi_mod_LDFLAGS): Likewise.
42405 * disk/scsi.c: New file.
42407 * include/grub/scsi.h: Likewise.
42409 * include/grub/scsicmd.h: Likewise.
42411 * disk/ata.c: Include <grub/scsi.h>.
42412 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42414 (grub_ata_iterate): Skip ATAPI devices.
42415 (grub_ata_open): Only handle ATAPI devices.
42416 (struct grub_atapi_read): Removed.
42417 (grub_atapi_readsector): Likewise.
42418 (grub_ata_read): No longer handle ATAPI devices.
42419 (grub_ata_write): Likewise.
42420 (grub_atapi_iterate): New function.
42421 (grub_atapi_read): Likewise.
42422 (grub_atapi_write): Likewise.
42423 (grub_atapi_open): Likewise.
42424 (grub_atapi_close): Likewise.
42425 (grub_atapi_dev): New variable.
42426 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42427 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42429 * include/grub/disk.h (enum grub_disk_dev_id): Add
42430 `GRUB_DISK_DEVICE_SCSI_ID'.
42432 2008-08-26 Robert Millan <rmh@aybabtu.com>
42434 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42435 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42438 2008-08-23 Bean <bean123ch@gmail.com>
42440 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42441 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42442 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42443 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42445 (raid5rec_mod_SOURCES): New macro.
42446 (raid5rec_mod_CFLAGS): Likewise.
42447 (raid5rec_mod_LDFLAGS): Likewise.
42448 (raid6rec_mod_SOURCES): Likewise.
42449 (raid6rec_mod_CFLAGS): Likewise.
42450 (raid6rec_mod_LDFLAGS): Likewise.
42451 (mdraid_mod_SOURCES): Likewise.
42452 (mdraid_mod_CFLAGS): Likewise.
42453 (mdraid_mod_LDFLAGS): Likewise.
42454 (dm_nv_mod_SOURCES): Likewise.
42455 (dm_nv_mod_CFLAGS): Likewise.
42456 (dm_nv_mod_LDFLAGS): Likewise.
42458 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42459 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42460 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42462 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42463 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42465 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42467 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42469 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42471 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42473 * disk/raid5_recover.c: New file.
42475 * disk/raid6_recover.c: Likewise.
42477 * disk/mdraid_linux.c: Likewise.
42479 * disk/dmraid_nvidia.c: Likewise.
42481 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42484 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42485 calculate the size of raid device.
42486 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42487 different layout of raid5.
42488 (grub_raid_scan_device): Remove code specific to mdraid.
42489 (grub_raid_list): New variable.
42490 (free_array): New function.
42491 (grub_raid_register): Likewise.
42492 (grub_raid_unregister): Likewise.
42493 (grub_raid_rescan): Likewise.
42494 (GRUB_MOD_INIT): Don't iterate device here.
42495 (GRUB_MOD_FINI): Use free_array to release resource.
42497 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42498 (grub_raid5_recover_func_t): New function variable type.
42499 (grub_raid6_recover_func_t): Likewise.
42500 (grub_raid5_recover_func): New variable.
42501 (grub_raid6_recover_func): Likewise.
42502 (grub_raid_register): New function.
42503 (grub_raid_unregister): Likewise.
42504 (grub_raid_rescan): Likewise.
42505 (grub_raid_block_xor): Likewise.
42507 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42508 (CMD_CRC): New macro.
42510 (read_file): Handle device as well as file.
42511 (cmd_crc): New function.
42512 (fstest): Handle multiple disks.
42513 (options): Remove part, raw and long, add root and diskcount.
42514 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42515 (main): Find the first non option entry and ignore subsequent options,
42516 add handling for the new options, support multiple disks.
42518 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42520 2008-08-23 Bean <bean123ch@gmail.com>
42522 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42524 * genfslist.sh: Ignore kernel.mod.
42526 * genpartmaplist.sh: Likewise.
42528 2008-08-23 Robert Millan <rmh@aybabtu.com>
42530 * util/getroot.c (find_root_device): Skip anything that starts with
42531 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42533 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42535 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42536 * util/grub.d/00_header.in: Allow the administrator to change default
42537 gfxmode via ${GRUB_GFXMODE}.
42539 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42541 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42543 2008-08-21 Robert Millan <rmh@aybabtu.com>
42545 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42547 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42548 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42550 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42552 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42553 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42555 2008-08-19 Robert Millan <rmh@aybabtu.com>
42557 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42558 (struct grub_virtual_screen): Remove `cursor_color'.
42559 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42561 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42563 2008-08-18 Robert Millan <rmh@aybabtu.com>
42565 Unify (identical) linux_normal.c files.
42566 * loader/i386/efi/linux_normal.c: Move from here ...
42567 * loader/linux_normal.c: ... to here. Update all users.
42568 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42569 * loader/i386/ieee1275/linux_normal.c: Likewise.
42571 2008-08-18 Robert Millan <rmh@aybabtu.com>
42573 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42574 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42575 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42576 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42577 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42579 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42580 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42581 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42582 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42583 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42584 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42585 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42586 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42587 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42588 portably using grub_getxy().
42589 Replace `-EFI' with `-bzImage' in boot message.
42591 2008-08-17 Robert Millan <rmh@aybabtu.com>
42593 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42595 2008-08-17 Robert Millan <rmh@aybabtu.com>
42597 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42599 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42600 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42601 (grub_machine_mmap_iterate): New function declaration.
42602 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42604 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42607 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42608 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42609 Move e820 parsing from here ...
42610 * kern/i386/pc/mmap.c: New file.
42611 (grub_machine_mmap_iterate): ... to here.
42613 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42614 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42615 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42616 (grub_available_iterate): Redeclare to return `void', and redeclare
42617 its hook to use grub_uint64_t as addr and size parameters, and rename
42619 (grub_machine_mmap_iterate): ... this. Update all users.
42621 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42622 to make it more readable. Rename to ...
42623 (grub_machine_mmap_iterate): ... this.
42625 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42626 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42627 (grub_multiboot): Allocate an extra region after the payload, and fill
42628 it with a Multiboot memory map. Adjust a.out loader to calculate size
42629 with the extra space.
42630 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42631 with the extra space.
42633 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42635 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42637 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42639 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42640 mdate-sh to the list `find' searches for.
42641 * DISTLIST: Regenerated.
42643 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42645 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42646 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42647 genmoddep.awk, gensymlist.sh.in.
42648 (DISTDIRS): Add bus, docs, hook, lib.
42649 * DISTLIST: Regenerated.
42650 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42652 2008-08-16 Robert Millan <rmh@aybabtu.com>
42654 * disk/raid.c (grub_raid_init): Handle/report errors set by
42655 grub_device_iterate().
42656 * disk/lvm.c (grub_lvm_init): Likewise.
42658 2008-08-15 Bean <bean123ch@gmail.com>
42660 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42662 (datetime_mod_SOURCES): New macro.
42663 (datetime_mod_CFLAGS): Likewise.
42664 (datetime_mod_LDFLAGS): Likewise.
42665 (date_mod_SOURCES): Likewise.
42666 (date_mod_CFLAGS): Likewise.
42667 (date_mod_LDFLAGS): Likewise.
42668 (datehook_mod_SOURCES): Likewise.
42669 (datehook_mod_CFLAGS): Likewise.
42670 (datehook_mod_LDFLAGS): Likewise.
42672 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42674 (datetime_mod_SOURCES): New macro.
42675 (datetime_mod_CFLAGS): Likewise.
42676 (datetime_mod_LDFLAGS): Likewise.
42677 (date_mod_SOURCES): Likewise.
42678 (date_mod_CFLAGS): Likewise.
42679 (date_mod_LDFLAGS): Likewise.
42680 (datehook_mod_SOURCES): Likewise.
42681 (datehook_mod_CFLAGS): Likewise.
42682 (datehook_mod_LDFLAGS): Likewise.
42684 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42686 (datetime_mod_SOURCES): New macro.
42687 (datetime_mod_CFLAGS): Likewise.
42688 (datetime_mod_LDFLAGS): Likewise.
42689 (date_mod_SOURCES): Likewise.
42690 (date_mod_CFLAGS): Likewise.
42691 (date_mod_LDFLAGS): Likewise.
42692 (datehook_mod_SOURCES): Likewise.
42693 (datehook_mod_CFLAGS): Likewise.
42694 (datehook_mod_LDFLAGS): Likewise.
42696 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42698 (datetime_mod_SOURCES): New macro.
42699 (datetime_mod_CFLAGS): Likewise.
42700 (datetime_mod_LDFLAGS): Likewise.
42701 (date_mod_SOURCES): Likewise.
42702 (date_mod_CFLAGS): Likewise.
42703 (date_mod_LDFLAGS): Likewise.
42704 (datehook_mod_SOURCES): Likewise.
42705 (datehook_mod_CFLAGS): Likewise.
42706 (datehook_mod_LDFLAGS): Likewise.
42708 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42710 (datetime_mod_SOURCES): New macro.
42711 (datetime_mod_CFLAGS): Likewise.
42712 (datetime_mod_LDFLAGS): Likewise.
42713 (date_mod_SOURCES): Likewise.
42714 (date_mod_CFLAGS): Likewise.
42715 (date_mod_LDFLAGS): Likewise.
42716 (datehook_mod_SOURCES): Likewise.
42717 (datehook_mod_CFLAGS): Likewise.
42718 (datehook_mod_LDFLAGS): Likewise.
42720 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42722 * commands/date.c: New file.
42724 * hook/datehook.c: Likewise.
42726 * include/grub/lib/datetime.h: Likewise.
42728 * include/grub/i386/cmos.h: Likewise.
42730 * lib/datetime.c: Likewise.
42732 * lib/i386/datetime.c: Likewise.
42734 * lib/efi/datetime.c: Likewise.
42736 2008-08-14 Robert Millan <rmh@aybabtu.com>
42738 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42739 (grub_mkelfimage_SOURCES): New variable.
42740 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42742 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42743 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42744 * conf/powerpc-ieee1275.rmk: Likewise.
42745 * conf/i386-ieee1275.rmk: Likewise.
42747 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42748 * kern/i386/coreboot/init.c: Likewise.
42750 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42751 with `<grub/cpu/kernel.h>'.
42752 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42754 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42755 * kern/i386/coreboot/startup.S: Likewise.
42757 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42758 (GRUB_MOD_GAP): Remove.
42759 * include/grub/powerpc/kernel.h: New file.
42760 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42761 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42762 * include/grub/i386/kernel.h: New file.
42763 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42764 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42765 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42767 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42769 Use --directory when invoking grub_mkimage.
42771 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42772 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42773 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42774 and GRUB_KERNEL_CPU_PREFIX.
42776 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42778 * include/grub/err.h (grub_err_printf): New function prototype.
42779 * util/misc.c (grub_err_printf): New function.
42780 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42782 * kern/err.c (grub_print_error): Use grub_err_printf.
42784 2008-08-13 Robert Millan <rmh@aybabtu.com>
42786 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42788 2008-08-13 Robert Millan <rmh@aybabtu.com>
42790 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42793 2008-08-12 Robert Millan <rmh@aybabtu.com>
42795 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42796 of the relocation code from here ...
42797 (grub_multiboot): ... to here.
42798 (forward_relocator, backward_relocator): Move from here ...
42799 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42800 (grub_multiboot_backward_relocator): ... to here.
42801 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42802 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42803 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42804 (grub_multiboot_forward_relocator_end)
42805 (grub_multiboot_backward_relocator)
42806 (grub_multiboot_backward_relocator_end): New variables.
42808 2008-08-12 Bean <bean123ch@gmail.com>
42810 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42812 2008-08-11 Robert Millan <rmh@aybabtu.com>
42814 * kern/i386/linuxbios/startup.S: Move from here ...
42815 * kern/i386/coreboot/startup.S: ... to here.
42817 * kern/i386/linuxbios/init.c: Move from here ...
42818 * kern/i386/coreboot/init.c: ... to here.
42820 * kern/i386/linuxbios/table.c: Move from here ...
42821 * kern/i386/coreboot/mmap.c: ... to here.
42823 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42825 2008-08-11 Robert Millan <rmh@aybabtu.com>
42827 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42828 errors. Leave it to the upper layer to handle them.
42830 2008-08-09 Christian Franke <franke@computer.org>
42832 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42833 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42834 Install `grub.d/10_windows' only on Cygwin.
42835 * configure.ac: Add subst of `target_os'.
42836 Check `target_os' also before setting TARGET_OBJ2ELF.
42837 Add `--enable-grub-pe2elf'.
42839 2008-08-08 Robert Millan <rmh@aybabtu.com>
42841 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42842 (grub_last_time): Change type to grub_uint64_t.
42843 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42844 (grub_disk_close): Likewise.
42846 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42847 (run_menu): Migrate code from to using grub_get_time_ms().
42849 * util/misc.c (grub_get_time_ms): New function.
42851 2008-08-08 Marco Gerards <marco@gnu.org>
42853 * disk/ata.c (grub_ata_regget): Change return type to
42855 (grub_ata_regget2): Likewise.
42856 (grub_ata_wait_status): New function.
42857 (grub_ata_wait_busy): Removed function, updated all users to use
42858 `grub_ata_wait_status'.
42859 (grub_ata_wait_drq): Likewise.
42860 (grub_ata_cmd): New function.
42861 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
42863 (grub_ata_pio_write): Add error handling.
42864 (grub_atapi_identify): Likewise.
42865 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
42867 (grub_ata_identify): Use `grub_ata_cmd' and improve error
42868 handling. Actually use the detected registers. Reorder the
42869 detection logic such that it is easier to read.
42870 (grub_ata_pciinit): Do not assign the same ID to each controller.
42871 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
42873 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
42875 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
42877 2008-08-08 Marco Gerards <marco@gnu.org>
42881 2008-08-07 Bean <bean123ch@gmail.com>
42883 * include/grub/x86_64/pci.h: New file.
42885 2008-08-07 Christian Franke <franke@computer.org>
42887 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
42888 (TIMER2_GATE): Likewise.
42889 (grub_pit_wait): Add enable/disable of the timer2 gate
42890 bit of port 0x61. This fixes a possible infinite loop.
42892 2008-08-07 Bean <bean123ch@gmail.com>
42894 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
42895 kern/i386/tsc.c and kern/i386/pit.c.
42897 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
42900 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
42903 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
42905 2008-08-07 Bean <bean123ch@gmail.com>
42907 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
42909 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
42911 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
42912 multiple inclusion. Add #include <grub/types.h>.
42914 2008-08-06 Christian Franke <franke@computer.org>
42916 * conf/common.rmk: Build and install `10_windows'.
42917 * util/grub.d/10_windows.in: New script.
42919 2008-08-06 Pavel Roskin <proski@gnu.org>
42921 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
42923 2008-08-06 Robert Millan <rmh@aybabtu.com>
42925 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
42926 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
42928 2008-08-06 Bean <bean123ch@gmail.com>
42930 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
42931 (grub_pxefs_fs_int): Remove dummy definition.
42932 (grub_pxefs_open): Use data->block_size to store the current block
42934 (grub_pxefs_read): Use block size stored in data->block_size. As the
42935 value of grub_pxe_blksize can be changed after the file is opened.
42937 2008-08-06 Bean <bean123ch@gmail.com>
42939 * fs/i386/pc/pxe.c (curr_file): new variable.
42940 (grub_pxefs_open): Simply the handling of pxe file system. Don't
42941 require the dummy internal file system anymore.
42942 (grub_pxefs_read): Removed.
42943 (grub_pxefs_close): Likewise.
42944 (grub_pxefs_fs_int): Likewise.
42945 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
42946 connection when we switch file.
42947 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
42949 2008-08-06 Robert Millan <rmh@aybabtu.com>
42951 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
42953 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
42954 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
42956 * kern/i386/halt.c: New file.
42957 * kern/i386/reboot.c: Likewise.
42958 * include/grub/i386/reboot.h: Likewise.
42959 * include/grub/i386/halt.h: Likewise.
42961 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
42962 Include `<grub/cpu/halt.h>'.
42963 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
42964 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
42966 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
42967 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
42968 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
42969 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
42970 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
42971 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
42973 * include/grub/i386/at_keyboard.h: ... to here.
42975 2008-08-05 Robert Millan <rmh@aybabtu.com>
42977 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
42978 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
42979 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
42980 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
42981 `kern/generic/millisleep.c'.
42983 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
42984 instead of grub_get_rtc().
42985 (grub_tsc_init): Initialize `tsc_boot_time'.
42987 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
42988 (grub_machine_init): Use grub_tsc_init() rather than
42989 installing an RTC-based handler via grub_install_get_time_ms().
42991 * kern/i386/pit.c: New file.
42992 * include/grub/i386/pit.h: Likewise.
42994 2008-08-05 Bean <bean123ch@gmail.com>
42996 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
42998 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
42999 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43000 (pxe_mod_SOURCES): New macro.
43001 (pxe_mod_CFLAGS): Likewise.
43002 (pxe_mod_LDFLAGS): Likewise.
43003 (pxecmd_mod_SOURCES): Likewise.
43004 (pxecmd_mod_CFLAGS): Likewise.
43005 (pxecmd_mod_LDFLAGS): Likewise.
43007 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43008 (grub_pxe_call): Likewise.
43010 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43012 * commands/i386/pc/pxecmd.c: New file.
43014 * fs/i386/pc/pxe.c: Likewise.
43016 * include/grub/i386/pc/pxe.h: Likewise.
43018 2008-08-05 Bean <bean123ch@gmail.com>
43020 * util/console.c (grub_console_cur_color): New variable.
43021 (grub_console_standard_color): Likewise.
43022 (grub_console_normal_color): Likewise.
43023 (grub_console_highlight_color): Likewise.
43024 (color_map): Likewise.
43025 (use_color): Likewise.
43026 (NUM_COLORS): New macro.
43027 (grub_ncurses_setcolorstate): Handle color properly.
43028 (grub_ncurses_setcolor): Don't change color here, just remember the
43029 settings, color will be set in grub_ncurses_setcolorstate.
43030 (grub_ncurses_getcolor): New function.
43031 (grub_ncurses_init): Initialize color pairs.
43032 (grub_ncurses_term): New member grub_ncurses_getcolor.
43034 2008-08-05 Colin D Bennett <colin@gibibit.com>
43036 High resolution timer support. Implemented for x86 CPUs using TSC.
43037 Extracted generic grub_millisleep() so it's linked in only as needed.
43038 This requires a Pentium compatible CPU; if the RDTSC instruction is
43039 not supported, then it falls back on the generic grub_get_time_ms()
43040 implementation that uses the machine's RTC.
43042 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43043 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43044 `kern/generic/millisleep.c'.
43046 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43047 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43049 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43050 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43052 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43054 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43055 `kern/generic/millisleep.c'.
43057 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43059 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43061 * kern/generic/rtc_get_time_ms.c: New file.
43063 * kern/generic/millisleep.c: New file.
43065 * kern/misc.c: Don't include
43066 <kern/time.h> anymore.
43067 (grub_millisleep_generic): Removed.
43069 * commands/sleep.c (grub_interruptible_millisleep): Uses
43070 grub_get_time_ms() instead of grub_get_rtc().
43072 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43074 (grub_cpu_is_cpuid_supported): New inline function.
43075 (grub_cpu_is_tsc_supported): New inline function.
43076 (grub_tsc_init): New function prototype.
43077 (grub_tsc_get_time_ms): New function prototype.
43079 * kern/i386/tsc.c (grub_get_time_ms): New file.
43081 * include/grub/time.h: Include <grub/types.h.
43082 (grub_millisleep_generic): Removed.
43083 (grub_get_time_ms): New prototype.
43084 (grub_install_get_time_ms): New prototype.
43085 (grub_rtc_get_time_ms): New prototype.
43087 * kern/time.c (grub_get_time_ms): New function.
43088 (grub_install_get_time_ms): New function.
43090 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43091 <grub/time.h> anymore.
43092 (grub_millisleep): Removed.
43093 (grub_machine_init): Call grub_tsc_init.
43095 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43096 get_time_ms() implementation.
43098 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43099 (ieee1275_get_time_ms): New function.
43100 (grub_machine_init): Install get_time_ms() implementation.
43102 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43103 (grub_machine_init): Call grub_tsc_init().
43104 (grub_millisleep): Removed.
43106 * kern/ieee1275/init.c (grub_millisleep): Removed.
43107 (grub_machine_init): Install ieee1275_get_time_ms()
43109 (ieee1275_get_time_ms): New function.
43110 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43113 2008-08-05 Marco Gerards <marco@gnu.org>
43115 * disk/ata.c: Include <grub/pci.h>.
43116 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43117 (grub_ata_initialize): Rewritten.
43118 (grub_ata_device_initialize): New function.
43120 2008-08-04 Pavel Roskin <proski@gnu.org>
43122 * kern/main.c: Include grub/mm.h.
43124 2008-08-04 Robert Millan <rmh@aybabtu.com>
43126 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43127 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43128 corruption problem).
43130 2008-08-04 Robert Millan <rmh@aybabtu.com>
43132 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43133 warnings introduced in my last commit.
43135 2008-08-03 Robert Millan <rmh@aybabtu.com>
43137 Make PCI available on all i386 architectures.
43139 * include/grub/i386/pc/pci.h: Move from here ...
43140 * include/grub/i386/pci.h: ... to here.
43142 * include/grub/i386/pc/pci.h: Remove.
43143 * include/grub/i386/efi/pci.h: Remove.
43144 * include/grub/x86_64/efi/pci.h: Remove.
43146 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43147 `<grub/cpu/pci.h>'.
43149 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43150 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43151 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43153 * conf/i386-ieee1275.rmk: Likewise.
43155 2008-08-03 Robert Millan <rmh@aybabtu.com>
43157 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43158 (grub_console_setcursor): Make it possible to set cursor off.
43160 2008-08-03 Robert Millan <rmh@aybabtu.com>
43162 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43163 of modules instead of assuming which platform provides what.
43164 * util/update-grub.in: Likewise.
43166 2008-08-03 Robert Millan <rmh@aybabtu.com>
43168 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43169 instead of `grub_install_dos_part' to determine whether a drive needs
43170 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43171 because it can be overridden when loading GRUB via Multiboot).
43173 2008-08-02 Robert Millan <rmh@aybabtu.com>
43175 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43177 2008-08-02 Robert Millan <rmh@aybabtu.com>
43179 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43180 of informational grub_dprintf() calls.
43182 2008-08-02 Robert Millan <rmh@aybabtu.com>
43184 * disk/memdisk.c (memdisk_size): Don't initialize.
43185 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43187 * include/grub/i386/pc/kernel.h
43188 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43189 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43190 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43191 (grub_arch_memdisk_size): Remove.
43193 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43194 field (was only used to transfer a constant). Add `type' field to
43195 support multiple module types.
43196 (grub_module_iterate): New function.
43198 * kern/device.c (grub_device_open): Do not hide error messages
43199 when grub_disk_open() fails. Use grub_print_error() instead.
43201 * kern/i386/pc/init.c (grub_arch_modules_addr)
43202 (grub_arch_memdisk_size): Remove functions.
43203 (grub_arch_modules_addr): Return the module address in high memory
43204 (now that it isn't copied anymore).
43206 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43207 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43208 decompression routine (grub_total_module_size already includes that
43209 now). Don't copy modules back to low memory.
43211 * kern/main.c: Include `<grub/mm.h>'.
43212 (grub_load_modules): Split out (and use) ...
43213 (grub_module_iterate): ... this function, which iterates through
43214 module objects and runs a hook.
43215 Comment out grub_mm_init_region() call, as it would cause non-ELF
43216 modules to be overwritten.
43218 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43219 the memdisk image in its own region, make it part of the module list.
43220 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43221 (main): Parse --memdisk|-m option, and pass user-provided path as
43222 parameter to generate_image().
43223 (add_segments): Pass `memdisk_path' down to load_modules().
43224 (load_modules): Embed memdisk image in module section when requested.
43225 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43226 `header.type' instead of `header.offset'.
43228 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43229 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43230 (memdisk_mod_LDFLAGS): New variables.
43231 * conf/i386-coreboot.rmk: Likewise.
43232 * conf/i386-ieee1275.rmk: Likewise.
43234 2008-08-02 Robert Millan <rmh@aybabtu.com>
43236 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43237 (backward_relocator): New variables. Used to allocate and relocate
43238 the payload, respectively.
43239 (grub_multiboot_load_elf32): Load into heap instead of requested
43240 address, install the appropriate relocator code in each bound of
43241 the payload, and set the entry point such that
43242 grub_multiboot_real_boot() will jump to one of them.
43244 * kern/i386/loader.S (grub_multiboot_payload_size)
43245 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43246 (grub_multiboot_payload_entry_offset): New variables.
43247 (grub_multiboot_real_boot): Set cpu context to what the relocator
43248 expects, and jump to the relocator instead of the payload.
43250 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43251 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43252 (grub_multiboot_payload_entry_offset): Export.
43254 2008-08-01 Bean <bean123ch@gmail.com>
43256 * normal/menu_entry.c (editor_getline): Don't return the original
43257 string as result, as it will be released by lexer once it has done
43260 2008-08-01 Robert Millan <rmh@aybabtu.com>
43262 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43263 within menuentries, not before them.
43264 util/grub.d/10_hurd.in: Likewise.
43266 2008-08-01 Bean <bean123ch@gmail.com>
43268 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43269 (bufio_mod_SOURCES): New macro.
43270 (bufio_mod_CFLAGS): Likewise.
43271 (bufio_mod_LDFLAGS): Likewise.
43273 * include/grub/bufio.h: New file.
43275 * io/bufio.c: Likewise.
43277 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43278 (grub_video_reader_png): Use grub_buffile_open to open file.
43280 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43281 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43283 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43284 (grub_video_reader_tga): Use grub_buffile_open to open file.
43286 * font/manager.c: Include <grub/bufio.h>.
43287 (add_font): Use grub_buffile_open to open file.
43289 2008-07-31 Robert Millan <rmh@aybabtu.com>
43291 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43292 ELF segments, use a macro for arbitrarily accessing any of them instead
43293 of preparing a pointer that allows access to one at a time.
43294 (grub_multiboot_load_elf64): Likewise.
43296 2008-07-31 Bean <bean123ch@gmail.com>
43298 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43299 GRUB_KERNEL_MACHINE_DATA_END.
43301 2008-07-30 Robert Millan <rmh@aybabtu.com>
43303 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43304 Increase from 0x50 to 0x60.
43305 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43306 use UUIDs to identify the root drive for them. If that's not
43308 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43309 check, for cross-disk installs.
43311 2008-07-30 Robert Millan <rmh@aybabtu.com>
43313 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43314 is non-empty, use it to set the `prefix' environment variable instead
43315 of the usual approach.
43316 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43317 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43318 environment variable instead of dummy make_install_device().
43320 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43321 (start): Insert a data section, with `grub_prefix' variable.
43322 * kern/i386/linuxbios/startup.S: Likewise.
43324 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43325 New variable reference.
43326 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43327 New macro. Defines offset of `grub_prefix' within startup.S (relative
43329 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43330 section within startup.S (relative to `start').
43331 * include/grub/i386/coreboot/kernel.h: Likewise.
43333 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43334 Overwrite grub_prefix with its contents, at the beginning of the
43336 (main): Understand -p|--prefix.
43338 2008-07-30 Robert Millan <rmh@aybabtu.com>
43340 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43342 2008-07-30 Robert Millan <rmh@aybabtu.com>
43344 * term/i386/pc/vga_text.c (grub_console_cls): Use
43345 grub_console_gotoxy() to go back to beginning of the screen.
43346 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43348 2008-07-29 Christian Franke <franke@computer.org>
43350 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43351 Add conversion of emulated mount points on Cygwin.
43353 2008-07-29 Christian Franke <franke@computer.org>
43355 * util/update-grub.in: Add a check for admin
43357 Remove old `grub.cfg.new' before creation.
43358 Add `-f' to `mv' to handle the different filesystem
43359 semantics of Windows.
43361 2008-07-29 Bean <bean123ch@gmail.com>
43363 * normal/main.c (get_line): Fix buffer overflow bug.
43365 2008-07-28 Robert Millan <rmh@aybabtu.com>
43367 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43368 (struct grub_apple_header): New struct. Describes the layout of
43369 the partmap header.
43370 (apple_partition_map_iterate): Check the header magic as well as the
43371 partition magic (which was already being checked).
43373 2008-07-28 Pavel Roskin <proski@gnu.org>
43375 * genmk.rb: Add a warning to the beginning of the output that
43376 it's a generated file and should not be edited.
43378 2008-07-28 Robert Millan <rmh@aybabtu.com>
43380 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43381 with the same number are found, just use issue a warning with
43382 grub_dprintf(), as this error has been reported to be non-fatal.
43384 2008-07-27 Robert Millan <rmh@aybabtu.com>
43386 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43389 2008-07-27 Bean <bean123ch@gmail.com>
43391 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43392 (grub_fat_find_dir): Ignore case when comparing filename.
43394 2008-07-27 Bean <bean123ch@gmail.com>
43396 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43397 smallino, as it's more descriptive, and i8count can be confused with
43398 the other field count.
43399 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43402 2008-07-27 Bean <bean123ch@gmail.com>
43404 * commands/crc.c: New file.
43406 * lib/crc.c: Likewise.
43408 * include/grub/lib/crc.h: Likewise.
43410 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43412 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43413 (hexdump): Move this function to ...
43415 * lib/hexdump.c: ... here.
43417 * include/grub/hexdump.h: Renamed to ...
43419 * include/grub/lib/hexdump.h: ... this.
43421 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43423 * util/grub-editenv.c: Likewise.
43425 * include/envblk.h: Renamed to ...
43427 * include/lib/envblk.h: ... this.
43429 * util/envblk.c: Renamed to ...
43431 * lib/envblk.c: ... this.
43433 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43435 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43436 (pkglib_MODULES): Add crc.mod.
43437 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43438 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43439 (crc_mod_SOURCES): New macro.
43440 (crc_mod_CFLAGS): Likewise.
43441 (crc_mod_LDFLAGS): Likewise.
43443 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43445 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43447 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43449 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43451 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43453 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43455 * commands/help.c: Include <grub/term.h>.
43456 (TERM_WIDTH): Removed. Updated all users.
43458 2008-07-27 Pavel Roskin <proski@gnu.org>
43460 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43461 spurious warnings about a comment within a comment.
43463 2008-07-25 Robert Millan <rmh@aybabtu.com>
43465 * util/getroot.c (find_root_device): Skip devices that match
43466 /dev/dm-[0-9]. This lets the real device be found for any type of
43467 abstraction (LVM, EVMS, RAID..).
43468 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43469 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43470 device is found first, find_root_device() will now skip it.
43472 2008-07-24 Pavel Roskin <proski@gnu.org>
43474 * include/grub/types.h: Use __builtin_bswap32() and
43475 __builtin_bswap64() with gcc 4.3 and newer.
43477 2008-07-24 Christian Franke <franke@computer.org>
43479 * util/i386/pc/grub-install.in: If `--debug' is specified,
43480 pass `--verbose' to grub-setup.
43481 Abort script if make_system_path_relative_to_its_root() fails.
43483 2008-07-24 Bean <bean123ch@gmail.com>
43485 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43486 variable `target_platform' should be `platform'.
43488 2008-07-24 Bean <bean123ch@gmail.com>
43490 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43491 (grub_png_init_fixed_block): New function.
43492 (grub_png_decode_image_data): Handle fixed huffman code compression.
43494 2008-07-24 Bean <bean123ch@gmail.com>
43496 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43497 (grub_pe2elf_SOURCES): New macro.
43498 (CLEANFILES): Add grub-pe2elf.
43500 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43501 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43502 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43503 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43504 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43505 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43506 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43507 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43508 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43509 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43510 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43511 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43512 (GRUB_PE32_DT_FUNCTION): Likewise.
43513 (GRUB_PE32_REL_I386_DIR32): Likewise.
43514 (GRUB_PE32_REL_I386_REL32): Likewise.
43515 (grub_pe32_symbol): New structure.
43516 (grub_pe32_reloc): Likewise.
43518 * util/grub-pe2elf.c: New file.
43520 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43521 start symbol in non pc platform.
43523 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43525 The following patches are from Christian Franke.
43527 * include/grub/dl.h: Remove .previous, gas supports this only
43530 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43531 Remove .type, gas supports this only for ELF format.
43533 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43534 nullbytes in symbol table. This fixes an infinite loop if table is
43537 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43538 TARGET_IMG_LDFLAGS and EXEEXT.
43540 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43541 TARGET_IMG_LDFLAGS_AC.
43542 (grub_CHECK_STACK_ARG_PROBE): New function.
43544 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43546 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43548 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43549 to set TARGET_IMG_LD* accordingly.
43550 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43551 Add call to grub_CHECK_STACK_ARG_PROBE.
43552 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43554 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43556 * genmk.rb: Add EXEEXT to CLEANFILES.
43558 2008-07-23 Robert Millan <rmh@aybabtu.com>
43560 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43561 define the codes for arrows and lines used for the menu).
43562 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43565 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43566 fonts, because the latter are too slow.
43568 2008-07-21 Bean <bean123ch@gmail.com>
43570 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43571 a20. Run keyboard test last, as it will cause macbook to halt.
43573 2008-07-18 Pavel Roskin <proski@gnu.org>
43575 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43576 load foreign architecture modules correctly anyway. Keep
43577 support for loading host architecture modules, whether we
43578 compile them or not.
43580 2008-07-17 Pavel Roskin <proski@gnu.org>
43582 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43583 change target_cpu. The compiler default can mismatch target_cpu
43586 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43587 * kern/efi/efi.c: Likewise.
43589 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43590 target compiler is functional.
43591 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43594 * configure.ac: Default to efi platform for x86_64-apple. Allow
43595 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43596 adjustments from the rest, only do them if target is not
43597 explicitly given. Merge other adjustments with the final sanity
43598 check. Remove an extraneous check for supported CPU. Be
43599 specific which CPU and which platform is not supported.
43601 * configure.ac: Default to pc platform for x86_64.
43603 2008-07-17 Robert Millan <rmh@aybabtu.com>
43605 Partial LinuxBIOS -> Coreboot rename.
43607 * conf/i386-linuxbios.rmk: Renamed to ...
43608 * conf/i386-coreboot.rmk: ... this.
43609 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43610 * configure.ac: Accept "coreboot" as input platform (but maintain
43611 compatibility with "linuxbios").
43612 * include/grub/i386/linuxbios: Renamed to ...
43613 * include/grub/i386/coreboot: ... this.
43615 2008-07-17 Bean <bean123ch@gmail.com>
43617 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43618 (appleldr_mod_SOURCE): New variable.
43619 (appleldr_mod_CFLAGS): Likewise.
43620 (appleldr_mod_LDFLAGS): Likewise.
43621 (pci_mod_SOURCES): Likewise.
43622 (pci_mod_CFLAGS): Likewise.
43623 (pci_mod_LDFLAGS): Likewise.
43624 (lspci_mod_SOURCES): Likewise.
43625 (lspci_mod_CFLAGS): Likewise.
43626 (lspci_mod_LDFLAGS): Likewise.
43628 * conf/x86_64-efi.rmk: New file.
43630 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43632 (grub_efidisk_write): Likewise.
43634 * include/efi/api.h (efi_call_0): New macro.
43635 (efi_call_1): Likewise.
43636 (efi_call_2): Likewise.
43637 (efi_call_3): Likewise.
43638 (efi_call_4): Likewise.
43639 (efi_call_5): Likewise.
43640 (efi_call_6): Likewise.
43642 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43643 grub_rescue_cmd_chainloader.
43645 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43646 (grub_pe32_optional_header): Change some fields based on i386 or
43648 (GRUB_PE32_PE32_MAGIC): Likewise.
43650 * include/grub/efi/uga_draw.h: New file.
43652 * include/grub/elf.h (STN_ABS): New constant.
43653 (R_X86_64_NONE): Relocation constant for x86_64.
43654 (R_X86_64_64): Likewise.
43655 (R_X86_64_PC32): Likewise.
43656 (R_X86_64_GOT32): Likewise.
43657 (R_X86_64_PLT32): Likewise.
43658 (R_X86_64_COPY): Likewise.
43659 (R_X86_64_GLOB_DAT): Likewise.
43660 (R_X86_64_JUMP_SLOT): Likewise.
43661 (R_X86_64_RELATIVE): Likewise.
43662 (R_X86_64_GOTPCREL): Likewise.
43663 (R_X86_64_32): Likewise.
43664 (R_X86_64_32S): Likewise.
43665 (R_X86_64_16): Likewise.
43666 (R_X86_64_PC16): Likewise.
43667 (R_X86_64_8): Likewise.
43668 (R_X86_64_PC8): Likewise.
43670 * include/grub/i386/efi/pci.h: New file.
43672 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43673 Change it value based on platform.
43674 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43675 (GRUB_E820_RAM): Likewise.
43676 (GRUB_E820_RESERVED): Likewise.
43677 (GRUB_E820_ACPI): Likewise.
43678 (GRUB_E820_NVS): Likewise.
43679 (GRUB_E820_EXEC_CODE): Likewise.
43680 (GRUB_E820_MAX_ENTRY): Likewise.
43681 (grub_e820_mmap): New structure.
43682 (linux_kernel_header): Change the efi field according to different
43683 kernel version, also field from linux_kernel_header.
43685 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43687 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43688 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43689 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43690 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43691 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43692 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43693 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43694 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43695 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43696 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43698 * include/grub/x86_64/efi/kernel.h: New file.
43700 * include/grub/x86_64/efi/loader.h: Likewise.
43702 * include/grub/x86_64/efi/machine.h: Likewise.
43704 * include/grub/x86_64/efi/pci.h: Likewise.
43706 * include/grub/x86_64/efi/time.h: Likewise.
43708 * include/grub/x86_64/linux.h: Likewise.
43710 * include/grub/x86_64/setjmp.h: Likewise.
43712 * include/grub/x86_64/time.h: Likewise.
43714 * include/grub/x86_64/types.h: Likewise.
43716 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43717 GRUB_TARGET_SIZEOF_VOID_P.
43719 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43720 (grub_efi_locate_handle): Likewise.
43721 (grub_efi_open_protocol): Likewise.
43722 (grub_efi_set_text_mode): Likewise.
43723 (grub_efi_stall): Likewise.
43724 (grub_exit): Likewise.
43725 (grub_reboot): Likewise.
43726 (grub_halt): Likewise.
43727 (grub_efi_exit_boot_services): Likewise.
43728 (grub_get_rtc): Likewise.
43730 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43731 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43732 (grub_efi_allocate_pages): Wrap efi calls.
43733 (grub_efi_free_pages): Wrap efi calls.
43734 (grub_efi_get_memory_map): Wrap efi calls.
43736 * kern/x86_64/dl.c: New file.
43738 * kern/x86_64/efi/callwrap.S: Likewise.
43740 * kern/x86_64/efi/startup.S: Likewise.
43742 * loader/efi/appleloader.c: Likewise.
43744 * loader/efi/chainloader.c (cmdline): New variable.
43745 (grub_chainloader_unload): Wrap efi calls.
43746 (grub_chainloader_boot): Likewise.
43747 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43750 * loader/efi/chainloader_normal.c (chainloader_command):
43751 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43754 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43756 (grub_e820_add_region): New function.
43757 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43759 (grub_find_video_card): New function.
43760 (grub_linux_setup_video): New function.
43761 (grub_rescue_cmd_linux): Probe for video information.
43763 * normal/x86_64/setjmp.S: New file.
43765 * term/efi/console.c (map_char): New function.
43766 (grub_console_putchar): Map unicode char.
43767 (grub_console_checkkey): Wrap efi calls.
43768 (grub_console_getkey): Likewise.
43769 (grub_console_getwh): Likewise.
43770 (grub_console_gotoxy): Likewise.
43771 (grub_console_cls): Likewise.
43772 (grub_console_setcolorstate): Likewise.
43773 (grub_console_setcursor): Likewise.
43775 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43777 2008-07-16 Pavel Roskin <proski@gnu.org>
43779 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43782 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43783 pointer, not an integer. This fixes a warning and prevents
43784 precision loss on 64-bit systems.
43785 (relocate_addresses): Remove unneeded cast.
43787 2008-07-15 Pavel Roskin <proski@gnu.org>
43789 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43791 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43793 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43794 Fix comparison between signed and unsigned.
43796 * include/grub/i386/ieee1275/console.h: Declare
43797 grub_console_init() and grub_console_fini().
43799 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43800 It's empty and unused.
43802 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43803 beginning to avoid warnings with some compilers.
43805 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43806 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43808 2008-07-14 Pavel Roskin <proski@gnu.org>
43810 * kern/env.c (grub_register_variable_hook): Don't copy empty
43811 string, it leaks memory. Pass "" to grub_env_set(), it should
43812 handle constant strings.
43814 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43815 * commands/cmp.c (grub_cmd_cmp): Likewise.
43816 * kern/dl.c (grub_dl_flush_cache): Likewise.
43817 (grub_dl_load_core): Likewise.
43818 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43819 (grub_elf64_load_phdrs): Likewise.
43821 2008-07-13 Pavel Roskin <proski@gnu.org>
43823 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43824 between signed and unsigned.
43825 (LzmaEnc_Finish): Fix warning about an unused parameter.
43827 2008-07-13 Bean <bean123ch@gmail.com>
43829 * Makefile.in (enable_lzo): New rule.
43831 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43833 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43835 * boot/i386/pc/lnxboot.S: #include <config.h>.
43837 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
43838 its value according to the compression algorithm used, lzo or lzma.
43840 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43841 compression algorithm according to configure macro.
43843 * kern/i386/pc/startup.S (codestart): Likewise.
43845 * kern/i386/pc/lzma_decode.S: New file.
43847 * include/grub/lib/LzFind.h: Likewise.
43849 * include/grub/lib/LzHash.h: Likewise.
43851 * include/grub/lib/LzmaDec.h: Likewise.
43853 * include/grub/lib/LzmaEnc.h: Likewise.
43855 * include/grub/lib/LzmaTypes.h: Likewise.
43857 * lib/LzFind.c: Likewise.
43859 * lib/LzmaDec.c: Likewise.
43861 * lib/LzmaEnc.c: Likewise.
43863 2008-07-13 Bean <bean123ch@gmail.com>
43865 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
43866 (grub_ext4_extent_header): New structure.
43867 (grub_ext4_extent): Likewise.
43868 (grub_ext4_extent_idx): Likewise.
43869 (grub_ext4_find_leaf): New function.
43870 (grub_ext2_read_block): Handle extents.
43872 2008-07-12 Robert Millan <rmh@aybabtu.com>
43874 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
43876 2008-07-11 Robert Millan <rmh@aybabtu.com>
43878 * util/grub.d/40_custom.in: New file. Example on how to add custom
43879 entries to /etc/grub.d.
43880 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
43881 40_custom (implicitly, by merging all the grub.d rules).
43883 2008-07-11 Pavel Roskin <proski@gnu.org>
43885 * commands/read.c (grub_getline): Fix invalid memory access.
43886 Don't add newline to the variable value.
43888 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
43889 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
43890 (serial_hw_get_port): Check validity of the port number.
43891 (grub_cmd_serial): Check return value of serial_hw_get_port().
43893 2008-07-07 Pavel Roskin <proski@gnu.org>
43895 * boot/i386/pc/diskboot.S (notification_string): Replace
43896 "Loading kernel" with just "loading". This is shorter, less
43897 confusing and saves a few bytes for possible future changes.
43899 2008-07-05 Pavel Roskin <proski@gnu.org>
43901 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
43902 size for ATAPI devices, they are undefined. Output sector
43903 number in decimal form.
43905 * disk/ata.c: Use named constants for status bits.
43907 2008-07-04 Pavel Roskin <proski@gnu.org>
43909 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
43910 grub_addr_t before casting it to the void pointer to fix a
43911 warning. Non-addressable regions are discarded earlier.
43912 (grub_arch_modules_addr): Cast _end to grub_addr_t.
43913 * kern/i386/linuxbios/table.c: Include grub/misc.h.
43914 (check_signature): Don't shadow table_header.
43915 (grub_linuxbios_table_iterate): Cast numeric constants to
43916 grub_linuxbios_table_header_t.
43917 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
43920 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
43923 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
43924 pointer, which can cause warnings. Support 64-bit addresses.
43926 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
43927 of sizeof(long). This fixes PowerPC image generation on x86_64.
43929 2008-07-04 Robert Millan <rmh@aybabtu.com>
43931 This fixes a performance issue when pc & gpt partmap iterators
43932 didn't abort iteration even after our hook found what it was
43933 looking for (often causing expensive probes of non-existent drives).
43935 Some callers relied on previous buggy behaviour, since they would
43936 raise an error when their own hooks caused early abortion of its
43939 * kern/device.c (grub_device_open): Improve error message.
43940 * disk/lvm.c (grub_lvm_open): Likewise.
43941 * disk/raid.c (grub_raid_open): Likewise.
43943 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
43944 when hook requests it, independently of grub_errno.
43945 (pc_partition_map_probe): Do not fail when find_func() caused
43946 early abortion of pc_partition_map_iterate().
43948 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
43949 when hook requests it, independently of grub_errno.
43950 (gpt_partition_map_probe): Do not fail when find_func() caused
43951 early abortion of gpt_partition_map_iterate().
43953 * kern/partition.c (grub_partition_iterate): Abort parent iteration
43954 when hook requests it, independently of grub_errno. Do not fail when
43955 part_map_iterate_hook() caused early abortion of p->iterate().
43957 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
43958 when grub_partition_iterate() returned with non-zero.
43960 2008-07-03 Pavel Roskin <proski@gnu.org>
43962 * disk/ata.c (grub_ata_pio_write): Check status before writing,
43963 like we do in grub_ata_pio_read().
43964 (grub_ata_readwrite): Always write individual sectors. Fix the
43965 sector count for the remainder.
43966 (grub_ata_write): Enable writing to ATA devices. Correctly
43967 report error for ATAPI devices.
43969 2008-07-02 Pavel Roskin <proski@gnu.org>
43971 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
43974 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
43975 for every read sector, we already increment it for the whole
43976 batch. This fixes reading more than 256 sectors at once.
43978 * util/grub-editenv.c (cmd_info): Cast argument to long
43979 explicitly. ptrdiff_t reduces to int on i386.
43981 * util/grub-editenv.c (main): Be specific which parameter is
43984 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
43985 (memdisk): Make memdisk_orig_addr a pointer.
43987 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
43988 for file offsets, use grub_off_t instead. Fix printf format
43991 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
43992 there. Real unexpected warnings should not drown in the noise
43993 about known problems.
43995 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
43996 grub_disk_addr_t for memory addresses.
43998 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
43999 explicitly to fix a warning.
44001 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44003 * Makefile.in (MODULE_LDFLAGS): New variable.
44004 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44005 the linker accepts --build-id=none.
44006 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44008 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44010 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44011 those in Linux XFS code. Provide a way to access 64-bit parent
44013 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44014 the end of struct grub_xfs_dir_header.
44016 2008-07-02 Bean <bean123ch@gmail.com>
44018 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44019 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44020 and GRUB_IEEE1275_FLAG_NO_ANSI.
44022 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44023 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44024 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44026 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44027 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44029 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44030 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44032 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44033 esc sequence on non ANSI terminal.
44034 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44036 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44039 2008-07-02 Bean <bean123ch@gmail.com>
44041 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44042 (grub_editenv_SOURCES): New variable.
44043 (pkglib_MODULES): Add loadenv.mod.
44044 (loadenv_mod_SOURCES): New variable.
44045 (loadenv_mod_CFLAGS): Likewise.
44046 (loadenv_mod_LDFLAGS): Likewise.
44048 * include/grub/envblk.h: New file.
44050 * util/envblk.c: New file.
44052 * util/grub-editenv.c: New file.
44054 * commands/loadenv.c: New file.
44056 2008-07-01 Pavel Roskin <proski@gnu.org>
44058 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44059 not unsigned char. This fixes warnings and is consistent with
44062 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44064 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44066 * term/tparm.c (analyze): Always set *popcount.
44068 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44069 cast to fix a warning.
44071 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44072 cast to suppress a warning.
44074 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44075 grub_fshelp_read_file() expects.
44077 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44078 write uuid as a 32-bit value in CPU byte order, so declare and
44081 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44082 long if the format specifier expects it.
44083 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44084 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44085 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44086 long to fix a warning.
44087 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44088 grub_dprintf() arguments to fix warnings.
44090 2008-06-30 Pavel Roskin <proski@gnu.org>
44092 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44093 install_bsd_part immediately before core.img is embedded or
44094 modified on disk. This fixes core.img verification if core.img
44095 cannot be embedded.
44097 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44098 core_path to calculate the blocklist.
44099 Patch from Javier Martín <lordhabbit@gmail.com>
44101 2008-06-29 Robert Millan <rmh@aybabtu.com>
44103 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44104 block to disk block.
44105 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44106 Patch from Niels Böhm <bitbucket@arcor.de>
44108 2008-06-29 Robert Millan <rmh@aybabtu.com>
44110 * util/update-grub_lib.in (font_path): Search for fonts in
44111 /boot/grub first, which is more likely to be readable (we aren't
44112 deciding where fonts live, just looking for them).
44114 2008-06-26 Pavel Roskin <proski@gnu.org>
44116 * util/biosdisk.c (read_device_map): Don't leave dead map
44117 entries for devices failing stat() check.
44119 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44120 core_path_dev for the core.img path on the target device.
44122 2008-06-26 Robert Millan <rmh@aybabtu.com>
44124 * disk/fs_uuid.c: New file.
44125 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44126 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44127 (fs_uuid_mod_LDFLAGS): New variables.
44128 * include/grub/disk.h (grub_disk_dev_id): Add
44129 `GRUB_DISK_DEVICE_UUID_ID'.
44130 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44131 implement iterate().
44133 2008-06-26 Robert Millan <rmh@aybabtu.com>
44135 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44136 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44137 Linux image includes no initrd.
44139 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44141 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44142 call to resolve the core image location that effectively appended the
44145 2008-06-21 Robert Millan <rmh@aybabtu.com>
44147 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44150 * util/grub.d/10_hurd.in: ... to here ...
44151 * util/grub.d/10_linux.in: ... and here.
44153 2008-06-19 Robert Millan <rmh@aybabtu.com>
44155 * kern/main.c (grub_main): Export `prefix' variable immediately
44156 after it has been set by grub_machine_set_prefix().
44158 2008-06-19 Robert Millan <rmh@aybabtu.com>
44160 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44161 search result when not saving to variable, not the other way around.
44162 When saving to variable, abort iteration as soon as a match is found.
44164 2008-06-19 Robert Millan <rmh@aybabtu.com>
44166 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44167 check for partition that provides /boot/grub. Its logic is flawed,
44168 as it prevents prepare_grub_to_access_device() from being called
44171 2008-06-19 Robert Millan <rmh@aybabtu.com>
44173 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44174 "insmod" command directly when abstraction modules are needed,
44175 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44176 since it had already been processed).
44178 2008-06-19 Pavel Roskin <proski@gnu.org>
44180 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44181 changed. This is needed in case GRUB_LIBDIR changes.
44182 * conf/i386-ieee1275.rmk: Likewise.
44183 * conf/i386-linuxbios.rmk: Likewise.
44184 * conf/i386-pc.rmk: Likewise.
44185 * conf/powerpc-ieee1275.rmk: Likewise.
44187 2008-06-18 Pavel Roskin <proski@gnu.org>
44189 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44190 kernel_elf_symlist.c to symlist.c for consistency with other
44191 architectures. Update all users.
44192 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44194 2008-06-18 Robert Millan <rmh@aybabtu.com>
44196 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44199 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44200 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44201 a RAID device, run setup() for all members independently on whether
44202 LVM abstraction is being used.
44203 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44204 If grub-mkimage has set `*install_dos_part == -2', don't override this
44206 Perform *install_dos_part adjustments independently on whether
44207 we're embedding or not.
44208 Clarify error message when image is too big for embedding.
44209 Remove duplicate *install_dos_part stanza.
44211 2008-06-17 Robert Millan <rmh@aybabtu.com>
44213 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44214 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44216 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44217 values in grub_ofconsole_normal_color and
44218 grub_ofconsole_highlight_color (they're not directly related to
44219 background and foreground).
44220 (grub_ofconsole_setcolorstate): Extract background and foreground
44221 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44223 2008-06-17 Robert Millan <rmh@aybabtu.com>
44225 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44226 /boot/grub for the check in last commit, not /boot (they could be
44227 different partitions).
44229 2008-06-16 Robert Millan <rmh@aybabtu.com>
44231 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44232 asked to setup access for the same partition that provides /boot,
44233 don't bother using UUIDs since our root already has the value we
44236 2008-06-16 Robert Millan <rmh@aybabtu.com>
44238 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44240 Patch from Sven Mueller <sven@debian.org>.
44242 2008-06-16 Robert Millan <rmh@aybabtu.com>
44244 * util/update-grub.in: Check for $EUID instead of $UID.
44245 Reported by Vincent Zweije.
44247 2008-06-16 Bean <bean123ch@gmail.com>
44249 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44250 (grub_ext2_read_block): Likewise.
44251 (grub_ext2_read_inode): Likewise.
44252 (grub_ext2_mount): Likewise.
44253 (grub_ext2_close): Likewise.
44254 (grub_ext3_get_journal): Removed.
44256 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44257 (grub_reiserfs_read_symlink): Likewise.
44258 (grub_reiserfs_mount): Likewise.
44259 (grub_reiserfs_open): Likewise.
44260 (grub_reiserfs_read): Likewise.
44261 (grub_reiserfs_close): Likewise.
44262 (grub_reiserfs_get_journal): Removed.
44264 * fs/fshelp.c (grub_fshelp_read): Removed.
44265 (grub_fshelp_map_block): Likewise.
44267 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44268 (grub_fshelp_journal): Likewise.
44269 (grub_fshelp_read): Likewise.
44270 (grub_fshelp_map_block): Likewise.
44272 2008-06-16 Pavel Roskin <proski@gnu.org>
44274 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44275 floating point anymore.
44276 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44278 2008-06-15 Pavel Roskin <proski@gnu.org>
44280 * commands/ls.c (grub_ls_list_files): Use integer calculations
44281 for human readable format, avoid floating point use.
44282 * kern/misc.c (grub_ftoa): Remove.
44283 (grub_vsprintf): Remove floating point support.
44285 2008-06-15 Robert Millan <rmh@aybabtu.com>
44287 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44289 Reported by Max Vozeler.
44291 2008-06-15 Robert Millan <rmh@aybabtu.com>
44293 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44294 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44296 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44297 the beginning of the prefix.
44299 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44300 It is assumed that if we have a memdisk, grub-mkimage has set
44301 grub_prefix to include the "(memdisk)" drive in it.
44303 2008-06-15 Robert Millan <rmh@aybabtu.com>
44305 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44306 Initialize keyboard controller after registering the terminal, so that
44307 grub_printf() can be called from grub_keyboard_controller_init().
44309 2008-06-15 Robert Millan <rmh@aybabtu.com>
44311 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44312 extent-btree which is written as big endian on disk.
44313 Reported by Alain Greppin <al@chilibi.org>.
44315 2008-06-14 Robert Millan <rmh@aybabtu.com>
44317 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44318 * util/i386/pc/grub-install.in (modules): Likewise.
44320 2008-06-13 Pavel Roskin <proski@gnu.org>
44322 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44324 2008-06-13 Bean <bean123ch@gmail.com>
44326 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44328 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44330 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44331 to indicate sparse block.
44333 2008-06-12 Pavel Roskin <proski@gnu.org>
44335 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44336 number, grub_fshelp_read() does it for us.
44338 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44339 linear disk read with journal translation.
44340 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44341 * include/grub/fshelp.h: Declare grub_fshelp_read().
44343 2008-06-09 Pavel Roskin <proski@gnu.org>
44345 * fs/minix.c (grub_minix_mount): Handle error reading
44348 2008-06-08 Robert Millan <rmh@aybabtu.com>
44350 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44351 don't append the RAID prefix afterwards.
44352 Reported by Clint Adams.
44354 2008-06-08 Robert Millan <rmh@aybabtu.com>
44356 Based on description from Pavel:
44357 * kern/disk.c (grub_disk_check_range): Rename to ...
44358 (grub_disk_adjust_range): ... this. Add a comment explaining the
44359 tasks performed by this function.
44361 2008-06-08 Robert Millan <rmh@aybabtu.com>
44363 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44364 `num_serial' (for consistency with other variables).
44365 (struct grub_ntfs_data): Add `uuid' member.
44366 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44367 (grub_ntfs_uuid): New function.
44368 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44370 2008-06-07 Pavel Roskin <proski@gnu.org>
44372 * util/biosdisk.c (open_device): Revert last change to the
44373 function, it broke installation. The sector needs to be
44374 different dependent on which device is opened.
44376 2008-06-06 Robert Millan <rmh@aybabtu.com>
44378 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44379 rest of GRUB, and breakage doesn't happen if its value were modified.
44381 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44382 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44383 a constant (same value).
44384 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44385 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44387 2008-06-06 Robert Millan <rmh@aybabtu.com>
44389 * util/biosdisk.c (open_device): Do not modify sector offset when
44390 accessing a partition. kern/disk.c already handles this for us.
44392 2008-06-06 Robert Millan <rmh@aybabtu.com>
44394 * util/grub-emu.c (grub_machine_init): Move code in this function from
44396 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44397 segfault in case grub_printf() is called).
44399 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44400 grub_probe. Update all users not to explicitly add it again.
44401 (grub_device): New variable; contains corresponding device for grubdir.
44402 (fs_module, partmap_module, devabstraction_module): Pass
44403 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44406 2008-06-05 Robert Millan <rmh@aybabtu.com>
44408 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44409 is found, print it (same layout as with labels).
44411 2008-06-04 Robert Millan <rmh@aybabtu.com>
44413 * util/biosdisk.c (get_drive): Rename to ...
44414 (find_grub_drive): ... this. Update all users.
44416 (get_os_disk): Rename to ...
44417 (convert_system_partition_to_system_disk): ... this. Update all users.
44419 (find_drive): Rename to ...
44420 (find_system_device): ... this. Update all users.
44422 2008-06-04 Robert Millan <rmh@aybabtu.com>
44424 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44425 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44426 (make_device_map): Likewise.
44428 2008-06-01 Robert Millan <rmh@aybabtu.com>
44430 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44431 before dereferencing it.
44433 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44434 union with fat12/fat16-specific ones. Add some new fields, including
44435 `num_serial' for both versions.
44436 (struct grub_fat_data): Add `uuid' member.
44437 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44438 names. Initialize `data->uuid' using `num_serial'.
44439 (grub_fat_uuid): New function.
44440 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44442 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44443 (grub_reiserfs_uuid): New function.
44444 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44447 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44448 (grub_xfs_uuid): New function.
44449 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44451 2008-06-01 Robert Millan <rmh@aybabtu.com>
44453 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44454 code that is backward compatible with pre-uuid search command.
44456 2008-05-31 Robert Millan <rmh@aybabtu.com>
44458 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44459 floppies after everything else, to ensure floppy drive isn't accessed
44460 unnecessarily (patch from Bean).
44462 2008-05-31 Robert Millan <rmh@aybabtu.com>
44464 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44465 not print device names when we were asked to set a variable.
44467 2008-05-31 Robert Millan <rmh@aybabtu.com>
44469 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44470 using "cursor-on" and "cursor-off" commands (understood at least by
44471 the Open Firmware flavour on OLPC).
44473 2008-05-31 Michael Gorven <michael@gorven.za.net>
44475 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44476 on and off sequences.
44478 2008-05-31 Robert Millan <rmh@aybabtu.com>
44480 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44481 * util/update-grub.in: Likewise.
44483 2008-05-30 Pavel Roskin <proski@gnu.org>
44485 * util/biosdisk.c (linux_find_partition): Simplify logic and
44486 make the code more universal. Keep special processing for
44487 devfs, but use a simple rule for all other devices. If the
44488 device ends with a number, append 'p' and the partition number.
44489 Otherwise, append only the partition number.
44491 2008-05-30 Robert Millan <rmh@aybabtu.com>
44493 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44494 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44495 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44496 the `root' parameter to Linux.
44498 2008-05-30 Robert Millan <rmh@aybabtu.com>
44500 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44501 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44502 --fs_uuid with --fs-uuid.
44503 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44504 all filesystems support them).
44506 2008-05-30 Robert Millan <rmh@aybabtu.com>
44508 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44509 grub_printf() flags, since we're printing in units of 2 bytes.
44511 2008-05-30 Robert Millan <rmh@aybabtu.com>
44513 * util/grub.d/00_header.in: Remove obsolete comment referencing
44514 convert_system_path_to_grub_path().
44515 * util/update-grub.in: Likewise.
44516 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44517 (convert_system_path_to_grub_path): Add a warning message explaining
44518 that this function is deprecated. Rely on is_path_readable_by_grub()
44519 for the readability checks.
44520 (font_path): Use is_path_readable_by_grub() for the readability
44521 check rather than convert_system_path_to_grub_path().
44523 2008-05-30 Robert Millan <rmh@aybabtu.com>
44525 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44526 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44527 converting it first.
44528 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44529 grub.cfg for access to font file, and afterwards call it again to set
44532 2008-05-30 Robert Millan <rmh@aybabtu.com>
44534 * commands/search.c (options): Add --fs_uuid option.
44535 (search_fs_uuid): New function.
44536 (grub_cmd_search): Fix --set argument passing.
44537 Use search_fs_uuid() when requested via --fs_uuid.
44538 (grub_search_init): Update help message.
44539 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44540 and redeclare it as an array of 16-bit words.
44541 (grub_ext2_uuid): New function.
44542 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44543 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44544 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44545 (GRUB_DEVICE_BOOT_UUID): New variables.
44546 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44547 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44549 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44550 just assume `root' variable has the right value.
44551 * util/grub.d/10_linux.in: Likewise.
44552 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44554 (main): Recognise `-t fs_uuid' argument.
44556 2008-05-30 Robert Millan <rmh@aybabtu.com>
44558 * util/biosdisk.c (map): Redefine structure to hold information
44559 about GRUB drive name.
44560 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44562 (call_hook): Remove.
44563 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44564 member. Assume drive has partitions.
44565 (grub_util_biosdisk_open): Access device names via `.device' struct
44567 (open_device): Likewise.
44568 (find_drive): Likewise.
44569 (read_device_map): Adjust map[] usage to match the new struct
44570 definition. Don't check for duplicates (still possible, but not cheap
44572 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44573 (make_device_name): Remove assumption of BIOS-like drive names.
44575 2008-05-30 Pavel Roskin <proski@gnu.org>
44577 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44578 compiling execute.c doesn't need grub_script.tab.h anymore.
44579 (normal/command.c_DEPENDENCIES): Likewise.
44580 (normal/function.c_DEPENDENCIES): Likewise.
44581 * conf/i386-ieee1275.rmk: Likewise.
44582 * conf/i386-linuxbios.rmk: Likewise.
44583 * conf/i386-pc.rmk: Likewise.
44584 * conf/powerpc-ieee1275.rmk: Likewise.
44585 * conf/sparc64-ieee1275.rmk: Likewise.
44587 2008-05-29 Pavel Roskin <proski@gnu.org>
44589 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44590 when scanning metadata for volume group name.
44592 * include/grub/script.h: Don't include grub_script.tab.h. It's
44593 a generated file, which may only be included from the files with
44594 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44595 use union YYSTYPE, as the later allows forward declaration.
44596 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44598 2008-05-29 Robert Millan <rmh@aybabtu.com>
44600 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44601 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44602 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44603 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44606 2008-05-29 Robert Millan <rmh@aybabtu.com>
44608 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44609 control key combinations.
44611 2008-05-29 Robert Millan <rmh@aybabtu.com>
44613 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44614 * util/ieee1275/grub-install.in: ... to here.
44615 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44616 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44617 (grub_install_SOURCES): Likewise.
44619 2008-05-29 Robert Millan <rmh@aybabtu.com>
44621 * fs/affs.c: Update copyright year.
44622 * fs/ext2.c: Likewise.
44623 * fs/fshelp.c: Likewise.
44624 * fs/hfsplus.c: Likewise.
44625 * fs/ntfs.c: Likewise.
44626 * fs/xfs.c: Likewise.
44627 * include/grub/fshelp.h: Likewise.
44628 * util/grub-mkdevicemap.c: Likewise.
44630 2008-05-28 Robert Millan <rmh@aybabtu.com>
44632 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44633 might need to be fatfs to support some firmware implementations
44636 2008-05-28 Robert Millan <rmh@aybabtu.com>
44638 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44640 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44641 (make_device_map): Likewise.
44643 2008-05-20 Bean <bean123ch@gmail.com>
44645 * fs/fshelp.c (grub_fshelp_map_block): New function.
44646 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44647 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44649 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44650 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44651 (grub_fshelp_journal): New structure.
44652 (grub_fshelp_map_block): New function prototype.
44653 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44654 (grub_fshelp_map_block): Likewise.
44656 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44657 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44658 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44659 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44660 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44661 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44662 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44663 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44664 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44665 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44666 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44667 (grub_ext2_sblock): New members for journal support.
44668 (grub_ext3_journal_header): New structure.
44669 (grub_ext3_journal_revoke_header): Likewise.
44670 (grub_ext3_journal_block_tag): Likewise.
44671 (grub_ext3_journal_sblock): Likewise.
44672 (grub_fshelp_node): New members logfile and journal.
44673 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44674 grub_fshelp_map_block to get real block number.
44675 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44677 (grub_ext2_read_inode): Likewise.
44678 (grub_ext3_get_journal): New function.
44679 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44680 (grub_ext2_close): Release memory used by journal.
44682 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44683 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44684 (grub_reiserfs_transaction_header): Renamed to
44685 grub_reiserfs_description_block, replace field data with real_blocks.
44686 (grub_reiserfs_commit_block): New structure.
44687 (grub_reiserfs_data): New member journal.
44688 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44690 (grub_reiserfs_read_symlink): Likewise.
44691 (grub_reiserfs_iterate_dir): Likewise.
44692 (grub_reiserfs_open): Likewise.
44693 (grub_reiserfs_read): Likewise.
44694 (grub_reiserfs_get_journal): New function.
44695 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44696 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44697 using grub_reiserfs_get_journal.
44698 (grub_reiserfs_close): Release memory used by journal.
44700 * fs/affs.c (grub_affs_read_block): Change block type to
44701 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44703 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44705 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44707 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44709 * fs/udf.c (grub_udf_read_block): Change block type to
44710 grub_disk_addr_t. Use type cast to avoid warning.
44712 * fs/xfs.c (grub_xfs_read_block): Likewise.
44714 2008-05-16 Christian Franke <franke@computer.org>
44716 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44717 to ensure that break with ESC will always work.
44718 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44719 Remove ESC from keyboard queue.
44721 2008-05-16 Christian Franke <franke@computer.org>
44723 * util/biosdisk.c: [__CYGWIN__] Add includes.
44724 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44725 (get_os_disk): Move variable declarations to OS specific
44726 parts to avoid warning.
44727 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44728 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44729 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44731 * util/getroot.c: [__CYGWIN__] Add includes.
44732 (strip_extra_slashes): Fix "/" case.
44733 [__CYGWIN__] (get_win32_path): New function.
44734 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44735 [__CYGWIN__] (find_root_device): Disable.
44736 [__CYGWIN__] (get_bootsec_serial): New function.
44737 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44738 [__linux__] (grub_guess_root_device): Add early returns to simplify
44740 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44741 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44742 check for Linux only.
44744 2008-05-15 Bean <bean123ch@gmail.com>
44746 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44747 keyboard hang problem in apple's intel mac.
44749 2008-05-09 Robert Millan <rmh@aybabtu.com>
44751 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44753 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44754 (make_device_map): Likewise.
44755 Reported by Aurelien Jarno <aurel32@debian.org>
44757 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44759 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44760 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44761 (make_device_map): Output entries for xvd type disks.
44763 2008-05-07 Robert Millan <rmh@aybabtu.com>
44765 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44767 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44768 (make_device_map): Likewise.
44769 Reported by Roland Dreier <rdreier@cisco.com>
44771 2008-05-07 Robert Millan <rmh@aybabtu.com>
44773 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44774 grub_strstr() call. Correct a few mistakes in failure path handling.
44776 2008-05-06 Robert Millan <rmh@aybabtu.com>
44778 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44779 Do not print a trailing slash (therefore, the root directory is an
44781 (convert_system_path_to_grub_path): Do not remove trailing slash
44782 from make_system_path_relative_to_its_root() output.
44784 * util/i386/pc/grub-install.in: Add trailing slash to output from
44785 make_system_path_relative_to_its_root().
44787 2008-05-06 Robert Millan <rmh@aybabtu.com>
44789 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44790 ensures that output lines aren't intermangled with those sent to
44791 stderr (via grub_util_info()).
44792 * util/grub-probe.c (grub_refresh): Likewise.
44793 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44795 2008-05-05 Christian Franke <franke@computer.org>
44797 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44798 Add Cygwin device names.
44799 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44800 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44801 (check_device): Return error instead of success on empty name.
44802 (make_device_map): Move label inside linux specific code to
44803 prevent compiler warning.
44805 2008-04-30 Robert Millan <rmh@aybabtu.com>
44807 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44808 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44810 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44812 2008-04-29 Robert Millan <rmh@aybabtu.com>
44814 * docs/grub.cfg: New file (example GRUB configuration).
44816 2008-04-26 Robert Millan <rmh@aybabtu.com>
44818 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44819 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44820 and `disk/ieee1275/nand.c'.
44822 2008-04-25 Bean <bean123ch@gmail.com>
44824 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44827 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44828 change the buffer size to 4096 for cdrom device.
44830 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44832 (_linux_mod_SOURCES): New variable.
44833 (_linux_mod_CFLAGS): Likewise.
44834 (_linux_mod_LDFLAGS): Likewise.
44835 (linux_mod_SOURCES): Likewise.
44836 (linux_mod_CFLAGS): Likewise.
44837 (linux_mod_LDFLAGS): Likewise.
44838 (nand_mod_SOURCES): Likewise.
44839 (nand_mod_CFLAGS): Likewise.
44840 (nand_mod_LDFLAGS): Likewise.
44842 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44843 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44844 type property. (nand device in olpc don't have this property)
44846 * include/grub/disk.h (grub_disk_dev_id): New macro
44847 GRUB_DISK_DEVICE_NAND_ID.
44849 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44850 function prototype.
44851 (grub_rescue_cmd_initrd): Likewise.
44853 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44854 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44855 ofw_cif_handler and ofw_idt, adjust padding number.
44857 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
44858 GRUB_MACHINE_IEEE1275 is defined.
44860 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
44861 Use NESTED_FUNC_ATTR attribute on the hook parameter.
44863 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
44864 on nested function heap_init.
44865 (grub_upper_mem): New variable for i386-ieee1275.
44866 (grub_get_extended_memory): New function for i386-ieee1275.
44867 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
44869 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
44870 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
44873 * loader/i386/ieee1275/linux.c: New file.
44875 * loader/i386/ieee1275/linux_normal.c: New file.
44877 * disk/ieee1275/nand.c: New file.
44879 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
44881 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
44883 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
44885 2008-04-18 Robert Millan <rmh@aybabtu.com>
44887 Restructures early code path on ieee1275 to unify grub_main() as
44888 the first C function that is executed in every platform.
44890 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
44891 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
44893 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
44894 * kern/ieee1275/cmain.c (cmain): Rename to ...
44895 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
44896 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
44899 2008-04-18 Robert Millan <rmh@aybabtu.com>
44901 * util/update-grub.in: Fix syntax error when setting
44902 `GRUB_PRELOAD_MODULES'.
44903 Reported by Stephane Chazelas <stephane@artesyncp.com>
44905 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
44907 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
44908 section into account, newer toolchains generate unique build ids
44909 * configure.ac: remove the test for --build-id=none acceptance,
44910 we want build ids to be preserved
44911 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
44912 far from other sections don't cause the raw binary images grow
44915 2008-04-15 Robert Millan <rmh@aybabtu.com>
44917 * disk/lvm.c: Update copyright year.
44918 * kern/misc.c: Likewise.
44920 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44922 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
44923 there is no memory left for physical volume name.
44925 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
44927 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
44928 volume name mapping to support bigger than 9 character names properly.
44930 2008-04-13 Robert Millan <rmh@aybabtu.com>
44932 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
44933 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
44935 2008-04-13 Christian Franke <franke@computer.org>
44937 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
44938 to create a floppy emulation boot CD when non emulation mode
44940 Enable Joliet CD filesystem extension.
44942 2008-04-13 Robert Millan <rmh@aybabtu.com>
44944 * kern/misc.c (grub_strncat): Fix off-by-one error.
44945 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
44947 * kern/env.c (grub_env_context_close): Clear current context, not
44949 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
44951 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
44953 2008-04-13 Robert Millan <rmh@aybabtu.com>
44955 Improve robustness when handling LVM.
44957 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
44958 (and leave `*p' unmodified).
44959 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
44961 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
44962 iterating through it.
44963 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
44965 (grub_lvm_scan_device): Check the return value (and fail gracefully
44966 when due) on each grub_lvm_getvalue() or grub_strstr() call.
44967 Don't assume `vg->pvs != NULL' when iterating through it.
44969 2008-04-13 Robert Millan <rmh@aybabtu.com>
44971 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
44972 * genmk.rb (partmap): New variable.
44973 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
44974 (#{partmap}): New target rule.
44975 * genpartmaplist.sh: New file.
44976 * Makefile.in (pkglib_DATA): Add partmap.lst.
44977 (partmap.lst): New target rule.
44978 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
44979 modules (including all partition maps), instead of preloading them.
44981 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
44983 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
44984 `linux-boot-prober' (if installed) to detect other operating
44985 systems which are installed on the computer and add them to
44987 * conf/common.rmk: Build and install 30_os-prober.
44989 2008-04-12 Robert Millan <rmh@aybabtu.com>
44991 * kern/powerpc/ieee1275/init.c: Move from here ...
44992 * kern/ieee1275/init.c: ... to here. Update all users.
44994 * kern/powerpc/ieee1275/cmain.c: Move from here ...
44995 * kern/ieee1275/cmain.c: ... to here. Update all users.
44997 * kern/powerpc/ieee1275/openfw.c: Move from here ...
44998 * kern/ieee1275/openfw.c: ... to here. Update all users.
45000 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45001 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45003 2008-04-10 Pavel Roskin <proski@gnu.org>
45005 * configure.ac: Always use "_cv_" in cache variables for
45006 compatibility with Autoconf 2.62.
45008 2008-04-07 Robert Millan <rmh@aybabtu.com>
45010 Revert grub/machine/init.h addition by Pavel (since it breaks on
45011 i386-ieee1275 and others):
45012 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45013 * util/powerpc/ieee1275/misc.c: Likewise.
45015 2008-04-07 Robert Millan <rmh@aybabtu.com>
45017 * util/grub-probe.c (probe): Improve error message.
45019 2008-04-07 Robert Millan <rmh@aybabtu.com>
45021 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45022 (this prevents the presence of a bogus entry from ruining the whole
45025 2008-04-06 Pavel Roskin <proski@gnu.org>
45027 * util/biosdisk.c: Include grub/util/biosdisk.h.
45028 * util/grub-fstest.c (execute_command): Make static.
45029 * util/grub-mkdevicemap.c (check_device): Likewise.
45030 * util/i386/pc/misc.c: Include grub/machine/init.h.
45031 * util/powerpc/ieee1275/misc.c: Likewise.
45032 * util/lvm.c: Include grub/util/lvm.h.
45033 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45035 * util/raid.c: Include grub/util/raid.h.
45036 (grub_util_getdiskname): Make static.
45038 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45039 grub_hostfs_fini(), as they are called from grub_init_all() and
45040 grub_fini_all() respectively. This fixes an infinite loop in
45041 grub-fstest due to double registration of hostfs.
45042 Reported by Christian Franke <Christian.Franke@t-online.de>
45044 2008-04-05 Pavel Roskin <proski@gnu.org>
45046 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45047 all 8 functions. Otherwise, probe function 0 only.
45049 2008-04-04 Pavel Roskin <proski@gnu.org>
45051 * commands/lspci.c (grub_lspci_iter): Print the bus number
45054 * commands/lspci.c (grub_pci_classes): Fix typos.
45055 (grub_lspci_iter): Don't print func twice. Print vendor ID
45056 before device ID, as it's normally done.
45058 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45059 Fix signedness warnings.
45060 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45062 * util/ieee1275/get_disk_name.c: Include config.h so that
45063 _GNU_SOURCE is defined and getline() is declared. Mark an
45064 unused argument as such. Fix a signedness warning.
45066 2008-04-02 Pavel Roskin <proski@gnu.org>
45068 * genkernsyms.sh.in: Use more robust assignments for CC and
45069 srcdir. Quote srcdir.
45070 * gensymlist.sh.in: Likewise. Assert at the compile time that
45071 the symbol table is not empty.
45073 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45074 * fs/cpio.c (grub_cpio_read): Likewise.
45076 2008-04-01 Pavel Roskin <proski@gnu.org>
45078 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45079 * disk/host.c (grub_host_open): Likewise.
45080 * disk/loopback.c (grub_loopback_open): Likewise.
45081 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45082 disk->id as in disk/host.c, not a multi-character constant.
45084 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45085 later is obsolete, potentially dangerous and sets a bad example.
45086 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45087 * util/misc.c (grub_util_get_image_size): Likewise.
45089 * disk/loopback.c (options): Improve help for "--partitions".
45091 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45092 options to align them with the short options, e.g. "echo -e".
45094 2008-03-31 Bean <bean123ch@gmail.com>
45096 * video/reader/png.c (grub_png_data): New member is_16bit and
45098 (grub_png_decode_image_header): Detect 16 bit png image.
45099 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45100 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45101 (grub_video_reader_png): Release memory occupied by image_data.
45103 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45105 (grub_nfs_mount): Skip the test for sector per cluster.
45107 * include/grub/ntfs.h (MAX_SPC): Removed.
45109 2008-03-31 Bean <bean123ch@gmail.com>
45111 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45112 (grub_probe_SOURCES): Add fs/afs.c.
45113 (grub_fstest_SOURCES): Likewise.
45114 (afs_mod_SOURCES): New variable.
45115 (afs_mod_CFLAGS): Likewise.
45116 (afs_mod_LDFLAGS): Likewise.
45118 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45119 (grub_emu_SOURCES): Likewise.
45121 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45123 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45125 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45127 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45129 * fs/afs.c: New file.
45131 2008-03-30 Pavel Roskin <proski@gnu.org>
45133 * disk/host.c: Include grub/misc.h to fix a warning.
45134 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45135 warnings about implicit declarations.
45137 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45139 * include/grub/i386/loader.h: Change declaration of
45140 grub_linux_boot() to match what grub_loader_set() expects.
45141 * util/getroot.c (grub_guess_root_device): Return const char* to
45143 * util/grub-probe.c (probe): Fix a warning about uninitialized
45144 abstraction_name variable.
45145 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45146 second argument as unused to fix a warning.
45148 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45149 missing grub_error() call.
45151 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45152 2.60 and newer uses it to define datadir.
45154 * commands/sleep.c: Fix warning about implicit declaration.
45155 * disk/memdisk.c: Likewise.
45156 * loader/aout.c: Likewise.
45157 * loader/i386/bsd_normal.c: Likewise.
45158 * util/grub-probe.c: Likewise.
45160 * commands/i386/cpuid.c (has_longmode): Make static.
45161 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45162 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45164 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45165 GDT. This is more robust, as %ds can change.
45166 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45167 calling real_to_prot().
45168 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45170 2008-03-28 Pavel Roskin <proski@gnu.org>
45172 * kern/i386/pc/startup.S: Assert that uncompressed functions
45173 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45174 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45175 code, as they push parts of the code (error handlers) beyond
45176 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45177 code as correctness and size.
45179 2008-03-28 Pavel Roskin <proski@gnu.org>
45181 * kern/i386/pc/startup.S
45182 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45183 data block address to the real mode, keep offset minimal. This
45184 works around a bug in AWARD BIOS on old Athlon systems, which
45185 makes CD detection hang.
45187 2008-03-26 Pavel Roskin <proski@gnu.org>
45189 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45191 * include/grub/normal.h: Add grub_parse_color_name_pair()
45194 2008-03-24 Bean <bean123ch@gmail.com>
45196 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45197 (cd_count): Removed.
45198 (cd_drive): New variable.
45199 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45200 (grub_biosdisk_call_hook): Likewise.
45201 (grub_biosdisk_iterate): Change cdrom detection method.
45202 (grub_biosdisk_open): Replace cd_start with cd_drive.
45203 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45204 detect cdrom device.
45206 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45208 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45209 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45210 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45211 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45212 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45213 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45214 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45215 (grub_biosdisk_cdrp): New structure.
45216 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45218 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45220 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45223 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45226 2008-03-20 Robert Millan <rmh@aybabtu.com>
45228 Remove 2 TiB limit in ata.mod.
45229 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45230 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45231 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45232 grub_uint64_t instead of grub_uint32_t.
45234 2008-03-05 Bean <bean123ch@gmail.com>
45236 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45237 (grub_multiboot): Set boot device.
45239 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45241 2008-03-02 Bean <bean123ch@gmail.com>
45243 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45246 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45248 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45251 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45254 * docs/fdl.texi: New file.
45256 * docs/mdate-sh: New file. Copied from gnulib.
45257 * docs/texinfo.tex: Likewise.
45259 * config.guess: Updated from gnulib.
45260 * install-sh: Likewise.
45262 2008-02-28 Robert Millan <rmh@aybabtu.com>
45264 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45265 (aout_mod_SOURCES): New variable.
45266 (aout_mod_CFLAGS): Likewise.
45267 (aout_mod_LDFLAGS): Likewise.
45269 * conf/i386-ieee1275.rmk: Likewise.
45271 2008-02-28 Robert Millan <rmh@aybabtu.com>
45273 * util/update-grub.in: Reorganise terminal validity check. Accept
45274 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45275 Based on suggestion by Franklin PIAT.
45277 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45279 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45281 * util/getroot.c (grub_util_check_block_device): New function that
45282 returns the given argument if it is a block device and returns NULL else.
45283 * util/grub-probe.c (argument_is_device): New variable.
45284 (probe): Promote device_name from a variable to an argument. Receive
45285 device_name from grub_util_check_block_device() if path is NULL and from
45286 grub_guess_root_device() else. Do not free() device_name anymore.
45287 (options): Introduce new parameter '-d, --device'.
45288 (main): Add description of the new parameter to the help screen.
45289 Rename path variable to argument. Set argument_is_device if the '-d'
45290 option is given. Pass argument to probe() depending on
45291 argument_is_device.
45293 2008-02-24 Bean <bean123ch@gmail.com>
45295 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45296 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45297 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45298 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45299 (GRUB_ISO9660_VOLDESC_END): Likewise.
45300 (grub_iso9660_primary_voldesc): New member escape.
45301 (grub_iso9660_data): New member joliet.
45302 (grub_iso9660_convert_string): New function.
45303 (grub_iso9660_mount): Detect joliet extension.
45304 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45305 (grub_iso9660_iso9660_label): Likewise.
45307 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45308 (grub_setup_SOURCES): Add fs/udf.c.
45309 (grub_fstest_SOURCES): Likewise.
45310 (udf_mod_SOURCES): New variable.
45311 (udf_mod_CFLAGS): Likewise.
45312 (udf_mod_LDFLAGS): Likewise.
45314 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45315 (grub_emu_SOURCES): Likewise.
45317 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45319 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45321 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45323 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45325 * fs/udf.c: New file.
45327 2008-02-24 Robert Millan <rmh@aybabtu.com>
45329 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45330 (normal/lexer.c_DEPENDENCIES): New variables.
45331 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45332 (normal/lexer.c_DEPENDENCIES): Likewise.
45333 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45334 (normal/lexer.c_DEPENDENCIES): Likewise.
45335 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45336 (normal/lexer.c_DEPENDENCIES): Likewise.
45337 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45338 (normal/lexer.c_DEPENDENCIES): Likewise.
45339 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45340 (normal/lexer.c_DEPENDENCIES): Likewise.
45342 2008-02-23 Robert Millan <rmh@aybabtu.com>
45344 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45345 since they were intended to be in hex. This didn't break previously
45346 because of a bug in gpt_partition_map_iterate() (see below).
45348 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45349 when checking the validity of GPT header.
45350 Remove `partno', since it always provides the same information as `i'.
45352 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45354 * include/grub/efi/time.h: Fix a wrong comment.
45356 2008-02-19 Pavel Roskin <proski@gnu.org>
45358 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45361 2008-02-19 Bean <bean123ch@gmail.com>
45363 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45364 (aout_mod_SOURCES): New variable.
45365 (aout_mod_CFLAGS): Likewise.
45366 (aout_mod_LDFLAGS): Likewise.
45367 (_bsd_mod_SOURCES): New variable.
45368 (_bsd_mod_CFLAGS): Likewise.
45369 (_bsd_mod_LDFLAGS): Likewise.
45370 (bsd_mod_SOURCES): New variable.
45371 (bsd_mod_CFLAGS): Likewise.
45372 (bsd_mod_LDFLAGS): Likewise.
45374 * include/grub/aout.h: New file.
45376 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45378 * include/grub/i386/bsd.h: New file.
45380 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45383 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45384 function is called, so that it's possible to change it inside the hook.
45385 (grub_elf64_load): Likewise.
45386 (grub_elf_file): Don't close the file if elf header is not found.
45387 (grub_elf_close): Close the file if grub_elf_file fails (The new
45388 grub_elf_file won't close it).
45389 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45390 (grub_elf64_size): Likewise.
45392 * kern/i386/loader.S (grub_unix_real_boot): New function.
45394 * loader/aout.c: New file.
45396 * loader/i386/bsd.c: New file.
45398 * loader/i386/bsd_normal.c: New file.
45400 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45402 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45403 can test other formats.
45405 2008-02-19 Robert Millan <rmh@aybabtu.com>
45407 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45408 (grub_gpt_partition_type_empty): Redefine with macro from
45409 `<grub/gpt_partition.h>'.
45410 (gpt_partition_map_iterate): Adjust partition type comparison.
45412 Export `entry' as partmap-specific `part.data' struct.
45413 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45415 * include/grub/gpt_partition.h (grub_gpt_header)
45416 (grub_gpt_partentry): ... to here (new file).
45418 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45420 (grub_gpt_partition_type_bios_boot): New const variable, defined
45421 with macro from `<grub/gpt_partition.h>'.
45423 (setup): Replace `first_start' with `embed_region', which keeps
45424 track of the embed region (and is partmap-agnostic).
45426 Replace find_first_partition_start() with find_usable_region(),
45427 which finds a usable region for embedding using partmap-specific
45428 knowledge (supports PC/MSDOS and GPT).
45430 Fix all assumptions that the embed region start at sector 1, using
45431 `embed_region.start' from now on. Similarly, use `embed_region.end'
45432 rather than `first_start' to calculate available size.
45434 In grub_util_info() message, replace "into after the MBR" with an
45435 indication of the specific sector our embed region starts at.
45437 2008-02-19 Robert Millan <rmh@aybabtu.com>
45439 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45440 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45441 `commands/reboot.c'.
45442 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45443 (halt_mod_SOURCES): Likewise.
45444 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45445 (halt_mod_SOURCES): Likewise.
45447 2008-02-17 Christian Franke <franke@computer.org>
45449 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45451 2008-02-17 Robert Millan <rmh@aybabtu.com>
45453 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45454 set `first_start' to 0 for non-PC/MSDOS partition maps.
45456 2008-02-16 Robert Millan <rmh@aybabtu.com>
45458 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45459 do not assume partition map is PC/MSDOS before performing checks that
45460 are specific to that layout.
45462 2008-02-13 Robert Millan <rmh@aybabtu.com>
45464 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45465 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45466 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45468 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45470 * configure.ac: Only a cosmetic change on the handling of
45471 -fno-stack-protector.
45473 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45475 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45476 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45478 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45479 (halt_mod_SOURCES): New variable.
45480 (halt_mod_CFLAGS): Likewise.
45481 (halt_mod_LDFLAGS): Likewise.
45482 (reboot_mod_SOURCES): Likewise.
45483 (reboot_mod_CFLAGS): Likewise.
45484 (reboot_mod_LDFLAGS): Likewise.
45486 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45487 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45489 (halt_mod_SOURCES): Likewise.
45490 (reboot_mod_SOURCES): Likewise.
45492 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45493 commands/i386/pc/reboot.c by commands/reboot.c.
45494 (reboot_mod_SOURCES): Likewise.
45496 * commands/i386/pc/reboot.c: merge this file ...
45498 * commands/ieee1275/reboot.c: ... and this file ...
45500 * commands/reboot.c: ... to this file.
45501 Add some precompiler directive to include the correct header for
45504 * commands/ieee1275/halt.c: move this file ...
45506 * commands/halt.c: ... to here.
45507 Add some precompiler directive to include the correct header for
45510 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45511 (grub_halt): Likewise.
45513 * kern/efi/efi.c (grub_reboot): New function.
45514 (grub_halt): Likewise.
45516 2008-02-12 Robert Millan <rmh@aybabtu.com>
45518 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45519 /dev (like it is done for /dev/mapper). This doesn't provide support
45520 for EVMS, but at least it is now easy to identify the problem when it
45523 2008-02-11 Robert Millan <rmh@aybabtu.com>
45525 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45526 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45527 comparing it with -1, not 0.
45529 2008-02-10 Robert Millan <rmh@aybabtu.com>
45531 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45533 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45534 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45536 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45537 `disk/lvm.c' to the end of the list.
45538 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45539 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45541 2008-02-10 Robert Millan <rmh@aybabtu.com>
45543 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45544 grub_print_error() instead. This will let user know why we're entering
45546 Based on suggestions from Sam Morris.
45548 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45550 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45551 on remaining N args, instead of "--" arg N times.
45553 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45555 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45556 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45557 pattern for unknown glyphs.
45559 2008-02-09 Robert Millan <rmh@aybabtu.com>
45561 * configure.ac: Probe for `help2man'.
45562 * Makefile.in (builddir): New variable.
45563 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45564 or otherwise add a few flags/options to it.
45565 (install-local): For every executable utility or script that is
45566 installed, invoke $(HELP2MAN) to install a manpage based on --help
45569 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45570 that it doesn't prevent --help from working in build tree.
45572 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45573 with `bug-grub@gnu.org'.
45574 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45575 * util/update-grub.in (usage): New function.
45576 Implement proper argument check, with support for --help and --version
45577 (as well as existing -y).
45579 2008-02-09 Christian Franke <franke@computer.org>
45581 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45582 avoid overwriting previous output.
45583 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45585 2008-02-09 Robert Millan <rmh@aybabtu.com>
45587 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45590 2008-02-09 Robert Millan <rmh@aybabtu.com>
45592 * commands/sleep.c: New file.
45593 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45594 (sleep_mod_SOURCES): New variable.
45595 (sleep_mod_CFLAGS): Likewise.
45596 (sleep_mod_LDFLAGS): Likewise.
45598 2008-02-09 Robert Millan <rmh@aybabtu.com>
45600 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45601 situations in which we can deduce the RAID size and the superblock
45604 2008-02-09 Robert Millan <rmh@aybabtu.com>
45606 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45607 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45608 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45610 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45611 and return a grub_diskmemberlist_t composed of physical array members.
45612 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45614 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45616 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45617 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45618 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45620 * util/grub-probe.c (probe): Move partmap probing code from here ...
45621 (probe_partmap): ... to here.
45622 (probe): Use probe_partmap() once for the disk we're probing, and
45623 additionally, when such disk contains a memberlist() struct member,
45624 once for each disk that is contained in the structure returned by
45627 2008-02-09 Robert Millan <rmh@aybabtu.com>
45629 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45630 environment variable to 'all' in order to obtain debug output from
45632 * util/i386/pc/grub-setup.c (main): Likewise.
45634 2008-02-08 Robert Millan <rmh@aybabtu.com>
45636 * disk/raid.c (grub_raid_scan_device): Check for
45637 `array->device[sb.this_disk.number]' rather than for
45638 `array->device[sb.this_disk.number]->name', since the latter is not
45639 guaranteed to be accessible.
45641 2008-02-08 Robert Millan <rmh@aybabtu.com>
45643 * disk/raid.c: Update copyright.
45644 * fs/cpio.c: Likewise.
45645 * include/grub/raid.h: Likewise.
45646 * loader/i386/pc/multiboot.c: Likewise.
45647 * util/hostfs.c: Likewise.
45649 2008-02-08 Robert Millan <rmh@aybabtu.com>
45651 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45652 to a grub_disk_t array.
45653 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45655 (grub_raid_scan_device): Replace `device[x].name' accesses with
45656 `device[x]->name'. Simplify initialization of `array->device[x]'.
45658 2008-02-08 Robert Millan <rmh@aybabtu.com>
45660 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45661 grub_dprintf() calls.
45662 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45665 2008-02-07 Christian Franke <franke@computer.org>
45667 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45668 instead of fseek and ftell to support large files.
45669 (grub_hostfs_read): Likewise.
45671 2008-02-07 Robert Millan <rmh@aybabtu.com>
45673 Patch from Jeroen Dekkers.
45674 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45675 failure, since successfully reading all array members might not be
45678 2008-02-06 Robert Millan <rmh@aybabtu.com>
45680 * util/grub-probe.c (probe): Simplify partmap probing (with the
45681 assumption that the first word up to the underscore equals to
45684 2008-02-06 Christian Franke <franke@computer.org>
45686 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45687 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45688 last block of a cpio or tar stream.
45689 Check for "TRAILER!!!" instead of any empty data
45690 block to detect last block of a cpio stream.
45691 (grub_cpio_dir): Fix constness of variable np.
45692 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45693 cpio or tar trailer is detected. This fixes a crash
45694 on open of a non existing file.
45696 2008-02-05 Bean <bean123ch@gmail.com>
45698 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45700 (grub_multiboot_load_elf64): Likewise.
45701 (grub_multiboot): Initialize mbi structure.
45703 * util/grub-fstest.c: Don't include unused header file script.h.
45705 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45707 (grub_fstest_SOURCES): Likewise.
45709 2008-02-05 Robert Millan <rmh@aybabtu.com>
45711 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45712 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45713 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45714 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45716 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45717 (translation_table): Replace hardcoded values with macros
45718 provided by `<grub/term.h>'.
45720 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45721 (keyboard_map): Correct/add a few values, with macros provided
45722 by `<grub/term.h>'.
45723 (keyboard_map_shift): Zero values that don't differ from their
45724 `keyboard_map' equivalents.
45725 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45726 Discard the second scan code that is always sent by Caps lock.
45727 Only use `keyboard_map_shift' when it provides a non-zero value,
45728 otherwise fallback to `keyboard_map'.
45730 2008-02-04 Bean <bean123ch@gmail.com>
45732 * Makefile.in (enable_grub_fstest): New variable.
45734 * conf/common.rmk (grub_fstest_init.lst): New rule.
45735 (grub_fstest_init.h): Likewise.
45736 (grub_fstest_init.c): Likewise.
45737 (util/grub-fstest.c_DEPENDENCIES): New variable.
45738 (grub_fstest_SOURCES): Likewise.
45740 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45742 * util/grub-fstest.c: New file.
45744 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45746 Make grub-setup handle a separate root device.
45748 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45749 so that the root device can be compared with the destination
45751 When embedding the core image, if the root and destination devices
45752 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45754 When not embedding, set ROOT_DRIVE to 0xFF.
45756 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45758 Add support for having a grub directory in a different drive. This
45759 is still only the data handling part.
45761 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45762 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45763 (grub_root_drive): New variable.
45765 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45766 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45767 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45770 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45772 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45774 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45776 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45777 is bogus, because PXE booting does not specify any drive
45780 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45781 am not sure if this is really correct.
45783 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45784 is always identical to the boot drive when booting from a CD.
45786 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45788 (root_drive): New variable.
45789 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45790 (setup_sectors): Push %dx right after popping it, because %dh will
45792 (copy_buffer): Restore %dx.
45794 2008-02-03 Robert Millan <rmh@aybabtu.com>
45796 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45797 use `cdboot.img' for cdrom images.
45799 2008-02-03 Robert Millan <rmh@aybabtu.com>
45801 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45802 only setup gfxterm when `font' command has succeeded.
45804 2008-02-03 Robert Millan <rmh@aybabtu.com>
45806 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45807 (grub_rescue_cmd_multiboot_loader)
45808 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45810 2008-02-03 Pavel Roskin <proski@gnu.org>
45812 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45813 %edx and %esi from stack only after grub_gate_a20() is called.
45814 grub_gate_a20() clobbers %edx.
45816 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45818 * configure.ac (AC_INIT): Bumped to 1.96.
45820 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45821 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45822 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45823 video/readers/png.c.
45825 2008-02-03 Bean <bean123ch@gmail.com>
45827 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45828 (cdboot_img_SOURCES): New variable.
45829 (cdboot_img_ASFLAGS): New variable.
45830 (cdboot_img_LDFLAGS): New variable.
45832 * boot/i386/pc/cdboot.S: New file.
45834 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45835 (cd_count): Likewise.
45836 (grub_biosdisk_get_drive): Add support for cd device.
45837 (grub_biosdisk_call_hook): Likewise.
45838 (grub_biosdisk_iterate): Likewise.
45839 (grub_biosdisk_open): Likewise.
45840 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45841 (grub_biosdisk_rw): Support reading from cd device.
45842 (GRUB_MOD_INIT): Iterate cd devices.
45844 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45845 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45846 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45848 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45850 2008-02-02 Robert Millan <rmh@aybabtu.com>
45852 * commands/read.c: New file.
45853 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45854 (read_mod_SOURCES): New variable.
45855 (read_mod_CFLAGS): Likewise.
45856 (read_mod_LDFLAGS): Likewise.
45858 2008-02-02 Robert Millan <rmh@aybabtu.com>
45860 * normal/main.c (grub_normal_execute): Check for `menu->size' when
45861 determining whether menu has to be displayed.
45863 2008-02-02 Marco Gerards <marco@gnu.org>
45865 * bus/pci.c: New file.
45867 * include/grub/pci.h: Likewise.
45869 * include/grub/i386/pc/pci.h: Likewise.
45871 * commands/lspci.c: Likewise.
45873 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
45875 (pci_mod_SOURCES): New variable.
45876 (pci_mod_CFLAGS): Likewise.
45877 (pci_mod_LDFLAGS): Likewise.
45878 (lspci_mod_SOURCES): Likewise.
45879 (lspci_mod_CFLAGS): Likewise.
45880 (lspci_mod_LDFLAGS): Likewise.
45882 2008-02-02 Bean <bean123ch@gmail.com>
45884 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
45885 (grub_ufs_get_file_block): Fix indirect block calculation problem.
45887 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
45888 (grub_xfs_btree_node): New structure.
45889 (grub_xfs_btree_root): New structure.
45890 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
45891 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
45892 (GRUB_XFS_EXTENT_BLOCK): Likewise.
45893 (GRUB_XFS_EXTENT_SIZE): Likewise.
45894 (grub_xfs_read_block): Support btree format type.
45895 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
45896 Use directory block as basic unit.
45898 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
45900 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
45901 __attribute__ ((__regparm__ (1))).
45903 2008-02-01 Robert Millan <rmh@aybabtu.com>
45905 Correct a mistake in previous commit.
45907 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
45909 (normal/command.c_DEPENDENCIES): New variable.
45911 2008-02-01 Robert Millan <rmh@aybabtu.com>
45913 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
45915 (normal/command.c_DEPENDENCIES): New variable.
45916 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
45917 * conf/i386-ieee1275.rmk: Likewise.
45918 * conf/i386-linuxbios.rmk: Likewise.
45919 * conf/i386-pc.rmk: Likewise.
45920 * conf/sparc64-ieee1275.rmk: Likewise.
45921 * conf/powerpc-ieee1275.rmk: Likewise.
45922 (grub_emu_SOURCES): Add `fs/fshelp.c'.
45924 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
45926 2008-02-01 Robert Millan <rmh@aybabtu.com>
45928 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
45929 call at beginning of function.
45931 2008-01-31 Pavel Roskin <proski@gnu.org>
45933 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
45934 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
45935 (grub_mkrescue_SOURCES): Likewise.
45936 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
45938 2008-01-30 Robert Millan <rmh@aybabtu.com>
45940 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
45941 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
45942 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
45943 (grub_probe_SOURCES): ... to here.
45945 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
45946 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
45947 * conf/i386-ieee1275.rmk: Likewise.
45948 * conf/i386-linuxbios.rmk: Likewise.
45949 * conf/powerpc-ieee1275.rmk: Likewise.
45951 2008-01-30 Tristan Gingold <gingold@free.fr>
45953 * kern/rescue.c: Silently accept empty lines.
45955 2008-01-29 Bean <bean123ch@gmail.com>
45957 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
45958 (real_code_2): Code cleanup and change comment style.
45959 (move_memory): Avoid using 32-bit address mode.
45961 2008-01-29 Bean <bean123ch@gmail.com>
45963 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
45964 (png_mod_SOURCES): New variable.
45965 (png_mod_CFLAGS): Likewise.
45966 (png_mod_LDFLAGS): Likewise.
45968 * video/readers/png.c: New file.
45970 2008-01-28 Robert Millan <rmh@aybabtu.com>
45972 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
45973 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
45974 `ifndef GRUB_MOD_GAP' hack.
45975 * util/elf/grub-mkimage.c (add_segments): Likewise.
45977 2008-01-27 Robert Millan <rmh@aybabtu.com>
45979 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
45980 `GRUB_MOD_GAP' for platforms in which it's not defined.
45981 * util/elf/grub-mkimage.c (add_segments): Likewise.
45983 2008-01-27 Robert Millan <rmh@aybabtu.com>
45985 Get grub-emu to build again (including parallel builds).
45987 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
45989 (util/grub-emu.c_DEPENDENCIES): ... this, ...
45990 (normal/execute.c_DEPENDENCIES): ... this, ...
45991 (grub-emu_DEPENDENCIES): ... and this.
45993 * conf/i386-efi.rmk: Likewise.
45994 * conf/i386-linuxbios.rmk: Likewise.
45995 * conf/i386-ieee1275.rmk: Likewise.
45996 * conf/powerpc-ieee1275.rmk: Likewise.
45997 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
45999 2008-01-27 Robert Millan <rmh@aybabtu.com>
46001 * NEWS: Add a few items.
46003 2008-01-27 Robert Millan <rmh@aybabtu.com>
46005 Fix parallel builds with grub-emu. Based on earlier commit for
46006 grub-probe and grub-setup.
46008 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46009 (util/grub-emu.c_DEPENDENCIES): ... this.
46010 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46011 (util/grub-emu.c_DEPENDENCIES): ... this.
46012 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46013 (util/grub-emu.c_DEPENDENCIES): ... this.
46014 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46015 (util/grub-emu.c_DEPENDENCIES): ... this.
46016 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46017 (util/grub-emu.c_DEPENDENCIES): ... this.
46019 2008-01-27 Pavel Roskin <proski@gnu.org>
46021 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46022 to create a gap between _end and the modules added to the image
46023 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46024 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46025 * util/elf/grub-mkimage.c (add_segments): Likewise.
46027 2008-01-26 Pavel Roskin <proski@gnu.org>
46029 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46030 just return an error.
46032 2008-01-26 Bean <bean123ch@gmail.com>
46034 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46035 (grub_reiserfs_get_item): Save offset of the next item.
46036 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46038 2008-01-25 Robert Millan <rmh@aybabtu.com>
46040 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46041 make all filesystem sources appear together (possibly fixing omissions
46043 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46044 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46045 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46046 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46048 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46050 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46051 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46052 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46053 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46055 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46056 (probe): Add a sanity check to make sure of our ability to read
46057 requested files when probing for filesystem type.
46059 * genmk.rb: Update copyright year (2007).
46061 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46062 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46063 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46064 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46065 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46066 : Remove function prototypes.
46068 2008-01-25 Robert Millan <rmh@aybabtu.com>
46070 Revert my previous commits (based on wrong assumption of how grub_errno
46073 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46074 * kern/file.c (grub_file_open): Likewise.
46076 2008-01-24 Pavel Roskin <proski@gnu.org>
46078 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46079 that hang if GRUB tries to setup colors.
46080 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46081 colors for firmwares that don't support it.
46082 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46083 Recognize Open Hack'Ware, set flags to work around its
46086 2008-01-24 Robert Millan <rmh@aybabtu.com>
46088 * kern/file.c (grub_file_open): Do not account previous failures of
46089 unrelated functions when grub_errno is checked for.
46090 Reported by Oleg Strikov.
46092 2008-01-24 Bean <bean123ch@gmail.com>
46094 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46095 (grub_ufs_sblock): New member volume name.
46096 (grub_ufs_find_file): Fix string copy bug.
46097 (grub_ufs_label): Implement this function properly.
46099 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46100 (grub_hfs_iterate_records): Use the correct file number for extents
46101 and catalog file. Fix problem in next index calculation.
46102 (grub_hfs_find_node): Replace recursive function call with loop.
46103 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46105 2008-01-23 Robert Millan <rmh@aybabtu.com>
46107 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46108 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46109 (grub_multiboot2_real_boot): New function prototype.
46111 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46112 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46114 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46115 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46117 2008-01-23 Robert Millan <rmh@aybabtu.com>
46119 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46120 #ifdef'ed out grub_printf().
46122 2008-01-23 Robert Millan <rmh@aybabtu.com>
46124 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46125 grub_dprintf calls, since they make "debug=all" mode unusable.
46126 (grub_console_checkkey): Likewise.
46128 2008-01-23 Robert Millan <rmh@aybabtu.com>
46130 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46131 `term/i386/pc/at_keyboard.c'.
46132 (pkglib_MODULES): Add `serial.mod'.
46133 (serial_mod_SOURCES): New variable.
46134 (serial_mod_CFLAGS): Likewise.
46135 (serial_mod_LDFLAGS): Likewise.
46137 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46138 `<grub/powerpc/ieee1275/console.h>'.
46139 (grub_keyboard_controller_init): New function prototype.
46140 (grub_console_checkkey): Likewise.
46141 (grub_console_getkey): Likewise.
46143 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46146 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46147 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46149 2008-01-23 Robert Millan <rmh@aybabtu.com>
46151 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46152 present, "(memdisk)/boot/grub" becomes the default prefix.
46154 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46155 a memdisk tarball with all the modules. Add --overlay=DIR option that
46156 allows users to overlay additional files into the image.
46158 2008-01-23 Robert Millan <rmh@aybabtu.com>
46160 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46161 and `machine/memory.h'.
46162 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46163 (_multiboot_mod_SOURCES): New variable.
46164 (_multiboot_mod_CFLAGS): Likewise.
46165 (_multiboot_mod_LDFLAGS): Likewise.
46166 (multiboot_mod_SOURCES): Likewise.
46167 (multiboot_mod_CFLAGS): Likewise.
46168 (multiboot_mod_LDFLAGS): Likewise.
46170 * include/grub/i386/ieee1275/loader.h: New file.
46172 * include/grub/i386/ieee1275/machine.h: Likewise.
46174 * include/grub/i386/ieee1275/memory.h: Likewise.
46176 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46177 variable declaration.
46178 (grub_os_area_size): Likewise.
46180 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46181 (grub_lower_mem, grub_upper_mem): New variables.
46182 (grub_stop_floppy): New function (just to make
46183 grub_multiboot2_real_boot() happy).
46185 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46186 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46187 (grub_stop): New function.
46188 Include `"../realmode.S"' and `"../loader.S"'.
46190 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46191 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46193 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46194 rely on grub_multiboot2_real_boot() for final boot.
46196 2008-01-22 Robert Millan <rmh@aybabtu.com>
46198 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46199 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46200 device that doesn't look like an SD card.
46201 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46202 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46203 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46204 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46207 2008-01-22 Robert Millan <rmh@aybabtu.com>
46209 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46210 avoid claiming over our own code.
46212 2008-01-22 Bean <bean123ch@gmail.com>
46214 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46215 (jpeg_mod_SOURCES): New variable.
46216 (jpeg_mod_CFLAGS): Likewise.
46217 (jpeg_mod_LDFLAGS): Likewise.
46219 * video/readers/jpeg.c : New file.
46221 2008-01-22 Bean <bean123ch@gmail.com>
46223 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46224 there are no more items.
46226 2008-01-21 Robert Millan <rmh@aybabtu.com>
46228 * kern/mm.c (grub_mm_init_region): Improve debug message.
46230 2008-01-21 Robert Millan <rmh@aybabtu.com>
46232 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46233 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46235 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46237 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46238 Indicates start of upper memory.
46239 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46240 (generate_image): Abort when image size is big enough to corrupt
46243 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46244 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46245 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46246 instead of hardcoding 0xA0000.
46247 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46248 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46249 instead of hardcoding 0xA0000.
46251 2008-01-21 Robert Millan <rmh@aybabtu.com>
46253 * disk/memdisk.c (memdisk_size): New variable.
46254 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46256 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46257 image to dynamic memory.
46258 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46259 `memdisk_size'. Free memdisk block.
46261 2008-01-21 Robert Millan <rmh@aybabtu.com>
46263 Fix detection of very small filesystems (like tar).
46265 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46266 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46267 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46268 a problem with this disk).
46270 2008-01-21 Robert Millan <rmh@aybabtu.com>
46272 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46273 on grub_biosdisk_rw_standard() error.
46275 2008-01-21 Robert Millan <rmh@aybabtu.com>
46277 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46279 * kern/elf.c: Likewise.
46280 * kern/ieee1275/ieee1275.c: Likewise.
46281 * kern/powerpc/ieee1275/openfw.c: Likewise.
46282 * term/ieee1275/ofconsole.c: Likewise.
46284 2008-01-21 Robert Millan <rmh@aybabtu.com>
46286 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46288 * include/grub/kernel.h (grub_arch_memdisk_addr)
46289 (grub_arch_memdisk_size): Moved from here ...
46291 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46292 (grub_arch_memdisk_size): ... to here.
46294 2008-01-21 Robert Millan <rmh@aybabtu.com>
46296 Mostly based on bugfix from Bean.
46298 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46299 attribute with hook() parameter.
46300 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46302 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46303 attribute with hook() parameter.
46304 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46307 2008-01-21 Robert Millan <rmh@aybabtu.com>
46309 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46310 (pkglib_MODULES): Add `memdisk.mod'.
46311 (memdisk_mod_SOURCES): New variable.
46312 (memdisk_mod_CFLAGS): Likewise.
46313 (memdisk_mod_LDFLAGS): Likewise.
46315 * disk/memdisk.c: New file.
46317 * include/grub/disk.h (grub_disk_dev_id): Add
46318 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46320 * include/grub/i386/pc/kernel.h
46321 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46322 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46323 (grub_kernel_image_size): New variable declaration.
46324 (grub_total_module_size): Likewise.
46325 (grub_memdisk_image_size): Likewise.
46327 * include/grub/i386/pc/memory.h
46328 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46330 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46331 (grub_arch_memdisk_addr): New variable declaration.
46332 (grub_arch_memdisk_size): Likewise.
46334 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46335 (grub_arch_memdisk_size): Likewise.
46337 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46338 (codestart): Replace hardcoded `0x100000' with
46339 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46341 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46342 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46343 not NULL, append the contents of the file it refers to, at the end of
46344 the compressed kernel image. Initialize `grub_memdisk_image_size'
46345 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46346 (options): Add "memdisk"|'m' option.
46347 (main): Parse --memdisk|-m option, and pass user-provided path as
46348 parameter to generate_image().
46350 2008-01-20 Robert Millan <rmh@aybabtu.com>
46352 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46353 grub_dprintf() calls from here ...
46354 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46356 2008-01-20 Robert Millan <rmh@aybabtu.com>
46358 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46360 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46362 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46363 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46364 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46365 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46367 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46368 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46370 2008-01-19 Robert Millan <rmh@aybabtu.com>
46372 Get rid of confusing function (superseded by
46373 `grub_ieee1275_get_integer_property')
46374 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46376 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46378 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46379 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46380 in native endianness from grub_ieee1275_get_integer_property().
46382 2008-01-19 Robert Millan <rmh@aybabtu.com>
46384 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46385 command after "shut-down", since implementations differ on which
46386 the command for halt is.
46388 2008-01-19 Robert Millan <rmh@aybabtu.com>
46390 * include/grub/i386/linuxbios/console.h: Add header protection.
46391 (grub_keyboard_controller_init): New function prototype.
46392 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46393 (KEYBOARD_COMMAND_READ): Likewise.
46394 (KEYBOARD_COMMAND_WRITE): Likewise.
46395 (KEYBOARD_SCANCODE_SET1): Likewise.
46396 (grub_keyboard_controller_write): New function.
46397 (grub_keyboard_controller_read): Likewise.
46398 (grub_keyboard_controller_init): Likewise.
46400 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46401 (grub_console_init): On coreboot/LinuxBIOS, call
46402 grub_keyboard_controller_init().
46404 2008-01-19 Robert Millan <rmh@aybabtu.com>
46406 PowerPC changes provided by Pavel Roskin.
46408 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46409 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46410 don't rely on cmain() doing it.
46411 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46412 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46414 2008-01-16 Robert Millan <rmh@aybabtu.com>
46416 * include/grub/i386/linuxbios/memory.h
46417 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46418 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46419 receive `table_header' as argument. Instead, probe for it in the
46420 known memory ranges where it can be present.
46421 (grub_available_iterate): Do not pass a fixed `table_header' address
46422 to grub_linuxbios_table_iterate().
46424 2008-01-15 Robert Millan <rmh@aybabtu.com>
46426 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46427 * conf/i386-ieee1275.rmk: New file.
46428 * include/grub/i386/ieee1275/console.h: Likewise.
46429 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46430 * include/grub/i386/ieee1275/kernel.h: Likewise.
46431 * include/grub/i386/ieee1275/time.h: Likewise.
46432 * kern/i386/ieee1275/init.c: Likewise.
46433 * kern/i386/ieee1275/startup.S: Likewise.
46435 2008-01-15 Robert Millan <rmh@aybabtu.com>
46437 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46438 when pointers are 32-bit (but still do set it to one when they are
46441 2008-01-15 Robert Millan <rmh@aybabtu.com>
46443 * include/grub/ieee1275/ieee1275.h
46444 (grub_ieee1275_get_integer_property): New function prototype.
46446 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46447 (grub_ieee1275_get_integer_property): New function. Wraps around
46448 grub_ieee1275_get_property() to handle endianness.
46450 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46451 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46453 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46454 (grub_map): Likewise.
46455 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46457 2008-01-15 Bean <bean123ch@gmail.com>
46459 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46460 (grub_script_execute_cmdline): Reset grub_errno.
46462 * normal/main.c (read_config_file): Reset grub_errno.
46464 * normal/parse.y (script_init): New.
46465 (script): Move function and menuentry here.
46467 (command): Add delimiter at the end of command.
46468 (commands): Adjust to match the new command.
46469 (commandblock): Remove grub_script_lexer_record_start.
46470 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46471 (if): Use the new commands.
46473 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46475 2008-01-15 Robert Millan <rmh@aybabtu.com>
46477 * normal/menu.c (run_menu): Move timeout message from here ...
46478 (print_timeout): ... to here.
46479 (run_menu): Use print_timeout() once during initial draw to print
46480 the whole message, and again in every clock tick to update only
46481 the number of seconds.
46483 2008-01-15 Robert Millan <rmh@aybabtu.com>
46485 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46486 actual size of `available' from grub_ieee1275_get_property(), and
46487 restrict parsing to that bound.
46489 2008-01-15 Christian Franke <franke@computer.org>
46491 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46492 (argp_program_version): Remove variable.
46493 (argp_program_bug_address): Likewise.
46494 (options): Convert from struct argp_option to struct option.
46495 (struct arguments): Remove.
46496 (parse_opt): Remove.
46497 (usage): New function.
46498 (main): Replace struct args members by simple variables.
46499 Replace argp_parse() by getopt_long().
46500 Add switch to evaluate options.
46501 Add missing "(...)" around root_dev in prefix string.
46503 2008-01-14 Robert Millan <rmh@aybabtu.com>
46505 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46506 for grub_ieee1275_exit(), in order to improve portability.
46508 2008-01-14 Robert Millan <rmh@aybabtu.com>
46510 * util/grub.d/10_linux.in (prefix): Define.
46511 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46513 2008-01-13 Pavel Roskin <proski@gnu.org>
46515 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46516 grub_errno if no errors have been detected.
46518 2008-01-12 Robert Millan <rmh@aybabtu.com>
46520 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46521 (grub_util_get_dev_abstraction): New function prototype.
46523 * util/getroot.c: Include `<grub/util/getroot.h>'
46524 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46525 (grub_util_get_dev_abstraction): ... here (new function).
46527 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46528 `PRINT_ABSTRACTION'.
46529 (probe): Probe for abstraction type when requested.
46530 (main): Understand `--target=abstraction'.
46532 * util/i386/efi/grub-install.in: Add abstraction module to core
46533 image when it is found to be necessary.
46534 * util/i386/pc/grub-install.in: Likewise.
46535 * util/powerpc/ieee1275/grub-install.in: Likewise.
46537 * util/update-grub_lib.in (font_path): Return system path without
46538 converting to GRUB path.
46539 * util/update-grub.in: Convert system path returned by font_path()
46540 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46541 abstraction module is needed for loading fonts (if any). Export
46542 that as `GRUB_PRELOAD_MODULES'.
46543 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46546 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46548 Remove some unused code from reiserfs.
46550 * fs/reiserfs.c (struct grub_reiserfs_key)
46551 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46552 (struct grub_reiserfs_node_body): Removed.
46553 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46555 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46557 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46559 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46561 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46563 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46565 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46566 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46567 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46569 2008-01-10 Robert Millan <rmh@aybabtu.com>
46571 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46572 Determines if a file is garbage left by packaging systems, etc.
46573 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46574 for processing /etc/grub.d scripts.
46575 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46576 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46577 as a condition for processing Linux images.
46579 2008-01-10 Pavel Roskin <proski@gnu.org>
46581 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46582 to compile reiserfs.c on PowerPC.
46584 2008-01-10 Robert Millan <rmh@aybabtu.com>
46586 * kern/device.c (grub_device_iterate): Do not abort device iteration
46587 when one of the devices cannot be opened.
46588 * kern/disk.c (grub_disk_open): Do not account previous failures of
46589 unrelated functions when grub_errno is checked for.
46591 2008-01-08 Robert Millan <rmh@aybabtu.com>
46593 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46594 `! grub_linux_is_bzimage', change order of address comparison to make
46595 it more intuitive, and improve "too big zImage" error message.
46597 2008-01-08 Robert Millan <rmh@aybabtu.com>
46599 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46600 `$(update-grub_DATA)'.
46601 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46604 2008-01-07 Robert Millan <rmh@aybabtu.com>
46606 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46607 which instruction is modified by grub-setup during installation
46608 (since it wasn't obvious by only looking at this file).
46610 2008-01-07 Robert Millan <rmh@aybabtu.com>
46612 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46613 listing actual TODO items.
46615 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46617 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46619 (grub_reiserfs_get_key_offset): Likewise.
46620 (grub_reiserfs_set_key_offset): Likewise.
46621 (grub_reiserfs_set_key_type): Likewise.
46622 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46624 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46625 better to remove the bitfield version completely.
46627 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46629 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46630 allocated from the heap, due to the fshelp implementation.
46631 (grub_reiserfs_dir): Free NODE, due to the same reason.
46633 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46635 Mostly from Vincent Pelletier:
46637 * fs/reiserfs.c: New file.
46639 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46640 (reiserfs_mod_SOURCES): New variable.
46641 (reiserfs_mod_CFLAGS): Likewise.
46642 (reiserfs_mod_LDFLAGS): Likewise.
46644 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46645 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46646 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46649 2008-01-06 Robert Millan <rmh@aybabtu.com>
46651 * normal/color.c: Remove `<grub/env.h>'.
46653 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46655 * include/grub/normal.h: Include <grub/env.h>.
46657 2008-01-05 Robert Millan <rmh@aybabtu.com>
46659 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46660 usage example with `(hd0,1)'.
46661 Reported by Samuel Thibault.
46663 2008-01-05 Robert Millan <rmh@aybabtu.com>
46665 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46666 (grub_linux_boot_zimage): Rename to ...
46667 (grub_linux_boot): ... this.
46668 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46669 (grub_linux_boot_zimage): Conditionalize zImage copy.
46671 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46672 (grub_linux_boot_bzimage): Remove prototype.
46673 (grub_linux_boot_zimage): Rename to ...
46674 (grub_linux_boot): ... this.
46676 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46677 (grub_linux_boot): Remove function.
46679 2008-01-05 Robert Millan <rmh@aybabtu.com>
46681 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46682 (grub_env_write_color_highlight): Likewise.
46683 (grub_wait_after_message): Likewise.
46685 * normal/color.c: New file.
46687 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46688 (normal_mod_DEPENDENCIES): Likewise.
46690 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46691 (normal_mod_DEPENDENCIES): Likewise.
46693 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46694 (normal_mod_DEPENDENCIES): Likewise.
46696 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46697 (normal_mod_DEPENDENCIES): Likewise.
46699 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46700 for waiting after a message is printed.
46701 * normal/main.c (read_config_file): Likewise.
46702 (grub_normal_init): Register grub_env_write_color_normal() and
46703 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46704 `color_highlight' variables as global.
46706 * normal/menu.c (grub_wait_after_message): New function.
46707 (grub_color_menu_normal): New variable. Replaces ...
46708 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46709 (grub_color_menu_highlight): New variable. Replaces ...
46710 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46711 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46712 `GRUB_TERM_COLOR_STANDARD'.
46713 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46714 `normal_code' and `highlight_code' to `old_color_normal' and
46715 `old_color_highlight', respectively.
46716 (grub_menu_init_page): Update colors when drawing the menu, based on
46717 `menu_color_normal' and `menu_color_highlight' variables.
46718 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46719 a message is printed.
46721 2008-01-05 Robert Millan <rmh@aybabtu.com>
46723 * kern/env.c (grub_env_context_open): Propagate hooks for global
46724 variables to new context.
46726 * kern/main.c (grub_set_root_dev): Export `root' variable.
46728 2008-01-05 Robert Millan <rmh@aybabtu.com>
46730 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46731 discs unconditionally, since udev and others have options to provide
46734 2008-01-05 Robert Millan <rmh@aybabtu.com>
46736 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46738 2008-01-04 Christian Franke <franke@computer.org>
46740 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46743 2008-01-03 Pavel Roskin <proski@gnu.org>
46745 * kern/i386/linuxbios/init.c: Put "void" to all function
46746 declarations with no arguments.
46747 * kern/powerpc/ieee1275/init.c: Likewise.
46748 * term/i386/pc/at_keyboard.c: Likewise.
46749 * term/i386/pc/vga_text.c: Likewise.
46750 * util/grub-mkdevicemap.c: Likewise.
46752 2008-01-02 Robert Millan <rmh@aybabtu.com>
46754 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46755 message when loaded image is out of bounds.
46756 (grub_multiboot_load_elf64): Likewise.
46758 2008-01-02 Pavel Roskin <proski@gnu.org>
46760 * util/grub.d/10_linux.in: Try version without ".old" when
46761 looking for initrd. It's better to use initrd from the newer
46762 kernel of the same version than no initrd at all.
46764 2008-01-01 Robert Millan <rmh@aybabtu.com>
46766 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46768 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46770 * include/grub/video.h: Added grub_video_unmap_color and
46771 grub_video_get_active_render_target.
46772 (grub_video_adapter): Added unmap_color and get_active_render_target.
46774 * video/video.c: Added grub_video_unmap_color and
46775 grub_video_get_active_render_target.
46776 (grub_video_get_info): Changed method to accept NULL pointer as an
46777 argument to allow detection of active video adapter.
46779 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46780 grub_video_vbe_unmap_color_int.
46781 Added grub_video_vbe_unmap_color and
46782 grub_video_vbe_get_active_render_target.
46783 (grub_video_vbe_adapter): Added unmap_color and
46784 get_active_render_target.
46786 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46787 with grub_video_vbe_unmap_color_int.
46789 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46790 (DEFAULT_NORMAL_COLOR): Likewise.
46791 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46792 (DEFAULT_FG_COLOR): Removed.
46793 (DEFAULT_BG_COLOR): Likewise.
46794 (DEFAULT_CURSOR_COLOR): Changed value.
46795 (grub_virtual_screen): Added standard_color_setting,
46796 normal_color_setting, highlight_color_setting and term_color.
46797 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46798 (bitmap_width): Added.
46799 (bitmap_height): Likewise.
46800 (bitmap): Likewise.
46801 (set_term_color): Likewise.
46802 (grub_virtual_screen_setup): Changed to use new terminal coloring
46804 (grub_gfxterm_init): Added init for bitmap.
46805 (grub_gfxterm_fini): Added destroy for bitmap.
46806 (redraw_screen_rect): Updated to use background bitmap and new
46808 (scroll_up): Added optimization for case when there is no bitmap.
46809 (grub_gfxterm_cls): Fixed to use correct background color.
46810 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46812 (grub_virtual_screen_setcolor): Likewise.
46813 (grub_virtual_screen_getcolor): Added.
46814 (grub_gfxterm_background_image_cmd): Likewise.
46815 (grub_video_term): Added setcolor and getcolor.
46816 (MOD_INIT): Added registration of background_image command.
46817 (MOD_TERM): Added unregistration for background_image command.
46819 2007-12-30 Pavel Roskin <proski@gnu.org>
46821 * loader/multiboot_loader.c: Fix multiboot command
46822 unregistration. Fix all typos in the word "multiboot".
46824 2007-12-29 Pavel Roskin <proski@gnu.org>
46826 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46827 support for initrd names used in Fedora.
46829 2007-12-26 Bean <bean123ch@gmail.com>
46831 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46832 (cpio_mod_SOURCES): New variable.
46833 (cpio_mod_CFLAGS): Likewise.
46834 (cpio_mod_LDFLAGS): Likewise.
46836 * fs/cpio.c: New file.
46838 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46840 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46842 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46844 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46846 2007-12-25 Robert Millan <rmh@aybabtu.com>
46848 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46849 (grub_getcolor): New function.
46851 * kern/term.c (grub_getcolor): New function.
46852 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46853 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46854 (print_entry): Set normal and highlight colors to
46855 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
46856 respectively, before printing and restore them to old
46858 (grub_menu_init_page): Likewise. Fill an additional colored space
46859 that would otherwise be left blank.
46861 * term/efi/console.c (grub_console_getcolor): New function.
46862 (struct grub_console_term.getcolor): New variable.
46863 * term/i386/pc/console.c (grub_console_getcolor): New function.
46864 (struct grub_console_term.getcolor): New variable.
46865 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
46866 (struct grub_console_term.getcolor): New variable.
46868 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
46869 (struct grub_console_term.setcolor): Remove variable.
46870 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
46871 (struct grub_console_term.setcolor): Remove variable.
46872 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
46873 (struct grub_console_term.setcolor): Remove variable.
46874 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
46875 (struct grub_console_term.setcolor): Remove variable.
46877 2007-12-25 Robert Millan <rmh@aybabtu.com>
46879 * configure.ac: Search for possible unifont.hex locations, and
46880 define UNIFONT_HEX if found.
46882 * Makefile.in (UNIFONT_HEX): Define variable.
46883 (DATA): Rename to ...
46884 (PKGLIB): ... this. Update all users.
46885 (PKGDATA): New variable.
46886 (pkgdata_IMAGES): Rename to ...
46887 (pkglib_IMAGES): ... this. Update all users.
46888 (pkgdata_MODULES): Rename to ...
46889 (pkglib_MODULES): ... this. Update all users.
46890 (pkgdata_PROGRAMS): Rename to ...
46891 (pkglib_PROGRAMS): ... this. Update all users.
46892 (pkgdata_DATA): Rename to ...
46893 (pkglib_DATA): ... this. Update all users.
46894 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
46895 (unicode.pff, ascii.pff): New rules.
46896 (all-local): Add `$(PKGDATA)' dependency.
46897 (install-local): Process `$(PKGDATA)'.
46899 * util/update-grub_lib.in (font_path): Search for *.pff files in
46900 a few more locations, including `${pkgdata}'.
46902 2007-12-23 Robert Millan <rmh@aybabtu.com>
46904 Patch from Bean <bean123ch@gmail.com>:
46905 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
46908 2007-12-21 Bean <bean123ch@gmail.com>
46910 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
46911 (ntfscomp_mod_SOURCES): New variable.
46912 (ntfscomp_mod_CFLAGS): Likewise.
46913 (ntfscomp_mod_LDFLAGS): Likewise.
46915 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
46916 (grub_probe_SOURCES): Likewise.
46917 (grub_emu_SOURCES): Likewise.
46919 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46920 (grub_emu_SOURCES): Likewise.
46922 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46923 (grub_emu_SOURCES): Likewise.
46925 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
46926 (grub_emu_SOURCES): Likewise.
46928 * fs/ntfs.c (grub_ntfscomp_func): New variable.
46929 (read_run_list): Renamed to grub_ntfs_read_run_list.
46930 (decomp_nextvcn): Moved to ntfscomp.c.
46931 (decomp_getch): Likewise.
46932 (decomp_get16): Likewise.
46933 (decomp_block): Likewise.
46934 (read_block): Likewise.
46935 (read_data): Partially moved to ntfscomp.c.
46936 (fixup): Change unsigned to grub_uint16_t.
46937 (read_mft): Change unsigned long to grub_uint32_t.
46938 (read_attr): Likewise.
46939 (read_data): Likewise.
46940 (read_run_data): Likewise.
46941 (read_run_list): Likewise.
46942 (read_mft): Likewise.
46944 * fs/ntfscomp.c: New file.
46946 * include/grub/ntfs.h: New file.
46948 2007-12-16 Robert Millan <rmh@aybabtu.com>
46950 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
46951 IDE disk check, since Linux is known to support 20 IDE disks.
46952 Reported by Colin Watson.
46954 2007-12-15 Bean <bean123ch@gmail.com>
46956 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
46957 (lnxboot_img_SOURCES): New variable.
46958 (lnxboot_img_ASFLAGS): Likewise.
46959 (lnxboot_img_LDFLAGS): Likewise.
46961 * boot/i386/pc/lnxboot.S: New file.
46963 2007-11-24 Pavel Roskin <proski@gnu.org>
46965 * configure.ac: Test if '--build-id=none' is supported by the
46966 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
46967 objcopy to generate incorrect binary files (binutils
46968 2.17.50.0.18-1 as shipped by Fedora 8).
46969 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
46970 linking, so that build ID doesn't break the test.
46972 2007-11-24 Pavel Roskin <proski@gnu.org>
46974 * include/grub/i386/time.h: use "void" in the argument list
46975 of grub_cpu_idle().
46976 * include/grub/powerpc/time.h: Likewise.
46977 * include/grub/sparc64/time.h: Likewise.
46979 2007-11-18 Christian Franke <franke@computer.org>
46981 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
46982 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
46983 This fixes the problem that function keys did not work in grub-emu.
46985 2007-11-18 Christian Franke <franke@computer.org>
46987 * disk/host.c (grub_host_open): Remove attribute unused from
46988 name parameter. Add check for "host". This fixes the problem
46989 that grub-emu does not find partitions.
46991 2007-11-18 Christian Franke <franke@computer.org>
46993 * util/hostfs.c (is_dir): New function.
46994 (grub_hostfs_dir): Handle missing dirent.d_type case.
46995 (grub_hostfs_read): Add missing fseek().
46996 (grub_hostfs_label): Clear label pointer. This fixes a crash
46997 of grub-emu on "ls (host)".
46999 2007-11-18 Christian Franke <franke@computer.org>
47001 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47002 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47003 to 64 bit boundary by default.
47005 2007-11-18 Bean <bean123ch@gmail.com>
47007 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47008 (hexdump_mod_SOURCES): New variable.
47009 (hexdump_mod_CFLAGS): Likewise.
47010 (hexdump_mod_LDFLAGS): Likewise.
47012 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47014 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47016 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47018 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47020 * include/grub/hexdump.h: New file.
47022 * commands/hexdump.c: New file.
47024 2007-11-10 Robert Millan <rmh@aybabtu.com>
47026 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47027 in grub_outb() calls.
47028 (beep_on): Likewise.
47030 2007-11-10 Christian Franke <franke@computer.org>
47032 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47033 (grub_menu_run): Likewise.
47035 2007-11-10 Robert Millan <rmh@aybabtu.com>
47037 * include/grub/i386/efi/machine.h: New file.
47038 * include/grub/i386/linuxbios/machine.h: Likewise.
47039 * include/grub/i386/pc/machine.h: Likewise.
47040 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47041 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47043 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47044 (serial_hw_io_addr): New variable.
47045 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47046 instead of `(unsigned short *) 0x400'.
47048 2007-11-10 Bean <bean123ch@gmail.com>
47050 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47052 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47054 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47055 (vga_mod_SOURCES): Added.
47056 (vga_mod_CFLAGS): Likewise.
47057 (vga_mod_LDFLAGS): Likewise.
47059 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47061 (set_map_mask): Likewise.
47062 (set_read_map): Likewise.
47063 (set_read_address): Likewise.
47064 (vga_font): Removed variable.
47065 (get_vga_glyph): Removed function.
47066 (invalidate_char): Likewise.
47067 (write_char): Changed to use grub_font_get_glyph() for font
47069 (grub_vga_putchar): Likewise.
47070 (grub_vga_getcharwidth): Likewise.
47072 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47074 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47076 (pxeboot_img_LDFLAGS): Likewise.
47077 (diskboot_img_LDFLAGS): Likewise.
47078 (kernel_img_LDFLAGS): Likewise.
47080 2007-11-06 Robert Millan <rmh@aybabtu.com>
47082 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47083 in grub_outb() calls.
47084 (serial_hw_init): Likewise.
47086 2007-11-05 Robert Millan <rmh@aybabtu.com>
47088 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47089 spaces. Skip non-regular files.
47091 2007-11-05 Robert Millan <rmh@aybabtu.com>
47093 * kern/disk.c (grub_disk_firmware_fini)
47094 (grub_disk_firmware_is_tainted): New variables.
47096 * include/grub/disk.h (grub_disk_firmware_fini)
47097 (grub_disk_firmware_is_tainted): Likewise.
47099 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47100 (grub_disk_biosdisk_fini): ... to here.
47101 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47102 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47103 is set. Register grub_disk_biosdisk_fini() in
47104 `grub_disk_firmware_fini'.
47106 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47107 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47108 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47109 to finish existing firmware disk interface.
47111 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47112 (ata_mod_SOURCES): New variable.
47113 (ata_mod_CFLAGS): Likewise.
47114 (ata_mod_LDFLAGS): Likewise.
47116 2007-11-05 Robert Millan <rmh@aybabtu.com>
47118 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47119 (grub_ata_wait): Reimplement using grub_millisleep().
47121 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47122 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47124 2007-11-03 Marco Gerards <marco@gnu.org>
47126 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47127 (CRTC_ADDR_PORT): New macro.
47128 (CRTC_DATA_PORT): Likewise.
47129 (CRTC_CURSOR): Likewise.
47130 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47131 (CRTC_CURSOR_ADDR_LOW): Likewise.
47132 (update_cursor): New function.
47133 (grub_console_real_putchar): Call `update_cursor'.
47134 (grub_console_gotoxy): Likewise.
47135 (grub_console_cls): Set the default color when clearing the
47137 (grub_console_setcursor): Implemented.
47139 2007-11-03 Marco Gerards <marco@gnu.org>
47141 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47143 (grub_ata_pio_write): Likewise.
47145 (grub_atapi_identify): Wait after issuing an ATA command.
47146 (grub_atapi_packet): Likewise.
47147 (grub_ata_identify): Likewise.
47148 (grub_ata_readwrite): Likewise.
47150 2007-11-03 Marco Gerards <marco@gnu.org>
47152 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47153 (grub_ata_pio_write): Likewise.
47154 (grub_ata_readwrite): Use `grub_error', instead of
47155 returning `grub_errno'.
47157 2007-11-03 Marco Gerards <marco@gnu.org>
47159 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47160 grub_ata_pio_write once for every single sector, instead of for
47163 2007-10-31 Robert Millan <rmh@aybabtu.com>
47165 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47167 * conf/i386-linuxbios.rmk: New file.
47169 * kern/i386/pc/hardware.c: Likewise.
47170 * term/i386/pc/at_keyboard.c: Likewise.
47171 * term/i386/pc/vga_text.c: Likewise.
47173 * include/grub/i386/linuxbios/boot.h: Likewise.
47174 * include/grub/i386/linuxbios/console.h: Likewise.
47175 * include/grub/i386/linuxbios/init.h: Likewise.
47176 * include/grub/i386/linuxbios/kernel.h: Likewise.
47177 * include/grub/i386/linuxbios/loader.h: Likewise.
47178 * include/grub/i386/linuxbios/memory.h: Likewise.
47179 * include/grub/i386/linuxbios/serial.h: Likewise.
47180 * include/grub/i386/linuxbios/time.h: Likewise.
47182 * kern/i386/linuxbios/init.c: Likewise.
47183 * kern/i386/linuxbios/startup.S: Likewise.
47184 * kern/i386/linuxbios/table.c: Likewise.
47186 2007-10-31 Marco Gerards <marco@gnu.org>
47188 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47189 (ata_mod_SOURCES): New variable.
47190 (ata_mod_CFLAGS): Likewise.
47191 (ata_mod_LDFLAGS): Likewise.
47193 * disk/ata.c: New file.
47195 * include/grub/disk.h (grub_disk_dev_id): Add
47196 `GRUB_DISK_DEV_ATA_ID'.
47198 2007-10-31 Robert Millan <rmh@aybabtu.com>
47200 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47201 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47203 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47204 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47206 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47209 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47211 2007-10-27 Robert Millan <rmh@aybabtu.com>
47213 * include/grub/types.h (ULONG_MAX): Define macro.
47215 2007-10-22 Robert Millan <rmh@aybabtu.com>
47217 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47219 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47221 2007-10-22 Robert Millan <rmh@aybabtu.com>
47223 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47224 (pkgdata_MODULES): Add `biosdisk.mod'.
47225 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47228 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47229 (grub_biosdisk_init): Replace with ...
47230 (GRUB_MOD_INIT(biosdisk)): ... this.
47231 (grub_biosdisk_fini): Replace with ...
47232 (GRUB_MOD_FINI(biosdisk)): ... this.
47234 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47235 (grub_machine_init): Remove call to grub_biosdisk_init().
47236 (grub_machine_fini): Remove call to grub_machine_fini().
47238 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47240 2007-10-22 Robert Millan <rmh@aybabtu.com>
47242 * include/grub/time.h: New file.
47243 * include/grub/i386/time.h: Likewise.
47244 * include/grub/powerpc/time.h: Likewise.
47245 * include/grub/sparc64/time.h: Likewise.
47247 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47249 (KERNEL_MACHINE_TIME_HEADER): ... this.
47250 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47252 (KERNEL_MACHINE_TIME_HEADER): ... this.
47253 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47255 (KERNEL_MACHINE_TIME_HEADER): ... this.
47257 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47258 (grub_millisleep): New function.
47259 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47260 (grub_millisleep): New function.
47261 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47262 Remove `grub/machine/time.h' include.
47263 (grub_millisleep): New function.
47264 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47265 Remove `grub/machine/time.h' include.
47266 (grub_millisleep): New function.
47268 * include/grub/misc.h (grub_div_roundup): New function.
47270 * kern/misc.c: Include `<grub/time.h>'.
47271 (grub_millisleep_generic): New function.
47273 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47275 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47277 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47278 `machine/time.h'. Add `time.h'.
47279 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47281 2007-10-21 Robert Millan <rmh@aybabtu.com>
47283 * include/grub/misc.h (grub_max): New function.
47285 2007-10-21 Robert Millan <rmh@aybabtu.com>
47287 * util/misc.c (grub_util_info): Call fflush() before returning.
47289 2007-10-20 Robert Millan <rmh@aybabtu.com>
47291 * genmk.rb (Image): Copy `extra_flags' from here ...
47292 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47294 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47295 to `argc' and `args' arguments.
47297 2007-10-17 Robert Millan <rmh@aybabtu.com>
47299 * kern/i386/loader.S: New file.
47301 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47302 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47303 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47304 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47305 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47306 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47307 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47308 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47309 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47310 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47311 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47312 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47313 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47314 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47316 * kern/i386/realmode.S: New file.
47318 * kern/i386/pc/startup.S (protstack): Moved from here ...
47319 * kern/i386/realmode.S (protstack)... to here.
47320 * kern/i386/pc/startup.S (gdt): Moved from here ...
47321 * kern/i386/realmode.S (gdt)... to here.
47322 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47323 * kern/i386/realmode.S (prot_to_real)... to here.
47325 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47326 `kern/i386/realmode.S'.
47328 2007-10-17 Robert Millan <rmh@aybabtu.com>
47330 * include/grub/i386/loader.h: New file.
47332 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47333 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47334 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47335 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47336 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47337 * include/grub/i386/loader.h (grub_linux_prot_size)
47338 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47339 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47340 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47341 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47343 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47345 2007-10-15 Robert Millan <rmh@aybabtu.com>
47347 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47348 filesystem when dev->disk is unset.
47349 Do probe for filesystem even when dev->disk->has_partitions is set.
47350 In case a filesystem is found, always report it.
47351 In case it isn't, if dev->disk->has_partitions is set, report that
47352 a partition table was found instead of reporting that no filesystem
47353 could be identified.
47355 2007-10-12 Robert Millan <rmh@aybabtu.com>
47357 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47358 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47360 * include/grub/types.h (grub_host_to_target16): New macro.
47361 (grub_host_to_target32): Likewise.
47362 (grub_host_to_target64): Likewise.
47363 (grub_target_to_host16): Likewise.
47364 (grub_target_to_host32): Likewise.
47365 (grub_target_to_host64): Likewise.
47367 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47368 Renamed from to ...
47369 (GRUB_MOD_ALIGN): ...this. Update all users.
47371 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47372 grub_host_to_target32.
47373 Replace grub_be_to_cpu32 with grub_target_to_host32.
47374 (load_modules): Likewise.
47375 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47376 Replace grub_be_to_cpu32 with grub_target_to_host32.
47377 Replace grub_cpu_to_be16 with grub_host_to_target16.
47378 Replace grub_cpu_to_be32 grub_host_to_target32.
47380 2007-10-12 Robert Millan <rmh@aybabtu.com>
47382 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47383 * util/elf/grub-mkimage.c: ... here.
47385 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47386 `util/powerpc/ieee1275/grub-mkimage.c'.
47388 2007-10-07 Robert Millan <rmh@aybabtu.com>
47390 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47391 and make it easier to figure out.
47392 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47393 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47394 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47395 leave us with less than HEAP_MIN_SIZE total heap.
47396 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47398 2007-10-03 Robert Millan <rmh@aybabtu.com>
47400 * include/grub/i386/io.h: New file.
47401 * commands/i386/pc/play.c (inb): Removed.
47403 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47405 * term/i386/pc/serial.c (inb): Removed.
47407 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47409 * term/i386/pc/vga.c (inb): Removed.
47411 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47414 2007-10-02 Robert Millan <rmh@aybabtu.com>
47416 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47417 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47418 Reported by Marcin Kurek.
47420 2007-09-07 Robert Millan <rmh@aybabtu.com>
47422 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47423 SmartFirmware version updates (as released by Sven Luther), and avoid
47424 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47425 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47428 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47430 From Hitoshi Ozeki:
47431 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47432 when merging two regions.
47434 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47436 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47437 * normal/completion.c (grub_normal_do_completion): Likewise.
47438 Reported by Hitoshi Ozeki.
47440 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47442 Do not use devices at boot in chainloading.
47444 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47445 (boot_part_addr): Likewise.
47446 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47447 with BOOT_DRIVE and BOOT_PART_ADDR.
47448 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47449 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47451 2007-08-29 Robert Millan <rmh@aybabtu.com>
47453 Patch from Simon Peter <dn.tlp@gmx.net>:
47454 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47455 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47456 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47457 util/i386/pc/grub-setup.c_DEPENDENCIES.
47458 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47459 util/grub-probe.c_DEPENDENCIES.
47460 * conf/powerpc-ieee1275.rmk: Likewise.
47462 2007-08-28 Robert Millan <rmh@aybabtu.com>
47464 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47465 to tell grub-mkdevicemap how to name devices.
47466 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47469 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47470 util/i386/get_disk_name.c.
47471 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47472 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47473 util/ieee1275/get_disk_name.c.
47475 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47477 * DISTLIST: Add util/i386/get_disk_name.c and
47478 util/ieee1275/get_disk_name.c.
47480 * util/grub-mkdevicemap.c: Replace device naming logic with
47481 grub_util_get_disk_name() calls.
47483 2007-08-20 Robert Millan <rmh@aybabtu.com>
47485 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47486 (so that it works for both plural and singular quantities).
47488 2007-08-05 Robert Millan <rmh@aybabtu.com>
47490 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47491 so that [xz] isn't taken into account when determining order.
47493 2007-08-02 Marco Gerards <marco@gnu.org>
47495 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47496 `include/multiboot2.h', `include/grub/elfload.h',
47497 `include/multiboot.h', `include/grub/multiboot.h',
47498 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47499 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47500 `kern/elf.c', `loader/multiboot_loader.c',
47501 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47502 `loader/i386/pc/multiboot2.c',
47503 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47504 `util/i386/pc/grub-mkrescue.in'. Remove
47505 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47506 `include/grub/i386/pc/util/biosdisk.h' and
47507 `include/grub/powerpc/ieee1275/multiboot.h'.
47509 2007-08-02 Bean <bean123ch@gmail.com>
47511 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47512 (ntfs_mod_SOURCES): New variable.
47513 (ntfs_mod_CFLAGS): Likewise.
47514 (ntfs_mod_LDFLAGS): Likewise.
47516 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47517 (grub_probe_SOURCES): Likewise.
47518 (grub_emu_SOURCES): Likewise.
47520 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47521 (grub_emu_SOURCES): Likewise.
47523 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47524 (grub_emu_SOURCES): Likewise.
47526 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47528 * fs/ntfs.c: New file.
47530 2007-08-02 Bean <bean123ch@gmail.com>
47532 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47534 * file.h (grub_file): Likewise.
47536 * fshelp.h (grub_fshelp_read_file): Likewise.
47538 * util/i386/pc/grub-setup.c (setup): Likewise.
47539 (save_first_sector): Likewise.
47540 (save_blocklists): Likewise.
47542 * fs/affs.c (grub_affs_read_file): Likewise.
47544 * fs/ext2.c (grub_ext2_read_file): Likewise.
47546 * fs/fat.c (grub_fat_read_data): Likewise.
47548 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47550 * fs/hfs.c (grub_hfs_read_file): Likewise.
47552 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47554 * fs/jfs.c (grub_jfs_read_file): Likewise.
47556 * fs/minix.c (grub_minix_read_file): Likewise.
47558 * fs/sfs.c (grub_sfs_read_file): Likewise.
47560 * fs/ufs.c (grub_ufs_read_file): Likewise.
47562 * fs/xfs.c (grub_xfs_read_file): Likewise.
47564 * command/blocklist.c (read_blocklist): Likewise.
47565 (print_blocklist): Likewise.
47567 2007-08-02 Marco Gerards <marco@gnu.org>
47569 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47572 * disk/host.c: New file.
47574 * util/hostfs.c: Likewise.
47576 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47577 return `GRUB_ERR_BAD_FS'.
47578 * fs/sfs.c (grub_sfs_mount): Likewise.
47579 * fs/xfs.c (grub_xfs_mount): Likewise.
47581 * include/grub/disk.h (enum grub_disk_dev_id): Add
47582 `GRUB_DISK_DEVICE_HOST_ID'.
47584 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47586 2007-07-24 Jerone Young <jerone@gmail.com>
47588 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47589 modules for compilation.
47590 * conf/powerpc-ieee1275.rmk: Likewise.
47592 * include/multiboot.h: Move multiboot definitions to one file. Rename
47593 many definitions to not get grub specific.
47594 * include/multiboot2.h: Create header with multiboot 2 definitions.
47595 * include/grub/multiboot.h: Header for grub specific function
47596 prototypes and definitions.
47597 * include/grub/multiboot2.h: Likewise.
47598 * include/grub/multiboot_loader.h: Likewise.
47599 * include/grub/i386/pc/multiboot.h: Removed.
47600 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47602 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47603 and 2 to allow for one multiboot and module commands.
47604 * loader/multiboot2.c: Add multiboot2 functionality.
47605 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47606 and definition names.
47607 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47609 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47610 ieee1275 specific multiboot2 code.
47612 * kern/i386/pc/startup.S: Change headers and definition names for
47613 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47615 2007-07-22 Robert Millan <rmh@aybabtu.com>
47617 * geninitheader.sh: Process file specified in first parameter rather
47618 than hardcoding grub_modules_init.lst.
47619 * geninit.sh: Likewise. Also, construct header name dynamically rather
47620 than hardcoding grub_modules_init.h.
47622 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47623 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47624 grub_probe_init.[ch] and grub_setup_init.[ch].
47626 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47627 grub_modules_init.h with grub_emu_init.h.
47628 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47629 grub_probe_init.[ch] files.
47630 * conf/i386-efi.rmk: Likewise.
47631 * conf/i386-pc.rmk: Likewise.
47632 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47633 grub_setup_init.[ch] files.
47635 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47636 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47637 to initialize modules rather than a list of hardcoded functions.
47638 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47639 grub_init_all() to initialize modules rather than a list of hardcoded
47642 2007-07-22 Robert Millan <rmh@aybabtu.com>
47644 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47645 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47647 2007-07-22 Robert Millan <rmh@aybabtu.com>
47649 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47650 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47651 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47652 flag when running on SmartFirmware.
47653 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47654 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47657 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47658 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47659 rather than decreasing it.
47661 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47662 there's not enough space to do it, fail in the same way as when it
47663 can't be done because there are no partitions.
47665 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47666 when nvsetenv failed.
47668 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47670 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47671 because this rule is automatically generated.
47672 (grub-mkrescue): Removed for the same reason as above.
47674 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47676 Migrate to GNU General Public License Version 3.
47678 * COPYING: Replaced with the plain text version of GPLv3.
47680 * config.guess: Updated from gnulib.
47681 * config.sub: Likewise.
47683 * geninit.sh: Output a GPLv3 copyright notice.
47684 * geninitheader.sh: Likewise.
47685 * genmodsrc.sh: Likewise.
47686 * gensymlist.sh.in: Likewise.
47688 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47689 * boot/i386/pc/diskboot.S: Likewise.
47690 * boot/i386/pc/pxeboot.S: Likewise.
47691 * commands/blocklist.c: Likewise.
47692 * commands/boot.c: Likewise.
47693 * commands/cat.c: Likewise.
47694 * commands/cmp.c: Likewise.
47695 * commands/configfile.c: Likewise.
47696 * commands/echo.c: Likewise.
47697 * commands/help.c: Likewise.
47698 * commands/ls.c: Likewise.
47699 * commands/search.c: Likewise.
47700 * commands/terminal.c: Likewise.
47701 * commands/test.c: Likewise.
47702 * commands/videotest.c: Likewise.
47703 * commands/i386/cpuid.c: Likewise.
47704 * commands/i386/pc/halt.c: Likewise.
47705 * commands/i386/pc/play.c: Likewise.
47706 * commands/i386/pc/reboot.c: Likewise.
47707 * commands/i386/pc/vbeinfo.c: Likewise.
47708 * commands/i386/pc/vbetest.c: Likewise.
47709 * commands/ieee1275/halt.c: Likewise.
47710 * commands/ieee1275/reboot.c: Likewise.
47711 * commands/ieee1275/suspend.c: Likewise.
47712 * disk/loopback.c: Likewise.
47713 * disk/lvm.c: Likewise.
47714 * disk/raid.c: Likewise.
47715 * disk/efi/efidisk.c: Likewise.
47716 * disk/i386/pc/biosdisk.c: Likewise.
47717 * disk/ieee1275/ofdisk.c: Likewise.
47718 * font/manager.c: Likewise.
47719 * fs/affs.c: Likewise.
47720 * fs/ext2.c: Likewise.
47721 * fs/fat.c: Likewise.
47722 * fs/fshelp.c: Likewise.
47723 * fs/hfs.c: Likewise.
47724 * fs/hfsplus.c: Likewise.
47725 * fs/iso9660.c: Likewise.
47726 * fs/jfs.c: Likewise.
47727 * fs/minix.c: Likewise.
47728 * fs/sfs.c: Likewise.
47729 * fs/ufs.c: Likewise.
47730 * fs/xfs.c: Likewise.
47731 * hello/hello.c: Likewise.
47732 * include/grub/acorn_filecore.h: Likewise.
47733 * include/grub/arg.h: Likewise.
47734 * include/grub/bitmap.h: Likewise.
47735 * include/grub/boot.h: Likewise.
47736 * include/grub/cache.h: Likewise.
47737 * include/grub/device.h: Likewise.
47738 * include/grub/disk.h: Likewise.
47739 * include/grub/dl.h: Likewise.
47740 * include/grub/elfload.h: Likewise.
47741 * include/grub/env.h: Likewise.
47742 * include/grub/err.h: Likewise.
47743 * include/grub/file.h: Likewise.
47744 * include/grub/font.h: Likewise.
47745 * include/grub/fs.h: Likewise.
47746 * include/grub/fshelp.h: Likewise.
47747 * include/grub/gzio.h: Likewise.
47748 * include/grub/hfs.h: Likewise.
47749 * include/grub/kernel.h: Likewise.
47750 * include/grub/loader.h: Likewise.
47751 * include/grub/lvm.h: Likewise.
47752 * include/grub/misc.h: Likewise.
47753 * include/grub/mm.h: Likewise.
47754 * include/grub/net.h: Likewise.
47755 * include/grub/normal.h: Likewise.
47756 * include/grub/parser.h: Likewise.
47757 * include/grub/partition.h: Likewise.
47758 * include/grub/pc_partition.h: Likewise.
47759 * include/grub/raid.h: Likewise.
47760 * include/grub/rescue.h: Likewise.
47761 * include/grub/script.h: Likewise.
47762 * include/grub/setjmp.h: Likewise.
47763 * include/grub/symbol.h: Likewise.
47764 * include/grub/term.h: Likewise.
47765 * include/grub/terminfo.h: Likewise.
47766 * include/grub/tparm.h: Likewise.
47767 * include/grub/types.h: Likewise.
47768 * include/grub/video.h: Likewise.
47769 * include/grub/efi/api.h: Likewise.
47770 * include/grub/efi/chainloader.h: Likewise.
47771 * include/grub/efi/console.h: Likewise.
47772 * include/grub/efi/console_control.h: Likewise.
47773 * include/grub/efi/disk.h: Likewise.
47774 * include/grub/efi/efi.h: Likewise.
47775 * include/grub/efi/pe32.h: Likewise.
47776 * include/grub/efi/time.h: Likewise.
47777 * include/grub/i386/linux.h: Likewise.
47778 * include/grub/i386/setjmp.h: Likewise.
47779 * include/grub/i386/types.h: Likewise.
47780 * include/grub/i386/efi/kernel.h: Likewise.
47781 * include/grub/i386/efi/loader.h: Likewise.
47782 * include/grub/i386/efi/time.h: Likewise.
47783 * include/grub/i386/pc/biosdisk.h: Likewise.
47784 * include/grub/i386/pc/boot.h: Likewise.
47785 * include/grub/i386/pc/chainloader.h: Likewise.
47786 * include/grub/i386/pc/console.h: Likewise.
47787 * include/grub/i386/pc/init.h: Likewise.
47788 * include/grub/i386/pc/kernel.h: Likewise.
47789 * include/grub/i386/pc/loader.h: Likewise.
47790 * include/grub/i386/pc/memory.h: Likewise.
47791 * include/grub/i386/pc/multiboot.h: Likewise.
47792 * include/grub/i386/pc/serial.h: Likewise.
47793 * include/grub/i386/pc/time.h: Likewise.
47794 * include/grub/i386/pc/vbe.h: Likewise.
47795 * include/grub/i386/pc/vbeblit.h: Likewise.
47796 * include/grub/i386/pc/vbefill.h: Likewise.
47797 * include/grub/i386/pc/vbeutil.h: Likewise.
47798 * include/grub/i386/pc/vga.h: Likewise.
47799 * include/grub/ieee1275/ieee1275.h: Likewise.
47800 * include/grub/ieee1275/ofdisk.h: Likewise.
47801 * include/grub/powerpc/libgcc.h: Likewise.
47802 * include/grub/powerpc/setjmp.h: Likewise.
47803 * include/grub/powerpc/types.h: Likewise.
47804 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47805 * include/grub/powerpc/ieee1275/console.h: Likewise.
47806 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47807 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47808 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47809 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47810 * include/grub/powerpc/ieee1275/time.h: Likewise.
47811 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47812 * include/grub/sparc64/libgcc.h: Likewise.
47813 * include/grub/sparc64/setjmp.h: Likewise.
47814 * include/grub/sparc64/types.h: Likewise.
47815 * include/grub/sparc64/ieee1275/console.h: Likewise.
47816 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47817 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47818 * include/grub/sparc64/ieee1275/time.h: Likewise.
47819 * include/grub/util/biosdisk.h: Likewise.
47820 * include/grub/util/getroot.h: Likewise.
47821 * include/grub/util/lvm.h: Likewise.
47822 * include/grub/util/misc.h: Likewise.
47823 * include/grub/util/raid.h: Likewise.
47824 * include/grub/util/resolve.h: Likewise.
47825 * io/gzio.c: Likewise.
47826 * kern/device.c: Likewise.
47827 * kern/disk.c: Likewise.
47828 * kern/dl.c: Likewise.
47829 * kern/elf.c: Likewise.
47830 * kern/env.c: Likewise.
47831 * kern/err.c: Likewise.
47832 * kern/file.c: Likewise.
47833 * kern/fs.c: Likewise.
47834 * kern/loader.c: Likewise.
47835 * kern/main.c: Likewise.
47836 * kern/misc.c: Likewise.
47837 * kern/mm.c: Likewise.
47838 * kern/parser.c: Likewise.
47839 * kern/partition.c: Likewise.
47840 * kern/rescue.c: Likewise.
47841 * kern/term.c: Likewise.
47842 * kern/efi/efi.c: Likewise.
47843 * kern/efi/init.c: Likewise.
47844 * kern/efi/mm.c: Likewise.
47845 * kern/i386/dl.c: Likewise.
47846 * kern/i386/efi/init.c: Likewise.
47847 * kern/i386/efi/startup.S: Likewise.
47848 * kern/i386/pc/init.c: Likewise.
47849 * kern/i386/pc/lzo1x.S: Likewise.
47850 * kern/i386/pc/startup.S: Likewise.
47851 * kern/ieee1275/ieee1275.c: Likewise.
47852 * kern/powerpc/cache.S: Likewise.
47853 * kern/powerpc/dl.c: Likewise.
47854 * kern/powerpc/ieee1275/cmain.c: Likewise.
47855 * kern/powerpc/ieee1275/crt0.S: Likewise.
47856 * kern/powerpc/ieee1275/init.c: Likewise.
47857 * kern/powerpc/ieee1275/openfw.c: Likewise.
47858 * kern/sparc64/cache.S: Likewise.
47859 * kern/sparc64/dl.c: Likewise.
47860 * kern/sparc64/ieee1275/init.c: Likewise.
47861 * kern/sparc64/ieee1275/openfw.c: Likewise.
47862 * loader/efi/chainloader.c: Likewise.
47863 * loader/efi/chainloader_normal.c: Likewise.
47864 * loader/i386/efi/linux.c: Likewise.
47865 * loader/i386/efi/linux_normal.c: Likewise.
47866 * loader/i386/pc/chainloader.c: Likewise.
47867 * loader/i386/pc/chainloader_normal.c: Likewise.
47868 * loader/i386/pc/linux.c: Likewise.
47869 * loader/i386/pc/linux_normal.c: Likewise.
47870 * loader/i386/pc/multiboot.c: Likewise.
47871 * loader/i386/pc/multiboot_normal.c: Likewise.
47872 * loader/powerpc/ieee1275/linux.c: Likewise.
47873 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47874 * normal/arg.c: Likewise.
47875 * normal/cmdline.c: Likewise.
47876 * normal/command.c: Likewise.
47877 * normal/completion.c: Likewise.
47878 * normal/execute.c: Likewise.
47879 * normal/function.c: Likewise.
47880 * normal/lexer.c: Likewise.
47881 * normal/main.c: Likewise.
47882 * normal/menu.c: Likewise.
47883 * normal/menu_entry.c: Likewise.
47884 * normal/misc.c: Likewise.
47885 * normal/parser.y: Likewise.
47886 * normal/script.c: Likewise.
47887 * normal/i386/setjmp.S: Likewise.
47888 * normal/powerpc/setjmp.S: Likewise.
47889 * normal/sparc64/setjmp.S: Likewise.
47890 * partmap/acorn.c: Likewise.
47891 * partmap/amiga.c: Likewise.
47892 * partmap/apple.c: Likewise.
47893 * partmap/gpt.c: Likewise.
47894 * partmap/pc.c: Likewise.
47895 * partmap/sun.c: Likewise.
47896 * term/gfxterm.c: Likewise.
47897 * term/terminfo.c: Likewise.
47898 * term/efi/console.c: Likewise.
47899 * term/i386/pc/console.c: Likewise.
47900 * term/i386/pc/serial.c: Likewise.
47901 * term/i386/pc/vesafb.c: Likewise.
47902 * term/i386/pc/vga.c: Likewise.
47903 * term/ieee1275/ofconsole.c: Likewise.
47904 * util/biosdisk.c: Likewise.
47905 * util/console.c: Likewise.
47906 * util/genmoddep.c: Likewise.
47907 * util/getroot.c: Likewise.
47908 * util/grub-emu.c: Likewise.
47909 * util/grub-mkdevicemap.c: Likewise.
47910 * util/grub-probe.c: Likewise.
47911 * util/lvm.c: Likewise.
47912 * util/misc.c: Likewise.
47913 * util/raid.c: Likewise.
47914 * util/resolve.c: Likewise.
47915 * util/update-grub.in: Likewise.
47916 * util/update-grub_lib.in: Likewise.
47917 * util/grub.d/00_header.in: Likewise.
47918 * util/grub.d/10_hurd.in: Likewise.
47919 * util/grub.d/10_linux.in: Likewise.
47920 * util/i386/efi/grub-install.in: Likewise.
47921 * util/i386/efi/grub-mkimage.c: Likewise.
47922 * util/i386/pc/grub-install.in: Likewise.
47923 * util/i386/pc/grub-mkimage.c: Likewise.
47924 * util/i386/pc/grub-mkrescue.in: Likewise.
47925 * util/i386/pc/grub-setup.c: Likewise.
47926 * util/i386/pc/misc.c: Likewise.
47927 * util/powerpc/ieee1275/grub-install.in: Likewise.
47928 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
47929 * util/powerpc/ieee1275/misc.c: Likewise.
47930 * video/bitmap.c: Likewise.
47931 * video/video.c: Likewise.
47932 * video/i386/pc/vbe.c: Likewise.
47933 * video/i386/pc/vbeblit.c: Likewise.
47934 * video/i386/pc/vbefill.c: Likewise.
47935 * video/i386/pc/vbeutil.c: Likewise.
47936 * video/readers/tga.c: Likewise.
47938 2007-07-02 Robert Millan <rmh@aybabtu.com>
47940 * conf/i386-efi.rmk: Replace obsolete reference to
47941 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
47942 with util/getroot.c.
47943 * conf/powerpc-ieee1275.rmk: Likewise.
47944 * conf/sparc64-ieee1275.rmk: Likewise.
47946 * util/grub-emu.c (main): Fix unchecked pointer handling.
47948 2007-07-02 Robert Millan <rmh@aybabtu.com>
47950 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
47951 invocation to fail, in order to support partition-less media.
47953 * util/i386/pc/grub-install.in: Likewise.
47955 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
47956 which fs or partmap modules are needed (akin to its sister scripts).
47958 Also use grub-probe to get rid of unportable /proc/mounts check.
47960 Print the same informational message that the other scripts do, before
47963 2007-06-23 Robert Millan <rmh@aybabtu.com>
47965 * util/update-grub_lib.in (font_path): New function. Determine whether
47966 a font file can be found and, if so, echo the GRUB path to it.
47968 * util/update-grub.in: Handle multiple terminals depending on user
47969 input, platform availability and font file presence. Propagate
47970 variables of our findings to /etc/grub.d/ children.
47972 * util/grub.d/00_header.in: Handle multiple terminals, based on
47973 environment setup by update-grub.
47975 2007-06-23 Robert Millan <rmh@aybabtu.com>
47977 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
47979 2007-06-21 Robert Millan <rmh@aybabtu.com>
47981 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
47982 indicate end of data section in kernel image.
47983 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
47984 GRUB_KERNEL_MACHINE_DATA_END.
47986 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
47988 * kern/i386/efi/startup.S: Likewise.
47990 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
47991 during image generation. Implement --prefix option to override this
47993 * util/i386/efi/grub-mkimage.c: Likewise.
47995 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
47996 code to make path relative to its root into a separate function.
47998 * util/i386/pc/grub-install.in: Use newly provided
47999 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48000 pass the result to grub-install --prefix.
48002 2007-06-13 Robert Millan <rmh@aybabtu.com>
48004 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48005 DEFAULT_DEVICE_MAP.
48006 * util/grub-emu.c: Use above definitions from misc.h instead of
48008 * util/grub-mkdevicemap.c: Likewise.
48009 * util/i386/pc/grub-setup.c: Likewise.
48010 * util/grub-probe.c: Likewise.
48011 (probe): Abort with grub_util_error() when either
48012 grub_guess_root_device or grub_util_get_grub_dev fails.
48014 2007-06-12 Robert Millan <rmh@aybabtu.com>
48016 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48017 "pager" assignment.
48018 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48020 * util/grub-probe.c (probe): Likewise for "drive_name".
48022 2007-06-11 Robert Millan <rmh@aybabtu.com>
48024 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48025 not just the cdrom one.
48027 2007-06-11 Robert Millan <rmh@aybabtu.com>
48029 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48030 Add --pkglibdir=DIR option to override pkglibdir.
48031 Mention --image-type=TYPE in help output.
48032 Fix --grub-mkimage (it was a no-op).
48033 Abort gracefully when no parameter is given.
48035 2007-06-11 Robert Millan <rmh@aybabtu.com>
48037 * util/i386/pc/grub-mkrescue.in: New file.
48038 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48039 * Makefile.in: Handle bin_SCRIPTS.
48041 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48043 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48044 list of video modes.
48046 2007-06-06 Robert Millan <rmh@aybabtu.com>
48048 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48049 file doesn't exist, or if it is in a filesystem grub can't read.
48051 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48052 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48053 header comment to fit in 80 columns when the variables are resolved.
48055 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48056 could be identified by update-grub. Remove redundant check for
48057 unifont.pff existence (since convert_system_path_to_grub_path now
48060 2007-06-04 Robert Millan <rmh@aybabtu.com>
48062 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48064 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48066 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48068 2007-06-04 Robert Millan <rmh@aybabtu.com>
48070 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48072 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48073 grub_apple_partition_map_fini.
48076 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48077 to access >2 TiB disks).
48079 Print disk->total_sectors with %llu instead of %lu, since this
48080 variable is always 64-bit (prevents wrong disk size from being displayed
48081 on either >2 TiB disk or big-endian CPU).
48083 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48084 into a generic case that supports all (sane) partition maps.
48086 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48089 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48090 and grub_apple_partition_map_fini() after that.
48092 2007-06-01 Robert Millan <rmh@aybabtu.com>
48094 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48096 * util/grub.d/00_header.in: Only enable gfxterm when
48097 convert_system_path_to_grub_path() succeeds.
48099 2007-05-20 Robert Millan <rmh@aybabtu.com>
48101 * util/update-grub_lib.in: New file.
48102 * DISTLIST: Add update-grub_lib.in.
48103 * conf/common.rmk: Generate update-grub_lib and install it in
48105 * Makefile.in: Add install routine for $(lib_DATA).
48107 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48108 function provided by update-grub_lib to support arbitrary paths of
48110 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48111 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48113 2007-05-19 Robert Millan <rmh@aybabtu.com>
48115 * commands/i386/cpuid.c: New module.
48116 * DISTLIST: Add it.
48117 * conf/i386-efi.rmk: Enable cpuid.mod.
48118 * conf/i386-pc.rmk: Likewise.
48120 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48122 * kern/disk.c (grub_disk_read): Check return value of
48125 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48127 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48129 * disk/raid.c (grub_raid_open): Likewise.
48131 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48133 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48134 stack instead of on the heap.
48136 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48137 before doing a read on it.
48139 * configure.ac: Only use -fno-stack-protector for the target
48142 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48144 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48145 __attribute_ ((unused)) to mode_type argument.
48147 * util/getroot.c (grub_guess_root_device): Fix #endif.
48149 * kern/misc.c (memcmp): Fix prototype.
48151 * include/grub/partition.h [GRUB_UTIL]
48152 (grub_gpt_partition_map_init): Add prototype.
48153 (grub_gpt_partition_map_fini): Likewise.
48155 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48156 at the right place.
48158 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48159 (grub_fat_read_data): Likewise.
48160 (grub_fat_find_dir): Likewise.
48162 * font/manager.c (find_glyph): Make table a const.
48163 (grub_font_get_glyph): Remove bitmap from if statement.
48165 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48167 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48168 code, first search for device in /dev/mapper, then in /dev.
48169 (grub_util_get_grub_dev): New function.
48170 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48172 * util/grub-probe.c (probe): Remove check for RAID, call
48173 grub_util_get_grub_dev() instead of
48174 grub_util_biosdisk_get_grub_dev().
48175 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48176 grub_util_biosdisk_get_grub_dev().
48177 * util/i386/pc/grub-setup.c (main): Likewise.
48179 2007-05-16 Robert Millan <rmh@aybabtu.com>
48181 * DISTLIST: Update for the latest changes.
48182 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48183 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48184 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48185 grub/util/biosdisk.h.
48186 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48187 grub/util/biosdisk.h.
48189 2007-05-16 Robert Millan <rmh@aybabtu.com>
48191 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48193 2007-05-16 Robert Millan <rmh@aybabtu.com>
48195 * util/i386/efi/grub-install.in: New.
48196 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48197 newly added grub-install.
48198 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48200 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48201 grub/util/biosdisk.h.
48202 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48203 grub/util/biosdisk.h.
48205 2007-05-16 Robert Millan <rmh@aybabtu.com>
48207 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48208 * include/grub/util/biosdisk.h: ... here.
48209 * util/i386/pc/biosdisk.c: Moved to ...
48210 * util/biosdisk.c: ... here.
48211 * util/i386/pc/getroot.c: Moved to ...
48212 * util/getroot.c: ... here.
48213 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48214 * util/grub-mkdevicemap.c: ... here.
48215 * util/i386/pc/grub-probe.c: Moved to ...
48216 * util/grub-probe.c: ... here.
48218 2007-05-15 Robert Millan <rmh@aybabtu.com>
48220 * util/update-grub.in: Remove duplicated line in grub.cfg header
48223 2007-05-13 Robert Millan <rmh@aybabtu.com>
48225 * util/update-grub.in: Fix a few assumptions about the devices holding
48226 /, /boot and /boot/grub being the same.
48227 * util/grub.d/00_header.in: Likewise.
48228 * util/grub.d/10_hurd.in: Likewise.
48229 * util/grub.d/10_linux.in: Likewise.
48231 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48232 patterns. Use that to define the `.old' suffix as older than `'.
48234 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48236 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48237 the grub.cfg header message.
48239 2007-05-11 Robert Millan <rmh@aybabtu.com>
48241 * util/update-grub.in: Create device.map if it doesn't already exist,
48242 before attempting to run grub-probe.
48243 Check for grub-probe and grub-mkdevicemap with the same code
48244 grub-install is using.
48247 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48249 * Makefile.in: Add the datarootdir autoconf variable.
48251 2007-05-09 Robert Millan <rmh@aybabtu.com>
48253 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48254 fail gracefully if dev->disk->partition == NULL.
48256 2007-05-07 Robert Millan <rmh@aybabtu.com>
48258 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48259 determine partition map module.
48260 * util/i386/pc/grub-install.in: Use this feature to decide which
48261 partition module to load, instead of hardcoding pc and gpt.
48263 2007-05-07 Robert Millan <rmh@aybabtu.com>
48265 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48266 source directory differs from build directory.
48268 2007-05-05 Robert Millan <rmh@aybabtu.com>
48270 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48273 2007-05-05 Robert Millan <rmh@aybabtu.com>
48275 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48277 2007-05-05 Robert Millan <rmh@aybabtu.com>
48279 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48280 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48282 2007-05-05 Robert Millan <rmh@aybabtu.com>
48284 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48285 (grub_probe_SOURCES): Likewise.
48286 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48287 GPT and initialize dos_part and bsd_part accordingly.
48288 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48290 (main): Activate gpt module for use during partition identification,
48291 and deactivate it afterwards.
48292 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48293 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48294 partition identification, and deactivate it afterwards.
48296 2007-05-05 Robert Millan <rmh@aybabtu.com>
48298 * term/i386/pc/console.c (grub_console_fini): Call
48299 grub_term_set_current() before grub_term_unregister().
48301 2007-05-04 Robert Millan <rmh@aybabtu.com>
48303 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48304 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48305 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48306 and update-grub_DATA.
48307 * conf/common.rmk: Build and install update-grub components.
48308 * conf/common.mk: Regenerate.
48309 * util/update-grub.in: New. Core of update-grub.
48310 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48311 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48312 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48313 * util/grub.d/README: New. Document grub.d directory layout.
48315 2007-05-01 Robert Millan <rmh@aybabtu.com>
48317 * util/grub-emu.c: Move initialization functions
48318 grub_util_biosdisk_init() and grub_init_all() before
48319 grub_util_biosdisk_get_grub_dev(), which relies on them.
48321 2007-04-19 Robert Millan <rmh@aybabtu.com>
48323 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48326 2007-04-18 Jerone Young <jerone@gmail.com>
48328 * kernel/elf.c: Add missing parenthesis for conditional statement
48331 2007-04-10 Jerone Young <jerone@gmail.com>
48333 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48334 continue on and look for device node with real device name.
48336 2007-04-10 Jerone Young <jerone@gmail.com>
48338 * configure.ac: Add argument for autoconf to use transformation
48340 * Makefile.in: Add autoconf package transformation code.
48341 * util/i386/pc/grub-install.in: Likewise.
48342 * util/powerpc/ieee1275/grub-install.in: Likewise.
48344 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48346 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48347 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48348 (EXT2_REVISION): Likewise.
48349 (EXT2_INODE_SIZE): Likewise.
48350 (struct grub_ext2_block_group): Added a missing member
48352 (grub_ext2_read_inode): Divide by the inode size in a superblock
48353 instead of 128 to obtain INODES_PER_BLOCK.
48354 Use the macro EXT2_INODE_SIZE instead of directly using
48355 SBLOCK->INODE_SIZE.
48357 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48359 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48360 superblock instead of the structure size to compute an
48361 offset. This fixes the problem that GRUB could not read a
48362 filesystem when inode size is different from 128-byte.
48364 2007-03-05 Marco Gerards <marco@gnu.org>
48366 * normal/main.c (read_config_file): When "menu" is not set, create
48367 an initial context.
48369 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48371 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48372 (HEAP_LIMIT): New macro.
48373 (grub_claim_heap): Claim memory up to `heaplimit'.
48375 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48377 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48378 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48379 (_start): Likewise.
48380 (grub_arch_modules_addr): Return address after `_end'.
48381 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48382 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48383 (add_segments): Calculate `_end' from phdr size and location.
48384 (ALIGN_UP): Moved to ...
48385 * include/grub/misc.h: here.
48386 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48388 (GRUB_IEEE1275_MODULE_BASE): Removed.
48390 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48392 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48395 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48397 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48399 (grub_elf64_load_hook_t): Likewise.
48400 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48403 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48405 * kern/mm.c: Update copyright.
48406 (grub_mm_debug): Correct syntax error.
48407 (grub_mm_dump_free): New function.
48408 (grub_debug_free): Call `grub_free'.
48409 * include/grub/mm.h: Update copyright.
48410 (grub_mm_dump_free): Add declaration.
48412 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48414 * include/grub/ieee1275/ieee1275.h: Update copyright.
48415 * kern/powerpc/ieee1275/init.c: Likewise.
48416 * kern/powerpc/ieee1275/openfw.c: Likewise.
48418 * loader/powerpc/ieee1275/linux.c: Likewise.
48419 * include/grub/elfload.h: Likewise.
48420 * kern/elf.c: Likewise.
48421 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48423 (grub_elf64_load): Likewise.
48424 (grub_elf32_load_segment): Move to a nested function.
48425 (grub_elf64_load_segment): Likewise.
48427 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48429 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48431 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48432 (grub_heap_len): Likewise.
48433 (HEAP_SIZE): New macro.
48434 (grub_claim_heap): New function.
48435 (grub_machine_init): Don't claim heap directly. Call
48437 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48438 (grub_available_iterate): New function.
48440 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48442 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48443 * configure.ac: Use it for testing the HOST and TARGET compilers.
48445 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48447 * Makefile.in (enable_grub_emu): New variable.
48448 * configure.ac (--enable-grub-emu): New option.
48449 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48450 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48451 * conf/i386-pc.rmk: Likewise.
48452 * conf/powerpc-ieee1275.rmk: Likewise.
48453 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48455 2006-12-12 Marco Gerards <marco@gnu.org>
48457 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48459 * kern/env.c (grub_env_unset): Don't free the member `value' when
48460 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48463 * normal/main.c (current_menu): Removed.
48464 (free_menu): Unset the `menu' environment variable.
48465 (grub_normal_menu_addentry): Make use of the environment variable
48466 `menu', instead of using the global `current_menu'. Allocate
48467 memory for the sourcecode of this entry.
48468 (read_config_file): New argument `nested', changed all callers.
48469 Only in the case of a new context, initialize a new menu. Set the
48470 `menu' environment variable.
48471 (grub_normal_execute): Don't set and unset the environment
48472 variable `menu' here anymore. Only free the menu when leaving the
48475 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48478 2006-12-11 Marco Gerards <marco@gnu.org>
48480 * normal/menu_entry.c (run): Fix off by one bug so the last line
48481 is executed. Move the loader check to outside the loop.
48483 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48485 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48487 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48489 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48490 the number of sectors. Reported by Andrey Shuvikov
48491 <mr_hyro@yahoo.com>.
48493 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48495 * kern/disk.c (grub_disk_read): When there is a read error, always
48496 try to read only the necessary data.
48498 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48500 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48502 [GRUB_UTIL] (grub_raid_fini): Likewise.
48503 [GRUB_UTIL] (grub_lvm_init): Likewise.
48504 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48505 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48506 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48507 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48508 and grub_raid_fini().
48510 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48512 * include/grub/types.h (__unused): Rename to UNUSED.
48513 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48514 (grub_elf64_size): Likewise.
48516 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48518 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48519 grub_error_push and grub_error_pop in the error-handling path.
48520 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48523 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48525 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48526 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48527 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48528 (kernel_elf_SOURCES): Likewise.
48529 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48530 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48531 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48532 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48533 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48534 (elf_mod_SOURCES): New variable.
48535 (elf_mod_CFLAGS): Likewise.
48536 (elf_mod_LDFLAGS): Likewise.
48537 * include/grub/types.h (__unused): New macro.
48538 * include/grub/elfload.h: New file.
48539 * kern/elf.c: Likewise.
48540 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48541 (ELF32_LOADMASK): New macro.
48542 (ELF64_LOADMASK): Likewise.
48543 (vmlinux): Removed.
48544 (grub_linux_load32): New function.
48545 (grub_linux_load64): Likewise.
48546 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48547 Use grub_elf_t instead of grub_file_t.
48549 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48551 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48552 `catch_result' to struct set_color_args.
48554 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48556 * normal/menu.c: Include grub/script.h.
48557 * normal/menu_entry.c: Likewise.
48558 * include/grub/normal.h: Do not include grub/script.h.
48560 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48562 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48564 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48566 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48568 (grub_disk_close): Print debug messages when closing a disk.
48569 (grub_disk_read): Print debug messages when disk read fails.
48570 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48572 * kern/partition.c: Include misc.h.
48573 (grub_partition_iterate): Print debug messages when detecting
48576 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48578 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48580 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48582 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48584 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48585 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48587 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48589 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48590 instead of sizeof(lv). Patch by Michael Guntsche.
48592 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48594 * disk/lvm.c: Rename VGS to VG_LIST.
48595 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48596 (grub_lvm_open): Likewise.
48597 Thanks to Michael Guntsche for finding this bug.
48599 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48601 * configure.ac (AC_INIT): Bumped to 1.95.
48603 2006-10-14 Robert Millan <rmh@aybabtu.com>
48605 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48606 with "/dev/.static/dev/md".
48608 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48610 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48611 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48612 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48613 DRIVE_NAME are always freed.
48615 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48616 DOS_PART, as a DOS partition is counted from one instead of zero
48617 now. Reported by Robert Millan.
48619 2006-10-14 Robert Millan <rmh@aybabtu.com>
48621 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48622 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48623 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48624 string returned by grub_guess_root_device.
48625 * util/i386/pc/grub-setup.c: Likewise.
48626 * util/i386/pc/grub-probefs.c: Likewise.
48628 * util/i386/pc/grub-probefs.c: Rename to ...
48629 * util/i386/pc/grub-probe.c: ... this.
48630 * DISTLIST: Remove grub-probefs, add grub-probe.
48631 * conf/i386-efi.rmk: Likewise.
48632 * conf/i386-pc.rmk: Likewise.
48633 * util/i386/pc/grub-install.in: Likewise.
48635 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48636 choose which information we want to print.
48638 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48640 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48641 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48642 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48643 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48644 video/readers/tga.c and video/i386/pc/vbeutil.c.
48646 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48648 Added support for RAID and LVM.
48650 * disk/lvm.c: New file.
48651 * disk/raid.c: Likewise.
48652 * include/grub/lvm.h: Likewise.
48653 * include/grub/raid.h: Likewise.
48654 * include/grub/util/lvm.h: Likewise.
48655 * include/grub/util/raid.h: Likewise.
48656 * util/lvm.c: Likewise.
48657 * util/raid.c: Likewise.
48659 * include/grub/disk.h (grub_disk_dev_id): Add
48660 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48661 (grub_disk_get_size): New prototype.
48662 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48663 returns a partition.
48664 (grub_disk_get_size): New function.
48666 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48667 verbatim if grub_install_dos_part is -2.
48669 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48672 * util/i386/pc/grub-setup.c (setup): New argument
48673 MUST_EMBED. Force embedding of GRUB when the argument is
48674 true. Close FILE before returning.
48675 (main): Add support for RAID and LVM.
48677 * conf/common.rmk: Add RAID and LVM modules.
48678 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48680 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48682 * kern/misc.c (grub_strstr): New function.
48683 * include/grub/misc.h (grub_strstr): New prototype.
48685 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48687 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48689 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48691 * kern/misc.c (grub_strtoull): Guess the base only if not
48694 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48696 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48699 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48701 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48703 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48704 Remove `flags' argument. All callers changed.
48705 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48706 (IEEE1275_IHANDLE_INVALID): New variable.
48707 (IEEE1275_CELL_INVALID): New variable.
48708 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48709 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48710 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48711 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48712 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48713 codes from Open Firmware. All callers updated.
48714 (grub_ieee1275_next_property): Directly return Open Firmware return
48716 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48717 Standardize error checking from `grub_ieee1275_get_property'.
48718 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48719 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48721 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48723 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48724 `instance_to_package_args' to `instance_to_path_args'.
48726 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48727 `grub_ieee1275_chosen'.
48729 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48730 `grub_ieee1275_interpret'.
48732 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48734 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48736 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48738 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48739 (__cmpdi): Likewise.
48741 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48742 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48745 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48747 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48748 to type `grub_ssize_t'.
48749 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48751 2006-09-22 Marco Gerards <marco@gnu.org>
48753 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48756 2006-09-22 Marco Gerards <marco@gnu.org>
48758 * commands/echo.c: New file.
48760 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48762 * conf/common.rmk (echo_mod_SOURCES): New variable.
48763 (echo_mod_CFLAGS): Likewise.
48764 (echo_mod_LDFLAGS): Likewise.
48766 2006-09-22 Marco Gerards <marco@gnu.org>
48768 * normal/main.c (get_line): Malloc memory instead of using
48769 preallocated memory. Removed the arguments `cmdline' and
48770 `max_len'. Updated all callers.
48772 2006-09-22 Marco Gerards <marco@gnu.org>
48774 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48775 (normal_mod_DEPENDENCIES): Likewise.
48777 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48778 (normal_mod_DEPENDENCIES): Likewise.
48780 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48782 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48784 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48786 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48787 (normal_mod_DEPENDENCIES): Likewise.
48788 * conf/i386-pc.mk: Regenerate.
48789 * conf/i386-efi.mk: Likewise
48790 * conf/common.mk: Likewise.
48791 * conf/powerpc-ieee1275.mk: Likewise.
48792 * conf/sparc64-ieee1275.mk: Likewise.
48794 2006-09-22 Robert Millan <rmh@aybabtu.com>
48796 Sync with i386 version.
48797 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48798 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48800 2006-09-21 Robert Millan <rmh@aybabtu.com>
48802 Import from GRUB Legacy (lib/device.c):
48803 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48804 (init_device_map) [__linux__]: Add support for I2O devices.
48806 2006-09-14 Marco Gerards <marco@gnu.org>
48808 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48811 2006-09-14 Robert Millan <rmh@aybabtu.com>
48813 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48816 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48818 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48819 before adding it to device.map.
48821 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48823 * genmk.rb: Let GCC generate dependencies the first time it
48824 compiles a file; using the -MD option.
48825 * conf/common.mk: Regenerate.
48826 * conf/i386-pc.mk: Likewise.
48827 * conf/i386-efi.mk: Likewise.
48828 * conf/powerpc-ieee1275.mk: Likewise.
48829 * conf/sparc64-ieee1275.mk: Likewise.
48831 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48833 Move the prototypes of grub_setjmp and grub_longjmp to
48834 cpu/setjmp.h, so that each architecture may specify different
48837 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48838 (grub_longjmp): Likewise.
48839 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48840 (grub_longjmp): Likewise.
48841 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48842 (grub_longjmp): Likewise.
48844 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48845 [!GRUB_UTIL] (grub_longjmp): Removed.
48847 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48849 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48850 "color!" method does not return any value.
48852 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48854 * include/grub/bitmap.h: New file.
48856 * include/grub/i386/pc/vbeutil.h: Likewise.
48858 * video/bitmap.c: Likewise.
48860 * video/readers/tga.c: Likewise.
48862 * video/i386/pc/vbeutil.c: Likewise.
48864 * commands/videotest.c: Code cleanup and updated to reflect to new
48867 * term/gfxterm.c: Likewise.
48869 * video/video.c: Likewise.
48871 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
48872 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
48873 (bitmap_mod_SOURCES): New entry.
48874 (bitmap_mod_CFLAGS): Likewise.
48875 (bitmap_mod_LDFLAGS): Likewise.
48876 (tga_mod_SOURCES): Likewise.
48877 (tga_mod_CFLAGS): Likewise.
48878 (tga_mod_LDFLAGS): Likewise.
48880 * include/grub/video.h (grub_video_blit_operators): New enum type.
48881 (grub_video_render_target): Changed as forward declaration and moved
48882 actual definition to be video driver specific.
48883 (grub_video_adapter.blit_bitmap): Added blitting operator.
48884 (grub_video_adapter.blit_render_target): Likewise.
48885 (grub_video_blit_bitmap): Likewise.
48886 (grub_video_blit_render_target): Likewise.
48888 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
48889 driver specific render target definition.
48890 (grub_video_vbe_map_rgba): Added driver internal helper.
48891 (grub_video_vbe_unmap_color): Updated to use
48892 grub_video_i386_vbeblit_info.
48893 (grub_video_vbe_get_video_ptr): Likewise.
48895 * include/grub/i386/pc/vbeblit.h
48896 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
48897 grub_video_i386_vbeblit_info.
48898 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
48899 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
48900 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
48901 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
48902 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
48903 (grub_video_i386_vbeblit_index_index): Likewise.
48904 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
48905 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
48906 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
48907 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
48909 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
48912 * video/i386/pc/vbeblit.c: Updated to reflect changes on
48913 include/grub/i386/pc/vbeblit.h.
48915 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
48916 Updated to use grub_video_i386_vbeblit_info.
48917 (grub_video_i386_vbefill_R8G8B8): Likewise.
48918 (grub_video_i386_vbefill_index): Likewise.
48919 (grub_video_i386_vbefill): Added generic filler.
48921 * video/i386/pc/vbefill.c: Updated to reflect changes on
48922 include/grub/i386/pc/vbefill.h.
48924 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
48925 grub_video_i386_vbeblit_info.
48926 (grub_video_vbe_unmap_color): Likewise.
48927 (grub_video_vbe_blit_glyph): Likewise.
48928 (grub_video_vbe_scroll): Likewise.
48929 (grub_video_vbe_draw_pixel): Removed function.
48930 (grub_video_vbe_get_pixel): Likewise.
48931 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
48932 updated code to use it.
48933 (common_blitter): Added common blitter for render target and bitmap.
48934 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
48935 (grub_video_vbe_blit_render_target): Likewise.
48937 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
48939 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
48940 is in text mode if there is no console control protocol instance
48943 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48945 * include/grub/video.h: Code cleanup.
48947 * include/grub/i386/pc/vbe.h: Likewise.
48949 * video/i386/pc/vbe.c: Likewise.
48951 * video/i386/pc/vbeblit.c: Likewise.
48953 * video/i386/pc/vbefill.c: Likewise.
48955 * video/video.c: Likewise. Also added more comments.
48957 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48959 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
48960 (struct grub_biosdisk_dap): Likewise.
48962 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
48963 linkage settings for all functions.
48965 2006-07-12 Marco Gerards <marco@gnu.org>
48967 * configure.ac (--enable-mm-debug): Fix typo.
48969 * genkernsyms.sh.in: Use proper quoting for `CC'.
48971 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
48973 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
48974 (normal_mod_ASFLAGS): Remove "-m32".
48976 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
48978 * util/misc.c: Include config.h.
48979 [!HAVE_MEMALIGN]: Do not include malloc.h.
48980 (grub_memalign): Use posix_memalign, if present. Then, use
48981 memalign, if present. Otherwise, emit an error.
48983 * util/grub-emu.c: Do not include malloc.h.
48985 * include/grub/util/misc.h: Include unistd.h. This is required for
48986 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
48987 D. Eades III <hde@foobar-qux.org>.
48989 * configure.ac (AC_GNU_SOURCE): Added.
48990 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
48993 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
48995 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
48996 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
48998 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49000 * include/grub/types.h (grub_host_addr_t): Rename to
49001 grub_target_addr_t.
49002 (grub_host_off_t): Rename to grub_target_off_t.
49003 (grub_host_size_t): Rename to grub_target_size_t.
49004 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49005 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49007 * include/grub/kernel.h (struct grub_module_header): Change type
49008 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49009 (grub_module_info): Likewise.
49011 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49013 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49014 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49015 Velazquez <jesus.velazquez@gmail.com>.
49017 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49019 Count partitions from 1 instead of 0 in the string representation
49020 of partitions. Still use 0-based internally.
49022 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49023 (sun_partition_map_iterate): Use grub_partition_t instead of
49024 struct grub_partition *. Cast DESC->START_CYLINDER to
49025 grub_uint64_t after converting the endian.
49026 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49027 (sun_partition_map_get_name): Add 1 to P->INDEX.
49029 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49031 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49033 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49034 zero instead of one.
49035 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49036 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49038 * partmap/apple.c (apple_partition_map_iterate): Change the type
49039 of POS to unsigned.
49040 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49041 (apple_partition_map_get_name): Add 1 into P->INDEX.
49043 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49044 of POS to unsigned.
49045 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49046 calculate the offset of a partition.
49047 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49048 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49050 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49051 SECTOR to grub_disk_addr_t.
49052 (acorn_partition_map_iterate): Likewise.
49053 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49054 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49056 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49058 * kern/i386/pc/init.c (make_install_device): Add 1 into
49059 GRUB_INSTALL_DOS_PART.
49061 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49064 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49066 Clean up the code to support 64-bit addressing in disks and
49067 files. This change is not enough for filesystems yet.
49069 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49070 type of "start" to grub_uint64_t.
49071 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49072 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49073 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49076 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49077 to grub_disk_addr_t.
49079 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49082 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49084 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49087 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49089 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49091 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49093 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49094 to grub_off_t, to detect an error from grub_file_seek.
49095 (grub_multiboot_load_elf32): Likewise.
49097 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49098 maximum unsigned long value when an overflow is detected.
49099 (grub_strtoull): New function.
49100 (grub_divmod64): Likewise.
49101 (grub_lltoa): use grub_divmod64.
49103 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49105 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49106 the pointer to next character. Use grub_strtoull instead of
49108 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49109 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49112 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49113 return value is signed.
49114 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49115 test if OFFSET is less than zero, as OFFSET is unsigned now.
49117 * kern/disk.c (struct grub_disk_cache): Change the type of
49118 "sector" to grub_disk_addr_t.
49119 (grub_disk_cache_get_index): Change the type of SECTOR to
49120 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49121 unsigned after shifting.
49122 (grub_disk_cache_invalidate): Change the type of SECTOR to
49124 (grub_disk_cache_unlock): Likewise.
49125 (grub_disk_cache_store): Likewise.
49126 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49127 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49128 grub_disk_addr_t and grub_uint64_t, respectively.
49129 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49130 body, as the value of OFFSET is tweaked by
49131 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49132 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49134 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49135 body, as the value of OFFSET is tweaked by
49136 grub_disk_check_range. Change the types of LEN and N to
49139 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49140 and "saved_offset" to grub_off_t.
49141 (test_header): Cast BUF to char *.
49142 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49144 (grub_gzio_read): Change the types of OFFSET and SIZE to
49145 grub_off_t and grub_size_t, respectively.
49147 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49149 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49150 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49151 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49152 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49153 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49155 * include/grub/types.h (grub_off_t): Unconditionally set to
49157 (grub_disk_addr_t): Changed to grub_uint64_t.
49159 * include/grub/partition.h (struct grub_partition): Change the
49160 types of "start", "len" and "offset" to grub_disk_addr_t,
49161 grub_uint64_t and grub_disk_addr_t, respectively.
49162 (grub_partition_get_start): Return grub_disk_addr_t.
49163 (grub_partition_get_len): Return grub_uint64_t.
49165 * include/grub/misc.h (grub_strtoull): New prototype.
49166 (grub_divmod64): Likewise.
49168 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49169 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49170 grub_off_t, respectively.
49171 All callers and references changed.
49173 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49174 grub_size_t in "read".
49175 All callers and references changed.
49177 * include/grub/file.h (struct grub_file): Change the types of
49178 "offset" and "size" to grub_off_t and grub_off_t,
49179 respectively. Change the type of SECTOR to grub_disk_addr_t in
49181 (grub_file_read): Change the type of LEN to grub_size_t.
49182 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49184 (grub_file_size): Return grub_off_t.
49185 (grub_file_tell): Likewise.
49186 All callers and references changed.
49188 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49189 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49191 (struct grub_disk): Change the type of "total_sectors" to
49192 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49194 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49195 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49196 (grub_disk_write): Likewise.
49197 All callers and references changed.
49199 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49200 char * for grub_strncmp to silence gcc.
49201 (grub_iso9660_mount): Likewise.
49202 (grub_iso9660_mount): Likewise.
49203 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49205 (grub_iso9660_iterate_dir): Likewise.
49206 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49208 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49209 LEN to grub_disk_addr_t and grub_size_t, respectively.
49211 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49213 * fs/jfs.c (grub_jfs_read_file): Likewise.
49215 * fs/minix.c (grub_jfs_read_file): Likewise.
49217 * fs/sfs.c (grub_jfs_read_file): Likewise.
49219 * fs/ufs.c (grub_jfs_read_file): Likewise.
49221 * fs/xfs.c (grub_jfs_read_file): Likewise.
49223 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49224 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49227 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49228 BLKNR to -1 instead of returning GRUB_ERRNO.
49229 (grub_ext2_read_file): Change the types of SECTOR and
49230 LEN to grub_disk_addr_t and grub_size_t, respectively.
49232 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49233 LEN to grub_disk_addr_t and grub_size_t, respectively.
49235 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49238 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49239 string. Do not cast SECTOR explicitly.
49241 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49242 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49243 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49244 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49245 over 2TB and LBA mode is not supported, raise an error.
49246 (get_safe_sectors): New function.
49247 (grub_biosdisk_read): Use get_safe_sectors.
49248 (grub_biosdisk_write): Likewise.
49250 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49251 (grub_efidisk_write): Likewise.
49253 * disk/loopback.c (delete_loopback): Cosmetic changes.
49254 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49256 (grub_loopback_open): Likewise.
49257 (grub_loopback_read): Likewise. Also, change the type of POS to
49258 grub_off_t, and fix the usage of grub_memset.
49260 * commands/i386/pc/play.c: Include grub/machine/time.h.
49262 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49265 * commands/configfile.c: Include grub/env.h.
49267 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49268 GRUB_ERRNO directly instead. Change the type of POS to
49269 grub_off_t. Follow the coding standard.
49271 * commands/blocklist.c: Include grub/partition.h.
49272 (grub_cmd_blocklist): Return an error if the underlying device is
49273 not a disk. Take the starting sector of a partition into account,
49274 if a partition is used.
49276 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49278 (lba_mode): Support 64-bit addresses.
49279 (chs_mode): Likewise.
49280 (copy_buffer): Adapted to the new offsets of a length field and a
49282 (blocklist_default_start): Allocate 64-bit space.
49284 * boot/i386/pc/boot.S (force_lba): Removed.
49285 (boot_drive): Moved to under KERNEL_SECTOR.
49286 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49288 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49290 (lba_mode): Refactored to support a 64-bit address. More size
49292 (setup_sectors): Likewise.
49294 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49296 * DISTLIST: Added include/grub/i386/linux.h. Removed
49297 include/grub/i386/pc/linux.h
49299 * configure.ac (AC_INIT): Bumped to 1.94.
49301 * config.guess: Updated from gnulib.
49302 * config.sub: Likewise.
49303 * install-sh: Likewise.
49304 * mkinstalldirs: Likewise.
49306 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49308 * conf/common.rmk (grub_modules_init.lst): Depended on
49309 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49312 * genmk.rb (PModule::rule): Reverted the previous change.
49314 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49316 * conf/common.rmk (grub_modules_init.lst): Depends on
49317 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49318 that the target does not exist before producing.
49319 (grub_modules_init.h): Remove the target before generating.
49320 (grub_emu_init.c): Likewise.
49322 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49324 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49326 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49327 for the target-specific tests. Make sure that we also have the
49328 up-to-date target variables for those tests.
49330 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49332 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49333 (PModule::rule): Likewise.
49335 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49337 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49338 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49339 target-specific flags should be prefixed.
49340 (PModule::rule): Likewise.
49342 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49344 * configure.ac (CMP): Check if cmp is available explicitly.
49346 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49348 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49349 (target_cpu): New variable.
49350 (pkglibdir): Use target_cpu instead of host_cpu.
49352 * util/i386/pc/grub-install.in (host_cpu): Removed.
49353 (target_cpu): New variable.
49354 (pkglibdir): Use target_cpu instead of host_cpu.
49356 * util/genmoddep.c: Removed.
49358 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49359 instead of GRUB_HOST_SIZEOF_VOID_P.
49360 * kern/dl.c: Likewise.
49362 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49364 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49365 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49366 (GRUB_TARGET_SIZEOF_LONG): ... this.
49367 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49368 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49369 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49371 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49372 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49373 (GRUB_TARGET_SIZEOF_LONG): ... this.
49374 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49375 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49376 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49378 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49379 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49380 (GRUB_TARGET_SIZEOF_LONG): ... this.
49381 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49382 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49384 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49385 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49386 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49387 instead of GRUB_HOST_SIZEOF_LONG.
49388 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49389 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49390 GRUB_CPU_WORDS_BIGENDIAN.
49391 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49392 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49395 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49396 (genmoddep_SOURCES): Likewise.
49397 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49398 (genmoddep_SOURCES): Likewise.
49399 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49400 (genmoddep_SOURCES): Likewise.
49401 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49403 (genmoddep_SOURCES): Likewise.
49405 * genmoddep.awk: New file.
49407 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49408 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49409 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49410 (PModule::rule): Likewise.
49411 (Program::rule): Likewise.
49412 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49413 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49416 * configure.ac: Rewritten intensively to use host and target
49417 instead of build and host, respectively.
49419 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49420 (host_cpu): Removed.
49421 (target_cpu): New variable.
49422 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49423 (BUILD_CC): Removed.
49424 (BUILD_CFLAGS): Likewise.
49425 (BUILD_CPPFLAGS): Likewise.
49426 (TARGET_CC): New variable.
49427 (TARGET_CFLAGS): Likewise.
49428 (TARGET_CPPFLAGS): Likewise.
49429 (TARGET_LDFLAGS): Likewise.
49431 (include): Use target_cpu instead of host_cpu.
49432 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49434 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49436 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49438 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49439 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49440 field 'false' to 'exec_on_false'.
49441 (grub_script_create_cmdif): Renamed argument names to reflect above
49444 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49446 * normal/script.c (grub_script_create_cmdif): Likewise.
49448 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49450 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49452 (grub_hfsplus_btree_recptr): Likewise.
49453 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49454 FILEBLOCK both to pass a block number and store next block
49456 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49457 overflow file correctly. Specify errors appropriately, because
49458 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49459 grub_hfsplus_btree_recptr to get the pointer to a found key.
49460 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49463 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49465 (_linux_mod_SOURCES): New variable.
49466 (_linux_mod_CFLAGS): Likewise.
49467 (_linux_mod_LDFLAGS): Likewise.
49468 (linux_mod_SOURCES): Likewise.
49469 (linux_mod_CFLAGS): Likewise.
49470 (linux_mod_LDFLAGS): Likewise.
49472 * DISTLIST: Added loader/i386/efi/linux.c,
49473 loader/i386/efi/linux_normal.c and
49474 include/grub/i386/efi/loader.h.
49476 * loader/i386/efi/linux.c: New file.
49477 * loader/i386/efi/linux_normal.c: Likewise.
49478 * include/grub/i386/efi/loader.h: Likewise.
49480 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49482 * commands/blocklist.c: New file.
49484 * DISTLIST: Added commands/blocklist.c.
49486 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49487 color for the background, and a darker color for the foreground.
49488 (grub_console_checkkey): Return READ_KEY.
49489 (grub_console_cls): Set the background to
49490 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49492 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49494 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49495 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49497 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49500 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49501 BG. The spec is wrong again.
49503 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49505 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49507 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49508 commands/blocklist.c.
49509 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49511 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49512 (blocklist_mod_SOURCES): New variable.
49513 (blocklist_mod_CFLAGS): Likewise.
49514 (blocklist_mod_LDFLAGS): Likewise.
49516 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49518 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49520 (lba_mode): Use %eax more intensively to reduce the code size.
49522 2006-05-20 Marco Gerards <marco@gnu.org>
49524 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49526 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49528 (script): Accept leading newlines.
49529 (newlines): New rule to describe 0 or more newlines.
49530 (commands): Accept `command' with trailing newline. Fixed the
49531 order in which arguments were passed to `grub_script_add_cmd'.
49532 Accept commands separated by newlines.
49533 (function): Changed to accept newlines.
49534 (menuentry) Rewritten.
49536 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49537 front of the list, instead of to the end.
49539 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49541 * util/i386/pc/grub-install.in (bindir): New variable.
49542 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49543 Shaver <lbgwjl@gmail.com>.
49545 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49547 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49548 grub/machine/linux.h
49549 * loader/i386/pc/linux.c: Likewise.
49551 * include/grub/i386/pc/linux.h: Moved to ...
49552 * include/grub/i386/linux.h: ... here.
49554 * include/grub/i386/linux.h (struct linux_kernel_params): New
49557 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49559 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49561 (grub_video_vbe_blit_glyph): Likewise.
49562 (grub_video_vbe_blit_bitmap): Likewise.
49563 (grub_video_vbe_blit_render_target): Likewise.
49565 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49567 * configure.ac (--with-platform): Properly quote the square
49570 2006-05-08 Marco Gerards <marco@gnu.org>
49572 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49574 (kernel_elf_HEADERS): ...to this. Updated all users.
49575 (grubof_symlist.c): Renamed from this...
49576 (kernel_elf_symlist.c): ...to this. Updated all users.
49577 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49578 (grubof_SOURCES): Renamed from this...
49579 (kernel_elf_SOURCES): ...to this.
49580 (grubof_HEADERS): Renamed from this...
49581 (kernel_elf_HEADERS): ...to this.
49582 (grubof_CFLAGS): Renamed from this...
49583 (kernel_elf_CFLAGS): ...to this.
49584 (grubof_ASFLAGS): Renamed from this...
49585 (kernel_elf_ASFLAGS): ...to this.
49586 (grubof_LDFLAGS): Renamed from this...
49587 (kernel_elf_LDFLAGS): ...to this.
49589 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49591 (kernel_elf_HEADERS): ...to this. Updated all users.
49592 (grubof_symlist.c): Renamed from this...
49593 (kernel_elf_symlist.c): ...to this. Updated all users.
49594 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49595 (grubof_SOURCES): Renamed from this...
49596 (kernel_elf_SOURCES): ...to this.
49597 (grubof_HEADERS): Renamed from this...
49598 (kernel_elf_HEADERS): ...to this.
49599 (grubof_CFLAGS): Renamed from this...
49600 (kernel_elf_CFLAGS): ...to this.
49601 (grubof_ASFLAGS): Renamed from this...
49602 (kernel_elf_ASFLAGS): ...to this.
49603 (grubof_LDFLAGS): Renamed from this...
49604 (kernel_elf_LDFLAGS): ...to this.
49606 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49607 `kernel.elf' instead of `grubof'.
49609 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49611 Add --with-platform to configure. Use pkglibdir instead of
49612 pkgdatadir. This is reported by Roger Leigh.
49614 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49615 (host_vendor): Likewise.
49616 (host_os): Likewise.
49617 (pkgdatadir): Likewise.
49618 (platform): New variable.
49619 (pkglibdir): Likewise.
49620 Use PKGLIBDIR instead of PKGDATADIR.
49622 * util/i386/pc/grub-install.in (datadir): Removed.
49623 (host_vendor): Likewise.
49624 (host_os): Likewise.
49625 (pkgdatadir): Likewise.
49626 (platform): New variable.
49627 (pkglibdir): Likewise.
49628 Use PKGLIBDIR instead of PKGDATADIR.
49630 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49631 instead of GRUB_DATADIR.
49633 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49635 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49638 * configure.ac (--with-platform): New option.
49639 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49641 * Makefile.in: Include a makefile based on PLATFORM instead of
49643 (pkgdatadir): Not appended by the machine type.
49644 (pkglibdir): Appended by the machine type.
49645 (host_vendor): Removed.
49646 (platform): New variable.
49647 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49648 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49649 (uninstall): Likewise.
49651 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49653 Use the environment context in the menu. Remove the commands
49654 "default" and "timeout", and use variables instead.
49656 * normal/menu.c: Include grub/env.h.
49657 (print_entry): Cast TITLE to silence gcc.
49658 (get_timeout): New function.
49659 (set_timeout): Likewise.
49660 (get_entry_number): Likewise.
49661 (run_menu): Use a default entry, a fallback entry and a timeout
49662 in the environment variables "default", "fallback" and
49663 "timeout". Also, tweak the default entry if it is not within the
49664 current menu entries.
49665 (grub_menu_run): Use a fallback entry in the environment variable
49668 * normal/main.c (read_config_file): Do not initialize
49669 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49671 (grub_normal_execute): Use a data slot to store the menu.
49673 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49674 fallback_entry and timeout.
49675 (struct grub_menu_list): Removed.
49676 (grub_menu_list_t): Likewise.
49677 (struct grub_context): Likewise.
49678 (grub_context_t): Likewise.
49679 (grub_context_get): Likewise.
49680 (grub_context_get_current_menu): Likewise.
49681 (grub_context_push_menu): Likewise.
49682 (grub_context_pop_menu): Likewise.
49683 (grub_default_init): Likewise.
49684 (grub_default_fini): Likewise.
49685 (grub_timeout_init): Likewise.
49686 (grub_timeout_fini): Likewise.
49688 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49690 (normal_mod_SOURCES): Removed normal/context.c.
49692 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49693 commands/default.c, commands/timeout.c and normal/context.c.
49694 (normal_mod_SOURCES): Removed normal/context.c.
49696 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49697 commands/timeout.c and normal/context.c.
49698 (normal_mod_SOURCES): Removed normal/context.c.
49700 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49701 commands/default.c, commands/timeout.c and normal/context.c.
49702 (normal_mod_SOURCES): Removed normal/context.c.
49704 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49706 (default_mod_SOURCES): Removed.
49707 (default_mod_CFLAGS): Likewise.
49708 (default_mod_LDFLAGS): Likewise.
49709 (timeout_mod_SOURCES): Removed.
49710 (timeout_mod_CFLAGS): Likewise.
49711 (timeout_mod_LDFLAGS): Likewise.
49713 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49716 * commands/default.c: Removed.
49717 * commands/timeout.c: Likewise.
49718 * normal/context.c: Likewise.
49720 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49722 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49724 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49726 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49727 "next" to "prev" for readability.
49728 (struct grub_env_sorted_var): New struct.
49729 (grub_env_context): Renamed to ...
49730 (initial_context): ... this.
49731 (grub_env_var_context): Renamed to ...
49732 (current_context): ... this.
49733 (grub_env_find): Look only at CURRENT_CONTEXT.
49734 (grub_env_context_open): Rewritten to copy exported variables from
49736 (grub_env_context_close): Rewritten according to the new
49737 scheme. Also, add an assertion to prevent the initial context from
49739 (grub_env_insert): Removed the code for the sorted list.
49740 (grub_env_remove): Likewise.
49741 (grub_env_export): Simply mark the variable with
49742 GRUB_ENV_VAR_GLOBAL.
49743 (grub_env_set): A cosmetic change for naming consistency.
49744 (grub_env_get): Likewise.
49745 (grub_env_unset): Likewise.
49746 (grub_env_iterate): Rewritten to sort variables within this
49748 (grub_register_variable_hook): Fixed for naming consistency. Call
49749 grub_env_find again, only if NAME is not found at the first time.
49750 (mangle_data_slot_name): New function.
49751 (grub_env_set_data_slot): Likewise.
49752 (grub_env_get_data_slot): Likewise.
49753 (grub_env_unset_data_slot): Likewise.
49755 * include/grub/env.h (grub_env_var_type): New enum.
49756 (GRUB_ENV_VAR_LOCAL): New constant.
49757 (GRUB_ENV_VAR_GLOBAL): Likewise.
49758 (GRUB_ENV_VAR_DATA): Likewise.
49759 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49761 (grub_env_set): Replace VAR with NAME for consistency.
49762 (grub_register_variable_hook): Likewise.
49763 (grub_env_export): Specify the name of the argument.
49764 (grub_env_set_data_slot): New prototype.
49765 (grub_env_get_data_slot): Likewise.
49766 (grub_env_unset_data_slot): Likewise.
49768 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49770 Extend the loader so that GRUB can accept a loader which comes
49771 back to GRUB when a loaded image exits. Also, this change adds
49772 support for a chainloader on EFI.
49774 * term/efi/console.c: Include grub/misc.h.
49775 (grub_console_checkkey): Display a scan code on the top for
49776 debugging. This will be removed once the EFI port gets stable.
49777 Correct the scan code mapping.
49779 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49780 allocate memory from larger regions, in order to reduce the number
49781 of allocated regions. Otherwise, the MacOSX loader panics.
49782 (filter_memory_map): Avoid less than 1MB for compatibility with
49784 (add_memory_regions): Allocate from the tail of a region, if
49785 possible, to avoid allocating a region near to 1MB, for the MacOSX
49788 * kern/efi/init.c (grub_efi_set_prefix): Specify
49789 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49791 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49792 argument IMAGE_HANDLE and specify it to get a loaded image.
49793 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49794 grub_efi_get_loaded_image.
49795 (grub_efi_get_filename): Divide the length by the size of
49797 (grub_efi_get_device_path): New function.
49798 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49799 the length by the size of grub_efi_char16_t for a file path device
49802 * kern/loader.c (grub_loader_noreturn): New variable.
49803 (grub_loader_set): Accept a new argument NORETURN. Set
49804 GRUB_LOADER_NORETURN to NORETURN.
49805 All callers changed.
49806 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49809 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49811 (grub_efi_get_loaded_image): Take an argument to specify an image
49814 * include/grub/loader.h (grub_loader_set): Added one more argument
49817 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49818 instead of grub_efi_open_protocol.
49819 (grub_efidisk_get_device_name): Likewise.
49820 (grub_efidisk_close): Print a newline.
49821 (grub_efidisk_get_device_handle): Fixed to use
49822 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49823 GRUB_EFI_DEVICE_PATH_TYPE.
49825 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49826 * kern/efi/efi.c (device_path_guid): ... here.
49828 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49830 (kernel_mod_HEADERS): Added efi/disk.h.
49831 (_chain_mod_SOURCES): New variable.
49832 (_chain_mod_CFLAGS): Likewise.
49833 (_chain_mod_LDFLAGS): Likewise.
49834 (chain_mod_SOURCES): Likewise.
49835 (chain_mod_CFLAGS): Likewise.
49836 (chain_mod_LDFLAGS): Likewise.
49838 * DISTLIST: Added include/grub/efi/chainloader.h,
49839 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49841 * include/grub/efi/chainloader.h: New file.
49842 * loader/efi/chainloader.c: Likewise.
49843 * loader/efi/chainloader_normal.c: Likewise.
49845 2006-04-30 Marco Gerards <marco@gnu.org>
49847 * commands/configfile.c (grub_cmd_source): New function.
49848 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49849 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49851 2006-04-30 Marco Gerards <marco@gnu.org>
49853 * normal/execute.c (grub_script_execute_cmd): Change the return
49854 type to `grub_err_t'. Correctly return the error.
49855 (grub_script_execute_cmdline): In case a command line is not a
49856 command or a function, try to interpret it as an assignment.
49858 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49860 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
49861 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
49862 skip a node whose name is obviously invalid as UTF-16,
49863 i.e. contains a NUL character. Stop the iteration when the last
49864 directory entry is found. Instead of using the return value of
49865 grub_hfsplus_btree_iterate_node, store the value in RET and use
49866 it, because the iterator can be stopped by the last directory
49869 2006-04-30 Marco Gerards <marco@gnu.org>
49871 * include/grub/env.h (grub_env_export): New prototype. Reported
49872 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
49874 2006-04-30 Marco Gerards <marco@gnu.org>
49876 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
49877 size of the extents in a catalog file record.
49879 2006-04-29 Marco Gerards <marco@gnu.org>
49881 * commands/configfile.c (grub_cmd_configfile): Execute the
49882 configfile within its own context.
49884 * include/grub/env.h (grub_env_context_open): New prototype.
49885 (grub_env_context_close): Likewise.
49887 * kern/env.c (grub_env): Removed.
49888 (grub_env_sorted): Likewise.
49889 (grub_env_context): New variable.
49890 (grub_env_var_context): Likewise.
49891 (grub_env_find): Search both the active context and the global
49893 (grub_env_context_open): New function.
49894 (grub_env_context_close): Likewise.
49895 (grub_env_insert): Likewise.
49896 (grub_env_remove): Likewise.
49897 (grub_env_export): Likewise.
49898 (grub_env_set): Changed to use helper functions to avoid code
49900 (grub_env_iterate): Rewritten so both the current context and the
49901 global context are being used.
49903 * normal/command.c (export_command): New function.
49904 (grub_command_init): Register the `export' function.
49906 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
49908 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
49909 explicitly to suppress gcc's warnings.
49910 * fs/fat.c (grub_fat_find_dir): Likewise.
49911 (grub_fat_label): Likewise.
49912 * fs/xfs.c (grub_xfs_read_inode): Likewise.
49913 (grub_xfs_mount): Likewise.
49914 (grub_xfs_label): Likewise.
49915 * fs/affs.c (grub_affs_mount): Likewise.
49916 (grub_affs_label): Likewise.
49917 (grub_affs_iterate_dir): Likewise.
49918 * fs/sfs.c (grub_sfs_mount): Likewise.
49919 (grub_sfs_iterate_dir): Likewise.
49920 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
49921 * fs/hfs.c (grub_hfs_mount): Likewise.
49922 (grub_hfs_cmp_catkeys): Likewise.
49923 (grub_hfs_find_dir): Likewise.
49924 (grub_hfs_dir): Likewise.
49925 (grub_hfs_label): Likewise.
49926 * fs/jfs.c (grub_jfs_mount): Likewise.
49927 (grub_jfs_opendir): Likewise.
49928 (grub_jfs_getent): Likewise.
49929 (grub_jfs_lookup_symlink): Likewise.
49930 (grub_jfs_label): Likewise.
49931 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
49932 (grub_hfsplus_iterate_dir): Likewise.
49933 (grub_hfsplus_btree_iterate_node): Made static.
49935 * util/grub-emu.c (prefix): New variable.
49936 (grub_machine_set_prefix): New function.
49937 (main): Do not set the environment variable "prefix" here. Only
49938 set PREFIX, which is used later by grub_machine_set_prefix.
49940 * include/grub/video.h: Do not include grub/symbol.h.
49941 (grub_video_register): Not exported. This symbol is not defined in
49943 (grub_video_unregister): Likewise.
49944 (grub_video_iterate): Likewise.
49945 (grub_video_setup): Likewise.
49946 (grub_video_restore): Likewise.
49947 (grub_video_get_info): Likewise.
49948 (grub_video_get_blit_format): Likewise.
49949 (grub_video_set_palette): Likewise.
49950 (grub_video_get_palette): Likewise.
49951 (grub_video_set_viewport): Likewise.
49952 (grub_video_get_viewport): Likewise.
49953 (grub_video_map_color): Likewise.
49954 (grub_video_map_rgb): Likewise.
49955 (grub_video_map_rgba): Likewise.
49956 (grub_video_fill_rect): Likewise.
49957 (grub_video_blit_glyph): Likewise.
49958 (grub_video_blit_bitmap): Likewise.
49959 (grub_video_blit_render_target): Likewise.
49960 (grub_video_scroll): Likewise.
49961 (grub_video_swap_buffers): Likewise.
49962 (grub_video_create_render_target): Likewise.
49963 (grub_video_delete_render_target): Likewise.
49964 (grub_video_set_active_render_target): Likewise.
49966 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
49968 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
49970 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
49971 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49972 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49973 instead of $(srcdir)/genkernsyms.sh.
49975 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
49976 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49977 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49978 instead of $(srcdir)/genkernsyms.sh.
49980 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
49981 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49982 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49983 instead of $(srcdir)/genkernsyms.sh.
49985 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
49986 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
49987 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
49988 instead of $(srcdir)/genkernsyms.sh.
49990 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
49993 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
49995 (gensymlist.sh): New target.
49996 (genkernsyms.sh): Likewise.
49998 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
49999 genkernsyms.sh.in and gensymlist.sh.in.
50001 * genkernsyms.sh: Removed.
50002 * gensymlist.sh: Likewise.
50004 * genkernsyms.sh.in: New file.
50005 * gensymlist.sh.in: Likewise.
50007 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50009 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50010 clobber "prefix", since we may have already set it manually.
50012 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50014 * kern/misc.c (abort): New alias for grub_abort.
50016 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50018 A new machine-specific function "grub_machine_set_prefix" is
50019 defined. This is called after loading modules, so that a prefix
50020 initialization can use modules. Also, this change adds an
50021 intensive debugging feature for the memory manager via the
50022 configure option "--enable-mm-debug".
50024 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50027 * kern/sparc64/ieee1275/init.c (abort): Removed.
50028 (grub_stop): Likewise.
50029 (grub_exit): New function.
50030 (grub_set_prefix): Renamed to ...
50031 (grub_machine_set_prefix): ... this.
50032 (grub_machine_init): Do not call grub_set_prefix.
50034 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50035 (grub_machine_set_prefix): ... this.
50036 (grub_machine_init): Do not call grub_set_prefix.
50038 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50039 (grub_machine_init): Do not set the prefix here.
50041 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50043 * kern/efi/init.c: Include grub/mm.h.
50044 (grub_efi_set_prefix): New function.
50046 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50047 (grub_efi_get_filename): New function.
50048 (grub_print_device_path): Renamed to ...
50049 (grub_efi_print_device_path): ... this.
50051 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50052 [MM_DEBUG] (grub_realloc): Likewise.
50053 [MM_DEBUG] (grub_free): Likewise.
50054 [MM_DEBUG] (grub_memalign): Likewise.
50055 [MM_DEBUG] (grub_mm_debug): New variable.
50056 [MM_DEBUG] (grub_debug_malloc): New function.
50057 [MM_DEBUG] (grub_debug_free): New function.
50058 [MM_DEBUG] (grub_debug_realloc): New function.
50059 [MM_DEBUG] (grub_debug_memalign): New function.
50061 * kern/misc.c (grub_abort): Print a newline to distinguish
50064 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50065 grub_set_root_dev after loading modules. This is necessary when
50066 setting a prefix depends on modules.
50068 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50069 (grub_efi_print_device_path): ... this.
50070 (grub_efi_get_filename): New prototype.
50071 (grub_efi_set_prefix): Likewise.
50073 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50075 (grub_efidisk_get_device_handle): New prototype.
50076 (grub_efidisk_get_device_name): Likewise.
50078 * include/grub/mm.h: Include config.h.
50079 (MM_DEBUG): Removed.
50080 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50081 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50082 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50083 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50084 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50085 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50086 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50087 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50088 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50090 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50092 * disk/efi/efidisk.c: Include grub/partition.h.
50093 (iterate_child_devices): New function.
50094 (add_device): First, compare only last device path nodes, so that
50095 devices are sorted by the types.
50096 (grub_efidisk_get_device_handle): New function.
50097 (grub_efidisk_get_device_name): Likewise.
50099 * configure.ac (--enable-mm-debug): New option to enable the
50100 memory manager debugging feature. This makes the binary much
50101 bigger, so is disabled by default.
50103 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50105 Use grub_abort instead of grub_stop, and grub_exit must be
50106 define in each architecture now. Also, this change adds support
50109 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50110 (grub_getkey): New function.
50111 (grub_term_get_current): Likewise.
50113 * util/i386/pc/grub-setup.c: Include grub/term.h.
50114 (grub_getkey): New function.
50115 (grub_term_get_current): Likewise.
50117 * util/misc.c (grub_stop): Renamed to ...
50118 (grub_exit): ... this.
50120 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50121 (grub_exit): ... this.
50122 (grub_machine_init): Use grub_abort instead of abort.
50123 (grub_stop): Removed.
50125 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50128 * kern/i386/pc/startup.S (grub_exit): New function.
50129 (cold_reboot): New label.
50131 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50132 (grub_efi_init): Call grub_efidisk_init.
50133 (grub_efi_fini): Call grub_efidisk_fini.
50135 * kern/efi/efi.c: Include grub/mm.h.
50136 (grub_efi_console_control_guid): Renamed to ...
50137 (console_control_guid): ... this.
50138 (grub_efi_loaded_image_guid): Renamed to ...
50139 (loaded_image_guid): ... this.
50140 (grub_efi_locate_handle): New function.
50141 (grub_efi_open_protocol): Likewise.
50142 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50143 GRUB_EFI_CONSOLE_CONTROL_GUID.
50144 (grub_efi_exit): Removed.
50145 (grub_stop): Likewise.
50146 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50147 (grub_exit): New function.
50148 (grub_print_device_path): Likewise.
50150 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50151 (grub_enter_rescue_mode): Register "exit".
50153 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50154 (grub_abort): New function.
50156 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50158 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50160 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50162 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50163 (grub_print_device_path): New prototype.
50164 (grub_efi_locate_handle): Likewise.
50165 (grub_efi_open_protocol): Likewise.
50167 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50168 * disk/efi/efidisk.c: Likewise.
50170 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50172 * include/grub/efi/console_control.h
50173 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50175 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50176 last 8 bytes as an array.
50177 (GRUB_EFI_DISK_IO_GUID): New macro.
50178 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50179 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50180 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50182 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50183 (struct grub_efi_device_path): Rename the member "sub_type" to
50185 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50186 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50187 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50188 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50189 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50190 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50191 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50192 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50193 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50194 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50195 (struct grub_efi_pci_device_path): New structure.
50196 (grub_efi_pci_device_path_t): New type.
50197 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50198 (struct grub_efi_pccard_device_path): New structure.
50199 (grub_efi_pccard_device_path_t): New type.
50200 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50201 (struct grub_efi_memory_mapped_device_path): New structure.
50202 (grub_efi_memory_mapped_device_path_t): New type.
50203 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50204 (struct grub_efi_vendor_device_path): New structure.
50205 (grub_efi_vendor_device_path_t): New type.
50206 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50207 (struct grub_efi_controller_device_path): New structure.
50208 (grub_efi_controller_device_path_t): New type.
50209 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50210 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50211 (struct grub_efi_acpi_device_path): New structure.
50212 (grub_efi_acpi_device_path_t): New type.
50213 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50214 (struct grub_efi_expanded_acpi_device_path): New structure.
50215 (grub_efi_expanded_acpi_device_path_t): New type.
50216 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50217 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50218 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50219 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50220 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50221 (struct grub_efi_atapi_device_path): New structure.
50222 (grub_efi_atapi_device_path_t): New type.
50223 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50224 (struct grub_efi_fibre_channel_device_path): New structure.
50225 (grub_efi_fibre_channel_device_path_t): New type.
50226 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50227 (struct grub_efi_1394_device_path): New structure.
50228 (grub_efi_1394_device_path_t): New type.
50229 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50230 (struct grub_efi_usb_device_path): New structure.
50231 (grub_efi_usb_device_path_t): New type.
50232 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50233 (struct grub_efi_usb_class_device_path): New structure.
50234 (grub_efi_usb_class_device_path_t): New type.
50235 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50236 (struct grub_efi_i2o_device_path): New structure.
50237 (grub_efi_i2o_device_path_t): New type.
50238 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50239 (struct grub_efi_mac_address_device_path): New structure.
50240 (grub_efi_mac_address_device_path_t): New type.
50241 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50242 (struct grub_efi_ipv4_device_path): New structure.
50243 (grub_efi_ipv4_device_path_t): New type.
50244 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50245 (struct grub_efi_ipv6_device_path): New structure.
50246 (grub_efi_ipv6_device_path_t): New type.
50247 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50248 (struct grub_efi_infiniband_device_path): New structure.
50249 (grub_efi_infiniband_device_path_t): New type.
50250 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50251 (struct grub_efi_uart_device_path): New structure.
50252 (grub_efi_uart_device_path_t): New type.
50253 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50254 (struct grub_efi_vendor_messaging_device_path): New structure.
50255 (grub_efi_vendor_messaging_device_path_t): New type.
50256 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50257 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50258 (struct grub_efi_hard_drive_device_path): New structure.
50259 (grub_efi_hard_drive_device_path_t): New type.
50260 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50261 (struct grub_efi_cdrom_device_path): New structure.
50262 (grub_efi_cdrom_device_path_t): New type.
50263 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50264 (struct grub_efi_vendor_media_device_path): New structure.
50265 (grub_efi_vendor_media_device_path_t): New type.
50266 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50267 (struct grub_efi_file_path_device_path): New structure.
50268 (grub_efi_file_path_device_path_t): New type.
50269 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50270 (struct grub_efi_protocol_device_path): New structure.
50271 (grub_efi_protocol_device_path_t): New type.
50272 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50273 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50274 (struct grub_efi_bios_device_path): New structure.
50275 (grub_efi_bios_device_path_t): New type.
50276 (struct grub_efi_disk_io): New structure.
50277 (grub_efi_disk_io_t): New type.
50278 (struct grub_efi_block_io_media): New structure.
50279 (grub_efi_block_io_media_t): New type.
50280 (struct grub_efi_block_io): New structure.
50281 (grub_efi_block_io_t): New type.
50283 * include/grub/misc.h (grub_stop): Removed.
50284 (grub_exit): New prototype.
50285 (grub_abort): Likewise.
50287 * include/grub/disk.h (enum grub_disk_dev_id): Added
50288 GRUB_DISK_DEVICE_EFIDISK_ID.
50290 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50291 disk/efi/efidisk.c.
50292 (kernel_syms.lst): Remove the target if an error occurs.
50294 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50296 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50297 as it was simply too buggy.
50299 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50301 * kern/misc.c (grub_lltoa): New function.
50302 (grub_vsprintf): Added support for the long long suffix,
50305 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50307 * Makefile.in (LDFLAGS): Add variable.
50308 (LD): Remove variable.
50309 * configure.ac: Add -m32 to LDFLAGS.
50310 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50311 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50312 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50313 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50314 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50316 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50317 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50318 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50320 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50322 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50323 length for unknown glyph.
50325 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50327 Add support for pre-loaded modules into the EFI port.
50329 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50330 completely. Accept one more argument DIR. The caller has changed.
50332 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50334 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50335 (grub_efi_loaded_image_guid): New variable.
50336 (grub_efi_get_loaded_image): New function.
50337 (grub_arch_modules_addr): Likewise.
50339 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50342 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50343 (struct grub_efi_loaded_image): New structure.
50344 (grub_efi_loaded_image_t): New type.
50346 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50348 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50349 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50350 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50352 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50354 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50356 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50358 * DISTLIST: Added include/grub/efi/console.h,
50359 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50360 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50362 * include/grub/efi/console.h: New file.
50363 * include/grub/efi/time.h: Likewise.
50364 * include/grub/i386/efi/kernel.h: Likewise.
50365 * kern/efi/init.c: Likewise.
50366 * kern/efi/mm.c: Likewise.
50367 * term/efi/console.c: Likewise.
50369 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50370 (grub_stop): Removed.
50371 (grub_get_rtc): Likewise.
50372 (grub_machine_init): Simply call grub_efi_init.
50373 (grub_machine_fini): Call grub_efi_fini.
50375 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50376 (grub_efi_output_string): Removed.
50377 (grub_efi_stall): New function.
50378 (grub_stop): Likewise.
50379 (grub_get_rtc): Likewise.
50381 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50382 (grub_efi_stall): New prototype.
50383 (grub_efi_allocate_pages): Likewise.
50384 (grub_efi_free_pages): Likewise.
50385 (grub_efi_get_memory_map): Likewise.
50386 (grub_efi_mm_init): Likewise.
50387 (grub_efi_mm_fini): Likewise.
50388 (grub_efi_init): Likewise.
50389 (grub_efi_fini): Likewise.
50391 * include/grub/i386/efi/time.h: Do not include
50392 grub/symbol.h. Include grub/efi/time.h.
50393 (GRUB_TICKS_PER_SECOND): Removed.
50394 (grub_get_rtc): Likewise.
50396 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50397 Added padding. The EFI spec is buggy.
50398 (GRUB_EFI_BLACK): New macro.
50399 (GRUB_EFI_BLUE): Likewise.
50400 (GRUB_EFI_GREEN): Likewise.
50401 (GRUB_EFI_CYAN): Likewise.
50402 (GRUB_EFI_RED): Likewise.
50403 (GRUB_EFI_MAGENTA): Likewise.
50404 (GRUB_EFI_BROWN): Likewise.
50405 (GRUB_EFI_LIGHTGRAY): Likewise.
50406 (GRUB_EFI_BRIGHT): Likewise.
50407 (GRUB_EFI_DARKGRAY): Likewise.
50408 (GRUB_EFI_LIGHTBLUE): Likewise.
50409 (GRUB_EFI_LIGHTGREEN): Likewise.
50410 (GRUB_EFI_LIGHTCYAN): Likewise.
50411 (GRUB_EFI_LIGHTRED): Likewise.
50412 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50413 (GRUB_EFI_YELLOW): Likewise.
50414 (GRUB_EFI_WHITE): Likewise.
50415 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50416 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50417 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50418 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50419 (GRUB_EFI_BACKGROUND_RED): Likewise.
50420 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50421 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50422 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50423 (GRUB_EFI_TEXT_ATTR): Likewise.
50425 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50426 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50427 (kernel_mod_HEADERS): Added efi/time.h.
50429 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50431 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50432 include/grub/efi/api.h, include/grub/efi/console_control.h,
50433 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50434 include/grub/i386/efi/time.h, kern/efi/efi.c,
50435 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50436 and util/i386/efi/grub-mkimage.c.
50438 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50440 * genmk.rb (PModule#rule): Do not export symbols if
50441 #{prefix}_EXPORTS is set to "no".
50443 * conf/i386-efi.mk: New file.
50444 * conf/i386-efi.rmk: Likewise.
50445 * include/grub/efi/api.h: Likewise.
50446 * include/grub/efi/console_control.h: Likewise.
50447 * include/grub/efi/efi.h: Likewise.
50448 * include/grub/efi/pe32.h: Likewise.
50449 * include/grub/i386/efi/time.h: Likewise.
50450 * kern/efi/efi.c: Likewise.
50451 * kern/i386/efi/init.c: Likewise.
50452 * kern/i386/efi/startup.S: Likewise.
50453 * util/i386/efi/grub-mkimage.c: Likewise.
50455 2006-04-17 Marco Gerards <marco@gnu.org>
50457 * include/grub/script.h: Include <grub/parser.h> and
50458 "grub_script.tab.h".
50459 (struct grub_lexer_param): New struct.
50460 (struct grub_parser_param): Likewise.
50461 (grub_script_create_arglist): Pass the state in an argument.
50462 (grub_script_add_arglist): Likewise.
50463 (grub_script_create_cmdline): Likewise.
50464 (grub_script_create_cmdblock): Likewise.
50465 (grub_script_create_cmdif): Likewise.
50466 (grub_script_create_cmdmenu): Likewise.
50467 (grub_script_add_cmd): Likewise.
50468 (grub_script_arg_add): Likewise.
50469 (grub_script_lexer_ref): Likewise.
50470 (grub_script_lexer_deref): Likewise.
50471 (grub_script_lexer_record_start): Likewise.
50472 (grub_script_lexer_record_stop): Likewise.
50473 (grub_script_mem_record): Likewise.
50474 (grub_script_mem_record_stop): Likewise.
50475 (grub_script_malloc): Likewise.
50476 (grub_script_yylex): Likewise.
50477 (grub_script_yyparse): Likewise.
50478 (grub_script_yyerror): Likewise.
50479 (grub_script_yylex): Likewise.
50480 (grub_script_lexer_init): Return the state.
50482 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50483 (grub_script_lexer_done): Likewise.
50484 (grub_script_lexer_getline): Likewise.
50485 (grub_script_lexer_refs): Likewise.
50486 (script): Likewise.
50487 (newscript): Likewise.
50488 (record): Likewise.
50489 (recording): Likewise.
50490 (recordpos): Likewise.
50491 (recordlen): Likewise.
50492 (grub_script_lexer_init): Return the state instead of setting
50494 (grub_script_lexer_ref): Use the newly added argument for state
50495 instead of globals.
50496 (grub_script_lexer_deref): Likewise.
50497 (grub_script_lexer_record_start): Likewise.
50498 (grub_script_lexer_record_stop): Likewise.
50499 (recordchar): Likewise.
50500 (nextchar): Likewise.
50501 (grub_script_yylex2): Likewise.
50502 (grub_script_yylex): Likewise.
50503 (grub_script_yyerror): Likewise.
50505 * normal/parser.y (func_mem): Removed variable.
50506 (menu_entry): Likewise.
50508 (%lex-param): New parser option.
50509 (%parse-param): Likewise.
50510 (script): Always return the AST.
50511 (argument): Pass the state around.
50512 (arguments): Likewise.
50513 (grubcmd): Likewise.
50514 (commands): Likewise.
50515 (function): Likewise.
50516 (menuentry): Likewise.
50517 (if_statement): Likewise.
50520 * normal/script.c (grub_script_memused): Removed variable.
50521 (grub_script_parsed): Likewise.
50522 (grub_script_malloc): Added a state argument. Use that instead of
50524 (grub_script_mem_record): Likewise.
50525 (grub_script_mem_record_stop): Likewise.
50526 (grub_script_arg_add): Likewise.
50527 (grub_script_add_arglist): Likewise.
50528 (grub_script_create_cmdline): Likewise.
50529 (grub_script_create_cmdif): Likewise.
50530 (grub_script_create_cmdmenu): Likewise.
50531 (grub_script_add_cmd): Likewise.
50532 (grub_script_parse): Setup the state before calling the parser.
50534 2006-04-16 Marco Gerards <marco@gnu.org>
50536 * normal/command.c (grub_command_init): Remove the title command.
50538 * normal/lexer.c (grub_script_yylex): Renamed from this...
50539 (grub_script_yylex2): ... to this.
50540 (grub_script_yylex): New function. Temporary
50541 introduced to filter some tokens.
50542 (grub_script_yyerror): Print a newline.
50544 * normal/main.c (read_config_file): Output information about the
50545 lines that contain errors. Wait for a key after all lines have
50546 been processed. Don't return an empty menu.
50548 * normal/parser.y (func_mem): Don't initialize.
50549 (menu_entry): Likewise.
50550 (err): New variable.
50551 (script): Don't return anything when an error was encountered.
50552 (ws, returns): Removed rules.
50553 (argument): Disabled concatenated variable support.
50554 (arguments): Remove explicit separators.
50555 (grubcmd): Likewise.
50556 (function): Likewise.
50557 (menuentry): Likewise.
50559 (commands): Likewise. Add error handling.
50561 * normal/script.c (grub_script_create_cmdline): If
50562 `grub_script_parsed' is 0, assume the parser encountered an error.
50564 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50566 * configure.ac: Add support for EFI. Fix the typo
50567 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50569 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50571 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50572 foreign multibyte characters should be shown correctly.
50574 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50576 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50578 (read_config_file): Made it to close file before returning.
50580 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50582 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50583 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50584 video/i386/pc/vbefill.c.
50586 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50587 video/i386/pc/vbefill.c.
50589 * include/grub/video.h (grub_video_blit_format): New enum.
50590 (grub_video_mode_info): Added new member blit_format.
50591 (grub_video_get_blit_format): New function prototype.
50593 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50594 function prototype.
50595 (grub_video_vbe_map_rgb): Likewise.
50596 (grub_video_vbe_unmap_color): Likewise.
50598 * include/grub/i386/pc/vbeblit.h: New file.
50600 * include/grub/i386/pc/vbefill.h: New file.
50602 * video/video.c (grub_video_get_blit_format): New function.
50603 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50604 (grub_video_vbe_map_rgb): Likewise.
50605 (grub_video_vbe_unmap_color): Likewise.
50607 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50609 (grub_video_vbe_blit_render_target): Changed to use more optimized
50611 (grub_video_vbe_setup): Added detection for optimized settings.
50612 (grub_video_vbe_create_render_target): Likewise.
50614 * video/i386/pc/vbeblit.c: New file.
50616 * video/i386/pc/vbefill.c: New file.
50618 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50620 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50623 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50624 parsing to support both hex and dec ranges. If filename was missing
50625 show usage information.
50627 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50629 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50630 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50632 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50633 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50634 (video_mod_SOURCES): Added.
50635 (video_mod_CFLAGS): Likewise.
50636 (video_mod_LDFLAGS): Likewise.
50637 (gfxterm_mod_SOURCES): Likewise.
50638 (gfxterm_mod_CFLAGS): Likewise.
50639 (gfxterm_mod_LDFLAGS): Likewise.
50640 (videotest_mod_SOURCES): Likewise.
50641 (videotest_mod_CFLAGS): Likewise.
50642 (videotest_mod_LDFLAGS): Likewise.
50643 (vesafb_mod_SOURCES): Removed.
50644 (vesafb_mod_CFLAGS): Likewise.
50645 (vesafb_mod_LDFLAGS): Likewise.
50646 (vga_mod_SOURCES): Likewise.
50647 (vga_mod_CFLAGS): Likewise.
50648 (vga_mod_LDFLAGS): Likewise.
50650 * commands/videotest.c: New file.
50652 * font/manager.c (fill_with_default_glyph): Modified to use
50654 (grub_font_get_glyph): Likewise.
50655 (fontmanager): Renamed from this...
50656 (font_manager): ... to this.
50658 * include/grub/font.h (grub_font_glyph): Added new structure.
50659 (grub_font_get_glyph): Modified to use grub_font_glyph.
50661 * include/grub/misc.h (grub_abs): Added as inline function.
50663 * include/grub/video.h: New file.
50665 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50666 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50667 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50668 (grub_vbe_get_controller_info): Renamed from this...
50669 (grub_vbe_bios_get_controller_info): ... to this.
50670 (grub_vbe_get_mode_info): Renamed from this...
50671 (grub_vbe_bios_get_mode_info): ... to this.
50672 (grub_vbe_set_mode): Renamed from this...
50673 (grub_vbe_bios_set_mode): ... to this.
50674 (grub_vbe_get_mode): Renamed from this...
50675 (grub_vbe_bios_get_mode): ... to this.
50676 (grub_vbe_set_memory_window): Renamed from this...
50677 (grub_vbe_bios_set_memory_window): ... to this.
50678 (grub_vbe_get_memory_window): Renamed from this...
50679 (grub_vbe_bios_get_memory_window): ... to this.
50680 (grub_vbe_set_scanline_length): Renamed from this...
50681 (grub_vbe_set_scanline_length): ... to this.
50682 (grub_vbe_get_scanline_length): Renamed from this...
50683 (grub_vbe_bios_get_scanline_length): ... to this.
50684 (grub_vbe_set_display_start): Renamed from this...
50685 (grub_vbe_bios_set_display_start): ... to this.
50686 (grub_vbe_get_display_start): Renamed from this...
50687 (grub_vbe_bios_get_display_start): ... to this.
50688 (grub_vbe_set_palette_data): Renamed from this...
50689 (grub_vbe_bios_set_palette_data): ... to this.
50690 (grub_vbe_set_pixel_rgb): Removed.
50691 (grub_vbe_set_pixel_index): Likewise.
50693 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50695 (grub_vbe_bios_get_controller_info): ... to this.
50696 (grub_vbe_get_mode_info): Renamed from this...
50697 (grub_vbe_bios_get_mode_info): ... to this.
50698 (grub_vbe_set_mode): Renamed from this...
50699 (grub_vbe_bios_set_mode): ... to this.
50700 (grub_vbe_get_mode): Renamed from this...
50701 (grub_vbe_bios_get_mode): ... to this.
50702 (grub_vbe_set_memory_window): Renamed from this...
50703 (grub_vbe_bios_set_memory_window): ... to this.
50704 (grub_vbe_get_memory_window): Renamed from this...
50705 (grub_vbe_bios_get_memory_window): ... to this.
50706 (grub_vbe_set_scanline_length): Renamed from this...
50707 (grub_vbe_set_scanline_length): ... to this.
50708 (grub_vbe_get_scanline_length): Renamed from this...
50709 (grub_vbe_bios_get_scanline_length): ... to this.
50710 (grub_vbe_set_display_start): Renamed from this...
50711 (grub_vbe_bios_set_display_start): ... to this.
50712 (grub_vbe_get_display_start): Renamed from this...
50713 (grub_vbe_bios_get_display_start): ... to this.
50714 (grub_vbe_set_palette_data): Renamed from this...
50715 (grub_vbe_bios_set_palette_data): ... to this.
50716 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50717 getting corrupted after calling it. Added more pushes and pops.
50718 (grub_vbe_bios_set_mode): Likewise.
50719 (grub_vbe_bios_get_mode): Likewise.
50720 (grub_vbe_bios_get_memory_window): Likewise.
50721 (grub_vbe_bios_set_scanline_length): Likewise.
50722 (grub_vbe_bios_get_scanline_length): Likewise.
50723 (grub_vbe_bios_get_display_start): Likewise.
50724 (grub_vbe_bios_set_palette_data): Likewise.
50726 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50727 (cl_insert): Likewise.
50728 (cl_delete): Likewise.
50730 * term/gfxterm.c: New file.
50732 * term/i386/pc/vesafb.c: Removed file.
50734 * video/video.c: New file.
50736 * video/i386/pc/vbe.c (real2pm): Added new function.
50737 (grub_video_vbe_draw_pixel): Likewise.
50738 (grub_video_vbe_get_video_ptr): Likewise.
50739 (grub_video_vbe_get_pixel): Likewise
50740 (grub_video_vbe_init): Likewise.
50741 (grub_video_vbe_fini): Likewise.
50742 (grub_video_vbe_setup): Likewise.
50743 (grub_video_vbe_get_info): Likewise.
50744 (grub_video_vbe_set_palette): Likewise.
50745 (grub_video_vbe_get_palette): Likewise.
50746 (grub_video_vbe_set_viewport): Likewise.
50747 (grub_video_vbe_get_viewport): Likewise.
50748 (grub_video_vbe_map_color): Likewise.
50749 (grub_video_vbe_map_rgb): Likewise.
50750 (grub_video_vbe_map_rgba): Likewise.
50751 (grub_video_vbe_unmap_color): Likewise.
50752 (grub_video_vbe_fill_rect): Likewise.
50753 (grub_video_vbe_blit_glyph): Likewise.
50754 (grub_video_vbe_blit_bitmap): Likewise.
50755 (grub_video_vbe_blit_render_target): Likewise.
50756 (grub_video_vbe_scroll): Likewise.
50757 (grub_video_vbe_swap_buffers): Likewise.
50758 (grub_video_vbe_create_render_target): Likewise.
50759 (grub_video_vbe_delete_render_target): Likewise.
50760 (grub_video_vbe_set_active_render_target): Likewise.
50761 (grub_vbe_set_pixel_rgb): Remove function.
50762 (grub_vbe_set_pixel_index): Likewise.
50763 (index_color_mode): Remove static variable.
50764 (active_mode): Likewise.
50765 (framebuffer): Likewise.
50766 (bytes_per_scan_line): Likewise.
50767 (grub_video_vbe_adapter): Added new static variable.
50768 (framebuffer): Likewise.
50769 (render_target): Likewise.
50770 (initial_mode): Likewise.
50771 (mode_in_use): Likewise.
50772 (mode_list): Likewise.
50774 2006-03-10 Marco Gerards <marco@gnu.org>
50776 * configure.ac (AC_INIT): Bumped to 1.93.
50778 * DISTLIST: Added `include/grub/hfs.h'.
50780 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50782 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50783 18H, which might help the BIOS falling back to next boot media.
50785 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50787 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50788 Poe Chen <poe.poechen@gmail.com>.
50790 2006-01-17 Marco Gerards <marco@gnu.org>
50792 * include/grub/normal.h: Include <grub/script.h>.
50793 (grub_command_list): Removed struct.
50794 (grub_command_list_t): Removed type.
50795 (grub_menu_entry): Remove members `num' and `command_list'. Add
50796 members `commands' and `sourcecode'.
50797 * include/grub/script.h: Add inclusion guards.
50798 (grub_script_cmd_menuentry): New struct.
50799 (grub_script_execute_menuentry): New prototype.
50800 (grub_script_lexer_record_start): Likewise.
50801 (grub_script_lexer_record_stop): Likewise.
50802 * normal/execute.c (grub_script_execute_menuentry): New function.
50803 * normal/lexer.c (record, recording, recordpos, recordlen): New
50805 (grub_script_lexer_record_start): New function.
50806 (grub_script_lexer_record_stop): Likewise.
50807 (recordchar): Likewise.
50808 (nextchar): Likewise.
50809 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50810 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50811 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50812 (current_menu): New variable.
50813 (free_menu): Mainly rewritten.
50814 (grub_normal_menu_addentry): New function.
50815 (read_config_file): Rewritten.
50816 * normal/menu.c (run_menu_entry): Mainly rewritten.
50817 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50819 (run): Mainly rewritten.
50820 * normal/parser.y (menu_entry): New variable.
50821 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50822 (menuentry): New rule.
50823 (command): Add `menuentry'.
50824 (if_statement): Allow additional returns before `fi'.
50825 * normal/script.c (grub_script_create_cmdmenu): New function.
50827 2006-01-03 Marco Gerards <marco@gnu.org>
50829 * INSTALL: GNU Bison is required.
50830 * configure.ac: Rewritten the test to detect Bison.
50831 * Makefile.in (YACC): New variable. Reported by Xun Sun
50832 <xun.sun.cn@gmail.com>.
50834 2006-01-03 Marco Gerards <marco@gnu.org>
50836 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50837 the HFS+ filesystem to filesystem blocks.
50838 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50839 GCC warning is silenced.
50841 2006-01-03 Marco Gerards <marco@gnu.org>
50843 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50844 read from disk from big endian to host byte order.
50846 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50848 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50850 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50851 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50852 embedded HFS+ filesystem.
50853 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50854 (grub_hfs_sblock): Move from here...
50855 * include/grub/hfs.h: To here... New file.
50856 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
50858 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
50860 (grub_hfsplus_volheader): Change type of member `magic' to
50862 (grub_hfsplus_data): Add new member `embedded_offset'.
50863 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
50865 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
50866 Calculate the offset.
50868 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50870 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
50872 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
50874 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50876 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
50877 ENV->NAME is NULL after allocating ENV->VALUE.
50879 2005-12-25 Marco Gerards <marco@gnu.org>
50881 * kern/env.c (grub_env_set): Rewritten the error handling code.
50883 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50885 * geninit.sh: Made more robust, and more portable.
50887 2005-12-25 Marco Gerards <marco@gnu.org>
50889 Add support for Apple HFS+ filesystems.
50891 * fs/hfsplus.c: New file.
50893 * DISTLIST: Added `fs/hfsplus.c'.
50895 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
50896 (hfsplus_mod_SOURCES): New variable.
50897 (hfsplus_mod_CFLAGS): Likewise.
50898 (hfsplus_mod_LDFLAGS): Likewise.
50899 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
50900 (grub_setup_SOURCES): Likewise.
50901 (grub_mkdevicemap_SOURCES): Likewise.
50902 (grub_emu_SOURCES): Likewise.
50903 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50905 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
50907 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
50909 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50911 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
50912 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
50913 include/grub/parser.h, include/grub/script.h, kern/parser.c,
50914 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
50915 normal/lexer.c, normal/parser.y, normal/script.c, and
50917 Removed kern/sparc64/cache.c.
50919 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
50920 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
50923 * configure.ac (AC_INIT): Bumped to 1.92.
50925 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
50927 * kern/err.c (grub_error_push): Added new function to support error
50929 (grub_error_pop): Likewise.
50930 (grub_error_stack_items): New local variable to support error stacks.
50931 (grub_error_stack_pos): Likewise.
50932 (grub_error_stack_assert): Likewise.
50933 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
50935 (grub_print_error): Added support to print errors from error stack.
50937 * include/grub/err.h (grub_error_push): Added function prototype.
50938 (grub_error_pop): Likewise.
50940 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
50942 * configure.ac: Accept `powerpc64' as host_cpu.
50943 (amd64): Rename to `biarch32'.
50945 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
50946 non-cacheline-aligned addresses.
50948 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
50949 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
50950 if `size' is non-zero.
50952 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
50954 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
50955 and `cd' to make sure the filename is not prefixed with a
50957 (pkgdata_MODULES): Add `gpt.mod'.
50958 (gpt_mod_SOURCES): New variable.
50959 (gpt_mod_CFLAGS): Likewise.
50960 (gpt_mod_LDFLAGS): Likewise.
50962 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
50964 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
50967 * partmap/gpt.c: New file.
50969 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
50970 GPT partition map is detected.
50972 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
50974 * commands/i386/pc/play.c: New file.
50975 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
50976 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
50979 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
50981 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
50982 ((unused))' to silence gcc warning.
50984 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
50986 * configure.ac: Correct `AC_PROG_YACC' test.
50988 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
50990 * util/powerpc/ieee1275/grub-install.in: Run the mount point
50991 check before installing files.
50993 2005-11-22 Mike Small <smallm@panix.com>
50995 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
50996 number regex so multidigit numbers are recognized correctly.
50998 2005-11-22 Mike Small <smallm@panix.com>
51000 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51001 debugging message before attempting to claim memory.
51002 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51003 multiple addresses in case of failure.
51005 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51007 * term/tparm.c (get_space): Remove empty `if' statement.
51009 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51011 * kern/parser.c (check_varstate): Rename `state' to 's'.
51013 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51015 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51016 variable definitions to the beginning of each function. Sort stack
51018 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51019 `buf' argument to `char *'.
51021 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51023 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51024 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51025 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51026 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51027 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51028 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51029 configfile.mod, search.mod, gzio.mod and test.mod.
51030 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51031 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51032 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51033 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51034 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51035 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51036 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51037 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51038 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51039 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51040 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51041 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51042 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51043 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51044 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51045 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51046 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51047 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51048 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51049 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51050 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51051 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51052 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51054 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51056 (pkgdata_MODULES): Add test.mod.
51058 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51060 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51061 appending to variables with "+=".
51062 (PModule): Use full pathname to generate *.lst filenames.
51064 * Makefile.in: Fixed list rules moved from genmk.rb.
51065 (.DELETE_ON_ERROR): New special target.
51066 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51068 * conf/i386-pc.rmk: Include conf/common.mk.
51069 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51070 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51071 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51072 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51073 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51074 configfile.mod, search.mod, gzio.mod and test.mod.
51075 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51076 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51077 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51078 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51079 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51080 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51081 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51082 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51083 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51084 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51085 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51086 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51087 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51088 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51089 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51090 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51091 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51092 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51093 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51094 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51095 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51096 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51097 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51099 * conf/common.rmk: ... to here. New file.
51101 * conf/common.mk: New file.
51103 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51105 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51106 (grub_script.tab.c): ... here.
51108 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51109 (grub_script.tab.c): ... here.
51111 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51112 (grub_script.tab.c): ... here.
51114 * normal/command.c (grub_command_find): Fixed a memory leak of
51115 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51117 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51119 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51120 "@" which marks the start of a comment on ARM.
51121 (VARIABLE): Likewise.
51123 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51125 Add support for Linux/ADFS partition tables.
51127 * partmap/acorn.c: New file.
51129 * include/grub/acorn_filecore.h: Likewise.
51131 * DISTLIST: Added `partmap/acorn.c' and
51132 `include/grub/acorn_filecore.h'.
51134 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51136 (pkgdata_MODULES): Add `acorn.mod'.
51137 (acorn_mod_SOURCES): New variable.
51138 (acorn_mod_CFLAGS): Likewise.
51140 * conf/sparc64-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/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51147 (pkgdata_MODULES): Add `acorn.mod'.
51148 (acorn_mod_SOURCES): New variable.
51149 (acorn_mod_CFLAGS): Likewise.
51150 (acorn_mod_LDFLAGS): Likewise.
51152 * include/types.h (grub_disk_addr_t): New typedef.
51154 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51156 * geninit.sh: New file.
51158 * geninitheader.sh: Likewise.
51160 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51161 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51162 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51163 * commands/configfile.c (grub_configfile_init)
51164 (grub_configfile_fini): Likewise.
51165 * commands/default.c (grub_default_init, grub_default_fini):
51167 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51168 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51169 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51170 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51172 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51173 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51175 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51176 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51178 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51180 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51182 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51183 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51184 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51185 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51186 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51187 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51188 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51189 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51190 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51191 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51192 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51193 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51194 * partmap/amiga.c (grub_amiga_partition_map_init)
51195 (grub_amiga_partition_map_fini): Likewise.
51196 * partmap/apple.c (grub_apple_partition_map_init)
51197 (grub_apple_partition_map_fini): Likewise.
51198 * partmap/pc.c (grub_pc_partition_map_init)
51199 (grub_pc_partition_map_fini): Likewise.
51200 * partmap/sun.c (grub_sun_partition_map_init,
51201 grub_sun_partition_map_fini): Likewise.
51202 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51205 * util/grub-emu.c: Include <grub_modules_init.h>.
51206 (main): Don't initialize and de-initialize any modules directly,
51207 use `grub_init_all' and `grub_fini_all' instead.
51209 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51210 `grub_vesafb_mod_init'.
51211 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51213 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51214 `grub_vga_mod_init'. Updated all users.
51215 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51217 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51218 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51221 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51222 Generate a function to initialize the module in utilities.
51223 Updated all callers.
51224 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51225 initialize the module in utilities. Updated all callers.
51227 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51229 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51230 escape sequence and a literal ^L to clear the screen.
51232 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51233 when returning from Open Firmware.
51235 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51237 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51238 (grub_ofconsole_height): Likewise.
51239 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51240 manually insert a '\n'.
51241 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51242 `grub_ofconsole_height'. Return early if these are already set.
51244 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51246 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51247 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51248 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51249 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51250 and `normal/script.c'.
51251 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51252 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51253 (test_mod_SOURCES): New variable.
51254 (test_mod_CFLAGS): Likewise.
51255 (test_mod_LDFLAGS): Likewise.
51256 (pkgdata_MODULES): Add `test.mod'.
51257 (grub_script.tab.c): New rule.
51258 (grub_script.tab.h): Likewise.
51260 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51262 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51263 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51264 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51265 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51266 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51267 (test_mod_SOURCES): New variable.
51268 (test_mod_CFLAGS): Likewise.
51269 (pkgdata_MODULES): Add `test.mod'.
51270 (grub_script.tab.c): New rule.
51271 (grub_script.tab.h): Likewise.
51273 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51275 Add initial scripting support.
51277 * commands/test.c: New file.
51278 * include/grub/script.h: Likewise.
51279 * normal/execute.c: Likewise.
51280 * normal/function.c: Likewise.
51281 * normal/lexer.c: Likewise.
51282 * normal/parser.y: Likewise.
51283 * normal/script.c: Likewise.
51285 * configure.ac: Add `AC_PROG_YACC' test.
51287 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51288 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51289 `normal/function.c' and `normal/script.c'.
51290 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51291 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51292 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51294 (pkgdata_MODULES): Add `test.mod'.
51295 (grub_script.tab.c): New rule.
51296 (grub_script.tab.h): Likewise.
51298 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51300 * include/grub/normal.h (grub_test_init): New prototype.
51301 (grub_test_fini): Likewise.
51303 * normal/command.c: Include <grub/script.h>.
51304 (grub_command_execute): Rewritten.
51306 * util/grub-emu.c (main): Call `grub_test_init' and
51309 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51311 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51313 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51314 there are no pending characters.
51316 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51318 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51319 `grub_strndup' to drop device arguments. Replace unnecessary
51320 `grub_strndup' with `grub_strdup'.
51322 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51324 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51325 `debug' environment variable has been set.
51327 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51329 * Makefile.in (install-local): Use $(DATA).
51330 (uninstall): Likewise.
51331 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51332 (sbin_UTILITIES): ... to here.
51333 (sbin_SCRIPTS): New variable.
51334 (grub_install_SOURCES): New variable.
51335 * util/powerpc/ieee1275/grub-install.in: New file.
51336 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51338 (add_segments): Call `grub_util_get_path'.
51340 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51342 From Timothy Baldwin:
51343 * commands/ls.c (grub_ls_list_files): Close FILE with
51345 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51347 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51349 * include/grub/parser.h: New file.
51351 * kern/parser.c: Likewise.
51353 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51354 (grub_setup_SOURCES): Likewise.
51355 (grub_probefs_SOURCES): Likewise.
51356 (grub_emu_SOURCES): Likewise.
51357 (kernel_img_HEADERS): Add `parser.h'.
51359 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51360 (grub_emu_SOURCES): Add `kern/parser.c'.
51361 (grubof_SOURCES): Likewise.
51363 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51364 (grubof_SOURCES): Add `kern/parser.c'.
51366 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51368 * kern/misc.c (grub_split_cmdline): Removed function.
51370 * kern/rescue.c: Include <grub/parser.h>.
51371 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51372 of `grub_split_cmdline'.
51374 * normal/command.c: Include <grub/parser.h>.
51375 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51376 of `grub_split_cmdline'.
51378 * normal/completion.c: Include <grub/parser.h>.
51379 (cmdline_state): New variable.
51380 (iterate_dir): End the filename with a quote depending on the
51381 command line state.
51382 (get_state): new function.
51383 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51384 split the arguments and determine the current argument. When the
51385 argument string is not quoted, escape all spaces.
51387 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51389 * normal/sparc64/setjmp.S: New file.
51391 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51393 * include/grub/sparc64/libgcc.h: New file.
51394 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51395 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51396 normal/sparc64/setjmp.c.
51398 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51400 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51401 * kern/sparc64/cache.S: New file.
51402 * kern/sparc64/cache.c: Removed.
51403 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51404 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51406 (COMMON_LDFLAGS): Add -melf64_sparc.
51407 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51408 (grubof_SOURCES): Use cache.S instead of cache.c.
51409 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51410 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51411 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51413 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51414 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51415 (linux_mod_CFLAGS): Commented out.
51416 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51417 out because module isn't built.
51418 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51419 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51420 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51421 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51422 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51423 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51424 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51425 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51426 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51427 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51428 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51429 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51430 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51431 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51433 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51435 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51436 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51437 longer, because HFS should not be used on PC.
51439 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51441 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51442 consistently within the loop.
51444 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51446 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51447 directory can not be read.
51449 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51451 * configure.ac (AC_INIT): Increase the version number to 1.91.
51453 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51454 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51455 term/i386/pc/serial.c.
51457 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51459 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51460 file size must be permitted.
51462 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51463 between %ah and %al.
51465 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51467 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51469 Call the hook with a NUL-terminated filename.
51470 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51473 * kern/term.c (cursor_state): New variable.
51474 (grub_term_set_current): Reset the cursor state on a new
51476 (grub_setcursor): Rewritten to use CURSOR_STATE.
51477 (grub_getcursor): New function.
51479 * include/grub/term.h (grub_getcursor): New prototype.
51481 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51482 integers on ARM. Reported by Timothy Baldwin
51483 <T.E.Baldwin99@members.leeds.ac.uk>.
51485 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51487 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51489 (grub_sfs_dir): Likewise.
51491 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51493 Add support for the SFS filesystem.
51495 * fs/sfs.c: New file.
51497 * DISTLIST: Added `fs/sfs.c'.
51499 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51500 (grub_probefs_SOURCES): Likewise.
51501 (grub_emu_SOURCES): Likewise.
51502 (pkgdata_MODULES): Add `sfs.mod'.
51503 (sfs_mod_SOURCES): New variable.
51504 (sfs_mod_CFLAGS): Likewise.
51505 (sfs_mod_LDFLAGS): Likewise.
51507 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51508 (pkgdata_MODULES): Add `sfs.mod'.
51509 (sfs_mod_SOURCES): New variable.
51510 (sfs_mod_CFLAGS): Likewise.
51512 * util/grub-emu.c (main): Call `grub_sfs_init' and
51515 * include/grub/fs.h (grub_sfs_init): New prototype.
51516 (grub_sfs_fini): Likewise.
51518 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51520 Add support for the AFFS filesystem.
51522 * fs/affs.c: New file.
51524 * DISTLIST: Added `fs/affs.c'.
51526 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51527 (grub_probefs_SOURCES): Likewise.
51528 (grub_emu_SOURCES): Likewise.
51529 (pkgdata_MODULES): Add `affs.mod'.
51530 (affs_mod_SOURCES): New variable.
51531 (affs_mod_CFLAGS): Likewise.
51532 (affs_mod_LDFLAGS): Likewise.
51534 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51535 (pkgdata_MODULES): Add `affs.mod'.
51536 (affs_mod_SOURCES): New variable.
51537 (affs_mod_CFLAGS): Likewise.
51539 * util/grub-emu.c (main): Call `grub_affs_init' and
51542 * include/grub/fs.h (grub_affs_init): New prototype.
51543 (grub_affs_fini): Likewise.
51545 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51547 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51549 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51551 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51554 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51557 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51558 (COMMON_LDFLAGS): New variable.
51559 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51560 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51561 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51562 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51563 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51564 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51565 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51566 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51567 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51568 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51569 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51570 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51571 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51572 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51573 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51575 (normal_mod_ASFLAGS): Add `-m32'.
51577 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51578 (grub_host_size_t, grub_host_ssize_t): New types.
51579 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51580 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51581 `GRUB_HOST_SIZEOF_VOID_P'.
51583 * include/grub/kernel.h (struct grub_module_header): Type of
51584 member offset changed to `grub_host_off_t'. Type of member size
51585 changed to `grub_host_size_t'.
51586 (struct grub_module_info): Type of member offset changed to
51587 `grub_host_off_t'. Type of member size changed to
51588 `grub_host_size_t'.
51590 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51592 Make GRUB's kernel compliant to Multiboot Specification.
51594 * kern/i386/pc/startup.S (multiboot_header): New label.
51595 (multiboot_entry): Likewise.
51596 (multiboot_trampoline): Likewise.
51598 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51599 Increased to 0x4A0.
51601 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51602 put parentheses after a question mark.
51603 [!GRUB_UTIL] (my_mod): New variable.
51605 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51607 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51609 Adds support for the XFS filesystem. Btrees are not supported
51612 * fs/xfs.c: New file.
51614 * DISTLIST: Added `fs/xfs.c'.
51616 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51617 (grub_probefs_SOURCES): Likewise.
51618 (grub_emu_SOURCES): Likewise.
51619 (pkgdata_MODULES): Add `xfs.mod'.
51620 (xfs_mod_SOURCES): New variable.
51621 (xfs_mod_CFLAGS): Likewise.
51623 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51624 (pkgdata_MODULES): Add `xfs.mod'.
51625 (xfs_mod_SOURCES): New variable.
51626 (xfs_mod_CFLAGS): Likewise.
51628 * util/grub-emu.c (main): Call `grub_xfs_init' and
51631 * include/grub/fs.h (grub_xfs_init): New prototype.
51632 (grub_xfs_fini): Likewise.
51635 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51637 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51638 color modes, allow greater than 16 colors to be configured as
51641 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51643 * normal/completion.c (complete_arguments): Add the qualifier
51644 const into OPTIONS.
51646 From Omniflux <omniflux+lists@omniflux.com>:
51647 * include/grub/terminfo.h: New file.
51648 * include/grub/tparm.h: Likewise.
51649 * include/grub/i386/pc/serial.h: Likewise.
51650 * term/terminfo.c: Likewise.
51651 * term/tparm.c: Likewise.
51652 * term/i386/pc/serial.c: Likewise.
51653 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51655 (terminfo_mod_SOURCES): New variable.
51656 (terminfo_mod_CFLAGS): Likewise.
51657 (serial_mod_SOURCES): Likewise.
51658 (serial_mod_CFLAGS): Likewise.
51660 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51662 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51663 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51664 and kern/powerpc/ieee1275/cmain.c, respectively.
51666 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51667 * kern/powerpc/ieee1275/crt0.S: ... here.
51669 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51670 * kern/powerpc/ieee1275/cmain.c: ... here.
51672 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51673 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51674 instead of boot/powerpc/ieee1275/crt0.S and
51675 boot/powerpc/ieee1275/cmain.c, respectively.
51677 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51678 sectors. It was not used anyway.
51680 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51682 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51683 `unused parameter' warning.
51685 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51687 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51689 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51692 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51694 * include/grub/normal.h (enum grub_completion_type): Added
51695 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51697 * normal/cmdline.c (print_completion): Handle
51698 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51699 * normal/menu_entry.c (store_completion): Likewise.
51701 * normal/completion.c (complete_arguments): New function.
51702 (grub_normal_do_completion): Call `complete_arguments' when the
51703 current words start with a dash.
51705 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51707 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51708 `gzio.mod' instead of `io.mod').
51710 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51712 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51713 (DISTDIRS): Added io and video.
51714 Rewrite the search routine to make an output consistently.
51716 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51717 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51718 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51719 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51720 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51721 util/powerpc/ieee1275/misc.c.
51723 * include/grub/gzio.h: New file.
51724 * io/gzio.c: Likewise.
51726 * kern/file.c (grub_file_close): Call grub_device_close only if
51727 FILE->DEVICE is not NULL.
51729 * include/grub/mm.h [!NULL] (NULL): New macro.
51731 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51733 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51734 (pkgdata_MODULES): Added gzio.mod.
51735 (gzio_mod_SOURCES): New variable.
51736 (gzio_mod_CFLAGS): Likewise.
51738 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51739 (pkgdata_MODULES): Added gzio.mod.
51740 (gzio_mod_SOURCES): New variable.
51741 (gzio_mod_CFLAGS): Likewise.
51743 * commands/cat.c: Include grub/gzio.h.
51744 (grub_cmd_cat): Use grub_gzfile_open instead of
51747 * commands/cmp.c: Include grub/gzio.h.
51748 (grub_cmd_cmp): Use grub_gzfile_open instead of
51751 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51752 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51754 (grub_rescue_cmd_module): Likewise.
51756 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51758 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51759 kern/sparc64/ieee1275/init.c because it contains _start.
51760 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51762 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51764 * configure.ac: Add support for sparc64 host with ieee1275
51766 * configure: Generated from configure.ac.
51767 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51769 (grub_ofdisk_read): Likewise.
51770 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51771 pointers as (void *) to remove a warning.
51772 (grub_ofdisk_close): Likewise.
51773 (grub_ofdisk_read): Likewise.
51774 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51775 returns, so make it return void to remove a warning.
51776 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51777 Corresponding prototype change.
51778 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51779 values, and cast the pointers as (void *) to remove a warning.
51780 (grub_mm_dump): Likewise.
51781 * conf/sparc64-ieee1275.mk: New file.
51782 * conf/sparc64-ieee1275.rmk: Likewise.
51783 * include/grub/sparc64/setjmp.h: Likewise.
51784 * include/grub/sparc64/types.h: Likewise.
51785 * include/grub/sparc64/ieee1275/console.h: Likewise.
51786 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51787 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51788 * include/grub/sparc64/ieee1275/time.h: Likewise.
51789 * kern/sparc64/cache.c: Likewise.
51790 * kern/sparc64/dl.c: Likewise.
51791 * kern/sparc64/ieee1275/init.c: Likewise.
51792 * kern/sparc64/ieee1275/openfw.c: Likewise.
51794 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51796 * util/console.c (grub_ncurses_putchar): If C is greater than
51797 0x7f, set C to a question mark.
51798 (grub_ncurses_getcharwidth): New function.
51799 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51802 * normal/menu.c (print_entry): Made aware of Unicode. First,
51803 convert TITLE to UCS-4, and predict the cursor position by
51806 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51808 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51810 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51812 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51813 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51816 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51817 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51818 grub_strcpy and grub_strlen. Take it into account that a space
51819 character is inserted as a delimiter.
51821 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51823 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51824 invalid magic in the error.
51826 * commands/search.c: New file.
51828 * util/grub-emu.c (main): Call grub_search_init and
51831 * kern/rescue.c (grub_rescue_print_disks): Removed.
51832 (grub_rescue_print_devices): New function.
51833 (grub_rescue_cmd_ls): Use grub_device_iterate with
51834 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51835 grub_rescue_print_disks.
51837 * kern/partition.c (grub_partition_iterate): Return the result of
51838 PARTMAP->ITERATE instead of GRUB_ERRNO.
51840 * kern/device.c: Include grub/partition.h.
51841 (grub_device_iterate): New function.
51843 * include/grub/partition.h (grub_partition_iterate): Return int
51844 instead of grub_err_t.
51846 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51848 [GRUB_UTIL] (grub_search_fini): Likewise.
51850 * include/grub/device.h (grub_device_iterate): New prototype.
51852 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51854 (pkgdata_MODULES): Added search.mod.
51855 (search_mod_SOURCES): New variable.
51856 (search_mod_CFLAGS): Likewise.
51858 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
51859 (pkgdata_MODULES): Added search.mod.
51860 (search_mod_SOURCES): New variable.
51861 (search_mod_CFLAGS): Likewise.
51863 * commands/ls.c (grub_ls_list_disks): Renamed to ...
51864 (grub_ls_list_devices): ... this, and use grub_device_iterate.
51865 All callers changed.
51867 * DISTLIST: Added commands/search.c.
51869 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51871 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
51873 (grub_getcharwidth): New function.
51875 * kern/misc.c (grub_utf8_to_ucs4): New function.
51877 * include/grub/term.h (struct grub_term): Added a new member
51879 (grub_getcharwidth): New prototype.
51881 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
51883 * term/i386/pc/console.c (map_char): New function. Segregated from
51884 grub_console_putchar.
51885 (grub_console_putchar): Use map_char.
51886 (grub_console_getcharwidth): New function.
51887 (grub_console_term): Specified grub_console_getcharwidth as
51890 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
51891 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
51893 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
51895 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
51896 on grub_strtoul completely.
51897 (write_char): Declare local variables in the beginning of the
51899 (grub_vesafb_getcharwidth): New function.
51900 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
51903 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
51905 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
51906 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
51907 commands/i386/pc/vbetest.c.
51909 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
51910 call grub_vbe_get_controller_info again, because the returned
51911 information is volatile.
51912 (grub_vbe_set_video_mode): Mostly rewritten.
51913 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
51914 grub_vbe_status_t correctly.
51915 (grub_vbe_get_video_mode_info): Likewise.
51916 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
51917 several if statements.
51919 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
51920 * commands/i386/pc/vbeinfo.c: ... this.
51922 * commands/i386/pc/vbe_test.c: Renamed to ...
51923 * commands/i386/pc/vbetest.c: ... this.
51925 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
51927 (grub_cmd_vbeinfo): ... this. Save video modes before
51928 iterating. Skip a video mode, if it is not available, not enough
51929 information is given or it is monochrome. Show the memory
51930 model. Leave the interpretation of MODEVAR to grub_strtoul
51932 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
51933 (GRUB_MOD_FINI): Likewise.
51935 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
51936 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
51937 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
51938 duplicated grub_env_get. Leave the interpretation of MODEVAR to
51939 grub_strtoul completely.
51940 (real2pm): Removed.
51941 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
51942 (GRUB_MOD_FINI): Likewise.
51944 * normal/misc.c: Include grub/mm.h.
51946 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
51947 vbe_list_modes with vbetest.mod and vbeinfo.mod.
51948 (vbe_list_modes_mod_SOURCES): Removed.
51949 (vbe_list_modes_mod_CFLAGS): Likewise.
51950 (vbe_test_mod_SOURCES): Likewise.
51951 (vbe_test_mod_CFLAGS): Likewise.
51952 (vbeinfo_mod_SOURCES): New variable.
51953 (vbeinfo_mod_CFLAGS): Likewise.
51954 (vbetest_mod_SOURCES): Likewise.
51955 (vbetest_mod_CFLAGS): Likewise.
51957 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
51959 * normal/misc.c: New file.
51961 * DISTLIST: Added normal/misc.c.
51963 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
51964 DISK to HOOK. Call HOOK with DISK.
51965 * partmap/apple.c (apple_partition_map_iterate): Likewise.
51966 * partmap/pc.c (pc_partition_map_iterate): Likewise.
51967 * partmap/sun.c (sun_partition_map_iterate): Likewise.
51969 * normal/menu_entry.c (struct screen): Added a new member
51970 "completion_shown".
51971 (completion_buffer): New global variable.
51972 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
51973 (store_completion): New function.
51974 (complete): Likewise.
51975 (clear_completions): Likewise.
51976 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
51977 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
51978 a tab, call complete.
51980 * normal/completion.c (disk_dev): Removed.
51981 (print_simple_completion): Likewise.
51982 (print_partition_completion): Likewise.
51983 (print_func): New global variable.
51984 (add_completion): Do not take the arguments WHAT or PRINT any
51985 longer. Added a new argument TYPE. Instead of printing directly,
51986 call PRINT_FUNC if not NULL.
51987 All callers changed.
51988 (complete_device): Use a local variable DEV instead of
51989 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
51990 (grub_normal_do_completion): Take a new argument HOOK. Do not
51991 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
51992 empty string, return NULL instead.
51993 All callers changed.
51995 * normal/cmdline.c (print_completion): New function.
51997 * kern/partition.c (grub_partition_iterate): Add an argument DISK
51999 All callers changed.
52001 * kern/disk.c (grub_print_partinfo): Removed.
52003 * include/grub/partition.h (struct grub_partition_map): Add a new
52004 argument DISK into HOOK of ITERATE.
52005 (grub_partition_iterate): Add a new argument DISK to HOOK.
52007 * include/grub/normal.h (enum grub_completion_type): New enum.
52008 (grub_completion_type_t): New type.
52009 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52010 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52011 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52012 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52013 (grub_normal_do_completion): Added a new argument HOOK.
52014 (grub_normal_print_device_info): New prototype.
52016 * include/grub/disk.h (grub_print_partinfo): Removed.
52018 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52019 (normal_mod_SOURCES): Likewise.
52020 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52021 (normal_mod_SOURCES): Likewise.
52023 * commands/ls.c (grub_ls_list_disks): Use
52024 grub_normal_print_device_info instead of grub_print_partinfo. Free
52026 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52027 duplicating the code.
52029 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52031 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52032 follow GCS more precisely.
52033 * commands/i386/pc/vbe_test.c: Likewise.
52034 * include/grub/i386/pc/vbe.h: Likewise.
52035 * term/i386/pc/vesafb.c: Likewise.
52036 * video/i386/pc/vbe.c: Likewise.
52038 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52040 * DISTLIST: Added term/i386/pc/vesafb.c
52041 DISTLIST: Added video/i386/pc/vbe.c
52042 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52043 DISTLIST: Added commands/i386/pc/vbe_test.c.
52044 * commands/i386/pc/vbe_list_modes.c: New file.
52045 * commands/i386/pc/vbe_test.c: Likewise.
52046 * term/i386/pc/vesafb.c: Likewise.
52047 * video/i386/pc/vbe.c: Likewise.
52048 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52049 (grub_vbe_probe) Added prototype.
52050 (grub_vbe_set_video_mode) Likewise.
52051 (grub_vbe_get_video_mode) Likewise.
52052 (grub_vbe_get_video_mode_info) Likewise.
52053 (grub_vbe_set_pixel_rgb) Likewise.
52054 (grub_vbe_set_pixel_index) Likewise.
52055 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52056 (pkgdata_MODULES): Added vesafb.mod.
52057 (pkgdata_MODULES): Added vbe_list_modes.mod.
52058 (pkgdata_MODULES): Added vbe_test.mod.
52059 (vbe_mod_SOURCES): Added.
52060 (vbe_mod_CFLAGS): Likewise.
52061 (vesafb_mod_SOURCES): Likewise.
52062 (vesafb_mod_CFLAGS): Likewise.
52063 (vbe_list_modes_mod_SOURCES): Likewise.
52064 (vbe_list_modes_mod_CFLAGS): Likewise.
52065 (vbe_test_mod_SOURCES): Likewise.
52066 (vbe_test_mod_CFLAGS): Likewise.
52068 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52070 * normal/command.c (grub_command_execute): If INTERACTIVE is
52071 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52072 CMDLINE. Disable the pager if INTERACTIVE is true.
52073 All callers are changed.
52075 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52076 before reading a config file.
52077 * normal/main.c (read_config_file): Even if a command is not
52078 found, register it if it is within an entry.
52080 * util/grub-emu.c: Include sys/types.h and unistd.h.
52081 (options): Added --hold.
52082 (struct arguments): Added a new member "hold".
52083 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52085 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52086 cleared by a debugger, if it is not zero.
52088 * include/grub/normal.h (grub_command_execute): Add an argument
52091 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52093 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52095 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52097 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52098 program with another one, because the old one didn't detect a bug
52099 in gcc-3.4. Always use regparm 2, because the new test is still
52100 not enough for gcc-4.0. Someone must investigate a simple test
52101 case which detects a bug in gcc-4.0.
52103 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52105 * DISTLIST: Added normal/completion.c.
52107 * normal/completion.c: New file.
52109 * term/i386/pc/console.c (grub_console_getwh): New function.
52110 (grub_console_term): Assign grub_console_getwh to getwh.
52112 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52113 function is defined in normal/completion.c as
52114 grub_normal_do_completion.
52115 (grub_cmdline_get): Use grub_normal_do_completion instead of
52118 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52119 returns non-zero, otherwise return 0.
52120 (grub_partition_iterate): First, probe the partition map. Then,
52121 call ITERATE only for this partition map.
52123 * kern/misc.c (grub_strncmp): Rewritten.
52125 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52126 returns non-zero. Otherwise return 0.
52128 * include/grub/partition.h (grub_partition_map_iterate): Return
52129 int instead of void.
52131 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52133 * include/grub/misc.h (grub_strncmp): Change the type of N to
52136 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52139 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52140 unsigned explicitly before comparing it with I.
52142 * kern/main.c (grub_env_write_root): Add the attribute unused into
52145 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52146 normal/completion.c.
52147 (normal_mod_SOURCES): Likewise.
52148 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52149 (normal_mod_SOURCES): Likewise.
52151 * normal/command.c (grub_iterate_commands): If ITERATE returns
52152 non-zero, return one immediately.
52154 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52156 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52157 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52159 (grub_vbe_get_controller_info): New function.
52160 (grub_vbe_get_mode_info): Likewise.
52161 (grub_vbe_set_mode): Likewise.
52162 (grub_vbe_get_mode): Likewise.
52163 (grub_vbe_set_memory_window): Likewise.
52164 (grub_vbe_get_memory_window): Likewise.
52165 (grub_vbe_set_scanline_length): Likewise.
52166 (grub_vbe_get_scanline_length): Likewise.
52167 (grub_vbe_set_display_start): Likewise.
52168 (grub_vbe_get_display_start): Likewise.
52169 (grub_vbe_set_palette_data): Likewise.
52170 * include/grub/i386/pc/vbe.h: New file.
52172 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52174 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52175 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52176 * DISTLIST: Likewise.
52177 * kern/ieee1275/of.c: Moved to ...
52178 * kern/ieee1275/ieee1275.c: ... here.
52180 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52182 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52183 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52184 Pass 0 as `end' parameter to grub_strtoul().
52186 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52188 * include/grub/powerpc/ieee1275/console.h: Do not include
52189 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52191 (grub_console_cur_color): Remove i386-specific prototype.
52192 (grub_console_real_putchar): Likewise.
52193 (grub_console_checkkey): Likewise.
52194 (grub_console_getkey): Likewise.
52195 (grub_console_getxy): Likewise.
52196 (grub_console_gotoxy): Likewise.
52197 (grub_console_cls): Likewise.
52198 (grub_console_setcursor): Likewise.
52199 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52200 Include <grub/machine/console.h>.
52201 * term/ieee1275/ofconsole.c: Likewise.
52203 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52205 * Makefile.in (LIBLZO): New variable.
52207 * configure.ac: Check for LZO version 2.
52209 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52210 lzo/lzo1x.h instead of lzo1x.h.
52212 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52215 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52216 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52218 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52219 copying the data from PARTITION to P.
52221 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52223 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52224 negative, unload the module.
52226 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52227 map is "pc_partition_map" but not "pc".
52228 (usage): Fix the description. The options are --boot-image and
52229 --core-image but not --boot-file or --core-file.
52230 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52231 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52234 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52235 --core-file. Specify INSTALL_DEVICE as an argument.
52237 * util/console.c: Include config.h.
52238 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52239 [HAVE_NCURSES_H]: Include ncurses.h.
52240 [HAVE_CURSES_H]: Include curses.h.
52241 [!A_NORMAL] (A_NORMAL): Defined as zero.
52242 [!A_STANDOUT] (A_STANDOUT): Likewise.
52244 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52246 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52248 * configure.ac: Check for curses libraries and headers.
52250 * Makefile.in (LIBCURSES): New variable.
52252 * genmk.rb (Script::rule): Set the executable bits.
52254 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52255 name of the PC partition map is "pc_partition_map" but not "pc".
52257 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52259 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52260 (modules): Likewise.
52261 (usage): Added descriptions for --modules and --grub-probefs.
52262 Handle --modules and --grub-probefs. Save the arguments in MODULES
52263 and GRUB_PROBEFS, respectively.
52264 Auto-detect a filesystem module against GRUBDIR. If the result is
52265 empty and modules are not specified explicitly, abort the
52266 installation. Add the result to MODULES.
52268 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52269 disk/powerpc/ieee1275/ofdisk.c,
52270 include/grub/powerpc/ieee1275/init.h and
52271 term/powerpc/ieee1275/ofconsole.c.
52272 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52273 term/ieee1275/ofconsole.c.
52275 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52277 * COPYING: Upgraded to the latest version. Only the address of the
52278 FSF office has changed.
52280 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52282 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52283 kern/ieee1275.c with kern/ieee1275/of.c.
52285 * kern/ieee1275.c: Moved to ...
52286 * kern/ieee1275/of.c: ... here.
52288 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52290 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52293 * config.guess: Updated to the latest version from gnulib.
52294 * config.sub: Likewise.
52295 * install.sh: Likewise.
52296 * mkinstalldirs: Likewise.
52298 * include/grub/console.h: Removed. This file is arch-specific. Do
52299 not put this in include/grub.
52301 * include/grub/i386/pc/console.h: Resurrected.
52303 * util/console.c: Include grub/machine/console.h instead of
52305 * util/grub-emu.c: Likewise.
52307 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52309 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52312 From Vincent Pelletier <subdino2004@yahoo.fr>
52313 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52314 Redefined to use grub_getwh.
52315 (grub_term): New member named getwh.
52316 (grub_getwh): New prototype.
52317 * kern/term.c (grub_getwh): New function.
52318 * term/i386/pc/console.c (grub_console_getwh): New function.
52319 (grub_console_term): New member `getwh'.
52320 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52321 (grub_vga_term): New member `getwh'.
52322 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52324 (grub_ofconsole_getw): New function.
52325 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52326 (grub_ofconsole_term): New field named getwh and new initial
52329 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52331 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52332 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52333 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52334 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52335 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52336 of <grub/machine/ieee1275.h>.
52337 * commands/ieee1275/reboot.c: Likewise.
52338 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52339 * kern/ieee1275.c: ... to here. All users updated. Change all
52340 parameter structs to use new type `grub_ieee1275_cell_t'.
52341 * term/powerpc/ieee1275/ofconsole.c: Move ...
52342 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52343 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52344 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52345 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52347 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52348 Remove unused prototypes. All users updated.
52349 * include/grub/powerpc/ieee1275/console.h: Removed.
52350 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52351 `grub_ieee1275_cell_t'.
52352 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52353 Cast comparisons with -1 to the correct type.
52354 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52355 type to match `grub_ieee1275_entry_fn'.
52357 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52359 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52361 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52362 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52364 (grub_probefs_SOURCES): New variable.
52366 * util/i386/pc/grub-probefs.c: New file.
52368 * util/i386/pc/grub-setup.c (main): Call
52369 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52370 grub_hfs_init and grub_jfs_init to initialize the system. Call
52371 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52372 grub_pc_partition_map_fini to finish the system.
52374 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52376 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52378 (grub_multiboot_load_elf32): Likewise.
52379 (grub_multiboot_is_elf64): Likewise.
52380 (grub_multiboot_load_elf64): Likewise.
52381 (grub_multiboot_load_elf): Likewise.
52382 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52383 an ELF32 or ELF64 file.
52384 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52386 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52387 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52388 NULL before calling FS->LABEL.
52389 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52390 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52391 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52392 before calling FS->LABEL.
52394 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52396 * util/i386/pc/grub-install.in (datadir): New variable.
52398 (pkgdatadir): New variable.
52399 (pkglibdir): Removed.
52401 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52403 * DISTLIST: Added util/i386/pc/grub-install.in.
52405 * util/i386/pc/grub-install.in: New file.
52407 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52408 (grub_install_SOURCES): Likewise.
52410 * genmk.rb: Added support for scripts.
52411 (Script): New class.
52412 (scripts): New variable.
52414 * Makefile.in (install-local): Install sbin_SCRIPTS by
52416 (uninstall): Remove sbin_SCRIPTS.
52418 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52419 device, try to get a GRUB device by
52420 grub_util_biosdisk_get_grub_dev.
52423 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52424 description for --device-map.
52426 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52428 Change the semantics of variable hooks. They now return strings
52429 instead of error values.
52431 * util/i386/pc/grub-setup.c: Include grub/env.h.
52432 (setup): Use grub_device_set_root instead of grub_env_set.
52434 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52435 grub_env_get instead of grub_device_set_root and
52436 grub_device_get_root, respectively.
52438 * kern/main.c (grub_env_write_root): New function.
52439 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52440 grub_env_set instead of grub_device_set_root.
52442 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52444 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52445 rather than calling ENV->WRITE_HOOK afterwards.
52446 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52447 passing a pointer of a pointer.
52448 (grub_register_variable_hook): Change the types of "read_hook" and
52449 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52451 Allocate the default empty string on the heap, because this string
52452 may be freed later.
52454 * kern/device.c: Include grub/env.h.
52455 (grub_device_set_root): Removed.
52456 (grub_device_get_root): Likewise.
52457 (grub_device_open): Use grub_env_get instead of
52458 grub_device_get_root.
52460 * include/grub/env.h (grub_env_read_hook_t): New type.
52461 (grub_env_write_hook_t): Likewise.
52462 (grub_env_var): Change the types of "read_hook" and "write_hook"
52463 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52464 (grub_register_variable_hook): Likewise.
52466 * include/grub/device.h (grub_device_set_root): Removed.
52467 (grub_device_set_root): Likewise.
52469 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52470 make sure that DIRNAME terminates with '/', so that
52471 grub_fat_find_dir will fail if PATH is not a directory.
52473 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52475 Use the qualifier auto for print_files and print_files_long.
52476 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52478 Put a newline only if there is no error.
52479 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52482 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52484 * kern/partition.c (grub_partition_probe): Initialize PART to
52485 NULL. Otherwise, when no partition map is registered, this returns
52488 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52490 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52491 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52494 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52496 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52497 information on each device, if it does not have partitions. Print
52498 "Device" instead of "Disk", because this function is not specific
52501 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52502 static to ensure that it is put on the memory rather than a
52505 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52507 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52508 (grub_cat_init): Likewise.
52509 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52510 (options): Likewise.
52511 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52512 (grub_configfile_init): Likewise.
52513 * font/manager.c (GRUB_MOD_INIT): Likewise.
52514 * commands/help.c (GRUB_MOD_INIT): Likewise.
52515 (grub_help_init): Likewise.
52516 * normal/command.c (grub_command_init): Likewise.
52517 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52518 * disk/loopback.c (grub_loop_init): Likewise.
52519 (GRUB_MOD_INIT): Likewise.
52520 * commands/ls.c (grub_ls_init): Likewise.
52521 (GRUB_MOD_INIT): Likewise.
52522 (options): Likewise.
52523 * commands/boot.c (grub_boot_init): Likewise.
52524 (GRUB_MOD_INIT): Likewise.
52525 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52526 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52527 (GRUB_MOD_INIT): Likewise.
52528 * commands/cmp.c (grub_cmp_init): Likewise.
52529 (GRUB_MOD_INIT): Likewise.
52531 * normal/arg.c: Use <> instead of "" to include header files.
52532 (SHORT_ARG_HELP): New macro.
52533 (SHORT_ARG_USAGE): Likewise.
52534 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52535 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52537 (find_short): Check if C is 'h' or 'u' explicitly.
52538 (grub_arg_show_help): Use space characters instead of tabs. Treat
52539 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52540 are shown with --help and --usage only if they are not used for
52541 the command itself.
52542 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52545 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52546 const into "longarg". Change the type of "shortarg" to int.
52548 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52550 * boot/i386/pc/boot.S (boot_drive_check): New label.
52552 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52555 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52556 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52558 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52560 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52561 When turning off Gate A20, skip the check and return immediately,
52562 because this is not fatal usually.
52564 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52566 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52567 be 0x7C00 instead of 0x8000.
52569 * boot/i386/pc/pxeboot.S: Rewritten.
52571 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52573 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52576 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52578 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52579 robustness. This routine now supports a BIOS call and System
52580 Control Port A to modify the gate A20.
52582 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52583 Increased to 0x440.
52585 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52587 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52588 device path and resulting ihandle.
52589 (grub_ofdisk_close): dprintf the ihandle being closed.
52590 (grub_ofdisk_read): dprintf function parameters.
52591 * kern/mm.c (grub_mm_init_region): Likewise.
52592 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52593 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52594 size, and boot arguments.
52595 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52596 before loading into memory.
52597 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52598 before loading into memory.
52600 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52602 * kern/mm.c: Added much documentation.
52603 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52604 8, set to 5 instead of 8.
52606 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52608 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52610 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52611 (grub_mkdevicemap_SOURCES): New variable.
52613 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52614 lib/device.c of GRUB Legacy.
52616 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52618 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52619 instead of PATH is NULL.
52621 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52623 * commands/cmp.c (BUFFER_SIZE): New macro.
52624 (grub_cmd_cmp): Close the right file at the right time. Compare
52625 only data just read. Don't report files of different size as
52626 identical. Dynamically allocate buffers. Move variable
52627 declarations at the beginning of function.
52629 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52631 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52634 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52636 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52637 when backspace is pressed at beginning of line.
52639 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52641 * DISTLIST: Added genfslist.sh.
52643 * normal/main.c (fs_module_list): New variable.
52644 (autoload_fs_module): New function.
52645 (read_fs_list): Likewise.
52646 (grub_normal_execute): Call read_fs_list.
52648 * kern/fs.c (grub_fs_autoload_hook): New variable.
52649 (grub_fs_probe): Added support for auto-loading.
52651 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52652 (grub_fs_module_list_t): New type.
52654 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52655 (grub_fs_autoload_hook): New prototype.
52657 * genfslist.sh: New file.
52659 * genmk.rb: Added a rule to generate a filesystem list.
52661 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52663 * configure.ac: Fix the test for cross-compiling.
52665 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52666 define GRUB_UTIL anymore.
52668 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52669 so this function works on other systems than just big endian.
52670 (load_modules): Likewise.
52671 (add_segments): Likewise.
52673 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52675 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52676 contains `l' modifier, get a long from va_arg().
52678 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52680 * kern/mm.c (grub_free): If the next free block which is being
52681 merged is the first free block, set the first block to the block
52683 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52685 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52687 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52688 `grub_ieee1275_chosen'.
52690 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52692 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52693 (grub_ieee1275_chosen): New variable.
52694 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52696 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52697 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52698 Rename first argument to `phandle' for consistency.
52699 (grub_ieee1275_get_property_length): Likewise.
52700 (grub_ieee1275_next_property): Likewise. Change type of first argument
52701 to grub_ieee1275_phandle_t.
52702 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52703 Move export next to declaration.
52704 (grub_ieee1275_chosen): New variable.
52705 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52706 Correct cosmetic typo.
52707 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52708 `grub_ieee1275_chosen'.
52709 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52710 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52711 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52712 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52713 `grub_ieee1275_chosen'.
52715 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52717 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52719 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52720 /chosen/bootargs as "variable=value" pairs.
52722 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52724 * include/grub/misc.h (grub_dprintf): New macro.
52725 (grub_real_dprintf): New prototype.
52726 (grub_strword): Likewise.
52727 (grub_iswordseparator): Likewise.
52728 * kern/misc.c (grub_real_dprintf): New function.
52729 (grub_strword): Likewise.
52730 (grub_iswordseparator): Likewise.
52732 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52734 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52735 (roundup): Remove macro.
52736 (grub_ieee1275_flags): Make static.
52737 (grub_ieee1275_realmode): Remove.
52738 (grub_ieee1275_test_flag): New function.
52739 (grub_ieee1275_set_flag): Likewise.
52740 (find_options): Rename to `grub_ieee1275_find_options'; update
52741 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52742 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52743 (cmain): New prototype.
52744 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52745 `grub_ieee1275_flags' directly.
52746 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52747 machine/biosdisk.h.
52748 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52749 Don't include grub/machine/init.h.
52750 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52751 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52753 (grub_ieee1275_realmode): Likewise.
52754 (grub_ieee1275_flag): New enum.
52755 (grub_ieee1275_test_flag): New prototype.
52756 (grub_ieee1275_set_flag): New prototype.
52757 * include/grub/powerpc/ieee1275/init.h: Remove file.
52758 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52759 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52760 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52761 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52763 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52764 `grub_ieee1275_test_flag'.
52765 (grub_ieee1275_encode_devname): Likewise.
52767 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52769 * include/grub/powerpc/ieee1275/ieee1275.h
52770 (grub_ieee1275_encode_devname): New prototype.
52771 (grub_ieee1275_get_filename): Likewise.
52772 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52774 (grub_set_prefix): Likewise.
52775 (grub_machine_init): Call grub_set_prefix.
52776 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52777 (grub_parse_type): New enum.
52778 (grub_ieee1275_get_devargs): New function.
52779 (grub_ieee1275_get_devname): Likewise.
52780 (grub_ieee1275_parse_args): Likewise.
52781 (grub_ieee1275_get_filename): Likewise.
52782 (grub_ieee1275_encode_devname): Likewise.
52784 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52786 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52787 `grub_loader_unset'.
52789 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52791 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52792 instead of grub_ieee1275_interpret.
52793 (grub_halt_init): New function.
52794 (grub_halt_fini): Likewise.
52795 (GRUB_MOD_INIT): Correct message grammar.
52796 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52797 instead of grub_ieee1275_interpret.
52798 (grub_reboot_init): New function.
52799 (grub_reboot_fini): Likewise.
52800 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52801 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52802 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52803 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52804 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52806 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52808 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52810 (grub_halt): Likewise.
52811 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52812 (cmain): Remove __attribute__((unused)).
52813 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52814 (grub_heap_len): Likewise.
52815 (grub_machine_fini): New function.
52816 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52817 (grub_halt): Likewise.
52818 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52820 * util/powerpc/ieee1275/misc.c: New file.
52822 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52824 * DISTLIST: New file.
52825 * gendistlist.sh: Likewise.
52827 * Makefile.in (COMMON_DISTFILES): Removed.
52828 (BOOT_DISTFILES): Likewise.
52829 (CONF_DISTFILES): Likewise.
52830 (DISK_DISTFILES): Likewise.
52831 (FS_DISTFILES): Likewise.
52832 (INCLUDE_DISTFILES): Likewise.
52833 (KERN_DISTFILES): Likewise.
52834 (LOADER_DISTFILES): Likewise.
52835 (TERM_DISTFILES): Likewise.
52836 (UTIL_DISTFILES): Likewise.
52837 (DISTFILES): Likewise.
52838 (uninstall): Uninstall files in $(pkgdata_DATA).
52839 (DISTLIST): New target.
52840 (distdir): Use the contents of the file DISTLIST to get a list of
52843 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52845 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52846 descriptor. This is ported from GRUB Legacy.
52848 * gencmdlist.sh: Added an extra semicolon to make it work with
52849 old sed versions. Reported by Robert Bihlmeyer
52850 <robbe@orcus.priv.at>.
52852 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
52854 Automatic loading of commands is supported.
52856 * normal/main.c (read_command_list): New function.
52857 (grub_normal_execute): Call read_command_list.
52859 * normal/command.c (grub_register_command): Return zero or CMD.
52860 Allocate CMD->NAME from the heap.
52861 Initialize CMD->MODULE_NAME to zero.
52862 Find the same name as well. If the same command is found and it is
52863 a dummy command, overwrite members. If it is not a dummy command,
52865 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
52866 (grub_command_find): If a dummy command is found, load a module
52867 and retry to find a command only once.
52869 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
52870 make sure that each command is loaded.
52872 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
52874 (struct grub_command): Remove const from the member `name'.
52875 Add a new member `module_name'.
52876 (grub_register_command): Return grub_command_t.
52878 * commands/help.c (grub_cmd_help): Call grub_command_find to make
52879 sure that each command is loaded.
52881 * genmk.rb (PModule::rule): Specify a module name without the
52882 suffix ".mod" to gencmdlist.sh.
52884 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52886 * gencmdlist.sh: New file.
52888 * genmk.rb (PModule::rule): Generate a rule for a command list.
52890 Generate command.lst from $(COMMANDFILES).
52892 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
52893 (DATA): Added $(pkgdata_DATA).
52894 (install-local): Install files in $(pkgdata_DATA).
52896 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52898 * term/i386/pc/vga.c (debug_command): Removed.
52899 (GRUB_MOD_INIT): Do not register the command "debug".
52901 From Hollis Blanchard:
52902 * commands/configfile.c: New file.
52903 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
52904 commands/configfile.c.
52905 (pkgdata_MODULES): Added configfile.mod.
52906 (configfile_mod_SOURCES): New variable.
52907 (configfile_mod_CFLAGS): Likewise.
52908 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52909 commands/configfile.c.
52910 (pkgdata_MODULES): Added configfile.mod.
52911 (configfile_mod_SOURCES): New variable.
52912 (configfile_mod_CFLAGS): Likewise.
52913 * util/grub-emu.c (main): Call grub_configfile_init and
52914 grub_configfile_fini.
52915 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
52917 [GRUB_UTIL] (grub_configfile_fini): Likewise.
52919 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52921 * normal/arg.c (grub_arg_show_help): Do not show the bug report
52924 * commands/help.c (grub_cmd_help): Do not print newlines after
52925 the last command in print_command_help.
52927 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
52929 * commands/default.h: New file.
52930 * commands/timeout.h: Likewise.
52931 * normal/context.c: Likewise.
52933 * util/misc.c: Do not include sys/times.h.
52934 Include sys/time.h and grub/machine/time.h.
52935 (grub_get_rtc): Rewritten with gettimeofday.
52937 * util/grub-emu.c (main): Call grub_default_init and
52938 grub_timeout_init before grub_normal_init, and call
52939 grub_timeout_fini and grub_default_fini after grub_main.
52941 * util/console.c (grub_ncurses_checkkey): Return the read
52944 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
52947 * normal/main.c (read_config_file): Push MENU. If this fails,
52948 print an error and wait for a user input.
52949 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
52950 If a menu is empty or an error occurs, pop MENU.
52951 (grub_normal_execute): Pop and free MENU after grub_menu_run
52954 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
52956 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
52958 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52960 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
52962 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
52965 * include/grub/normal.h (struct grub_menu_list): New struct.
52966 (grub_menu_list_t): New type.
52967 (struct grub_context): New struct.
52968 (grub_context_t): New type.
52969 (grub_register_command): Got rid of EXPORT_FUNC.
52970 (grub_unregister_command): Likewise.
52971 (grub_context_get): New prototype.
52972 (grub_context_get_current_menu): Likewise.
52973 (grub_context_push_menu): Likewise.
52974 (grub_context_pop_menu): Likewise.
52975 [GRUB_UTIL] (grub_default_init): Likewise.
52976 [GRUB_UTIL] (grub_default_fini): Likewise.
52977 [GRUB_UTIL] (grub_timeout_init): Likewise.
52978 [GRUB_UTIL] (grub_timeout_fini): Likewise.
52980 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
52981 commands/timeout.c and normal/context.c.
52982 (pkgdata_MODULES): Added default.mod and timeout.mod.
52983 (normal_mod_SOURCES): Added normal/context.c.
52984 (default_mod_SOURCES): New variable.
52985 (default_mod_CFLAGS): Likewise.
52986 (timeout_mod_SOURCES): Likewise.
52987 (timeout_mod_CFLAGS): Likewise.
52988 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
52990 (pkgdata_MODULES): Added default.mod and timeout.mod.
52991 (normal_mod_SOURCES): Added normal/context.c.
52992 (default_mod_SOURCES): New variable.
52993 (default_mod_CFLAGS): Likewise.
52994 (timeout_mod_SOURCES): Likewise.
52995 (timeout_mod_CFLAGS): Likewise.
52997 * Makefile.in (all-local): Added $(MKFILES).
52999 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53001 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53002 (grub_emu_SOURCES): Likewise.
53003 (pkgdata_MODULES): Add `sun.mod'.
53004 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53005 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53007 (pkgdata_MODULES): Add `sun.mod'.
53008 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53009 * include/grub/partition.h (grub_sun_partition_map_init): New
53011 (grub_sun_partition_map_fini): Likewise.
53012 * partmap/sun.c: New file.
53013 * util/grub-emu.c (main): Initialize and de-initialize the sun
53014 partitionmap support.
53016 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53018 This implements an Emacs-like menu entry editor.
53020 * normal/menu_entry.c: New file.
53022 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53023 characters to ASCII.
53024 (saved_char): New variable.
53025 (grub_ncurses_checkkey): Rewritten completely.
53026 (grub_ncurses_getkey): Likewise.
53027 (grub_ncurses_init): Call raw instead of cbreak.
53029 * normal/menu.c (print_entry): Do not put a space.
53030 (init_page): Renamed to ...
53031 (grub_menu_init_page): ... this. All callers changed.
53032 (edit_menu_entry): Removed.
53033 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53035 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53037 * kern/misc.c (grub_vprintf): Call grub_refresh.
53039 * normal/menu.c (DISP_LEFT): Renamed to ...
53040 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53041 * normal/menu.c (DISP_UP): Renamed to ...
53042 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53043 * normal/menu.c (DISP_RIGHT): Renamed to ...
53044 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53045 * normal/menu.c (DISP_DOWN): Renamed to ...
53046 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53047 * normal/menu.c (DISP_HLINE): Renamed to ...
53048 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53049 * normal/menu.c (DISP_VLINE): Renamed to ...
53050 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53051 * normal/menu.c (DISP_UL): Renamed to ...
53052 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53053 * normal/menu.c (DISP_UR): Renamed to ...
53054 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53055 * normal/menu.c (DISP_LL): Renamed to ...
53056 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53057 * normal/menu.c (DISP_LR): Renamed to ...
53058 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53059 * normal/menu.c (TERM_WIDTH): Renamed to ...
53060 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53061 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53062 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53063 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53064 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53065 * normal/menu.c (TERM_MARGIN): Renamed to ...
53066 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53067 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53068 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53069 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53070 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53071 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53072 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53073 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53074 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53075 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53076 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53077 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53078 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53079 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53080 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53081 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53082 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53083 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53084 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53085 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53086 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53087 All callers changed.
53089 * include/grub/normal.h: New prototype.
53091 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53092 normal/menu_entry.c.
53093 (normal_mod_SOURCES): Likewise.
53094 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53095 (normal_mod_SOURCES): Likewise.
53097 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53099 * include/grub/normal.h (grub_halt_init): New prototype.
53100 (grub_halt_fini): Likewise.
53101 (grub_reboot_init): Likewise.
53102 (grub_reboot_fini): Likewise.
53104 * util/grub-emu.c: Include signal.h.
53105 (main_env): New global variable.
53106 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53108 (grub_machine_fini): New function.
53109 (main): Call grub_halt_init and grub_reboot_init before
53110 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53111 Call setjmp with MAIN_ENV to go back afterwards.
53112 Call grub_machine_fini right before return.
53114 * include/grub/util/misc.h: Include setjmp.h.
53115 (main_env): New prototype.
53117 * include/grub/kernel.h (grub_machine_fini): New prototype.
53118 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53119 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53121 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53122 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53123 * term/i386/pc/console.c (grub_console_fini): Likewise.
53125 * util/i386/pc/misc.c: New file.
53127 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53128 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53129 commands/i386/pc/reboot.c.
53131 2005-02-14 Guillem Jover <guillem@hadrons.org>
53133 * include/grub/dl.h (grub_dl_check_header): New prototype.
53134 (grub_arch_dl_check_header): Change return type to grub_err_t,
53135 remove size parameter and export function. Update all callers.
53136 * kern/dl.c (grub_dl_check_header): New function.
53137 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53138 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53139 are inside the core.
53140 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53141 independent ELF header checks.
53142 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53143 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53144 `grub_dl_check_header' instead of explicit checks. Check for the
53146 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53147 `grub_dl_check_header' instead of explicit checks. Remove arch
53148 specific ELF header checks.
53150 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53153 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53155 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53156 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53158 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53160 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53161 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53162 (part_map_iterate): Clear `grub_errno' and return 0 if
53163 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53164 * partmap/amiga.c (amiga_partition_map_iterate): Return
53165 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53166 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53168 2005-02-01 Guillem Jover <guillem@hadrons.org>
53170 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53173 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53175 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53177 (grub_rescue_cmd_linux): New prototype.
53178 (grub_rescue_cmd_initrd): Likewise.
53179 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53181 (grub_linux_release_mem): Release the memory for the initrd.
53182 (grub_load_linux): Renamed from this...
53183 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53184 Changed `entry' not to be static. Loop over memory regions to
53185 find another one when the default fails.
53186 (grub_rescue_cmd_initrd): New function.
53187 (grub_linux_init): Remove function.
53188 (grub_linux_fini): Likewise.
53189 (GRUB_MOD_INIT): Register `initrd'.
53190 (GRUB_MOD_FINI): Unregister `initrd'.
53191 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53193 (grub_linux_normal_fini): Likewise.
53194 (GRUB_MOD_INIT): Register `initrd'.
53195 (GRUB_MOD_FINI): Unregister `initrd'.
53197 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53199 * commands/help.c: New file.
53200 * normal/arg.c (show_help): Renamed to...
53201 (grub_arg_show_help): ... this.
53202 * commands/i386/pc/halt.c: New file.
53203 * commands/i386/pc/reboot.c: Likewise.
53204 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53205 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53206 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53207 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53209 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53211 (pkgdata_MODULES): Add `help.mod'.
53212 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53213 * grub/i386/pc/init.h (grub_reboot): New prototype.
53214 (grub_halt): Likewise.
53215 * include/grub/normal.h (grub_arg_show_help): New prototype.
53216 (grub_help_init): Likewise.
53217 (grub_help_fini): Likewise.
53218 * util/grub-emu.c (main): Initialize and deinitialize the help
53221 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53223 * normal/command.c (grub_command_init): Fixed the description of
53224 the `set' and `unset' commands.
53226 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53228 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53230 * commands/ieee1275/halt.c: New file.
53231 * commands/ieee1275/reboot.c: Likewise.
53232 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53233 `__attribute__ ((unused))'. Some GCS related fixed.
53234 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53235 (grub_suspend_fini): Likewise.
53236 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53238 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53239 (halt_mod_CFLAGS): New variables.
53240 * include/grub/powerpc/ieee1275/ieee1275.h
53241 (grub_ieee1275_interpret): New prototype.
53243 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53245 * include/grub/misc.h (memmove): New prototype.
53246 (memcpy): Likewise.
53248 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53250 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53251 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53253 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53255 * kern/misc.c (grub_strndup): Function rewritten.
53257 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53259 * normal/menu.c (TERM_WIDTH): Macro redefined.
53260 (TERM_TOP_BORDER_Y): Likewise.
53261 (draw_border): Replaced while-loop by a for-loop. Make the number
53262 of lines consistent with the number of lines displayed in
53263 print_entries. Added a margin below the rectangle.
53264 (print_entry): Make the entry fit in the rectangle.
53265 (print_entries): Display the scroll arrows next to the right
53268 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53270 * fs/minix.c (grub_minix_find_file): Reserve more space for
53271 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53272 `grub_strncpy' to copy `path' into it.
53274 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53276 Add the loopback device, a device via which files can be accessed
53279 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53280 (pkgdata_MODULES): Add loopback.mod.
53281 (loopback_mod_SOURCES): New variable.
53282 (loopback_mod_CFLAGS): Likewise.
53283 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53285 (pkgdata_MODULES): Add loopback.mod.
53286 (loopback_mod_SOURCES): New variable.
53287 (loopback_mod_CFLAGS): Likewise.
53288 * disk/loopback.c: new file.
53289 * include/grub/normal.h (grub_loop_init): New prototype.
53290 (grub_loop_fini): New prototype.
53291 * util/grub-emu.c (main): Initialize and de-initialize loopback
53293 * include/grub/disk.h (grub_disk_dev_id): Add
53294 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53296 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53298 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53300 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53301 (suspend_mod_SOURCES): New variable.
53302 (suspend_mod_CFLAGS): Likewise.
53303 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53305 * commands/ieee1275/suspend.c: New file.
53307 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53309 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53310 ((unused))' to `__attribute__ ((used))'.
53311 (GRUB_MOD_FINI): Likewise.
53312 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53313 * genmk.rb (PModule): Assign space to common symbols when linking
53316 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53318 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53319 `unsigned' arguments to `grub_size_t'.
53320 (grub_malloc): Likewise.
53321 (grub_realloc): Likewise.
53322 (grub_memalign): Likewise.
53323 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53324 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53325 * util/misc.c (grub_malloc): Likewise.
53326 (grub_realloc): Likewise.
53327 * kern/mm.c (get_header_from_pointer): Change the casts to
53328 `unsigned' into a cast to `grub_size_t'.
53330 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53331 point to `currnode' when `currnode' is changed.
53333 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53334 Schottelius <nico-linux@schottelius.org>.
53336 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53338 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53339 (note_path): Remove variable.
53340 (GRUB_IEEE1275_NOTE_NAME): New macro.
53341 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53342 (grub_ieee1275_note_hdr): New structure.
53343 (grub_ieee1275_note_desc): Likewise.
53344 (grub_ieee1275_note): Likewise.
53345 (load_note): Remove `dir' argument. All callers updated. Remove
53346 `note_img' and `path'. Do not load a file from `note_path'.
53347 Initialize a struct grub_ieee1275_note and write that to `out'.
53348 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53350 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53352 * util/misc.c (grub_util_read_image): Revert last change. It
53353 called `grub_util_read_at', which seeks from the beginning of the
53356 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53358 * TODO: Add note about endianness in grub-mkimage.
53359 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53361 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53362 (grub_mkimage_SOURCES): New target.
53363 * include/grub/kernel.h (grub_start_addr): Remove variable.
53364 (grub_end_addr): Likewise.
53365 (grub_total_module_size): Likewise.
53366 (grub_kernel_image_size): Likewise.
53367 (GRUB_MODULE_MAGIC): New constant.
53368 (grub_module_info): New structure.
53369 (grub_arch_modules_addr): New prototype.
53370 (grub_get_end_addr): Remove prototype.
53371 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53372 * include/grub/powerpc/ieee1275/kernel.h: New file.
53373 * include/grub/util/misc.h (grub_util_get_fp_size): New
53375 (grub_util_read_at): Likewise.
53376 (grub_util_write_image_at): Likewise.
53377 * kern/main.c (grub_get_end_addr): Remove function.
53378 (grub_load_modules): Call grub_arch_modules_addr instead of using
53379 grub_end_addr. Look for a grub_module_info struct in memory. Use
53380 the grub_module_info fields instead of calling grub_get_end_addr
53381 as loop conditions. Move grub_add_unused_region code here.
53382 (grub_add_unused_region): Remove function.
53383 * kern/i386/pc/init.c: Include grub/cache.h.
53384 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53385 one call to add_mem_region.
53386 (grub_arch_modules_addr): New function.
53387 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53388 (grub_total_module_size): Likewise.
53389 Include grub/machine/kernel.h.
53390 (grub_arch_modules_addr): New function.
53391 * util/grub-emu.c (grub_end_addr): Remove variable.
53392 (grub_total_module_size): Likewise.
53393 (grub_arch_modules_addr): New function.
53394 * util/misc.c: Include unistd.h.
53395 (grub_util_get_fp_size): New function.
53396 (grub_util_read_at): Likewise.
53397 (grub_util_write_image_at): Likewise.
53398 (grub_util_read_image): Call grub_util_read_at.
53399 (grub_util_write_image): Call grub_util_write_image_at.
53400 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53401 additional memory in kernel_img for a struct grub_module_info.
53402 Fill in that grub_module_info.
53403 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53405 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53407 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53409 * include/grub/powerpc/ieee1275/ieee1275.h
53410 (grub_ieee1275_milliseconds): New prototype.
53411 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53413 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53414 grub_ieee1275_milliseconds.
53416 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53418 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53420 (find_options): New function.
53421 (cmain): Call find_options.
53422 * include/grub/powerpc/ieee1275/ieee1275.h
53423 (grub_ieee1275_realmode): New extern variable.
53424 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53425 grub_map if grub_ieee1275_realmode is false.
53427 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53429 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53430 lines are inserted and make it work like readline. Reported by
53431 Vincent Pelletier <subdino2004@yahoo.fr>.
53433 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53435 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53437 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53438 `kern/powerpc/cache.S'.
53440 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53442 * genmk.rb: Handle the `Program' class in the main loop. Written
53443 by Johan Rydberg <jrydberg@gnu.org>.
53444 (Program): New class.
53445 (programs): New variable.
53446 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53447 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53448 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53449 (help_arch): Function removed.
53450 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53451 `powerpc/libgcc.h' and `loader.h'.
53452 (pkgdata_PROGRAMS): New variable.
53453 (sbin_UTILITIES): Variable removed.
53454 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53455 (grubof_SOURCES): Variable re-defined so it only includes the
53456 core functionality.
53457 (grubof_CFLAGS): Remove `-DGRUBOF'.
53458 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53459 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53460 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53461 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53462 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53463 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53464 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53465 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53466 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53467 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53468 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53469 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53470 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53471 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53472 (pc_mod_CFLAGS): New variables.
53473 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53474 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53475 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53476 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53478 * include/grub/i386/pc/init.h (grub_os_area_addr)
53479 (rub_os_area_size): ... to here.
53480 * include/grub/powerpc/ieee1275/ieee1275.h
53481 (grub_ieee1275_entry_fn): Export symbol.
53482 * include/grub/powerpc/ieee1275/init.h: New file.
53483 * include/grub/powerpc/libgcc.h: Likewise.
53484 * include/grub/cache.h: Likewise.
53485 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53486 <hollis@penguinppc.org>.
53487 * kern/dl.c: Include <grub/cache.h>.
53488 (grub_dl_flush_cache): New function.
53489 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53491 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53492 (grub_console_init): Removed prototypes.
53493 (grub_machine_init): Don't initialize the modules anymore.
53494 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53496 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53497 Macro undef removed.
53498 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53499 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53500 relocation `R_PPC_REL32'. Return an error when the relocation is
53502 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53503 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53504 * util/misc.c (grub_arch_sync_caches): Likewise.
53506 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53508 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53509 `symlist.c', add `grubof_symlist.c'.
53510 (symlist.c): Variable removed.
53511 (grubof_HEADERS): Variable added.
53512 (grubof_symlist.c): New target.
53513 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53514 `kernel_img_HEADERS'.
53515 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53516 * kern/powerpc/dl.c: New file.
53517 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53519 (grub_arch_dl_relocate_symbols): Likewise.
53520 (grub_register_exported_symbols): Likewise.
53522 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53524 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53525 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53526 to fail instead. Reported by Vincent Pelletier
53527 <subdino2004@yahoo.fr>.
53529 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53530 it is not allocated. Reported by Vincent Pelletier
53531 <subdino2004@yahoo.fr>.
53533 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53534 output so the output looks better.
53536 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53538 Modulize the partition map support and add support for the amiga
53541 * commands/ls.c: Include <grub/partition.h> instead of
53542 <grub/machine/partition.h>.
53543 * kern/disk.c: Likewise.
53544 * kern/rescue.c: Likewise.
53545 * loader/i386/pc/chainloader.c: Likewise.
53546 * normal/cmdline.c: Likewise.
53547 * kern/powerpc/ieee1275/init.c: Likewise.
53548 (grub_machine_init): Call `grub_pc_partition_map_init',
53549 `grub_amiga_partition_map_init' and
53550 `grub_apple_partition_map_init'.
53551 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53552 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53553 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53554 `partition.h' and `pc_partition.h'.
53555 (grub_setup_SOURCES): Remove
53556 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53557 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53558 (grub_emu_SOURCES): Likewise.
53559 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53560 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53561 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53562 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53563 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53564 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53565 (grubof_SOURCES): Likewise.
53566 * disk/i386/pc/partition.c: File removed.
53567 * disk/powerpc/ieee1275/partition.c: Likewise.
53568 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53569 * include/grub/i386/pc/partition.h: Likewise.
53570 * kern/partition.c: New file.
53571 * partmap/amiga.c: Likewise.
53572 * partmap/apple.c: Likewise.
53573 * partmap/pc.c: Likewise.
53574 * include/grub/partition.h: Likewise..
53575 * include/grub/pc_partition.h: Likewise.
53576 * util/grub-emu.c: Include <grub/partition.h> instead of
53577 <grub/machine/partition.h>.
53578 (main): Call `grub_pc_partition_map_init',
53579 `grub_amiga_partition_map_init' and
53580 `grub_apple_partition_map_init' and deinitialize afterwards.
53581 * util/i386/pc/biosdisk.c: Include `#include
53582 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53583 `<grub/machine/partition.h>'.
53584 * util/i386/pc/grub-setup.c: Likewise.
53585 * util/i386/pc/biosdisk.c: Likewise.
53586 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53587 partition information in case of a PC partition.
53588 * util/i386/pc/grub-setup.c: Include `#include
53589 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53590 `<grub/machine/partition.h>'.
53591 (setup): Only access the PC specific partition information in case
53594 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53596 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53597 (grub_longjmp): Likewise.
53598 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53600 * normal/powerpc/setjmp.S: New file.
53601 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53602 `normal/powerpc/setjmp.S'.
53603 (grubof_CFLAGS): Add `-DGRUBOF'.
53604 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53605 [GRUB_UTIL && !GRUBOF].
53607 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53609 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53610 property named `name'. Correctly handle the error returned by
53611 `grub_ieee1275_finddevice' if a device can not be opened.
53613 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53615 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53616 `actual' for negativity.
53617 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53620 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53622 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53623 (PAGE_OFFSET): New macro.
53624 (CRTC_ADDR_PORT): Likewise.
53625 (CRTC_DATA_PORT): Likewise.
53626 (START_ADDR_HIGH_REGISTER): Likewise.
53627 (START_ADDR_LOW_REGISTER): Likewise.
53628 (GRAPHICS_ADDR_PORT): Likewise.
53629 (GRAPHICS_DATA_PORT): Likewise.
53630 (READ_MAP_REGISTER): Likewise.
53631 (INPUT_STATUS1_REGISTER): Likewise.
53632 (INPUT_STATUS1_VERTR_BIT): Likewise.
53633 (page): New variable.
53634 (wait_vretrace): New function.
53635 (set_read_map): Likewise.
53636 (set_start_address): Likewise.
53637 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53639 (check_vga_mem): Take the page into account.
53640 (write_char): Likewise.
53641 (write_cursor): Likewise.
53642 (scroll_up): Likewise. Copy the page to the page that is not
53643 shown and switch between both pages.
53644 (grub_vga_putchar): Fix off by one error.
53645 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53648 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53650 Add support for iso9660 (including rockridge).
53652 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53653 (iso9660_mod_SOURCES): New variable.
53654 (iso9660_mod_CFLAGS): Likewise.
53655 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53656 * include/grub/fs.h (grub_iso9660_init): New prototype.
53657 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53658 * fs/iso9660.c: New file.
53660 * include/grub/misc.h (grub_strncat): New prototype.
53661 * kern/misc.c (grub_strncat): New function.
53663 * fs/hfs.c (grub_hfs_mount): Translate the error
53664 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53665 * fs/jfs.c (grub_jfs_mount): Likewise.
53666 * fs/ufs.c (grub_ufs_mount): Likewise.
53668 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53670 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53671 which initialized BAT registers.
53672 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53673 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53675 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53676 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53678 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53679 (grub_mapclaim): Likewise.
53680 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53681 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53684 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53686 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53687 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53688 -ffreestanding and -msoft-float.
53690 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53692 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53693 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53694 set in grub_ieee1275_flags.
53696 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53698 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53700 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53701 grub_console_init first.
53702 Change the memory range used for grub_ieee1275_claim and
53703 grub_mm_init_region.
53704 Print an error message if the claim fails.
53705 Include <grub/misc.h>.
53707 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53709 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53710 Call grub_children_iterate for device nodes of type `scsi',
53712 (grub_ofdisk_open): Remove manual device alias resolution.
53713 Fix memory leak when device cannot be opened.
53714 * include/grub/powerpc/ieee1275/ieee1275.h
53715 (grub_children_iterate): New prototype.
53716 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53718 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53719 Return -1 if args.size was -1.
53721 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53723 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53724 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53725 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53726 Open Firmware's memory for it; claim memory from _start to _end.
53727 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53728 (_end): New extern.
53729 (_start): Zero BSS from __bss_start to _end.
53730 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53732 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53734 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53736 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53737 -1 if args.base was -1.
53739 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53741 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53742 escape sequence instead of a literal ^L. Also call
53743 grub_ofconsole_gotoxy.
53745 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53747 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53748 void * arguments to grub_addr_t. All callers updated. Also make
53749 the `result' argument optional.
53750 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53751 All callers updated.
53753 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53755 * commands/ls.c (grub_ls_list_files): Use the string following the
53756 initial ')', if present, as the filesystem path.
53757 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53759 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53761 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53763 Make the source code of the menu interface more readable.
53765 * normal/menu.c: Include grub/mm.h.
53766 (TERM_WIDTH): New macro.
53767 (TERM_HEIGHT): Likewise.
53768 (TERM_INFO_HEIGHT): Likewise.
53769 (TERM_MARGIN): Likewise.
53770 (TERM_SCROLL_WIDTH): Likewise.
53771 (TERM_TOP_BORDER_Y): Likewise.
53772 (TERM_LEFT_BORDER_X): Likewise.
53773 (TERM_BORDER_WIDTH): Likewise.
53774 (TERM_MESSAGE_HEIGHT): Likewise.
53775 (TERM_BORDER_HEIGHT): Likewise.
53776 (TERM_NUM_ENTRIES): Likewise.
53777 (TERM_FIRST_ENTRY_Y): Likewise.
53778 (TERM_ENTRY_WIDTH): Likewise.
53779 (TERM_CURSOR_X): Likewise.
53780 (draw_border): Use macros instead of magic numbers.
53781 (print_entry): Likewise.
53782 (print_entries): Likewise.
53783 (run_menu): Likewise. Also, handle the key 'e'.
53784 (run_menu_entry): Ignore empty command lines.
53785 (print_message): Added a new argument EDIT. If EDIT is true,
53786 print a different message.
53787 (init_page): Likewise.
53788 (edit_menu_entry): New function. Not implemented yet.
53790 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53792 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53793 can be loaded from normal mode.
53795 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53797 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53798 (multiboot_mod_CFLAGS): New variables.
53799 * loader/i386/pc/linux_normal.c: New file.
53800 * loader/i386/pc/multiboot_normal.c: Likewise.
53802 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53803 attribute `unused'.
53805 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53806 `fdiro' to read the mode information from instead of `diro'.
53808 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53809 looking up a symlink.
53811 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53813 * normal/command.c (grub_command_execute): Don't parse the
53814 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53815 flags of the command.
53817 * normal/menu.c (grub_menu_run): Fix typo.
53819 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53821 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53823 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53824 `y + 1' instead of `y - 1'.
53826 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53828 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53830 From Hollis Blanchard <hollis@penguinppc.org>:
53831 * kern/misc.c (memmove): New alias for grub_memmove.
53832 (memcmp): New alias for grub_memcmp.
53833 (memset): New alias for grub_memset.
53834 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53835 Change "int handle" to "grub_ieee1275_phandle_t handle".
53836 * include/grub/powerpc/ieee1275/ieee1275.h
53837 (grub_ieee1275_get_property): Likewise.
53839 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53841 Added normal mode command `chainloader' as module chain.mod, which
53842 depends on normal.mod and _chain.mod.
53844 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53845 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53846 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53848 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53849 but arguments parsing moved to ...
53850 (grub_chainloader_cmd): ... here. New function.
53851 * include/grub/i386/pc/chainloader.h: New file.
53852 * loader/i386/pc/chainloader_normal.c: Likewise.
53854 2004-09-11 Marco Gerards <metgerards@student.han.nl>
53856 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
53857 (grub_mkimage_LDFLAGS): Likewise.
53858 (grub_emu_SOURCES): Likewise.
53859 (kernel_img_HEADERS): Added fshelp.h.
53860 * fs/ext2.c: Include <grub/fshelp.h>.
53861 (FILETYPE_REG): New macro.
53862 (FILETYPE_INO_REG): Likewise.
53863 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
53865 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
53867 (grub_fshelp_node): New struct.
53868 (grub_ext2_data): Added member `diropen'. Changed member `inode'
53870 (grub_ext2_get_file_block): Removed function.
53871 (grub_ext2_read_block): New function.
53872 (grub_ext2_read_file): Replaced parameter `data' by `node'.
53873 This function was written.
53874 (grub_ext2_mount): Read the root inode. Create a diropen struct.
53875 (grub_ext2_find_file): Removed function.
53876 (grub_ext2_read_symlink): New function.
53877 (grub_ext2_iterate_dir): Likewise.
53878 (grub_ext2_open): Rewritten.
53879 (grub_ext2_dir): Rewritten.
53880 * include/grub/fshelp.h: New file.
53881 * fs/fshelp.c: Likewise.
53883 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
53885 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
53886 (print_message): Add a missing newline.
53887 (run_menu): Added timeout support.
53888 (run_menu_entry): New local function.
53889 (grub_menu_run): Added support for booting.
53891 * kern/loader.c (grub_loader_is_loaded): New function.
53893 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
53894 (grub_get_rtc): Exported.
53896 * include/grub/i386/pc/time.h: Include grub/symbol.h.
53897 (grub_get_rtc): Exported.
53899 * include/grub/normal.h (struct grub_command_list): Remove
53900 constant from the member `command'.
53902 * include/grub/loader.h (grub_loader_is_loaded): Declared.
53904 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
53906 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
53908 2004-08-28 Marco Gerards <metgerards@student.han.nl>
53910 Add support for the JFS filesystem.
53912 * fs/jfs.c: New file.
53913 * include/grub/fs.h (grub_jfs_init): New prototype.
53914 (grub_jfs_fini): New prototype.
53915 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
53916 (grub_emu_SOURCES): Likewise.
53917 (pkgdata_MODULES): Add jfs.mod.
53918 (jfs_mod_SOURCES): New variable.
53919 (jfs_mod_CFLAGS): Likewise.
53920 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
53921 (grubof_SOURCES): Likewise.
53922 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
53924 * fs/fat.c (grub_fat_find_dir): Convert the filename little
53925 endian to the host endian.
53926 (grub_fat_utf16_to_utf8): Move function from there...
53927 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
53928 the endianness of the source string anymore.
53929 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
53931 2004-08-24 Marco Gerards <metgerards@student.han.nl>
53933 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
53934 (grub_boot_fini) [GRUB_UTIL]: Likewise.
53935 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
53936 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
53938 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
53939 (grub_hfs_iterate_dir): Make the function static. Add prototypes
53940 for `node_found' and `it_dir'.
53941 (grub_hfs_dir): Add prototype for `dir_hook'.
53943 * fs/minix.c (grub_minix_get_file_block): Add prototype for
53944 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
53945 and `indir32' to silence a gcc warning.
53947 * include/grub/fs.h (grub_hfs_init): New prototype.
53948 (grub_hfs_fini): Likewise.
53951 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
53953 Each disk device has its own id now. This is useful to make use
53954 of multiple disk devices.
53956 * include/grub/disk.h (grub_disk_dev_id): New enum.
53957 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
53958 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
53960 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
53961 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53963 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
53964 GRUB_DISK_DEVICE_OFDISK_ID as an id.
53966 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
53967 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
53969 * include/grub/disk.h (struct grub_disk_dev): Added a new member
53970 "id" which is used by the cache manager.
53972 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
53975 2004-08-18 Marco Gerards <metgerards@student.han.nl>
53977 * fs/hfs.c: New file.
53978 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
53979 (grub_emu_SOURCES): Likewise.
53980 (pkgdata_MODULES): Add hfs.mod.
53981 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
53982 (grubof_SOURCES): Likewise.
53983 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
53985 * include/grub/misc.h (grub_strncasecmp): Add prototype.
53986 * kern/misc.c (grub_strncasecmp): Add function.
53988 2004-08-14 Marco Gerards <metgerards@student.han.nl>
53990 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
53993 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
53994 (grub_ext2_dir): In case the directory entry type is unknown, read
53997 2004-08-02 Peter Bruin <pjbruin@dds.nl>
53999 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54000 grub_load_linux instead of grub_rescue_cmd_linux as second
54001 argument of grub_rescue_register_command.
54003 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54005 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54007 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54009 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54010 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54011 `loader/powerpc/ieee1275/linux.c',
54012 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54013 * include/grub/powerpc/ieee1275/ieee1275.h
54014 (grub_ieee1275_release): New prototype.
54015 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54016 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54017 normal, boot, linux and linux_normal.
54018 * loader/powerpc/ieee1275/linux.c: New file.
54019 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54021 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54023 * normal/arg.c (grub_arg_parse): Correct error handling after
54024 reallocating the argumentlist (check if `argl' is not null instead
54025 of checking if `args' is not null).
54026 * kern/mm.c (grub_realloc): Return the same pointer when using the
54027 same region, instead of returning the header address.
54029 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54031 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54032 one block instead of two when looking for the initial partition.
54033 (grub_partition_probe): Initialize the local variable `p' with 0.
54034 Use base 10 for the grub_strtoul call.
54035 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54036 need for one local variable.
54037 (grub_strtoul): Don't add the new value to `num', instead of that
54040 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54042 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54043 (pxeboot_img_SOURCES): New variable.
54044 (pxeboot_img_ASFLAGS): Likewise.
54045 (pxeboot_img_LDFLAGS): Likewise.
54046 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54047 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54048 <lode_leroy@hotmail.com>.
54050 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54052 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54053 there was no input.
54055 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54057 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54058 the history buffer logic.
54060 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54062 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54063 (FILETYPE_INO_SYMLINK): New macros.
54064 (grub_ext2_find_file): Check if the node is a directory using the
54065 inode stat information instead of using the filetype in the
54066 dirent. Exclude the first character of an absolute symlink.
54067 (grub_ext2_dir): Mask out the filetype part of the mode member of
54070 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54072 Add support for UFS version 1 and 2. Add support for the minix
54073 filesystem version 1 and 2, both the variants with 14 and 30 long
54076 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54078 (grub_emu_SOURCES): Likewise.
54079 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54080 (ufs_mod_SOURCES): New variable.
54081 (ufs_mod_CFLAGS): Likewise.
54082 (minix_mod_SOURCES): Likewise.
54083 (minix_mod_CFLAGS): Likewise.
54084 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54086 (grubof_SOURCES): Likewise.
54087 * fs/ufs.c: New file.
54088 * fs/minix.c: New file.
54089 * include/grub/fs.h (grub_ufs_init): New prototype.
54090 (grub_ufs_fini): Likewise.
54091 (grub_minix_init): Likewise.
54092 (grub_minix_fini): Likewise.
54093 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54096 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54098 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54099 commands/ls.c, commands/terminal.c, commands/boot.c,
54100 commands/cmp.c and commands/cat.c.
54101 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54103 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54106 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54108 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54109 and grub_, respectively. Because the conversion is trivial and
54110 mechanical, I omit the details here. Please refer to the CVS
54111 if you need more information.
54113 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54115 * include/pupa: Renamed to ...
54116 * include/grub: ... this.
54117 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54118 * util/i386/pc/grub-mkimage.c: ... this.
54119 * util/i386/pc/pupa-setup.c: Renamed to ...
54120 * util/i386/pc/grub-setup.c: ... this.
54121 * util/pupa-emu.c: Renamed to ...
54122 * util/grub-emu.c: ... this.
54124 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54126 Add support for the newworld apple macintosh (PPC). This has been
54127 tested on the powerbook 2000 only. It only adds support for
54128 generic ieee1275 functions, console and disk support. This should
54129 be easy to port to other architectures with support for Open
54132 * configure.ac: Accept the powerpc as host_cpu. In the case of
54133 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54134 specific tests are only executed while building for the i386.
54135 Inverse test for crosscompile.
54136 * genmk.rb (Utility): Allow assembler files.
54137 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54138 * conf/powerpc-ieee1275.rmk: New file.
54139 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54140 * disk/powerpc/ieee1275/partition.c: Likewise.
54141 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54142 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54143 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54144 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54145 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54146 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54147 * include/pupa/powerpc/ieee1275/loader.h
54148 * include/pupa/powerpc/setjmp.h: Likewise.
54149 * include/pupa/powerpc/types.h: Likewise.
54150 * kern/powerpc/ieee1275/init.c: Likewise.
54151 * kern/powerpc/ieee1275/openfw.c: Likewise.
54152 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54154 These files were written by Johan Rydberg
54155 (jrydberg@night.trouble.net) and I only modified them slightly.
54157 * boot/powerpc/ieee1275/cmain.c: New file.
54158 * boot/powerpc/ieee1275/crt0.S: Likewise.
54159 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54160 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54162 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54164 * Makefile.in: Update copyright.
54165 * genmodsrc.sh: Likewise.
54166 * gensymlist.sh: Likewise.
54167 * term/i386/pc/vga.c: Indent correctly.
54169 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54170 bugreporting address.
54171 * util/i386/pc/pupa-setup.c (usage): Likewise,
54172 (main): Call pupa_ext2_init and pupa_ext2_fini.
54174 * fs/fat.c (log2): Renamed to ...
54175 (fat_log2): ... this.
54176 All callers changed.
54177 * kern/misc.c (memcpy): Alias to pupa_memmove.
54178 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54180 * util/console.c (pupa_ncurses_fini): Return 0.
54182 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54183 Move fail label here.
54184 [__GNU__]: Don't warn when using stat.
54185 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54186 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54187 long int. Use strtol instead of strtoul.
54189 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54191 * commands/boot.c: New file.
54192 * commands/cat.c: Likewise.
54193 * commands/cmp.c: Likewise.
54194 * commands/ls.c: Likewise.
54195 * commands/terminal.c: Likewise.
54196 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54197 (pupa_register_command): Changed interface to match the new
54199 (pupa_command_execute): Changed (almost rewritten) so it uses
54200 pupa_split_command. Added support for setting variables using the
54202 (rescue_command): Changed to work with the new argument parser.
54203 (terminal_command): Moved from here to commands/terminal.c.
54204 (set_command): New function.
54205 (unset_command): New function.
54206 (insmod_command): New function.
54207 (rmmod_command): New function.
54208 (lsmod_command): New function.
54209 (pupa_command_init): Don't initialize the command terminal
54210 anymore. Initialize the commands set, unset, insmod, rmmod and
54212 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54213 (kernel_img_HEADERS): Add arg.h and env.h.
54214 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54215 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54216 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54218 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54220 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54221 (boot_mod_SOURCES): New variable.
54222 (terminal_mod_SOURCES): Likewise.
54223 (ls_mod_SOURCES): Likewise.
54224 (cmp_mod_SOURCES): Likewise.
54225 (cat_mod_SOURCES): Likewise.
54227 * normal/arg.c: New file.
54228 * kern/env.c: Likewise.
54229 * include/pupa/arg.h: Likewise.
54230 * include/pupa/env.h: Likewise.
54231 * font/manager.c (font_command): Changed to match argument parsing
54233 (PUPA_MOD_INIT): Likewise.
54234 * hello/hello.c (pupa_cmd_hello): Likewise.
54235 (PUPA_MOD_INIT): Likewise.
54236 * include/pupa/disk.h: Include <pupa/device.h>.
54237 (pupa_print_partinfo): New prototype.
54238 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54239 (pupa_dl_get_prefix): Likewise.
54240 * include/pupa/misc.h: Include <pupa/err.h>.
54241 (pupa_isgraph): New prototype.
54242 (pupa_isdigit): Likewise.
54243 (pupa_split_cmdline): Likewise.
54244 * include/pupa/normal.h: Include <pupa/arg.h>.
54245 (pupa_command): Changed the prototype of the member `func' to
54246 match the argument parsing interface. Added member `options'.
54247 (pupa_register_command): Updated to match function.
54248 (pupa_arg_parse): New prototype.
54249 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54250 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54251 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54252 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54253 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54254 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54255 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54256 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54257 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54258 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54259 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54260 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54261 * kern/disk.c: Include <pupa/file.h>.
54262 (pupa_print_partinfo): New function.
54263 * kern/dl.c: Include <pupa/env.h>.
54264 (pupa_dl_dir): Variable removed.
54265 (pupa_dl_load): Use the environment variable `prefix' instead of
54266 the variable pupa_dl_dir.
54267 (pupa_dl_set_prefix): Function removed.
54268 (pupa_dl_get_prefix): Likewise.
54269 * kern/i386/pc/init.c: Include <pupa/env.h>.
54270 (pupa_machine_init): Use the environment variable `prefix' instead of
54271 using pupa_dl_set_prefix to set the prefix.
54272 * kern/main.c: Include <pupa/env.h>.
54273 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54274 using pupa_dl_get_prefix to get the prefix.
54275 * kern/misc.c: Include <pupa/env.h>.
54276 (pupa_isdigit): New function.
54277 (pupa_isgraph): Likewise.
54278 (pupa_ftoa): Likewise.
54279 (pupa_vsprintf): Added support for printing values of the type
54280 `double'. Make it possible to format variable output when using
54281 formatting like `%1.2%f'.
54282 (pupa_split_cmdline): New function.
54283 * kern/rescue.c: Include <pupa/env.h>.
54284 (next_word): Removed function.
54285 (pupa_rescue_cmd_prefix): Likewise.
54286 (pupa_rescue_cmd_set): New function.
54287 (pupa_rescue_cmd_unset): New function.
54288 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54289 split the command line instead of splitting it here. Added
54290 support for setting variables using the syntax `foo=bar'. Don't
54291 initialize the prefix command anymore. Initialized the set and
54293 * normal/cmdline.c: Include <pupa/env.h>.
54294 (pupa_tab_complete): Added prototypes for print_simple_completion,
54295 print_partition_completion, add_completion, iterate_commands,
54296 iterate_dev, iterate_part and iterate_dir. Moved code to print
54297 partition information from here to kern/disk.c.
54298 (pupa_cmdline_run): Don't check if the function exists anymore.
54299 * normal/main.c: Include <pupa/env.h>.
54300 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54301 instead of using pupa_dl_get_prefix to get the prefix.
54302 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54303 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54305 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54306 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54307 ((unused))' to silence a gcc warning.
54308 (pupa_vga_setcolor): Likewise.
54309 (debug_command): Changed to match argument parsing
54311 * util/pupa-emu.c: Include <pupa/env.h>.
54312 (options): Added 0's for unused fields to silence a gcc warning.
54314 (main): Use the environment variable `prefix' instead of using
54315 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54316 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54319 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54320 * util/misc.c: Include <malloc.h>.
54321 (pupa_malloc): Rewritten so errors are correctly reported.
54322 (pupa_realloc): Likewise.
54323 (pupa_memalign): Likewise.
54324 (pupa_mm_init_region): Declare unused variables with
54325 `__attribute__ ((unused))' to silence a gcc warning.
54326 * normal/i386/setjmp.S: Remove tab at the end of the file to
54327 silence a gcc warning.
54328 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54329 variables with `__attribute__ ((unused))' to silence a gcc
54331 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54332 local variable i unsigned to silence a gcc warning.
54334 * kern/term.c: Include <pupa/misc.h>.
54335 (pupa_more_lines): New variable.
54336 (pupa_more): Likewise.
54337 (pupa_putcode): When the pager is active pause at the end of every
54339 (pupa_set_more): New function.
54340 * include/pupa/term.h (pupa_set_more): New prototype.
54343 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54345 Now this project is GRUB 2 rather than PUPA. The location of
54346 the CVS repository was moved to GRUB's.
54348 * configure.ac: Use bug-grub as the reporting address.
54349 Use GRUB instead of PUPA.
54350 Change the version number to 1.90.
54352 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54354 * genkernsyms.sh: Updated copyright information.
54355 * genmk.rb: Likewise.
54356 * genmodsrc.sh: Likewise.
54357 * gensymlist.sh: Likewise.
54358 * boot/i386/pc/boot.S: Likewise.
54359 * boot/i386/pc/diskboot.S: Likewise.
54360 * disk/i386/pc/biosdisk.c: Likewise.
54361 * disk/i386/pc/partition.c: Likewise.
54362 * font/manager.c: Likewise.
54363 * fs/ext2.c: Likewise.
54364 * fs/fat.c: Likewise.
54365 * include/pupa/boot.h: Likewise.
54366 * include/pupa/device.h: Likewise.
54367 * include/pupa/disk.h: Likewise.
54368 * include/pupa/dl.h: Likewise.
54369 * include/pupa/elf.h: Likewise.
54370 * include/pupa/err.h: Likewise.
54371 * include/pupa/file.h: Likewise.
54372 * include/pupa/font.h: Likewise.
54373 * include/pupa/fs.h: Likewise.
54374 * include/pupa/kernel.h: Likewise.
54375 * include/pupa/loader.h: Likewise.
54376 * include/pupa/misc.h: Likewise.
54377 * include/pupa/mm.h: Likewise.
54378 * include/pupa/net.h: Likewise.
54379 * include/pupa/normal.h: Likewise.
54380 * include/pupa/rescue.h: Likewise.
54381 * include/pupa/setjmp.h: Likewise.
54382 * include/pupa/symbol.h: Likewise.
54383 * include/pupa/term.h: Likewise.
54384 * include/pupa/types.h: Likewise.
54385 * include/pupa/i386/setjmp.h: Likewise.
54386 * include/pupa/i386/types.h: Likewise.
54387 * include/pupa/i386/pc/biosdisk.h: Likewise.
54388 * include/pupa/i386/pc/boot.h: Likewise.
54389 * include/pupa/i386/pc/console.h: Likewise.
54390 * include/pupa/i386/pc/init.h: Likewise.
54391 * include/pupa/i386/pc/kernel.h: Likewise.
54392 * include/pupa/i386/pc/linux.h: Likewise.
54393 * include/pupa/i386/pc/loader.h: Likewise.
54394 * include/pupa/i386/pc/memory.h: Likewise.
54395 * include/pupa/i386/pc/multiboot.h: Likewise.
54396 * include/pupa/i386/pc/partition.h: Likewise.
54397 * include/pupa/i386/pc/time.h: Likewise.
54398 * include/pupa/i386/pc/vga.h: Likewise.
54399 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54400 * include/pupa/util/getroot.h: Likewise.
54401 * include/pupa/util/misc.h: Likewise.
54402 * include/pupa/util/resolve.h: Likewise.
54403 * kern/device.c: Likewise.
54404 * kern/disk.c: Likewise.
54405 * kern/dl.c: Likewise.
54406 * kern/err.c: Likewise.
54407 * kern/file.c: Likewise.
54408 * kern/fs.c: Likewise.
54409 * kern/loader.c: Likewise.
54410 * kern/main.c: Likewise.
54411 * kern/misc.c: Likewise.
54412 * kern/mm.c: Likewise.
54413 * kern/rescue.c: Likewise.
54414 * kern/term.c: Likewise.
54415 * kern/i386/dl.c: Likewise.
54416 * kern/i386/pc/init.c: Likewise.
54417 * kern/i386/pc/lzo1x.S: Likewise.
54418 * kern/i386/pc/startup.S: Likewise.
54419 * loader/i386/pc/chainloader.c: Likewise.
54420 * loader/i386/pc/linux.c: Likewise.
54421 * loader/i386/pc/multiboot.c: Likewise.
54422 * normal/cmdline.c: Likewise.
54423 * normal/command.c: Likewise.
54424 * normal/main.c: Likewise.
54425 * normal/menu.c: Likewise.
54426 * normal/i386/setjmp.S: Likewise.
54427 * term/i386/pc/console.c: Likewise.
54428 * term/i386/pc/vga.c: Likewise.
54429 * util/console.c: Likewise.
54430 * util/genmoddep.c: Likewise.
54431 * util/misc.c: Likewise.
54432 * util/pupa-emu.c: Likewise.
54433 * util/resolve.c: Likewise.
54434 * util/unifont2pff.rb: Likewise.
54435 * util/i386/pc/biosdisk.c: Likewise.
54436 * util/i386/pc/getroot.c: Likewise.
54437 * util/i386/pc/pupa-mkimage.c: Likewise.
54438 * util/i386/pc/pupa-setup.c: Likewise.
54440 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54442 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54443 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54444 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54445 reading and reset it after reading.
54446 (pupa_ext2_close): Return PUPA_ERR_NONE.
54448 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54450 (struct linux_kernel_header): Add kernel_version and
54452 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54453 pupa_file_read succeeds.
54454 (pupa_rescue_cmd_initrd): Implement.
54456 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54458 * fs/ext2.c (pupa_ext2_label): New function.
54459 (pupa_ext2_fs): Added label.
54460 * fs/fat.c (pupa_fat_label): New function.
54461 (pupa_fat_fs): Added label.
54462 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54464 * kern/misc.c (pupa_strndup): New function.
54465 * include/pupa/misc.h (pupa_strndup): New prototype.
54467 * include/pupa/normal.h: Include <pupa/err.h>.
54468 (pupa_set_history): New prototype.
54469 (pupa_iterate_commands): New prototype.
54470 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54471 <pupa/disk.h>, <pupa/file.h>.
54472 (hist_size): New variable.
54473 (hist_lines): Likewise.
54474 (hist_end): Likewise.
54475 (hist_used): Likewise.
54476 (pupa_set_history): New function.
54477 (pupa_history_get): Likewise.
54478 (pupa_history_add): Likewise.
54479 (pupa_history_replace): Likewise.
54480 (pupa_tab_complete): Likewise.
54481 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54482 completion shows partitionnames while completing partitions, this
54483 feature was suggested by Jeff Bailey.
54484 * normal/command.c (pupa_iterate_commands): New function.
54485 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54486 (pupa_normal_init): Initialize history buffer.
54487 (PUPA_MOD_INIT): Likewise.
54488 (pupa_normal_fini): Free the history buffer.
54489 (PUPA_MOD_FINI): Likewise.
54491 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54494 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54495 * configure.ac [i386]: Check for regparam bug.
54496 (NESTED_FUNC_ATTR) [! i386]: Defined.
54498 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54500 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54501 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54502 (pupa_emu_SOURCES): New variable.
54503 (pupa_emu_LDFLAGS): Likewise.
54504 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54505 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54506 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54507 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54508 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54509 (pupa_jmp_buf): New typedef.
54510 (pupa_setjmp) [PUPA_UTIL]: New macro.
54511 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54512 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54513 (pupa_refresh): New prototype.
54514 * include/pupa/util/getroot.h: New file.
54515 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54517 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54518 (pupa_rescue_cmd_cat): Likewise.
54519 (pupa_rescue_cmd_ls): Likewise.
54520 (pupa_rescue_cmd_testload): Likewise.
54521 (pupa_rescue_cmd_lsmod): Likewise.
54522 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54523 * normal/menu.c (run_menu): Likewise.
54524 * kern/term.c (pupa_cls): Likewise.
54525 (pupa_refresh): New function.
54526 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54527 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54528 * util/console.c: New file.
54530 * util/i386/pc/getroot.c: New file.
54531 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54532 (pupa_putchar): New function.
54533 (pupa_refresh): Likewise.
54534 (xgetcwd): Function moved to ...
54535 (strip_extra_slashes): Likewise.
54536 (get_prefix): Likewise.
54537 * util/i386/pc/getroot.c: ... here.
54538 (find_root_device): Function moved and renamed to...
54539 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54540 Changed all callers.
54541 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54543 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54544 Changed all callers.
54545 * util/misc.c (pupa_memalign): New function.
54546 (pupa_mm_init_region): Likewise.
54547 (pupa_register_exported_symbols): Likewise.
54548 (pupa_putchar): Function removed.
54549 * util/pupa-emu.c: New file.
54551 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54553 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54554 (_multiboot_mod_SOURCES): New variable.
54555 (_multiboot_mod_CFLAGS): Likewise.
54556 * loader/i386/pc/multiboot.c: New file.
54557 * include/pupa/i386/pc/multiboot.h: Likewise.
54558 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54559 (pupa_multiboot_real_boot): New function.
54560 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54561 (pupa_multiboot_real_boot): New prototype.
54562 (pupa_rescue_cmd_multiboot): Likewise
54563 (pupa_rescue_cmd_module): Likewise.
54565 * kern/loader.c (pupa_loader_set): Continue when
54566 pupa_loader_unload_func() fails.
54567 (pupa_loader_unset): New function.
54568 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54570 * kern/misc.c (pupa_stpcpy): New function.
54571 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54573 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54575 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54576 for available extensions.
54578 * include/pupa/i386/pc/time.h: New file.
54579 * kern/disk.c: Include <pupa/machine/time.h>.
54580 (PUPA_CACHE_TIMEOUT): New macro.
54581 (pupa_last_time): New variable.
54582 (pupa_disk_open): Flush the cache when there was a timeout.
54583 (pupa_disk_close): Reset the timer.
54584 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54586 * util/misc.c: Include <sys/times.h>
54587 (pupa_get_rtc): New function.
54589 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54591 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54593 (pupa_ext2_get_file_block): Use blocks member.
54595 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54596 first block. Return -1 instead of pupa_errno on error.
54598 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54600 * README: In the pupa-mkimage example use _chain instead of chain
54601 and ext2 instead of fat.
54602 * TODO: Replace ext2fs with jfs as an example. Add an item for
54603 adding journal playback for ext2fs.
54604 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54605 (pkgdata_MODULES): Added ext2.mod.
54606 (ext2_mod_SOURCES): New variable.
54607 (ext2_mod_CFLAGS): Likewise.
54608 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54609 * include/pupa/misc.h (pupa_strncpy): New prototype.
54610 (pupa_strcat): Likewise.
54611 (pupa_strncmp): Likewise.
54612 * kern/misc.c (pupa_strcat): Enable function.
54613 (pupa_strncpy): New function.
54614 (pupa_strncmp): Likewise.
54615 * fs/ext2.c: New file.
54617 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54618 when the read failed before retrying.
54619 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54620 (_FILE_OFFSET_BITS): Likewise.
54621 * configure.ac: Added AC_SYS_LARGEFILE.
54623 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54625 * genmk.rb (PModule#rule): Make sure to get only symbol names
54626 from the output of nm.
54627 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54629 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54631 I forgot to check in these changes for a long time. This adds
54632 incomplete support for VGA console, and this is still very
54633 buggy. Also, a lot of consideration is required for I18N,
54634 UNICODE, and VGA font issues. Therefore, assume that this is
54635 such that "better than nothing".
54637 * font/manager.c: New file.
54638 * include/pupa/font.h: Likewise.
54639 * include/pupa/i386/pc/vga.h: Likewise.
54640 * term/i386/pc/vga.c: Likewise.
54641 * util/unifont2pff.rb: Likewise.
54643 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54644 (pkgdata_MODULES): Added vga.mod and font.mod.
54645 (vga_mod_SOURCES): New variables.
54646 (vga_mod_CFLAGS): Likewise.
54647 (font_mod_SOURCES): Likewise.
54648 (font_mod_CFLAGS): Likewise.
54650 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54652 * include/pupa/term.h: Include pupa/err.h.
54653 (struct pupa_term): Added init and fini.
54654 Changed the argument of putchar to pupa_uint32_t.
54656 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54657 (pupa_console_real_putchar): New prototype.
54658 (pupa_console_putchar): Removed.
54659 (pupa_console_checkkey): Exported.
54660 (pupa_console_getkey): Likewise.
54662 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54665 * kern/term.c (pupa_term_set_current): Rewritten.
54666 (pupa_putchar): Likewise.
54667 (pupa_putcode): New function.
54669 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54670 (pupa_console_real_putchar): ... this.
54671 (pupa_vga_set_mode): New function.
54672 (pupa_vga_get_font): Likewise.
54674 * normal/command.c: Include pupa/term.h.
54675 (terminal_command): New function.
54676 (pupa_command_init): Register the command "terminal".
54678 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54679 (DISP_UP): Likewise.
54680 (DISP_RIGHT): Likewise.
54681 (DISP_DOWN): Likewise.
54682 (DISP_HLINE): Likewise.
54683 (DISP_VLINE): Likewise.
54684 (DISP_UL): Likewise.
54685 (DISP_UR): Likewise.
54686 (DISP_LL): Likewise.
54687 (DISP_LR): Likewise.
54689 * term/i386/pc/console.c (pupa_console_putchar): New function.
54691 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54693 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54694 FIX. Reverse the path_list.
54696 * include/pupa/normal.h: Export pupa_register_command and
54697 pupa_unregister_command.
54699 * hello/hello.c (pupa_cmd_hello): New module.
54700 * conf/i386-pc.rmk: Added hello.mod.
54702 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54704 * kern/i386/pc/lzo1x.S: New file.
54706 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54707 (compress_kernel): New variable.
54708 (generate_image): Heavily modified to support compressing a
54709 large part of the core image.
54711 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54713 (pupa_util_load_image): New function.
54715 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54716 (pupa_compressed_size): New variable.
54717 (codestart): Enable Gate A20 here.
54718 Decompress the compressed part of the core image.
54719 Rearrange the code to put functions and variables which are
54720 required for initialization in the non-compressed part.
54723 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54726 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54728 * include/pupa/i386/pc/kernel.h
54729 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54730 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54731 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54732 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54733 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54735 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54737 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54738 (Utility#rule): Likewise.
54740 * configure.ac: Check if LZO is available.
54742 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54744 * include/pupa/normal.h: New file.
54745 * include/pupa/setjmp.h: Likewise.
54746 * include/pupa/i386/setjmp.h: Likewise.
54747 * normal/cmdline.c: Likewise.
54748 * normal/command.c: Likewise.
54749 * normal/main.c: Likewise.
54750 * normal/menu.c: Likewise.
54751 * normal/i386/setjmp.S: Likewise.
54753 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54754 (pupa_rescue_cmd_initrd): Likewise.
54756 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54759 * kern/i386/pc/startup.S (translation_table): New variable.
54760 (translate_keycode): New function.
54761 (pupa_console_getkey): Call translate_keycode.
54763 * kern/rescue.c (attempt_normal_mode): New function.
54764 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54765 it failed, print a message.
54767 * kern/mm.c (pupa_real_malloc): Print more information when a
54768 free magic is broken.
54769 (pupa_free): If the first free header is not free actually, set
54772 * kern/main.c (pupa_load_normal_mode): Just load the module
54774 (pupa_main): Don't print the message
54775 "Entering into rescue mode..." here.
54777 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54779 (pupa_rescue_cmd_initrd): Likewise.
54780 (pupa_rescue_cmd_initrd): Likewise.
54782 * include/pupa/symbol.h (FUNCTION): Specify the type.
54783 (VARIABLE): Likewise.
54785 * include/pupa/err.h (pupa_err_t): Added
54786 PUPA_ERR_UNKNOWN_COMMAND.
54788 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54789 (pupa_dl_get_prefix): Likewise.
54791 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54792 Added _chain.mod and _linux.mod instead of chain.mod and
54794 (chain_mod_SOURCES): Renamed to ...
54795 (_chain_mod_SOURCES): ... this.
54796 (chain_mod_CFLAGS): Renamed to ...
54797 (_chain_mod_CFLAGS): ... this.
54798 (linux_mod_SOURCES): Renamed to ...
54799 (_linux_mod_SOURCES): ... this.
54800 (linux_mod_CFLAGS): Renamed to ...
54801 (_linux_mod_CFLAGS): ... this.
54802 (normal_mod_SOURCES): New variable.
54803 (normal_mod_CFLAGS): Likewise.
54804 (normal_mod_ASFLAGS): Likewise.
54806 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54808 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54811 * kern/dl.c (pupa_dl_ref): Refer depending modules
54813 (pupa_dl_unref): Unrefer depending modules recursively.
54814 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54815 a module is unloaded before one depending on that module is
54817 (pupa_dl_unload): Unload depending modules explicitly,
54820 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54822 * include/pupa/i386/pc/linux.h: New file.
54823 * loader/i386/pc/linux.c: Likewise.
54825 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54827 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54828 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54829 of PUPA_CHAINLOADER_BOOT_SECTOR.
54831 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54832 (pupa_linux_prot_size): New variable.
54833 (pupa_linux_tmp_addr): Likewise.
54834 (pupa_linux_real_addr): Likewise.
54835 (pupa_linux_boot_zimage): New function.
54836 (pupa_linux_boot_bzimage): Likewise.
54838 * kern/i386/pc/init.c (struct mem_region): New structure.
54839 (MAX_REGIONS): New macro.
54840 (mem_regions): New variable.
54841 (num_regions): Likewise.
54842 (pupa_os_area_addr): Likewise.
54843 (pupa_os_area_size): Likewise.
54844 (pupa_lower_mem): Likewise.
54845 (pupa_upper_mem): Likewise.
54846 (add_mem_region): New function.
54847 (compact_mem_regions): Likewise.
54848 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54849 the size of the conventional memory and that of so-called upper
54850 memory (before the first memory hole).
54851 Instead of adding each found region to free memory, use
54852 add_mem_region and add them after removing overlaps.
54853 Also, add only 1/4 of the upper memory to free memory. The rest
54854 is used for loading OS images. Maybe this is ad hoc, but this
54855 makes it much easier to relocate OS images when booting.
54857 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
54858 (pupa_enter_rescue_mode): Don't register initrd and module.
54860 * kern/mm.c: Include pupa/dl.h.
54862 * kern/main.c: Include pupa/file.h and pupa/device.h.
54864 * kern/loader.c (pupa_loader_load_module_func): Removed.
54865 (pupa_loader_load_module): Likewise.
54867 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
54870 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
54871 (pupa_linux_tmp_addr): Likewise.
54872 (pupa_linux_real_addr): Likewise.
54873 (pupa_linux_boot_zimage): Likewise.
54874 (pupa_linux_boot_bzimage): Likewise.
54876 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
54877 (pupa_upper_mem): Likewise.
54878 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
54879 module is too dangerous.
54881 * include/pupa/loader.h (pupa_os_area_addr): Declared.
54882 (pupa_os_area_size): Likewise.
54883 (pupa_loader_set): Remove the first argument. Loader doesn't
54884 manage modules or initrd any longer.
54885 (pupa_loader_load_module): Removed.
54887 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
54888 (linux_mod_SOURCES): New variable.
54889 (linux_mod_CFLAGS): Likewise.
54891 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
54893 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
54894 the length of a blocklist correctly.
54896 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
54897 Use ioctl only if the OS file is a block device.
54898 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
54899 not very useful for normal files.
54901 * kern/main.c (pupa_set_root_dev): New function.
54902 (pupa_load_normal_mode): Likewise.
54903 (pupa_main): Call those above.
54905 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
54908 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
54910 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
54912 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
54913 (setup): Configure the installed partition information and the
54916 * loader/i386/pc/chainloader.c (my_mod): New variable.
54917 (pupa_chainloader_unload): New function.
54918 (pupa_rescue_cmd_chainloader): Refer itself.
54919 (PUPA_MOD_INIT): Save its own module in MY_MOD.
54921 * kern/i386/pc/startup.S (install_partition): Removed.
54922 (version_string): Likewise.
54923 (config_file): Likewise.
54924 (pupa_install_dos_part): New variable.
54925 (pupa_install_bsd_part): Likewise.
54926 (pupa_prefix): Likewise.
54927 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
54929 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
54931 (make_install_device): New function.
54932 (pupa_machine_init): Set the dl prefix.
54934 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
54935 (buf): Renamed to ...
54936 (linebuf): ... this.
54937 (pupa_rescue_cmd_prefix): New function.
54938 (pupa_rescue_cmd_insmod): Likewise.
54939 (pupa_rescue_cmd_rmmod): Likewise.
54940 (pupa_rescue_cmd_lsmod): Likewise.
54941 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
54944 * kern/mm.c (pupa_memalign): If failed even after invalidating
54945 disk caches, unload unneeded modules and retry.
54947 * kern/misc.c (pupa_memmove): New function.
54948 (pupa_memcpy): Removed.
54949 (pupa_strcpy): New function.
54950 (pupa_itoa): Made static.
54952 * kern/dl.c (pupa_dl_iterate): New function.
54953 (pupa_dl_ref): Likewise.
54954 (pupa_dl_unref): Likewise.
54955 (pupa_dl_unload): Return if succeeded or not.
54956 (pupa_dl_unload_unneeded): New function.
54957 (pupa_dl_unload_all): Likewise.
54958 (pupa_dl_init): Renamed to ...
54959 (pupa_dl_set_prefix): ... this.
54960 (pupa_dl_get_prefix): New function.
54962 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
54963 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
54964 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54965 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54966 (pupa_install_dos_part): Declared.
54967 (pupa_install_bsd_part): Likewise.
54968 (pupa_prefix): Likewise.
54969 (pupa_boot_drive): Likewise.
54971 * include/pupa/types.h: Fix a typo.
54973 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
54975 (pupa_memmove): Declared.
54976 (pupa_strcpy): Likewise.
54978 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
54979 pupa_mod_init takes one argument, its own module.
54980 (pupa_dl_unload_unneeded): Declared.
54981 (pupa_dl_unload_all): Likewise.
54982 (pupa_dl_ref): Likewise.
54983 (pupa_dl_unref): Likewise.
54984 (pupa_dl_iterate): Likewise.
54985 (pupa_dl_init): Renamed to ...
54986 (pupa_dl_set_prefix): ... this.
54987 (pupa_dl_get_prefix): Declared.
54989 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
54990 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
54992 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
54993 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
54995 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
54996 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
54998 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55000 * util/i386/pc/pupa-setup.c (setup): Define the internal
55001 function find_first_partition_start at the top level, because GCC
55002 3.0.x cannot compile internal functions in deeper scopes
55004 (find_root_device): Use lstat instead of stat.
55005 Don't follow symbolic links.
55006 Fix the path-constructing code.
55008 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55009 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55010 by a BLKGETSIZE ioctl first, because block devices don't fill
55011 the member st_mode of the structure stat on Linux.
55012 [__linux__] (linux_find_partition): Use a temporary buffer
55013 REAL_DEV for the working space. Copy it to DEV before returning.
55014 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55015 buffer cache consistent.
55016 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55017 strncmp. The previous value was merely wrong.
55018 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55020 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55021 FAT size is 12. The previous value was merely wrong.
55023 * kern/main.c (pupa_main): Don't split the starting message from
55026 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55027 LF, because BIOS goes crazy about character attributes in this
55030 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55032 * include/i386/pc/util/biosdisk.h: New file.
55033 * util/i386/pc/biosdisk.c: Likewise.
55034 * util/i386/pc/pupa-setup.c: Likewise.
55036 * Makefile.in (INCLUDE_DISTFILES): Added
55037 include/pupa/i386/pc/util/biosdisk.h.
55038 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55039 directory util/i386/pc.
55040 (install-local): Added a rule for sbin_UTILITIES.
55041 (uninstall): Likewise.
55043 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55045 * util/misc.c (xrealloc): New function.
55046 (pupa_malloc): Likewise.
55047 (pupa_free): Likewise.
55048 (pupa_realloc): Likewise.
55049 (pupa_stop): Likewise.
55050 (pupa_putchar): Likewise.
55052 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55054 * include/pupa/util/misc.h (xrealloc): Declared.
55056 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55058 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55059 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55061 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55062 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55064 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55065 way should be implemented.
55066 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55068 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55069 the size of NAME for safety.
55070 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55073 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55074 (pupa_setup_SOURCES): Likewise.
55076 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55078 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55080 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55081 bunch of pushl's from pusha, because this destroys the return
55084 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55086 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55087 This means that any missing prototypes could be fatal. Also, you
55088 must take care when writing assembly code. See the comments at
55089 the beginning of startup.S, for more details.
55091 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55092 compilation mechanism.
55093 (pupa_chainloader_real_boot): Likewise.
55094 (pupa_biosdisk_rw_int13_extensions): Likewise.
55095 (pupa_biosdisk_rw_standard): Likewise.
55096 (pupa_biosdisk_check_int13_extensions): Likewise.
55097 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55098 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55099 (pupa_get_memsize): Likewise.
55100 (pupa_get_mmap_entry): Likewise.
55101 (pupa_console_putchar): Likewise.
55102 (pupa_console_setcursor): Likewise.
55103 (pupa_getrtsecs): Use pushl instead of push.
55105 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55106 memory instead of the stack for a mmap entry, because some
55107 BIOSes may ignore the maximum size and overflow.
55109 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55111 * genmk.rb (PModule#rule): Compile automatically generated
55112 sources with module-specific CFLAGS as well as other sources.
55114 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55116 * configure.ac: Check ld.
55117 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55118 respectively, before checking endianness and sizes.
55120 * Makefile.in (LD): New variable.
55122 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55124 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55126 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55128 * Changelog: New file.