1 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
3 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
8 * configure.ac: Do not enable -Wmissing-noreturn as its
9 usefulness is limited and creates problems on some OS notably with
10 code generated by bison.
12 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15 * configure.ac: Do not explicitly enable -Waddress as it's not
16 supported by all gcc and when it is, it's already enabled by -Wall.
18 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
20 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
21 desactivated use of EDID at all.
23 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
26 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
27 video if no text is available.
29 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
32 * configure.ac: Substitute TARGET_RANLIB.
34 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
37 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
39 Based on patches from AROS.
41 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
44 * grub-core/Makefile.am: Override STRIP and RANLIB.
45 * configure.ac: compute TARGET_RANLIB.
46 * INSTALL: Document TARGET_RANLIB
48 Based on patches from AROS.
50 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
52 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
53 that floppies are unpartitioned.
55 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
57 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
58 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
60 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
62 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
63 less nice but more portable.
64 * grub-core/lib/posix_wrap/wchar.h: Likewise.
66 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
68 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
70 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
72 (grub_cryptodisk_cheat_insert): Likewise.
73 (grub_cryptodisk_close): Likewise.
75 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
77 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
78 Use windows path for DEFAULT_DIRECTORY.
80 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
82 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
83 difference was likely just gcc version, not anything mingw-related.
85 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
87 Use Winapi on both cygwin and mingw32 to share more code between both.
89 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
91 * util/grub-install.in: Add --grub-editenv option.
92 * util/grub-install_header (grub_compress_file): Explicitly check for
93 plain file to avoid cp error.
95 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
97 * docs/grub.texi (Device syntax): Document new LVM UUID based device
98 names; fix LVM driver name (lvm, not lv).
99 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
102 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
104 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
105 files rather than one file with loads of #if's.
106 * util/getroot.c: Likewise.
108 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
110 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
112 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
114 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
115 GNU/Hurd to the list of checked PRNG.
117 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
119 * configure.ac: On FreeBSD use -melf_*_fbsd format.
121 2013-09-21 Ales Nesrsta <starous@volny.cz>
123 * grub-core/bus/usb/ehci.c: Correceted EHCI QH handling (async./sync.)
125 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
127 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
128 * grub-core/disk/lvm.c: Add LVM UUIDs.
129 * util/getroot.c: Use LVM UUIDs whenever possible.
131 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
133 * docs/grub.texi (Networking commands): Add documentation for
134 network related commands.
136 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
138 * util/getroot.c (grub_util_open_dm): Check major rather than the name
139 to determine if device is handled by devmapper.
140 (convert_system_partition_to_system_disk): Likewise.
141 (get_dm_uuid): Don't check explicitly if device is mapped, it's
142 already done in grub_util_open_dm.
144 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
146 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
147 Clean up stack manipulation (sync_caches_armv*)
149 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
151 * util/lvm.c: Remove since unused. Remove remaining references.
153 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
155 Handle the case of partitioned LVM properly.
157 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
158 Stop on meeting LVM, mpath or DMRAID.
159 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
160 (read_device_map): Likewise.
161 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
162 device is full disk rather than erroring out on LVM and similar cases.
164 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
166 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
168 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
170 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
172 Reported by: Leif Lindholm
174 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
175 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
177 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
180 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
182 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
183 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
185 2013-09-18 Douglas Ray <dougray@cpan.org>
187 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
190 2013-09-18 Aleš Nesrsta <starous@volny.cz>
192 * docs/grub.texi: Fix broken link.
194 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
196 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
197 to break endless loop.
199 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
201 * util/grub-fstest.c: Fix several printf formats.
202 * util/grub-mkimage.c: Likewise.
203 * util/grub-mkimagexx.c: Likewise.
204 * util/grub-script-check.c: Likewise.
206 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
208 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
211 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
213 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
215 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
217 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
218 removed in current versions cygwin_conv_*.
220 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
222 * configure.ac: Disable efiemu runtime on cygwin.
224 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
226 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
227 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
229 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
231 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
234 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
236 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
238 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
241 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
243 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
244 when on x86 and not cygwin.
245 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
248 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
250 * configure.ac: Set CPP to build one when checkoing for freetype for
253 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
255 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
256 [!GRUB_BUILD]: Remove has_argument.
258 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
260 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
261 Replace with a dummy.
263 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
265 * configure.ac: Don't change host_os from mingw to cygwin.
267 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
269 * configure.ac: Change target_os from windows to cygwin.
271 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
273 Handle grub-pe2elf and grub-mkfont for cases when build != host.
275 * Makefile.am (build-grub-mkfont): Don't include gnulib.
276 (build-grub-gen-asciih): Likewise.
277 (build-grub-gen-widthspec): Likewise.
278 * Makefile.util.def (grub-pe2elf): Remove.
279 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
280 * configure.ac: Separate tests for build.
281 Move ./build-grub-pe2elf to grub-core.
283 * grub-core/Makefile.am (build-grub-pe2elf): New target.
284 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
286 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
288 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
289 * util/grub-pe2elf.c: Simplify not to rely on getopt.
290 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
292 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
294 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
295 mingw32 as well based on grub_util_get_disk_size.
296 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
297 grub_util_get_fd_size.
299 (fsync): Moved to ...
300 * grub-core/kern/emu/misc.c (fsync): ... here.
302 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
304 * include/grub/mm.h (grub_extend_alloc): Remove.
305 * grub-core/loader/i386/pc/plan9.c: Use own version of
306 grub_extend_alloc with appropriate types.
308 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
310 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
312 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
314 * util/getroot.c: Include sys/wait.h only when we need waitpid.
316 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
318 Fix dependencies on cygwin.
320 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
321 dependencies when used and defined.
322 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
324 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
326 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
327 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
329 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
331 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
332 implementation available to cause compile-time rather than runtime
335 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
337 * util/grub-fstest.c: Don't check for symlinks on windows.
339 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
341 * INSTALL: Mention unavailability of man pages when cross-compiling.
343 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
345 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
347 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
349 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
351 * INSTALL: Document cross-compilation.
352 * acinclude.m4: Determine whether nm support -P and --defined-only.
353 * configure.ac: Add TARGET_ to all variables pertaining to target
354 that don't have it yet.
355 * gentpl.py: Likewise.
356 * grub-core/Makefile.am: Likewise.
357 * grub-core/genmod.sh.in: Likewise.
358 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
361 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
363 * configure.ac: Remove -Wempty-body. It's not essential and needs
366 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
368 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
369 * util/getroot.c: Likewise.
371 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
373 * grub-core/disk/ahci.c: Add needed explicit cast.
374 * grub-core/lib/backtrace.c: Likewise.
375 * grub-core/net/ip.c: Likewise.
376 * grub-core/net/tcp.c: Likewise.
377 * grub-core/net/udp.c: Likewise.
379 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
381 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
383 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
385 * util/import_gcry.py: Add final newline in visibility.h.
387 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
389 * conf/Makefile.common: Fix typo.
391 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
393 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
395 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
397 * Makefile.am (widthspec.h): Fix typo.
398 * util/grub-gen-widthspec.c: Likewise.
400 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
402 Move ascii.h and widthspec.h generation to a separate build-time-only
405 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
407 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
408 Always fill bootdisk info and improve check for NetBSD disklabel.
410 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
412 * conf/Makefile.extra-dist: Add util/bin2h.c.
413 Reported by: floppym.
415 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
417 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
419 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
421 * configure.ac: Disable unifont and starfield if no freetype was found.
423 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
425 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
426 on NetBSD and OpenBSD.
428 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
430 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
432 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
434 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
435 reduced. Inheritant options are processed during the theme loading.
437 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
439 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
441 2013-08-14 Avik Sil <aviksil@in.ibm.com>
443 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
445 2013-08-14 Avik Sil <aviksil@in.ibm.com>
447 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
450 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
452 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
455 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
457 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
458 unused attribute from pull argument.
460 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
462 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
465 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
467 * util/getroot.c (pull_lvm_by_command): add --separator option
468 to vgs call to disable padding of output to 10 characters.
470 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
472 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
474 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
477 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
479 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
482 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
484 Fix handling of build-time grub-bin2h and grub-mkfont when doing
485 full Canadian cross. Tested with build=x86_64, host=arm,
488 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
490 * configure.ac: Error if no $BUILD_CC could be found.
493 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
495 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
498 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
500 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
501 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
503 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
505 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
506 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
507 falling back to the partition device, otherwise a later call to this
508 function may fail spuriously.
509 Reported by Axel Beckert. Fixes Debian bug #708614.
511 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
513 * autogen.sh: Replace find -not by the POSIX-compliant find !.
515 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
517 Prevent shadowing of stdlib's devname(3) on BSD.
519 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
520 and devlast to diskname and disklast, respectively.
522 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
524 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
526 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
528 * docs/grub.texi: Introduce terminal window position options:
529 terminal-left: terminal window's left position
530 terminal-top: terminal window's top position
531 terminal-width: terminal window's width
532 terminal-height: terminal window's height
533 terminal-border: terminal window's border width
534 * grub-core/gfxmenu/theme-loader.c: Likewise.
535 * include/grub/gfxmenu_view.h: Likewise.
536 * po/exlude.pot: Likewise.
537 * grub-core/gfxmenu/view.c: Likewise.
538 Also updated minimal window size.
539 Also terminal_sanity_check function has been introduced.
540 * grub-core/tests/checksums.h: Update (terminal window height
541 is adjusted now for low resolution screen)
543 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
545 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
548 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
550 * po/exclude.pot: Add few recent exceptions.
552 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
554 * tests/grub_func_test.in: Add unicode.pf2.
556 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
558 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
559 standard rather than noral color, in line with other terminals.
561 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
563 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
566 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
568 * grub-core/loader/arm/linux.c: Change printf to dprintf.
570 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
572 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
573 inappropriate printf.
575 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
577 * .bzrignore: Remove grub-core/lib/dtc-grub,
578 grub-core/Makefile.libfdt.def
579 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
581 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
583 * include/grub/video.h (grub_video_register): Keep double-linked as
584 well as single-linked invariants.
585 Reported by: qwertial.
587 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
589 * grub-core/commands/nativedisk.c (get_uuid): Handle
590 GRUB_DISK_DEVICE_UBOOTDISK_ID.
592 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
594 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
595 maximum of NW, N, NE heights instead of N's height and maximum of
596 NW, W, SW widths instead of W's width. (So the box will be always
599 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
601 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
602 Fix misuse of variable count.
604 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
605 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
606 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
608 New ports to arm-uboot and arm-efi.
609 Mostly by Leif Lindholm with some additions from
610 Francesco Lavra and cleanup by Vladimir Serbinenko.
612 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
614 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
616 Reported by: Leon Drugi.
618 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
620 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
621 Reported by: Paulo Flabiano Smorigo.
623 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
625 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
627 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
629 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
631 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
633 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
635 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
637 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
639 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
641 * grub-core/net/bootp.c: Export net_* variables.
642 * grub-core/net/net.c: Likewise.
644 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
646 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
648 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
650 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
652 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
654 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
656 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
658 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
660 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
662 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
665 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
667 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
670 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
672 * grub-core/fs/zfs/zfs_lz4.c: New file.
673 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
675 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
677 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
679 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
681 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
682 (check_pool_label): Likewise.
683 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
685 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
687 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
689 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
691 * docs/grub.texi (Commands): Document postition parameters
692 for menuentry command.
694 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
696 * util/grub-mknetdir.in: Remove stray line from help output.
698 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
700 Remove early sm712 init as there is no reason for it (the "watchdog"
701 effect was due to wrong GPIO map).
703 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
705 * grub-core/commands/pcidump.c: Remove static variables.
707 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
709 * grub-core/commands/sleep.c: Refresh screen before sleeping.
711 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
713 * configure.ac: Move delimiter after the infos.
715 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
717 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
719 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
721 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
722 not filling whole 8x16 space.
724 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
726 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
728 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
730 * configure.ac: Indicate which liblzma is used if any.
732 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
733 2013-06-21 Craig Sanders <savannah@taz.net.au>
735 * util/grub-reboot.in: Document submenu usage.
737 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
739 * .bzrignore: Update with a number of new test-related files.
741 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
743 * util/grub-script-check.c: Fail on scripts containing no
744 commands, to guard against corrupted grub-mkconfig setups that
745 produce no useful output.
746 * tests/grub_script_no_commands.in: New test.
747 * Makefile.util.def (grub_script_no_commands): Add.
748 Reported by Hans Putter. Fixes Debian bug #713886.
750 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
752 * grub-core/disk/diskfilter.c: Forgot to remove comment
753 from previous commit.
755 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
757 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
758 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
760 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
762 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
764 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
766 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
767 rescan diskfilter devices until nothing new is found.
769 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
771 Fix casts when compiling coreboot-specific code for 64-bit EFI.
773 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
775 Don't try to detect cbfs on *-emu.
777 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
779 * grub-core/term/gfxterm.c: USe right background color when scrolling.
781 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
783 Add support for processed coreboot payload chainloading.
785 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
787 Enable coreboot information commands even when not loaded as
788 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
790 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
792 Support for cbfs. Also factor out the part which is common
793 for all archives to a separate module. This splits tar from cpio
794 as they are very different but keeps cpio, cpio_be, odc and newc
795 together since they're very similar.
797 2013-06-15 David Michael <fedora.dm0@gmail.com>
799 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
800 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
802 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
804 * tests/grub_script_eval.in: Really add the eval test.
806 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
808 Move flavour-specific parts out of common cpio.c file and
809 rename remaining to cpio_common.c
811 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
813 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
814 off new function grub_script_execute_new_scope. Change callers to use
815 either of them as appropriate.
816 * grub-core/commands/eval.c: New command eval.
817 * docs/grub.texi (Commands): Document it.
819 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
821 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
822 to fetch values when listing.
824 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
826 Fix make dist on non-pc.
828 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
830 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
831 without a device name.
833 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
835 Remove enable_executable_check as it's not needed anymore.
836 Reported by: dougray.
838 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
840 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
841 ambigouos RAID before discovering RAIDs on top of it.
844 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
846 Fix typo (failback vs fallback).
848 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
850 * util/grub.d/30_os-prober.in: Add support for probing EFI
851 System Partition (as of os-prober 1.58).
853 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
855 * configure.ac: Add yet another path to unifont. For parabola.
857 2013-05-30 Josh Triplett <josh@joshtriplett.org>
859 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
860 handling to copy the killed characters to the kill buffer as
861 UCS4 stored as grub_uint32_t rather than as 8-bit characters
862 stored as char. Eliminates UCS4 truncation and corruption
863 observed when killing characters with Ctrl-u and yanking them
866 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
868 Detach optional parts of gfxterm and integrate in with coreboot init.
870 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
872 Move blit and fill dispatcher to appropriate files to decrease export
873 and relocation overhead.
875 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
877 * grub-core/font/font.c, include/grub/font.h: Inline simple font
880 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
882 * grub-core/Makefile.am: Fix compilation problem with some
885 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
887 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
889 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
891 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
894 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
896 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
899 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
901 * grub-core/partmap/dfly.c: New partition map.
903 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
905 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
907 Reported by: Francesco Lavra.
909 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
911 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
912 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
914 * conf/Makefile.common: define dist_grubconf_DATA
916 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
918 Progressively skip menu elements on small terminals rather
921 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
923 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
924 to avoid losing last column.
926 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
928 * po/exclude.pot: Add missing string "%C".
930 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
932 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
935 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
937 * util/grub-install.in: Gettextize "Not found" message.
939 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
942 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
944 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
946 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
948 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
950 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
952 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
954 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
956 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
957 attribute since structure is not necessarily aligned.
959 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
961 * docs/grub.texi (Device syntax): Clarify description of network
964 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
966 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
967 for vasprintf presence.
969 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
971 * util/grub-install.in: Handle efibootmgr presence check.
972 Reported by: Leif Lindholm.
974 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
976 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
977 new strings to translate.
979 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
981 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
982 yet another string (pun intended) to translate.
984 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
986 * po/POTFILES-shell.in: Autogenerate it.
988 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
990 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
992 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
994 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
997 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
999 * docs/grub.texi (Network): Add description of net_default_interface,
1000 net_default_ip and net_default_mac. Rewrite variables description
1001 to emphasize that they are per-interface.
1003 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1005 New test: cmdline and cat.
1007 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1009 * grub-core/commands/cat.c: Show UTF-8 characters.
1011 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1013 * conf/Makefile.common: Poison float and double on non-emu.
1015 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1017 * configure.ac: Don't disable extended registers on emu.
1019 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1021 * configure.ac: Don't use extended registers on x86_64.
1022 Reported by: Peter Jones.
1024 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1026 * grub-core/term/efi/console.c: Fix compile error.
1028 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1030 Compressed HFS+ support.
1032 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1034 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
1037 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1041 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1043 * grub-core/tests/setjmp_test.c: New test.
1045 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1047 New variables 'net_default_*' to determine MAC/IP of default interface.
1049 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1051 * tests/gettext_strings_test.in: A test to check for strings not
1052 marked for translation.
1054 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1056 * autogen.sh: Exclude unused libgcrypt files from translation.
1058 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1060 Simplify few strings.
1062 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1064 Mark few forgotten strings for translation.
1066 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1068 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
1071 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1073 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
1075 * grub-core/video/readers/tga.c: Likewise.
1077 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1079 * tests/priority_queue_unit_test.cc: New test.
1081 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1083 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
1086 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
1088 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
1089 variable for one time boot menu entry.
1091 2013-05-05 Bean <bean123ch@gmail.com>
1093 * grub-core/commands/testspeed.c: New command testspeed.
1095 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1097 Factor-out human-size printing.
1099 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1101 Agglomerate more mallocs to speed-up gfxterm.
1103 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1105 Speed-up gfxterm by slightly agglomerating mallocs.
1107 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1111 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1113 Speed-up gfxterm by saving intermediate results in index+alpha
1116 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1118 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
1121 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1123 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
1124 line of timeout as it may contain the rest of long line.
1126 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1128 * grub-core/normal/main.c: Fix freed memory dereference.
1130 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1132 Fix several memory leaks.
1134 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1136 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
1138 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1140 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
1142 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1144 Fix test -a and -o precedence.
1145 Reported by: adrian15.
1147 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1149 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
1151 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
1153 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
1154 and add it as source to functional_test module.
1156 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1158 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
1160 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1162 New series of tests for gfxterm and gfxmenu.
1164 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1166 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
1167 the theme path relative to $prefix/themes.
1169 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1171 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
1173 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
1175 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1177 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
1180 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1182 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
1183 grub_gfxmenu_timeout_notifications.
1184 (grub_gfxmenu_view_destroy): Likewise.
1186 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1188 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
1190 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1192 Several fixes to ieee1275 and big-endian video.
1194 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1196 Add missing exports on mips.
1198 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1200 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
1201 if no unifont is found.
1202 Restore original keyboard.
1204 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1206 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
1207 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
1209 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1211 First automated video test (running videotest and comparing results)
1213 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1215 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
1216 instead of 2 to have full RGB/CMY test pattern.
1218 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
1222 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
1224 * include/grub/arc/arc.h: Account for missing "other" peripheral on
1225 ARCS. All users updated.
1227 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
1229 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
1231 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
1233 * grub-core/partmap/amiga.c: Fix size of checksummed block.
1235 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1237 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
1238 Reported by: qwertial.
1240 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
1242 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
1243 with syntax "XXX deg"/"XXX °".
1245 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1247 Make PCI init in i386-qemu port more robust.
1249 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
1251 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
1252 cached view is reused.
1253 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
1256 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1258 Unify more code in grub-install_header.
1260 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1264 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1266 Enforce disabling of firmware disk drivers when native drivers kick in.
1268 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1270 * grub-core/commands/nativedisk.c: Customize the list of modules on
1271 platform. Don't try to search for disks already using native drivers.
1273 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1275 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
1278 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1280 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
1281 handling of variables containing backslash.
1283 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1285 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
1287 Reported by: qwertial.
1289 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1291 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
1293 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1295 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
1297 Reported by: qwertial.
1299 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1301 * docs/grub.texi: Add a comment about usefullness of nativedisk.
1303 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1305 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
1307 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1309 New command `nativedisk'.
1311 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1313 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
1314 * grub-core/loader/i386/bsd.c: Likewise.
1316 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1318 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
1320 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1322 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
1323 grub_get_unaligned16 rather than shifts.
1325 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1327 * grub-core/kern/file.c: Use const char * rather than casting to
1330 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1332 * grub-core/commands/probe.c: Add missing grub_device_close.
1334 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1336 * INSTALL: Document linguas.sh.
1338 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1340 Remove POTFILES.in and regenerate it in autogen.sh.
1342 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1344 Move --directory/--override-directorry to grub-install_header and unify.
1346 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1348 * grub-core/term/morse.c: Macroify dih and dah.
1350 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1352 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
1354 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1356 * grub-core/term/ns8250.c: Systematically probe ports by writing
1357 to SR before using them.
1359 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1361 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
1363 (check_sas): Get sas_adress info.
1365 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1367 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
1370 2013-04-27 Leon Drugi <eyak>
1372 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
1375 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1377 Core compression test.
1379 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1381 Implement grub_machine_get_bootlocation for ARC.
1383 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1385 Improve AHCI detection and command issuing.
1387 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1391 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1393 Make 'make check' work on emu.
1395 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1397 Replace libcurses with our own vt100 handling for the ease of testing
1398 and decreasing prerequisites.
1400 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1402 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
1404 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1406 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
1407 compile when not needed.
1409 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1411 * tests/pseries_test.in: New test.
1413 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1415 Add test to check that different boot mediums work.
1417 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1419 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
1420 ofw limited ISO support.
1422 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1424 * configure.ac: Fix loongson conditional.
1426 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1430 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1432 Add serial on ARC platform.
1434 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1436 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
1439 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1441 * tests/partmap_test.in: Add missing double semicolon.
1443 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1445 * util/grub-mkrescue.in: Fix loongson filename.
1447 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1449 * util/grub-mkrescue.in: Move all files that don't have a location
1450 set in stone under /boot/grub. Use ISO hard links rather than copies
1453 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1455 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
1458 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1460 Make check work on mips-arc.
1462 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1464 * util/grub-mkrescue.in: Alias sashARCS as sash.
1466 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1468 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
1471 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1473 * util/grub-install.in: Fix target fo qemu_mips.
1474 Fix extension on EFI.
1476 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1478 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
1479 in front of chosen entry to mark it even if highlighting is lost.
1481 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1483 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
1484 gfxpayload=keep if cbfb is active.
1486 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1488 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
1490 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1492 Add missing video ids to coreboot and ieee1275 video.
1494 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1496 * util/grub-mkrescue.in: Add mips-arc support.
1498 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1500 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
1502 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1504 Move mips-arc link address. Previous link address was chosen
1505 in belief that RAM on SGI platforms grows down while in fact it
1506 grows up from an unusual base.
1508 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
1510 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
1511 Fix a type which prevented CD-ROM and floppy boot.
1513 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
1515 Support coreboot framebuffer.
1517 * grub-core/video/i386/coreboot/cbfb.c: New file.
1519 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1521 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
1522 detecting too small regions.
1524 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1526 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
1528 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1530 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
1532 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
1534 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1536 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
1537 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
1538 * grub-core/loader/powerpc/ieee1275/linux.c
1539 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
1541 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1543 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
1544 Look for /boot-rom as well as /rom/boot-rom.
1546 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1548 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
1549 handling when creating text_layer failed.
1550 * grub-core/video/video.c (grub_video_create_render_target):
1551 Set result to 0 on error.
1552 (grub_video_delete_render_target): Do not dereference NULL.
1554 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1556 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
1557 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
1558 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
1559 (grub_linux_load64): Mask out 2 high bits.
1561 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
1563 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
1566 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1568 Add support for pseries and other bootinfo machines to grub-mkrescue.
1570 Tested by: Paulo Flabiano Smorigo.
1572 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1574 * util/grub-mkrescue.in: Add GPT for EFI boot.
1576 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1578 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
1579 It improves performance in qemu.
1581 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1583 * build-aux/snippet: Add missing gnulib files.
1585 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
1587 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
1589 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
1591 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
1593 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1594 2013-04-15 Peter Jones <pjones@redhat.com>
1596 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
1598 Based on patch by Peter Jones.
1600 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1602 Fix DMRAID partition handling.
1604 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1606 * tests/grub_cmd_date.in: Skip on sparc64.
1608 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1610 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
1611 firmware error messages.
1613 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1615 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
1616 source and destination differ.
1618 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1620 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
1623 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1625 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
1626 match config-util.h to avoid warnings and increase compatibility.
1628 2013-04-14 Szymon Janc <szymon@janc.net.pl>
1629 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1631 Add option to compress files on install/image creation.
1633 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1635 * docs/grub-dev.texi: Rearrange menu to match the section order.
1636 Reported by: Bryan Hundven.
1638 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1640 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
1642 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1644 Move GRUB out of system area when using xorriso 1.2.9 or later.
1646 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1648 * tests/grub_cmd_date.in: Add missing exit 1.
1650 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1652 * tests/partmap_test.in: Skip on sparc64.
1654 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1656 Support grub-shell on sparc64.
1658 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1660 Support mkrescue on sparc64.
1662 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1664 Allow IEEE1275 ports on path even if it wasn't detected automatically.
1665 Needed on OpenBIOS due to incomplete device tree.
1667 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1669 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
1670 would be otherwise excluded.
1672 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1674 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
1675 Inline name defines used only once.
1677 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
1679 Fix memory leaks in ofnet.
1680 Reported by: Francesco Lavra.
1682 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1684 * docs/man/grub-glue-efi.h2m: Add missing file.
1686 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1688 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
1690 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1692 Better support Apple Intel Macs on CD.
1694 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1696 Replace stpcpy with grub_stpcpy in tools.
1698 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1700 Handle Japanese special keys.
1701 Reported by: Hiroyuki YAMAMORI.
1702 Codes supplied by: Hiroyuki YAMAMORI.
1704 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1706 * util/grub-mkimage.c: Document memdisk implying --prefix.
1708 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1710 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
1711 much we can do about it anyway.
1713 2013-04-12 Aleš Nesrsta <starous@volny.cz>
1715 Fix handling of split transfers.
1717 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1719 * grub-core/net/http.c: Fix bad free.
1721 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1723 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
1726 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1728 Disable partmap check on i386-ieee1275 due to openfirmware issues.
1730 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1732 * tests/util/grub-shell.in: Fix it on powerpc.
1734 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1736 Turn off QEMU ACPI-way since new releases don't have shutdown port
1739 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1741 * docs/grub.texi: Update coreboot status info.
1743 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1745 * tests/grub_cmd_date.in: New test for datetime.
1747 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1749 * tests/partmap_test.in: Fix missing qemudisk setting.
1751 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1753 Support i386-ieee1275 grub-mkrescue and make check on it.
1755 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1757 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
1760 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1762 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
1763 GRUB_CMDLINE_XEN_DEFAULT.
1764 Reported by: Marc Warne (GigaTux) <gigatux>
1766 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1770 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1772 Use ACPI shutdown intests as traditional port was removed.
1774 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
1776 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
1779 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1781 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
1782 Fix few warining messages and leaks while on it.
1784 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
1786 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
1787 links under grub-core/lib/libgcrypt-grub/mpi.
1789 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1791 Fix ia64-efi image generation on big-endian machines. Deduplicate
1792 some code while on it.
1793 Reported by: Leif Lindholm.
1795 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
1797 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
1800 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
1802 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
1804 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
1806 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
1809 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1811 * grub-core/normal/term.c: Few more fixes for menu entry editor
1813 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
1815 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
1817 * grub-core/normal/term.c: Few more fixes for menu entry editor
1819 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
1821 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
1823 * conf/Makefile.extra-dist (EXTRA_DIST): Add
1824 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
1826 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
1828 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
1829 instead of hardcoding grub.mo.
1831 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
1833 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
1835 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1837 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
1838 grub-core/disk/geli.c.
1840 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1842 * util/grub-mkfont.c: Prefer enum to #define.
1844 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1846 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
1848 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1850 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
1852 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1854 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
1856 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1858 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
1860 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1862 * include/grub/bsdlabel.h: Use enums.
1864 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1866 Move GRUB_CHAR_BIT to types.h.
1868 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
1870 * docs/grub.texi: Document more user commands.
1872 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
1874 * docs/grub.texi: Document menuentry --id option.
1876 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
1878 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
1880 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1882 Unify file copying setup across different install scripts. Add
1883 options for performing partial install.
1885 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1886 2013-04-04 Peter Jones <pjones@redhat.com>
1888 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
1890 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1892 Use TSC as a possible time source on i386-ieee1275.
1894 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1896 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
1899 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1901 * util/grub-setup.c (setup): Handle some corner cases.
1903 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1905 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
1907 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1909 * grub-core/commands/verify.c: Save verified file to avoid it being
1910 tampered with after verification was done.
1912 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1914 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
1915 reported width by one to compensate for curesor algorithm problem.
1917 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1919 Fix screen corruption in menu entry editor and simplify the code
1922 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
1924 * util/grub-mount.c (fuse_init): Return error if fuse_main
1927 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
1929 * include/grub/elf.h: Add missing ARM relocation codes and fix
1932 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
1934 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
1936 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
1937 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1939 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
1940 into account when calculating radius.
1942 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
1944 * grub-core/gfxmenu/view.c: Fix off-by-one error.
1946 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
1948 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
1950 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
1952 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
1953 missing closing bracket.
1955 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
1957 * INSTALL: Mention xorriso requirement.
1959 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
1961 * grub-core/commands/verify.c: Fix hash algorithms values for
1962 the first three hashes - they start with 1, not with 0.
1964 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1966 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
1967 Try terminating EFI services several times due to quirks in some
1970 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
1972 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
1973 skipping Event, Device, Processor, PowerRes, ThermalZone, and
1974 BankField extended opcodes.
1975 (get_sleep_type): Add minimal scope handling (just enough to
1976 handle setting the scope to the root path).
1977 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
1978 * include/grub/acpi.h: Add enumeration values for Event, Device,
1979 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
1981 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
1983 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
1986 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
1988 * grub-core/disk/ahci.c: Give more time for AHCI request.
1990 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
1992 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
1995 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
1997 Replace the region at 0 from coreboot tables to available in BSD
2000 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2002 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
2005 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2007 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
2010 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2012 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
2013 handling of multi-device filesystems.
2015 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2017 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
2020 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2022 Add new 'proc' filesystem framework and put luks_script into it.
2024 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2026 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
2029 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
2031 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
2033 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
2035 Add ability to generate newc additions on runtime.
2037 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
2039 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
2042 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
2044 * po/POTFILES.in: Regenerate.
2046 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2048 * grub-core/commands/verify.c (hashes): Add several hashes
2051 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2053 Slight improve in USB-related boot-time checkpoints.
2055 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2057 * grub-core/commands/boottime.c: Fix copyright header.
2059 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2061 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
2062 coreboot tables content. Support for cbmemc.
2064 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2066 Fix a conflict between ports structures with 2 controllers of
2069 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2071 * include/grub/boottime.h: Add missing file.
2073 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2075 Initialize USB ports in parallel to speed-up boot.
2077 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2079 Fix USB devices not being detected when requested
2080 due to delayed attach.
2082 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2084 Implement boot time analysis framework.
2086 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2088 Remove get_endpoint_descriptor and change all functions needing
2089 descriptor to just receive it as argument rather than endpoint
2092 2013-03-19 Aleš Nesrsta <starous@volny.cz>
2094 Better estimate the maximum USB transfer size.
2096 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2098 Resend a packet if we got the wrong buffer in status.
2100 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2102 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
2103 multiplication rather than division.
2105 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2107 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
2110 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2112 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
2113 operations to have intended shifts and not divisions.
2115 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2117 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
2118 intended shifts rather than division.
2120 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2122 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
2123 computation for some years before epoch. Avode confusing division
2126 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2128 * grub-core/video/i386/pc/vbe.c
2129 (grub_video_vbe_print_adapter_specific_info): Replace division by
2132 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2134 Adjust types in gdb module to have intended unsigned shifts rather than
2137 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2139 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
2140 maximum size is 4G - 1 on hfs
2142 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2144 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
2146 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2148 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
2151 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
2153 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
2154 causing gcc error with gcc 4.7.1.
2156 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
2158 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
2159 dereference null pointer. While the code is technically correct, gcc
2160 may eliminate a null check if pointer is already dereferenced.
2162 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
2164 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
2166 * grub-core/normal/term.c (read_terminal_list): Likewise.
2168 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
2170 Lift up core size limits on some platforms. Fix potential memory
2171 corruption with big core on small memory systems. Document remaining
2174 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2176 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
2179 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2181 Remove all trampoline support. Add -Wtrampolines when
2182 present. Remove symbols used for trampolines to make
2183 link fail if trampolines are present.
2185 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2187 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
2188 append out of its parent.
2190 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2192 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
2195 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2197 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
2198 all vars to a macro. All users updated.
2200 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2202 * grub-core/disk/ieee1275/nand.c: Fix compilation on
2205 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2207 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
2209 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2211 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
2213 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2215 Move to more hookless approach in IEEE1275 devices handling.
2217 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2219 * grub-core/kern/term.c (grub_term_normal_color),
2220 (grub_term_highlight_color): Add back lost defaults.
2222 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2224 Make elfload not use hooks. Opt for flags and iterators instead.
2226 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2228 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
2229 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
2231 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2233 * grub-core/script/execute.c (gettext_append): Remove nested functions.
2235 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2237 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
2238 hook pass-through parameter. All users updated and unnested.
2240 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2242 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
2245 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2247 * grub-core/fs/hfs.c: Remove nested functions.
2249 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2251 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
2252 the context through.
2253 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
2255 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2257 * util/grub-editenv.c (list_variables): Move print_var out of its
2260 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2262 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
2265 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2267 * grub-core/gentrigtables.c: Make tables const.
2269 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2271 Remove nested functions from videoinfo iterators.
2273 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2275 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
2276 for 64-bit platforms.
2278 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2280 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
2281 a FOR_CHILDREN macro.
2283 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2285 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
2286 platform from firmware path.
2288 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2290 Enable linux16 on non-BIOS systems for i.a. memtest.
2292 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
2294 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
2296 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2298 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
2299 Fix end of table condition.
2301 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2303 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
2306 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2308 * grub-core/fs/jfs.c: Remove nested functions.
2310 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2312 * grub-core/fs/minix.c: Remove nested functions.
2314 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2316 * grub-core/fs/iso9660.c: Remove nested functions.
2318 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2320 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
2323 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2325 * util/grub-fstest.c: Remove nested functions.
2327 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
2329 * grub-core/loader/machoXX.c: Remove nested functions.
2331 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
2333 Remove nested functions from disk and file read hooks.
2335 * include/grub/disk.h (grub_disk_read_hook_t): New type.
2336 (struct grub_disk): Add read_hook_data member.
2337 * include/grub/file.h (struct grub_file): Likewise.
2338 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
2343 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
2345 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
2346 Fix off by one error in enumerating extended partitions.
2348 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
2350 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
2351 memory leak if device name is not found.
2353 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
2355 * grub-core/normal/menu_entry.c (update_screen): remove
2356 unused variable `off' which caused scroll down arrow to be always shown.
2358 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
2360 * grub-core/normal/menu_entry.c (insert_string): fix off by one
2361 access to unallocated memory.
2363 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
2365 * Makefile.util.def: Add partmap/msdos.c to common library.
2366 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
2367 * grub-core/disk/ldm.c: Check for existence of
2368 GRUB_PC_PARTITION_TYPE_LDM.
2370 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
2372 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
2373 sizes and display sector size.
2375 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2377 Implement new command cmosdump.
2379 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2381 Support Openfirmware disks with non-512B sectors.
2383 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
2385 * (grub_ofdisk_get_block_size): New function.
2386 * (grub_ofdisk_prepare): Use the correct block size.
2387 * (grub_ofdisk_read): Likewise.
2388 * (grub_ofdisk_write): Likewise.
2389 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
2392 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2394 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
2396 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
2398 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
2401 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2403 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
2406 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2408 Implement USBDebug (full USB stack variant).
2410 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2412 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
2413 unless they have unexpected values.
2415 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2417 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
2420 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2422 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
2423 zero-out of port structure.
2425 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
2427 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
2428 of extended attributes.
2430 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
2432 * util/grub-install.in: change misleading comment about
2435 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2437 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
2438 when menu highlight color isn't set.
2440 2013-01-27 C. Masloch <pushbx@38.de>
2442 Improve FreeDOS direct loading support compatibility.
2444 * include/grub/i386/relocator.h (grub_relocator16_state):
2446 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
2448 (grub_relocator16_boot): Handle %ebp.
2449 * grub-core/lib/i386/relocator16.S: Likewise.
2450 * grub-core/loader/i386/pc/freedos.c:
2451 Load BPB to pass kernel which partition to load from.
2452 Check that kernel file is not too large.
2453 Set register dl to BIOS unit number as well.
2455 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
2457 * util/grub-reboot.in (usage): Document the need for
2459 * util/grub-set-default.in (usage): Likewise.
2460 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
2462 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2464 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
2465 than defining WORDS_BIGENDIAN manually.
2467 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2469 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
2472 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
2474 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
2476 (blit_comb: add_device_width): Likewise.
2478 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
2480 Remove nested functions from USB iterators.
2482 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
2483 (grub_usb_controller_iterate_hook_t): Likewise.
2484 (grub_usb_iterate): Add hook_data argument.
2485 (grub_usb_controller_iterate): Likewise.
2486 (struct grub_usb_controller_dev.iterate): Likewise.
2488 Update all implementations and callers.
2490 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2492 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
2493 margin when not needed.
2495 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2497 Make color variables global instead of it being per-terminal.
2499 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2501 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
2504 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
2506 Fix powerpc and sparc64 build failures caused by un-nesting memory
2509 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
2511 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
2512 parameter declarations.
2514 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2516 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
2518 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2520 Improve spkmomdem reliability by adding a separator between bytes.
2522 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
2524 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
2525 an Acer registration utility with several sightings in the wild.
2526 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
2528 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
2530 Remove nested functions from filesystem directory iterators.
2532 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
2533 (struct grub_fs.dir): Add hook_data argument.
2535 Update all implementations and callers.
2537 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
2539 * docs/grub.texi (Multi-boot manual config): Fix typo for
2542 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
2544 * util/grub-mkimage.c (main): Postpone freeing arguments.output
2545 until after its use in generate_image.
2547 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
2549 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
2550 initrd size to addr_min, since the initrd will be allocated after
2553 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
2555 * conf/Makefile.common: Fix autogen rules to pass definition
2556 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
2558 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
2560 * include/grub/elf.h: Update ARM definitions based on binutils.
2562 2013-01-20 Aleš Nesrsta <starous@volny.cz>
2564 Split long USB transfers into short ones.
2566 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
2568 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
2569 is interrupted by ESC.
2571 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2573 * util/grub-script-check.c (main): Uniform the error message.
2575 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
2577 Remove nested functions from ELF iterators.
2579 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
2581 Remove nested functions from device iterators.
2583 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
2584 (grub_arc_iterate_devs): Add hook_data argument.
2585 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
2586 (struct grub_ata_dev.iterate): Add hook_data argument.
2587 * include/grub/device.h (grub_device_iterate_hook_t): New type.
2588 (grub_device_iterate): Add hook_data argument.
2589 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
2590 (struct grub_disk_dev.iterate): Add hook_data argument.
2591 (grub_disk_dev_iterate): Likewise.
2592 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
2594 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
2596 * include/grub/partition.h (grub_partition_iterate_hook_t): New
2598 (struct grub_partition_map.iterate): Add hook_data argument.
2599 (grub_partition_iterate): Likewise.
2600 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
2601 (struct grub_scsi_dev.iterate): Add hook_data argument.
2605 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
2607 Fix typos for "developer" and "development".
2609 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2611 Add license header to spkmodem-recv.c.
2613 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
2615 Rewrite spkmodem to use PIT for timing. Double the speed.
2617 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2619 Add new command pcidump.
2621 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2623 New terminal outputs using serial: morse and spkmodem.
2625 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2627 Improve bidi handling in entry editor.
2629 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2631 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
2632 argument to prevent name collision.
2634 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
2636 Remove nested functions from script reading and parsing.
2638 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
2639 getline_data argument, passed to getline.
2640 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
2641 getline_data argument, passed to grub_parser_split_cmdline.
2642 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
2643 lexerstate->getline_data to lexerstate->getline.
2644 (grub_script_lexer_init): Add getline_data argument, saved in
2645 lexerstate->getline_data.
2646 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
2647 argument, passed to grub_script_parse.
2648 * grub-core/script/script.c (grub_script_parse): Add getline_data
2649 argument, passed to grub_script_lexer_init.
2650 * include/grub/parser.h (grub_parser_split_cmdline): Update
2651 prototype. Update all callers to pass appropriate getline data.
2652 (struct grub_parser.parse_line): Likewise.
2653 (grub_rescue_parse_line): Likewise.
2654 * include/grub/reader.h (grub_reader_getline_t): Add void *
2656 * include/grub/script_sh.h (struct grub_lexer_param): Add
2657 getline_data member.
2658 (grub_script_parse): Update prototype. Update all callers to pass
2659 appropriate getline data.
2660 (grub_script_lexer_init): Likewise.
2661 (grub_normal_parse_line): Likewise.
2663 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
2665 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
2666 static instead of nested. Rename to ...
2667 (grub_parser_execute_getline): ... this.
2668 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
2670 * grub-core/normal/main.c (read_config_file: getline): Make static
2671 instead of nested. Rename to ...
2672 (read_config_file_getline): ... this.
2673 (grub_normal_read_line): Add unused data argument.
2674 * grub-core/script/execute.c (grub_script_execute_sourcecode:
2675 getline): Make static instead of nested. Rename to ...
2676 (grub_script_execute_sourcecode_getline): ... this.
2677 * util/grub-script-check.c (main: get_config_line): Make static
2680 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
2682 Remove nested functions from memory map iterators.
2684 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
2685 argument, passed to hook.
2686 * grub-core/kern/i386/coreboot/mmap.c
2687 (grub_linuxbios_table_iterate): Likewise.
2688 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
2690 (grub_machine_mmap_iterate): Add hook_data argument.
2691 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
2692 Add hook_data argument, passed to hook.
2693 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
2695 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
2697 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
2699 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
2701 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
2703 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
2705 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
2706 (grub_machine_mmap_iterate): Likewise.
2707 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
2708 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
2710 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
2711 Remove NESTED_FUNC_ATTR from here and from all users.
2712 (grub_mmap_iterate): Update prototype.
2713 (grub_efi_mmap_iterate): Update prototype. Update all callers to
2714 pass appropriate hook data.
2715 (grub_machine_mmap_iterate): Likewise.
2717 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
2718 static instead of nested.
2719 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
2721 (lsmmap_hook): ... this.
2722 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
2724 (grub_efiemu_mmap_fill: fill_hook): Likewise.
2725 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
2726 heap_init): Likewise.
2727 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
2729 (mmap_iterate_hook): ... this.
2730 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
2732 * grub-core/lib/ieee1275/relocator.c
2733 (grub_relocator_firmware_get_max_events: count): Likewise.
2734 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
2736 (grub_relocator_firmware_fill_events_iter): ... this.
2737 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
2738 hook): Likewise. Rename to ...
2739 (grub_relocator_alloc_chunk_align_iter): ... this.
2740 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
2742 (generate_e820_mmap_iter): ... this.
2743 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
2745 (count_hook): ... this.
2746 (grub_linux_boot: hook): Likewise. Rename to ...
2747 (grub_linux_boot_mmap_find): ... this.
2748 (grub_linux_boot: hook_fill): Likewise. Rename to ...
2749 (grub_linux_boot_mmap_fill): ... this.
2750 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
2751 hook): Likewise. Rename to ...
2752 (grub_fill_multiboot_mmap_iter): ... this.
2753 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
2754 hook): Likewise. Rename to ...
2755 (count_hook): ... this.
2756 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
2757 hook): Likewise. Rename to ...
2758 (grub_fill_multiboot_mmap_iter): ... this.
2759 * grub-core/loader/powerpc/ieee1275/linux.c
2760 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
2761 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
2762 Likewise. Rename to ...
2763 (alloc_phys_choose): ... this.
2764 (determine_phys_base: get_physbase): Likewise.
2765 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
2766 find_hook): Likewise.
2767 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
2768 (malloc_hook: count_hook): Likewise.
2769 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
2770 Likewise. Rename to ...
2771 (lower_hook): ... this.
2772 (grub_mmap_get_upper: hook): Likewise. Rename to ...
2773 (upper_hook): ... this.
2774 (grub_mmap_get_post64: hook): Likewise. Rename to ...
2775 (post64_hook): ... this.
2776 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
2777 Likewise. Rename to ...
2778 (lower_hook): ... this.
2779 (grub_mmap_get_upper: hook): Likewise. Rename to ...
2780 (upper_hook): ... this.
2781 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
2782 (grub_mmap_iterate: fill_hook): Likewise.
2783 (fill_mask): Pass addr and mask within a single struct.
2784 (grub_cmd_badram: hook): Make static instead of nested. Rename
2786 (badram_iter): ... this.
2787 (grub_cmd_cutmem: hook): Likewise. Rename to ...
2788 (cutmem_iter): ... this.
2790 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2792 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
2793 delimit path in strings using quotes.
2794 * util/getroot.c (grub_guess_root_devices): Likewise.
2795 (grub_make_system_path_relative_to_its_root): Likewise.
2796 * util/grub-probe.c (probe): Likewise.
2797 * util/ieee1275/ofpath.c (find_obppath): Likewise.
2798 (xrealpath): Likewise.
2800 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2802 Fix compilation with older compilers.
2804 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
2805 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
2807 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
2808 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
2809 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
2811 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
2812 * include/grub/crypto.h: Add type defines.
2813 * util/import_gcrypth.sed: Remove duplicate type defines.
2815 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2817 New command list_trusted.
2819 * grub-core/commands/verify.c (grub_cmd_list): New function.
2821 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
2823 * util/grub-mkimage.c (generate_image): Fix "size of public key"
2826 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
2828 Remove nested functions from PCI iterators.
2830 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
2831 passed to hook. Update all callers to pass appropriate hook data.
2832 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
2833 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
2834 Remove NESTED_FUNC_ATTR from here and from all users.
2835 (grub_pci_iterate): Update prototype.
2836 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
2837 instead of nested. Rename to ...
2838 (grub_cs5536_find_iter): ... this.
2839 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
2840 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
2842 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
2844 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
2846 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
2848 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
2849 * grub-core/video/radeon_fuloong2e.c
2850 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
2851 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
2852 find_card): Likewise.
2853 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
2856 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2858 * grub-core/commands/verify.c: Mark messages for translating.
2860 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2862 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
2865 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2867 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
2870 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2872 * autogen.sh: Do not try to delete nonexistant files.
2873 * util/import_gcrypth.sed: Add some missing header removals.
2875 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
2877 Clean up dangling references to grub-setup.
2878 Fixes Ubuntu bug #1082045.
2880 * docs/grub.texi (Images): Refer generally to grub-install rather
2881 than directly to grub-setup.
2882 (Installing GRUB using grub-install): Remove direct reference to
2884 (Device map) Likewise.
2885 (Invoking grub-install): Likewise.
2886 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
2887 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
2888 * util/grub-install.in (usage): Likewise.
2890 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
2891 Apply to grub-bios-setup and grub-sparc64-setup rather than to
2893 * configure.ac: Remove grub_setup output variable.
2895 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
2897 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
2898 grub-setup to grub-sparc64-setup.
2900 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2902 Import gcrypt public-key cryptography and implement signature checking.
2904 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2906 * grub-core/fs/ntfs.c: Ue more appropriate types.
2907 * grub-core/fs/ntfscomp.c: Likewise.
2908 * include/grub/ntfs.h: Likewise.
2910 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2912 Support Apple FAT binaries on non-Apple platforms.
2914 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
2915 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
2917 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
2920 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2922 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
2925 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
2927 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
2928 explicitly zeroing elements.
2929 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
2930 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
2931 of elements in a structure already allocated using grub_zalloc.
2932 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
2934 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
2936 * docs/grub.texi (grub_cpu): New subsection.
2937 (grub_platform): Likewise.
2939 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2941 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
2943 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2945 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
2948 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2950 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
2951 * grub-core/fs/ntfscomp.c: Likewise.
2952 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
2953 (grub_ntfs_comp): Likewise.
2955 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2957 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
2959 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
2960 of groups_per_block. All users updated.
2962 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2964 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
2965 grub_error properly.
2966 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
2967 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
2969 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2971 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
2972 always in /boot/zfs.
2973 Reported by: Yuta Satoh.
2975 2013-01-03 Yuta Satoh <nigoro>
2977 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
2980 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2982 * configure.ac: Extend -Wno-trampolines to host.
2984 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2986 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
2989 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
2991 * docs/grub.texi (Invoking grub-mkrelpath): New section.
2992 (Invoking grub-script-check): Likewise.
2994 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
2996 * docs/grub.texi (Invoking grub-mount): New section.
2997 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
2999 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
3001 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
3002 test failures, so that a failing unit test correctly causes 'make
3005 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
3007 Fix failing printf test.
3009 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
3010 '$' in the correct order when collecting type information.
3012 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
3014 * docs/grub.texi (configfile): Explain environment variable
3016 (source): New section.
3017 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
3019 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
3021 Remove several trivially-unnecessary uses of nested functions.
3023 * grub-core/commands/i386/pc/sendkey.c
3024 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
3026 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
3028 (legacy_file_getline): ... this.
3029 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
3031 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
3032 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
3034 (probe_dummy_iter): ... this.
3035 * grub-core/kern/i386/coreboot/mmap.c
3036 (grub_linuxbios_table_iterate: check_signature): Likewise.
3037 * grub-core/kern/parser.c (grub_parser_split_cmdline:
3038 check_varstate): Likewise. Mark inline.
3039 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
3040 an additional parameter.
3041 (find_long: fnd_long): Likewise. Pass two additional parameters.
3042 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
3043 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
3044 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
3045 Likewise. Rename to ...
3046 (grub_cmos_find_port_iter): ... this.
3047 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
3049 (find_rtc_iter): ... this.
3051 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
3052 function directly into the function body, since it is only called
3055 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
3057 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
3058 __attribute__ ((unused)).
3059 * grub-core/video/bochs.c (find_card): Likewise.
3060 * grub-core/video/cirrus.c (find_card): Likewise.
3061 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
3062 * grub-core/video/sis315pro.c (find_card): Likewise.
3063 * grub-core/video/sm712.c (find_card): Likewise.
3065 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
3067 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
3068 Fixes Savannah bug #37821.
3070 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
3072 Apply program name transformations at build-time rather than at
3073 run-time. Fixes Debian bug #696465.
3075 * acinclude.m4 (grub_TRANSFORM): New macro.
3076 * configure.ac: Create output variables with transformed names for
3078 * util/bash-completion.d/grub-completion.bash.in: Use
3079 pre-transformed variables for program names.
3080 * util/grub-install.in: Likewise.
3081 * util/grub-kbdcomp.in: Likewise.
3082 * util/grub-mkconfig.in: Likewise.
3083 * util/grub-mkconfig_lib.in: Likewise.
3084 * util/grub-mknetdir.in: Likewise.
3085 * util/grub-mkrescue.in: Likewise.
3086 * util/grub-mkstandalone.in: Likewise.
3087 * util/grub-reboot.in: Likewise.
3088 * util/grub-set-default.in: Likewise.
3089 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3090 * tests/util/grub-shell-tester.in: Remove unused assignment.
3091 * tests/util/grub-shell.in: Likewise.
3092 * util/grub.d/00_header.in: Likewise.
3094 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
3096 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
3098 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
3100 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
3102 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
3104 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
3105 Reported by: Eriks Latosheks <foresterlv>.
3107 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3109 * docs/grub.texi (Network): Update instructions on generating netboot
3112 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3114 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
3115 around device name if necessarry.
3117 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3119 * util/grub-install.in: Follow the symbolic link parameter added
3120 to the file command.
3122 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
3124 * util/grub-install.in: Remove stale TODO.
3126 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3128 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
3129 dynamic allocation for the bootpath buffer.
3131 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
3133 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
3136 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3138 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
3139 argument rather than font name. All users updated.
3140 (grub_gfxterm_set_window): Likewise.
3142 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
3144 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
3147 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3149 * util/getroot.c (convert_system_partition_to_system_disk): Support
3152 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3154 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
3155 infinite loop on corrupted FS.
3157 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
3159 Fix big-endian mtime.
3161 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
3162 together sec and usec.
3163 (grub_ufs_dir): Use correct byteswapping for UFS time.
3165 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
3167 Support big-endian UFS1.
3169 * Makefile.util.def (libgrubmods): Add ufs_be.c
3170 * grub-core/Makefile.core.def (ufs1_be): New module.
3171 * grub-core/fs/ufs_be.c: New file.
3172 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
3175 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
3177 * include/grub/types.h: Fix functionality unaffecting typo in
3178 GRUB_TARGET_WORDSIZE conditional macro.
3180 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3182 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
3184 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
3186 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
3187 that /netbsd appears first (when it exists).
3189 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
3191 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
3192 Fixes Savannah bug #37558.
3194 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
3196 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
3197 description of extract_entries_configfile.
3199 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
3201 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
3203 (grub_cmd_linux): Likewise.
3204 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
3205 preferred_lifetime. Update all users.
3207 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
3209 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
3210 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
3212 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
3214 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
3215 errors from grub-probe to /dev/null, not stdout.
3217 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
3219 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
3222 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
3224 * util/grub-install.in: Make the error message if $source_dir
3225 doesn't exist more useful.
3227 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
3229 Fix grub-emu build on FreeBSD.
3231 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
3232 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
3234 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
3235 implementation is currently Linux-specific.
3236 * util/getroot.c (exec_pipe): Define only on Linux or when either
3237 libzfs or libnvpair is unavailable.
3238 (find_root_devices_from_poolname): Remove unused path variable.
3240 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
3242 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
3243 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
3244 should fit before end == 63.
3246 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
3248 * util/grub-setup.c (write_rootdev): Remove unused core_img
3249 parameter. Update all callers.
3250 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
3251 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
3254 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3256 * util/grub-mkconfig_lib.in (grub_tab): New variable.
3257 (grub_add_tab): New function.
3258 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
3259 * util/grub.d/10_illumos.in: Likewise.
3260 * util/grub.d/10_kfreebsd.in: Likewise.
3261 * util/grub.d/10_linux.in: Likewise.
3262 * util/grub.d/10_netbsd.in: Likewise.
3263 * util/grub.d/10_windows.in: Likewise.
3264 * util/grub.d/10_xnu.in: Likewise.
3265 * util/grub.d/20_linux_xen.in: Likewise.
3266 * util/grub.d/30_os-prober.in: Likewise.
3268 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3270 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3271 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
3272 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
3273 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
3274 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
3276 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
3277 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
3279 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3281 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
3283 Reported by: BURETTE, Bernard.
3285 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
3287 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
3290 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
3292 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
3293 IEEE1275 machines. Fixes powerpc-emu compilation.
3294 * include/grub/terminfo.h: Likewise.
3296 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3298 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
3300 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
3302 (efiemu_set_variable): Make vendor_guid a const pointer.
3304 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3306 Don't require grub-mkconfig_lib to generate manpages for programs.
3308 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
3309 dependencies, don't add grub-mkconfig_lib.
3310 (program): Pass empty adddeps.
3311 (script): Pass grub-mkconfig_lib as adddeps.
3313 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
3315 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
3316 * util/getroot.c (grub_find_device): Likewise.
3317 (get_mdadm_uuid): Likewise.
3318 (grub_util_is_imsm): Likewise.
3319 (grub_util_pull_device): Likewise.
3320 * util/grub-probe.c (probe): Likewise.
3322 2012-09-10 Benoit Gschwind <gschwind>
3324 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
3325 (devs): Add devpath_8.
3327 2012-09-08 Peter Jones <pjones@redhat.com>
3329 * grub-core/Makefile.core.def (efifwsetup): New module.
3330 * grub-core/commands/efi/efifwsetup.c: New file.
3331 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
3332 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
3334 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
3336 2012-09-05 Jiri Slaby <jslaby@suse.cz>
3338 * configure.ac: Add SuSe path.
3340 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
3344 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
3346 * util/import_gcry.py: Sort cipher_files, to make build system
3347 generation more deterministic.
3349 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3351 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
3352 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
3353 (grub_set_datetime): Likewise.
3355 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3357 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
3360 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3362 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
3364 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3366 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
3368 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3370 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
3371 required for checkouts from bzr, but it may be useful for users or
3372 distributors wishing to update translations against a tarball
3373 distribution, and it can be helpful for the tarball to be a superset
3376 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3378 * Makefile.am (EXTRA_DIST): Add
3379 grub-core/tests/boot/linux.init-mips.S,
3380 grub-core/tests/boot/linux.init-ppc.S, and
3381 grub-core/tests/boot/linux-ppc.cfg.
3383 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3385 * grub-core/mmap/mips/loongson: Remove empty directory.
3387 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3389 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
3392 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3394 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
3397 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
3399 * configure.ac: Strengthen the test for working -nostdinc -isystem.
3401 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
3403 * po/POTFILES.in: Regenerated.
3405 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
3407 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
3408 (NetBSD): New subsection.
3410 2012-07-22 Ales Nesrsta <starous@volny.cz>
3412 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
3413 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
3415 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3417 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
3418 * util/grub.d/10_hurd.in: Add missing quoting.
3419 * util/grub.d/10_illumos.in: Likewise.
3420 * util/grub.d/10_kfreebsd.in: Likewise.
3421 * util/grub.d/10_linux.in: Likewise.
3422 * util/grub.d/20_linux_xen.in: Likewise.
3424 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3426 New command `lsefi'.
3428 * grub-core/Makefile.core.def (lsefi): New module.
3429 * grub-core/commands/efi/lsefi.c: New file.
3430 * include/grub/efi/api.h: Add more GUIDs.
3432 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3434 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
3435 (grub_bsd_elf32_hook): Likewise.
3436 (grub_bsd_elf64_size_hook): Likewise.
3437 (grub_bsd_elf64_hook): Likewise.
3438 (grub_bsd_load_elf): Likewise.
3440 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3442 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
3443 if hash function is unavailable.
3444 (dec_stream_header): Likewise.
3446 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3448 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
3451 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3453 Fix coreboot compilation.
3455 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
3456 (grub_vga_text_init_real): ... this.
3457 (grub_vga_text_fini): Rename to ...
3458 (grub_vga_text_fini_real): ... this.
3460 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3462 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
3464 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3466 * grub-core/lib/legacy_parse.c: Support clear and testload.
3468 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3470 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
3472 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3474 * grub-core/fs/ext2.c: Experimental support for 64-bit.
3476 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3478 * grub-core/net/tftp.c (ack): Fix endianness problem.
3479 (tftp_receive): Likewise.
3480 Reported by: Michael Davidsaver.
3482 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3484 * gentpl.py: Make mans depend on grub-mkconfig_lib.
3486 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3488 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
3489 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
3490 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
3492 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3494 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
3496 Reported by: Stuart Hayes.
3498 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
3500 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
3502 * grub-core/Makefile.core.def (mda_text): New module.
3503 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
3504 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
3505 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
3506 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
3508 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
3509 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
3510 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
3512 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
3514 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
3516 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
3518 * grub-core/term/i386/vga_common.c: Removed.
3519 * include/grub/i386/vga_common.h: Likewise.
3520 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
3521 (grub_vga_cr_bw_read): Likewise.
3522 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
3523 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
3524 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
3525 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
3526 grub_vga_cr_read/grub_vga_cr_write.
3527 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
3529 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3531 * configure.ac: Bump version to 2.00.
3532 * grub-core/normal/main.c (features): Add feature_200_final.
3534 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3535 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
3537 * NEWS: Fix unclarity and language mistakes.
3539 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3541 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
3542 additional size to 3 pages.
3543 Reported by: Stuart Hayes.
3545 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3547 * NEWS: Add 2.00 entry.
3549 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3551 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
3552 put explicit "/" for empty path.
3553 (wildcard_expand): Improve dprintf.
3555 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3557 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
3558 it's equal to currnode. This can happen with "" symlink.
3560 2012-06-27 Yves Blusseau <blusseau@zetam.org>
3562 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
3563 echo shell command by printf command.
3565 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3567 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
3568 the value returned by firmware is the maximal position, not diumension.
3569 (grub_terminfo_output_state): Use a more sane fallback.
3571 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3573 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
3575 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3577 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
3578 frequency to 150 MHz.
3580 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3584 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
3586 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
3588 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
3590 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3592 Handle slash in HFS label.
3594 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
3595 (grub_hfs_dir): Tanslate slash.
3596 (grub_hfs_label): Don't translate slash.
3598 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3600 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
3601 network protocol listing since it introduces problematic dependency on
3604 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3606 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
3608 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3610 Init video early on yeeloong to avoid being rebooted by watchdog.
3612 * grub-core/Makefile.am (gensm712): New target.
3613 (sm712_start.S): Likewise.
3614 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
3615 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
3616 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
3618 * include/grub/vga.h: Move registry definitions to...
3619 * include/grub/vgaregs.h: ... here.
3621 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3623 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
3626 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3628 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
3629 platforms with firmware disk drivers in the core.
3631 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3633 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
3634 informative verbose message.
3635 (read_lv): Handle 64-bit segment size.
3637 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3639 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
3641 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3643 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
3644 character but still remove trainling spaces.
3645 (grub_fat_label): Ignore archive flag.
3647 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3649 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
3650 cast between linux_kernel_header and linux_kernel_params.
3652 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3654 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
3656 (grub_raid6_recover_func_t): Likewise.
3657 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
3658 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
3660 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3662 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
3664 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
3668 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
3669 [__NetBSD__]: Add explicit cast before bitshift.
3671 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3673 * configure.ac: Bump to 2.00~rc1.
3675 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3677 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
3680 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3681 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
3683 * docs/grub.texi: Fix search syntax.
3684 (Multi-boot manual config): Put msdos rather than GPT example.
3685 Grammar corrections.
3687 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3689 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
3691 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3693 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
3695 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3697 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
3698 message on double free. Put the value of magic in case of mismatch.
3700 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3702 Speed-up video on yeeloong.
3704 * grub-core/video/sm712.c (framebuffer): Remove render_target and
3706 (grub_video_sm712_video_fini): Unmap cached_ptr.
3707 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
3708 (grub_video_sm712_set_active_render_target): Removed.
3709 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
3710 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
3713 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3715 Avoid flushing the same line multiple times on loongson.
3717 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
3718 Step in 32 bytes and not 1 byte.
3719 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
3722 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3724 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
3727 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3729 Implement flow control for http.
3731 * grub-core/net/http.c (parse_line): Handle response 206.
3732 (http_receive): Stall if too many packets are in the queue.
3733 (http_establish): Fix range header.
3734 (http_seek): Fix double free.
3735 (http_close): Likewise.
3736 (http_packets_pulled): New function.
3737 (grub_http_protocol): Set http_seek
3738 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
3739 (ack_real): Set window depending on i_stall.
3740 (grub_net_send_tcp_packet): Likewise.
3741 (grub_net_tcp_stall): New function.
3742 (grub_net_tcp_unstall): Likewise.
3743 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
3744 (grub_net_tcp_unstall): Likewise.
3746 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3748 * grub-core/net/tftp.c: Decrease stall to 50 packets.
3750 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3752 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
3754 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3756 * tests/util/grub-shell.in: Fix a typo.
3758 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3760 Implement flow control for tftp.
3762 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
3763 packets but stop only if stop condition is satisfied.
3764 (grub_net_fs_read_real): Call packets_pulled after real read. Use
3765 `stall' instead of `eof' as stop condition.
3766 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
3767 (http_err): Likewise.
3768 * grub-core/net/tftp.c (ack): Replace the first argument with data
3770 (tftp_receive): Stall if too many packets are in wait queue.
3771 (tftp_packets_pulled): New function.
3772 (grub_tftp_protocol): Set packets_pulled.
3773 * include/grub/net.h (grub_net_packets): New field count.
3774 (grub_net_put_packet): Increment count.
3775 (grub_net_remove_packet): Likewise.
3776 (grub_net_app_protocol): New field `packets_pulled'.
3777 (grub_net): New field `stall'.
3779 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3781 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
3782 sync part to handle them.
3784 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3786 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
3787 * grub-core/net/drivers/ieee1275/ofnet.c
3788 (grub_ieee1275_net_config_real): Likewise.
3790 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3792 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
3793 the direct route for server/gateway.
3795 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3797 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
3798 IP address to server name since we may not hame the DNS.
3800 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3802 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
3803 freeing random buffer on failure.
3804 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
3806 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3808 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
3810 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3812 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
3814 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
3815 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
3816 Handle malloc error correctly.
3818 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3820 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
3823 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3825 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
3828 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3830 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
3831 none is explicitly specified.
3833 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3835 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
3838 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3840 Respect netmask from bootp/dhcp.
3842 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
3843 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
3844 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
3846 (grub_net_add_ipv4_local): ... this.
3847 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
3848 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
3849 (grub_net_add_ipv4_local): New proto.
3851 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3853 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
3854 determining EFI memory map size.
3856 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3858 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
3860 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3862 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
3863 when looking for partition separator.
3865 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3867 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
3870 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3872 Restructure FAT driver to avoid hook in label reading as it hits a
3875 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
3876 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
3877 (grub_fat_iterate_dir): Split into ...
3878 (grub_fat_iterate_init): ... this, ...
3879 (grub_fat_iterate_fini): ... this, ...
3880 (grub_fat_iterate_dir_next): ... and this. All users updated.
3882 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3884 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
3885 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
3886 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3887 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
3888 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
3889 New fields last_key and last_key_time.
3890 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
3891 extended key-esc into extended key-extended key.
3893 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3895 Avoid unnecessary memcpy of whole video buffer.
3897 * grub-core/video/fb/video_fb.c (dirty): New struct.
3898 (framebuffer): Add members current_dirty and previous_dirty.
3899 (dirty): New function.
3900 (grub_video_fb_fill_rect): Update dirty.
3901 (common_blitter): Likewise.
3902 (grub_video_fb_scroll): Likewise.
3903 (doublebuf_blit_update_screen): Copy only dirty part.
3904 (doublebuf_pageflipping_update_screen): Likewise.
3905 (grub_video_fb_doublebuf_blit_init): Init dirty.
3906 (doublebuf_pageflipping_init): Likewise.
3907 (grub_video_fb_setup): Likewise.
3909 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3911 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
3914 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3916 Fix wildcard regexp dot and other special characters handling.
3917 Reported by: Robert Mabee.
3919 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
3920 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
3921 (split_path): Trigger expansion on '?'.
3922 (unescape): New function.
3923 (wildcard_expand): Unescape parts copied without globbing.
3924 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
3925 (grub_script_arglist_to_argv): Don't unescape expansions.
3927 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3929 * include/grub/net.h (grub_net_card): New member txbufsize.
3930 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
3931 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
3932 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
3933 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
3935 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
3936 compatible property to check for macs. Set
3937 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
3938 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
3939 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
3940 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
3941 (send_card_buffer): Use txbuf.
3942 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
3943 nested function out of the parent while on it.
3945 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3947 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
3949 (grub_ieee1275_net_config_real): Fix config pointer.
3951 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3953 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
3954 filename parsing to non-block devices.
3956 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3958 * grub-core/kern/device.c (grub_device_open): Remove dead code.
3960 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3962 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
3965 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3967 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
3968 UUID search command even if hints probing failed.
3970 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3972 * po/POTFILES.in: Regenerated.
3974 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
3976 Speed-up video on fuloong.
3978 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
3980 (grub_pci_device_unmap_range): Handle non-cached address.
3981 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
3983 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
3984 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
3985 (grub_video_sis315pro_set_active_render_target): Removed.
3986 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
3987 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
3988 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
3990 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
3993 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3995 * docs/grub.texi (Multi-boot manual config): New section.
3997 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3999 Avoid slow read-back from VRAM.
4001 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
4003 * grub-core/video/fb/video_fb.c
4004 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
4005 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
4006 (front_target): Remove front_target. Add pages.
4007 (grub_video_fb_init): Skip setting front_pages.
4008 (grub_video_fb_fini): Likewise.
4009 (doublebuf_blit_update_screen): Use pages.
4010 (grub_video_fb_doublebuf_blit_init): Likewise.
4011 (doublebuf_pageflipping_init): Allocate offscreen buffer.
4012 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
4013 (grub_video_fb_setup): Prefer doublebuffing.
4015 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4017 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
4020 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4024 * tests/util/grub-shell.in: Handle loongson.
4025 * tests/partmap_test.in: Add loongson to the list of platform using ATA
4027 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
4028 Reboot instead of shutdown if REBOOT is defined.
4030 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4032 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
4033 sized ports since unlike on real hardware qemu supports only 32-bit
4036 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4038 * Makefile.util.def (grub-mkrescue): Enable on loongson.
4039 * util/grub-mkrescue.in: Handle loongson.
4041 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
4043 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
4044 Set is_part appropriately.
4045 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
4046 names. Canonicalize partition without full disk.
4048 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4050 Revert usb-quiesce since it's wrong.
4052 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
4053 (grub_ofdisk_init): Don't do quiesce.
4055 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4057 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
4058 PowerMac workaround to Xserves as well.
4059 Information supplied by: Benjamin Herrenschmidt.
4061 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4063 Don't assume that beginning address is also the entry point on ppc.
4065 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
4066 (grub_linux_boot): Use linux_entry.
4067 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
4068 (grub_linux_load64): Likewise.
4070 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4072 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
4074 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4076 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
4077 needlessly lose the console.
4079 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4081 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
4084 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
4086 Remove non-functional EFI grub_get_rtc. Put a better fatal message
4087 than current grub_get_rtc() not implemented when booted with
4088 coreboot without TSC.
4090 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
4091 Add machine/time.h to kernel headers on loongson.
4092 * grub-core/Makefile.core.def (kernel): Remove
4093 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
4094 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
4095 (grub_get_rtc): Likewise.
4096 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
4097 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
4098 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
4099 * grub-core/kern/i386/tsc.c (grub_tsc_init)
4100 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
4101 rather than installing known non-working time source.
4102 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
4103 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
4104 * include/grub/time.h: Don't include machine/time.h.
4105 * include/grub/efi/time.h: Removed.
4106 * include/grub/i386/efi/time.h: Likewise.
4107 * include/grub/i386/ieee1275/time.h: Likewise.
4108 * include/grub/powerpc/ieee1275/time.h: Likewise.
4109 * include/grub/sparc64/ieee1275/time.h: Likewise.
4110 * include/grub/x86_64/efi/time.h: Likewise.
4112 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
4114 Remove dot on i and j when combining with above diacritics.
4116 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
4118 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
4119 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
4120 with dotless variants when any combining above is present.
4122 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4124 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
4125 text and not binary.
4127 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4129 Stop polling as soon as we have the packet we were waiting for.
4131 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
4133 * grub-core/net/arp.c (have_pending): New var.
4134 (pending_req): Likewise.
4135 (grub_net_arp_send_request): Fill pending_req and use have_pending as
4137 (grub_net_arp_receive): Set have_pending.
4138 * grub-core/net/dns.c (recv_data): New field stop.
4139 (recv_hook): Set stop.
4140 (grub_net_dns_lookup): Init stop and use as stop condition.
4141 * grub-core/net/http.c (http_establish): Use headers_recv as stop
4143 * grub-core/net/net.c (grub_net_poll_cards): New argument
4144 stop_condition. Stop when it goes true.
4145 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
4147 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
4149 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4151 Keep TX and RX buffers on EFI rather than always allocate new ones.
4153 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
4154 card. All users updated.
4155 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
4156 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
4157 (get_card_packet): Likewise.
4158 (grub_efinet_findcards): Init new fields.
4160 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4162 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
4163 compilation error on sparc64.
4165 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4167 Use ITC on IA64 rather than broken routine based on daytime.
4169 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
4171 (grub_get_rtc) [__ia64__]: Likewise.
4172 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
4173 (get_itc): New function.
4174 (grub_rtc_get_time_ms): Likewise.
4175 (grub_machine_init): Calibrate ITC.
4176 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
4177 Keep only on non-ia64. Don't export since it's broken and used only
4178 if TSC is unavailable.
4180 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4182 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
4184 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
4185 Skip if parent is unused.
4187 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4189 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
4191 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4193 Fix wildcard escaping.
4195 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
4196 * grub-core/script/execute.c (wildcard_escape): .. to here.
4198 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
4199 * grub-core/script/execute.c (wildcard_unescape): .. to here.
4201 * grub-core/script/execute.c (gettext_append): Always escape.
4202 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
4203 * grub-core/script/yylex.l: Don't cut away the escaping.
4204 * tests/grub_script_echo1.in: Add tests with wildcard.
4206 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4208 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
4209 (ftdi_hw_configure): Likewise.
4210 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
4212 (real_config): Handle 1.5 stop bits.
4213 (pl2303_hw_configure): Likewise.
4215 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4217 * Makefile.am: Add ppc linux bootcheck.
4218 * grub-core/tests/boot/linux-ppc.cfg: New file.
4219 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
4221 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4223 * tests/grub_script_expansion.in: Skip network protocols.
4225 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4227 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
4229 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4231 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
4235 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4237 ESCC serial driver for conducting sautomated tests in qemu.
4238 Not tested on real hardware.
4240 * include/grub/serial.h (grub_serial_port): New field escc_desc.
4241 * grub-core/term/ieee1275/escc.c: New file.
4242 * grub-core/Makefile.core.def (escc): New module.
4244 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4246 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
4248 (serial_hw_fetch): Don't read invalid handle.
4249 (serial_hw_put): Don't write into invalid handle.
4251 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4253 Add a 1.5 stop bits value.
4255 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
4256 * include/grub/serial.h (grub_serial_stop_bits_t): Add
4257 GRUB_SERIAL_STOP_BITS_1_5.
4259 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4261 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
4262 value rather than let it uninited.
4264 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4266 * grub-core/commands/wildcard.c (+check_file): New function.
4267 (wildcard_expand): Don't expand to non-existing files, expand with
4268 suffix and not attempt to expand if not needed.
4270 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4272 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
4273 out of partitions containing other partitions.
4275 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4277 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
4278 on some qemu versions with GRUB.
4280 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
4282 (grub_openbsd_bootarg_pcibios): New struct.
4283 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
4286 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4288 * tests/util/grub-shell.in: Trim firmware output on EFI.
4290 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4292 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
4293 and coreboot since it's already in kernel.
4295 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4297 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
4298 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
4299 to here. New return value start. All users updated.
4300 Recursively scan linear mappings.
4301 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
4303 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
4304 Use grub_util_get_dm_node_linear_info.
4305 * util/getroot.c (convert_system_partition_to_system_disk): Use
4306 grub_util_info rather than grub_dprintf.
4307 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
4309 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4311 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
4313 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
4314 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
4316 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4318 * include/grub/types.h (grub_set_unaligned64): New function.
4319 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
4322 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4324 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
4325 (grub_ofdisk_fini): Quiesce USB devices.
4327 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4329 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
4332 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4334 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
4336 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4338 * grub-core/disk/pata.c (grub_pata_pio_read)
4339 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
4340 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
4342 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4344 Extend automated tests to qemu-mips.
4346 * Makefile.am: reorganise tests and enable qemu-mips.
4347 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
4348 * grub-core/tests/boot/linux.init-mips.S: New file.
4349 * tests/partmap_test.in: Handle ata0 disks.
4350 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
4353 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4355 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
4357 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
4360 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4362 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
4363 (grub_halt): Likewise.
4364 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
4366 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4368 * grub-core/term/serial.c (grub_serial_register)
4369 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
4370 the behaviour in line with x86 platforms.
4372 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4374 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
4375 (grub_ata_strncpy): Likewise.
4376 (grub_ata_identify): Add missing byteswaps.
4378 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4380 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
4382 (screen_read_char): Likewise.
4383 (grub_vga_text_cls): Likewise.
4385 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4387 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
4389 (make_file_path): Likewise.
4391 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4393 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
4395 Tested by: Paulo Flabiano Smorigo.
4396 Crucial information about API supplied by: Coleen <Last name unknown>.
4397 Reviewed by: Coleen <Last name unknown>.
4399 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4401 * util/grub-mkimage.c: Disable -Wcast-align.
4403 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4405 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
4408 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4410 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
4412 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4414 * util/grub-probe.c (escape_of_path): Fix double free.
4416 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4418 * grub-core/commands/videoinfo.c (hook): Show pitch.
4420 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4422 * util/grub.d/20_linux_xen.in: Skip xen-syms.
4424 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4426 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
4427 (probe): Add ieee1275 to OFW devices.
4429 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4431 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
4433 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4435 Handle IBM OFW path.
4437 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
4439 (of_path_of_scsi): Handle vdevice.
4441 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
4443 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
4444 Allocate in multiples of 16 to avoid adding a few bytes free region the
4447 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
4449 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
4450 Allocate in multiples of 16 to avoid adding a few bytes free region the
4452 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
4454 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4456 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
4458 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
4459 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
4461 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
4463 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
4465 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4467 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
4468 resulted in \\ at the end of the line.
4470 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4472 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
4473 (grub_parser_cmdline_state): Likewise.
4474 (grub_parser_split_cmdline): Likewise.
4476 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4478 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
4479 /dev/root and /dev/dm-*.
4481 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4483 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
4484 fix partially stale display.
4486 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4488 * grub-core/normal/menu_entry.c (backward_char): Use right line for
4491 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4493 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
4494 Fix MBR remapping workaround.
4495 (grub_util_biosdisk_read) [__linux__]: Likewise.
4497 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
4499 * util/grub-install.in: Check for ieee1275 and not ieee1276.
4501 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4503 * configure.ac: Bump to beta6.
4505 2012-05-31 Christer Weinigel <christer@weinigel.se>
4507 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
4509 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4511 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
4512 (grub_cmd_linux): Likewise.
4514 2012-05-31 Christer Weinigel <christer@weinigel.se>
4518 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
4519 (GRUB_EHCI_MULT_TWO): Likewise.
4520 (GRUB_EHCI_MULT_THREE): Likewise.
4521 (GRUB_EHCI_CMASK_MASK): New enum value.
4522 (GRUB_EHCI_SMASK_MASK): Likewise.
4523 (GRUB_EHCI_CMASK_OFF): Likewise.
4524 (GRUB_EHCI_SMASK_OFF): Likewise.
4525 (grub_ehci_pci_iter): Enable periodic schedule.
4526 (grub_ehci_parse_notrun): Likewise.
4527 (grub_ehci_restore_hw): Likewise.
4528 (grub_ehci_setup_qh): Set flags for low speed transfers.
4529 (grub_ehci_find_qh): Use periodic list for low speed.
4530 (grub_ehci_setup_transfer): Check periodic queue as well.
4531 (grub_ehci_check_transfer): Likewise.
4532 (grub_ehci_cancel_transfer): Cancel periodic transfer.
4534 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4536 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
4539 2012-05-31 Peter Jones <pjones@redhat.com>
4541 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
4542 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
4543 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
4545 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4547 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
4548 uninited variable. Allocate at least setup_sects.
4550 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4552 Fix handling of EFI with big memory maps.
4554 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
4555 (real_mode_mem): Likewise.
4556 (real_mode_target): Likewise.
4557 (real_mode_pages): Likewise.
4558 (prot_mode_pages): Likewise.
4559 (linux_params): New var.
4560 (linux_cmdline): Likewise.
4561 (free_pages): Don't set real mode variables.
4562 (allocate_pages): Don't allocate real mode memory.
4563 (grub_e820_add_region): Remove the limit.
4564 (grub_linux_boot): Allocate and copy real mode memory.
4565 (grub_linux_unload): Free linux_cmdline.
4566 (grub_cmd_linux): Use temporary storage for parameters.
4567 (grub_cmd_initrd): Likewise.
4568 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
4569 (linux_kernel_params): Make it 1K big.
4571 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4573 * Makefile.util.def: Remove -Wno-format.
4574 * grub-core/Makefile.core.def: Likewise.
4576 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4578 * tests/cmp_unit_test.c: Add missing failure message.
4579 * tests/example_unit_test.c: Likewise.
4580 * tests/printf_unit_test.c: Likewise.
4582 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4584 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
4585 relaxation of protective MBR requirements.
4587 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
4589 * configure.ac: Add condition for COND_HOST_XNU.
4590 * Makefile.util.def (10_xnu): New script.
4591 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
4593 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
4595 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
4598 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
4600 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
4601 Binary on other platforms stays identical.
4603 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4605 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
4608 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4610 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
4612 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4614 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
4615 rather than defining size_t ourselves to avoid conflict.
4617 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4619 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
4620 initialisation to avoid __bzero reference.
4622 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4624 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
4626 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
4627 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
4628 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
4629 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
4630 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
4632 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4634 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
4635 * grub-core/kern/misc.c: Likewise.
4636 * grub-core/loader/i386/xnu.c: Likewise.
4637 * include/grub/i386/tsc.h: Likewise.
4638 * include/grub/symbol.h: Likewise.
4640 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4642 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
4643 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
4646 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4648 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
4649 Implement Apple flavour.
4650 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
4652 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4654 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
4655 (memmove) [__APPLE__]: Likewise.
4656 (memcpy) [__APPLE__]: Likewise.
4657 (memset) [__APPLE__]: Likewise.
4658 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
4659 (memmove) [__APPLE__]: Likewise.
4660 (memcpy) [__APPLE__]: Likewise.
4661 (memset) [__APPLE__]: Likewise.
4663 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4665 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
4668 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4670 * grub-core/normal/main.c (read_config_file): Provide config_file and
4672 * util/grub.d/41_custom.in: Use config_directoy when available.
4674 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4676 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
4677 (grub_bfs_dir): Likewise.
4679 2012-05-27 Peter Jones <pjones@redhat.com>
4681 The old code gives arguments to a printf function which can't work
4682 correctly, and the compiler complains.
4684 * grub-core/tests/example_functional_test.c (example_test): Add
4686 * grub-core/tests/lib/test.c (add_failure): Rewrite.
4687 * include/grub/test.h (grub_test_assert_helper): New declaration.
4688 (grub_test_assert): Use grub_test_assert_helper.
4690 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4692 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
4693 (exfctest): ... this to avoid overlong filenames.
4696 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4698 Handle "." and ".." on squashfs.
4700 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
4701 Make inode numbers into stack.
4702 (grub_squash_read_symlink): Use stack.
4703 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
4704 (make_root_node): Fill stack.
4705 (grub_squash_open): Use stack.
4707 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4709 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
4712 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4714 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
4715 stderr on test calls.
4717 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4719 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
4721 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4723 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
4725 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4727 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
4730 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4732 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
4733 (grub_hfsplus_iterate_dir): Add "." and "..".
4735 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4737 * grub-core/fs/cpio.c (canonicalize): Handle "..".
4738 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
4740 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4742 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
4743 (find_path): Handle "." and "..".
4745 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4747 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
4748 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
4749 (grub_affs_iterate_dir): Handle hardlinks.
4751 2012-05-26 Matthew Garrett <mjg@redhat.com>
4753 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
4754 (grub_efi_console_fini): Likewise.
4755 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
4756 (grub_video_gop_fill_mode_info): Rename to ...
4757 (grub_video_gop_fill_real_mode_info): ... this.
4758 (grub_video_gop_fill_mode_info): New function.
4759 (grub_video_gop_setup): Setup double framebuffer.
4760 (grub_video_gop_get_info_and_fini): Use original framebuffer.
4762 (grub_video_gop_swap_buffers): Copy framebuffer.
4763 (grub_video_gop_fini): Free offscreen buffer.
4764 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
4766 (grub_efi_gop_blt_pixel): New struct.
4768 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
4770 * gentpl.py: Remove error disabling for objconv.
4772 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
4774 * configure.ac: Remove -Wunitialized as it's not available on older
4777 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
4779 Fix extent overflow comparator.
4781 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
4782 (grub_hfsplus_read_block): Set type.
4783 (grub_hfsplus_cmp_extkey): Compare type.
4785 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
4787 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
4789 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
4791 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
4794 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
4796 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
4797 (dejavu_bold_14.pf2): New target.
4799 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
4801 * configure.ac: Fix djvu font detection.
4803 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4805 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
4806 ext* instead of ext2.
4808 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4810 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
4813 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
4815 * docs/grub-dev.texi: Remove dot from .png.
4817 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4819 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
4820 protective entry in any slot.
4821 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
4822 if protective entry is found in any slot.
4824 Protective entry in non-first slot make no sense but is a widespread
4827 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4829 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
4831 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4833 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
4835 (grub_reiserfs_open): Don't free root.
4837 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4839 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
4840 after freeing for safety.
4842 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4844 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
4845 Reported by: Jordan Uggla.
4847 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
4849 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
4850 actual implementation. Specifically, clarify that the grub menu will
4851 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
4854 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
4856 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
4859 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4861 Remove unjustified hard dependency of normal.mod on gfxterm.
4863 * include/grub/term.h (grub_term_output): New member fullscreen.
4864 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
4865 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
4866 (grub_gfxterm): Set .fullscreen.
4867 * grub-core/normal/menu.c (menu_init): Use fullscreen.
4868 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
4870 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4872 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
4873 mentioning possible problems with non-ASCII (non-compliant) ISOs.
4874 Mention case-insensitive AFFS, SFS and JFS.
4876 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4878 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
4880 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4882 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
4885 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4887 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
4888 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
4890 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4892 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
4893 (grub_jfs_mount): Fill caseins.
4894 (grub_jfs_find_file): Respect caseins.
4896 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4898 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
4901 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4903 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
4904 New argument origpath. All users updated.
4906 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4908 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
4909 (read_attr): Ensure that we read start of possibly compressed block.
4911 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4913 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
4914 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
4917 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4919 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
4920 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
4921 (dejavu.pf2): Replace with ...
4922 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
4925 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4927 * util/grub.d/20_linux_xen.in: Add missing line.
4929 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4931 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
4932 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
4933 (grub_utf16_to_utf8): Likewise.
4935 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4937 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
4938 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
4939 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
4940 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
4941 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
4942 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
4944 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4946 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
4949 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4951 * grub-core/fs/udf.c (read_string): Bail out on size=0.
4952 (grub_udf_read_symlink): Handle read_string failure.
4954 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4956 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
4959 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4961 Fix handling of UDF symlinks.
4963 * grub-core/fs/udf.c (read_string): New argument outbuf.
4965 (grub_ufs_read_symlink): Rename to ...
4966 (grub_udf_read_symlink): ... this. All users updated.
4967 Handle symlinks with more than one component.
4969 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4971 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
4972 symlinks. Replace leading colon with a slash.
4974 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4976 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
4979 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4981 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
4982 match in inner node.
4984 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4986 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
4987 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
4988 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
4989 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
4990 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
4991 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
4992 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
4993 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
4994 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
4996 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
4998 Use grub-probe and not cmp to check that disk is empty.
5000 * util/grub-install.in: Use grub-probe for zero-check.
5001 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
5002 (probe): Handle PRINT_ZERO_CHECK.
5003 (argp_parser): Handle -t zero_check.
5005 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5007 Flush block cache on adding disk to device map.
5009 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
5010 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
5012 (read_device_map): Likewise.
5013 (open_device): Flush on opening.
5015 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5017 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
5018 (handle_symlink): Fix off-by-one error.
5019 Canonicalize the target.
5020 (grub_cpio_dir): Canonicalize the name.
5023 (grub_cpio_open): Canonicalize the name.
5025 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5027 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
5030 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5032 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
5033 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
5035 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5037 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
5038 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
5041 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5043 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
5046 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5048 Fix UFS1 big file support.
5050 * grub-core/fs/ufs.c (INODE): Removed.
5051 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
5053 (INODE_MODE): Simplify.
5054 (grub_ufs_inode): Use uint64_t for size and not int64_t.
5055 (grub_ufs_lookup_symlink): Don't use INODE.
5057 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5059 Fix minixfs with non-power-of-two blocks since it's supported by minix.
5061 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
5062 (grub_minix_data): Replace log_block_size with block_size.
5063 (grub_minix_read_file): Use block_size but avoid 64-bit division.
5064 (grub_minix_mount): Fill block_size.
5066 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5068 * configure.ac: Bump to beta5.
5070 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5072 Fix wrapped HFS+ handling.
5074 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
5075 blocks_start. All users updated.
5076 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
5078 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
5080 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5082 Fix long symlinks on reiserfs.
5084 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
5085 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
5086 (grub_reiserfs_iterate_dir): Save size for non-directories.
5087 (grub_reiserfs_open): Don't reread stat block as we already know the
5089 (grub_reiserfs_read): Split into...
5090 (grub_reiserfs_read_real): ... and ...
5091 (grub_reiserfs_read): ...this.
5093 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5095 Fix non-indexed JFS.
5097 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
5098 (grub_jfs_data): New field namecomponentlen.
5099 (grub_jfs_mount): Fill namecomponentlen.
5100 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
5102 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5104 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
5105 * tests/grub_script_echo1.in: Add tests.
5107 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5109 * util/grub-install.in: Ignore empty devicetree directory.
5111 2012-05-08 Bean <bean123ch@gmail.com>
5113 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
5115 (free_rsm): Free header as well.
5116 (free_old_fragments): Fix memory leak.
5117 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
5118 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
5119 (destroy_pq): Likewise.
5120 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
5122 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5124 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
5125 resulting hash as a precaution.
5127 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5129 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
5130 '_' in variable names.
5131 * grub-core/net/net.c (grub_net_network_level_interface_register):
5134 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5136 Fix AFFS with non-512B blocks.
5138 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
5139 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
5140 (grub_affs_data): Replace blocksize with log_blocksize.
5141 (grub_affs_read_block): Fix non-512B blocks.
5142 (grub_affs_read_symlink): Likewise.
5143 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
5144 (grub_affs_read): Fix non-512B blocks.
5145 (grub_affs_label): Likewise.
5146 (grub_affs_mtime): Likewise.
5147 (grub_affs_mount): Fix block detection routine.
5149 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5151 Add filesystem mtime to AFFS.
5153 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
5154 (aftime2ctime): New function.
5155 (grub_affs_dir): Use aftime2ctime.
5156 (grub_affs_label): Fix return value.
5157 (grub_affs_mtime): New function.
5158 (grub_affs_fs): Add mtime.
5160 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5162 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
5165 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5167 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
5170 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5172 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
5174 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5176 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
5178 (FLAGS_CASE_SENSITIVE): New enum value.
5179 (cache_entry): New struct.
5180 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
5181 cache_size and cache.
5182 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
5183 Add log_blocksize and fshelp_flags.
5184 (grub_sfs_read_extent): Handle non-512 blocks.
5185 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
5186 (grub_sfs_read_file): Handle non-512 blocks.
5187 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
5189 (grub_sfs_read_symlink): Handle non-512 blocks.
5190 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
5191 (grub_sfs_dir): Free cache.
5192 (grub_sfs_close): Likewise.
5194 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
5196 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
5199 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
5201 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
5203 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
5205 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
5207 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
5209 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
5210 (grub_sfs_read_extent): Likewise.
5211 (grub_sfs_read_block): Likewise.
5212 (grub_sfs_mount): Likewise.
5213 (grub_sfs_iterate_dir): Likewise.
5214 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
5215 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
5217 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5219 Fix errors on compressed NTFS with 512B clusters.
5221 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
5223 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
5225 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
5226 Relax check for inline extents.
5227 (ntfscomp): Return correct -1 on error and not 0.
5229 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5231 * util/grub-install.in: Fix handling of prefix containing spaces.
5233 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5235 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
5236 (grub_squash_read_data): Fix offset byte-swapping.
5238 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5240 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
5241 per common usage and preffered in several parts of code.
5242 (grub_memcmp): Likewise.
5243 (grub_strncmp): Likewise.
5244 * include/grub/misc.h (grub_strcasecmp): Likewise.
5245 (grub_strncasecmp): Likewise.
5246 * Makefile.util.def (cmp_test): New test.
5247 (grub_script_strcmp): Likewise.
5248 * tests/cmp_unit_test.c: New file.
5249 * tests/grub_script_strcmp.in: Likewise.
5250 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
5252 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5254 * include/grub/pci.h: Move enums into no-asm part.
5256 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5258 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
5260 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5262 * util/getroot.c (find_hurd_root_device): Try to make error message
5263 and comments to translators clearer.
5265 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5267 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
5269 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5271 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
5274 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5276 * docs/grub.cfg: Update.
5278 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5280 * docs/grub.texi (PXE): Remove not present variables.
5282 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5284 * grub-core/net/net.c (defserver_set_env): New function.
5285 (defserver_get_env): Likewise.
5286 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
5288 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5290 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
5293 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5295 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
5296 * grub-core/kern/emu/hostdisk.c: Likewise.
5298 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5300 Handle hurd userspace partitions.
5302 * util/getroot.c (find_hurd_root_device): New function.
5303 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
5305 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5307 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
5309 Reported by: Bastian Blank.
5311 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5313 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
5314 crossing page boundary.
5316 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5318 Fix B-tree search in BFS, especially in presence of non-ASCII
5321 * grub-core/fs/bfs.c (bfs_strcmp): New function.
5322 (find_in_b_tree): Use standard bsearch + btree algorithm.
5324 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5326 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
5329 2012-05-03 Matthew Garrett <mjg@redhat.com>
5330 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5332 Suspend broadcom cards in order to stop their DMA.
5334 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
5335 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
5336 (pci): Don't build on x86 EFI.
5337 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
5338 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
5340 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
5341 stop_broadcom if running on EFI.
5342 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
5343 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
5344 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
5345 (grub_pci_find_capability): New proto.
5347 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5349 * docs/grub.texi: Remove dot from the extension as it apparently
5350 doesn't work with some makeinfo versions.
5352 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5354 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
5355 with GRUB expectance.
5357 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5359 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
5361 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5363 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
5364 zero after directory block since last entry may be not 0-terminated if
5365 it ends on block boundary. Use continue instead of if spanning whole
5368 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5370 Support 4K sectors UDF inline files.
5372 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
5373 (grub_udf_extended_file_entry): Likewise.
5374 (grub_fshelp_node): Name the anonymous union. Put block at the end.
5376 (get_fshelp_size): New function.
5377 (grub_udf_read_icb): Read whole block.
5378 (grub_udf_iterate_dir): Likewise.
5379 (grub_udf_dir): Likewise.
5380 (grub_udf_open): Likewise.
5382 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5384 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
5386 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5388 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
5389 inline symlinks in addition to workaround.
5391 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5393 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
5395 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5397 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
5399 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5401 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
5403 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5405 Fix reiserfs big seek times.
5407 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
5408 exact. All users updated.
5409 (grub_reiserfs_read): Use nearest btree search for seeking.
5410 Fix return value on error.
5412 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5414 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
5416 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
5417 * docs/grub.texi: Update menuentry description.
5419 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5421 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
5422 crash when embedding onto filesystem.
5424 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5426 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
5429 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5431 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
5433 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5435 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
5438 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5439 2012-05-01 Bean <bean123ch@gmail.com>
5441 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
5443 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5445 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
5446 Special behaviour for len = 0 to read whole file isn't used anywhere and
5447 can cause buffer ovewrflows in several places.
5449 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5451 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
5453 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5455 Handle RAIDZ on non-512B sectors.
5457 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
5458 max_children_ashift.
5459 (fill_vdev_info_real): Fill max_children_ashift.
5460 (read_device): Use max_children_ashift.
5462 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5464 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
5466 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5468 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
5470 * docs/grub.texi: Update device.map parts.
5472 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5474 Don't scan into non-diskfilter devices having diskfilter names.
5476 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
5477 (scan_disk): New argument accept_diskfilter. Fix recursion depth
5479 (scan_disk_hook): New function.
5481 2012-04-29 Bean <bean123ch@gmail.com>
5483 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
5486 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
5488 * configure.ac: Detect starfield theme font path
5489 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
5491 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5493 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
5494 geometry on serial consoles.
5496 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5498 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
5499 because of network consoles.
5501 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5503 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
5506 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5508 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
5511 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5513 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
5514 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
5516 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5518 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
5519 Allocate at lest 8192 for temporary buffer as required for lzo.
5521 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5523 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
5524 to cluster_bits, since it's already added in.
5525 (grub_fat_read_data): Likewise.
5527 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5529 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
5530 as long as cluster size is multiple of 512 bytes.
5532 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
5534 * util/grub-mkrescue.in: Fix locale directory.
5536 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
5538 * grub-core/kern/emu/hostdisk.c (map): Make static.
5540 2012-04-23 Bean <bean123ch@gmail.com>
5542 * util/grub-fstest.c (fstest): Add missing break.
5544 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
5548 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
5549 not define nr variable.
5550 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
5551 find_root_devices_from_poolname, find_root_devices_from_libzfs,
5552 grub_find_device): Do not define.
5554 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
5556 Fix kfreebsd compile and behaviour.
5558 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
5560 * util/getroot.c: Fix wait.h include.
5561 (grub_guess_root_devices): Error if grub_find_device fails.
5562 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
5563 (grub_util_get_dev_abstraction): Likewise.
5564 (grub_util_pull_device): Likewise.
5565 (grub_util_get_grub_dev): Likewise.
5566 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
5568 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
5570 Fix and unify wholedisk detection.
5572 * util/getroot.c (convert_system_partition_to_system_disk): New argument
5573 is_part. All users updated.
5574 (device_is_wholedisk): Removed.
5575 (grub_util_biosdisk_get_grub_dev): Use is_part.
5577 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5579 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
5582 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5584 * configure.ac: Bump to beta4.
5586 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5588 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
5589 --fs-uuid --set UUID syntax.
5591 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5593 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
5596 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5598 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
5600 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
5602 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
5604 2012-04-18 Mike Gilbert <floppym@gentoo.org>
5606 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
5608 2012-04-18 Bean <bean123ch@gmail.com>
5610 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
5613 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5615 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
5617 (grub_util_biosdisk_read): Handle Linux partitions not exactly
5618 corresponding to GRUB partitions.
5619 (grub_util_biosdisk_write): Likewise.
5621 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5623 Scan mdraid before LVM.
5625 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
5626 (grub_diskfilter_register_front): ... this.
5627 (grub_diskfilter_register_back): New function.
5628 All users of grub_diskfilter_register updated.
5630 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5632 * util/grub-install.in: Fix an automatic target detection bug.
5634 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5636 * util/grub-install.in: New option --efi-directory.
5638 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5640 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
5641 boot services if we have no other choice.
5643 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5645 * util/grub-mknetdir.in: Rename --override-directory to --directory and
5647 * tests/util/grub-shell.in: Update to --directory.
5649 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
5651 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
5653 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
5655 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
5656 (grub_minix_read_file): Likewise.
5657 (grub_minix_read_inode): Likewise.
5658 (grub_minix_find_file): Likewise.
5659 (grub_minix_dir): Likewise.
5661 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
5663 * util/grub-setup.c (setup): Fix partition handling and blocklist
5666 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
5668 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
5669 redundant buggy overlap check.
5671 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5673 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
5676 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5678 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
5679 kh.loadflags on pre-2.00 kernels.
5681 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5683 Terminate UNDI and PXE before launching the payload to avoid problems
5686 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
5687 (grub_loader_flags): ... this. All users updated.
5688 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
5689 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
5690 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
5691 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
5693 (grub_pxe_restore): Likewise.
5694 (fini_hnd): New var.
5695 (GRUB_MOD_INIT): Register shutdown hook.
5696 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
5697 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
5698 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
5699 (grub_loader_set): Rename second argument to flags.
5701 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5703 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
5705 (grub_get_num_of_utf8_bytes): New function.
5706 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
5707 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
5709 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
5710 (grub_ucs4_to_utf8): Change return type.
5712 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5714 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
5716 * grub-core/fs/bfs.c (hop_level): Likewise.
5717 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
5719 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5721 * grub-core/lib/adler32.c: Recode due to license unclearness.
5723 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5725 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
5726 (test_header): Likewise.
5728 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5730 Fix --help formatting.
5732 * util/grub-mkconfig_lib.in (print_option_help): New function.
5733 (grub_fmt): Likewise.
5734 * util/grub-install.in: Use print_option_help and grub_fmt.
5735 * util/grub-kbdcomp.in: Likewise.
5736 * util/grub-mkconfig.in: Likewise.
5737 * util/grub-mknetdir.in: Likewise.
5738 * util/grub-mkrescue.in: Likewise.
5739 * util/grub-mkstandalone.in: Likewise.
5740 * util/grub-reboot.in: Likewise.
5741 * util/grub-set-default.in: Likewise.
5742 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5744 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5746 * linguas.sh: Remove autogenerated *.po.
5748 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5750 * po/README: Move language fetcing to ...
5751 * linguas.sh: ... here.
5752 * po/README: Point to linguas.sh.
5754 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5756 * po/README: Exclude ko.po due to disclaimer problems.
5758 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5760 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
5762 (grub_gettext_translate_real): Handle 0th string.
5763 (grub_gettext_translate): Ensure that "" isn't translated.
5765 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5767 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
5768 TRANSLATORS comment.
5769 (grub_diskfilter_print_partmap): Propagate changing of error into
5772 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5774 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
5775 to uint64_t to prevent overflow.
5776 (grub_diskfilter_lv): Increase start_extent and extent_count
5777 to uint64_t to prevent overflow.
5779 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5781 * configure.ac: Increase version.
5783 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5785 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
5787 * po/Rules-translit: New file.
5788 * po/arabic.sed: Likewise.
5789 * po/cyrillic.sed: Likewise.
5790 * po/greek.sed: Likewise.
5791 * po/hebrew.sed: Likewise.
5792 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
5793 * po/Makefile.in.in: Add extra_dist4.
5795 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5797 Handle big-endian minixfs (fixes minixfs tests on bigendian).
5799 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
5800 modify names. Introduce MODE_BIGENDIAN.
5801 * grub-core/fs/minix_be.c: New file.
5802 * grub-core/fs/minix2_be.c: Likewise
5803 * grub-core/fs/minix3_be.c: Likewise.
5804 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
5806 * grub-core/Makefile.core.def (minix_be): New module.
5807 (minix2_be): Likewise.
5808 (minix3_be): Likewise.
5810 2012-04-01 Felix <email@hamburg.de>
5812 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
5813 (devs): Add MBP 2011.
5815 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5817 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
5819 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5821 * grub-core/normal/cmdline.c (print_completion): New field
5823 (grub_cmdline_get): Handle width properly.
5825 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5827 * grub-core/commands/lsacpi.c (options): Add missing terminator.
5829 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5831 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
5832 after 29th of February.
5834 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5836 Fix exfat endianness handling.
5838 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
5839 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
5840 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
5841 Byte-swap utf16 when necessary.
5842 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
5844 2012-03-31 Anton Blanchard <anton@samba.org>
5845 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5847 Fix btrfs endianness handling.
5849 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
5850 (lower_bound): Make root uint64_t. Use root in le.
5851 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
5852 (find_path): Fix template key init.
5853 (grub_btrfs_dir): Fix mtime byteswap.
5854 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
5856 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5858 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
5859 recursion_depth. Break infinite resursions. All users updated.
5861 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5863 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
5865 Reported by: Peter Jones.
5867 2012-03-31 Anton Blanchard <anton@samba.org>
5869 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
5872 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5874 * util/grub-install.in: Fix nvram call for PreP.
5876 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5878 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
5879 the error when some elements are missing into a warning.
5881 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5883 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
5885 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
5887 * docs/grub.texi (Invoking grub-probe): New section.
5888 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
5890 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
5892 Fix tab and wide character handling in editor and menu.
5894 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
5895 agglomerate control characters with combining marks.
5896 (bidi_line_wrap): Allow break on tab.
5897 (grub_unicode_get_comb_start): New function.
5898 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
5900 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
5902 * grub-core/normal/term.c (print_ucs4_terminal): New argument
5903 fixed_tab_size. All users updated.
5904 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
5905 (grub_term_getcharwidth): Handle \t.
5906 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
5909 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5911 Handle big-endian mdraid.
5913 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
5914 * grub-core/Makefile.core.def (mdraid09_be): New module.
5915 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
5916 rather than grub_le_to_cpu* and grub_cpu_to_le*.
5917 * grub-core/disk/mdraid_linux_be.c: New file.
5919 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5921 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
5923 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5925 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
5926 missing quotes which caused confusion among translators.
5928 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5930 * util/grub-mkconfig_lib.in: Fix typo.
5932 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5934 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
5936 * tests/grub_script_leading_whitespace.in: New file.
5937 * Makefile.util.def (grub_script_leading_whitespace): New test.
5939 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5941 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
5944 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5946 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
5947 starts with control character.
5949 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5951 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
5953 (grub_gdb_outbuf): Likewise.
5955 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5957 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
5958 zero terminator. Fixes a crash.
5960 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5962 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
5964 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
5965 images independently of preffered adderss field.
5967 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5969 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
5970 * grub-core/commands/regexp.c: Likewise.
5971 * grub-core/loader/i386/linux.c: Likewise.
5972 * grub-core/partmap/msdos.c: Likewise.
5973 * grub-core/script/execute.c: Likewise.
5974 * grub-core/term/gfxterm.c: Likewise.
5976 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5978 Add variable parsing in $"..." and fix several mismatches with bash.
5980 * Makefile.util.def (grub_script_gettext): New test.
5981 * grub-core/script/execute.c (parse_string): New function.
5982 (gettext_append): Likewise.
5983 (grub_script_arglist_to_argv): Use gettext_append.
5984 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
5985 * tests/grub_script_gettext.in: New file.
5987 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5989 Fix handling of leading spaces in scripts.
5991 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
5993 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
5994 other than skipping \r. All users updated.
5995 * tests/grub_script_echo1.in: Add space-related tests.
5996 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
5998 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
6000 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
6002 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6004 * configure.ac: Bump up the version to beta2.
6006 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6008 Fix gettext reload bugs (e.g. inability to disable gettext
6011 * grub-core/gettext/gettext.c: Encapsulate all static variables in
6012 main_context and secondary_context. All functions updated.
6013 (grub_gettext_translate): Rename to ...
6014 (grub_gettext_translate_real): ... this. Return NULL on failed
6016 (grub_gettext_translate): Handle secondary context.
6017 (grub_gettext_delete_list): Close file and zero-out the context.
6018 (grub_mofile_open): Don't call grub_gettext_delete_list.
6020 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
6021 if locale="" to avoid pointless error message.
6022 (grub_gettext_env_write_lang): Update lang even if load fails.
6023 Handle secondary context.
6024 (grub_gettext_reread_prefix): New function.
6025 (read_main): Likewise.
6026 (read_secondary): Likewise.
6027 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
6028 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
6029 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
6030 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
6032 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6034 * configure.ac: Decrease warning level to avoid spurious warnings and
6035 to be able to compile with GCC 4.2.
6036 * Makefile.util.def: Remove -Wno-error=logical-op.
6038 2012-03-10 William Bittner <william.bittner@gmail.com>
6040 * util/import_unicode.py: Add missing brackets around string for
6043 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6045 Fix efi chainloader on network root.
6047 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
6049 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
6052 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6054 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
6055 unused show_text member.
6056 * docs/grub.texi: Document "text" property.
6058 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6060 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
6063 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6065 Fix IMSM handling on Fedora.
6067 * util/getroot.c (grub_util_is_imsm): New function.
6068 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
6070 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6072 * Makefile.am: Strip gold section.
6073 * conf/Makefile.common: Likewise.
6074 * gentpl.py: Likewise.
6075 * grub-core/Makefile.core.def: Likewise.
6076 * grub-core/genmod.sh.in: Likewise.
6078 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6080 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
6081 * util/grub.d/20_linux_xen.in: Likewise.
6082 Based on Debian patch.
6084 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6086 * util/grub.d/10_linux.in: Fix syntax error resulting in
6087 Richard Laager's patch.
6088 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
6090 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6092 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
6095 2012-03-10 Richard Laager <rlaager@wiktel.com>
6097 * util/grub.d/10_linux.in: Fix ZFS root passing.
6099 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6101 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
6102 * grub-core/commands/xnu_uuid.c: Likewise.
6103 * grub-core/loader/efi/appleloader.c: Likewise.
6104 * grub-core/script/execute.c: Likewise.
6105 * grub-core/script/main.c: Likewise.
6106 * util/grub-mkfont.c: Likewise.
6108 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6110 * util/grub-mkfont.c (options): Use more appropriate "select" that
6111 "set" for face index.
6113 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6115 * util/grub-editenv.c (options): Gettextize command summaries.
6117 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6119 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
6120 "out of memory" error messagge.
6122 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6124 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
6125 of diskfilter for diskfilter on diskfilter support.
6127 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6129 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
6131 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6133 * util/grub-install.in: Check for themes/starfield/theme.txt and not
6136 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6138 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
6140 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6142 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
6144 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6146 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
6149 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
6151 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
6153 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
6155 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
6157 * util/grub-install.in: Fix and gettextize error message.
6159 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6161 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
6163 * util/grub-mount.c (options): Likewise.
6165 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6167 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
6169 * grub-core/commands/search_wrap.c (options): Likewise.
6171 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6173 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
6175 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6177 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
6179 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
6182 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6184 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
6185 "temporary" since it's used in identifier and is limited in space.
6187 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6189 * po/POTFILES.in: Regenerate. Include *.h since they contain
6190 translatable strings as well.
6192 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6194 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
6195 byte-swap on big-endian.
6196 Reported by: Lennart Sorensen
6198 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
6200 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
6201 (allocate_pages): Improve dprintf.
6202 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
6203 code32_start. Fill code32_start and kernel_alignment in params.
6204 (grub_cmd_initrd): Use prot_init_space.
6206 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6208 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
6210 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6212 * util/grub-install.in: Add missing dot at the end of sentence.
6214 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6216 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
6217 * grub-core/commands/videotest.c: Likewise.
6218 * grub-core/loader/i386/linux.c: Likewise.
6220 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6222 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
6224 Reported by: Milo Casagrande.
6226 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6228 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
6229 * grub-core/commands/gptsync.c: Likewise.
6230 * grub-core/commands/hashsum.c: Likewise.
6231 * grub-core/commands/i386/pc/sendkey.c: Likewise.
6232 * grub-core/commands/legacycfg.c: Likewise.
6233 * grub-core/io/gzio.c: Likewise.
6234 * grub-core/net/net.c: Likewise.
6235 * grub-core/term/gfxterm.c: Likewise.
6236 * grub-core/term/terminfo.c: Likewise.
6237 * grub-core/tests/test_blockarg.c: Likewise.
6238 * grub-core/video/video.c: Likewise.
6239 * util/grub-install.in: Likewise.
6240 * util/grub-mkfont.c: Likewise.
6242 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6244 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
6246 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6248 * grub-core/commands/search_wrap.c (options): Fix a typo.
6249 Reported by: David Prévot.
6251 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6253 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
6256 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6258 * util/grub-script-check.c (main): Fix a syntax error message which was
6261 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6263 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
6265 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6267 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
6270 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6272 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
6274 * util/grub-mount.c (options): Likewise.
6276 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6278 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
6280 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6282 * grub-core/net/http.c: Add TRANSLATORS comments.
6283 * grub-core/normal/cmdline.c: Likewise.
6284 * grub-core/normal/misc.c: Likewise.
6285 * grub-core/partmap/msdos.c: Likewise.
6286 * grub-core/parttool/msdospart.c: Likewise.
6287 * grub-core/script/execute.c: Likewise.
6288 * grub-core/script/main.c: Likewise.
6289 * grub-core/term/terminfo.c: Likewise.
6290 * grub-core/video/bitmap.c: Likewise.
6291 * util/grub-install.in: Likewise.
6292 * util/grub-mkimage.c: Likewise.
6293 * util/grub-mklayout.c: Likewise.
6294 * util/grub-setup.c: Likewise.
6296 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6298 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
6299 with similar messages in grub-fstest.
6301 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6303 * util/grub-install.in: Unify "option requires an argument" message
6304 with similar messages in other files.
6305 * util/grub-mkconfig.in: Likewise.
6307 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6309 * util/grub-set-default.in: Replace printf with gettext_printf (the
6310 string in in question is already translated from grub-reboot)
6312 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6314 * configure.ac: Bump up the version to beta1.
6316 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6318 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
6319 case when min_align = 0.
6321 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6323 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
6324 and fix a case when line_start overflows.
6326 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6328 * util/grub-reboot.in (usage): Mention id posibility.
6329 * util/grub-set-default.in (usage): Likewise.
6331 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6333 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
6334 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
6335 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
6336 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
6337 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
6338 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6339 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6341 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6343 * grub-core/commands/menuentry.c (options): Remove
6344 GRUB_ARG_OPTION_REPEATABLE.
6345 Reported by: Andreas Vogel
6347 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
6349 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
6351 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
6353 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
6356 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6358 Use sort -V by the idea of Georgi Georgiev.
6360 * util/grub-mkconfig_lib.in (version_sort): New function.
6361 (version_test_numeric): Use version_sort.
6363 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6365 Use submenus in grub-mkconfig.
6367 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
6368 * util/grub-mkconfig_lib.in (grub_quote): New function.
6369 (gettext_printf): Use gettext and not gettext_quoted to fix several
6371 * util/grub.d/10_hurd.in: Use submenus.
6372 * util/grub.d/10_kfreebsd.in: Likewise.
6373 * util/grub.d/10_linux.in: Likewise.
6374 * util/grub.d/10_netbsd.in: Likewise.
6375 * util/grub.d/20_linux_xen.in: Likewise.
6376 * util/grub.d/30_os-prober.in: Likewise.
6377 * util/grub.d/10_illumos.in: Add missing quoting.
6378 * util/grub.d/10_windows.in: Likewise.
6380 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6382 Fix menu title instability bug.
6384 * grub-core/commands/menuentry.c (options): New option --id.
6385 (grub_normal_add_menu_entry): New argument id. All users updated.
6386 (grub_cmd_menuentry): Handle --id.
6387 (grub_menu_init): Accept unknown arguments.
6388 * grub-core/normal/main.c (features): Add feature_menuentry_id and
6389 feature_menuentry_options.
6390 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
6392 (get_entry_number): Match with id as well.
6393 * include/grub/menu.h (grub_menu_entry): New member id.
6394 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
6395 * util/grub.d/00_header.in: Define menuentry_id_option.
6396 * util/grub.d/10_hurd.in: Define id.
6397 * util/grub.d/10_illumos.in: Likewise.
6398 * util/grub.d/10_kfreebsd.in: Likewise.
6399 * util/grub.d/10_linux.in: Likewise.
6400 * util/grub.d/10_netbsd.in: Likewise.
6401 * util/grub.d/10_windows.in: Likewise.
6402 * util/grub.d/20_linux_xen.in: Likewise.
6403 * util/grub.d/30_os-prober.in: Likewise.
6405 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6407 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
6408 "scope" with "body".
6410 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6412 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
6413 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
6414 prot_size and prot_file_size.
6416 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6418 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
6419 All users updated. If easily=1 require raid-5/-6 to be full.
6420 (is_node_readable): Likewise.
6421 (scan_devices): Scan incomplete but readable LVs at the end.
6422 (grub_diskfilter_memberlist): Pull missing devices.
6423 (insert_array): Skip scanning until device is complete or scan is
6425 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
6427 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
6428 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
6430 2012-03-03 Matthew Garrett <mjg@redhat.com>
6431 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6433 Avoid EFI boot services when loading Linux.
6435 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
6436 avoid_efi_bootservices. All users updated.
6437 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
6438 argument avoid_efi_bootservices. All users updated.
6439 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
6440 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
6441 align, min_align, relocatable, prefered_address. All users updated.
6442 Allocate avoiding boot services if kernel is relocatable.
6443 (grub_cmd_linux): Check if kernel is relocatable.
6444 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
6445 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
6446 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
6447 avoid_efi_boot_services.
6448 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
6449 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
6450 (linux_kernel_params): Likewise.
6452 2012-03-03 Matthew Garrett <mjg@redhat.com>
6453 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6457 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
6459 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
6460 modes. Set gop_handle.
6461 (grub_video_gop_get_edid): New function.
6462 (grub_gop_get_preferred_mode): Likewise.
6463 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
6464 (grub_video_efi_gop_adapter): Set .get_edid.
6465 * include/grub/efi/edid.h: New file.
6466 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
6468 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6470 * util/grub-install.in: Load efivars unconditionally.
6472 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6474 * po/Rules-piglatin: Change suffix from .po-update-en to
6475 .po-update-en-piglatin.
6477 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6481 * po/piglatin.sed: New file.
6482 * po/en@piglatin.header: Likewise.
6483 * po/Rules-piglatin: Likewise.
6484 * po/README: Add en@piglatin to autogenerated languages.
6486 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6488 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
6490 * grub-core/commands/hdparm.c (options): Use "Display" rather than
6491 "Check" since we don't check anything.
6492 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
6494 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
6495 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
6496 (grub_md_sha512_real): Likewise.
6498 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6500 * grub-core/commands/gptsync.c: Fix typographic quoting.
6501 * grub-core/commands/ieee1275/suspend.c: Likewise.
6502 * grub-core/commands/parttool.c: Likewise.
6503 * grub-core/commands/search_wrap.c: Likewise.
6504 * grub-core/commands/videoinfo.c: Likewise.
6505 * grub-core/gfxmenu/gui_label.c: Likewise.
6506 * grub-core/hello/hello.c: Likewise.
6507 * grub-core/kern/emu/main.c: Likewise.
6508 * grub-core/net/net.c: Likewise.
6509 * grub-core/normal/menu.c: Likewise.
6510 * grub-core/normal/menu_text.c: Likewise.
6511 * grub-core/normal/misc.c: Likewise.
6512 * util/grub-editenv.c: Likewise.
6513 * util/grub-install.in: Likewise.
6514 * util/grub-kbdcomp.in: Likewise.
6515 * util/grub-mkconfig.in: Likewise.
6516 * util/grub-mknetdir.in: Likewise.
6517 * util/grub-mkrescue.in: Likewise.
6518 * util/grub-mkstandalone.in: Likewise.
6519 * util/grub-reboot.in: Likewise.
6520 * util/grub-set-default.in: Likewise.
6521 * util/grub-setup.c: Likewise.
6522 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6524 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6526 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
6527 * grub-core/commands/keystatus.c: Likewise.
6528 * grub-core/commands/loadenv.c: Likewise.
6529 * grub-core/commands/probe.c: Likewise.
6530 * grub-core/commands/regexp.c: Likewise.
6531 * grub-core/commands/true.c: Likewise.
6532 * grub-core/commands/videoinfo.c: Likewise.
6533 * grub-core/disk/cryptodisk.c: Likewise.
6534 * grub-core/disk/ldm.c: Likewise.
6535 * grub-core/disk/loopback.c: Likewise.
6536 * grub-core/disk/luks.c: Likewise.
6537 * grub-core/fs/zfs/zfsinfo.c: Likewise.
6538 * grub-core/kern/disk.c: Likewise.
6539 * grub-core/kern/emu/hostdisk.c: Likewise.
6541 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6543 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
6544 * util/grub-install.in: Add missing quote in the comment.
6546 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6548 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
6549 * grub-core/commands/lsmmap.c: Likewise.
6550 * grub-core/commands/minicmd.c: Likewise.
6551 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
6552 * grub-core/commands/regexp.c: Likewise.
6553 * grub-core/gdb/gdb.c: Likewise.
6554 * grub-core/term/gfxterm.c: Likewise.
6555 * util/grub-mkconfig.in: Likewise.
6556 * util/grub-mkfont.c: Likewise.
6557 * util/grub-mklayout.c: Likewise.
6558 * util/grub-mknetdir.in: Likewise.
6559 * util/grub-mkrescue.in: Likewise.
6560 * util/grub.d/30_os-prober.in: Likewise.
6562 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6564 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
6565 with "Direct color" and "Packed" with "Packed pixel".
6566 (grub_cmd_videoinfo): Simplify legend.
6568 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6570 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
6571 absolutely unclear error message.
6573 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6575 * util/grub-mkstandalone.in: Remove confusing leftover print.
6577 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6579 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
6581 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
6582 (GRUB_MOD_INIT): Likewise.
6583 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
6585 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
6587 * util/grub-install.in (usage): Likewise.
6588 Spell ID in whole letters.
6589 Add missing ending dot.
6591 * util/grub-reboot.in: Fix capitalisation.
6592 * util/grub-set-default.in: Likewise.
6594 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6596 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
6597 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
6598 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
6599 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
6600 Disable -Werror for -Wdeprecated-declarations.
6601 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
6602 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
6603 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
6604 (grub_util_get_grub_dev): Make luks handling dependent on
6605 HAVE_DEVICE_MAPPER and not __linux__.
6606 (get_win32_path): Fix format security.
6607 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
6608 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
6609 Don't try grub_find_zpool_from_dir.
6610 (grub_make_system_path_relative_to_its_root) [!__linux__]:
6611 #ifdef-out paresdir.
6613 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6615 * util/grub-pe2elf.c (usage): Add missing noreturn.
6616 (write_section_data): Rename name to shname to avoid shadowing.
6617 (write_symbol_table): Rename name to symname to avoid shadowing.
6618 Fix write_reloc_section call.
6620 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6622 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
6623 to ensure that it's after the last byte of .text.
6625 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6627 * util/ieee1275/ofpath.c (my_isdigit): New function.
6628 (trailing_digits): Use my_isdigit.
6629 (strip_trailing_digits): Likewise.
6631 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6633 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
6634 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
6636 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6638 * grub-core/kern/i386/pc/startup.S: Define __start.
6640 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6642 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
6643 strip already transforms he format.
6645 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6647 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
6649 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6651 * util/grub-install.in: Add missing gettext init.
6652 * util/grub-kbdcomp.in: Likewise.
6653 * util/grub-mkconfig.in: Likewise.
6654 * util/grub-mknetdir.in: Likewise.
6655 * util/grub-mkrescue.in: Likewise.
6656 * util/grub-mkstandalone.in: Likewise.
6657 * util/grub-reboot.in: Likewise.
6658 * util/grub-set-default.in: Likewise.
6659 * util/grub.d/00_header.in: Likewise.
6660 * util/grub.d/10_hurd.in: Likewise.
6661 * util/grub.d/10_windows.in: Likewise.
6662 * util/grub.d/30_os-prober.in: Likewise.
6663 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6665 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6667 * po/Rules-swiss: Fix header comment.
6669 2012-02-29 Andreas Vogel <anvoit>
6671 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
6672 resulted in leak of arguments.
6674 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6676 * grub-core/boot/i386/pc/startup_raw.S: Use separate
6677 reed_solomon_size const definition instead of computing it since
6678 Apple assembler doesn't support the later.
6680 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6682 * gentpl.py (kernel): Rewrite Apple part.
6684 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6686 * include/grub/kernel.h (FOR_MODULES): Check module magic.
6688 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6690 * util/grub-mkimagexx.c (locate_sections): Support non-standard
6692 (load_image): Likewise.
6694 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6696 * configure.ac: Fix a typo in previous commit.
6698 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6700 Don't add -Wl,-N on Apple platform.
6702 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
6703 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
6705 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6707 * grub-core/Makefile.core.def (lzma_decompress): Use
6708 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
6710 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6712 * grub-core/genmod.sh.in: Rewrite the Apple part.
6714 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6716 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
6719 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6721 * acinclude.m4 (grub_CHECK_PIC): New test.
6722 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
6724 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6726 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
6727 to avoid the warning.
6729 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6731 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
6732 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
6733 after. All users updated.
6735 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6737 Use the common size routine in hostfs so we can read disks as well.
6739 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
6740 (grub_util_get_fd_size): ... this. Return size in bytes.
6742 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
6743 grub_util_get_fd_size.
6745 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6747 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
6748 Add blocksize retrieval.
6750 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6752 * configure.ac: Restore CFLAGS after efiemu check.
6754 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6756 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
6759 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6761 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
6763 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6765 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
6766 (grub_cmd_halt): Likewise.
6768 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6770 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
6771 for local arithmetics.
6772 Break %sp init into 2 instructions.
6773 Add 0 byte at the end.
6775 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6777 * grub-core/disk/diskfilter.c (read_segment): Initialise err
6780 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6782 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
6785 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6787 * grub-core/disk/ldm.c (make_vg): Init part.name.
6788 (grub_ldm_detect): Silence spurious warning.
6789 (grub_util_is_ldm): Likewise.
6791 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6793 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
6794 sane value to avoid a spurious warning.
6796 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6798 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
6799 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
6801 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6803 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
6804 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
6806 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6808 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
6809 hardcoding the relevant info.
6811 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6813 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
6814 missing const qualifiers.
6815 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
6817 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6819 * util/getroot.c [__APPLE__]: Add missing includes.
6820 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
6822 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6824 * util/grub-mkimage.c (generate_image): Silence spurious warning.
6826 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6828 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
6831 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6833 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
6835 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6837 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
6838 and grub_file_close call.
6840 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6842 Add LZSS Mach-O support (needed for new xnu kernelcache).
6844 * grub-core/Makefile.core.def (xnu): Add file lzss.c
6845 * grub-core/loader/lzss.c: New file.
6846 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
6847 on Mach-O open failure.
6848 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
6849 Don't free cmdsXX in uncompressedXX is set.
6850 (grub_macho_file): Init new fields.
6851 New argument is_64bit. All users updated.
6852 Handle compressed. Error out if no suitable architecture is found.
6854 (grub_macho_open): New argument is_64bit. All users updated.
6855 * grub-core/loader/macho32.c: Add defines for new fields.
6856 * grub-core/loader/macho64.c: Likewise.
6857 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
6858 (grub_macho_parse): Handle compressed.
6859 Defer actual processing if compressed.
6860 (grub_macho_cmds_iterate): Decompress if compressed. New argument
6861 "filename". All users updated.
6862 (grub_macho_size): New argument "filename". All users updated.
6863 (grub_macho_get_entry_point): Likewise.
6864 (grub_macho_load): Handle compressed.
6865 * include/grub/macho.h (grub_macho_lzss_header): New struct.
6866 (GRUB_MACHO_LZSS_OFFSET): New define.
6867 (grub_decompress_lzss): New proto.
6868 * include/grub/machoload.h (grub_macho_file): New fields to handle
6870 (grub_macho_contains_macho64): Remove proto.
6871 (grub_macho_contains_macho32): Likewise.
6872 * util/grub.d/30_os-prober.in: Use kernel cache if available.
6874 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6876 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
6878 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6882 * Makefile.am (starfield_theme_files): New var.
6883 (starfield_DATA): Use starfield_theme_files.
6884 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
6885 Add bootcheck-related files.
6886 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
6887 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
6888 and font_char_metrics.txt.
6889 * grub-core/Makefile.core.def (kernel): Update extra_dist.
6890 (setjmp): Add lib/ia64/longjmp.S.
6891 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
6892 * po/POTFILES.in: Regenerate.
6893 * po/Rules-swiss: use DISTFILES.common.extra2 and not
6894 DISTFILES.common.extra1.
6895 * util/devicemap.c: Removed.
6896 * grub-core/lib/i386/relocator_backward.S: Likewise.
6897 * util/import_gcry.py: Remove unused files. Add extra_dist for
6900 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6902 * grub-core/gettext/gettext.c (grub_mofile_open): Call
6903 grub_gettext_delete_list before changing grub_gettext_max to avoid
6904 running out of array bounds.
6906 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6908 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
6909 grub_vga_text_init/grub_vga_text_fini.
6911 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6913 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
6915 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6917 * configure.ac: Bump to 2.00~beta0.
6919 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6921 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
6922 missing initialisation.
6924 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6926 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
6928 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6930 Support v2 xnu boot arguments.
6932 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
6933 New argument fsbfreq_out.
6934 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
6935 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
6937 * grub-core/loader/machoXX.c (grub_macho_load): New argument
6939 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
6940 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
6941 (grub_xnu_boot_params): Rename to ...
6942 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
6943 (grub_xnu_boot_params_v2): New struct.
6945 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6947 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
6948 zeroing of CRC field before computing CRC.
6950 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6952 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
6953 Change order of allocations to decrease fragmentation.
6955 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6957 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
6959 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
6961 Use write-combining MTRR to speed up video with buggy BIOSes.
6963 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
6964 (cpuid): New define.
6967 (mtrr_base): Likewise.
6968 (mtrr_mask): Likewise.
6969 (grub_vbe_enable_mtrr_entry): New function.
6970 (grub_vbe_enable_mtrr): Likewise.
6971 (grub_vbe_disable_mtrr): Likewise.
6972 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
6973 control off to BIOS.
6974 (grub_video_vbe_init): Fill mtrr.
6975 (grub_video_vbe_fini): Disable mtrr.
6976 (grub_video_vbe_get_info_and_fini): Likewise.
6977 (grub_video_vbe_setup): Enable mtrr.
6979 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
6981 * include/grub/partition.h (grub_partition_map): Change prototype of
6982 embed to take a maximum value for nsectors.
6983 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
6984 * include/grub/fs.h (grub_fs): Likewise.
6985 * grub-core/partmap/msdos.c (embed_signatures): New array.
6986 (pc_partition_map_embed): Check for and avoid sectors matching any
6987 of the signatures in embed_signatures, up to max_nsectors.
6988 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
6989 returned sector map to max_nsectors.
6990 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
6991 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
6992 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
6993 * util/grub-setup.c (setup): Allow for the embedding area being
6994 split into multiple blocklists. Tell dest_partmap->embed the
6995 maximum number of sectors we care about.
6997 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6999 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
7000 Specify blocklist_install and reserver_first_sector for all fs.
7001 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
7004 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7006 * util/grub-install.in: Clarify strings.
7007 Fix source dir check.
7009 2012-02-27 Richard Laager <rlaager@wiktel.com>
7011 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
7012 "zfs" and "fuse.zfs" as synonyms.
7014 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7016 * configure.ac: Put platform and target_cpu substitutions back since
7017 they are used for directories.
7019 2012-02-27 Richard Laager <rlaager@wiktel.com>
7020 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7022 * util/grub.d/10_linux.in: Add ZFS-related arguments.
7023 * util/grub.d/20_linux_xen.in: Likewise.
7025 2012-02-27 Richard Laager <rlaager@wiktel.com>
7027 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
7030 2012-02-27 Richard Laager <rlaager@wiktel.com>
7032 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
7035 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7037 Don't use insecure popen in getroot.
7039 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
7040 (exec_pipe): ... here.
7041 (find_root_devices_from_poolname): Use exec_pipe.
7043 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7045 Remove platform and target_cpu replacement.
7047 * configure.ac: Remove platform and target_cpu substitutions.
7048 * tests/util/grub-shell.in: Use modinfo.
7049 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
7052 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7054 Autodetect platform in grub-install but allow override.
7056 * util/grub-install.in: Autodetect platform. Support --target and
7057 --directory. Read platform from modinfo.sh.
7059 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7061 Support btrfs multi-volume probe.
7063 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
7064 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
7065 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
7066 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
7067 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
7068 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
7069 grub_find_root_devices_from_btrfs if on btrfs.
7071 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7073 Remove any awareness of *.c util files about target.
7075 * Makefile.util.def (grub-setup): Split to ...
7076 (grub-bios-setup): ... and this.
7077 (grub-sparc64-setup): ... and this.
7078 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
7079 * docs/man/grub-setup.h2m: Split into ...
7080 * docs/man/grub-sparc64-setup.h2m: ... this.
7081 * docs/man/grub-bios-setup.h2m: ... and this.
7082 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
7083 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
7084 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
7085 (grub_target_addr_t): Remove.
7086 (grub_target_size_t): Remove.
7087 (grub_target_ssize_t): Remove.
7088 * util/grub-install.in: Use new grub-*-setup.
7089 * util/grub-mkimagexx.c (Elf_Word): New define.
7090 (Elf_Half): Likewise.
7091 (Elf_Section): Likewise.
7092 (ELF_ST_TYPE): Likewise.
7093 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
7094 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
7096 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7098 Replace grub_target_addr with more appropriate types.
7100 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
7101 grub_target_addr with grub_addr.
7102 * grub-core/commands/iorw.c (grub_cmd_read): Replace
7103 grub_target_addr with grub_port.
7104 (grub_cmd_write): Likewise.
7105 * grub-core/commands/memrw.c (grub_cmd_read): Replace
7106 grub_target_addr with grub_addr.
7107 (grub_cmd_write): Likewise.
7108 * grub-core/video/efi_uga.c (find_line_len): Likewise.
7110 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7112 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
7113 const qualifier for vendor_guid.
7115 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7117 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
7119 (efiemu_memequal): Likewise.
7120 (find_variable): Likewise.
7122 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7124 Fix missing console prototype on qemu-mips.
7126 * include/grub/mips/qemu_mips/console.h: New file.
7128 2012-02-27 Matthew Garrett <mjg@redhat.com>
7129 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7131 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
7132 * include/grub/efi/efi.h: Likewise.
7133 * include/grub/efi/api.h: Add guid for EFI-specified variables.
7134 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
7135 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
7136 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
7137 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
7138 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
7140 2012-02-27 Matthew Garrett <mjg@redhat.com>
7142 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
7144 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7146 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
7149 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7151 * configure.ac: Remove inappropriate use of program_transform_name
7152 on grubdir and bootdir but allow explicit specification of those
7155 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7157 * util/grub-mknetdir.in (grub_prefix): Removed.
7158 (subdir): Use @bootdirname@ and @grubdirname@.
7160 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7162 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
7164 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7166 * po/POTFILES.in: Regenerated.
7168 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7170 Remove improper use of program_transform_name on pkglibrootdir.
7172 * configure.ac (pkglibrootdir): Removed.
7173 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
7174 * util/grub-mkimage.c: Likewise.
7176 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7178 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
7181 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7183 * util/grub-install.in: Use file identifier if no UUID is available
7184 or user explicitly prompted for it.
7186 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
7188 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
7189 (freebsd_get_zfs): New function.
7190 (grub_freebsd_boot): Pass zfs UUID.
7191 (grub_cmd_freebsd): Set zfs UUID.
7193 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7195 * conf/Makefile.common (platformdir): Base on pkglibdir and not
7198 2012-02-27 Mike Gilbert <floppym@gentoo.org>
7200 Add configure flag to control libzfs integration.
7202 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
7204 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7206 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
7208 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
7211 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7213 Remove grub_{modname}_init and grub_{modname}_fini. They should never
7214 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
7215 be used on non-modules.
7217 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
7218 Rename to grub_boot_init.
7219 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
7220 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
7221 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
7222 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
7223 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
7224 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
7225 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
7226 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
7228 (grub_machine_init): Remove empty inits.
7229 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
7231 (grub_machine_init): Remove empty inits.
7232 * grub-core/term/arc/console.c: Remove explicit proto.
7233 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
7234 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
7235 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7236 grub_at_keyboard_fini.
7237 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
7238 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
7239 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7241 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
7242 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
7243 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7245 * grub-core/term/ieee1275/console.c: Remove explicit proto.
7246 * grub-core/term/serial.c (GRUB_MOD_INIT)
7247 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
7248 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7250 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
7251 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
7252 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7254 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
7255 (GRUB_MOD_FINI): Likewise.
7256 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
7257 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
7258 (GRUB_MOD_FINI) [LOONGSON]: Rename to
7259 grub_video_radeon_fuloong2e_fini.
7260 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
7261 [LOONGSON]: Rename to grub_video_sis315pro_init.
7262 (GRUB_MOD_FINI) [LOONGSON]: Rename to
7263 grub_video_sis315pro_fini.
7264 * grub-core/video/sm712.c (GRUB_MOD_INIT)
7265 [LOONGSON]: Rename to grub_video_sm712_init.
7266 (GRUB_MOD_FINI) [LOONGSON]: Rename to
7267 grub_video_sm712_fini.
7268 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
7269 (grub_at_keyboard_fini): Likewise.
7270 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
7271 Don't declare grub_{modname}_init.
7272 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
7273 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
7275 (grub_keylayouts_fini) [!EMU]: Likewise.
7276 * include/grub/serial.h (grub_serial_init) [!EMU]:
7278 (grub_serial_fini) [!EMU]: Likewise.
7279 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
7281 (grub_terminfo_fini) [!EMU]: Likewise.
7282 * include/grub/video.h (grub_font_init) [!EMU]:
7284 (grub_font_fini) [!EMU]: Likewise.
7285 (grub_gfxterm_init) [!EMU]: Likewise.
7286 (grub_gfxterm_fini) [!EMU]: Likewise.
7287 (grub_video_sm712_init) [!EMU]: Likewise.
7288 (grub_video_sm712_fini) [!EMU]: Likewise.
7289 (grub_video_sis315pro_init) [!EMU]: Likewise.
7290 (grub_video_sis315pro_fini) [!EMU]: Likewise.
7291 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
7292 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
7294 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7296 Make nand a prefix for nand devices.
7298 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
7300 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7302 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
7303 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
7305 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7307 * include/grub/env.h (grub_env_find): Remove prototype.
7308 * grub-core/kern/env.c (grub_env_find): Make static.
7309 (grub_env_set): Remove useless set.
7311 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7313 * grub-core/kern/i386/realmode.S: Remove useless align.
7315 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7317 * include/grub/dl.h (grub_dl_load_file): Don't export.
7319 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7321 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
7324 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7326 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
7328 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
7329 not reloading whole superblock but only the part which is really needed.
7330 Remove useless grub_errors.
7331 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
7334 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7336 Don't export grub_get_rtc.
7338 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
7339 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
7341 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7343 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
7345 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7347 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
7348 argument since it can be deduced from diskfilter. All users updated.
7350 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7354 * include/grub/list.h (grub_prio_list): Removed.
7355 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
7356 GRUB_COMMAND_PRIO_MASK.
7357 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
7358 GRUB_COMMAND_FLAG_ACTIVE.
7359 (grub_prio_list_insert): Removed.
7360 (grub_prio_list_remove): Likewise.
7361 (GRUB_AS_PRIO_LIST): Likewise.
7362 (GRUB_AS_PRIO_LIST_P): Likewise.
7363 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
7364 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
7365 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
7366 * grub-core/kern/command.c (grub_register_command_prio): Inline
7368 (grub_unregister_command): Likewise.
7370 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7372 Fix interrupt mixup from previous commit.
7374 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
7375 (grub_realidt): New var.
7376 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
7378 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
7380 (grub_relocator16_boot): Set grub_relocator16_idt.
7381 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
7382 (LOCAL(realidt)): ... this.
7383 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
7384 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
7385 (grub_realidt): New variable.
7387 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7389 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
7390 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
7391 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
7392 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
7394 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
7395 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
7396 * po/POTFILES.in: Regenerate.
7398 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7400 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
7403 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7405 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
7407 (add_length): Likewise.
7409 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7410 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
7412 GDB serial and backtrace support.
7414 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
7415 (prot_to_real): Likewise.
7416 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
7417 * grub-core/Makefile.core.def (backtrace): New module.
7419 * grub-core/gdb/cstub.c: New file.
7420 * grub-core/gdb/gdb.c: Likewise.
7421 * grub-core/gdb/i386/idt.c: Likewise.
7422 * grub-core/gdb/i386/machdep.S: Likewise.
7423 * grub-core/gdb/i386/signal.c: Likewise.
7424 * grub-core/lib/i386/backtrace.c: Likewise.
7425 * grub-core/lib/backtrace.c: Likewise.
7426 * include/grub/backtrace.h: Likewise.
7427 * include/grub/gdb.h: Likewise.
7428 * include/grub/i386/gdb.h: Likewise.
7430 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7432 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
7434 (add_length): Likewise.
7435 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
7436 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
7438 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
7439 __argp_get_display_len.
7441 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7443 $"..." support in scripts.
7445 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
7446 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
7447 * grub-core/script/yylex.l: Likewise.
7448 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
7451 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7453 * gentpl.py: Remove obsolete pkglib_DATA handling.
7455 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7457 Don't transform PACKAGE_TARNAME following a discussion on autoconf
7460 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
7461 * util/grub-kbdcomp.in: Likewise.
7462 * util/grub-mkconfig.in: Likewise.
7463 * util/grub-mkconfig_lib.in: Likewise.
7464 * util/grub-mknetdir.in: Likewise.
7465 * util/grub-mkrescue.in: Likewise.
7466 * util/grub-mkstandalone.in: Likewise.
7467 * util/grub-reboot.in: Likewise.
7468 * util/grub-set-default.in: Likewise.
7469 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7471 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7475 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
7476 * util/grub.d/00_header.in: Compute prefix in the only place it's still
7477 used for backward compatibility.
7479 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7481 Add new all_video module.
7483 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
7484 * grub-core/Makefile.core.def (all_video): New module.
7485 * grub-core/genmoddep.awk: Generate dependency of all_video from
7487 * grub-core/lib/fake_module.c: New file.
7488 * grub-core/normal/main.c (features): Add feature_all_video_module.
7489 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
7490 don't do explicit search again.
7491 insmod all_video in load_video if available.
7493 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7495 Another round of string clarification and adding TRANSLATORS comments.
7497 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7499 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
7501 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7503 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
7505 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
7506 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
7508 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7510 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
7511 trailing newline implicitly. All users updated.
7513 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7515 Implement serial on IEEE1275 and EFI.
7517 * docs/grub.texi (Platform-specific limitations): Fix the columen video
7518 on emu. Mention arc and emu as the only platforms without serial
7520 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
7522 * grub-core/term/efi/serial.c: New file.
7523 * grub-core/term/ieee1275/serial.c: Likewise.
7524 * grub-core/term/serial.c (grub_serial_find): Disable direct port
7525 specification if no ns8250 driver is available.
7526 (grub_cmd_serial): Likewise.
7527 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
7528 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
7529 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
7530 (grub_efi_parity_type_t): New type.
7531 (grub_efi_stop_bits_t): Likewise.
7532 (grub_efi_serial_io_interface): New struct.
7533 * include/grub/serial.h (grub_serial_port): Make 'broken' field
7534 available for all interfaces.
7535 Add EFI and IEEE1275 fields.
7536 (grub_ofserial_init): New proto.
7537 (grub_efiserial_init): Likeiwse.
7538 * util/grub.d/00_header.in: Don't check for the presence of serial
7541 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7543 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
7544 name as if it was an alias.
7546 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7548 * grub-core/commands/lsacpi.c (options): Fix typo.
7550 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7552 Convert grub-emu to argp.
7554 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
7556 * util/argp_common.c: Rename to ...
7557 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
7558 Add missing includes.
7559 * grub-core/kern/emu/main.c: Convert to argp.
7560 * po/POTFILES.in: Regenerate.
7561 * util/grub-install.in (usage): Make first letter lowcase in messages
7563 * util/grub-setup.c (options): Likewise.
7565 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7567 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
7568 Put back accidently commented-out code.
7570 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7572 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
7573 loop check using Brent algorithm.
7574 (grub_hfsplus_btree_search): Likewise.
7576 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7578 * util/grub-install.in: Fix usage of wrong device for PreP install.
7580 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7582 * conf/Makefile.common (CFLAGS_GNULIB): Add
7583 -Wno-unsafe-loop-optimizations.
7584 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
7586 * grub-core/commands/legacycfg.c: Add pragma to skip
7587 -Wunsafe-loop-optimizations.
7588 (check_password_md5_real): Fix loop counter type.
7589 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
7591 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
7592 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
7594 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
7595 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
7596 * grub-core/net/net.c (grub_net_route_address): Add safety loop
7598 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
7599 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
7600 avoid possible infinite loops.
7601 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
7602 and -Wunsafe-loop-optimizations.
7603 * grub-core/script/yylex.l: Likewise.
7604 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
7605 (print_glyphs): Avoid infinite loops.
7606 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
7608 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
7610 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
7611 to avoid infinite loop.
7612 (disp_acpi_rsdt_table): Likewise.
7614 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7616 * grub-core/font/font.c (grub_font_load): Add support for default
7617 path for fonts ($prefix/fonts).
7618 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
7619 for checking if string is a path.
7620 * grub-core/normal/main.c (features): Add feature_default_font_path.
7621 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
7622 * util/grub.d/00_header.in: Use default directory if possible.
7623 * util/grub-install.in: Install unicode.pf2.
7625 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7627 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
7628 * po/Rules-swiss: New file.
7629 * po/swiss.sed: Likewise.
7631 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
7633 * grub-core/fs/btrfs.c (find_device): Fix typos.
7634 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
7635 * util/grub-mkrelpath.c (argp_parser): Likewise.
7636 Reported by: Yuri Chornoivan.
7638 2012-02-23 Dalet Omega <daletomega@gmail.com>
7640 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
7641 for usual informative messages.
7643 2012-02-23 Dalet Omega <daletomega@gmail.com>
7647 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
7648 * conf/Makefile.common: Define starfielddir.
7649 * configure.ac: Configure starfield.
7650 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
7651 * themes/starfield/README: Likewise.
7652 * themes/starfield/blob_w.png: Likewise.
7653 * themes/starfield/boot_menu_c.png: Likewise.
7654 * themes/starfield/boot_menu_e.png: Likewise.
7655 * themes/starfield/boot_menu_n.png: Likewise.
7656 * themes/starfield/boot_menu_ne.png: Likewise.
7657 * themes/starfield/boot_menu_nw.png: Likewise.
7658 * themes/starfield/boot_menu_s.png: Likewise.
7659 * themes/starfield/boot_menu_se.png: Likewise.
7660 * themes/starfield/boot_menu_sw.png: Likewise.
7661 * themes/starfield/boot_menu_w.png: Likewise.
7662 * themes/starfield/slider_c.png: Likewise.
7663 * themes/starfield/slider_n.png: Likewise.
7664 * themes/starfield/slider_s.png: Likewise.
7665 * themes/starfield/src/blob_nw.xcf: Likewise.
7666 * themes/starfield/src/bootmenu/: Likewise.
7667 * themes/starfield/src/bootmenu/center.xcf: Likewise.
7668 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
7669 * themes/starfield/src/bootmenu/side.xcf: Likewise.
7670 * themes/starfield/src/slider_c.xcf: Likewise.
7671 * themes/starfield/src/slider_n.xcf: Likewise.
7672 * themes/starfield/src/slider_s.xcf: Likewise.
7673 * themes/starfield/src/terminalbox/: Likewise.
7674 * themes/starfield/src/terminalbox/center.xcf: Likewise.
7675 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
7676 * themes/starfield/src/terminalbox/side.xcf: Likewise.
7677 * themes/starfield/starfield.png: Likewise.
7678 * themes/starfield/terminal_box_c.png: Likewise.
7679 * themes/starfield/terminal_box_e.png: Likewise.
7680 * themes/starfield/terminal_box_n.png: Likewise.
7681 * themes/starfield/terminal_box_ne.png: Likewise.
7682 * themes/starfield/terminal_box_nw.png: Likewise.
7683 * themes/starfield/terminal_box_s.png: Likewise.
7684 * themes/starfield/terminal_box_se.png: Likewise.
7685 * themes/starfield/terminal_box_sw.png: Likewise.
7686 * themes/starfield/terminal_box_w.png: Likewise.
7687 * themes/starfield/theme.txt: Likewise.
7689 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
7691 * util/grub.d/00_header.in: Add missing export theme.
7693 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7695 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
7697 Reported by: Eren D.
7699 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7701 * conf/Makefile.common (grubdatadir): Removed.
7702 (Makefile.am): Move eveything grubdata to pkgdata.
7704 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7706 * grub-core/commands/acpihalt.c (get_sleep_type):
7707 Remove unused variable.
7709 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7711 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
7712 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
7713 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
7714 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
7715 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
7716 i18n with gettext no-op.
7717 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
7718 GRUB_ACPI_OPCODE_STRING_CONST.
7719 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
7720 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
7722 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7724 * po/POTFILES.in: Regenerate.
7726 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7728 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
7729 -Wno-error=missing-noreturn.
7731 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7733 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
7734 condition to avoid possibly infinite loops.
7735 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
7736 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
7738 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7740 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
7741 condition to avoid possibly infinite loops.
7743 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7745 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
7748 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7750 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
7752 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7754 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
7756 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7758 * util/bin2h.c (usage): Add missing attribute noreturn.
7760 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7762 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
7763 if the size isn't divisible by 512.
7765 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7767 Make list_push and list_remove functions rather than inline functions
7768 to decrease size and avoid aliasing violations.
7770 * include/grub/list.h (grub_list_push): Move to ...
7771 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
7772 * include/grub/list.h (grub_list_remove): Move to ...
7773 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
7775 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7777 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
7778 and -Wunused-result.
7780 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
7782 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
7783 Reported by: Seth Goldberg
7785 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
7787 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
7789 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
7791 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
7792 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
7794 * docs/grub.texi (Simple configuration): Document
7795 GRUB_CMDLINE_GNUMACH.
7797 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
7799 * conf/Makefile.common (platform_SCRIPTS): New variable.
7800 (platform_PROGRAMS): Likewise.
7801 * gentpl.py: Mark *,module and *.image for install.
7802 * grub-core/gdb_grub.in: Add a notice of expected environment.
7803 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
7804 (gmodule.pl): Likewise.
7806 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
7808 Replace grub_checkkey with grub_getkey_noblock.
7810 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
7811 (grub_getkey_noblock): ... this. All users updated.
7813 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
7815 * grub-core/kern/emu/console.c: Move to ...
7816 * grub-core/term/emu/console.c: ...here.
7817 (grub_ncurses_getkey): Fix return value if no key is detected.
7819 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7821 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
7822 (grub_unit_test_fini): Likewise.
7823 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
7825 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7827 * include/grub/test.h (GRUB_UNIT_TEST)
7829 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7831 * grub-core/script/execute.c (grub_script_break): Clarify logic.
7832 Better error handling.
7833 (grub_script_return): Likewise.
7834 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
7836 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7838 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
7839 rimplicit redifinition.
7841 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7843 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
7846 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7848 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
7849 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
7852 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7854 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
7855 as GRUB_ERR_BUG. Don't malloc if no device is available.
7857 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7859 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
7860 Mark calling with invalid term as GRUB_ERR_BUG.
7862 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7864 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
7865 packets rather than raising an error.
7867 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7869 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
7872 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7874 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
7875 diagnostic to dprintf.
7876 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7878 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7880 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
7883 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7885 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
7886 (grub_ntfs_iterate_dir): Likewise.
7888 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7890 Efiemu stylistic fixes and gettext.
7892 * grub-core/efiemu/i386/loadcore32.c
7893 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
7894 * grub-core/efiemu/i386/loadcore64.c
7895 (grub_arch_efiemu_relocate_symbols64): Likewise.
7896 * grub-core/efiemu/i386/pc/cfgtables.c
7897 (grub_machine_efiemu_init_tables): Likewise.
7898 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
7899 (grub_efiemu_loadcore_initXX): Add a filename argument.
7901 Improved error message.
7902 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
7903 Add a filename argument.
7905 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
7906 Reclassify double relocation as GRUB_ERR_BUG.
7908 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7910 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
7913 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7915 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
7918 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7920 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
7922 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7924 Improve string. Gettextize.
7926 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7928 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
7930 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
7932 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7934 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
7935 [GRUB_UTIL]: New function.
7936 (insert_array) [GRUB_UTIL]: Store partmaps.
7937 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
7939 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
7940 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
7941 (probe_abstraction): Print diskfilter and not raid.
7942 Reported by: Lennart Sorensen
7944 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7946 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
7947 * util/grub-mkimagexx.c (MASK3): New define.
7948 (add_value_to_slot_20b): Use MASK3.
7949 (add_value_to_slot_21): Likewise.
7950 (relocate_addresses): Fix format specification.
7951 (load_image): Explicitly init symtab_section.
7953 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7955 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
7956 (grub_util_biosdisk_get_grub_dev): Fix format specification.
7958 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7960 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
7962 Reported by: Lennart Sorensen
7964 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7966 * gentpl.py: Add missing license header.
7967 * docs/grub.texi: Update copyright year.
7969 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
7971 Source grub-mkconfig_lib from the build directory at build time.
7972 Suggested by: Vladimir Serbinenko.
7974 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
7975 * util/grub-install.in: Define pkgdatadir if not already set, and source
7976 grub-mkconfig_lib from there.
7977 * util/grub-kbdcomp.in: Likewise.
7978 * util/grub-mkconfig.in: Likewise.
7979 * util/grub-mknetdir.in: Likewise.
7980 * util/grub-mkrescue.in: Likewise.
7981 * util/grub-mkstandalone.in: Likewise.
7982 * util/grub-reboot.in: Likewise.
7983 * util/grub-set-default.in: Likewise.
7984 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7986 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7988 Increase warning level.
7990 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
7991 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
7992 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
7993 (TARGET_CFLAGS): Likewise.
7994 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
7995 * grub-core/Makefile.core.def (decompressor_xz): Add
7996 -Wno-unreachable-code.
7997 (normal): Add -Wno-redundant-decls.
7998 (xzio): Add -Wno-unreachable-code.
7999 (lzopio): Add -Wno-redundant-decls -Wno-error.
8000 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
8001 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
8002 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
8003 * grub-core/kern/dl.c: Add exception to -Wcast-align.
8004 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
8005 * grub-core/kern/i386/coreboot/init.c: Add exception to
8006 -Wsuggest-attribute=noreturn.
8007 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
8008 * grub-core/kern/ia64/dl_helper.c: Likewise.
8009 * grub-core/kern/mips/dl.c: Likewise.
8010 * grub-core/kern/sparc64/dl.c: Likewise.
8011 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
8012 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
8014 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
8015 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
8016 * grub-core/loader/mips/linux.c: Likewise.
8017 * grub-core/loader/multiboot_elfxx.c: Likewise.
8018 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
8019 * grub-core/video/sm712.c: Add exception to -Wcast-align.
8020 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
8021 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
8023 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
8024 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
8027 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8029 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
8032 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8034 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
8035 Avoid improper use of strings.
8036 (grub_cmd_legacy_initrdnounzip): Likewise.
8038 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8040 * include/grub/emu/misc.h (grub_util_warn): Add missing format
8042 (grub_util_info): Likewise.
8043 (grub_util_error): Likewise.
8045 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8047 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
8048 * util/grub-fstest.c (fstest): Likewise.
8050 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8052 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
8053 (grub_md_sha512_real): Likewise.
8054 (grub_util_get_geli_uuid): Likewise.
8055 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
8056 (grub_util_biosdisk_open): Fix format specification.
8057 Respect format security.
8058 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
8059 (xrealloc): Likewise.
8060 (xasprintf): Likewise.
8062 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8064 * util/import_gcry.py: Include grub/crypto.h in init.c.
8066 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8068 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
8069 (generate_image): Make prefix a const char *.
8070 Fix format specifications. Respect format security.
8071 Avoid void * arithmetics.
8073 (argp_parser): Remove unused variable. Respect format security.
8074 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
8075 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
8076 (count_funcs): Remove unused variable.
8077 (relocate_addresses): Fix format specification.
8078 Disable x86-64 with elf32. Remove unused variables.
8079 (add_fixup_entry): Avoid shadowing.
8080 (make_reloc_section): Fix format specification.
8082 (locate_sections): Fix format specifications.
8083 (load_image): Avoid shadowing.
8085 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8087 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
8088 Fix format specifications. Respect format security.
8089 Don't translate already translated grub_errmsg.
8090 (argp_parser): Remove unused variable
8092 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8094 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
8096 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8098 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
8099 (main): Likewise. Use xmalloc. Respect format security.
8101 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8103 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
8105 (argp_parser): Remove unused variable.
8107 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8109 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
8110 (add_pixel): Make static.
8111 (add_font): Likewise.
8112 (write_string_section): Make name and str a const char *.
8113 (write_be16_section): Make name a const char *.
8114 (print_glyphs): Make static.
8115 (write_font_ascii_bitmap): Likewise.
8116 (write_font_width_spec): Likewise.
8117 (write_font_pf2): Likewise.
8118 (argp_parser): Remove unused variable.
8119 Respect format security.
8120 (main): Avoid shadowing. Respect format security.
8122 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8124 * util/grub-editenv.c (argp_parser): Make static.
8125 (create_envblk_file): Use xmalloc.
8126 (open_envblk_file): Likewise.
8127 Resepect format security.
8128 (set_variables): Respect format security.
8130 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8132 * util/getroot.c (grub_find_device): Respect format security.
8133 (get_mdadm_uuid): Remove unused variable.
8134 (grub_util_pull_device): Dont call gettext on already translated
8136 (find_system_device): Remove unused variable.
8137 (grub_util_get_grub_dev): Likewise.
8138 (grub_make_system_path_relative_to_its_root): Respect format security.
8140 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8142 * util/grub-fstest.c (execute_command): Make first argument
8144 (read_file): Avoid shadowing.
8145 Reuse underlying error message if device open fails.
8146 (cmd_cmp): Respect format security.
8147 (root): Make const char *.
8148 (fstest): Remove args argument and use global copy.
8149 Respect format security.
8150 (argp_parser): Make static.
8151 (main): Make default_root const char *.
8153 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8155 * util/grub-mount.c (root): Make const char *.
8156 (execute_command): Make first argument a const char *.
8157 (fuse_init): Respect format security.
8158 (argp_parser): Make static. Remove unused variable.
8159 (main): Make default_root a const char *.
8160 Respect format security.
8162 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8164 * util/grub-probe.c (probe): Don't call gettext on already translated
8166 Remove unused variables.
8167 (argp_parser): Remove unused variable.
8169 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8171 * util/grub-script-check.c (argp_parser): Remove unused variable.
8172 (main): Rename read to curread to avoid shadowing.
8174 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8176 * util/misc.c (grub_util_write_image_at): Fix format specification.
8177 (grub_util_write_image): Likewise.
8178 (grub_script_execute_argument_to_string): Removed (unused).
8179 (grub_script_execute_menuentry): Likewise.
8180 (grub_putchar): Likewise.
8182 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8184 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
8185 (FUNCTION) [GRUB_UTIL]: Likewise.
8186 (VARIABLE) [GRUB_UTIL]: Likewise.
8188 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8190 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
8191 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
8193 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8195 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
8198 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8200 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
8201 (LzmaEnc_SaveState): Removed (unused).
8202 (LzmaEnc_RestoreState): Likewise.
8203 (LzmaEnc_InitPriceTables): Made static.
8204 (LzmaEnc_Construct): Likewise.
8205 (LzmaEnc_FreeLits): Likewise.
8206 (LzmaEnc_Destruct): Likewise.
8207 (LzmaEnc_Init): Likewise.
8208 (LzmaEnc_InitPrices): Likewise.
8209 (LzmaEnc_Finish): Likewise.
8210 (LzmaEnc_PrepareForLzma2): Removed (unused).
8211 (LzmaEnc_MemPrepare): Likewise.
8212 (LzmaEnc_GetNumAvailableBytes): Likewise.
8213 (LzmaEnc_GetCurBuf): Likewise.
8214 (LzmaEnc_CodeOneMemBlock): Likewise.
8216 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8218 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
8219 (grub_util_ldm_embed): Likewise.
8221 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8223 * util/grub-editenv.c (print_var): Rename name to varname to
8225 (main): Rename index to curindex to avoid shadowing.
8226 Make filename a const char *.
8228 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8230 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
8231 to arg_getline to avoid shadowing.
8233 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8235 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
8236 disk_ to avoid shadowing.
8238 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8240 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
8241 curindex to avoid shadowing.
8243 (MatchFinder_GetNumAvailableBytes): Make static.
8245 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8247 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
8250 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8252 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
8253 argument from encrypt to do_encrypt to avoid shadowing.
8255 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8257 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
8258 incorrect nesting of #if's.
8260 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8262 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
8263 checks which are always false on some platforms.
8264 (grub_cmd_lsacpi): Likewise.
8265 * grub-core/kern/misc.c (grub_strtoul): Likewise.
8266 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
8269 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8271 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
8272 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
8274 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8276 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
8277 re_dfa_t to avoid breaking alignment invariants.
8278 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
8279 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
8281 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8283 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
8284 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
8286 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8288 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
8291 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8293 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
8294 conserve alignment invariants.
8295 (grub_ehci_ehcc_read16): Likewise.
8296 (grub_ehci_oper_read32): Likewise.
8297 (grub_ehci_oper_write32): Likewise.
8298 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8299 Conserve alignment invariants.
8301 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8303 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
8304 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
8307 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8309 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
8310 Remove unused variable.
8312 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8314 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
8317 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8319 * include/grub/net.h: Remove double declarations.
8321 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8323 Remove "payload" command in ia64 Linux loader since I couldn't
8324 find any evidence of it being used for anything.
8325 Replace "relocate" command with an environment variable
8327 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
8329 (ia64_boot_payload): Removed.
8330 (last_payload): Likewise.
8331 (RELOCATE_OFF): Likewise.
8332 (RELOCATE_ON): Likewise.
8333 (RELOCATE_FORCE): Likewise.
8334 (relocate): Likewise.
8335 (free_pages): Don't free payloads.
8336 (grub_load_elf64): Use common error messages.
8337 Use "linux_relocate" variable.
8338 Increase the space after boot_params.
8339 (grub_cmd_payload): Removed.
8340 (grub_cmd_relocate): Likewise.
8341 (grub_cmd_fpswa): Improve messages.
8342 (cmd_payload): Removed.
8343 (cmd_relocate): Likewise.
8344 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
8345 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
8347 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8349 Convert UHCI to DMA framework.
8351 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
8352 (grub_uhci_pci_iter): Fill new members
8353 (grub_alloc_td): Use P2V and V2P functions.
8354 (grub_free_queue): Likewise.
8355 (grub_alloc_qh): Likewise.
8356 (grub_uhci_setup_transfer): Likewise.
8357 (grub_uhci_check_transfer): Likewise.
8359 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8361 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
8362 Remove assignment in if while on it.
8364 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8366 * util/grub-mkstandalone.in: Fix modules directory.
8368 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8370 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
8372 (argp_parser): Accept "auto" as compression specification.
8374 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8376 Fix `help' with unloaded modules.
8378 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
8379 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
8380 (grub_dyncmd_dispatcher): Small stylistic fix.
8381 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
8382 explicit help is requested.
8384 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8386 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
8387 Explicitly init restart while on it.
8389 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8391 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
8394 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8396 * util/grub-mknetdir.in: Use . rather than source for POSIX
8399 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8401 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
8403 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8405 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
8408 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8410 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
8413 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8415 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
8417 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8419 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
8420 iteration of partitions.
8422 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8424 Improve gettext support. Stylistic fixes and error handling fixes while
8427 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8429 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
8430 part. Instead setup the correct stack in RM.
8431 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
8433 * include/grub/i386/relocator_private.h: New file.
8435 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8437 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
8439 * util/grub-fstest.c (options): Add missing DEVICE part.
8441 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8443 Clarify and unify messages.
8445 * grub-core/commands/hashsum.c (options): Unify messages.
8446 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
8447 literal-only message as translatable.
8448 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
8449 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
8450 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
8452 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
8453 key, not the key used to unlock. Clarify what it's used for.
8454 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
8455 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
8456 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
8457 * util/grub-editenv.c (options): Unify "verbose" message.
8458 * util/grub-fstest.c (read_file): Unify error message.
8459 (fstest): Add quotes around commands.
8460 (options): Unify "verbose" message.
8461 * util/grub-install.in: Add quotes around variable name.
8462 * util/grub-kbdcomp.in: Unify error message.
8463 * util/grub-mkfont.c (main): Likewise.
8464 * util/grub-mkrescue.in: Likewise.
8465 * util/grub-mklayout.c (options): Unify "verbose" message.
8466 * util/grub-mkstandalone.in: Unify help and verbose messages.
8467 * util/grub-mount.c (options): Unify "verbose" message.
8468 * util/grub-probe.c (options): Likewise.
8469 * util/grub-script-check.c (options): Likewise.
8470 * util/grub-setup.c (setup): Unify no-terminator message.
8471 (options): Use DEVICE and not DEV.
8472 Unify "verbose" message.
8473 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
8475 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8477 Improve and unify messages.
8479 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
8480 name. All users updated.
8481 Print filename in error.
8482 (read_device_map): Print filename in error.
8483 * util/getroot.c (grub_guess_root_devices): Print filename in error.
8484 (grub_util_get_os_disk): Likewise.
8485 (grub_util_biosdisk_get_grub_dev): Likewise.
8486 (grub_util_check_block_device): Likewise.
8487 (grub_util_check_char_device): Likewise.
8488 (grub_make_system_path_relative_to_its_root): Likewise.
8489 * util/grub-editenv.c (create_envblk_file): Likewise.
8490 (open_envblk_file): Likewise.
8491 (write_envblk): Likewise.
8492 * util/grub-fstest.c (cmd_cp): Likewise.
8493 (cmd_cat): Likewise.
8494 (cmd_cmp): Likewise.
8495 * util/grub-menulst2cfg.c (main): Likewise.
8496 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
8497 (write_font_width_spec): Likewise.
8498 (write_font_pf2): Likewise.
8499 * util/grub-mkimage.c (generate_image): New argument outname.
8501 Remove unreacheable message.
8502 (options): Unify messages.
8503 (help_filter): Likewise.
8504 * util/grub-mklayout.c (usage): Removed (unused).
8505 (main): Print filename in error.
8506 * util/grub-mkrescue.in: Fix wrong quoting.
8507 * util/grub-setup.c (setup): Print filename in error.
8508 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
8509 (check_sas): Likewise.
8510 * util/misc.c (grub_util_get_fp_size): Removed.
8511 (grub_util_get_image_size): Print filename in error.
8512 (grub_util_read_at): Removed.
8513 (grub_util_read_image): Print filename in error.
8514 (grub_util_load_image): Likewise.
8515 (grub_util_write_image_at): New argument filename. All users updated.
8516 Print filename in error.
8517 (grub_util_write_image): New argument filename. All users updated.
8518 Print filename in error.
8519 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
8520 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
8522 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8524 * grub-core/Makefile.core.def (pxechain): New module.
8525 * grub-core/loader/i386/pc/pxechainloader.c: New file.
8526 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
8528 (grub_pc_net_config_real): Use grub_pxe_get_cached.
8529 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
8531 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8533 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
8534 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
8535 * include/grub/err.h (grub_error_saved): New struct.
8536 (grub_errmsg): Make array size explicit.
8537 * include/grub/misc.h (grub_error_save): New function.
8538 (grub_error_load): Likewise.
8539 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
8540 (grub_error_push): Update `errno' member name.
8541 (grub_error_pop): Likewise
8542 * grub-core/net/tftp.c (tftp_data): New member save_err.
8543 (tftp_receive): Save error.
8544 (tftp_open): Restore error.
8546 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8548 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
8549 to real mode down to execute A20-related code in protected mode as
8552 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8554 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
8555 NULL when the argument `level' has an unexpected value.
8557 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
8559 Move platform-dependent files from $prefix to $prefix/$platform.
8561 * config.h.in (GRUB_TARGET_CPU): New definition.
8562 (GRUB_PLATFORM): Likewise.
8563 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
8564 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
8565 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
8566 * grub-core/kern/dl.c (grub_dl_load): Likewise.
8567 * grub-core/normal/autofs.c (read_fs_list): Likewise.
8568 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
8569 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
8570 * grub-core/normal/term.c (read_terminal_list): Likewise.
8571 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
8573 (grub_gettext_init_ext): Likewise.
8574 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
8576 * util/grub-install.in: Update directories.
8577 * util/grub-mknetdir.in: Likewise.
8578 * util/grub-mkrescue.in: Likewise.
8580 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
8582 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
8583 grub_error framework. All users updated.
8585 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
8587 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
8588 lists (by always binsearching), improve caching (cache strings
8589 used for binsearch, not only results), improve
8590 maintainability (by using more structured binary search) and correct
8593 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
8595 * grub-core/script/execute.c (grub_script_return): Fix warning.
8597 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
8599 * grub-core/script/execute.c (grub_script_return): Fix potential
8601 Reported by: Jim Meyering.
8603 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8605 * po/POTFILES.in: Regenerate.
8606 * util/grub-install.in: Gettextize the strings missed in first pass.
8608 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8610 * Makefile.util.def (grub-mkdevicemap): Removed.
8611 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
8612 * include/grub/util/deviceiter.h: Removed.
8613 * util/deviceiter.c: Likewise.
8614 * util/getroot.c (grub_util_get_os_disk): New function.
8615 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
8616 replacement for EFI.
8617 * util/grub-mkdevicemap.c: Removed.
8618 * util/grub-probe.c (probe): Handle PRINT_DISK.
8619 (argp_parser): Handle -t disk.
8621 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8623 * util/grub-mkfont.c: Migrate to argp.
8624 * util/grub-mklayout.c: Likewise.
8625 * util/grub-mkpasswd-pbkdf2.c: Likewise.
8626 * util/grub-mkrelpath.c: Likewise.
8627 * util/grub-probe.c: Likewise.
8628 * util/grub-script-check.c: Likewise.
8630 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8632 * util/grub-reboot.in: Add missing datarootdir.
8633 Add missing newline.
8634 * util/grub-set-default.in: Add missing datarootdir.
8635 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
8636 * util/grub-mkrescue.in: Likewise.
8638 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8640 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
8642 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8644 * util/grub-kbdcomp.in: Add decent help and gettextize.
8645 * docs/man/grub-kbdcomp.h2m: New file.
8647 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8649 Migrate grub-mkimage.c to argp.
8651 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
8652 (grub-setup): Likewise.
8653 * util/grub-setup.c (print_version): Move to ...
8654 * util/argp_common.c (print_version): ... here.
8655 * util/grub-setup.c (argp_program_version_hook): Move to ...
8656 * util/argp_common.c (argp_program_version_hook): ... here.
8657 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
8659 * util/grub-mkimage.c (main): Migrate to argp.
8661 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8663 * util/grub-mkrescue.in: Use same message as
8664 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
8665 for better translations.
8667 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8669 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
8670 options with generic grub-mkrescue.in with the goal of future
8673 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8675 * grub-core/kern/mm.c: Add missing include of i18n.h
8676 * grub-core/lib/relocator.c: Likewise.
8678 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8680 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
8682 (allocate_pages): Check return value.
8683 Replace fatal with error.
8684 (grub_linux_boot): Replace printf with dprintf.
8685 Check find_mmap_size return value.
8686 Replace fatal with error.
8687 Don't call grub_machine_fini.
8688 (grub_load_elf64): Replace printf with dprintf.
8689 (grub_cmd_linux): Likewise.
8690 (grub_cmd_initrd): Likewise.
8691 (grub_cmd_payload): Likewise.
8693 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8695 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
8697 * grub-core/video/radeon_fuloong2e.c
8698 (grub_video_radeon_fuloong2e_setup): Likewise.
8699 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
8700 * grub-core/video/video.c (grub_video_set_mode): Don't override
8701 standard out of memory message.
8703 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
8705 NetBSD disk wedge support.
8707 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
8708 [__NetBSD__]: Handle NetBSD disk wedges.
8709 * util/getroot.c (convert_system_partition_to_system_disk)
8710 [__NetBSD__]: Likewise.
8712 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
8714 * util/grub-mkconfig.in: Use umask rather than chmod to create
8715 grub.cfg.new to avoid insecure grub.cfg.
8717 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8719 * grub-core/commands/ls.c: Gettextize.
8720 * grub-core/commands/setpci.c: Likewise.
8721 * grub-core/commands/videotest.c: Likewise.
8722 * grub-core/disk/geli.c: Likewise.
8723 * grub-core/kern/mm.c: Likewise.
8724 * grub-core/lib/relocator.c: Likewise.
8725 * grub-core/loader/efi/appleloader.c: Likewise.
8726 * grub-core/loader/i386/xnu.c: Likewise.
8727 * grub-core/loader/ia64/efi/linux.c: Likewise.
8728 * grub-core/loader/xnu.c: Likewise.
8729 * grub-core/net/dns.c: Likewise.
8730 * grub-core/net/net.c: Likewise.
8731 * grub-core/script/lexer.c: Likewise.
8732 * grub-core/script/parser.y: Likewise.
8733 * grub-core/script/yylex.l: Likewise.
8734 * util/getroot.c: Likewise.
8735 * util/grub-setup.c: Likewise.
8737 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8739 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
8742 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8744 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
8746 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8748 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
8750 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
8751 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
8753 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8755 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
8756 * util/grub-install.in: Gettextize.
8757 * util/grub-mkconfig.in: Likewise.
8758 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
8760 (grub_warn): Gettextize.
8761 * util/grub-mknetdir.in: Gettextize.
8762 * util/grub-mkrescue.in: Likewise.
8763 * util/grub-mkstandalone.in: Likewise.
8764 * util/grub-reboot.in: Likewise.
8765 * util/grub-set-default.in: Likewise.
8766 * util/grub.d/00_header.in: Likewise.
8767 * util/grub.d/10_hurd.in: Likewise.
8768 * util/grub.d/10_kfreebsd.in: Likewise.
8769 * util/grub.d/10_linux.in: Likewise.
8770 * util/grub.d/10_netbsd.in: Likewise.
8771 * util/grub.d/10_windows.in: Likewise.
8772 * util/grub.d/20_linux_xen.in: Likewise.
8773 * util/grub.d/30_os-prober.in: Likewise.
8774 * po/POTFILES-shell.in: Regenerate.
8776 2012-02-03 Richard Laager <rlaager@wiktel.com>
8778 * util/grub-mkimage.c (main): Fix format-security warning.
8779 * util/grub-mkrelpath.c (main): Likewise.
8780 * util/grub-probe.c (main): Likewise.
8782 2012-02-03 Richard Laager <rlaager@wiktel.com>
8784 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
8786 Put back lost PRINT_DRIVE.
8788 2012-02-03 Richard Laager <rlaager@wiktel.com>
8790 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
8791 (grub_guess_root_devices): Replace strlen with sizeof.
8793 (find_root_devices_from_poolname): Remove unused variable.
8796 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8798 Support install on multi-device filesystems.
8800 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
8801 (grub_guess_root_devices): ...this. Return char **. All users updated.
8802 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
8804 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
8805 (find_root_devices_from_poolname): ... here.
8806 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
8808 (grub_guess_root_device): Rename to ...
8809 (grub_guess_root_devices): ... this. Return char **. All users updated.
8810 * util/grub-install.in: Handle multi-device filesystems.
8811 * util/grub-probe.c (probe). Make device_names a char **. Add delim
8812 argument. All users updated.
8813 Handle multi-device filesystems.
8814 Use 'delim' as separator.
8815 Remove device check to allow filesystems on file.
8816 (main): Support -0 argument. Handle multi-device.
8817 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
8818 Fix a cross-device check while on it.
8819 (arguments): Remove root_dev.
8820 (argp_parser): Remove -r.
8821 (main): Remove root_dev.
8823 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8825 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
8827 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8829 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
8831 Reported by: NODA, Kai <nodakai>.
8833 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8837 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
8839 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
8840 (grub_ehci_setup_qh): Likewise.
8841 (grub_ehci_find_qh): Likewise.
8842 (grub_ehci_transaction): Likewise.
8843 (grub_ehci_setup_transfer): Likewise.
8844 (grub_ehci_check_transfer): Likewise.
8845 (grub_ehci_portstatus): Likewise.
8846 (grub_ehci_detect_dev): Likewise.
8847 (grub_ehci_transfer_controller_data): New field td_last_phys.
8848 (grub_ehci_setup_transfer): Fill td_last_phys.
8849 (grub_ehci_check_transfer): Use td_last_phys.
8851 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
8853 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
8854 if no submenu is present.
8856 2012-02-01 Aleš Nesrsta <starous@volny.cz>
8860 * include/grub/usb.h (grub_usbms_protocol_t): New values
8861 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
8862 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
8863 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
8864 (grub_usbms_dev): Add subclass, protocol and intrpt.
8865 Remove in_maxsz and out_maxsz.
8866 (grub_usbms_reset): Rename to ...
8867 (grub_usbms_bo_reset): .. this.
8868 (grub_usbms_cbi_cmd): New function.
8869 (grub_usbms_cbi_reset): Likewise.
8870 (grub_usbms_reset): Likewise.
8871 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
8872 (grub_usbms_transfer): Rename to ...
8873 (grub_usbms_transfer_bo): ... this.
8874 (grub_usbms_transfer_cbi): Likewise.
8875 (grub_usbms_transfer): Likewise.
8877 2012-02-01 Aleš Nesrsta <starous@volny.cz>
8878 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8880 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
8881 the support for the CS5536 modification thereos and few bugfixes.
8883 * grub-core/Makefile.core.def (ehci): New module.
8884 * grub-core/bus/usb/ehci.c: New file.
8885 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
8886 port and hubaddr. All users updated.
8887 Save port and hubaddr into dev structure.
8888 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
8890 * include/grub/pci.h (grub_dma_phys2virt): New function.
8891 (grub_dma_virt2phys): Likewise.
8892 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
8894 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8896 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
8897 check as some mkfs implementations omit it.
8899 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8901 * docs/grub.texi (Unicode): Mention identifier and space limitations.
8903 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8905 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
8906 Add new member volname2.
8907 (grub_jfs_label): Use volname2 if available.
8909 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8911 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
8912 over last_mounted as seen in image generated by mkfs.nilfs2.
8913 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
8915 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8917 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
8918 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
8919 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
8921 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8923 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
8926 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8928 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
8929 subvolume name (by removing a bogus and useless check).
8931 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8933 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
8936 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8938 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
8939 (grub_scsi_read_capacity10): ... this.
8940 (grub_scsi_read_capacity16): New function.
8941 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
8943 Fix off-by-one error.
8944 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
8946 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
8947 (grub_scsi_read_capacity10): ... this.
8948 (grub_scsi_read_capacity_data): Rename to ...
8949 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
8950 (grub_scsi_read_capacity16): New struct.
8951 (grub_scsi_read_capacity16_data): Likewise.
8952 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
8953 grub_scsi_cmd_read_capacity10.
8954 New command grub_scsi_cmd_read_capacity16.
8956 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8960 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
8961 (grub_scsi_write16): Likewise.
8962 (grub_scsi_read): Use read16 when necessary.
8963 (grub_scsi_write): Likewise.
8964 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
8965 (grub_scsi_write16): Likewise.
8966 (grub_scsi_cmd_t): Add READ16 and WRITE16.
8968 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8970 SCSI write support (for usbms mainly).
8972 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
8974 (grub_scsi_write): Implement.
8975 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
8977 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8979 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
8982 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8984 * grub-core/lib/posix_wrap/string.h (memchr): New function.
8986 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8988 * po/POTFILES.in: Regenerate.
8990 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8992 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
8993 with grub_printf to avoid unnecessary fatal failure.
8995 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8997 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
8998 (INT_MAX): Likewise.
8999 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
9000 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
9001 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
9005 (strncpy): Likewise.
9007 (strncat): Likewise.
9008 (strcoll): Likewise.
9009 * include/grub/types.h (GRUB_SHRT_MAX): New define.
9010 (GRUB_INT_MAX): Likewise.
9012 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9014 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
9016 (optimize_utf8): Likewise.
9017 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
9019 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9021 * grub-core/boot/i386/pc/lnxboot.S: Use
9022 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
9023 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
9025 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
9027 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
9029 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9031 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
9032 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
9033 now to avoid double free.
9034 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
9036 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
9037 * util/grub-probe.c (escape_of_path): Always return a new copy.
9038 (print_full_name): Escape path.
9039 (probe): Don't call grub_util_devname_to_ofpath on NULL.
9040 Fix hints on abstractions.
9042 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9044 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
9045 Don't add "root" line if no compatibility hont is available.
9046 Suggested by: Seth Goldberg.
9048 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9050 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
9051 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
9052 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
9053 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
9055 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9057 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
9059 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9061 * util/grub-pe2elf.c (ehdr): Make static.
9063 (num_sections): Likewise.
9066 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9068 Eliminate ofpath limits and possible overflows.
9070 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
9071 (OF_PATH_MAX): Removed.
9072 (MAX_DISK_CAT): New const.
9073 (find_obppath): Use allocated rather than preallocated buffer.
9074 Return result. Argument of_path removed. All users updated.
9076 (xrealpath): New function.
9077 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
9078 Allocate rather than use preallocated buffer. All users updated.
9079 (__of_path_common): Use allocated rather than preallocatecd buffer.
9080 Return result. Argument of_path removed. All users updated.
9081 (vendor_is_ATA): Read only needed part form the file.
9082 (check_sas): Allocate depending on contents rather than fixed.
9083 (main) [STANDALONE]: Handle NULL result.
9085 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9087 * grub-core/normal/completion.c (iterate_dev): Close the disk.
9089 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9091 Cryptodisk write support.
9093 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
9094 (grub_cryptodisk_decrypt): Moved logic to ...
9095 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
9096 (grub_cryptodisk_write): Implement.
9097 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
9098 (grub_util_fd_write): ... this. Make global.
9099 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
9101 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9103 * include/grub/list.h (grub_list_remove): Don't crash if element is
9106 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9108 Rename ofconsole to console.
9110 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
9111 as sysnonym to console.
9112 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
9113 * grub-core/term/ieee1275/console.c: ... this. All users updated.
9114 Rename grub_ofconsole_ to grub_console_. All users updated
9115 (grub_console_term_output): Rename "ofconsole" to "console".
9116 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
9119 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9121 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
9123 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
9124 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
9125 GRUB_DISK_DEVICE_FILE_ID.
9127 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9129 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
9130 and improve performance.
9132 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9134 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
9135 missing ieee1275/ prefix on whole disk.
9137 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9139 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
9140 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
9142 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9144 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
9146 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9148 Merge common RAID and LVM logic to an abstract diskfilter.
9149 Add LDM support using the same framework.
9151 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
9152 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
9153 (libgrubmods): Remove grub-core/disk/raid.c and
9154 grub-core/partmap/gpt.c.
9155 * grub-core/Makefile.core.def (ldm): New module.
9156 (raid): Renamed to diskfilter. All users updated.
9157 * grub-core/disk/raid.c: Moved to ...
9158 * grub-core/disk/diskfilter.c: ... here.
9159 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
9161 (find_array): Renamed to ...
9162 (find_lv): ... this. Support multi-LV. Skip nameless LVs
9163 (grub_is_array_readable): Renamed to ...
9164 (grub_is_lv_readable): ... this. Support multinode hierarchy.
9165 (insert_array): New argument id.
9166 (is_node_readable): New function.
9167 (scan_device): Rename to ...
9168 (scan_disk): .. this. Restrict to one disk.
9169 (scan_devices): New function.
9170 (grub_diskfilter_iterate): Support multi-LV.
9171 Skip invisible and nameless LVs.
9172 (grub_diskfilter_memberlist): Support multi-LV.
9173 (grub_diskfilter_read_node): New function.
9174 (grub_raid_read): Most of logic moved to ...
9175 (read_segment): ... here
9176 (read_lv): New function.
9177 (grub_diskfilter_get_vg_by_uuid): New function.
9178 (grub_diskfilter_make_raid): Likewise.
9179 * grub-core/disk/ldm.c: New file.
9180 * grub-core/disk/lvm.c (vg_list): Removed.
9181 (lv_count): Likewise.
9182 (scan_depth): Likewise.
9183 (is_lv_readable): Likewise.
9184 (grub_lvm_getvalue): Advance pointer past the number.
9186 (do_lvm_scan): Refactored into ...
9187 (grub_lvm_detect): ... this. Support raid.
9188 (grub_lvm_iterate): Removed.
9189 (grub_lvm_memberlist): Likewise.
9190 (grub_lvm_open): Likewise.
9191 (grub_lvm_close): Likewise.
9192 (read_lv): Likewise.
9193 (read_node): Likewise.
9194 (is_node_readable): Likewise.
9195 (is_lv_readable): Likewise.
9196 (grub_lvm_read): Likewise.
9197 (grub_lvm_write): Likewise.
9198 (grub_lvm_dev): Use diskfilter
9199 (GRUB_MOD_INIT): Likewise.
9200 (GRUB_MOD_FINI): Likewise.
9201 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
9203 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
9204 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
9205 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
9206 grub_diskfilter_read_node.
9208 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
9209 grub_diskfilter_read_node.
9210 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
9211 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
9212 (grub_disk_dev_iterate): Move from here...
9213 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
9214 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9216 (grub_hostdisk_find_partition_start): Likewise.
9217 (grub_hostdisk_os_dev_to_grub_drive): New function.
9218 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
9219 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
9220 * util/getroot.c (make_device_name): ... here.
9221 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9223 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
9224 * grub-core/kern/emu/hostdisk.c
9225 (convert_system_partition_to_system_disk): Move to ...
9226 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
9227 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
9228 * util/getroot.c (device_is_wholedisk): ... here.
9229 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
9230 * util/getroot.c (find_system_device): ... here.
9231 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
9233 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
9234 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
9236 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
9238 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
9240 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
9241 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
9242 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
9244 * include/grub/raid.h: Renamed to ...
9245 * include/grub/diskfilter.h: ... this.
9246 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
9247 (GRUB_RAID_LAYOUT_*): Make into array.
9248 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
9249 (grub_diskfilter_vg): New struct.
9250 (grub_diskfilter_pv_id): Likewise.
9251 (grub_raid_member): Removed.
9252 (grub_raid_array): Likewise.
9253 (grub_diskfilter_pv): New struct.
9254 (grub_diskfilter_lv): Likewise.
9255 (grub_diskfilter_segment): Likewise.
9256 (grub_diskfilter_node): Likewise.
9257 (grub_diskfilter_get_vg_by_uuid): New proto.
9258 (grub_raid_register): Inline.
9259 (grub_diskfilter_unregister): Likewise.
9260 (grub_diskfilter_make_raid): New proto.
9261 (grub_diskfilter_vg_register): Likewise.
9262 (grub_diskfilter_read_node): Likewise.
9263 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
9264 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
9265 (grub_util_is_ldm): Likewise.
9266 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
9267 (grub_hostdisk_find_partition_start): Likewise.
9268 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
9269 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
9271 (grub_gpt_partition_map_iterate): New proto.
9272 * include/grub/lvm.h (grub_lvm_vg): Removed.
9273 (grub_lvm_pv): Likewise.
9274 (grub_lvm_lv): Likewise.
9275 (grub_lvm_segment): Likewise.
9276 (grub_lvm_node): Likewise.
9277 * util/getroot.c [...]
9278 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
9279 (probe_abstraction): Likewise.
9280 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
9281 (main): Remove dead logic.
9283 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
9285 Simplify root device discover and don't fail when trying to open
9288 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
9290 (get_diskname_from_path): Likewise.
9291 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
9294 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9296 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
9298 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9300 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
9303 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9305 * util/grub-install.in: Add missing \.
9306 Reported by: gentoofan
9308 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
9310 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
9311 (direct_read): Use correct compressed size.
9312 (grub_squash_read_data): Likewise.
9314 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
9316 * docs/grub.texi (Platform limitations): New section.
9317 (Platform-specific operations): Likewise.
9318 * docs/grub-dev.texi (Porting): Likewise.
9320 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9322 IEEE1275 disk write support.
9324 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
9326 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
9327 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
9328 and seek loginc to ...
9329 (grub_ofdisk_prepare): ... here.
9330 (grub_ofdisk_write): Implement.
9332 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9334 ARC disk write support.
9336 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
9337 (reopen): New argument writable. All users updated.
9338 Handle required access mode.
9339 (grub_arcdisk_write): Implement.
9340 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
9341 (grub_arc_firmware_vector): Make buffer to write a const buffer.
9343 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9345 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
9346 (read_sblock): Don't attempt to read superblocks outside the disk size.
9348 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9350 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
9351 first superblock to find the second one when possible.
9353 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9355 * util/grub-install.in: Fix an ARC bug.
9356 Print a warning if no platform-specific setup is available.
9358 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9360 Use static allocation rather than scratch pointer in reed_solomon.
9361 It decreases its size significantly and avoids a variable in .text.
9363 * grub-core/lib/reed_solomon.c (scratch): Removed.
9364 (chosenstat): New const or static array.
9370 (errvals): Likewise.
9372 (pol_evaluate): Replace x with log_x argument. All users updated.
9373 (syndroms): Removed.
9374 (gauss_solve): Use statically allocated arrays.
9375 (rs_recover): Likewise.
9376 Calculate syndroms directly.
9377 (decode_block): Use statically allocated arrays.
9378 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
9379 (main) [TEST]: Allow -DTEST -DSTANDALONE.
9381 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9383 Eliminate fixed limit on reed solomon decoder length.
9385 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
9386 rather than hardcoding the address.
9387 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
9388 no_reed_solomon_length.
9389 Move gate_a20 to no-reed-solomon part.
9390 Don't force a particular size of no reed-solomon part.
9391 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
9393 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
9394 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
9396 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9398 * grub-core/commands/wildcard.c (match_files): Handle filenames
9399 without explicit device.
9400 (wildcard_expand): Don't add explicit device if not already present.
9401 * tests/grub_script_echo1.in: Add a new expansion test.
9403 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9405 Replace single-linked with double-linked lists. It results in more
9406 compact and more efficient code.
9408 * grub-core/kern/list.c (grub_list_push): Moved from here ...
9409 * include/grub/list.h (grub_list_push): ... to here. Set prev.
9410 (grub_list_remove): Moved from here ...
9411 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
9412 (grub_prio_list_insert): Set prev.
9413 * include/grub/list.h (grub_list): Add prev. All users updated.
9415 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9417 Handle newer autotools. Add some missing quotes while on it.
9419 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
9420 (pkglib_DATA): Move grub-mkconfig_lib from here ...
9421 (pkgdata_DATA): ... here.
9422 * Makefile.util.def (update-grub_lib): Removed.
9423 * conf/Makefile.common (pkglib_DATA): Removed.
9424 (pkglib_SCRIPTS): Likewise.
9425 (pkgdata_DATA): New variable.
9426 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
9429 Remove unused variable while on it.
9430 * tests/util/grub-shell.in: Likewise.
9431 * util/grub-install.in: Likewise.
9432 * util/grub-mkconfig.in: Likewise.
9433 * util/grub-mknetdir.in: Likewise.
9434 * util/grub-mkrescue.in: Likewise.
9435 * util/grub-mkstandalone.in: Likewise.
9436 * util/grub.d/00_header.in: Likewise.
9437 * util/grub.d/10_hurd.in: Likewise.
9438 * util/grub.d/10_illumos.in: Likewise.
9439 * util/grub.d/10_kfreebsd.in: Likewise.
9440 * util/grub.d/10_linux.in: Likewise.
9441 * util/grub.d/10_netbsd.in: Likewise.
9442 * util/grub.d/10_windows.in: Likewise.
9443 * util/grub.d/20_linux_xen.in: Likewise.
9444 * util/grub.d/30_os-prober.in: Likewise.
9445 * util/update-grub_lib.in: Removed.
9447 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
9449 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
9450 a workaround for intel problem.
9452 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
9453 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
9454 2012-01-23 pfsmorigo
9456 * util/grub-install.in: Support dd'in into PreP partition.
9457 * util/grub-probe.c (probe): Support discovering partition type.
9458 (main): Support -t msdos_parttype.
9460 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
9462 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
9463 infinite recursion using counter.
9464 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
9465 init to skip it if the magic check fails.
9466 (dec_stream_header): Init s->crc32.
9468 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9469 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
9470 2012-01-22 Richard Laager <rlaager@wiktel.com>
9472 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
9474 (find_bestub): Determine correct size.
9475 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
9476 (scan_disk): Align the size down.
9477 Call check pool before find_bestub to have ashift.
9479 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9481 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
9482 dprintf in no-malloc zone.
9484 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
9486 * configure.ac: Add back in test for limits.h.
9488 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9490 Support 4K-sector NTFS.
9492 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
9493 (grub_ntfs_data): Remove blocksize.
9494 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
9495 Remove data argument. All users updated.
9497 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9499 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
9500 being in .text to avoid dprel references.
9501 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
9502 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
9503 (grub_arch_highmemsize): Likewise.
9504 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
9505 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
9506 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
9508 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
9510 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
9512 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
9513 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
9515 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
9517 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
9519 (grub_set_datetime_cmos): Likewise.
9521 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
9523 Make XZ compression parameters dependent on target and not host CPU.
9525 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
9526 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
9528 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
9530 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
9531 set but not used variable.
9533 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9535 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
9536 created when no uuid support is compiled into mkfs.reiser.
9538 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9540 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
9541 (utf8_to_macroman): Do the opposite.
9542 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
9544 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9546 * configure.ac: Refise build qemu_mips w/o unifont.
9548 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9550 Eliminate grub_min/grub_max prone to overflow usage.
9552 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
9553 (poll_nonroot_hub): Likewise.
9554 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
9555 (grub_affs_label): Likewise.
9556 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
9557 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
9558 (grub_hfs_label): Likewise.
9559 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
9560 * grub-core/fs/zfs/zfs.c (MIN): Remove.
9561 (zap_leaf_array_equal): Use grub_size. Remove MIN.
9562 (zap_leaf_array_get): Likewise.
9563 (dnode_get_path): Likewise.
9564 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
9565 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
9566 * grub-core/script/execute.c (grub_script_break): Likewise.
9567 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
9569 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
9570 * include/grub/misc.h (grub_min): Removed.
9571 (grub_max): Likewise.
9573 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
9575 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
9578 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9580 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
9582 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9584 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
9586 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9588 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
9589 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
9591 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9593 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
9594 rather than a hack for grub_strncasemap.
9596 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9598 Support multiple initrds
9599 Note: part of this was accidently committed in r3739.
9601 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
9603 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
9604 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
9605 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
9606 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
9607 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
9609 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9611 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
9612 disks with unknown size.
9613 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
9615 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9617 Remove defines pertaining to arbitrary limits not affecting GRUB
9620 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
9621 (EXT2_MAX_SYMLINKCNT): Likewise.
9622 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
9623 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
9624 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
9625 (GRUB_PXE_MAX_BLKSIZE): Likewise.
9626 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
9627 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
9628 (DN_MAX_OBJECT_SHIFT): Likewise.
9629 (DN_MAX_OFFSET_SHIFT): Likewise.
9630 (DN_MAX_OBJECT): Likewise.
9631 (DNODES_PER_LEVEL_SHIFT): Likewise.
9632 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
9633 (SPA_MAXBLOCKSIZE): Likewise.
9634 (SPA_BLOCKSIZES): Likewise.
9635 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
9636 (MZAP_MAX_BLKSZ): Likewise.
9638 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9640 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
9641 handle NULL appropriately.
9644 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
9648 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
9650 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
9651 * configure.ac: Fix efiemu check.
9653 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
9655 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
9657 Reported by: adamwill
9659 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
9661 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
9663 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9665 Fix handling of wide characters in gfxterm.
9667 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
9668 (clear_char): Likewise.
9669 (paint_char): Skip code == NULL chars.
9670 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
9672 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9674 * grub-core/normal/charset.c: Move comment to right place.
9676 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
9678 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
9679 (GRUB_AFFS_FLAG_FFS): Put back where it was.
9680 (grub_affs_mount): Revert the correct version checking.
9682 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
9684 * docs/grub.texi (Unicode): Mention several other unsupported features.
9686 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
9688 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
9689 case statements as compile-time one.
9690 (direct_read): Prevent spurious warnings.
9691 (grub_squash_read_data): Likewise.
9693 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
9695 Various squash4 fixes and LZO and XZ support.
9697 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
9698 Add xzembed source files.
9699 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
9700 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
9701 (grub_squash_inode): New subtype long_dir.
9702 (SQUASH_TYPE_LONG_DIR): New inode type.
9703 (COMPRESSION): New enum.
9704 (XZBUFSIZ): New const.
9705 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
9706 (read_chunk): Use data->decompress.
9707 (zlib_decompress): New function.
9708 (lzo_decompress): Likewise.
9709 (xz_decompress): Likewise.
9710 (squash_mount): Set new data fields.
9711 (grub_squash_iterate_dir): Handle long dir.
9712 (squash_unmount): Free xzdec and xzbuf.
9713 (grub_squash_open): Check ino type.
9714 (direct_read): Stylistic fixes. Use data->decompress.
9715 (grub_squash_read_data): Likewise.
9716 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
9717 (get_byte): Likewise.
9718 (grub_zlib_disk_read): Removed.
9719 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
9720 (GRUB_POSIX_BOOL_DEFINED): New define.
9721 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
9722 * grub-core/lib/xzembed/xz.h: Addmissing includes.
9723 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
9724 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
9726 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
9728 Don't override more informative errors.
9730 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
9731 * grub-core/font/font.c (open_section): Likewise.
9732 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
9733 filename. Don't override errors.
9734 (grub_cmd_openbsd_ramdisk): Don't override errors.
9735 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
9736 (grub_cmd_initrd): Likewise.
9737 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9738 (grub_cmd_initrd): Likewise.
9739 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
9740 (grub_cmd_linux): Likewise.
9741 (grub_cmd_initrd): Likewise.
9742 (grub_cmd_payload): Likewise.
9743 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
9744 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
9745 (grub_cmd_module): Likewise.
9746 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
9747 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
9748 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
9749 (grub_cmd_xnu_mkext): Likewise.
9750 (grub_cmd_xnu_ramdisk): Likewise.
9751 (grub_xnu_check_os_bundle_required): Likewise.
9752 (grub_xnu_load_kext_from_dir): Likewise.
9753 (grub_cmd_xnu_kextdir): Likewise.
9754 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
9756 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9758 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
9759 as 1024 in block size field. Found on one of my test images.
9760 Small optimisation while on it.
9762 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9764 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
9765 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
9766 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
9767 performance fixes while on it.
9768 (grub_sfs_close): Fix memory leak while on it.
9769 (grub_sfs_label): Convert Latin1 to UTF-8.
9771 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9773 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
9774 space to avoid overflows.
9775 (grub_hfs_label): Convert from macroman to UTF-8.
9777 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9779 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
9781 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9783 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
9785 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9787 * unicode: Import Unicode 6.0 data.
9789 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9791 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
9794 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9796 Avoid cutting in the middle of UTF-8 character.
9798 * include/grub/charset.h (grub_getend): New function.
9799 * grub-core/script/function.c (grub_script_function_find): Use
9801 * grub-core/normal/completion.c (add_completion): Likewise.
9803 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9805 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
9806 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
9807 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
9808 (GRUB_UNICODE_TAG_END): Likewise.
9809 (GRUB_UNICODE_LAST_VALID): Likewise.
9811 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9813 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
9814 len and make it smaller. All users updated.
9815 * util/import_unicode.py: Put length and not end character.
9818 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9820 Make better Unicode-compliant and unify some UTF-8 code pathes.
9822 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
9824 (grub_is_valid_utf8): Use grub_utf8_process.
9825 Check resulting code range.
9826 (grub_utf8_to_ucs4): Use grub_utf8_process.
9827 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
9830 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9832 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
9834 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9836 * docs/grub.texi (Filesystems): Mention AFS.
9838 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9840 * docs/grub.texi (Filesystems): Clarify restrictions.
9841 (Regexp): Mention non-Unicode regexp behaviour.
9842 (Other): Mention non-Unicode matching behaviour.
9844 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9846 Make HFS implementation use MacRoman.
9848 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
9849 (macroman): New const array.
9850 (macroman_to_utf8): New function.
9851 (utf8_to_macroman): Likewise.
9852 (grub_hfs_find_dir): Use utf8_to_macroman.
9853 (grub_hfs_dir): Use macroman_to_utf8.
9854 Set case_insensitive.
9856 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9858 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
9860 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9862 Integrate hints into autogeneration scripts.
9864 * docs/grub.texi (Filesystems): Add a hostdisk example.
9865 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
9866 (grub-probe): Add ofpath.
9867 * gentpl.py: Remove group nosparc64.
9868 * grub-core/commands/search.c (cache_entry): New struct.
9870 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
9871 * grub-core/commands/search_wrap.c (options): Add platform-specific
9873 (grub_cmd_search): Handle platform-specific hints.
9874 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
9875 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
9876 (grub_util_biosdisk_data): Likewise.
9877 (grub_util_biosdisk_open): Set device_map.
9878 (read_device_map): Handle "" as indication of no map.
9880 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
9881 (grub_util_biosdisk_get_compatibility_hint): New function.
9882 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
9883 * include/grub/emu/hostdisk.h
9884 (grub_util_biosdisk_get_compatibility_hint): New proto.
9885 * util/grub-install.in: Don't call grub-mkdevicemap.
9886 Add platform-specific hint to load.cfg.
9887 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
9888 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
9889 hints. Set root preliminary to compatibility hint, not to OS name.
9890 * util/grub-probe.c (PRINT_*): Add hints.
9891 (print): Make static.
9892 (escape_of_path): New function.
9893 (guess_bios_drive): Likewise.
9894 (guess_efi_drive): Likewise.
9895 (guess_baremetal_drive): Likewise.
9896 (print_full_name): Likewise.
9897 (probe): Handle hints.
9899 * util/ieee1275/devicemap.c: Removed.
9900 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
9902 (grub_util_devname_to_ofpath): Return NULL on failure.
9904 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
9906 * util/getroot.c (grub_util_pull_device): Fix memory leak.
9908 * po/POTFILES.in: Regenerated.
9910 Allow purely long options
9912 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
9913 (SHORT_ARG_USAGE): Likewise.
9914 (grub_arg_show_help): Compare opt with help_options.
9915 (parse_option): Receive opt as argument. If makes big simplificatons.
9918 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9920 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
9921 Restructure to avoid warning.
9923 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9925 * util/grub-install.in: Account for possible escaped comma in device
9928 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9930 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
9933 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9935 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
9936 allocation and zero-setting.
9937 (grub_ieee1275_get_devname): Check that alias is complete.
9939 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9941 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
9944 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9946 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
9948 (grub_ofdisk_open): Check and discard ieee1275 prefix.
9949 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9950 Add ieee1275 prefix.
9952 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9954 * docs/grub.texi (Filesystems): Update.
9956 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9958 Support odc, newc and bigendian cpio formats.
9960 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
9961 * grub-core/Makefile.core.def (newc): New module.
9963 (cpio_be): Likewise.
9964 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
9967 (head) [MODE_ODC]: Adapt for the format.
9968 (head) [MODE_NEWC]: Likewise.
9969 (head) [!MODE_*]: Write fields of interest as arrays.
9970 (MAGIC_USTAR): Removed.
9971 (read_number) [MODE_NEWC]: Change to hex.
9972 (read_number) [!MODE_*]: Parse binary arrays.
9973 (grub_cpio_find_file): Factor out the code for better structure and
9974 always use read_number.
9975 (grub_cpio_mount): Use MAGIC and MAGIC2.
9976 (grub_cpio_dir): Exit on first hook non-0 return.
9977 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
9978 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
9979 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
9980 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
9981 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
9982 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
9983 * grub-core/fs/newc.c: New file.
9984 * grub-core/fs/odc.c: Likewise.
9985 * grub-core/fs/cpio_be.c: Likewise.
9987 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9989 Fix handling of tar numbers occupying the whole field.
9991 * grub-core/fs/cpio.c (read_number): New function.
9992 (grub_cpio_find_file): Use read_number instead of strtoull.
9994 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9996 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
9997 occupying the whole field size.
9999 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
10001 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
10003 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10005 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
10007 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
10009 * grub-core/Makefile.core.def (lzma_decompress): Add missing
10010 TARGET_IMG_LDFLAGS.
10012 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10014 * util/getroot.c (ESCAPED_PATH_MAX): New define.
10015 (mountinfo_entry): Increase the field size to take escaping into
10017 (find_root_device_from_libzfs): Add one byte to size of strings for
10020 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10022 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
10024 * util/grub-setup.c (setup): Likewise.
10026 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10028 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
10031 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
10033 * docs/grub.texi (Internationalisation): New section.
10035 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
10037 * docs/grub.texi (Loopback booting): New section.
10039 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
10041 * util/grub-mkstandalone.in: Fix minor typo errors.
10043 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
10045 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
10047 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
10048 net/icmp.c and net/icmp6.c.
10049 (http): New module.
10050 (priority_queue): Likewise.
10051 * grub-core/io/bufio.c: Rewritten.
10052 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
10053 TYPE_WITH_CONFIGFILE_OPTION.
10054 (legacy_commands): Add bootp and dhcp.
10055 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
10056 (grub_legacy_parse): Likewise.
10057 * grub-core/lib/priority_queue.c: New file.
10058 * grub-core/net/arp.c: Add missing license header.
10059 (arp_find_entry): Removed.
10060 (arp_find_entry): Likewise.
10061 (grub_net_arp_resolve): Rename to ...
10062 (grub_net_arp_send_request): ...this.
10063 (grub_net_arp_receive): New card argument.
10064 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
10065 Set router and DNS server.
10066 (grub_net_configure_by_dhcp_ack): Handle routing information.
10067 (grub_cmd_bootp): Set checksum.
10068 (grub_bootp_init): Remove net_dhcp.
10069 * grub-core/net/dns.c: New file.
10070 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
10072 (get_card_packet): Handle allocation.
10073 (grub_efinet_findcards): Set mtu.
10074 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
10075 (get_card_packet): Handle allocation.
10076 (emucard): Set mtu.
10077 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
10078 (GRUB_MOD_INIT): Set mtu.
10079 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
10081 (get_card_packet): Handle allocation.
10082 (grub_ofnet_findcards): Set mtu.
10083 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
10085 (grub_net_recv_ethernet_packet): Handle IPv6.
10086 * grub-core/net/http.c: New file.
10087 * grub-core/net/icmp.c: Likewise.
10088 * grub-core/net/icmp6.c: Likewise.
10089 * grub-core/net/ip.c (ip6addr): New type.
10090 (ip6hdr): Likewise.
10091 (reassemble): Likewise.
10092 (cmp): New function.
10093 (reassembles): New variable.
10094 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
10095 (id): New variable.
10096 (send_fragmented): New function.
10097 (grub_net_send_ip_packet): Rename to ...
10098 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
10100 (grub_net_recv_ip_packets): Rename to ...
10101 (handle_dgram): ... this. Check checksum. Handle non-UDP.
10102 (free_rsm): New function.
10103 (free_old_fragments): Likewise.
10104 (grub_net_recv_ip4_packets): New function.
10105 (grub_net_send_ip6_packet): Likewise.
10106 (grub_net_send_ip_packet): Likewise.
10107 (grub_net_recv_ip6_packets): Likewise.
10108 (grub_net_recv_ip_packets): Likewise.
10109 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
10110 (LINK_LAYER_CACHE_SIZE): New const.
10111 (link_layer_find_entry): New function.
10112 (grub_net_link_layer_add_address): Likewise.
10113 (grub_net_link_layer_resolve_check): Likewise.
10114 (grub_net_link_layer_resolve): Likewise.
10115 (grub_net_ipv6_get_slaac): Likewise.
10116 (grub_net_ipv6_get_link_local): Likewise.
10117 (grub_cmd_ipv6_autoconf): Likewise.
10118 (parse_ip): Handle one number representation.
10119 (parse_ip6): New functoion.
10120 (match_net): Handle IPv6.
10121 (grub_net_resolve_address): Handle IPv6 and DNS.
10122 (grub_net_resolve_net_address): Handle IPv6.
10123 (route_cmp): New function.
10124 (grub_net_route_address): Find best route.
10125 (grub_net_addr_to_str): Handle IPv6.
10126 (grub_net_addr_cmp): New function.
10127 (grub_net_add_addr): Register local route.
10128 (print_net_address): Handle net address.
10129 (grub_net_poll_cards): Retransmit TCP.
10130 (grub_net_poll_cards_idle_real): Likewise.
10131 (have_ahead): New function.
10132 (grub_net_seek_real): Use underlying seek.
10133 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
10134 * grub-core/net/tcp.c: New file.
10135 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
10136 (cmp): New function.
10138 (tftp_receive): Handle unordered input.
10139 (destroy_pq): New function.
10140 (tftp_close): Close pq.
10141 * grub-core/net/udp.c: Put missing license header.
10142 (grub_net_udp_socket): New function.
10143 (udp_socket_register): Likewise.
10144 (grub_net_udp_close): Likewise.
10145 (grub_net_recv_udp_packet): Check checksum.
10146 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
10147 * include/grub/misc.h (grub_memchr): New function.
10148 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
10149 (grub_net_card_driver): Return buf in recv.
10150 (grub_net_slaac_mac_list): New struct.
10151 (grub_network_level_protocol_id): Add ipv6.
10152 (grub_net_network_level_addr): Likewise.
10153 (grub_net_network_level_net_addr): Likewise.
10154 (grub_net_app_protocol): Add seek.
10155 (grub_net_socket): Removed.
10156 (grub_net_sockets): Likewise.
10157 (grub_net_socket_register): Likewise.
10158 (grub_net_socket_unregister): Likewise.
10159 (FOR_NET_SOCKETS): Likewise.
10160 (grub_net_add_addr): Add const.
10161 (GRUB_NET_BOOTP_*): New enum.
10162 (grub_net_addr_cmp): New proto.
10163 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
10164 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
10165 (grub_net_hwaddr_to_str): NEw proto.
10166 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
10167 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
10168 (grub_dns_init): New proto.
10169 (grub_dns_fini): Likewise.
10170 (grub_net_tcp_retransmit): Likewise.
10171 (grub_net_link_layer_add_address): Likewise.
10172 (grub_net_link_layer_resolve_check): Likewise.
10173 (grub_net_link_layer_resolve): Likewise.
10174 (grub_net_dns_lookup): Likewise.
10175 (grub_net_add_dns_server): Likewise.
10176 (grub_net_remove_dns_server): Likewise.
10177 (GRUB_NET_TRIES): New const.
10178 (GRUB_NET_INTERVAL): Likewise.
10179 * include/grub/net/arp.h: Mostly rewritten.
10180 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
10181 * include/grub/net/ip.h: Mostly rewritten.
10182 * include/grub/net/netbuff.h: Indent.
10183 * include/grub/net/tcp.h: New file.
10184 * include/grub/net/udp.h: Mostly rewritten.
10185 * include/grub/priority_queue.h: New file.
10186 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
10187 (grub_swap_bytes64_compile_time): Likewise.
10188 (grub_cpu_to_be16_compile_time): Likewise.
10189 (grub_cpu_to_be32_compile_time): Likewise.
10190 (grub_cpu_to_be64_compile_time): Likewise.
10191 (grub_be_to_cpu64_compile_time): Likewise.
10193 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
10195 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
10196 UINT_TO_PTR with cast.
10198 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10200 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
10203 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10205 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
10208 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10210 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
10213 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10215 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
10216 Add missing const attribute.
10217 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
10219 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
10222 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10224 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
10226 (serpent_setkey): Likewise.
10227 (serpent_encrypt_internal): Likewise.
10228 (serpent_decrypt_internal): Likewise.
10229 (serpent_encrypt): Don't put an alignment-increasing cast.
10230 (serpent_decrypt): Likewise.
10231 (serpent_test): Likewise.
10233 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10235 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
10237 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10239 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
10241 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
10243 (PTR_TO_UINT64): Likewise.
10244 (PTR_TO_UINT32): Likewise.
10246 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10248 * util/grub-mkimage.c (generate_image): Decrease the higher limit
10250 * util/grub-setup.c (setup): Don't add redundancy past the higher load
10253 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10255 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
10256 text_width > available width a bit more gracefully.
10258 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10260 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
10261 current address calculation.
10263 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10265 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
10267 (encode_block): Likewise.
10269 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10271 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
10274 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10276 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
10277 non-RS part to avoid RS messing with GDT.
10278 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
10279 Increase to suit in realmode routines.
10281 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10283 * grub-core/kern/i386/realmode.S: Increase alignment.
10284 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
10286 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10288 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
10290 (syndroms): Compute 0 syndrom.
10291 (rs_recover): Use 0 syndrom.
10293 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10295 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
10297 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10299 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
10302 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10304 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
10306 (get_top_pad): Likewise.
10307 (get_right_pad): Likewise.
10308 (get_bottom_pad): Likewise.
10310 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10312 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
10314 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10316 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
10317 attribute as the structure isn't guaranteed to be properly aligned.
10318 (grub_efi_pci_device_path): Likewise.
10319 (grub_efi_pccard_device_path): Likewise.
10320 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
10321 specify the size of `memory_type'.
10322 (grub_efi_vendor_device_path): Likewise.
10323 (grub_efi_controller_device_path): Likewise.
10324 (grub_efi_acpi_device_path): Likewise.
10325 (grub_efi_expanded_acpi_device_path): Likewise.
10326 (grub_efi_atapi_device_path): Likewise.
10327 (grub_efi_scsi_device_path): Likewise.
10328 (grub_efi_fibre_channel_device_path): Likewise.
10329 (grub_efi_1394_device_path): Likewise.
10330 (grub_efi_usb_device_path): Likewise.
10331 (grub_efi_usb_class_device_path): Likewise.
10332 (grub_efi_i2o_device_path): Likewise.
10333 (grub_efi_mac_address_device_path): Likewise.
10334 (grub_efi_ipv4_device_path): Likewise.
10335 (grub_efi_ipv6_device_path): Likewise.
10336 (grub_efi_infiniband_device_path): Likewise.
10337 (grub_efi_uart_device_path): Likewise.
10338 (grub_efi_vendor_messaging_device_path): Likewise.
10339 (grub_efi_hard_drive_device_path): Likewise.
10340 (grub_efi_cdrom_device_path): Likewise.
10341 (grub_efi_vendor_media_device_path): Likewise.
10342 (grub_efi_file_path_device_path): Likewise.
10343 (grub_efi_protocol_device_path): Likewise.
10344 (grub_efi_piwg_device_path): Likewise.
10345 (grub_efi_bios_device_path): Likewise.
10347 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10349 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
10350 (grub_ucs4_to_utf8_alloc): Likewise.
10351 (grub_ucs4_to_utf8): Likewise.
10352 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
10353 (grub_ucs4_to_utf8_alloc): Likewise.
10355 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10357 AFFS never uses unicode.
10359 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
10360 (grub_latin1_to_utf8): New inline function.
10361 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
10363 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10365 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
10368 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10370 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
10371 (grub_squash_dirent_header): Likewise.
10372 (read_chunk): Don't double swap.
10373 (grub_squash_iterate_dir): Fix swap sizes.
10375 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10377 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
10379 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10381 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
10382 (grub_hfs_iterate_dir): Likewise.
10384 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10386 Fix video on platforms where unaligned access is forbidden.
10387 Make several optimisations while on it.
10389 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
10390 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
10391 (grub_video_fbblit_replace_32bit_1bit): Likewise.
10392 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
10394 (grub_video_fbblit_replace_16bit_1bit):
10395 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
10396 (grub_video_fbblit_replace_8bit_1bit): Likewise.
10397 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
10398 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
10399 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
10400 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
10401 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
10402 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
10403 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
10404 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
10405 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
10406 (grub_video_fbblit_replace_index_RGB888): Likewise.
10407 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
10408 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
10409 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
10410 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
10411 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
10412 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
10413 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
10415 (grub_video_fbblit_blend_XXX565_1bit):
10416 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
10417 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
10418 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
10420 * grub-core/video/fb/video_fb.c (common_blitter)
10421 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
10422 (grub_video_fb_create_render_target_from_pointer)
10423 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
10424 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
10425 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
10427 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
10429 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10431 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
10432 HH22 and HM10 relocations.
10434 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10436 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
10438 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10440 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
10441 allocation succeeded.
10443 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10445 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
10446 argument a u8 pointer. All users updated.
10447 Handle unaligned buffers.
10449 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10451 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
10452 add_part to workaround compiler bug.
10454 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10456 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
10458 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10460 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
10461 Reserve alignment invariants.
10462 (grub_multiboot_load): Likewise.
10463 (retrieve_video_parameters): Likewise.
10464 (grub_multiboot_make_mbi): Likewise.
10466 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10468 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
10471 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10473 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
10474 (grub_pata_pio_write): Likewise.
10476 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10478 Add noreturn attributes and remove unreachable code.
10480 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
10482 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
10483 code. Mark as noreturn.
10484 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
10485 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
10486 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
10488 * grub-core/kern/main.c (grub_main): Mark as noreturn.
10489 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
10490 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
10491 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
10492 * include/grub/kernel.h (grub_main): Mark as noreturn.
10493 * include/grub/reader.h (grub_rescue_run): Likewise.
10495 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10497 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
10498 redundant declaration.
10500 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10502 * include/grub/net.h (grub_net_network_level_interfaces): Remove
10503 redundant declaration.
10504 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
10506 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10508 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
10509 to ensure alignment.
10510 (grub_hdparm_print_identify): Make argument uint16 * to ensure
10511 alignment. Ensure tmp alignment.
10512 (grub_cmd_hdparm): Ensure buf alignment.
10513 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
10514 to ensure alignment.
10515 (grub_ata_dumpinfo): Ensure text alignment.
10516 (grub_atapi_identify): Preserve alignment invariant.
10517 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
10519 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10521 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
10522 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
10523 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
10524 * include/grub/misc.h (grub_reboot)
10525 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
10526 (grub_halt) [__mips__]: Likewise.
10528 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10530 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
10531 Remove redundant declaration.
10532 (grub_mmap_get_post64): Likewise.
10533 (grub_mmap_get_upper): Likewise.
10534 (grub_mmap_get_lower): Likewise.
10536 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10538 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
10539 uint32_t * to ensure alignment.
10540 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
10542 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10544 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
10545 uint16_t * to ensure alignment.
10546 (sun_pc_partition_map_iterate): Make `block' a union to ensure
10549 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10551 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
10552 to ensure alignment.
10553 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
10555 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10557 * grub-core/fs/ntfs.c (u16at): Make into inline function.
10558 Handle unaligned pointers.
10561 (fixup): Use byte access instead of v16at.
10562 (find_attr): Fix imporper usage of v32at.
10563 (read_data): Likewise.
10564 (list_file): Handle byte-swapping and unaligned strings.
10565 (grub_ntfs_label): Likewise.
10567 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10569 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
10570 as it's not necessarily aligned.
10572 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10574 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
10575 redundant declaration.
10576 (grub_serial_init): Likewise.
10577 (grub_terminfo_init): Likewise.
10579 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10581 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
10583 (ZAP_HASH_IDX): Likewise.
10584 (ZAP_LEAF_HASH_SHIFT): Likewise.
10585 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
10586 (LEAF_HASH): Likewise.
10587 (ZAP_LEAF_NUMCHUNKS): Likewise.
10588 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
10589 alignment invariants. Return pointer. All users updated.
10590 (ZAP_LEAF_ENTRY): Make into inline function.
10593 (xor_out): Use grub_crypto_xor.
10594 (dnode_get_path): Use grub_get_unaligned.
10595 (nvlist_find_value): Likewise.
10596 (grub_zfs_nvlist_lookup_uint64): Likewise.
10597 (grub_zfs_nvlist_lookup_string): Likewise.
10598 (get_nvlist_size): Likewise.
10599 (grub_zfs_open): Likewise.
10600 (fill_fs_info): Likewise.
10601 (grub_zfs_dir): Likewise.
10602 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
10603 alignment invariants.
10604 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
10605 necessarily aligned.
10607 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10609 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
10611 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10613 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
10614 arithmetic to conserve alignment invariants.
10616 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10618 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
10619 redundant declaration.
10620 (grub_efiemu_mm_obtain_request): Likewise.
10621 (grub_efiemu_prepare): Likewise.
10623 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10625 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
10628 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10630 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
10631 case of aunaligned recptr.
10632 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
10634 (grub_hfsplus_btree_search): Handle unaligned index.
10636 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10638 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
10639 to get freetag and skip.
10641 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10643 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
10645 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
10646 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
10648 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10650 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
10651 name for checksum and fix allocation algorithm.
10653 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10655 * include/grub/types.h (grub_properly_aligned_t): New type.
10656 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
10657 (grub_get_unaligned16): Add explicit casts.
10658 (grub_get_unaligned32): Likewise.
10659 (grub_get_unaligned64): Likewise.
10660 (grub_set_unaligned16): New function.
10661 (grub_set_unaligned32): Likewise.
10663 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10665 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
10667 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10669 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
10670 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
10671 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
10673 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10675 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
10678 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10680 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
10681 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
10683 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10685 Unify and improve RAID and crypto xor.
10687 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
10688 changed to grub_crypto_xor
10689 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
10690 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
10691 Use bigger types when possible.
10693 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10695 * grub-core/disk/raid.c (scan_devices): Fix condition.
10697 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10699 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
10700 Make name a const ptr.
10702 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10704 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
10705 first argument a const pointer.
10706 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
10707 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
10709 (grub_children_iterate): Likewise.
10710 (grub_machine_mmap_iterate): Remove redundant declaration.
10712 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10714 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
10715 (grub_cmd_acpi) [!x86]: Disable EBDA.
10717 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10719 Enable UTF8 in gnulib regexp.
10721 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
10722 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
10723 (isupper): Use grub_isupper.
10724 (isascii): New inline function.
10725 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
10726 * grub-core/lib/posix_wrap/wctype.h: Likewise.
10727 * grub-core/normal/charset.c (grub_utf8_process): New function.
10728 (grub_utf8_to_utf16): Use grub_utf8_process.
10729 (grub_encode_utf8_character): New function.
10730 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
10731 * include/grub/charset.h (grub_utf8_process): New declaration.
10732 (grub_encode_utf8_character): Likewise.
10733 * include/grub/misc.h (grub_islower): New inline function.
10734 (grub_isupper): Likewise.
10735 (grub_strchrsub): Moved down to fix the definitions.
10737 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10739 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
10742 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10744 * include/grub/loader.h (grub_loader_register_preboot_hook):
10745 Use struct preboot * and not void * for handle. All users updated.
10746 (grub_loader_unregister_preboot_hook): Likewise.
10748 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
10750 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
10751 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
10752 UTF-16-BE. All users updated.
10753 (grub_hfsplus_cmp_catkey): Fix unicode handling.
10754 (grub_hfsplus_iterate_dir): Likewise.
10755 (grub_hfsplus_label): Likewise.
10757 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
10759 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
10761 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
10763 Add missing const qualifiers.
10765 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
10766 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
10767 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
10768 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
10769 (grub_lvm_check_flag): Likewise.
10770 * grub-core/efiemu/i386/coredetect.c
10771 (grub_efiemu_get_default_core_name): Likewise
10772 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
10773 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
10774 * grub-core/fs/ntfs.c (fixup): Likewise.
10775 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
10776 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
10777 (fzap_lookup): Likewise.
10778 (zap_lookup): Likewise.
10779 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
10780 * grub-core/lib/legacy_parse.c (check_option): Likewise.
10781 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
10782 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
10783 (grub_freebsd_add_meta_module): Likewise.
10784 (grub_cmd_freebsd_module): Likewise.
10785 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
10786 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
10787 (grub_xnu_writetree_get_size): Likewise.
10788 (grub_xnu_writetree_toheap_real): Likewise.
10789 (grub_xnu_find_key): Likewise.
10790 (grub_xnu_create_key): Likewise.
10791 (grub_xnu_create_value): Likewise.
10792 (grub_xnu_register_memory): Likewise.
10793 (grub_xnu_check_os_bundle_required): Likewise.
10794 (grub_xnu_scan_dir_for_kexts): Likewise.
10795 (grub_xnu_load_kext_from_dir): Likewise.
10796 * grub-core/normal/color.c (color_list): Likewise.
10797 * grub-core/normal/completion.c (current_word): Likewise.
10798 * grub-core/normal/menu_entry.c (insert_string): Likewise.
10799 * grub-core/term/serial.c (grub_serial_find): Likewise.
10800 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
10801 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
10803 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
10804 (grub_freebsd_add_meta_module): Likewise.
10805 * include/grub/lib/arg.h (grub_arg_option): Likewise.
10806 * include/grub/net.h (grub_net_card_driver): Likewise.
10807 (grub_net_card): Likewise.
10808 (grub_net_app_protocol): Likewise.
10809 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
10810 * include/grub/serial.h (grub_serial_find): Likewise.
10811 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
10812 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
10813 (grub_xnu_create_value): Likewise.
10814 (grub_xnu_find_key): Likewise.
10815 (grub_xnu_scan_dir_for_kexts): Likewise.
10816 (grub_xnu_load_kext_from_dir): Likewise.
10818 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
10819 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
10820 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
10821 Moved from here ...
10822 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
10824 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
10826 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
10828 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
10830 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
10831 (read_device): Fix size calculation.
10833 2011-11-25 Robert Millan <rmh@gnu.org>
10835 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
10836 (find_root_device_from_libzfs): Add zpool output parser to be used
10837 as fallback when libzfs isn't available.
10839 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
10841 * po/Makefile.in.in: Add missing escape-continuation.
10843 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
10845 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
10847 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10849 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
10851 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10853 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
10855 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10857 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
10859 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
10861 * grub-core/lib/adler32.c: Add missing license specification.
10862 * grub-core/lib/crc64.c: Likewise.
10863 * grub-core/loader/i386/pc/plan9.c: Likewise.
10864 * grub-core/partmap/plan.c: Likewise.
10866 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
10868 Add facility to debug GRUB with gdb under qemu.
10870 * grub-core/gdb_grub.in: New file.
10871 * grub-core/gmodule.pl.in: Likewise.
10872 * grub-core/Makefile.core.def (gmodule.pl): New script.
10873 (gdb_grub): Likewise.
10875 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10877 * util/grub-mount.c (argp_parser): Accept relative pathes.
10878 * util/grub-fstest.c (argp_parser): Likewise.
10880 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10884 * Makefile.util.def (libgrubmods): Add
10885 grub-core/partmap/plan.c.
10886 * docs/grub.texi: Notice Plan9 support.
10887 * grub-core/Makefile.core.def (plan9): New module.
10888 (part_plan): Likewise.
10889 * grub-core/loader/i386/pc/plan9.c: New file.
10890 * grub-core/partmap/plan.c: Likewise.
10891 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
10893 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
10894 * include/grub/mm.h (grub_extend_alloc): New inline function.
10896 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10898 Make Reed-Solomon faster by using power of generator representation of
10901 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
10902 (gf_double_t): Likewise.
10903 (gf_invert): Removed.
10904 (gf_powx): New array.
10905 (gf_powx_inv): Likewise.
10906 (scratch): Move higher.
10907 (gf_reduce): Removed.
10908 (gf_mul): Use powx.
10909 (gf_invert): Likewise.
10910 (init_inverts): Replaced with ...
10911 (init_powx): ...this. All users updated.
10912 (pol_evaluate): Replace multiplications with additions.
10913 (rs_encode): Likewise.
10914 (gauss_eliminate): Call gf_invert.
10915 (grub_reed_solomon_add_redundancy): Call init_powx.
10916 (grub_reed_solomon_recover): Call init_powx unconditionally.
10918 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10920 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
10922 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10924 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
10925 disk->partiton for safety.
10927 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10929 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
10931 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
10933 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10935 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
10937 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10939 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
10941 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10943 Fix spaces handling in proc/self/mountinfo.
10945 * util/getroot.c (unescape): New function.
10946 (grub_find_root_device_from_mountinfo): Use unescape.
10948 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10950 Support ZFS embedding.
10952 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
10953 (grub_zfs_fs): Register grub_zfs_embed.
10955 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10957 Fix MIPS compilation.
10959 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
10960 * include/grub/offsets.h: Rename decompressor fields from
10961 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
10962 * util/grub-mkimage.c (image_targets): Use new names.
10964 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10966 Defer multiboot device parsing until we're in compressed part.
10968 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
10969 bsd_part. setdevice has fallen into disuse.
10970 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
10971 (bsd_part): Likewise.
10972 (boot_dev): New variable.
10973 (multiboot_trampoline): Don't parse multiboot device.
10974 Pass multiboot device in %edx.
10975 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
10977 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
10979 * grub-core/kern/i386/pc/startup.S: Save edx.
10980 (grub_boot_drive): Removed.
10981 (grub_install_dos_part): Likewise.
10982 (grub_install_bsd_part): Likewise.
10983 (grub_boot_device): New variable.
10984 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
10985 (grub_install_bsd_part): Likewise.
10986 (grub_boot_drive): Likewise.
10987 (grub_boot_device): New variable.
10988 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
10990 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10991 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
10992 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
10993 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
10994 * util/grub-install.in: Remove redundant condition.
10996 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10998 Fix bug introduced by previous commit.
11000 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
11002 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11004 Use decompressors framework on i386-pc. It increases core size
11005 by 46 bytes but improves compatibility and maintainability.
11007 * grub-core/Makefile.core.def (lzma_decompress): New image.
11008 (kernel): Add i386_pc_ldflags.
11009 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
11010 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
11011 to real_to_prot, prot_to_real and device info.
11012 * include/grub/offsets.h: Renamed decompressor offsets.
11013 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
11014 (image_target_desc): Remove raw_size and rename decompressor fields.
11015 (compress_kernel): Handle lzma.
11016 (generate_image): Handle decompressors on i386-pc.
11018 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11020 * configure.ac: Add -fno-asynchronous-unwind-tables.
11022 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11024 Move assembly code to C by using intwrap. It increases core size
11025 by 88 bytes but improves compatibility and maintainability.
11027 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
11028 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
11029 ... here. Translated to C.
11030 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
11031 * grub-core/term/i386/pc/console.c (grub_console_getkey):
11032 ... here. Translated to C.
11033 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
11034 * grub-core/term/i386/pc/console.c (grub_console_getxy):
11035 ... here. Translated to C.
11036 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
11037 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
11038 ... here. Translated to C.
11039 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
11040 * grub-core/term/i386/pc/console.c (grub_console_cls):
11041 ... here. Translated to C.
11042 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
11043 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
11044 ... here. Translated to C.
11045 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
11046 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
11048 * grub-core/term/i386/pc/console.c (int10_9): New function.
11049 (grub_console_putchar): Likewise.
11050 * include/grub/i386/pc/console.h: Removed the not anymore shared
11053 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11055 Move grub_chainloader_real_boot out of the kernel.
11057 * grub-core/Makefile.am: Remove machine/loader.h.
11058 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
11060 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
11062 (grub_relocator16_keep_a20_enabled): Likewise.
11063 (grub_relocator16_boot): Fill new variables.
11064 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
11065 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
11067 (grub_chainloader_unload): Likewise.
11068 (grub_chainloader_cmd): Likewise.
11069 * include/grub/i386/pc/loader.h: Removed.
11070 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
11071 and esi. All initialisers updated.
11073 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11074 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
11076 * Makefile.util.def (grub-mount): New util.
11077 * .bzrignore: Add grub-mount.
11078 * configure.ac: Check for fuse and enable grub-mount if available.
11079 * docs/man/grub-mount.h2m: New file.
11080 * util/grub-mount.c: Likewise.
11082 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11084 * grub-core/commands/efi/fixvideo.c: Gettextize.
11085 * grub-core/commands/hashsum.c: Likewise.
11086 * grub-core/commands/i386/cmostest.c: Likewise.
11087 * grub-core/commands/i386/pc/drivemap.c: Likewise.
11088 * grub-core/commands/i386/pc/lsapm.c: Likewise.
11089 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11090 * grub-core/commands/lsmmap.c: Likewise.
11091 * grub-core/commands/menuentry.c: Likewise.
11092 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11093 * grub-core/commands/setpci.c: Likewise.
11094 * grub-core/loader/i386/bsd.c: Likewise.
11095 * grub-core/loader/i386/linux.c: Likewise.
11096 * util/getroot.c: Likewise.
11097 * util/grub-editenv.c: Likewise.
11098 * util/grub-fstest.c: Likewise.
11099 * util/grub-mkfont.c: Likewise.
11100 * util/grub-mkimage.c: Likewise.
11101 * util/grub-mkpasswd-pbkdf2.c: Likewise.
11102 * util/grub-pe2elf.c: Likewise.
11103 * util/grub-probe.c: Likewise.
11104 * util/grub-setup.c: Likewise.
11105 * util/ieee1275/ofpath.c: Likewise.
11106 * util/misc.c: Likewise.
11107 * util/raid.c: Likewise.
11109 2011-11-11 Robert Millan <rmh@gnu.org>
11111 * util/getroot.c (grub_util_get_geom_abstraction): Remove
11112 __attribute__((unused)) from `os_dev', which *is* being used.
11114 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11116 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
11118 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
11119 GRUB_IA64_DL_GOT_ALIGN.
11120 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
11121 GRUB_IA64_DL_TRAMP_ALIGN.
11123 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11125 Replace grub_fatal with normal errors in i386 linux loader.
11127 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
11128 (allocate_pages): Check find_efi_mmap_size return value.
11129 (grub_e820_add_region): Return error.
11130 (grub_linux_boot): Check mmap return value.
11132 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11134 * grub-core/commands/acpihalt.c: Gettextized.
11135 * grub-core/commands/cacheinfo.c: Likewise.
11136 * grub-core/commands/cmp.c: Likewise.
11137 * grub-core/commands/efi/loadbios.c: Likewise.
11138 * grub-core/commands/gptsync.c: Likewise.
11139 * grub-core/commands/ieee1275/suspend.c: Likewise.
11140 * grub-core/commands/legacycfg.c: Likewise.
11141 * grub-core/commands/memrw.c: Likewise.
11142 * grub-core/commands/minicmd.c: Likewise.
11143 * grub-core/commands/parttool.c: Likewise.
11144 * grub-core/commands/time.c: Likewise.
11145 * grub-core/commands/videoinfo.c: Likewise.
11146 * grub-core/disk/geli.c: Likewise.
11147 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
11148 * grub-core/disk/luks.c: Likewise.
11149 * grub-core/disk/lvm.c: Likewise.
11150 * grub-core/font/font_cmd.c: Likewise.
11151 * grub-core/fs/zfs/zfscrypt.c: Likewise.
11152 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11153 * grub-core/gfxmenu/view.c: Likewise.
11154 * grub-core/kern/emu/hostdisk.c: Likewise.
11155 * grub-core/kern/emu/main.c: Likewise.
11156 * grub-core/kern/emu/misc.c: Likewise.
11157 * grub-core/kern/emu/mm.c: Likewise.
11158 * grub-core/kern/mips/arc/init.c: Likewise.
11159 * grub-core/kern/mips/loongson/init.c: Likewise.
11160 * grub-core/kern/partition.c: Likewise.
11161 * grub-core/lib/i386/halt.c: Likewise.
11162 * grub-core/lib/mips/arc/reboot.c: Likewise.
11163 * grub-core/lib/mips/loongson/reboot.c: Likewise.
11164 * grub-core/loader/i386/pc/chainloader.c: Likewise.
11165 * grub-core/loader/i386/xnu.c: Likewise.
11166 * grub-core/loader/multiboot.c: Likewise.
11167 * grub-core/net/bootp.c: Likewise.
11168 * grub-core/net/net.c: Likewise.
11169 * grub-core/normal/term.c: Likewise.
11170 * grub-core/partmap/bsdlabel.c: Likewise.
11171 * grub-core/parttool/msdospart.c: Likewise.
11172 * grub-core/term/gfxterm.c: Likewise.
11173 * grub-core/term/terminfo.c: Likewise.
11174 * grub-core/video/i386/pc/vbe.c: Likewise.
11175 * util/grub-menulst2cfg.c: Likewise.
11176 * util/grub-mkdevicemap.c: Likewise.
11177 * util/grub-mklayout.c: Likewise.
11178 * util/grub-mkrelpath.c: Likewise.
11179 * util/grub-script-check.c: Likewise.
11180 * util/ieee1275/grub-ofpathname.c: Likewise.
11181 * util/resolve.c: Likewise.
11183 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11185 Support %1$d syntax.
11187 * tests/printf_unit_test.c: New file.
11188 * Makefile.util.def (printf_test): New test.
11189 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
11191 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11193 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
11196 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11198 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
11200 * grub-core/font/font.c (grub_font_load): Likewise.
11202 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11204 * util/grub-macho2img.c: Add comment concerning gettext.
11205 * grub-core/lib/legacy_parse.c: Likewise.
11207 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11209 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
11210 (grub_xvasprintf): Likewise.
11212 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11214 Add const keyword to grub_env_get and gettextize week days.
11216 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
11217 (grub_read_hook_datetime): Return const char *.
11218 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
11220 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
11222 (grub_get_weekday_name): Return const char *. Call gettext.
11223 * grub-core/script/argv.c (grub_script_argv_append): Receive const
11224 char * and len as the argument. All users updated.
11225 (grub_script_argv_split_append): Receive const char *.
11226 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
11227 * include/grub/env.h (grub_env_get): Likewise.
11228 (grub_env_read_hook_t): Return const char *.
11229 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
11230 (grub_script_argv_split_append): Likewise.
11232 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11234 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
11236 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11238 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
11239 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
11241 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11243 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
11246 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11248 Fix mips compilation.
11250 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
11252 (hashes): Use in embed decoder as well (for sizes).
11253 (dec_stream_header): Fix embed decompressor logic.
11254 (dec_stream_footer): Likewise.
11256 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11258 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
11259 an error and not a fatal on unrecognised relocation types.
11261 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11263 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11264 Issue error rather than printf on unknown arguments.
11266 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11268 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
11271 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11273 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
11276 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11278 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
11279 leftover debug printf.
11281 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11283 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
11285 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11287 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
11290 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11292 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
11294 2011-11-10 Shea Levy <slevy@tieronedesign.com>
11296 Allow all modules to perform serial IO
11298 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
11299 * include/grub/serial.h (grub_serial_port_configure): New inline
11301 (grub_serial_port_fetch): Likewise.
11302 (grub_serial_port_put): Likewise.
11303 (grub_serial_port_fini): Likewise.
11304 (grub_serial_find): New proto.
11306 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11308 Put symlink at the end of the node and fix a potential
11311 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
11312 Make symlink into an array.
11313 (set_rockridge): Set have_symlink and alloc_dirents.
11314 (grub_iso9660_read_symlink): Use new layout.
11315 (grub_iso9660_iterate_dir): Fix memory corruption.
11317 (grub_iso9660_dir): Set have_symlink.
11318 (grub_iso9660_open): Likewise.
11320 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11322 Remove local keyword.
11324 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
11325 (version_test_gt): Likewise.
11326 (version_find_latest): Likewise.
11327 (gettext_printf): Likewise.
11328 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
11330 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11332 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
11334 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11336 Fix ZFS memory and resource leaks.
11338 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
11341 (fill_vdev_info): New parameter inserted. All users updated.
11342 (check_pool_label): Likewise.
11343 (scan_disk): Likewise.
11344 (scan_devices): Close non-inserted disks.
11345 (fzap_iterate): Free l.
11346 (unmount_device): Free children descripto memory.
11348 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11350 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
11351 argument (access out of bounds).
11353 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11355 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
11358 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11360 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
11363 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11365 Fix several memory leaks.
11367 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
11368 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
11369 (grub_cpio_dir): Likewise.
11370 * grub-core/fs/fat.c (grub_fat_label): Likewise.
11371 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
11372 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
11373 (grub_romfs_label): Likewise.
11374 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
11375 (squash_unmount): New function.
11376 (grub_squash_dir): Fix memory leak.
11377 (grub_squash_open): Likewise.
11378 (grub_squash_read): Likewise.
11379 (grub_squash_mtime): Likewise.
11380 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
11381 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
11382 * util/grub-fstest.c (fstest): Likewise.
11384 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11386 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
11387 avoid accessing beyond the array.
11389 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11391 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
11393 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11395 Several AFFS fixes.
11397 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
11398 (GRUB_AFFS_FLAG_FFS): Removed.
11399 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
11400 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
11401 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
11402 (grub_fshelp_node): Make block 32-bit.
11403 Add block_cache and last_block_cache.
11404 (grub_affs_read_block): Fill and use block cache.
11405 (grub_affs_read_file): Removed.
11406 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
11408 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
11410 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
11412 (grub_affs_close): Free block cache.
11413 (grub_affs_read): Use grub_fshelp_read_file directly.
11415 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11417 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
11420 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11422 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
11424 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
11427 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11429 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
11431 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
11432 byteswap when needed.
11434 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11436 Fix FreeBSD compilation.
11438 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
11439 to avoid circular dependency.
11440 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
11441 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
11442 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
11444 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11446 Fix ZFS crypto error types.
11448 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
11449 (grub_gcm_decrypt): Likewise.
11450 (grub_zfs_load_key_real): Fix error code type. Handle possible error
11453 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11457 * Makefile.util.def (10_illumos): New script.
11458 * configure.ac: Set COND_HOST_ILLUMOS.
11459 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
11460 Support Illumos calls.
11461 (find_partition_start) [__sun__]: Likewise.
11462 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
11463 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
11464 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
11465 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
11467 * util/grub-probe.c (probe) [__sun__]: Do character check.
11468 * util/grub.d/10_illumos.in: New file.
11470 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11472 Support escaped commas in hostdisk.
11474 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
11475 (find_grub_drive): Use unescape_cmp.
11476 (make_device_name): Escape commas.
11478 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11480 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
11482 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11484 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
11487 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11489 Support trampoline jumps on powerpc.
11491 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
11493 (grub_dl_load_segments): Set mod->sz.
11494 (grub_dl_flush_cache): Flush whole space occupied by module, not just
11496 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
11498 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
11500 (trampoline): New struct.
11501 (trampoline_template): New const.
11502 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
11503 * include/grub/dl.h (grub_dl): Add sz element.
11504 [__powerpc__]: Follow __ia64__.
11505 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
11506 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
11507 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
11508 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
11510 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
11512 ZFS crypto support.
11514 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
11515 * grub-core/Makefile.core.def (zfscrypt): New module.
11516 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
11517 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
11518 it. All users updated.
11519 (grub_zfs_decrypt): New var.
11520 (grub_zfs_load_key): Likewise.
11521 (zio_checksum_functions): Add SHA256+MAC.
11522 (zio_checksum_verify): Handle incomplete comparison due to MAC.
11523 (zio_read): Handle encrypted blocks.
11524 (zap_verify): Remove incorrect check.
11525 (fzap_iterate): Handle non-standard fzap.
11526 (zap_iterate): Likewise.
11527 (zap_iterate_u64): New function.
11528 (dnode_get_fullpath): Load keys.
11529 * grub-core/fs/zfs/zfscrypt.c: New file.
11530 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
11531 (grub_crypto_ecb_encrypt): Make input const.
11532 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
11533 (grub_crypto_ecb_encrypt): Make input const.
11534 (GRUB_CIPHER_AES): New macro.
11535 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
11536 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
11537 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
11538 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
11539 prefix. All users updated.
11540 (grub_zfs_add_key): New proto.
11541 (grub_zfs_decrypt): Likewise.
11542 (grub_zfs_load_key): Likewise.
11543 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
11544 * util/grub-fstest.c (options): Add -K option.
11545 (argp_parser): Likewise.
11547 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
11549 Support zle compression on ZFS.
11551 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
11552 (decomp_table): Add zle.
11553 * include/grub/zfs/zio.h (zio_compress): Add zle.
11555 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
11557 Support BtrFS embedding.
11559 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
11560 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
11561 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
11562 * util/grub-setup.c (setup): Use fs embedding if available.
11563 Add additional sanity check.
11565 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
11567 * util/grub-install.in: Fix condition for config_opt.
11569 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11571 Support third redundancy strip on raidz3.
11573 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
11574 Return error on singularity. All users updated.
11575 (read_device): Don't stop on 3rd failure on raidz3.
11577 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11579 Support case-insensitive ZFS subvolumes.
11581 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
11583 (zap_hash): Likewise.
11584 (name_cmp): New function.
11585 (zap_leaf_array_equal): New parameter case_insensitive.
11587 (zap_leaf_lookup): Likewise.
11588 (fzap_lookup): Likewise.
11589 (zap_lookup): Likewise.
11590 (dnode_get_path): New parameter case_insensitive. Retrieve case
11591 sensitiviness of a volume. All users updated.
11592 (dnode_get_fullpath): New parameter case_insensitive.
11594 (grub_zfs_dir): Set info.case_insensitiveness.
11596 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11598 Support second redundancy strip on raidz(2,3).
11600 * grub-core/fs/zfs/zfs.c (powx): New array.
11601 (powx_inv): Likewise.
11603 (xor_out): New function.
11604 (gf_mul): Likewise.
11605 (recovery): Likewise.
11606 (read_device): Use second redundancy strip.
11608 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11610 Use a power of generator representation of GF(256) multiplication group
11611 to save space time and complexity.
11613 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
11614 (raid6_table2): Likewise.
11616 (powx_inv): Likewise.
11618 (grub_raid_block_mul): Replace with ...
11619 (grub_raid_block_mulx): ...this.
11620 (grub_raid6_init_table): Rewritten.
11621 (grub_raid6_recover): Use power of generator representation.
11623 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11625 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
11626 for the right device.
11628 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11630 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
11631 expected by grub-mkimage and it's more clear since there is no implicit
11634 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11636 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
11638 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
11640 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
11642 * util/grub-mkrescue.in: Fix handling xorriso option.
11644 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11646 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
11649 2011-11-03 crocket <crockabiscuit@gmail.com>
11651 * util/grub.d/10_linux.in: Add Slackware initrd naming.
11653 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11655 XZ CRC64 and SHA256 support.
11657 * Makefile.util.def (libgrubmods): Add crc64.c.
11658 * grub-core/Makefile.core.def (crc64): New module.
11659 * grub-core/lib/crc64.c: New file.
11660 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
11661 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
11663 (MAX_HASH_SIZE): New define.
11664 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
11665 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
11666 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
11667 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
11668 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
11669 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
11670 Handle non-crc32 hashes.
11671 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
11672 (dec_stream_header): Handle non-crc32 hashes.
11673 (dec_stream_footer): Likewise.
11674 (dec_block_header): Likewise.
11675 (dec_main): Likewise.
11676 (xz_dec_init): Likewise.
11677 (xz_dec_reset): Likewise.
11678 (xz_dec_end): Likewise.
11679 * util/import_gcry.py: Add CRC64 line.
11681 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11683 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
11686 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11688 Make reiserfs label retrieval similar to other *_label functions.
11690 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
11691 (REISERFS_MAX_LABEL_LENGTH): Removed.
11692 (REISERFS_LABEL_OFFSET): Likewise.
11693 (grub_reiserfs_label): Rewritten.
11695 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11697 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
11700 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11702 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
11704 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
11706 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
11707 drive failure on both raidz and raidz2.
11709 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
11711 Fix RAIDZ(2) for >= 5 devices.
11713 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
11714 asize argument. All users updated.
11716 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
11720 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
11721 (fill_vdev_info_real): Set ashift.
11722 (read_device): Rewrite RAIDZ part based on reverse engineering.
11724 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11726 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
11727 don't report potentially unavialiable fields in debug output.
11728 (find_path): Fix double-free and memory leak.
11730 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11732 Read label on UFS1.
11734 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
11735 (grub_ufs_fs): Always set .label.
11737 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11741 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
11742 (grub_ufs_data): New field log2_blksz.
11743 (grub_ufs_read_file): Use shifts.
11744 (grub_ufs_mount): Check block size and logarithm it.
11746 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11748 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
11751 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11753 Handle symlinks and long names on tar and cpio.
11755 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
11756 (ATTR_FILE): Likewise.
11757 (ATTR_DIR): Likewise.
11758 (ATTR_LNK): Likewise.
11759 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
11760 (grub_cpio_find_file): Fill mode, handle linkname field as well as
11762 (grub_cpio_mount): Zero-fill data.
11763 (handle_symlink): New function.
11764 (grub_cpio_dir): Handle symlinks.
11765 (grub_cpio_open): Likewise.
11766 (grub_cpio_close) [MODE_USTAR]: Free linkname.
11768 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11770 Fix iso9660 filename limitations and fix memory leaks.
11772 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
11773 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
11775 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11777 Fix JFS file name length limitations.
11779 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
11780 (grub_jfs_diropen): Fix maximum filename length.
11781 (grub_jfs_getent): Fix filename length.
11782 (grub_jfs_lookup_symlink): Fix size checks.
11784 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11786 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
11789 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11791 Leverage BFS implementation to read AFS.
11793 * Makefile.util.def (libgrubmods): Add afs.c.
11794 * grub-core/Makefile.core.def (afs): New module
11795 * grub-core/fs/afs.c: New file.
11796 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
11798 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11800 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
11802 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11804 * grub-core/fs/bfs.c: Run indent.
11806 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11808 BFS implementation based on the specification.
11810 * grub-core/fs/bfs.c: New file.
11811 * Makefile.util.def (libgrubmods): Add bfs.c.
11812 * grub-core/Makefile.core.def (bfs): New module.
11814 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11816 * util/grub-fstest.c (cmd_cp): Clarify error message.
11817 (cmd_cmp): Likewise.
11819 2011-10-30 Yves Blusseau <blusseau@zetam.org>
11821 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
11824 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
11826 Remove afs and befs because of copyright problem.
11828 * grub-core/fs/afs.c: Removed.
11829 * grub-core/fs/afs_be.c: Removed.
11830 * grub-core/fs/befs.c: Removed.
11831 * grub-core/fs/befs_be.c: Removed.
11832 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
11833 * grub-core/Makefile.core.def (afs): Removed.
11834 (afs_be): Likewise.
11836 (befs_be): Likewise.
11838 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11840 Prefer rockridge over Joliet.
11842 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
11844 (set_rockridge): ... here.
11845 (grub_iso9660_mount): Check rockridge on the primary label when
11846 discovering. Ignore Joliet if Rockridge is present.
11848 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11850 Use shifts in nilfs2.
11852 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
11853 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
11854 (grub_nilfs2_palloc_entries_per_group): Replace with ...
11855 (grub_nilfs2_log_palloc_entries_per_group): ... this.
11856 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
11857 (grub_nilfs2_entries_per_block): Replaced with ...
11858 (grub_nilfs2_log_entries_per_block_log): ... this.
11859 (grub_nilfs2_blocks_per_group): Replaced with ...
11860 (grub_nilfs2_blocks_per_group_log): ... this.
11861 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
11862 (grub_nilfs2_blocks_per_desc_block_log): ... this.
11863 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
11864 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
11865 (grub_nilfs2_palloc_entry_offset): Replaced ...
11866 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
11867 (grub_nilfs2_dat_translate): Use shifts.
11868 (grub_nilfs2_read_inode): Likewise.
11869 (GRUB_MOD_INIT): Ensure that logs are correct.
11871 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11873 Use shifts in minix filesystem.
11875 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
11876 (GRUB_MINIX_ZONE2SECT): Likewise.
11877 (grub_minix_data): Replace block_size with log_block_size.
11878 (grub_minix_read_file): Use shifts.
11879 (grub_minix_mount): Check block size and take a logarithm.
11881 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11883 Use shifts in squash4.
11885 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
11886 (squash_mount): Check block size and take logarithm.
11887 (direct_read): Use shifts.
11889 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11891 Correct befs block counting logic.
11893 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
11894 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
11895 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
11896 (grub_afs_read_inode): Use block_shift.
11897 (RANGE_SHIFT): New definition.
11898 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
11899 unexpected conditions, use shifts and appropriate types.
11900 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
11902 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11904 * grub-core/disk/raid.c (scan_devices): Check partition.
11905 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
11907 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
11909 Support BFS (befs) UUID.
11911 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
11912 (grub_afs_small_data_element_header): New struct.
11913 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
11914 (grub_afs_read_attribute) [MODE_BFS]: New function.
11915 (grub_afs_iterate_dir): Allocate for complete inode.
11916 (grub_afs_mount): Likewise.
11917 (grub_afs_uuid) [MODE_BFS]: New function.
11918 (grub_afs_fs) [MODE_BFS]: Add .uuid.
11920 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
11922 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
11923 (zfs_unmount): Fix memory leak.
11925 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11927 Support NTFS reparse points.
11929 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
11930 (symlink_descriptor): New struct.
11931 (grub_ntfs_read_symlink): New function.
11932 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
11933 (grub_ntfs_open): Likewise.
11935 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11937 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
11939 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11941 fstest xnu_uuid subcommand.
11943 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
11944 grub-core/commands/xnu_uuid.c.
11945 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
11946 (fstest): Handle xnu_uuid.
11947 (options): Document xnu_uuid.
11948 (argp_parser): Parse xnu_uuid.
11950 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11952 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
11953 -l argument. Add newline at the end if printing.
11954 (GRUB_MOD_INIT): Document -l.
11956 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11958 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
11960 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11962 ZFS multi-device and version 33 support.
11964 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
11965 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
11966 (grub_zfs_data): Add multidev-ice-related fields.
11967 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
11968 (dva_get_offset): Make dva const.
11969 (zfs_fetch_nvlist): New function.
11970 (fill_vdev_info_real): Likewise.
11971 (fill_vdev_info): Likewise.
11972 (check_pool_label): Likewise.
11973 (scan_disk): Likewise.
11974 (scan_devices): Likewise.
11975 (read_device): Likewise.
11976 (read_dva): Likewise.
11977 (zio_read_gang): Use read_dva.
11978 (zio_read_data): Likewise.
11979 (zap_leaf_lookup): Add missing endian conversion.
11980 (zap_verify): Add missing endian conversion. All users updated.
11981 (fzap_lookup): Likewise.
11982 (fzap_iterate): Likewise.
11983 (dnode_get_path): Handle SA bonus.
11984 (nvlist_find_value): Make input const. All users updated.
11985 (unmount_device): New function.
11986 (zfs_unmount): Use unmount_device.
11987 (zfs_mount): Use scan_disk.
11988 (zfs_mtime): New function.
11989 (grub_zfs_open): Handle system attributes.
11990 (fill_fs_info): Likewise.
11991 (grub_zfs_dir): Likewise.
11992 (grub_zfs_fs): Add mtime.
11993 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
11994 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
11995 (SA_MTIME_OFFSET): Likewise.
11996 (SA_SYMLINK_OFFSET): Likewise.
11997 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
11998 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
11999 (fstest): Support zfsinfo.
12000 (argp_parser): Likewise.
12002 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
12004 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
12007 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
12011 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
12012 sharing the same block. Iterate over correct number of indices.
12013 (dnode_get_path): Handle symlinks correctly.
12015 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12017 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
12019 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12021 Read label on HFS+.
12023 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
12024 (grub_hfsplus_btree_search): Fix types.
12025 (grub_hfsplus_label): Implement.
12027 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12029 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
12031 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12033 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
12035 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12037 Fix symlink handling on iso9660.
12039 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
12041 (grub_iso9660_susp_iterate): Accept zero-size iterate.
12042 (grub_iso9660_read_symlink): Moved most of code ...
12043 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
12045 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12047 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
12048 Use union to avoid breaking strict-aliasing rules.
12050 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12052 Support multi-extent iso files.
12054 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
12056 (grub_fshelp_node): Revamp. All users updated.
12057 (FLAG_*): New enum.
12058 (read_node): New function.
12059 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
12061 (grub_iso9660_mount): Don't attempt to read sua when there is none.
12062 (get_node_size): New function.
12063 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
12065 Fix memory leak on . and ..
12066 (grub_iso9660_read): Use read_node.
12067 (grub_iso9660_close): Free node.
12069 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12071 Fix tar 4G limit and handle paths containing dot.
12073 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
12074 (canonicalize): New function.
12075 (grub_cpio_find_file): Use canonicalize. Store offs in
12077 (grub_cpio_dir): Use grub_disk_addr_t.
12078 (grub_cpio_open): Likewise.
12080 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12082 Fix handling of uncompressed blocks on squashfs and break 4G limit.
12084 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
12086 (grub_squash_inode): Add long_file and block_size.
12087 (grub_squash_cache_inode): New struct.
12088 (grub_squash_dirent): Make types into enum.
12089 (SQUASH_TYPE_LONG_REGULAR): New type.
12090 (grub_squash_frag_desc): Add field size.
12091 (SQUASH_BLOCK_FLAGS): New enum.
12092 (grub_squash_data): Use grub_squash_cache_inode.
12093 (grub_fshelp_node): Make ino_chunk 64-bit.
12094 (read_chunk): Minor argument change. All users updated.
12095 (squash_mount): Use correct le_to_cpu.
12096 (grub_squash_open): Handle LONG_REGULAR.
12097 (direct_read): New function.
12098 (grub_squash_read_data): Handle blocks correctly.
12100 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12102 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
12104 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12106 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
12108 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
12110 Fix 2G limit on ZFS.
12112 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
12114 (uberblock_verify): Likewise.
12115 (dmu_read): Likewise.
12116 (grub_zfs_read): Likewise. Remove invalid cast.
12118 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
12120 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
12121 (grub_jfs_blkno): Fix incorrect shift.
12122 (grub_jfs_read_file): Use more appropriate types.
12124 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
12126 Support triple indirect on minix2 and minix3.
12128 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
12129 Declare triple_indir_zone.
12130 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
12133 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
12137 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
12138 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
12139 Rename ctime to mtime. All users updated.
12140 (grub_minix_get_file_block): Fix types and double indirect computations.
12142 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12144 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
12145 if no label is found.
12146 (grub_fat_iterate_dir): Fix file size type.
12147 (grub_fat_iterate_dir): Likewise.
12149 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12151 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
12153 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
12154 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
12156 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12158 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
12160 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12162 * util/import_gcry.py: Accept space between # and include.
12164 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12166 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
12168 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12170 Fine grainely disable warnings on lexer. Remove Wno-error on it.
12172 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
12173 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
12175 * grub-core/script/yylex.l: Add fine-grained #pragma.
12177 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12179 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
12180 New inline function.
12181 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
12183 (memset) [GRUB_UTIL]: Likewise.
12184 (memcmp) [GRUB_UTIL]: Likewise.
12186 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12188 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
12189 inline function rather than a define.
12191 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12193 * util/grub-setup.c: Add missing include.
12195 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12197 * util/ieee1275/grub-ofpathname.c: Add missing include.
12199 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12201 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
12202 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
12205 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12207 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
12210 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12212 * util/grub-install.in: Add datarootdir as per automake manual
12214 * util/grub-mknetdir.in: Likewise.
12216 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12218 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
12220 * util/grub.d/10_kfreebsd.in: Likewise.
12221 * util/grub.d/10_linux.in: Likewise.
12222 * util/grub.d/10_netbsd.in: Likewise.
12223 * util/grub.d/10_windows.in: Likewise.
12224 * util/grub.d/20_linux_xen.in: Likewise.
12226 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
12228 Remove redundant grub_kernel_image_size.
12230 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
12232 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
12233 the small code. It moves it only by few bytes but simplifies the code.
12234 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
12236 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
12237 (grub_kernel_image_size): Removed.
12238 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
12239 (grub_kernel_image_size): Removed.
12240 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
12241 compiled with Apple toolchain.
12242 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
12243 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
12244 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
12245 (grub_total_module_size): Likewise.
12246 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
12248 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
12249 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
12250 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
12251 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
12252 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
12253 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
12254 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
12255 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
12257 (grub_total_module_size): Removed.
12258 * util/grub-mkimage.c (image_target_desc): Remove image_size.
12259 (image_targets): Likewise.
12260 Set .compressed_size to no field on sparc.
12261 (generate_image): Remove kernel_image_size handling.
12263 2011-10-19 Szymon Janc <szymon@janc.net.pl>
12265 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
12266 NULL pointer dereference.
12268 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12270 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
12271 done with a dedicated section.
12273 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
12274 Ensure the correct position of boot_path.
12275 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
12276 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
12278 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
12279 * include/grub/boot.h: Removed. All references removed.
12280 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
12282 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
12284 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12286 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
12289 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12291 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
12293 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12295 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
12296 Don't add the bogus brackets.
12298 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12302 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
12303 * grub-core/Makefile.core.def (exfat): New module.
12304 * grub-core/fs/exfat.c: New file.
12305 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
12306 (GRUB_FAT_ATTR_*): Make into an enum.
12307 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
12308 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
12309 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
12310 (GRUB_FAT_MAXFILE): Removed.
12311 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
12312 (grub_current_fat_bpb_t): New type.
12313 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
12314 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
12315 (grub_fat_dir_node_t): New type.
12316 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
12317 (fat_log2) [MODE_EXFAT]: Removed.
12318 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
12319 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
12320 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
12321 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
12322 (grub_fat_label) [MODE_EXFAT]: New function.
12323 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
12324 reserved_first_sector to 0.
12326 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12328 Move grub_reboot out of the kernel.
12330 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
12331 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
12332 * grub-core/lib/efi/reboot.c: ... here.
12333 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
12334 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
12335 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
12336 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
12337 * grub-core/lib/i386/reboot_trampoline.S: ... here.
12338 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
12339 * grub-core/lib/ieee1275/reboot.c: ... here.
12340 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
12341 * grub-core/lib/mips/arc/reboot.c: ... here.
12342 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
12343 * grub-core/lib/mips/loongson/reboot.c: ...here.
12344 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
12345 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
12346 * include/grub/emu/misc.h (grub_reboot): New function declaration.
12347 * include/grub/i386/reboot.h: New file.
12348 * include/grub/mips/loongson/ec.h: Fix includes.
12349 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
12350 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
12351 * grub-core/lib/i386/reboot.c: New file.
12353 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
12355 Make grub_prefix into module to fix the arbitrary limit and save
12358 * grub-core/kern/emu/main.c (grub_prefix): Removed.
12359 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
12360 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
12361 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
12362 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
12363 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
12364 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
12365 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
12366 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
12367 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
12368 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
12369 * include/grub/ia64/efi/kernel.h: Removed.
12370 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
12371 (grub_prefix): Removed.
12372 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
12373 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
12374 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
12375 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
12376 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
12377 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
12378 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
12379 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
12380 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
12381 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
12382 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12383 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12384 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12385 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12386 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
12387 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
12388 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
12389 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12390 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
12391 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
12392 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
12393 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
12394 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
12395 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
12396 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
12397 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
12398 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
12399 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
12400 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
12402 * util/grub-mkimage.c (image_target_desc): Removed prefix and
12404 (image_targets): Likewise.
12405 (generate_image): Put prefix as a module.
12407 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
12409 Replace grub_module_iterate with FOR_MODULES.
12411 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
12412 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
12413 (grub_efi_modules_addr): ...this.
12414 * grub-core/kern/efi/init.c (grub_modbase): New variable.
12415 (grub_efi_init): Set grub_modbase.
12416 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
12417 (grub_modbase): New variable.
12418 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
12419 (grub_modbase): New variable.
12420 (grub_machine_init): Set grub_modbase.
12421 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
12422 (grub_modbase): New variable.
12423 (grub_machine_init): Set grub_modbase.
12424 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
12425 (grub_modbase): New variable.
12426 (grub_machine_init): Set grub_modbase.
12427 * grub-core/kern/main.c (grub_module_iterate): Remove.
12428 (grub_modules_get_end): Use grub_modbase.
12429 (grub_load_modules): Use FOR_MODULES.
12430 (grub_load_config): Likewise.
12431 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
12432 (grub_modbase): New variable.
12433 (grub_machine_init): Set grub_modbase.
12434 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
12435 (grub_modbase): New variable.
12436 (grub_machine_init): Set grub_modbase.
12437 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
12439 (grub_modbase): New variable.
12440 (grub_machine_init): Set grub_modbase.
12441 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
12442 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
12443 (grub_module_iterate): Likewise.
12444 (grub_modbase): New variable declaration.
12445 (FOR_MODULES): New macro.
12447 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
12449 * configure.ac: Check for __ctzdi2 and __ctzsi2.
12450 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
12452 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
12454 Fix few obvious type discrepancies.
12456 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
12457 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
12458 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
12460 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
12461 and connected types.
12462 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
12464 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
12465 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
12466 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
12467 and connected types.
12469 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
12471 Fix python 3.x incompatibilities.
12473 * gentpl.py: Put brackets around print strings.
12474 * util/import_gcry.py: Open explicitly as utf-8.
12475 Use in instead of has_key.
12477 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
12479 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
12480 (GRUB_XFS_INO_AGBITS): Make into inline function.
12481 (GRUB_XFS_INO_INOINAG): Likewise.
12482 (GRUB_XFS_INO_AG): Likewise.
12483 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
12484 (GRUB_XFS_EXTENT_OFFSET): Likewise.
12485 (GRUB_XFS_EXTENT_BLOCK): Likewise.
12486 (GRUB_XFS_EXTENT_SIZE): Likewise.
12487 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
12488 (GRUB_XFS_NEXT_DIRENT): Likewise.
12489 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
12490 (grub_xfs_read_file): Fix offset type.
12492 2011-10-15 Robert Millan <rmh@gnu.org>
12494 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
12496 2011-10-15 Robert Millan <rmh@gnu.org>
12498 Fix build problem on FreeBSD and GNU/kFreeBSD.
12500 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
12502 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
12504 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
12506 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
12508 (grub_hfsplus_btree_recoffset): Likewise.
12509 (grub_hfsplus_btree_recptr): Likewise.
12510 (grub_hfsplus_find_block): Likewise.
12511 (grub_hfsplus_btree_search): Likewise.
12512 (grub_hfsplus_read_block): Likewise.
12513 (grub_hfsplus_read_file): Likewise.
12514 (grub_hfsplus_mount): Likewise.
12515 (grub_hfsplus_btree_iterate_node): Likewise.
12516 (grub_hfsplus_btree_search): Likewise.
12517 (grub_hfsplus_iterate_dir): Likewise.
12518 (grub_hfsplus_read): A small code simplification.
12520 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
12522 * grub-core/kern/emu/hostdisk.c
12523 (convert_system_partition_to_system_disk): Don't assume that children
12524 of mapper nodes are mapper nodes.
12526 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
12528 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
12529 * include/grub/misc.h (grub_isxdigit): New function.
12530 * grub-core/video/colors.c (my_isxdigit): Removed. All users
12531 switched to grub_isxdigit.
12532 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
12533 number starting with a letter.
12535 2011-10-09 Robert Millan <rmh@gnu.org>
12537 LVM support for FreeBSD and GNU/kFreeBSD.
12539 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
12541 (LVM_DEV_MAPPER_STRING): Move from here ...
12542 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
12543 * util/getroot.c: Include `<grub/util/lvm.h>'.
12544 (grub_util_get_dev_abstraction): Enable
12545 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
12546 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
12547 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
12548 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
12550 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
12552 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
12553 when LVM abstraction is required for ${GRUB_DEVICE}.
12555 2011-10-06 Szymon Janc <szymon@janc.net.pl>
12557 Add support for LZO compression in GRUB:
12558 - import of minilzo library,
12559 - LZO decompression for btrfs,
12560 - lzop files decompression.
12562 * grub-core/io/lzopio.c: New file.
12563 * grub-core/lib/adler32.c: Likewise.
12564 * grub-core/lib/minilzo/lzoconf.h: Likewise.
12565 * grub-core/lib/minilzo/lzodefs.h: Likewise.
12566 * grub-core/lib/minilzo/minilzo.c: Likewise.
12567 * grub-core/lib/minilzo/minilzo.h: Likewise.
12568 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
12569 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
12570 grub-core/lib/minilzo/minilzo.c to common.
12571 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
12572 cflags in cppflags.
12573 * grub-core/Makefile.core.def (btrfs): Likewise.
12574 * grub-core/Makefile.core.def (lzopio): New module.
12575 (adler32): Likewise.
12576 * grub-core/fs/btrfs.c: Include minilzo.h.
12577 (GRUB_BTRFS_COMPRESSION_LZO): New define.
12578 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
12579 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
12580 (grub_btrfs_lzo_decompress): New function.
12581 (grub_btrfs_extent_read): Add support for LZO compression type.
12582 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
12583 (GRUB_USHRT_MAX): Likewise.
12584 (GRUB_UINT_MAX): Likewise.
12585 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
12586 (UINT_MAX): Likewise.
12587 (CHAR_BIT): Likewise.
12588 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
12589 grub-core/lib/posix_wrap/limits.h
12590 (UCHAR_MAX): Likewise.
12591 * include/grub/file.h (grub_file_filter_id): New compression filter
12592 GRUB_FILE_FILTER_LZOPIO.
12593 * include/grub/file.h (grub_file_filter_id): Set
12594 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
12595 * include/grub/types.h (grub_get_unaligned16): New function.
12596 (grub_get_unaligned32): Likewise.
12597 (grub_get_unaligned64): Likewise.
12598 * util/import_gcry.py (cryptolist): Add adler32.
12600 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
12602 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
12603 in perspective decreases the complexity of build system and fixes
12604 compilation right now.
12606 2011-10-01 Ales Nesrsta <starous@volny.cz>
12608 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
12609 (fixed problem related to using UHCI with coreboot).
12611 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
12613 * gentpl.py: Use Autogen macros so that the output template file
12614 (Makefile.tpl) size is reduced.
12616 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
12618 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
12621 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
12623 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
12624 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
12626 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
12628 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
12631 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
12633 Remove extra declaration of sleep for mingw32.
12635 * util/misc.c (sleep) [__MINGW32__]: Removed.
12636 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
12638 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
12640 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
12642 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
12644 (NETBSD_BTINFO_BOOTWEDGE): New definition.
12645 (grub_netbsd_btinfo_bootwedge): New struct.
12646 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
12648 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
12650 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
12652 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
12655 2011-09-28 Andreas Born <futur.andy@googlemail.com>
12657 Fix incorrect identifiers in bash-completion.
12659 * util/bash-completion.d/grub-completion.bash.in
12660 (_grub_mkpasswd-pbkdf2): Rename to ...
12661 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
12662 (_grub_script-check): Rename to ...
12663 (_grub_script_check): ... this. All users updated.
12665 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
12667 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
12668 Return 0 if disk isn't biosdisk.
12670 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
12672 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
12674 * Makefile.util.def (grub-fstest): Likewise.
12676 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
12678 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
12679 Get sector size from disk label.
12681 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
12683 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
12684 */README* as well as README*.
12685 Reported by: Axel Beckert.
12687 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
12689 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
12690 case of less than 256 MiB of RAM.
12692 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
12694 * grub-core/commands/wildcard.c (make_regex): Handle @.
12696 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
12698 * util/grub-install.in: Move cryptodisk logic to appropriate place.
12700 2011-08-21 Szymon Janc <szymon@janc.net.pl>
12702 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
12703 AC_LANG_CONFTEST macros.
12705 2011-08-20 Szymon Janc <szymon@janc.net.pl>
12707 Add grub-fstest option to uncompress data for commands.
12709 * util/grub-fstest.c (uncompress): New var.
12710 (options): New option -u.
12712 2011-08-20 Szymon Janc <szymon@janc.net.pl>
12714 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
12715 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
12717 2011-08-20 Szymon Janc <szymon@janc.net.pl>
12719 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
12720 file type was not recognized correctly (not gzip or corrupted).
12722 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12724 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
12725 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
12727 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12729 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
12731 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12732 video_radeon_fuloong2e.
12733 * grub-core/video/radeon_fuloong2e.c: New file.
12734 * include/grub/video.h (grub_video_id_t): Add new ID
12735 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
12737 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12739 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
12741 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
12742 that PRID matches the detected subplatform and reset the subplatform
12745 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12747 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
12749 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12751 Fix PCI iterating on functions >= 4.
12753 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
12754 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
12756 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
12757 (grub_pci_read): Fix bitmask.
12758 (grub_pci_read_word): Likewise.
12759 (grub_pci_read_byte): Likewise.
12760 (grub_pci_write): Likewise.
12761 (grub_pci_write_word): Likewise.
12762 (grub_pci_write_byte): Likewise.
12764 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12766 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
12767 can still be specified in TARGET_CFLAGS)
12769 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12771 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
12773 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
12774 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
12775 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
12776 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
12777 (FULOONG): Rename to ...
12778 (FULOONG2F): ... this. All users updated.
12779 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
12780 (machtype_fuloong2f_str): ... this.
12781 (machtype_fuloong2e_str): New string.
12782 Check for machtype_fuloong2e_str.
12783 * grub-core/loader/mips/linux.c (loongson_machtypes)
12784 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
12785 * grub-core/term/serial.c (loongson_defserial)
12786 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
12787 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
12788 loongson_defserial.
12789 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
12791 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
12792 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
12793 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
12794 to IMAGE_FULOONG2F_FLASH. All users updated.
12795 (image_targets): Rename images.
12796 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
12798 2011-08-19 Szymon Janc <szymon@janc.net.pl>
12800 Make enable of disk cache statistics code configurable.
12802 * configure.ac: --enable-cache-stats added.
12803 * config.h.in (DISK_CACHE_STATS): New define.
12804 * grub-core/Makefile.core.def (cacheinfo): New command.
12805 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
12806 * grub-core/commands/cacheinfo.c: New file.
12807 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
12808 moved to cacheinfo.c.
12809 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
12811 * include/grub/disk.h: Likewise.
12813 2011-08-19 Szymon Janc <szymon@janc.net.pl>
12815 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
12816 * grub-core/Makefile.am: Likewise.
12818 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12820 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
12823 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12825 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
12827 (grub_jfs_lookup_symlink): Use correct starting inode.
12829 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12831 * util/grub-setup.c (main): Add missing gcry initialisation.
12833 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12835 Don't accept text modes on EFI when booting Linux.
12837 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
12838 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
12840 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
12841 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
12843 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
12844 use of "/path/.." as in grub-install for EFI as well as handling
12845 symlinks correctly.
12846 Fixes Debian bug #637768.
12848 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
12850 * util/grub-probe.c: Remove duplicate #include.
12852 2011-08-10 Robert Millan <rmh@gnu.org>
12854 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
12856 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
12858 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
12859 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
12861 2011-08-03 Robert Millan <rmh@gnu.org>
12863 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
12864 la_array as packed.
12865 Reported by: Zachary Bedell
12867 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
12869 * configure.ac: The Loongson port requires grub-mkfont due to its
12870 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
12873 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
12875 * util/grub-install.in: Don't source grub-mkconfig_lib until after
12876 processing arguments (otherwise help2man fails when GRUB has not yet
12879 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12881 New script grub-mkstandalone.
12883 * Makefile.util.def (grub-mkstandalone): New script.
12884 * docs/man/grub-mkstandalone.h2m: New file.
12885 * util/grub-mkstandalone.in: Likewise.
12887 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12889 Support ATA disks with 4K sectors.
12891 * include/grub/ata.h (grub_ata): New member log_sector_size.
12892 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
12893 (grub_ata_identify): Read sector size.
12894 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
12896 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12898 * util/grub-install.in: Don't use uhci outside of x86.
12900 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12902 * util/grub-mkrescue.in: Add missing quotes.
12904 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12906 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
12909 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12911 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
12913 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12915 * include/grub/video.h: add missing EXPORT_FUND on
12916 grub_video_edid_checksum and grub_video_edid_preferred_mode.
12918 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12920 * include/grub/mips/kernel.h: Fix define conflict.
12922 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12924 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
12927 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
12929 Preferred resolution detection for VBE.
12931 * grub-core/video/video.c (grub_video_edid_checksum): New function.
12932 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
12933 the Flat Panel extension, in line with the X.org VESA driver.
12934 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
12936 (grub_vbe_bios_get_ddc_capabilities): Likewise.
12937 (grub_vbe_bios_read_edid): Likewise.
12938 (grub_vbe_get_preferred_mode): Likewise.
12939 (grub_video_vbe_setup): When the mode is "auto", try to get the
12940 preferred mode from VBE, and use the largest mode that is no larger
12941 than the preferred mode (some BIOSes expose a preferred mode that is
12942 not in their mode list!). If this fails, fall back to 640x480 as a
12943 safe conservative choice.
12944 (grub_video_vbe_get_edid): New function.
12945 (grub_video_vbe_adapter): Add get_edid.
12946 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
12947 (struct grub_video_adapter): Add get_edid.
12948 (grub_video_edid_checksum): Add prototype.
12949 (grub_video_edid_preferred_mode): Likewise.
12950 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
12953 * grub-core/commands/videoinfo.c (print_edid): New function.
12954 (grub_cmd_videoinfo): Print EDID if available.
12956 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
12957 is more appropriate on a wider range of platforms than 640x480.
12958 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
12961 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12963 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
12965 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12967 * po/POTFILES.in: Regenerate.
12969 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12971 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
12972 incorrect memory usage.
12974 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12976 * util/grub-install.in: Source grub-mkconfig_lib.
12978 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
12980 Remove getroot.c from core on emu platform.
12982 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
12984 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
12986 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
12987 * util/getroot.c (get_win32_path): ... here.
12988 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
12989 * util/getroot.c (fini_libzfs): ... here.
12990 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
12991 * util/getroot.c (grub_get_libzfs_handle): ... here.
12992 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
12994 * util/getroot.c (grub_find_zpool_from_dir): ... here.
12995 * grub-core/kern/emu/misc.c
12996 (grub_make_system_path_relative_to_its_root): Moved from here...
12997 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
12998 * grub-core/kern/emu/getroot.c: Moved from here ...
12999 * util/getroot.c: ... here. All users updated.
13000 * grub-core/kern/emu/raid.c: Moved from here ...
13001 * util/raid.c: ... here. All users updated.
13003 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
13005 * po/POTFILES.in: Regenerate.
13007 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
13009 Fix compilation on GNU/Linux.
13011 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
13013 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
13014 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
13015 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
13017 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
13018 2011-07-07 Michael Gorven <michael@gorven.za.net>
13019 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
13021 LUKS and GELI support.
13023 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
13024 grub-core/disk/luks.c, grub-core/disk/geli.c,
13025 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
13026 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
13027 grub-core/lib/arg.c.
13028 (libgrubmods.a): Remove gcrypts cflags and cppflags.
13029 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
13030 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
13031 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
13032 (grub-bin2h): Add libgcry.a.
13033 (grub-mkimage): Likewise.
13034 (grub-mkrelpath): Likewise.
13035 (grub-script-check): Likewise.
13036 (grub-editenv): Likewise.
13037 (grub-mkpasswd-pbkdf2): Likewise.
13038 (grub-pe2elf): Likewise.
13039 (grub-fstest): Likewise.
13040 (grub-mkfont): Likewise.
13041 (grub-mkdevicemap): Likewise.
13042 (grub-probe): Likewise.
13043 (grub-ofpath): Likewise.
13044 (grub-mklayout): Likewise.
13045 (example_unit_test): Likewise.
13046 (grub-menulst2cfg): Likewise.
13047 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
13048 * grub-core/Makefile.core.def (cryptodisk): New module.
13051 * grub-core/disk/AFSplitter.c: New file.
13052 * grub-core/disk/cryptodisk.c: Likewise.
13053 * grub-core/disk/geli.c: Likewise.
13054 * grub-core/disk/luks.c: Likewise.
13055 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
13057 (grub_util_get_dm_abstraction): New function.
13058 (grub_util_follow_gpart_up): Likewise.
13059 (grub_util_get_geom_abstraction): Likewise.
13060 (grub_util_get_dev_abstraction): Use new functions.
13061 (grub_util_pull_device): Pull GELI and LUKS.
13062 (grub_util_get_grub_dev): Handle LUKS and GELI.
13063 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
13064 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
13065 (follow_geom_up): Removed.
13066 (grub_util_fd_seek): New function.
13067 (open_device): Use grub_util_fd_seek.
13068 (nread): Rename to ..
13069 (grub_util_fd_read): ... this. All users updated.
13070 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
13071 (grub_crypto_cbc_decrypt): Likewise.
13072 (grub_crypto_hmac_write): Likewise.
13073 (grub_crypto_hmac_buffer): Likewise.
13074 (grub_password_get): Extend to util.
13075 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
13076 New member modname.
13077 (gcry_md_spec) [GRUB_UTIL]: Likewise.
13078 * include/grub/cryptodisk.h: New file.
13079 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
13080 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
13082 (grub_util_follow_gpart_up): New proto.
13083 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
13084 (grub_util_fd_read): Likewise.
13085 (grub_cryptodisk_cheat_mount): Likewise.
13086 (grub_util_cryptodisk_print_uuid): Likewise.
13087 (grub_util_get_fd_sectors): Likewise.
13088 * util/grub-fstest.c (mount_crypt): New var.
13089 (fstest): Mount crypto if requested.
13090 (options): New option -C.
13091 (argp_parser): Parse -C.
13092 (main): Init and fini gcry.
13093 * util/grub-install.in: Support cryptodisk install.
13094 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
13095 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
13097 (prepare_grub_to_access_device): Likewise.
13098 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
13099 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
13100 (probe_cryptodisk_uuid): New function.
13101 (probe_abstraction): Likewise.
13102 (probe): Use new functions.
13103 * util/import_gcry.py: Create Makefile.utilgcry.def.
13104 Add modname member.
13106 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
13108 Lazy device scanning.
13110 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
13111 (grub-setup): Remove util/raid.c.
13112 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
13113 * grub-core/disk/lvm.c (scan_depth): New variable.
13114 (grub_lvm_iterate): Rescan if necessary.
13115 (find_lv): New function based on grub_lvm_open.
13116 (grub_lvm_open): Use find_lv. Rescan on error.
13117 (is_node_readable): New function.
13118 (is_lv_readable): Likewise.
13119 (grub_lvm_scan_device): Skip already found disks.
13120 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
13121 Stop if searched device is found and readable.
13122 * grub-core/disk/raid.c (inscnt): New variable.
13123 (scan_depth): Likewise.
13124 (scan_devices): New function based on grub_raid_register. Abort if
13125 looked for device is found.
13126 (grub_raid_iterate): Rescan if needed.
13127 (find_array): NEw function based on -grub_raid_open.
13128 (grub_raid_open): Use find_array and rescan.
13129 (insert_array): Set became_readable_at.
13130 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
13131 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
13133 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
13134 (grub_util_pull_device): New function.
13135 (grub_util_get_grub_dev): Call grub_util_pull_device.
13136 * util/raid.c: Moved to ..
13137 * grub-core/kern/emu/raid.c: ... here.
13138 (grub_util_raid_getmembers): New parameter "bootable".
13139 All users updated. Support 1.x.
13140 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
13142 * include/grub/disk.h (grub_disk_pull_t): New enum.
13143 (grub_disk_dev): Change iterate prototype.
13145 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
13147 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
13148 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
13149 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
13150 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
13152 * include/grub/util/raid.h: Removed.
13154 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
13156 * po/POTFILES.in: Regenerate.
13158 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
13160 Unify sparc init with other ieee1275.
13162 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
13163 instead of kern/sparc64/ieee1275/init.c.
13164 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
13165 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
13166 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
13167 grub/machine/kernel.h.
13168 (grub_ieee1275_original_stack) [__sparc__]: New variable.
13169 (grub_claim_heap) [__sparc__]: Use sparc version.
13170 (grub_machine_init): Moved args parsing to
13171 (grub_parse_cmdline): ...this.
13172 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
13173 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
13175 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
13177 Move BOOTP to separate file.
13179 * grub-core/Makefile.core.def (net): Add net/bootp.c.
13180 * grub-core/net/net.c: Move all BOOTP functions to
13181 * grub-core/net/bootp.c: ... here.
13183 Use frame interface on PXE.
13185 * grub-core/Makefile.core.def (pxecmd): Removed.
13186 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
13187 * grub-core/commands/i386/pc/pxecmd.c: Removed.
13188 * grub-core/i386/pc/pxe.c: Moved from here ...
13189 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
13190 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
13191 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
13193 EFI network support.
13195 * grub-core/Makefile.core.def (efinet): New module.
13196 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
13198 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
13200 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
13201 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
13202 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
13203 * grub-core/net/drivers/efi/efinet.c: New file.
13204 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
13205 (grub_efi_net_config): New extern var.
13207 Various cleanups and bugfixes.
13209 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
13211 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
13212 disk declared as partition.
13213 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
13215 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
13216 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
13217 (grub_debug_zalloc): Likewise.
13218 (grub_debug_realloc): Likewise.
13219 (grub_debug_memalign): Likewise.
13220 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
13221 Check that target is IPv4.
13222 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
13223 local-mac-address as fallback.
13224 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
13226 * grub-core/net/ip.c (ipchksum): Rename to ...
13227 (grub_net_ip_chksum): ... this. All users updated.
13228 (grub_net_recv_ip_packets): Special handling for DHCP.
13229 * util/grub-mkimage.c (generate_image): Zero-out aout header.
13231 Unify prefix handling
13233 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
13234 (grub_machine_get_bootlocation): ... this.
13235 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
13236 (grub_machine_get_bootlocation): ... this.
13237 (grub_prefix): New variable.
13239 (root_dev): New variable.
13241 (main): Use new variables.
13242 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
13244 (grub_machine_get_bootlocation): ... this.
13245 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
13246 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
13247 (grub_machine_get_bootlocation): ... this.
13248 (grub_machine_set_prefix): Removed.
13249 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
13250 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
13252 (grub_machine_get_bootlocation): ... this.
13253 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
13254 (grub_set_prefix_and_root): ... this. All users updated.
13255 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
13257 (grub_machine_get_bootlocation): ... this.
13258 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
13259 (grub_machine_get_bootlocation): New proto.
13260 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
13262 Less intrusive and more reliable seek on network implementation.
13264 * grub-core/kern/file.c (grub_file_net_seek): Removed.
13265 (grub_file_seek): Don't call grub_file_net_seek.
13266 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
13267 (grub_net_fs_read_real): .. this.
13268 (grub_net_seek_real): Use net->offset.
13269 (grub_net_fs_read): Seek if necessary.
13271 Unify IEEE1275 netwotk config with the other platforms.
13273 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
13275 (grub_machine_get_bootlocation): Support network.
13276 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
13277 Support type and device parsing.
13278 (grub_ieee1275_get_device_type): New function.
13279 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
13281 (grub_ieee1275_net_config_real): ... this.
13282 (grub_ofnet_probecards): Removed.
13283 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
13284 * include/grub/ieee1275/ofnet.h: Removed.
13285 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
13287 (grub_ieee1275_get_device_type): New function.
13289 Unify network device closing across platforms and make more robust.
13291 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
13293 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
13295 * grub-core/net/net.c (grub_net_network_level_interface_register):
13297 (grub_net_card_unregister): Close all interfaces.
13298 (receive_packets): Don't poll if no iterfaces are registered.
13300 (grub_net_fini_hw): New function.
13301 (grub_net_restore_hw): Likewise.
13302 (fini_hnd): New variable.
13303 (GRUB_MOD_INIT): Register preboot hook.
13304 (GRUB_MOD_FINI): Run and unregister preboot hook.
13306 Poll network cards when idle.
13308 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
13309 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
13310 * grub-core/net/net.c (receive_packets): Save last poll time.
13311 (grub_net_poll_cards_idle_real): New function.
13312 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
13313 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
13314 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
13316 Rename ofnet interfaces.
13318 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
13319 (grub_ofnet_findcards): Use ofnet_%s names.
13321 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
13323 Cleanup socket opening.
13325 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
13326 (grub_net_fs_close): Likewise.
13327 (grub_net_fs_read_real): Use eof member.
13328 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
13329 (+grub_net_udp_close): New inline function.
13331 * include/grub/net/tftp.h: Moved to the top of ...
13332 * grub-core/net/tftp.c: ... here.
13333 * include/grub/net/ip.h: Moved mostly to the top of ...
13334 * grub-core/net/ip.c: ... here.
13335 * include/grub/net/ethernet.h: Moved mostly to the top of ...
13336 * grub-core/net/ethernet.c: ... here.
13338 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
13340 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
13343 * include/grub/net/ip.h (ipv4_ini): Removed.
13344 (ipv4_fini): Likewise.
13346 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
13347 (grub_net_send_ip_packets): Likewise.
13349 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13351 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
13352 grub_read_cmos prototype.
13354 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13356 VGA text support in qemu-mips
13358 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
13359 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
13360 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
13362 * grub-core/kern/i386/qemu/init.c: Renamed to ...
13363 * grub-core/kern/vga_init.c: ... this.
13364 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
13365 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
13366 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
13368 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
13369 GRUB_MACHINE_PCI_IO_BASE.
13371 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13373 MIPS qemu flash support.
13375 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
13377 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
13378 (grub_machine_init): Probe memory if its size isn't known.
13379 * util/grub-mkimage.c (image_targets): Add flash targets.
13380 (generate_image): Handle flash targets.
13382 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13384 MIPS qemu at_keyboard support.
13386 * gentpl.py (videoinkernel): Add qemu-mips.
13387 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
13388 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
13389 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
13391 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
13392 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
13393 * grub-core/term/serial.c (grub_serial_register)
13394 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
13396 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13398 CMOS support on sparc.
13400 * gentpl.py (cmos): Add powerpc and sparc.
13401 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
13403 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
13404 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
13405 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
13406 grub_set_datetime_cmos.
13407 * grub-core/lib/ieee1275/cmos.c: New file.
13408 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
13409 (find_rtc): Set no_ieee1275_rtc on error.
13410 (grub_get_datetime): Call grub_get_datetime_cmos on error.
13411 (grub_set_datetime): Call grub_set_datetime_cmos on error.
13412 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
13413 fail. Move value to argument. All users updated
13414 (grub_cmos_write): Likewise.
13415 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
13416 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
13417 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
13418 grub_get_datetime_cmos and grub_set_datetime_cmos.
13420 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
13422 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
13423 sourcing grub-mkconfig_lib.
13424 * util/update-grub_lib.in: Likewise.
13425 * util/grub.d/00_header.in: Likewise.
13426 * util/grub.d/10_hurd.in: Likewise.
13427 * util/grub.d/10_kfreebsd.in: Likewise.
13428 * util/grub.d/10_linux.in: Likewise.
13429 * util/grub.d/10_netbsd.in: Likewise.
13430 * util/grub.d/10_windows.in: Likewise.
13431 * util/grub.d/20_linux_xen.in: Likewise.
13432 * util/grub.d/30_os-prober.in: Likewise.
13434 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
13436 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
13437 default_bg_color rather than black.
13438 (grub_gfxterm_fullscreen): Likewise.
13439 (grub_gfxterm_background_color_cmd): Save new background color in
13442 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13444 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
13446 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13448 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
13451 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13453 Chainloading on coreboot support.
13455 * grub-core/Makefile.core.def (chain): Add coreboot.
13456 * grub-core/loader/i386/coreboot/chainloader.c: New file.
13458 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13460 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
13463 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13465 Implement time command.
13467 * grub-core/Makefile.core.def (time): New module.
13468 * grub-core/commands/time.c: New file.
13469 * grub-core/script/parser.y: Remove "time" keyword.
13470 * grub-core/script/yylex.l: Likewise.
13472 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13474 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
13476 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13478 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
13479 when handling leftovers.
13481 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13483 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
13484 so that help2man doesn't fail.
13486 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13488 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
13489 type in pointers on sparc64.
13490 (get_card_packet): Likewise.
13492 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
13494 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
13496 (grub_cmd_videoinfo): Fetch current video mode.
13498 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13500 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
13501 because of underlying system restrictions.
13503 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13505 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
13508 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13510 Coreboot video support.
13512 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
13514 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
13515 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
13517 * grub-core/kern/i386/int.S: ... here.
13518 * grub-core/video/i386/pc/vbe.c: Updated includes.
13519 * grub-core/video/i386/pc/vga.c: Likewise.
13520 * include/grub/i386/coreboot/memory.h
13521 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
13522 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
13523 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
13524 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
13525 Disable interrupts.
13526 * include/grub/i386/pc/vga.h: Removed. All users updated.
13528 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13530 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
13531 definitions for dprintf.
13532 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
13534 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13536 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
13538 (get_card_packet): Likewise.
13540 2011-06-26 Yves Blusseau <blusseau@zetam.org>
13542 Display the path of the file when file is not found
13544 * grub-core/fs/fat.c: Display the filename when file is not found.
13545 * grub-core/fs/fshelp.c: Likewise.
13546 * grub-core/fs/hfs.c: Likewise.
13547 * grub-core/fs/jfs.c: Likewise.
13548 * grub-core/fs/minix.c: Likewise.
13549 * grub-core/fs/ufs.c: Likewise.
13550 * grub-core/fs/btrfs.c: Likewise.
13551 * grub-core/commands/i386/pc/play.c: Likewise.
13553 2011-06-26 Szymon Janc <szymon@janc.net.pl>
13555 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
13556 pointer checks before calling grub_free().
13557 * grub-core/commands/wildcard.c (match_devices): Likewise.
13558 * grub-core/commands/wildcard.c (match_files): Likewise.
13559 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
13560 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
13561 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
13562 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
13563 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
13564 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
13565 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
13566 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
13567 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
13569 2011-06-25 Patrick <p55@mailinator.com>
13571 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
13573 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
13575 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
13576 (grub_pxe_send): Likewise.
13577 (GRUB_MOD_INIT): Fix types.
13579 2011-06-24 Szymon Janc <szymon@janc.net.pl>
13581 * grub-core/io/xzio.c: Fix code style issues
13583 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13584 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
13586 Network infrastructure.
13587 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
13589 * include/grub/net/arp.h: New file.
13590 * include/grub/net/device.h: Likewise.
13591 * include/grub/net/ethernet.h: Likewise.
13592 * include/grub/net/ip.h: Likewise.
13593 * include/grub/net/netbuff.h: Likewise.
13594 * include/grub/net/tftp.h: Likewise.
13595 * include/grub/net/udp.h: Likewise.
13596 * include/grub/ieee1275/ofnet.h: Likewise.
13597 * include/grub/emu/export.h: Likewise.
13598 * include/grub/net.h: Likewise.
13599 * grub-core/net/arp.c: Likewise.
13600 * grub-core/net/ethernet.c: Likewise.
13601 * grub-core/net/ip.c: Likewise.
13602 * grub-core/net/udp.c: Likewise.
13603 * grub-core/net/tftp.c: Likewise.
13604 * grub-core/net/netbuff.c: Likewise.
13605 * grub-core/net/net.c: Likewise.
13606 * grub-core/net/drivers/emu/emunet.c: Likewise.
13607 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
13608 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
13610 * grub-core/Makefile.core.def (net): New module.
13613 (emunet): Likewise.
13614 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
13616 * grub-core/kern/device.c (grub_net_open) : New variable.
13617 (grub_device_open): Handle network device.
13618 (grub_device_close): Likewise.
13619 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
13620 (grub_grubnet_fini): Likewise.
13621 (grub_file_seek): Seek in network device.
13622 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
13623 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
13625 (grub_machine_fini): Call grub_grubnet_fini.
13626 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
13628 (grub_ieee1275_get_aliasdevname): New function.
13629 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
13630 Add unofficial Solaris network info.
13631 (grub_multiboot_make_mbi): Likewise.
13632 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
13633 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
13634 * include/grub/device.h (grub_fs): Removed.
13635 * include/grub/err.h (grub_err_t): Add network-related values.
13636 * include/grub/i386/pc/pxe.h: Removed bootp parts.
13637 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
13638 (grub_ieee1275_get_aliasdevname): New proto.
13639 * include/grub/net.h: Rewritten.
13641 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13643 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
13646 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13648 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
13649 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
13650 it truncates the output.
13651 Reported by: Ximin Luo.
13653 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13655 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
13657 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13659 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
13660 partmap before abstraction.
13662 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
13664 * util/grub-mkconfig_lib.in: Add missing quotes.
13666 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13668 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
13669 old method if mountinfo would return /dev/root and /dev/root doesn't
13672 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13676 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
13677 (decomp_table): Add zlib entries.
13678 (zio_read): USe 8 bits for compression function rather than 3.
13679 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
13681 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13683 * grub-core/disk/ahci.c: Add missing license statements.
13684 * grub-core/fs/romfs.c: Likewise.
13685 * grub-core/lib/ia64/setjmp.S: Likewise.
13686 * grub-core/loader/i386/pc/freedos.c: Likewise.
13687 * grub-core/loader/ia64/efi/linux.c: Likewise.
13688 * grub-core/video/colors.c: Likewise.
13689 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
13691 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13695 * grub-core/Makefile.core.def (ata_pthru): Removed.
13696 (ahci): New module.
13698 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
13700 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
13702 (grub_hdparm_do_check_powermode_cmd): Likewise.
13703 (grub_hdparm_do_smart_cmd): Likewise.
13704 (grub_hdparm_set_val_cmd): Likewise.
13705 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
13706 * grub-core/disk/ahci.c: New file.
13707 * grub-core/disk/ata.c: Factor out the low-level part into ...
13708 * grub-core/disk/pata.c: ... here.
13709 * grub-core/disk/ata_pthru.c: Contents moved to ...
13710 * grub-core/disk/pata.c: ... here.
13711 * grub-core/disk/scsi.c (grub_scsi_names): New array.
13712 (grub_scsi_iterate): Use grub_scsi_names.
13713 (grub_scsi_open): Likewise.
13714 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
13715 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
13716 (grub_ata_regs_t): New struct.
13717 (grub_disk_ata_pass_through_parms): Likewise.
13718 (grub_ata_device): Renamed to ...
13719 (grub_ata): ... this.
13720 (grub_ata_dev): New struct.
13721 Removed all low-level inline functions.
13722 * include/grub/scsi.h: Add PATA and AHCI subsystems.
13723 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
13724 iterate hooks and open. All users updated.
13725 * util/grub-install.in: Handle AHCI disk module.
13727 2011-06-23 Szymon Janc <szymon@janc.net.pl>
13729 Add support for DRI and RSTn markers in JPEG files.
13731 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
13732 (JPEG_MARKER_RST0): Likewise.
13733 (JPEG_MARKER_RST1): Likewise.
13734 (JPEG_MARKER_RST2): Likewise.
13735 (JPEG_MARKER_RST3): Likewise.
13736 (JPEG_MARKER_RST4): Likewise.
13737 (JPEG_MARKER_RST5): Likewise.
13738 (JPEG_MARKER_RST6): Likewise.
13739 (JPEG_MARKER_RST7): Likewise.
13740 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
13741 (grub_jpeg_decode_dri): New function.
13742 (grub_jpeg_decode_sos): Move image data related part into
13743 grub_jpeg_decode_data function.
13744 (grub_jpeg_decode_data): New function.
13745 (grub_jpeg_reset): New function.
13746 (grub_jpeg_decode_jpeg): Handle new markers.
13748 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13750 * util/ieee1275/ofpath.c (check_sas): Close fd.
13751 (main): Free of_path.
13752 Reported by: David Volgyes <dvolgyes>.
13754 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13756 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
13757 Reported by: David Volgyes <dvolgyes>.
13759 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13761 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
13763 Reported by: David Volgyes <dvolgyes>.
13765 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13767 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
13769 Reported by: David Volgyes <dvolgyes>.
13771 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13773 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
13774 Prevent memory leak.
13776 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13778 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
13779 (main): Close file.
13780 Reported by: David Volgyes <dvolgyes>.
13782 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13784 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
13785 to continue if allocation is failed.
13787 Reported by: David Volgyes <dvolgyes>.
13789 2011-06-23 David Volgyes <dvolgyes>
13791 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
13794 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13796 Fix spurious warning.
13798 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
13799 (acorn_partition_map_find): Use .bin member.
13801 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13803 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
13804 /dev/root as a valid device.
13806 2011-06-23 Jim Meyering <meyering@redhat.com>
13808 Avoid NULL deref in grub_device_open.
13810 * grub-core/kern/device.c (grub_device_open): Don't dereference
13811 a NULL pointer upon failed grub_env_get.
13813 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13815 Support non-512B sectors and agglomerate reads.
13817 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
13818 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
13819 (disk_io_guid): Removed.
13820 (make_devices): Locate solely by BlockIO.
13821 (grub_efidisk_open): Fill log_sector_size and total_sectors.
13822 (grub_efidisk_read): Use read_blocks.
13823 (grub_efidisk_write): Use write_blocks.
13824 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
13826 (get_safe_sectors): Handle non-512B sectors.
13827 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
13829 (grub_biosdisk_write): Handle non-512B sectors.
13830 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
13831 (grub_scsi_read): Remove special non-512B block handling (now handled
13833 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
13834 and do sanity checks.
13835 (grub_disk_adjust_range): Handle non-512B sectors.
13836 (transform_sector): New function.
13837 (grub_disk_read_small): Likewise.
13838 (grub_disk_read): Rewritten.
13839 (grub_disk_write): Handle non-512B sectors.
13840 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
13842 (open_device): Use log_sector_size.
13843 (grub_util_biosdisk_read): Likewise.
13844 (grub_util_biosdisk_write): Likewise.
13845 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
13847 (pc_partition_map_embed): Likewise.
13848 * include/grub/disk.h (grub_disk): New field log_sector_size.
13849 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
13850 (GRUB_DISK_CACHE_BITS): Increased to 6.
13851 * util/grub-fstest.c (fstest): New command testload.
13852 (argp_parser): Likewise.
13854 2011-06-16 Robert Millan <rmh@gnu.org>
13856 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
13857 `ata' driver on kernel of FreeBSD 9.
13859 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
13860 (get_ataraid_disk_name): New functions.
13861 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
13862 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
13863 get_ataraid_disk_name() and get_ada_disk_name().
13865 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
13867 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
13870 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
13872 * docs/grub.texi (Obtaining and Building GRUB): Substitute
13873 `ftp.gnu.org' for `alpha.gnu.org'.
13875 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
13877 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
13878 partitions under /dev/disk/by-id/.
13880 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
13882 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
13883 after ten consecutive open failures. Scanning all the way up to
13884 10000 is excessive and can cause serious performance problems in
13885 some configurations.
13886 Fixes Ubuntu bug #787461.
13888 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13890 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
13893 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
13894 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13896 Don't stat devices unless we have to.
13898 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
13899 dir == /dev/mapper.
13900 (grub_guess_root_device): Use already known os_dev if possible.
13901 * grub-core/kern/emu/hostdisk.c
13902 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
13903 if device is known to be a dm one.
13905 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
13907 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
13908 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
13909 Reported by: Pawel Tecza.
13911 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
13913 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
13914 (lsefisystab): Likewise.
13916 (lsefimmap): Likewise.
13917 (hdparm): Enable on qemu-mips.
13918 (setjmp): Add ia64 nodist.
13919 (serial): Simplify tags.
13921 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
13923 * Makefile.util.def (grub-ofpathname): Install manual page.
13925 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
13927 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
13929 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
13931 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
13933 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13935 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
13938 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13940 Use full 64-bit division.
13942 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
13943 (grub_divmod64): ... this.
13944 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
13947 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
13949 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
13952 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
13954 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
13955 to avoid accidents when debugging with 'sh -x'.
13956 * grub-core/gensyminfo.sh.in: Likewise.
13957 * tests/example_scripted_test.in: Likewise.
13958 * tests/grub_cmd_regexp.in: Likewise.
13959 * tests/grub_script_blanklines.in: Likewise.
13960 * tests/grub_script_dollar.in: Likewise.
13961 * tests/grub_script_expansion.in: Likewise.
13962 * tests/grub_script_final_semicolon.in: Likewise.
13963 * tests/partmap_test.in: Likewise.
13964 * tests/util/grub-shell-tester.in: Likewise.
13965 * tests/util/grub-shell.in: Likewise.
13967 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
13969 Move gfxmenu color handling to video, so that gfxterm can use it
13972 * grub-core/gfxmenu/named_colors.c: Move to ...
13973 * grub-core/video/colors.c: ... here. Rename
13974 grub_gui_get_named_color to grub_video_get_named_color.
13975 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
13976 * grub-core/video/colors.c (my_isxdigit): ... here.
13977 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
13979 * grub-core/video/colors.c (parse_hex_color_component): ... here.
13980 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
13982 * grub-core/video/colors.c (grub_video_parse_color): ... here.
13984 * include/grub/gui.h (grub_gui_color_t): Move to ...
13985 * include/grub/video.h (grub_video_rgba_color_t): ... here.
13986 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
13987 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
13988 * include/grub/gui.h (grub_gui_map_color): Move to ...
13989 * include/grub/video.h (grub_video_map_rgba_color): ... here.
13990 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
13992 * include/grub/video.h (grub_video_get_named_color): ... here.
13993 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
13994 * include/grub/video.h (grub_video_parse_color): ... here.
13996 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
13998 (gfxmenu): Remove gfxmenu/named_colors.c.
13999 (video) [videomodules]: Add video/colors.c.
14001 Add a background_color command.
14003 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
14005 (GRUB_MOD_INIT): Register background_color command.
14006 (GRUB_MOD_FINI): Unregister background_color command.
14007 (redraw_screen_rect): Allow blend/replace of text layer to be
14008 controlled independently from whether there is a background bitmap.
14009 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
14012 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14014 Patch BPB in ntldr and chainloader --bpb.
14016 * grub-core/fs/fat.c: Include grub/fat.h.
14017 (grub_fat_bpb): Moved to ...
14018 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
14019 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
14021 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
14023 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
14025 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
14027 (grub_chainloader_cmd): Patch BPB if --bpb is given.
14028 (GRUB_MOD_INIT): Show --bpb.
14029 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
14030 * grub-core/normal/main.c (features): New variable.
14031 (GRUB_MOD_INIT): Set feature_* variables.
14032 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
14034 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
14036 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14038 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
14041 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14043 FreeDOS direct loading support.
14045 * docs/grub.texi (Supported OS): Add FreeDOS.
14046 * grub-core/Makefile.core.def (freedos): New module.
14047 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
14049 (grub_relocator16_boot): Handle %ebx.
14050 * grub-core/lib/i386/relocator16.S: Likewise.
14051 * grub-core/loader/i386/pc/freedos.c: New file.
14053 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14055 Long Linux command line support.
14057 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
14058 (maximal_cmdline_size): New variable.
14059 (allocate_pages): Use maximal_cmdline_size.
14060 (grub_cmd_linux): Set and use maximal_cmdline_size.
14061 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
14062 (allocate_pages): Use maximal_cmdline_size.
14063 (grub_cmd_linux): Set and use maximal_cmdline_size.
14064 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
14065 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
14068 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14069 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
14071 Improve devmapper support
14073 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
14074 (grub_util_is_lvm): New function.
14075 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
14076 than lvm if not dmraid.
14077 Handle mapped md nodes.
14078 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
14079 (grub_util_device_is_mapped): ... this. Make always available. All users
14081 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
14082 (convert_system_partition_to_system_disk): Handle lvm, mpath and
14084 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
14086 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14088 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
14090 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
14091 * grub-core/modinfo.sh.in: New file.
14092 * grub-core/Makefile.core.def (modinfo.sh): New script.
14093 * util/grub-mknetdir.in: Use modinfo.sh.
14094 * util/grub-mkrescue.in: Likewise.
14096 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14098 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
14099 Fix potential usage of Elf32 instead of Elf64 when compiling on
14100 32-bit architecture. Add endianness macros while on it.
14102 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14104 Use mipsel- rather than mips- in directories involving mipsel ports to
14105 allow both endiannesses coexist.
14107 * configure.ac: proparate target_cpu=mipsel rather than resetting to
14108 mips. All conditions adjusted.
14109 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
14111 * util/grub-install.in: Adjust conditions to take renaming into account.
14112 * util/grub-mkimage.c (image_targets): Likewise. New target
14113 mips-qemu_mips-elf for bigendian mips.
14115 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14117 Avoid unnecessary copying on MIPS.
14119 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
14120 early if src == dest.
14121 * util/grub-mkimage.c (generate_image): Arange for src == dest if
14122 compression is none.
14124 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14126 Reduce memory footprint on SGI by putting modules before the kernel
14127 as opposed to after.
14129 * grub-core/Makefile.core.def (kernel): Increase linking address.
14130 (none_decompress): Likewise.
14131 (xz_decompress): Likewise.
14132 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
14134 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
14136 (grub_arch_modules_addr): New function.
14137 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
14138 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
14139 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
14141 * grub-core/kern/mips/startup.S (total_size): Rename to ...
14142 (grub_total_modules_size): ... this. Make global.
14143 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
14144 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
14146 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
14147 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
14148 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
14149 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
14150 * util/grub-mkimage.c (image_target_desc): New flag
14151 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
14152 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
14153 (generate_image): Handle images with modules before kernel.
14155 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14157 Prevent potential loss of memory map by overwrite on qemu-mips.
14159 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
14160 Save ram size in $s4.
14161 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
14162 All users changed to grub_arch_memsize.
14163 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
14165 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
14166 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
14167 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
14170 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
14172 * .bzrignore: Remove grub-dumpbios.
14174 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
14176 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
14177 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
14178 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
14179 existing options which append).
14180 * docs/grub.texi (Simple configuration): Document new options.
14181 Reported by: Ian Jackson. Fixes Debian bug #617538.
14183 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
14185 * util/grub-fstest.c (cmd_cat): New function.
14186 (fstest): Handle CMD_CAT.
14187 (options): Add cat.
14188 (argp_parser): Handle cat.
14190 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
14192 * Makefile.util.def (grub-bin2h): Don't install.
14193 * docs/man/grub-bin2h.h2m: Remove.
14195 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14197 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
14200 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14202 Reenable qemu-mips port.
14204 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
14205 Fix small arc bug while on it.
14206 * gentpl.py: Handle qemu_mips.
14207 * grub-core/Makefile.am: Likewise.
14208 * grub-core/Makefile.core.def: Likewise.
14209 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
14210 inappropriate includes.
14211 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
14212 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
14213 * grub-core/kern/main.c (grub_modules_get_end)
14214 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
14215 * grub-core/kern/mips/qemu-mips: Moved to ..
14216 * grub-core/kern/mips/qemu_mips: ... this.
14217 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
14218 (grub_machine_init): Call terminfo_init and serial_init.
14219 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
14220 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
14222 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
14224 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
14225 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
14226 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
14227 * include/grub/mips/qemu_mips/cmos.h: New file.
14228 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
14229 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
14231 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
14232 Use correct mips-style address.
14233 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
14234 (GRUB_TICKS_PER_SECOND): Removed.
14235 (grub_get_rtc): Likewise.
14236 (grub_cpu_idle): Likewise.
14237 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
14239 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
14240 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
14241 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
14242 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
14243 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
14244 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
14245 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
14246 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
14248 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14252 * Makefile.util.def (libgrubmods.a): Add dvh.c.
14253 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
14255 * configure.ac: New target mips-arc.
14256 * gentpl.py: Likewise.
14257 * grub-core/Makefile.am: Likewise.
14258 * grub-core/Makefile.core.def: Likewise.
14259 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
14260 (none_decompress): Likewise.
14261 (lsdev): New module.
14262 (datetime): Use lib/arc/datetime.c on ARC.
14263 (part_dvh): New module.
14264 * grub-core/commands/arc/lsdev.c: New file.
14265 * grub-core/disk/arc/arcdisk.c: Likewise.
14266 * grub-core/kern/mips/arc/init.c: Likewise.
14267 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
14269 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
14271 (grub_arch_dl_relocate_symbols): Likewise.
14272 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
14273 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
14274 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
14276 * grub-core/lib/arc/datetime.c: New file.
14277 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
14278 pci.h on non-loongson.
14279 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
14280 (grub_linux_boot): Set unused registers to 0.
14281 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
14282 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
14283 * grub-core/mmap/mips/uppermem.c: ...here.
14284 * grub-core/partmap/dvh.c: New file.
14285 * grub-core/term/arc/console.c: Likewise.
14286 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
14287 (grub_terminfo_set_current): Add terminal "arc".
14288 (grub_terminfo_readkey): Support ARC sequences.
14289 * include/grub/arc/arc.h: New file.
14290 * include/grub/arc/console.h: Likewise.
14291 * include/grub/disk.h (grub_disk_dev_id): Add
14292 GRUB_DISK_DEVICE_ARCDISK_ID.
14293 * include/grub/mips/arc/kernel.h: New file.
14294 * include/grub/mips/arc/memory.h: Likewise.
14295 * include/grub/mips/arc/time.h: Likewise.
14296 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
14297 * include/grub/mips/kernel.h (grub_halt): ... here.
14298 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
14300 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
14301 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
14302 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
14303 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
14305 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
14307 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
14308 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
14309 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
14310 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
14311 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
14312 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
14313 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
14314 (grub_phys_addr_t): Moved from here ...
14315 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
14316 (grub_vtop): Moved from here ...
14317 * include/grub/mips/memory.h (grub_vtop): ... here.
14318 (grub_map_memory): Moved from here ...
14319 * include/grub/mips/memory.h (grub_map_memory): ... here.
14320 (grub_unmap_memory): Moved from here ...
14321 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
14322 (grub_machine_mmap_iterate): Moved from here ...
14323 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
14324 (grub_mmap_get_lower): Moved from here ...
14325 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
14326 (grub_mmap_get_upper): Moved from here ...
14327 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
14328 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
14330 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
14331 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
14333 * include/grub/mips/time.h (grub_get_rtc): ... here.
14334 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
14336 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
14337 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
14339 * include/grub/mips/time.h (grub_cpu_idle): ... here.
14340 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
14342 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
14343 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
14344 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
14345 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
14346 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
14347 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
14348 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
14349 (GRUB_MACHINE_LINK_ADDR): Likewise.
14350 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
14352 * util/grub-install.in: Run dvhtool on ARC.
14353 * util/grub-mkimage.c (image_targets): Add mips-arc.
14354 (generate_image): Handle ECOFF output for mips-arc.
14356 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
14358 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
14361 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
14363 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
14364 after enabling port.
14366 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
14368 Skip incorrect USB devices.
14370 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
14372 * include/grub/usb.h (grub_usb_err_t): New enum value
14373 GRUB_USB_ERR_BADDEVICE.
14375 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
14377 Fuloong video init support.
14379 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
14381 (grub_vga_read_arx): New function.
14382 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
14384 (framebuffer): New members io, mmioptr and mmiobase.
14385 (read_sis_cmd): New function.
14386 (write_sis_cmd): Likewise.
14387 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
14388 rather than 640x400.
14389 * grub-core/video/sis315_init.c: New file.
14391 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14393 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
14395 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
14396 to grub_dl_register_symbol.
14398 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14400 Fix compilation errors.
14402 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
14403 potentially unused.
14404 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
14405 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
14406 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
14407 to loongson machines.
14409 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14411 Several FS mtime support.
14413 * grub-core/fs/affs.c (grub_affs_time): New struct.
14414 (grub_affs_file): New field mtime.
14415 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
14416 type. Removed 'size'. New field 'di'. All users updated.
14417 (grub_affs_mount): Simplify checsum checking.
14418 (grub_affs_iterate_dir): New helper grub_affs_create_node.
14419 (grub_affs_dir): Handle mtime.
14420 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
14421 (grub_cpio_dir): Likewise.
14422 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
14423 (grub_hfs_filerec): New field mtime.
14424 (grub_hfs_dir): Handle mtime.
14425 (grub_hfs_mtime): New function.
14426 (grub_hfs_fs): Register grub_hfs_mtime.
14427 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
14428 (grub_iso9660_dir): New field mtime.
14429 (grub_fshelp_node): New field dirent.
14430 (iso9660_to_unixtime): New function.
14431 (iso9660_to_unixtime2): Likewise.
14432 (grub_iso9660_read_symlink): Use node->dirent.
14433 (grub_iso9660_iterate_dir): Likewise.
14434 (grub_iso9660_dir): Set mtime.
14435 (grub_iso9660_mtime): New function.
14436 (grub_iso9660_fs): Register grub_iso9660_mtime.
14437 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
14438 (grub_jfs_inode): New fields atime, ctime and mtime.
14439 (grub_jfs_dir): Set mtime.
14440 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
14441 * grub-core/fs/ntfs.c (list_file): Set mtime.
14442 (grub_ntfs_dir): Likewise.
14443 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
14444 (grub_reiserfs_iterate_dir): Set mtime.
14445 (grub_reiserfs_dir): Likewise.
14446 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
14447 (grub_fshelp_node): Likewise.
14448 (grub_sfs_iterate_dir): Set mtime.
14449 (grub_sfs_dir): Likewise.
14450 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
14451 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
14452 (grub_xfs_inode): New fields atime, mtime, ctime.
14453 (grub_xfs_dir): Set mtime.
14454 * include/grub/datetime.h (grub_datetime2unixtime): New function.
14455 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
14456 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
14458 Support UDF symlinks.
14460 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
14461 (grub_ufs_read_symlink): New function. All users updated.
14463 Check amiga partmap checksum.
14465 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
14466 (grub_amiga_partition): Likewise.
14467 (amiga_partition_map_checksum): New function.
14468 (amiga_partition_map_iterate): Check checksum.
14470 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14474 * Makefile.util.def (libgrubmods.a): Add romfs.
14475 * grub-core/Makefile.core.def (romfs): New module.
14476 * grub-core/fs/romfs.c: New file.
14478 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14480 Squashfs v4 support.
14482 * Makefile.util.def (libgrubmods.a): Add squash4.
14483 * grub-core/Makefile.core.def (squash4): New module.
14484 * grub-core/fs/squash4.c: New file.
14485 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
14486 disk_input_start, disk_input.
14487 (get_byte): Handle disk_input.
14488 (grub_zlib_disk_read): New function.
14489 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
14491 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14492 2011-05-15 Feiran Zheng <famcool@gmail.com>
14494 * Makefile.util.def (libgrubmods.a): Add minix3.
14495 * grub-core/Makefile.core.def (minix3): New module.
14496 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
14497 (GRUB_MINIX_BSIZE): Removed.
14498 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
14499 (grub_minix_ino_t): New type.
14500 (grub_minix_le_to_cpu_ino): New macro.
14501 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
14502 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
14503 (grub_minix_data): New field block_size.
14504 (grub_minix_read_file): Handle 64-bit correctly.
14505 * grub-core/fs/minix3.c: New file.
14507 2011-05-15 Tristan Gingold <gingold@free.fr>
14508 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
14509 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14513 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
14514 * configure.ac: Add ia64-efi target.
14515 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
14516 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
14517 * gentpl.py: Add ia64_efi platform.
14518 Rename x86_efi to efi and Add ia64-efi. All users updated.
14519 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
14520 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
14521 Remove kern/generic/rtc_get_time_ms.c on EFI.
14522 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
14523 kern/ia64/dl_helper.c on ia64-efi.
14524 Add kern/emu/cache.c on emu.
14525 (linux): Use on loader/ia64/efi/linux.c on ia64.
14526 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
14527 whether symbol is a function.
14528 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
14529 (grub_symbol): New field 'isfunc'.
14530 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
14531 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
14532 (grub_dl_load_segments): Place all sections into the same region.
14533 [__ia64__]: Create trampolines and got.
14534 [GRUB_MACHINE_EMU]: Call mprotect.
14535 (grub_dl_resolve_symbols): Resolve symbol type as well.
14536 [__ia64__]: Create function descriptors.
14537 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
14538 (grub_rtc_get_time_ms): ... this. Expressions simplified.
14539 (grub_get_rtc): New function.
14540 * grub-core/kern/emu/cache.c [__ia64__]: New file.
14541 * grub-core/kern/emu/cache.S: Renamed to ...
14542 * grub-core/kern/emu/cache_s.S: ... this.
14543 [__ia64__]: Add a nop.
14544 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
14545 [__ia64__]: New function.
14546 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
14547 * grub-core/kern/ia64/dl.c: New file.
14548 * grub-core/kern/ia64/dl_helper.c: Likewise.
14549 * grub-core/kern/ia64/efi/init.c: New file.
14550 * grub-core/kern/ia64/efi/startup.S: Likewise.
14551 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
14552 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
14553 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
14554 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
14555 * grub-core/loader/ia64/efi/linux.c: New file.
14556 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
14557 (GRUB_MOD_DEP): Likewise.
14558 (grub_dl) [__ia64__]: New fields got and tramp.
14559 (grub_dl): New field 'base'.
14560 (grub_dl_register_symbol): New argument isfunc. All users updated.
14561 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
14562 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
14563 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
14564 (grub_ia64_dl_get_tramp_got_size): New proto.
14565 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
14566 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
14567 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
14568 * include/grub/efi/api.h: Skip call wrappers on ia64.
14569 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
14570 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
14571 * include/grub/elf.h (ELF_ST_INFO): New definition.
14572 * include/grub/ia64/efi/kernel.h: New file.
14573 * include/grub/ia64/efi/memory.h: Likewise.
14574 * include/grub/ia64/efi/time.h: Likewise.
14575 * include/grub/ia64/kernel.h: Likewise.
14576 * include/grub/ia64/setjmp.h: Likewise (from glibc).
14577 * include/grub/ia64/time.h: New file.
14578 * include/grub/ia64/types.h: Likewise.
14579 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
14580 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
14582 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
14583 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
14584 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
14585 * util/grub-mkimage.c (image_target_desc): New field pe_target.
14587 (EFI64_HEADER_SIZE): New definition. All users updated.
14588 (image_targets): Add ia64-efi.
14589 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
14590 jumpers_addr. All users updated.
14591 Create function descriptors.
14592 (count_funcs): New function.
14593 (unaligned_uint32): New struct.
14594 (MASK20): New definition.
14595 (MASK19): Likewise.
14596 (MASKF21): Likewise.
14597 (add_value_to_slot_20b): New function.
14598 (add_value_to_slot_21_real): Likewise.
14599 (add_value_to_slot_21): Likewise.
14600 (ia64_kernel_trampoline): New struct.
14601 (nopm): New variable.
14603 (make_trampoline): New function.
14604 (relocate_addresses): Handle ia64.
14605 (make_reloc_section): Likewise.
14606 (load_image): Likewise.
14608 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14610 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
14611 warning. Move variables before code while on it.
14613 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14617 * configure.ac: Rename yeeloong platform to loongson. All users updated.
14618 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
14619 * grub-core/boot/mips/loongson/fuloong.S: New file.
14620 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
14621 Explicitly init CS5536.
14622 [FULOONG]: Don't use serial until CS5536 is available.
14623 Set GPIO based on dumps.
14624 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
14625 [FULOONG]: Handle GPIO and memory controller differences.
14626 Parse machine type in $a2.
14627 * grub-core/boot/mips/startup_raw.S: Determine and save the
14629 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
14630 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
14631 init on architecture type.
14632 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
14633 SIS315E. Don't init at_keyboard on fuloong.
14634 (grub_halt): Support Fuloong.
14635 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
14636 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
14637 (loongson_machtypes): New array.
14638 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
14640 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
14641 config. All users updated. Handle CS5536 serial.
14642 * grub-core/term/serial.c (grub_serial_register): Conditionalise
14643 default port on machine type. Register serial as inactive.
14644 * grub-core/video/sis315pro.c: New file.
14645 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
14647 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
14648 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
14649 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
14650 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
14651 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
14652 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
14654 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
14655 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
14657 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
14658 (grub_arch_machine): New extern var.
14659 * include/grub/mips/loongson/serial.h
14660 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
14661 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
14662 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
14663 (GRUB_MACHINE_SERIAL_PORT0): ... this.
14664 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
14665 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
14666 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
14667 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
14668 * include/grub/term.h (grub_term_register_input_inactive): New inline
14670 (grub_term_register_output_inactive): Likewise.
14671 * include/grub/video.h (grub_video_driver_id): New value
14672 GRUB_VIDEO_DRIVER_SIS315PRO.
14673 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
14674 New field "names". All users updated.
14675 New field value IMAGE_FULOONG_FLASH.
14676 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
14678 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
14680 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
14681 and add some clarification.
14683 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14685 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
14686 platforms if kernel is compressed.
14688 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14690 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
14691 unused modules since currently referrence counter isn't reliable and
14692 there isn't much memory to recover there anyway.
14694 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14696 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
14697 rather than resetting it to allow modules to reference themselves
14700 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14702 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
14703 counter on dependencies since grub_dl_unref already handles this.
14705 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14707 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
14708 on error if not already done.
14710 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14712 Fix few potential memory misusage.
14714 * grub-core/font/font.c (load_font_index): Don't free char_index to
14716 (grub_font_load): Zero-fill font at alloc for safety.
14717 Close file on error.
14718 (free_font): Free bmp_idx.
14720 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14722 * docs/grub.texi (Installation): Fix several outdated claims.
14724 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14726 Handle module_license on windows.
14728 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
14730 (insert_string): Make argument const char * instead of char *.
14731 (write_section_data): Handle long section names.
14732 Handle module_license.
14734 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14736 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
14737 handle class-free menuentries.
14738 (grub_normal_add_menu_entry): Add a check to be sure.
14740 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14742 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
14745 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14747 * configure.ac: Bump version to 1.99.
14749 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14751 Give ATA device a bit more time on first try in order to allow disks
14754 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
14755 if dev->present is 1. Reset dev->present on failure.
14756 (grub_ata_device_initialize): Set dev->present to 1.
14757 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
14758 (grub_ata_device): New member 'present'.
14760 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14762 * util/grub-mkimage.c (generate_image): Update hash.
14764 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14766 Flush caches on DMA memory.
14768 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
14769 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
14770 (grub_dma_free): Likewise.
14771 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
14773 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14775 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
14776 to avoid asm treating ld and sd as macros.
14778 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14780 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
14783 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14785 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
14786 grub_decompress_core since later would fail if grub_decompress_core
14789 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14791 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
14792 R_MIPS_JALR since it's used by newer compiler.
14794 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
14796 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
14798 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14800 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
14801 file_path to 0 for surety.
14802 (grub_chainloader_boot): Set exit_data to NULL.
14803 Unset the loader once done.
14804 (grub_cmd_chainloader): Fix confusing error message if file is empty.
14806 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14808 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
14809 unknown key into a dprintf.
14811 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14813 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
14814 on first non-existant partition.
14816 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14818 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
14820 Reported by: Mark Korenberg.
14822 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14824 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
14827 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14829 * util/grub-mkimage.c (main): Explicitely flush and sync the output
14830 before closing to ensure that it will be readable by grub-setup.
14832 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14834 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
14835 (devpath_1): Use MAKE_PIWG_PATH.
14836 (devpath_2): Likewise.
14837 (devpath_3): Likewise.
14838 (devpath_4): Likewise.
14839 (devpath_5): Likewise.
14840 (devpath_6): Likewise.
14842 The appleldr.mod was checked that to be binary identical to previous
14845 2011-05-05 Zach <mikezackles>
14847 Support 2010 Macbooks.
14849 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
14850 (devs): Add devpath_6.
14852 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14854 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
14855 /dev/random. /dev/urandom is good enough for our purposes (salting).
14857 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14859 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
14861 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14863 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
14866 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14868 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
14869 and not 0 on failure.
14871 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
14873 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
14874 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
14875 disk; otherwise grub_fs_probe will not fall back to the next
14877 (grub_pxefs_open): Likewise, for consistency.
14878 Reported and tested by: Ezekiel Grave.
14880 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
14882 * tests/partmap_test.in: Don't hardcode path to parted.
14883 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
14885 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
14887 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
14888 of `ls' to find out which devices are available.
14890 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14892 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
14893 than source address for efi mmap buffer.
14895 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14897 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
14898 wrong action on non-detecting the magic.
14900 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14902 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
14903 already supplied by another part of the module (fixes compilation on
14906 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14908 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
14909 match the one used by mdadm.
14911 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
14913 * po/README: Add instructions for creating po/LINGUAS.
14915 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
14917 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
14920 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
14921 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
14922 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
14923 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
14924 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
14925 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
14926 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
14927 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
14928 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
14929 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
14930 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
14931 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
14932 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
14933 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
14934 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
14935 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
14936 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
14937 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
14938 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
14939 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
14940 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
14941 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
14943 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
14945 * grub-core/kern/emu/getroot.c
14946 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
14947 test that was incorrectly reintroduced in r3214.
14948 Reported by: Ian Dall. Fixes Savannah bug #33133.
14950 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
14952 Fix stack pointer handling in 16-bit relocator.
14954 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
14955 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
14956 Fixes Ubuntu bug #683904.
14958 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
14960 * configure.ac: Bump version to 1.99~rc2.
14962 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
14964 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
14965 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
14966 * grub-core/lib/x86_64/setjmp.S: Likewise.
14967 * grub-core/lib/mips/setjmp.S: Likewise.
14968 * grub-core/lib/powerpc/setjmp.S: Likewise.
14969 * grub-core/lib/sparc64/setjmp.S: Likewise.
14971 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
14973 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
14974 * grub-core/lib/efi/datetime.c: Likewise.
14976 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14978 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
14980 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
14981 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
14982 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
14984 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14986 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
14988 (grub_gfxterm_term_init): Likewise.
14990 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14992 Take into account the decorations the computing menu entry width.
14994 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
14995 (grub_gfxmenu_create_box): Register get_border_width.
14996 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
14998 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
15001 2011-04-18 Endres Puschner <code@e7p.de>
15003 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
15004 Don't skip first class.
15006 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
15008 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
15010 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
15012 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
15014 Complete 64-bit division support.
15016 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
15017 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
15018 * include/grub/misc.h (grub_divmod64): Rename to ...
15019 (grub_divmod64_full): ... this.
15020 (grub_divmod64): New inline function.
15022 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
15024 * util/grub-mkimage.c (generate_image): Add forgotten comma.
15026 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
15028 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
15029 performing the necessary test.
15031 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
15033 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
15034 (kfreebsd.elf): Likewise.
15035 (pc-chainloader.elf): Likewise.
15036 (ntldr.elf): Likewise.
15038 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
15040 Identify RAID by its UUID rather than (guessed) name.
15042 * grub-core/disk/raid.c (ascii2hex): New function.
15043 (grub_raid_open): Accept mduuid/%s specification.
15044 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
15045 (get_mdadm_uuid): ... this.
15046 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
15048 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
15050 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
15053 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
15055 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
15057 * util/grub.d/20_linux_xen.in: Likewise.
15059 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
15061 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
15062 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
15064 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
15065 Build a list of relevant visible mounts using the mnt_id and
15066 parent_mnt_id fields, and then scan that list at the end.
15068 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
15070 * docs/grub.texi (normal): New section.
15071 (normal_exit): New section.
15072 (Embedded configuration): Add reference to normal.
15073 (GRUB only offers a rescue shell): Likewise.
15074 * docs/grub-dev.texi (Error Handling): Fix typo.
15076 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
15078 * NEWS: Drop obsolete entry about probe-only btrfs support.
15080 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
15082 * util/import_gcry.py: Fix typo.
15084 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15086 * NEWS: Add btrfs support.
15088 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15089 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
15091 BtrFS support. Written by me (Vladimir) with important bugfixes and
15092 even more important testing by Colin.
15094 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
15095 * grub-core/Makefile.core.def (btrfs): Add crc.c.
15096 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
15097 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
15098 mem_input_off and mem_input. All users updated to accept in-RAM input.
15099 (gzio_seek): New function.
15100 (test_zlib_header): Likewise.
15101 (grub_gzio_read): Likewise.
15102 (grub_zlib_decompress): Likewise.
15103 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
15104 Accept partial and non-virtual mounts.
15105 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
15106 avoid receiving /dev/dm-X as device.
15107 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
15108 Handle bind and partial mounts.
15109 * grub-core/lib/crc.c: New file.
15110 * include/grub/deflate.h: Likewise.
15111 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
15113 * include/grub/lib/crc.h: New file.
15115 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15117 Implement automatic module license checking according to new GNU
15120 * grub-core/kern/dl.c (grub_dl_check_license): New function.
15121 (grub_dl_load_core): Use grub_dl_check_license.
15122 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
15123 (GRUB_MOD_LICENSE): Likewise.
15124 (GRUB_MOD_DUAL_LICENSE): Likewise.
15125 All modules updated.
15127 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
15129 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
15130 reserved_first_sector to 1. btrfs reserves plenty of space for boot
15132 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
15134 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15136 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
15138 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15140 * util/grub-fstest.c (read_file): Report GRUB error if file opening
15143 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15145 * grub-core/kern/file.c (grub_file_open): Don't take into account the
15146 parenthesis in the middle of the filename.
15148 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15150 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
15151 rather than trying to put initrd way too high.
15152 Reported by: Ryan Lortie <desrt@desrt.ca>
15154 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15156 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
15157 improperly removed string.
15159 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15161 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
15163 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
15164 (open_device) Likewise.
15165 (grub_util_biosdisk_close): Likewise.
15166 Reported by: Mark Korenberg.
15168 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
15170 * util/grub-mkconfig_lib.in: Add missing quotes.
15172 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
15174 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
15177 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15179 Dynamically count the number of lines for the lower banner.
15181 * grub-core/normal/menu_entry.c (per_term_screen): New member
15183 (print_down): Use num_entries.
15184 (update_screen): Likewise.
15185 (grub_menu_entry_run): Set num_entries.
15186 * grub-core/normal/menu_text.c (menu_viewer_data): New member
15188 (grub_print_message_indented): Move real part to ...
15189 (grub_print_message_indented_real): ... here. Additional argument
15191 (draw_border): Additional argument num_entries.
15192 (print_message): Additional argument dry_run.
15193 (print_entries): Receive menu viewer data.
15194 (grub_menu_init_page): New argment num_entries.
15195 (menu_text_set_chosen_entry): Use num_entries.
15196 (grub_menu_try_text): Likewise.
15197 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
15199 (grub_ucs4_count_lines): New function.
15200 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
15201 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
15202 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
15203 (grub_term_border_height): Likewise.
15204 (grub_term_num_entries): Likewise.
15206 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15208 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
15209 Remove now unused string.
15211 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
15213 * docs/grub-dev.texi (Finding your way around): Update for 1.99
15215 (Getting started): GRUB is developed in Bazaar now, not Subversion.
15217 (Comment): Fix typo.
15218 (Getting started): General copy-editing.
15219 (Typical Development Experience): Likewise.
15220 (Error Handling): Likewise.
15221 (Video API): Likewise.
15223 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
15225 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
15228 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15230 * util/grub-mkimage.c (main): Handle special naming of yeeloong
15233 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
15235 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
15236 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
15239 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15241 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
15242 grub_strcpy since the lines aren't necessarily 0-terminated.
15244 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15246 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
15249 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15251 * grub-core/commands/probe.c (options): Argument to set isn't optional.
15252 (GRUB_MOD_INIT): DEVICE isn't optional.
15254 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15256 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
15257 word on new line if it's too long anyway. Fixes a hang.
15259 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15261 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
15263 * util/grub-setup.c (main): Reuse md device name if available.
15264 * util/raid.c (grub_util_raid_getmembers): Receive device name and
15265 not GRUB name as argument.
15266 Based on patch by: Florian Wagner <fwagner>.
15268 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15270 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
15271 Place mbi on low memory for better compatibility.
15273 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15275 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
15277 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15278 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
15280 * autogen.sh: Ensure that collate and ctype locale is C.
15281 * conf/Makefile.common: Likewise.
15283 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15285 * grub-core/normal/menu.c: Add missing include.
15287 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15289 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
15291 2011-04-08 Martin Zuther <mzuther@mzuther.de>
15293 * util/grub-mkconfig.in: Ignore emacsen backup.
15295 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15297 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
15299 (grub_util_biosdisk_close): Likewise.
15301 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15303 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
15304 const attribute and use grub_isdigit.
15306 2011-04-06 Andrey <dev_null@ukr.net>
15308 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
15311 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15313 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
15314 useful grub_dprintf's.
15316 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15318 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
15320 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15322 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
15324 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15326 Output errors if theme loading failed.
15328 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
15329 grub_gfxterm_fullscreen on error paths to ...
15330 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
15331 theme loading error.
15333 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15335 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
15336 space for older compilers.
15337 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
15339 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15341 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
15342 and report them as not RAID members since they are useless for GRUB.
15343 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15345 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15347 Increase LVM implementation robustness in order not to crash on
15348 configurations like pvmove. Previously code assumed that in some places
15349 only lvs or only pvs are used whereas it seems that they are used
15352 * grub-core/disk/lvm.c (read_node): New function.
15353 (read_lv): Use read_node.
15354 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
15355 Match volumes only at the end when all lvs are found. Take both
15356 pvs (first) and lvs (second) into account.
15357 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
15358 mirror_* into node_*. All users updated.
15359 (grub_lvm_stripe): Merge this ...
15360 (grub_lvm_mirror): ... and this ...
15361 (grub_lvm_node): ... into this. All users updated.
15363 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15365 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
15366 of function to allow further scanning for LVMs.
15368 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15370 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
15371 on failed seek as it breaks open fd reusage.
15373 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15375 * util/grub-install.in: Add a recommendation to use --recheck before
15378 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15380 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
15383 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15385 GRUB developper manual based on existing Internals section and
15386 contributions by the various authors with active copyright assignment.
15388 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
15389 * docs/font_char_metrics.png: New file.
15390 * docs/font_char_metrics.txt: Likewise.
15391 * docs/grub-dev.texi: Likewise.
15392 * docs/grub.texi (Internals): Move from here ...
15393 * docs/grub-dev.texi: ... here.
15395 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
15397 Store the loopback device as data on loopback grub_disk structures,
15398 rather than the file it points to. This fixes use of freed memory
15399 if an existing loopback device is replaced.
15401 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
15402 disk->data, not dev->file.
15403 (grub_loopback_read): Adjust file assignment to match.
15404 Fixes Ubuntu bug #742967.
15406 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
15408 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
15409 when replacing an existing device.
15411 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
15413 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
15414 memory corruptions.
15416 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
15418 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
15419 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
15420 (grub_jfs_read_inode): Likewise.
15421 (grub_jfs_opendir): Likewise. Remove now useless casts.
15422 (grub_jfs_getent): Likewise.
15423 Make ino a grub_uint32_t rather than int.
15424 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
15425 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
15426 division and module with bit operations.
15427 (grub_jfs_find_file): Make ino a grub_uint32_t.
15428 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
15430 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
15432 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
15433 warning. (This was in fact always initialised before use, but GCC
15434 wasn't smart enough to prove that.)
15435 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
15437 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
15439 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
15441 (efi_wrap_1): Likewise.
15442 (efi_wrap_2): Likewise.
15443 (efi_wrap_3): Likewise.
15444 (efi_wrap_4): Likewise.
15445 (efi_wrap_5): Likewise.
15446 (efi_wrap_6): Likewise.
15447 (efi_wrap_10): Likewise.
15448 Based on information by: Red Hat/Peter Jones.
15450 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
15452 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
15453 set-but-not-used variable.
15455 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
15457 * docs/grub.texi (Simple configuration): Be more explicit about
15458 GRUB_DEFAULT, and add an example.
15459 Reported by: Leslie Rhorer.
15461 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
15463 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
15466 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
15468 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
15469 * util/grub.d/20_linux_xen.in: Likewise.
15471 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15473 * util/grub.d/10_linux.in: Try alternative config filenames where
15474 we parse config file.
15475 * util/grub.d/20_linux_xen.in: Likewise.
15477 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
15479 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
15480 * util/grub.d/20_linux_xen.in: Likewise.
15482 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15484 * grub-core/disk/raid.c (insert_array): Add few potentially
15485 useful grub_util_info.
15486 (grub_raid_register): Likewise.
15488 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15490 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
15491 Preserve partition number in mdadm code path.
15493 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15495 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
15496 few potentially useful grub_util_info.
15498 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15500 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
15502 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
15504 * docs/grub.texi (default): Use @example rather than nested
15505 itemized lists to avoid breaking gendocs.
15507 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
15509 * docs/grub.texi (Future): Update.
15511 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
15513 * docs/grub.texi (Environment): New chapter.
15514 (Changes from GRUB Legacy): Link to "Environment block" section for
15515 details of limitations.
15516 (Simple configuration): Likewise. Link to documentation of gfxmode
15517 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
15519 (Shell-like scripting): Note that normal variables are stored in the
15521 (gettext): Link to documentation of lang and locale_dir.
15522 (list_env): New section.
15523 (load_env): New section.
15524 (save_env): New section.
15526 (Reporting bugs): Fix typo.
15528 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15530 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
15533 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15535 * grub-core/term/at_keyboard.c (set_scancodes)
15536 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
15538 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
15540 * docs/grub.texi (Menu-specific commands): Remove some semantics
15541 that were true in GRUB Legacy but not in GRUB 2.
15542 (submenu): New section.
15543 (false): New section.
15544 (read): New section.
15545 (true): New section.
15547 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
15549 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
15551 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
15553 * docs/grub.texi (Simple configuration): Explain some of the
15554 current limitations of grub-mkconfig.
15555 Reported by: Leslie Rhorer.
15557 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15559 Old macs search for boot.efi rather than for bootia32.efi.
15561 * util/grub-install.in: Copy bootia32.efi to boot.efi.
15562 * util/grub-mkrescue.in: Likewise.
15563 Suggested by: Peter Jones.
15565 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15567 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
15569 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15571 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
15572 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
15573 (grub_lvm_mirror): New struct.
15574 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
15575 (grub_lvm_iterate): Iterate only visible volumes.
15576 (grub_lvm_read): Factor out to ..
15577 (read_lv): ... this. Support mirrors.
15578 (grub_lvm_read): New wrapper function.
15579 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
15580 stripped or mirrored.
15582 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15584 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
15586 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
15588 * docs/grub.texi (loopback): New section.
15590 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
15592 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
15595 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
15597 * docs/grub.texi (BIOS installation): New section, partly based on
15598 previous text in other sections.
15599 (Installing GRUB using grub-install): Replace BIOS discussion with a
15601 (Images): Likewise.
15603 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15605 * grub-core/kern/emu/hostdisk.c (find_partition_start)
15606 [HAVE_DIOCGDINFO]: Add safety checks.
15608 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15610 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
15611 per default compiled in kernel and prior to 8.0 isn't shipped at all.
15613 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
15615 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
15616 real_sb->size is zero (e.g. RAID-0), get the disk size from
15617 real_sb->data_size instead.
15618 Fixes Ubuntu bug #743136.
15620 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15622 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
15623 printf clauses for printing size and start.
15625 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15627 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
15628 Reported and tested by: Timothy Nikkel.
15630 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15632 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
15633 (dirty_region_add_real): ... this.
15634 (dirty_region_add): Don't discard margin refresh when performing
15637 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15639 * grub-core/lib/relocator.c (allocate_regstart)
15640 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
15641 terminals are capabple of malloc-free operation.
15642 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
15643 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
15645 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
15647 * util/grub-setup.c: Copy the partition table zone if floppy support
15648 is disabled, even if no partition table is found.
15650 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
15651 during POST if an invalid partition table is contained in the PBR
15652 of the active partition when GRUB is installed to a partition.
15654 2011-03-28 Colin Watson <cjwatson@debian.org>
15656 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
15659 2011-03-28 Colin Watson <cjwatson@debian.org>
15661 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
15662 to be specific about what kind of RAID device we're scanning for.
15664 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
15666 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
15667 return freed string.
15669 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15671 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
15673 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15675 Use libgeom on FreeBSD to detect partitions.
15677 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
15678 (grub-mkrelpath): Likewise.
15679 (grub-script-check): Likewise.
15680 (grub-editenv): Likewise.
15681 (grub-mkpasswd-pbkdf2): Likewise.
15682 (grub-fstest): Likewise.
15683 (grub-mkfont): Likewise.
15684 (grub-mkdevicemap): Likewise.
15685 (grub-probe): Likewise.
15686 (grub-setup): Likewise.
15687 (grub-ofpathname): Likewise.
15688 (grub-mklayout): Likewise.
15689 (example_unit_test): Likewise.
15690 (grub-menulst2cfg): Likewise.
15691 * grub-core/Makefile.core.def (grub-emu): Likewise.
15692 (grub-emu-lite): Likewise.
15693 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
15694 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
15695 define HAVE_DIOCGDINFO.
15696 (follow_geom_up) [FreeBSD]: New function.
15697 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
15698 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
15699 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
15700 unconditionally of HAVE_DIOCGDINFO.
15702 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15704 Fix FreeBSD compilation problem.
15706 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
15707 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
15709 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
15711 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
15712 Switch back to page zero before loading a kernel, since some kernel
15713 drivers expect that.
15714 Thanks to: Felix Kuehling.
15716 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15718 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
15719 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
15720 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
15722 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15724 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
15725 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
15727 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15729 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
15730 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
15731 malloc is disabled.
15733 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15735 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
15736 for modules headers when counting the needed allocation size.
15738 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15740 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
15741 if no ASCII character is found to prevent crash.
15743 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
15745 * grub-core/video/bitmap.c (match_extension): Ignore case.
15747 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15749 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
15751 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15753 * grub-core/script/parser.y: Declare "time" as valid argument.
15755 2011-03-23 Peter Jones <pjones@redhat.com>
15757 Fix incorrect assert failure reporting.
15759 * grub-core/tests/example_functional_test.c (example_test): Add
15761 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
15762 (failure_start): ...this. Check that malloc succeeded.
15763 Don't call xvasprintf. Return failure struct.
15764 (failure_append_vtext): New function.
15765 (failure_append_text): Likewise.
15766 (add_failure): Likewise.
15767 (grub_test_assert_helper): Likewise.
15768 * include/grub/test.h (grub_test_assert_helper): New declaration.
15769 (grub_test_assert): Macro rewritten.
15771 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15773 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
15775 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15777 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
15779 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15781 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
15782 into GRUB-style one.
15784 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15786 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
15787 error and not grub_errno.
15788 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
15790 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15792 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
15793 GRUB_USB_SPEED_NONE in case of failure and not the error code.
15795 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15797 * grub-core/efiemu/i386/pc/cfgtables.c
15798 (grub_machine_efiemu_init_tables): Make declaration a prototype.
15799 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
15800 (grub_xnu_unlock): Likewise.
15801 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
15803 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15805 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
15806 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
15807 * grub-core/commands/hashsum.c (aliases): Likewise.
15808 * grub-core/commands/setpci.c (pci_registers): Likewise.
15809 * grub-core/disk/usbms.c (attach_hook): Likewise.
15810 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
15811 (zio_checksum_table): Likewise.
15812 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
15813 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
15814 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
15815 * grub-core/lib/relocator.c (leftovers): Likewise.
15816 (extra_blocks): Likewise.
15817 * grub-core/loader/i386/bsd.c (relocator): Likewise.
15818 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
15819 (modules_last): Likewise.
15820 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
15821 (devices): Likewise.
15822 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
15823 (modules_last): Likewise.
15824 * grub-core/normal/auth.c (users): Likewise.
15825 * grub-core/normal/context.c (initial_menu): Likewise.
15826 (current_menu): Likewise.
15827 * grub-core/normal/crypto.c (crypto_specs): Likewise.
15828 * grub-core/term/serial.c (grub_serial_ports): Likewise.
15829 (grub_serial_terminfo_input_template): Likewise.
15830 (grub_serial_terminfo_output_template): Likewise.
15831 (grub_serial_terminfo_input): Likewise.
15832 (grub_serial_terminfo_output): Likewise.
15833 (registered): Likewise.
15834 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
15836 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15838 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
15839 grub_video_mode_type_t.
15840 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
15841 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
15842 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
15844 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15846 * util/grub-install.in: Correct the x86-64 name as x86_64.
15848 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
15850 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
15851 initial chunk read from the kernel always includes GRUB's multiboot
15852 header, which is now outside the first sector.
15854 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
15856 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
15857 cached mmap_size, so that this works correctly when called multiple
15859 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
15861 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
15863 * docs/grub.texi (Simple configuration): Tidy up formatting.
15865 2011-03-07 Szymon Janc <szymon@janc.net.pl>
15867 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
15868 Set-but-not-used variable removed.
15870 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
15872 Workaround yet another IEEE1275 bug.
15874 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
15875 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
15876 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
15877 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
15879 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
15880 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
15882 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
15884 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
15887 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
15889 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
15890 empty, since in that case we can only generate either nothing or a
15891 syntactically invalid configuration file.
15892 Reported by: Michal Suchanek. Fixes Debian bug #612898.
15894 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
15896 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
15897 (Making a GRUB bootable CD-ROM): Likewise.
15898 (Invoking grub-mkrescue): New section.
15899 Reported by: Yann Dirson. Fixes Debian bug #612585.
15901 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
15903 * util/grub-install.in: Remove unnecessary brackets from tr
15905 * util/grub.d/10_hurd.in: Likewise.
15906 * util/grub.d/10_kfreebsd.in: Likewise.
15907 * util/grub.d/10_linux.in: Likewise.
15908 * util/grub.d/20_linux_xen.in: Likewise.
15909 Reported by: Jamie Heilman. Fixes Debian bug #612564.
15911 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
15913 * include/grub/file.h (not_easly_seekable): Rename to ...
15914 (not_easily_seekable): ... this. Update all users.
15916 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
15918 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
15921 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
15923 * util/grub-mkimage.c (generate_image): Refuse to create the images
15924 bigger than the actual flash (512K) in Loongson machines. 512K is also
15925 the biggest chip supported by them.
15927 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15929 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
15931 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
15933 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
15934 super_offset field.
15936 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15938 * util/grub-install.in: Ignore install device on platforms
15939 where it doesn't make sense. Always use UUIDs except on pc, efi and
15941 Reported by: Daniel Kahn Gillmor.
15943 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15945 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
15947 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15949 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
15950 (iterate_real): Don't rely on partition being non-NULL.
15952 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15954 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
15955 supported platforms. Put a compile time assert for this rather than
15956 generate a warning with 32-bit shift.
15958 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15960 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
15961 logical expression more readable.
15963 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15965 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
15966 even if some elements have a name.
15967 Reported by: Alexander GQ Gerasiov.
15969 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
15971 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
15972 path unreadable if `grub-probe -t abstraction' fails, for example if
15973 memberlist fails on an LVM volume group.
15974 Reported by: Darius Jahandarie.
15976 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
15978 * docs/grub.texi (Simple configuration): Document
15979 GRUB_PRELOAD_MODULES.
15981 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
15983 * .bzrignore: Remove nonexistent grub-pbkdf2.
15985 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
15987 * configure.ac: Bump version to 1.99~rc1.
15989 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
15991 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
15994 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15996 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
15999 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
16001 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
16003 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
16005 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
16008 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
16010 Fix compilation on cygwin.
16012 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
16013 -R .drectve on cygwin.
16014 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
16015 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
16016 (COND_CYGWIN): New condition.
16017 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
16018 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
16019 not @TARGET_OBJ2ELF@.
16020 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
16021 type to determine whether aux is to be used.
16023 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16025 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
16026 realpath'ed device string.
16027 Handle floppy (somewhat).
16028 Issue error in unknown case rather than garbage.
16029 Reported by: Axel Beckert.
16031 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16033 * util/grub.d/00_header.in (load_video): Handle the case when no video
16035 Thanks to: Axel Beckert.
16037 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16039 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
16040 variable. Fixes problem on big endian platforms.
16042 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16044 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
16045 It doesn't work well there.
16047 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16049 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
16051 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
16052 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
16055 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16057 Use alias->path rather than buggy "canon".
16059 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
16060 (ofdisk_hash_add): New argument curcan. All users updated.
16062 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
16064 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
16066 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
16068 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
16069 loadmask before doing any calculations. Use correct type for offset.
16070 (grub_linux_load64): Likewise.
16072 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
16074 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
16076 (console_grub_equivalences_unshift): Likewise.
16077 Reported by: Daniel Dehennin.
16079 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
16081 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
16082 (set_env_limn_ro): Likewise.
16083 (GRUB_MOD_INIT): Likewise.
16084 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
16085 ARRAY_SIZE while on it.
16086 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
16087 * grub-core/normal/context.c (grub_env_export): Move from here ...
16088 * grub-core/kern/env.c (grub_env_export): ... here.
16089 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
16091 * grub-core/kern/main.c (grub_main): Export root and prefix.
16092 * include/grub/env.h (grub_env_export): Export.
16093 Reported by: Seth Goldberg.
16095 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
16097 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
16098 Take into account space used by ELF sections and multiboot palette.
16099 Reported by: Grégoire Sutre.
16101 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
16105 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16107 Pass more appropriate video id to Linux.
16109 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
16110 grub_video_get_driver_id and variable gfxpayloadforcelfb to
16112 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
16113 shift params->lfb_size.
16114 * include/grub/i386/linux.h: Make an enume out of have_vga values.
16116 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16118 * util/grub-menulst2cfg.c: Add missing include of misc.h.
16120 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16122 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
16123 separator and pass bootpath/devid even if only one of them is available.
16124 Reported by: Seth Goldberg.
16126 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16128 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
16129 implementations bug on them.
16131 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
16133 (filter_memory_map): Likewise.
16135 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16137 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
16138 Reported by: nebuchadnezzar.
16140 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16142 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
16143 Reported by: nebuchadnezzar.
16145 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16147 Submenu default support.
16149 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
16150 auto_boot. All users updated.
16152 Handle chosen and default with submenus.
16153 (grub_menu_execute_with_fallback): Declared static.
16154 Don't notify failure if autobooted. Upper level does it.
16155 (menuentry_eq): New function.
16156 (get_entry_number): Use menuentry_eq.
16157 (show_menu): New parameter "autobooted". All users updated.
16158 (grub_show_menu): Likewise.
16159 * include/grub/normal.h (grub_show_menu): Likewise.
16160 * include/grub/menu.h (grub_menu_execute_entry): Removed.
16161 (grub_menu_execute_with_fallback): Likewise.
16163 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16165 * util/grub-mklayout.c (usage): Update help text.
16167 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16169 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
16171 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16173 * util/grub-menulst2cfg.c (main): Trim the line.
16175 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16177 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
16178 (grub_machine_init): Don't check amount of low memory as reportedly
16179 INT 12h can be broken and if low memory is too low we wouldn't have
16180 gotten into grub_machine_init anyway.
16182 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16184 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
16185 (grub_machine_mmap_iterate): Take low memory into account
16187 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16189 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
16191 Reported by: TiCPU.
16193 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16195 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
16198 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
16200 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
16201 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
16203 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
16205 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
16206 openbsd and netbsd types being in part_bsd module.
16208 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16210 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
16211 (_FILE_OFFSET_BITS): Likewise.
16212 Reported by: Seth Goldberg.
16214 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
16216 * configure.ac: Check for libdevmapper header.
16218 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16220 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
16222 (fzap_lookup): Likewise.
16223 (dnode_get): Likewise.
16224 (make_mdn): Likewise.
16225 (zfs_mount): Likewise.
16226 (fzap_iterate): Use temporary pointer to avoid aliasing.
16227 (grub_zfs_read): Likewise.
16228 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
16229 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
16230 pointers to avoid aliasing.
16231 (grub_cmd_xnu_kernel64): Likewise.
16232 (grub_xnu_load_driver): Likewise.
16234 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16236 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
16238 (grub_cmd_terminal_output): Likewise.
16239 Reported and tested by: Grégoire Sutre.
16241 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16243 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
16245 Reported and tested by: Grégoire Sutre.
16247 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16249 * configure.ac: Do CPU substitution even if it's specified explicitly.
16250 Reported and tested by: Alain Greppin.
16252 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16254 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
16255 Reported and tested by: Alain Greppin.
16257 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16259 Satisfy some bison versions need for inttypes.h.
16261 * grub-core/lib/posix_wrap/inttypes.h: New file.
16262 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
16263 (int16_t): Likewise.
16264 (int32_t): Likewise.
16265 (int64_t): Likewise.
16266 Reported and tested by: Alain Greppin.
16268 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16270 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
16271 Silence spurious warning.
16272 Reported and tested by: Alain Greppin.
16274 2011-01-07 Szymon Janc <szymon@janc.net.pl>
16276 * docs/grub.texi (Support automatic decompression): Update with xz
16277 decompression support.
16279 2011-01-07 Szymon Janc <szymon@janc.net.pl>
16281 Improve loaders' kernel command line handling.
16283 * grub-core/lib/cmdline.c: New file.
16284 * include/grub/lib/cmdline.h: Likewise.
16285 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
16286 grub_create_loader_cmdline to create kernel command line.
16287 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
16288 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
16289 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
16290 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
16291 (linux): Add lib/cmdline.c on common.
16293 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
16295 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
16296 inopos might be unaligned.
16298 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
16300 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
16301 endian transformations.
16302 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
16303 Based on report by: Doug Nazar.
16305 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
16307 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
16308 array->members[i].start_sector.
16309 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
16311 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
16313 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
16314 Reported and tested by: Grégoire Sutre.
16316 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
16318 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
16319 avoid causing test failures by clearing the screen.
16321 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
16323 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
16324 Fix prefix check to handle the case where dir ends with a slash
16325 (most significantly, "/" itself).
16326 Reported by: Michael Vogt.
16328 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
16330 Run terminfo_cls on initing terminfo output to clear the screen and
16331 move the cursor to (0,0).
16333 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
16334 Call grub_terminfo_output_init.
16335 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
16336 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
16337 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
16339 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
16341 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
16344 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
16346 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
16349 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
16351 The E820 type 5 is BADRAM, not EXEC_CODE.
16353 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
16354 (GRUB_E820_BADRAM): New define.
16355 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
16356 into reserved. Propagate BADRAM.
16357 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
16358 (GRUB_E820_BADRAM): New define.
16360 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16362 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
16363 Ignore the memory post-4G.
16364 (grub_relocator_firmware_alloc_region): Additional debug statement.
16366 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16368 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
16370 Reported by: David Pravec.
16372 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16374 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
16377 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16379 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
16381 (grub_reed_solomon_recover): Likewise.
16383 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16385 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
16387 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16389 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
16392 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
16394 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
16395 descriptions of extract_legacy_entries_source and
16396 extract_legacy_entries_configfile.
16397 Reported by: Seung Soo, Ha.
16399 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
16401 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
16402 on devices that do not implement function 0.
16404 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
16406 * grub-core/fs/hfsplus.c: Make parent unsigned.
16407 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
16409 (grub_hfsplus_cmp_extkey): Likewise
16411 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
16413 * util/grub-install.in: Correctly use bootloader_id and not
16414 GRUB_DISTRIBUTOR on efibootmgr line.
16416 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
16418 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
16420 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
16422 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
16423 Xen and reorder menu item wording to make it clearer that this entry
16424 will launch Xen. Print separate messages when loading Xen and
16427 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
16429 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
16430 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
16431 loop in case of incorrect amiga partmap.
16433 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
16435 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
16436 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
16439 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
16441 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
16443 Reported by: crocket
16445 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
16447 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
16449 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
16451 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
16453 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
16455 (grub_cmd_xnu_kextdir): Likewise.
16456 (grub_cmd_xnu_splash): Likewise.
16458 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
16460 Avoid using Reed-Solomon with 0 redundancy.
16462 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
16463 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
16465 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
16466 (grub_reed_solomon_recover): Likewise.
16468 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
16470 Don't use disk subsystem in freebsd_boot.
16472 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
16473 (freebsd_biosdev): Likewise.
16474 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
16475 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
16477 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
16479 Handling of files of unknown size is currently limited. They can't be
16480 used e.g. for initrd or modules. Moreover gzip handling of not
16481 easily seekable files is buggy. Disable unknown file size for now. May
16482 be inefficient but works.
16484 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
16485 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
16487 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
16489 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
16492 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
16494 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
16496 2010-12-25 Shea Levy <shlevy>
16498 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
16500 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
16502 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
16503 Windows Server 2008.
16504 Reported by: Devin Giddings.
16506 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
16508 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
16509 writing an error message because of async power management.
16510 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
16511 (grub_reboot): Likewise.
16513 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
16515 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
16516 keep unit tests from failing when they shouldn't.
16518 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
16520 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
16521 previous patch increased the size of the RS code by 20 bytes (at
16522 least with gcc-4.4), so increase this by 20 bytes to match.
16523 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
16525 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
16527 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
16528 scratch area. Make sure to initialise chosen in standalone mode as
16529 well as non-standalone.
16530 Reported by: Robert Hooker and Andy Whitcroft.
16531 Tested by: Andy Whitcroft.
16533 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
16535 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
16536 constructing a new unescaped string and passing it to grub_xputs in
16537 one go, rather than passing characters to grub_printf one at a time.
16539 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
16541 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
16542 initialising utf16.
16544 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
16546 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
16547 comment. Add an extra layer of quotation, requiring the output of
16548 this function to be used in a printf format string.
16549 (gettext_printf): New function.
16550 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
16551 Extract translatable strings from here-documents and use a temporary
16552 variable instead, so that xgettext can find them.
16553 * util/grub.d/10_kfreebsd.in: Likewise.
16554 * util/grub.d/10_linux.in: Likewise.
16555 * util/grub.d/20_linux_xen.in: Likewise.
16557 * po/grub.d.sed: New file.
16558 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
16559 arguments. Set c-format flags on all strings extracted from
16560 util/grub.d/ (xgettext refuses to include these itself for strings
16561 it extracted from a shell file, but these really are c-format).
16563 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
16565 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
16566 Avoid next pointing to nowhere.
16568 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
16570 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
16571 rather than assuming than rootblock is exactly in the middle.
16572 (grub_affs_label): Likewise.
16574 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
16576 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
16577 reserved_first_sector to 0.
16578 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
16579 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
16580 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
16582 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
16584 Fix handling of UTF-16 UDF labels.
16586 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
16587 (read_string): .. here.
16588 (grub_udf_label): Use read_string.
16590 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
16592 * grub-core/normal/menu_entry.c (run): Execute commands from menu
16593 editor under argument scope.
16594 Reported by: Jordan Uggla
16596 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
16598 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
16600 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
16602 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
16603 line, and other keys scroll an entire page (previous handling was
16604 for \r and \n to scroll a page and other keys to scroll two lines).
16606 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
16608 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
16609 Set ptrdest to correct get_physical_target_address rather than
16610 incorrect get_virtual_current_address.
16612 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
16614 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
16615 correct cat to grub_uint8_t * rather than grub_uint32_t *.
16617 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
16619 * .bzrignore: Ignore grub-core/rs_decoder.S.
16621 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
16623 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
16624 .mo/.mo.gz opening sequence to ...
16625 (grub_mofile_open_lang): ... here.
16626 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
16627 * util/grub.d/00_header.in (grub_lang): Include country part of
16629 Reported by: Mario Limonciello.
16631 2010-12-09 Robert Millan <rmh@gnu.org>
16633 * NEWS: Document addition of ZFS support.
16635 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
16637 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
16638 rather than `/ 2', as the latter requires -Wa,--divide which would
16639 require bumping our minimum binutils version.
16641 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
16643 * util/grub-script-check.c (main): Print script line number on
16646 2010-12-01 Robert Millan <rmh@gnu.org>
16648 * grub-core/fs/zfs/zfs.c: New file.
16649 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
16650 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
16651 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
16652 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16654 * include/grub/zfs/dmu.h: Likewise.
16655 * include/grub/zfs/dmu_objset.h: Likewise.
16656 * include/grub/zfs/dnode.h: Likewise.
16657 * include/grub/zfs/dsl_dataset.h: Likewise.
16658 * include/grub/zfs/dsl_dir.h: Likewise.
16659 * include/grub/zfs/sa_impl.h: Likewise.
16660 * include/grub/zfs/spa.h: Likewise.
16661 * include/grub/zfs/uberblock_impl.h: Likewise.
16662 * include/grub/zfs/vdev_impl.h: Likewise.
16663 * include/grub/zfs/zap_impl.h: Likewise.
16664 * include/grub/zfs/zap_leaf.h: Likewise.
16665 * include/grub/zfs/zfs.h: Likewise.
16666 * include/grub/zfs/zfs_acl.h: Likewise.
16667 * include/grub/zfs/zfs_znode.h: Likewise.
16668 * include/grub/zfs/zil.h: Likewise.
16669 * include/grub/zfs/zio.h: Likewise.
16670 * include/grub/zfs/zio_checksum.h: Likewise.
16672 * Makefile.util.def: Build ZFS into libgrubmods.
16673 * grub-core/Makefile.core.def: Build zfs.mod.
16675 2010-11-30 Szymon Janc <szymon@janc.net.pl>
16677 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
16679 * grub-core/commands/wildcard.c (match_files): Likewise.
16681 2010-11-30 Robert Millan <rmh@gnu.org>
16683 * grub-core/loader/i386/bsd.c
16684 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
16685 whether kernel is loaded using grub_loader_is_loaded(), rather
16686 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
16687 certain error conditions.
16689 2010-11-30 Robert Millan <rmh@gnu.org>
16691 * grub-core/commands/echo.c: Include `<grub/term.h>'.
16692 (grub_cmd_echo): Call grub_refresh() after printing a message.
16694 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
16696 Avoid using tricks for initialising endian variables.
16698 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
16700 (GRUB_MOD_INIT): Don't byte-swap.
16701 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
16702 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
16703 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
16704 (grub_swap_bytes32_compile_time): Likewise.
16705 (grub_cpu_to_le32_compile_time): Likewise.
16706 (grub_cpu_to_le16_compile_time): Likewise.
16708 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
16710 * util/grub-setup.c (setup): Stop recommending --force. People who
16711 understand the dangers of blocklists are able to find this option
16712 anyway and the ones who don't shouldn't use it anyway.
16714 2010-11-26 Robert Millan <rmh@gnu.org>
16716 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
16719 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
16721 Fix LVM-on-RAID probing.
16723 * util/grub-probe.c (probe): Remember which disk was detected as
16724 RAID (perhaps an LVM physical volume). Use that disk's raidname
16725 rather than that of the top-level disk.
16727 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
16729 Fix cmdline argument quotes for setparams command of menuentry
16732 * grub-core/commands/menuentry.c (setparams_prefix): Use single
16733 quotes for arguments.
16734 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
16735 grub_strchrsub function instead.
16737 * include/grub/misc.h (grub_strchrsub): New function.
16739 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
16741 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
16742 effort by skipping "." and ".." entries up-front.
16743 Suggested by: Michael Lazarev.
16745 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
16747 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
16748 ldflags to ldadd, to fix link line ordering.
16749 (none_decompress): Likewise.
16751 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
16753 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
16755 (grub-emu-lite): Remove kern/emu/cache.S.
16757 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
16759 * util/deviceiter.c (compare_devices): If the by-id link for a
16760 device couldn't be resolved, fall back to sorting by the by-id link
16761 rather than segfaulting.
16762 Reported and tested by: Daniel Mierswa.
16764 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
16766 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
16767 ldflags, to fix link line ordering.
16769 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
16771 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
16772 linkers are picky about this.
16774 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
16776 * grub-core/Makefile.am (command.lst): Adjust sed expression
16777 ordering so that extended and priority commands aren't treated as
16780 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
16782 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
16783 Remove byte-swapping function calls, which are not valid in
16784 structure initialisers.
16785 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
16787 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
16788 grub_gpt_partition_type_bios_boot.
16790 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
16792 Fix test program build on GNU/kFreeBSD.
16794 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
16795 $(LIBNVPAIR)' library dependencies.
16797 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
16799 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
16801 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
16803 * util/grub-install.in: Remove excessive quoting that broke
16804 installations to RAID devices.
16806 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
16808 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
16809 bootloader version instead of 0.
16811 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
16813 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
16816 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
16818 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
16819 retrieve the metadat sector if size isn't known.
16820 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
16822 2010-11-18 Robert Millan <rmh@gnu.org>
16824 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
16825 with grub_memcmp().
16827 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
16829 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
16831 Reported by: Jordan Uggla.
16833 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16835 Make better UTF compliant.
16837 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
16838 sequences as incorrect.
16839 (grub_is_valid_utf8): Likewise.
16840 (grub_utf8_to_ucs4): Likewise.
16841 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
16842 (grub_ucs4_to_utf8_alloc): Likewise.
16843 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
16845 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16847 Make legacy_source behave like source.
16849 * grub-core/commands/legacycfg.c (legacy_file): Don't call
16851 (grub_cmd_legacy_source): Call grub_show_menu if needed.
16853 2010-11-16 Colin Watson <cjwatson@debian.org>
16855 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
16856 (-Wunused implies -Wunused-parameter, but not vice versa).
16858 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
16860 * configure.ac: Make error messages less confusing by testing for
16861 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
16862 accepted, but produces a diagnostic if something else is wrong).
16864 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
16866 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
16867 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
16869 (grub_keyboard_controller_init)
16870 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
16871 read the initial state since controller isn't inited yet.
16873 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
16875 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
16876 allocate_regbeg may need to create new chunk header.
16878 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16880 Fix quoting in legacy parser.
16882 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
16884 (grub_legacy_parse): Likewise.
16885 Reported by: Jordan Uggla.
16886 Tested by: Jordan Uggla.
16888 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16890 Don't add -lgcc on i386 and x86_64.
16892 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
16893 * conf/Makefile.common (LDADD_KERNEL): Likewise.
16894 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
16896 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16898 * configure.ac: Add -Wno-trampolines when supported.
16900 2010-11-14 Modestas Vainius <modax@debian.org>
16902 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
16905 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
16907 Add generic logical block size support for UDF.
16909 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
16910 (GRUB_UDF_BLKSZ): Removed.
16911 (struct grub_udf_data): New field "lbshift" to hold the logical block
16912 size of the file system in log2 format. All users updated.
16913 (sblocklist): Change type to unsigned.
16914 (grub_udf_mount): Change type of "sblklist" to unsigned.
16915 Move AVDP search before VRS recognition, because the latter requires
16916 knowledge of the logical block size, which is detected during the
16918 Detect and validate logical block size during AVDP search, adding
16919 support for block sizes 512, 1024 and 4096.
16920 Make VRS recognition independent of block size.
16922 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
16924 Properly handle deleted files on UDF.
16926 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
16927 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
16930 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
16932 Support reading files larger than 2 GiB.
16934 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
16935 "offset" to grub_off_t.
16936 (grub_udf_read_file): Likewise for parameter "pos".
16938 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16940 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
16942 (Simple configuration): Refer to Changes from GRUB Legacy about
16943 save_env availability.
16945 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16947 * util/grub-install.in: Ignore empty partition table detection
16948 instead of trying to include part_ module.
16950 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16952 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
16953 LVM on RAID support.
16955 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16957 Properly define WORDS_BIGENDIAN in wrapped environments.
16959 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
16961 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
16963 Reported by: Manoel Rebelo Abranches.
16964 Tested by: Manoel Rebelo Abranches.
16966 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16968 * util/grub-mkconfig.in: Fix quoting.
16970 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16972 Support big ext2 files.
16974 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
16975 (grub_ext2_read_block): Support triple indirect blocks.
16976 (grub_ext2_read_file): Use 64-bit types and read size_high.
16977 (grub_ext2_open): Read size_high.
16978 Reported by: Ximin Luo.
16979 Tested by: Manoel Rebelo Abranches.
16981 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16983 * util/grub-install.in: Handle filenames containing spaces.
16984 Reported by: Jordan Uggla.
16985 Tested by: Jordan Uggla.
16987 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16989 * util/grub-mkconfig.in (grub_script_check): New variable.
16990 Use grub_script_check instead of grub-script-check.
16991 Reported by: Barry Jackson.
16993 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16995 * docs/grub.texi (menu): Correct the order.
16996 Reported by: D. Hugh Redelmeier.
16998 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
17000 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
17003 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
17005 * include/grub/elfload.h (grub_elf32_size): New parameter.
17007 Return maximum segments alignment.
17008 (grub_elf64_size): Likewise.
17009 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
17010 Return maximum segments alignment.
17011 (grub_elf64_size): Likewise.
17012 * grub-core/loader/powerpc/ieee1275/linux.c:
17013 (grub_linux_claimmap_iterate): New function. Uses the
17014 "available" property in the "memory" node for memory allocation
17015 for kernel in the PowerPC loader.
17016 (grub_linux_load32): Correctly find linux entry point offset.
17017 (grub_linux_load64): Likewise.
17019 2010-11-07 Robert Millan <rmh@gnu.org>
17021 On mips-yeeloong, build with -march=loongson2f when this flag is
17022 available (GCC >= 4.4).
17023 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
17025 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
17026 or otherwise add -march=mips3.
17028 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
17030 Suppress shell expansion on echo '*' and echo "*" like cases.
17031 Reported by: Jordan Uggla.
17033 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
17034 string arguments before shell expansion.
17035 * tests/grub_cmd_echo.in: New testcases.
17037 2010-11-07 Robert Millan <rmh@gnu.org>
17039 * conf/mips-qemu-mips.rmk: Remove stale file from previous
17042 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
17044 * grub-core/kern/emu/hostdisk.c
17045 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
17047 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
17049 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
17050 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
17051 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
17053 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
17055 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
17057 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
17059 * util/grub-install.in: Replace useless recomendation to pass
17060 --modules with a recomendation to report a bug.
17062 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
17064 Properly register serial terminfo.
17065 Reported by: Jordan Uggla
17067 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
17069 (grub_serial_terminfo_output_template): Likewise.
17070 (grub_cmd_serial): Register "serial" with terminfo.
17071 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
17072 grub_serial_terminfo_output.
17074 2010-11-05 Robert Millan <rmh@gnu.org>
17076 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
17079 2010-11-05 Robert Millan <rmh@gnu.org>
17081 On Yeeloong, pass machine type information to Linux.
17083 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
17084 (LOONGSON_MACHTYPE): New macro, set to
17085 "machtype=lemote-yeeloong-2f-8.9inches".
17086 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
17087 additional argument to Linux.
17089 2010-11-04 Robert Millan <rmh@gnu.org>
17091 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
17092 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
17093 (its SATA disks are detected as slaveless IDE master drives on
17095 Reported by Carsten Aulbert.
17097 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
17099 * util/bin2h.c (main): Fix spelling error in generated output.
17101 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
17103 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
17105 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17107 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
17108 vga= option is supplied.
17110 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17112 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
17113 * util/grub.d/10_kfreebsd.in: Likewise.
17114 * util/grub.d/10_linux.in: Likewise.
17115 * util/grub.d/20_linux_xen.in: Likewise.
17117 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17119 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
17120 argument as an argument to no-argument option.
17122 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17124 * util/grub.d/10_linux.in: Add missing load_video with explicit
17125 GRUB_GFXPAYLOAD_LINUX.
17127 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17129 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
17131 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17133 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
17134 elements with invlid index.
17135 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
17136 * grub-core/disk/raid.c (insert_array): Automatically reallocate
17138 * include/grub/raid.h (grub_raid_member): New struct.
17139 (grub_raid_array): Transform devices and start_sector into usage of
17140 grub_raid_member. All users updated
17141 (allocated_devs): New member.
17143 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17145 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
17148 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
17150 NetBSD build fix for getline function conflict from gnulib.
17152 * Makefile.util.def (libgrubkern.a): New library for grub kernel
17153 components that depend on gnulib headers.
17154 (libgrubmods.a): Renamed from earlier libgrub.a.
17155 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
17157 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17159 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
17160 install rather than creating a broken install.
17162 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17164 * util/grub-setup.c (argp): Remove misleading example of installing to
17167 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17169 * util/grub-setup.c (setup): Clarify the error message.
17171 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17173 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
17175 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17177 * grub-core/kern/emu/misc.c
17178 (grub_make_system_path_relative_to_its_root)
17179 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
17181 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17183 * grub-core/kern/emu/misc.c
17184 (grub_make_system_path_relative_to_its_root): Revert r2882.
17186 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
17188 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
17189 useless field head. All users updated.
17190 (free_subchunk): Correct handling of IN_REGION subchunk.
17192 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
17194 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
17195 (Supported kernels): Likewise.
17197 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
17199 Make mktemp invocations portable.
17201 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
17202 exit if mktemp fails.
17203 * tests/grub_script_blockarg.in: Likewise.
17204 * tests/partmap_test.in: Likewise.
17205 * tests/util/grub-shell-tester.in: Likewise.
17206 * tests/util/grub-shell.in: Likewise.
17207 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
17208 * Makefile.am: Likewise, and chain shell commands with `&&'
17210 * util/grub-mkrescue.in: Use the same explicit template as above, and
17211 exit if mktemp fails.
17213 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
17215 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
17216 Linux kernel, reported by Dennis Schridde.
17218 2010-10-17 Szymon Janc <szymon@janc.net.pl>
17220 * grub-core/normal/auth.c (grub_auth_check_authentication):
17221 Set-but-not-used variable removed.
17223 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17225 * docs/grub.texi (GNU/Linux): Document APM unavailability with
17226 32-bit linux protocol.
17228 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17230 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
17231 cursor shape for sanity.
17233 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17235 * docs/grub.texi (Installation): Document buggy BIOS install.
17237 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17239 * docs/grub.texi (Installation): Indent.
17241 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17243 * util/grub-setup.c (setup): New parameter allow_floppy.
17244 (arguments): New member allow_floppy.
17245 (argp_parser): Handle --allow-floppy.
17246 (main): Pass allow_floppy.
17247 * util/grub-install.in: New option --allow-floppy passed though to
17250 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17252 * util/grub-install.in: Handle partitionless disks.
17254 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17256 * util/grub-setup.c (setup): Don't clean blocklists before readability
17259 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17261 * docs/grub.texi (Installation): Document embedding zone. Remove
17262 obsolete grub-install example.
17264 2010-10-16 Szymon Janc <szymon@janc.net.pl>
17266 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
17267 Set-but-not-used variable ifdef'ed.
17268 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
17269 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
17271 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
17272 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
17273 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
17274 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
17275 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
17276 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
17277 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
17278 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
17279 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
17280 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
17281 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
17284 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17286 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
17287 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
17290 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17292 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
17293 synonym to _S5_. Needed for some DSDTs.
17295 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17297 Userspace ACPI parser debugging.
17299 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
17300 headers and add relevant defines. Don't include standard headers.
17301 (main) [GRUB_DSDT_TEST]: New function.
17302 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
17303 Don't declare functions.
17305 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17307 Remove dead grub_efi_mm_fini.
17309 * grub-core/kern/efi/mm.c (allocated_page): Removed.
17310 (ALLOCATED_PAGES_SIZE): Likewise.
17311 (MAX_ALLOCATED_PAGES): Likewise.
17312 (allocated_pages): Likewise.
17313 (grub_efi_allocate_pages): Don't record allocated pages.
17314 (grub_efi_free_pages): Likewise.
17315 (grub_efi_mm_init): Likewise.
17316 (grub_efi_mm_fini): Removed.
17318 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17320 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
17321 (grub_efi_mm_init): Take into account the memory map size increase.
17323 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17325 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
17326 (serial_hw_put): Wait based on real time rather than port reads. Don't
17328 * include/grub/serial.h (grub_serial_port): New field broken.
17330 2010-10-16 Robert Millan <rmh@gnu.org>
17332 * grub-core/kern/emu/misc.c
17333 (grub_make_system_path_relative_to_its_root): Fix premature return
17334 when processing non-root ZFS filesystems.
17335 Reported by Sergio Talens-Oliag.
17337 2010-10-15 Robert Millan <rmh@gnu.org>
17339 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
17340 guarantee compressed ones are processed first.
17342 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17344 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
17345 grub_efiemu_autocore.
17347 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17349 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
17351 (grub_console_getkey): Use correct jae opcode rather than ja.
17353 2010-10-12 Robert Millan <rmh@gnu.org>
17355 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
17356 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
17357 variable. All references updated.
17359 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
17361 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
17363 Correctly distinguish mdraid flavours.
17365 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
17366 (insert_array): New argument raid.
17367 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
17368 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
17369 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
17371 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
17373 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
17374 handling of special keys.
17376 2010-10-02 Aleš Nesrsta <starous@volny.cz>
17378 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
17379 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
17381 2010-10-02 Aleš Nesrsta <starous@volny.cz>
17383 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
17384 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
17386 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
17387 Use right endpoint when querying descriptor.
17389 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
17391 Clear out 0x80 color bit on EFI.
17393 Reported by: decoder and meta tech.
17395 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
17396 (grub_console_setcolorstate): Clear out 0x80 bit.
17397 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
17398 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
17399 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
17401 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
17403 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
17406 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17408 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
17409 mo_file after freeing.
17411 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17413 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
17415 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17417 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
17420 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17422 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
17425 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17427 Put terminfo into core on ieee1275 and yeeloong (needed for console).
17429 * gentpl.py: New groups terminfoinkernel and terminfomodule.
17430 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
17431 and terminfo.h when needed.
17432 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
17433 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
17434 (terminfo): Enable only on terminfokernel.
17435 (extcmd): Likewise.
17436 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
17437 * include/grub/lib/arg.h: Likewise.
17438 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
17439 incorrect usage of ->.
17441 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17443 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
17444 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
17446 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17448 Fix coreboot compilation.
17450 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
17451 Take VBE info into account even if only text is supported.
17452 (fill_vbe_info): Take into account the case when only VGA text
17454 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
17455 on coreboot, multiboot and qemu.
17457 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17459 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
17461 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
17463 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17465 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
17468 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17470 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
17471 if they were BSD-style.
17473 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17475 * grub-core/boot/i386/pc/lnxboot.S: Replace
17476 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
17477 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
17479 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17481 Write embedding zone using Reed-Solomon.
17483 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
17484 * grub-core/Makefile.am (rs_decoder.S): New target.
17485 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
17486 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
17487 (multiboot): Move to RS part.
17488 (post_reed_solomon): New label.
17489 (grub_boot_drive): Move to non-RS part since it's modified in memory
17491 Include rs_decoder.S.
17492 * grub-core/lib/reed_solomon.c: New file.
17493 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
17495 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
17496 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
17497 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
17498 * include/grub/partition.h (grub_partition_map): Change prototype of
17499 embed to allow returning additional sectors.
17500 * include/grub/reed_solomon.h: New file.
17501 * util/grub-setup.c (setup): Handle Reed-Solomon.
17503 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
17505 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
17506 i386 and x86-64 definedness tests.
17508 2010-09-27 Yves Blusseau <blusseau@zetam.org>
17510 Fix generation of kernel_syms.lst
17512 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
17515 2010-09-26 Robert Millan <rmh@gnu.org>
17517 Support degraded ZFS arrays in "grub-probe -t device" resolution.
17519 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
17520 the pool is an array of devices, iterate through it and return the
17521 first device that passes a stat() test (instead of blindly returning
17524 2010-09-26 Robert Millan <rmh@gnu.org>
17526 Build fixes for GNU/kFreeBSD.
17528 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
17529 to programs that require ZFS conversion.
17530 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
17531 kernels that don't have FLOPPY_MAJOR.
17533 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
17535 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
17537 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
17539 Fix grub-emu build.
17541 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
17542 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
17543 mdraid09 and mdraid1x.
17545 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
17547 Re-enable grub-extras.
17549 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
17550 avoid confusing Automake. Run autogen only twice, once for the top
17551 level and once for grub-core. Add Makefile.util.def and
17552 Makefile.core.def from extra modules to the appropriate autogen
17553 invocations. If Makefile.common exists in an extra module, include
17554 it in both Makefile.util.am and grub-core/Makefile.core.am;
17555 similarly, include any Makefile.util.common file in Makefile.util.am
17556 and any Makefile.core.common file in grub-core/Makefile.core.am.
17557 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
17558 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
17559 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
17560 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
17562 * gentpl.py (gvar_add): Turn GVARS into a set.
17563 (global_variable_initializers): Sort global variables on output.
17564 (vars_init): New function.
17565 (first_time): Likewise.
17566 (library): Ensure that non-global variable initialisations are
17567 emitted before the first time we emit code for a library block.
17568 Append to variables rather than setting them. Only emit
17569 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
17570 each conditional path.
17571 (program): installdir() emits an Autogen macro, so must be passed to
17572 var_add rather than gvar_add.
17574 (script): Likewise.
17575 (rules): New function, centralising handling for different target
17576 types. Set up Guile association lists for first_time and vars_init,
17577 and send most output to a diversion so that variable initialisations
17578 can be emitted first.
17579 (module_rules): Use new rules function.
17580 (kernel_rules): Likewise.
17581 (image_rules): Likewise.
17582 (library_rules): Likewise.
17583 (program_rules): Likewise.
17584 (script_rules): Likewise.
17585 (data_rules): Likewise.
17587 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
17589 * .bzrignore: Add contrib and grub-core/contrib. Remove
17590 grub-core/Makefile.gcry.am.
17592 2010-09-24 Yves Blusseau <blusseau@zetam.org>
17594 * grub-core/lib/LzFind.c: Add missing include.
17595 * grub-core/lib/LzmaEnc.c: Likewise.
17596 * grub-core/script/lexer.c: Likewise.
17597 * grub-core/script/yylex.l: Likewise.
17598 * util/grub-macho2img.c: Likewise.
17599 * util/grub-menulst2cfg.c: Likewise.
17600 * util/grub-mklayout.c: Likewise.
17601 * util/grub-mkpasswd-pbkdf2.c
17602 * util/grub-mkrelpath.c: Likewise.
17603 * util/resolve.c: Likewise.
17605 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
17607 * Makefile.util.def (example_unit_test): Add
17608 grub-core/gnulib/libgnu.a.
17610 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
17612 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
17614 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
17616 Support xz compression on yeeloong.
17618 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
17619 * configure.ac: Check for LZMA.
17620 * grub-core/Makefile.core.def (xz_decompress): New target.
17621 (none_decompress): Likewise.
17622 * grub-core/boot/decompressor/minilib.c: New file.
17623 * grub-core/boot/decompressor/none.c: Likewise.
17624 * grub-core/boot/decompressor/xz.c: Likewise.
17625 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
17626 * grub-core/kern/mips/cache_flush.S: Likewise.
17627 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
17628 * grub-core/kern/mips/startup.S: Move first stage to ...
17629 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
17631 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
17632 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
17633 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
17634 Allocate statically.
17635 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
17636 Allocate statically or use scratch. Don't check CRC32.
17637 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
17638 Allocate statically. Don't check CRC32.
17639 * include/grub/decompressor.h: New file.
17640 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
17642 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
17643 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
17644 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
17645 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
17646 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
17647 * util/grub-mkimage.c (grub_compression_t): New type.
17648 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
17649 (image_target_desc): New field default_compression.
17650 (image_targets): Adjust yeeloong targets.
17651 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
17652 (compress_kernel): New parameter comp.
17653 (generate_image): Likewise. Handle new compression case.
17654 (options): New option --compression
17656 (main): Handle new option.
17658 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
17660 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
17662 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
17664 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
17665 typo in __i386__ conditional.
17667 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
17669 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
17672 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
17674 Implement EFI and ACPI multiboot2 extensions.
17676 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
17677 new tags as supported.
17678 (acpiv2_size): New function.
17679 (grub_multiboot_get_mbi_size): Take new tags into account.
17680 (grub_multiboot_make_mbi): Add new tags.
17681 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
17683 2010-09-21 Aleš Nesrsta <starous@volny.cz>
17685 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
17686 Added missing configuration of USB device.
17688 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17690 * grub-core/normal/menu_entry.c (run): Make sure we always return
17693 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17695 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
17696 NumberOfPages is UINT64 according to the UEFI specification, not
17697 UINTN. Fix printf format.
17699 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17701 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
17702 `err' to grub_usb_err_t.
17703 Reported and tested by: KESHAV P.R.
17705 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17707 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
17708 tpart non-const, so that we can assign to it. (Since this is a
17709 typedef, the constness refers to the pointer rather than what it
17712 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17714 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
17715 $(top_srcdir)/grub-core/gnulib as well as
17716 $(top_builddir)/grub-core/gnulib.
17717 Reported by: KESHAV P.R.
17719 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17721 * util/grub-install.in: Fix the bootloader ID option to be
17722 consistently --bootloader-id, not --bootloader_id.
17723 Reported by: KESHAV P.R.
17725 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17727 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
17728 check hash checksum." consistently translatable.
17730 2010-09-21 Yves Blusseau <blusseau@zetam.org>
17732 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
17735 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17737 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
17738 (GRUB_MOD_INIT): Register sha1sum command.
17739 (GRUB_MOD_FINI): Unregister sha1sum command.
17741 2010-09-21 Yves Blusseau <blusseau@zetam.org>
17743 Keep boot and grub directory names in sync with utils scripts
17745 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
17746 * config.h.in: Add previous macros.
17747 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
17748 * util/grub-install.in: Use $bootdir and $grubdir variables.
17750 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17752 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
17753 convert partition names to disk names if the new `convert' parameter
17755 (grub_util_biosdisk_get_grub_dev): If opening the disk device
17756 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
17757 disk in its own right. This can happen with Xen disk images.
17759 2010-09-21 Yves Blusseau <blusseau@zetam.org>
17761 * util/grub-editenv.c: Update strings to avoid warnings when generating
17763 * util/grub-setup.c: Likewise.
17765 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
17767 * configure.ac: Change version to 1.99~beta0.
17769 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
17771 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
17773 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
17775 * include/multiboot.h: Resynced with specification.
17776 * include/multiboot2.h: Likewise.
17778 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17780 Fix po directory handling.
17782 * configure.ac: Create po/Makefile.in rather than po/Makefile.
17783 * grub-core/gnulib/Makefile.am: Import gettext module.
17784 * m4/gnulib-cache.m4: Likewise.
17785 * m4/gnulib-comp.m4: Likewise.
17786 * m4/gettext.m4: New file, from gnulib.
17787 * m4/glibc2.m4: Likewise.
17788 * m4/iconv.m4: Likewise.
17789 * m4/intdiv0.m4: Likewise.
17790 * m4/intl.m4: Likewise.
17791 * m4/intldir.m4: Likewise.
17792 * m4/intlmacosx.m4: Likewise.
17793 * m4/intmax.m4: Likewise.
17794 * m4/inttypes-pri.m4: Likewise.
17795 * m4/lcmessage.m4: Likewise.
17796 * m4/lib-ld.m4: Likewise.
17797 * m4/lib-link.m4: Likewise.
17798 * m4/lib-prefix.m4: Likewise.
17799 * m4/lock.m4: Likewise.
17800 * m4/nls.m4: Likewise.
17801 * m4/po.m4: Likewise.
17802 * m4/printf-posix.m4: Likewise.
17803 * m4/progtest.m4: Likewise.
17804 * m4/threadlib.m4: Likewise.
17805 * m4/uintmax_t.m4: Likewise.
17806 * m4/visibility.m4: Likewise.
17807 * po/Makefile.am: Remove.
17808 * po/Makefile.in.in: New file, from gettext.
17809 ($(DOMAIN).pot-update): Support POTFILES-shell.
17810 * po/Makevars: New file.
17811 * po/POTFILES-shell: Rename to ...
17812 * po/POTFILES-shell.in: ... this. Update.
17813 * po/POTFILES: Rename to ...
17814 * po/POTFILES.in: ... this. Update.
17815 * po/Rules-quot: New file, from gettext.
17816 * po/boldquot.sed: Likewise.
17817 * po/en@boldquot.header: Likewise.
17818 * po/en@quot.header: Likewise.
17819 * po/insert-header.sin: Likewise.
17820 * po/quot.sed: Likewise.
17821 * po/remove-potcdate.sin: Likewise.
17823 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17825 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
17827 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17829 * util/grub.d/20_linux_xen.in: Use submenus.
17831 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17835 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
17836 parameter submenu. All users updated.
17837 * grub-core/normal/main.c (free_menu): Rename to ...
17838 (grub_normal_free_menu): ... this. Made global.
17839 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
17841 * grub-core/normal/menu_entry.c (screen): New field submenu.
17842 (make_screen): Set submenu.
17843 (run): Open new context if requested.
17844 * include/grub/menu.h (grub_menu_entry): New field submenu.
17845 * include/grub/normal.h (grub_normal_free_menu): New proto.
17847 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17849 Menu entries extractor.
17851 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
17853 (GRUB_MOD_INIT): Register new variants.
17854 (GRUB_MOD_FINI): Unregister new variants.
17855 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
17856 into grub_cmd_legacy_source.
17857 (grub_cmd_legacy_source): Implement extractor variants.
17858 (GRUB_MOD_INIT): Register new variants.
17859 (GRUB_MOD_FINI): Unregister new variants.
17860 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
17862 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
17863 search as an extractor.
17864 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
17865 test as an extractor.
17866 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
17868 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
17869 (grub_env_new_context): New function.
17870 (grub_env_context_open): Likewise.
17871 (grub_env_extractor_open): Likewise.
17872 (grub_env_extractor_close): Likewise.
17873 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
17874 grub_extractor_level.
17875 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
17876 * include/grub/env.h (grub_env_extractor_open): New proto.
17877 (grub_env_extractor_close): Likewise.
17878 * include/grub/normal.h (grub_extractor_level): New external variable.
17880 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17882 Make cutmem accept a region specification.
17883 Suggested by: Samuel Thibault
17885 * grub-core/mmap/mmap.c (parsemem): New function.
17886 (grub_cmd_cutmem): Handle new arguments.
17888 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17890 New command cutmem.
17892 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
17893 (GRUB_MOD_INIT): Register new command.
17894 (GRUB_MOD_FINI): Unregister new command.
17896 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17898 Support some annoying BSD and Minix subpartitions.
17900 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
17901 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
17902 Properly handle concatenation.
17903 * grub-core/kern/device.c (grub_device_iterate): Likewise.
17904 * grub-core/normal/completion.c (iterate_partition): Likewise.
17905 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
17906 contain partition. All users updated.
17907 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
17909 (grub_openbsdlabel_partition_map): Likewise.
17910 (bsdlabel_partition_map_iterate): Rename to ..
17911 (iterate_real): ... this. New arguments sector, freebsd and pmap.
17912 (bsdlabel_partition_map_iterate): New function.
17913 (netopenbsdlabel_partition_map_iterate): Likewise.
17914 (netbsdlabel_partition_map_iterate): Likewise.
17915 (openbsdlabel_partition_map_iterate): Likewise.
17916 (GRUB_MOD_INIT): Register new partmaps.
17917 (GRUB_MOD_FINI): Unregister new partmaps.
17918 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
17919 (grub_partition_msdos_iterate): ... this. All users updated.
17920 Don't support embedding other than in a minix partition.
17921 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
17923 * include/grub/partition.h (grub_partition): New field msdostype.
17924 * util/grub-install.in: Handle openbsd and netbsd types being in
17927 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17929 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
17931 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
17932 * grub-core/Makefile.core.def (mdraid): Renamed to ...
17933 (mdraid09): ... this.
17934 (mdraid1x): New module.
17935 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
17936 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
17938 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17940 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
17943 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
17945 * grub-core/commands/efi/lsefimmap.c: Correct header.
17948 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
17950 * util/grub-editenv.c (argp_parser): Don't pass translated strings
17951 as printf format strings; the translations might contain '%' which
17952 could cause a crash.
17954 * util/grub-fstest.c (argp_parser): Likewise.
17955 * util/grub-setup.c (argp_parser): Likewise.
17958 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17960 Use argp in grub-fstest.
17962 * util/grub-fstest.c: Don't include getopt.h.
17964 (root): New variable.
17965 (args_count): Likewise.
17967 (num_disks): Likewise.
17968 (images): Likewise.
17970 (debug_str): Likewise.
17972 (options): Transformed to argp.
17974 (main): Split argument parsing into ...
17975 (argp_parser): ... this. Changed to argp format.
17976 (argp): New variable.
17977 (main): Use argp_parse.
17979 2010-09-20 Tristan Gingold <gingold@free.fr>
17980 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
17981 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17983 * grub-core/commands/efi/lsefimmap.c: New file.
17984 * grub-core/Makefile.core.def (lsefimmap): New module.
17985 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
17987 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17989 Pause the execution (10s max) if any errors are displayed so the user
17990 has a chance to see them.
17992 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
17993 (grub_print_error): Increment grub_err_printed_errors.
17994 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
17995 execution if any errors were displayed.
17996 (show_menu): Remove old code for pause.
17997 * grub-core/normal/menu_entry.c (run): Likewise.
17998 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
18000 (grub_normal_get_char_counter): Likewise.
18001 * include/grub/err.h (grub_err_printed_errors): New external variable.
18002 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
18004 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18006 Support multiboot VBE info.
18008 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18009 Take VBE info into account.
18010 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
18011 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
18012 Call fill_vbe_info when appropriate.
18013 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
18014 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
18016 (grub_multiboot_get_mbi_size): Take new tags into account.
18017 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
18018 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
18019 Call fill_vbe_tag when appropriate.
18020 (grub_multiboot_make_mbi): Properly align tags.
18021 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
18023 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
18025 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
18027 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18029 Suport manual terminal geometry specification.
18031 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
18032 Save state in grub_ofconsole_terminfo_output.
18033 (grub_ofconsole_term): Use grub_terminfo_getwh.
18034 (grub_ofconsole_getwh): Removed.
18035 * grub-core/term/serial.c (grub_serial_getwh): Removed.
18036 (grub_serial_term): Use grub_terminfo_getwh.
18037 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
18038 (options): New struct.
18039 (OPTION_*): New enum.
18040 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
18041 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
18043 (grub_terminfo_getwh): New proto.
18044 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
18046 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18048 Handle legacy "terminal" command.
18050 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
18052 (legacy_commands): Add terminal and title.
18053 (grub_legacy_parse): Handle terminal. Simplify title handling.
18055 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18057 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
18058 parameters overflow.
18060 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18062 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
18065 * docs/grub.texi (Shell-like scripting): Document `!'.
18066 (Network): Simplify using new i386-pc-pxe format. Mention
18071 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18073 * Makefile.am (SUBDIRS): Restore "."; it's important to force
18074 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
18077 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18079 * grub-core/commands/efi/lsefisystab.c: Correct header.
18080 * grub-core/commands/efi/lssal.c: Likewise.
18081 * grub-core/commands/testload.c: Likewise.
18083 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18085 * util/grub-mkrescue.in: Add explicit root argument to --set to
18086 prevent the UUID being interpreted as an argument to --set (matches
18087 previous change to prepare_grub_to_access_device).
18089 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18091 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
18092 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
18093 the verbosity of later #ifs.
18094 (find_partition_start): Define this function on FreeBSD too.
18095 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
18097 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
18100 2010-09-20 Yves Blusseau <blusseau@zetam.org>
18102 * util/grub-editenv.c: Use argp instead of getopt.
18104 2010-09-20 Yves Blusseau <blusseau@zetam.org>
18106 * util/grub-setup.c: Use argp instead of getopt.
18108 2010-09-20 Yves Blusseau <blusseau@zetam.org>
18110 Use gnulib-tool to create gnulib source files.
18112 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
18113 grub-core/gnulib directories
18114 * .bzignore: Add **/.deps and autogenerated gnulib files
18115 * configure.ac: Assign auxiliary directory to build-aux, add invocation
18116 of gnulib macros, add grub-core/gnulib/Makefile
18117 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
18118 include m4 directory to aclocal.
18119 * Makefile.util.def: Remove direct compilation of gnulib source files
18120 and use the new grub-core/gnulib/libgnu.a.
18121 * build-aux/config.rpath: move config.rpath from top directory to
18123 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
18125 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
18126 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
18127 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
18129 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
18132 2010-09-20 Yves Blusseau <blusseau@zetam.org>
18134 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
18135 grub-core/genmod.sh and grub-core/gensyminfo.sh
18137 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
18139 Add a test for echo command options.
18141 * tests/grub_cmd_echo.in: New test.
18142 * Makefile.util.def: Rules for new test.
18144 2010-09-20 Szymon Janc <szymon@janc.net.pl>
18146 Remove crc.mod and move crc command to hashsum.mod.
18147 Remove lib/crc.c - users updated to use gcrypt implementation.
18149 * grub-core/commands/crc.c: Removed.
18150 * grub-core/Makefile.core.def (crc): Module removed.
18151 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
18152 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
18153 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
18154 * grub-core/lib/crc.c: Removed.
18155 * include/grub/lib/crc.h: Removed.
18156 * Makefile.util.def (crc): Remove lib/crc.c
18157 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
18158 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
18159 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
18160 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
18161 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
18162 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
18164 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18166 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
18168 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18170 Split config.h for util and core.
18172 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
18173 (ADDR32): Likewise.
18174 (DATA32): Likewise.
18175 (BSS_START_SYMBOL): Likewise.
18176 (END_SYMBOL): Likewise.
18177 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
18178 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
18179 * config.h.in: New file.
18180 * configure.ac: Use config-util.h as config define file.
18181 Rename MACHINE into GRUB_MACHINE. All users updated.
18182 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
18184 (NESTED_FUNC_ATTR): Likewise.
18185 Substitue new variables.
18186 (COND_HAVE_ASM_USCORE): New conditional.
18187 * grub-core/Makefile.am (ASM_PREFIX): New variable.
18188 (kernel_syms.lst): Use ASM_PREFIX.
18189 * grub-core/kern/emu/console.c: Include config-util.h.
18190 * grub-core/kern/emu/misc.c: Likewise.
18191 * grub-core/kern/emu/mm.c: Likewise.
18192 * include/grub/emu/misc.h: Likewise.
18193 * include/grub/libgcc.h: Likewise.
18195 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18197 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
18199 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
18200 Fix GRUB_TERM_KEY_* constants usage.
18201 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
18203 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18205 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
18207 * grub-core/bus/usb/uhci.c: Remove empty define.
18208 (grub_uhci_check_transfer): Add missing cast.
18209 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
18211 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
18213 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
18215 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18217 * grub-core/Makefile.core.def (legacycfg): Add
18218 lib/i386/pc/vesa_modes_table.c on emu.
18220 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
18222 Reduce number of temporary files generated by build system.
18224 * grub-core/gencmdlist.sh: Removed.
18225 * grub-core/genfslist.sh: Removed.
18226 * grub-core/genhandlerlist.sh: Removed.
18227 * grub-core/genmodsrc.sh: Removed.
18228 * grub-core/genpartmaplist.sh: Removed.
18229 * grub-core/genparttoollist.sh: Removed.
18230 * grub-core/gentermiinallist.sh: Removed.
18231 * grub-core/genvideolist.sh: Removed.
18233 * grub-core/genmod.sh.in: New file.
18234 * grub-core/gensyminfo.sh.in: New file.
18236 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
18237 * conf/Makefile.extra-dist: Update with new files.
18238 * gentpl.py: Remove rules related to unnecessary temporary files.
18239 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
18241 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
18243 * grub-core/bus/usb/uhci.c: Remove empty #define.
18244 * grub-core/genmoddep.awk: Updated with new syminfo format.
18245 * util/bash-completion.d/Makefile.am: Add config.log to
18248 2010-09-19 Yves Blusseau <blusseau@zetam.org>
18250 * Makefile.util.def: Add forgotten $(LIBINTL) library.
18252 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
18254 * util/grub-mkconfig.in: Check the config script for syntax errors
18257 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
18258 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18260 * Makefile.util.def (grub-install): Use util/grub-install.in on all
18262 * util/grub-install.in: Add EFI and IEEE1275 support.
18263 * util/i386/efi/grub-install.in: Removed.
18264 * util/ieee1275/grub-install.in: Likewise.
18266 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18268 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
18269 (grub_cmd_cmosclean): Likewise.
18270 (GRUB_MOD_INIT): Register command cmosclean.
18271 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
18272 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
18274 2010-09-18 Carles Pina i Estany <carles@pina.cat>
18275 2010-09-18 Aleš Nesrsta <starous@volny.cz>
18276 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
18278 Add keyboard layouts support.
18280 * Makefile.util.def (grub-mklayout): New file.
18281 (grub-kbdcomp): New script.
18282 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
18283 Add keyboard_layouts.h.
18284 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
18285 commands/boot.c on yeeloong.
18286 (keylayouts): New module.
18287 * grub-core/bus/usb/ohci.c
18288 * grub-core/bus/usb/uhci.c
18289 * grub-core/bus/usb/usbhub.c (rescan): New variable.
18290 (grub_usb_add_hub): Poll interrupt pipe for device handling.
18291 (attach_root_port): Likewise.
18292 (poll_nonroot_hub): Likewise.
18293 (grub_usb_poll_devices): Likewise.
18294 (detach_device): Close transfer.
18295 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
18297 (grub_usb_bulk_setup_readwrite): Likewise.
18298 (grub_usb_bulk_finish_readwrite): Likewise.
18299 * grub-core/commands/keylayouts.c: New file.
18300 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
18301 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
18303 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
18304 support scancode 2.
18305 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
18306 * include/grub/keyboard_layouts.h: New file.
18307 * util/grub-mklayout.c: New file.
18308 * util/grub-kbdcomp.in: Likewise.
18310 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
18312 Unify memory types.
18314 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
18315 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
18317 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
18318 (grub_upper_mem): Likewise.
18319 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
18320 * include/grub/memory.h (grub_memory_type_t): New enum.
18323 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
18325 * grub-core/Makefile.core.def (lsapm): New module.
18326 * grub-core/commands/i386/pc/lsapm.c: New file.
18327 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
18328 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
18330 * include/grub/i386/pc/apm.h: New file.
18331 * include/multiboot.h (multiboot_apm_info): New struct.
18333 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
18335 GRUB-legacy configuration file support.
18337 * Makefile.util.def (grub-menulst2cfg): New util.
18338 * docs/man/grub-menulst2cfg.h2m: New file.
18339 * grub-core/Makefile.core.def (legacycfg): New module.
18340 * grub-core/commands/legacycfg.c: New file.
18341 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
18342 (grub_normal_add_menu_entry): ... this.
18343 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
18344 (grub_normal_set_password): ...this.
18345 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
18346 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
18347 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
18348 * grub-core/lib/legacy_parse.c: New file.
18349 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
18350 * include/grub/i386/pc/vesa_modes_table.h: New file.
18351 * include/grub/legacy_parse.h: Likewise.
18352 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
18353 * util/grub-menulst2cfg.c: New file.
18355 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
18357 * grub-core/kern/emu/hostdisk.c
18358 (convert_system_partition_to_system_disk): Initialise node.
18360 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
18362 * grub-core/kern/emu/hostdisk.c
18363 (convert_system_partition_to_system_disk): Fix devmapper memory pool
18365 Reported and based on patch by: Modestas Vainius.
18367 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
18369 Fix DM-RAID probing with recent versions of device-mapper udev
18372 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
18373 canonicalise device paths under /dev/mapper/.
18374 (convert_system_partition_to_system_disk): Compare the
18375 uncanonicalised path to /dev/mapper/ rather than the canonicalised
18376 path, since device nodes under /dev/mapper/ are often symlinks.
18378 2010-09-17 Yves Blusseau <blusseau@zetam.org>
18380 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
18382 2010-09-16 Yves Blusseau <blusseau@zetam.org>
18384 * configure.ac: Avoid some annoying error messages if freetype-config
18385 program is not found.
18387 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
18389 Support RAID on virtio devices, and others.
18391 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
18393 [__MINGW32__] (grub_find_device): ... this.
18394 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
18395 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
18396 reasonable default if dir is NULL.
18397 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
18399 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
18400 (grub_guess_root_device): Update callers.
18401 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
18403 * util/raid.c (grub_util_getdiskname): Remove.
18404 (grub_util_raid_getmembers): Use grub_find_device rather than
18405 grub_util_getdiskname.
18407 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
18409 * docs/grub.texi (serial): Remove obsolete comment about GRUB
18410 needing to be compiled with serial support.
18411 (ls): Indicate that multiple files are accepted.
18412 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
18413 indicate that multiple files are accepted.
18415 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
18417 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
18418 libgrub_a_init.c, and util/bash-completion.d/grub.
18420 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18422 * util/grub-setup.c (setup): Fix incorrect container semantics.
18424 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18426 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
18428 Reported by: J. Nick Terry
18430 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18432 Move embedding routines to partmap sources files.
18434 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
18435 [GRUB_UTIL]: New variable.
18436 (gpt_partition_map_iterate): Set part.parent.
18437 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
18438 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
18439 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
18441 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
18442 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
18443 (grub_partition_map) [GRUB_UTIL]: New field embed.
18444 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
18445 (setup): Use ->embed.
18447 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18449 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
18451 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
18452 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
18454 2010-09-15 Yves Blusseau <blusseau@zetam.org>
18456 Add function to get completions from usage.
18458 * util/bash-completion.d/grub-completion.bash.in: Add function to get
18459 completions from usage. Use LC_ALL=C to get options properly.
18461 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18463 * grub-core/gnulib/basename-lgpl.c: Imported.
18464 * grub-core/gnulib/basename.c: Likewise.
18465 * grub-core/gnulib/dirname-lgpl.c: Likewise.
18466 * grub-core/gnulib/dirname.c: Likewise.
18467 * grub-core/gnulib/dirname.h: Likewise.
18468 * grub-core/gnulib/stripslash.c: Likewise.
18470 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18472 * grub-core/gnulib/error.c: Resynced.
18473 * grub-core/gnulib/getopt.c: Likewise.
18474 * grub-core/gnulib/getopt_int.h: Likewise.
18475 * grub-core/gnulib/regex.h: Likewise.
18476 * grub-core/gnulib/regex_internal.c: Likewise.
18477 * grub-core/gnulib/regex_internal.h: Likewise.
18479 2010-09-15 Szymon Janc <szymon@janc.net.pl>
18481 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
18482 CRC calculations and validity checks.
18483 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
18486 2010-09-15 Szymon Janc <szymon@janc.net.pl>
18488 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
18490 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18492 Fix incorrect echo options handling.
18493 Reported by: Yves Blusseau.
18495 * include/grub/command.h (grub_command_flags_t): New flags
18496 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
18497 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
18498 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
18500 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18502 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
18504 (GRUB_COMMAND_FLAG_MENU): Likewise.
18505 (GRUB_COMMAND_FLAG_BOTH): Likewise.
18506 (GRUB_COMMAND_FLAG_TITLE): Removed.
18507 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
18508 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
18509 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
18510 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
18511 (grub_command_flags_t): New enum. All users updated.
18513 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
18515 Fix solaris compilation.
18517 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
18518 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
18519 (grub-emu-list): Likewise.
18521 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18523 Remove deprecated root command.
18525 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
18528 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18530 * util/i386/pc/grub-setup.c: Merge this ...
18531 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
18532 * util/grub-setup.c: ... into this.
18533 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
18536 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18538 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
18541 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18543 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
18546 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18548 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
18549 explicit root argument to set to prevent UUID to be interpreted as
18552 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18554 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
18556 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18558 Don't export grub_gate_a20.
18560 * grub-core/kern/i386/pc/init.c: Remove leftovers.
18561 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
18563 (grub_gate_a20): ... this. All users updated.
18564 * include/grub/i386/pc/init.h: Removed. All users updated.
18566 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18568 Create euro.pf2 which supports most European languages.
18570 * Makefile.am (grubdata_DATA): Add euro.pf2.
18571 (euro.pf2): New target.
18572 (CLEANFILES): Add euro.pf2.
18574 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18576 * configure.ac: Disable emu-usb by default to prevent inadvertent
18579 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18581 Disable usbserial on grub-emu since our libusb code isn't good enough
18584 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
18585 (usbserial_pl2303): Likewise.
18586 (usbserial_ftdi): Likewise.
18588 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18590 * include/grub/disk.h (grub_disk): Remove has_partitions.
18592 * disk/loopback.c (grub_loopback): Remove has_partitions.
18594 (options): Remove partitions. All users updated.
18595 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
18596 * util/i386/pc/grub-setup.c (setup): copy partition table only when
18597 actual partition table is found.
18599 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18601 Remove readability checks (too many false negatives).
18603 * util/grub-install.in: Remove readability checks.
18604 * util/grub-mkconfig.in: Likewise.
18605 * util/grub.d/10_hurd.in: Likewise.
18606 * util/grub.d/10_kfreebsd.in: Likewise.
18607 * util/grub.d/10_linux.in: Likewise.
18608 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
18611 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18613 Enable acpi shutdown on all ACPI platforms.
18615 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
18616 on coreboo, multiboot and EFI.
18617 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
18618 (grub_acpi_halt): Likewise.
18619 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
18620 (grub_cmd_halt): Don't call grub_acpi_halt directly.
18621 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
18622 * grub-core/lib/i386/halt.c (grub_halt)
18623 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
18625 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18627 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
18630 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18632 * grub-core/video/efi_gop.c: Fix over-80-chars line.
18633 * grub-core/video/efi_uga.c: Likewise.
18635 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18637 Filter devaliases and never open same device twice.
18639 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
18640 (last_ihandle): Likewise.
18641 (ofdisk_hash_ent): New member shortest.
18642 (ofdisk_hash_add): Add canonical path too.
18643 (scan): New function.
18644 (grub_ofdisk_iterate): Iterate over hashed entries.
18645 (compute_dev_path): Don't add :0.
18646 (grub_ofdisk_open): Don't really open the disk.
18647 (grub_ofdisk_close): Avoid closing unrelated disk.
18648 (grub_ofdisk_read): Implement reopen logic.
18649 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
18651 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
18654 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18658 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
18659 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
18660 right address. Add sparc64_ieee1275_ldflags.
18661 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
18662 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
18663 to grub_host_to_target_addr
18664 (load_image): Likewise.
18666 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18668 * grub-core/normal/completion.c (complete_file): Handle device
18670 Fix based on patch by Doug Nazar.
18672 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18674 grub-mknetdir script.
18676 * Makefile.util.def (grub-mknetdir): New module.
18677 * tests/util/grub-shell.in: Support boot=net
18678 * util/grub-mknetdir.in: New file.
18680 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18682 videoinfo on non-vbe.
18684 * grub-core/Makefile.core.def (vbeinfo): Removed.
18685 (vbetest): Removed.
18686 (videoinfo): New module.
18687 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
18688 * grub-core/commands/i386/pc/vbetest.c: Removed.
18689 * grub-core/commands/videoinfo.c: New file.
18690 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
18692 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
18694 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
18695 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
18696 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
18697 mode_number. New parameter mode. All users updated.
18698 (grub_video_gop_iterate): New function.
18699 (grub_video_efi_gop): New member iterate.
18700 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
18701 (grub_vbe_set_video_mode): Remove setting useless fields.
18702 (vbe2videoinfo): New function.
18703 (grub_video_vbe_iterate): Likewise.
18704 (grub_video_vbe_setup): Use vbe2videoinfo.
18705 (grub_video_vbe_print_adapter_specific_info): New function.
18706 (grub_video_vbe_adapter): New fields iterate and
18707 print_adapter_specific_info.
18708 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
18710 (grub_video_mode_info): New field mode_number.
18711 (grub_video_adapter): New fields iterate and
18712 print_adapter_specific_info.
18714 2010-09-13 Tristan Gingold <gingold@free.fr>
18715 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
18716 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18718 * grub-core/commands/efi/lsefisystab.c: New file.
18719 * grub-core/commands/efi/lssal.c: Likewise.
18720 * grub-core/Makefile.core.def (lsacpi): New module.
18721 (lsefisystab): Likewise.
18722 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
18723 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
18724 (grub_efi_sal_system_table): New struct.
18725 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
18726 (grub_efi_sal_system_table_memory_descriptor): Likewise.
18727 (grub_efi_sal_system_table_platform_features): Likewise.
18728 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
18729 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
18730 (grub_efi_sal_system_table_ap_wakeup): Likewise.
18731 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
18733 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18735 Support explicit user claim that a device is BIOS-visible.
18737 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
18738 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
18739 * grub-core/kern/emu/hostdisk.c
18740 (convert_system_partition_to_system_disk): Support mdX.
18741 (find_system_device): New parameter add. All users updated.
18742 (grub_util_biosdisk_is_present): New function.
18743 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
18746 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18748 Search hints support.
18750 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
18753 2010-09-13 Yves Blusseau <blusseau@zetam.org>
18755 Bash completion script for util commands
18757 * Makefile.am: Add util/bash-completion.d directory
18758 * configure.ac: Likewise.
18759 * util/bash-completion.d/Makefile.am: New file.
18760 * util/bash-completion.d/grub-completion.bash.in: Likewise.
18762 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18764 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
18765 (print_backlog): set backlog_ucs4 and backlog_glyphs.
18766 Reported by: Yves Blusseau.
18768 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18770 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
18771 partition size and offset.
18773 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18775 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
18777 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18779 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
18781 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18783 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
18784 (grub_xvasprintf): Likewise.
18786 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18788 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
18790 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18792 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
18793 args ending with NULL.
18795 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18797 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
18800 2010-09-11 Szymon Janc <szymon@janc.net.pl>
18802 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
18804 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18806 Shutdown using ACPI.
18808 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
18809 * grub-core/commands/acpihalt.c: New file.
18810 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
18811 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
18812 (grub_acpi_halt): New proto.
18813 (GRUB_ACPI_SLP_EN): New const.
18814 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
18815 (GRUB_ACPI_OPCODE_*): New enum.
18816 (GRUB_ACPI_EXTOPCODE_*): Likewise.
18818 2010-09-11 Tristan Gingold <gingold@free.fr>
18819 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
18820 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18822 * commands/lsacpi.c: New file.
18823 * grub-core/Makefile.core.def (lsacpi): New module.
18824 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
18825 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
18826 (grub_acpi_madt_entry_header): New struct.
18827 (grub_acpi_madt): Likewise.
18828 (grub_acpi_madt_entry_interrupt_override): Likewise.
18829 (grub_acpi_madt_entry_sapic): Likewise.
18830 (grub_acpi_madt_entry_lsapic): Likewise.
18831 (grub_acpi_madt_entry_platform_int_source): Likewise.
18832 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
18833 (PRIuGRUB_UINT32_T): Likewise.
18834 (PRIxGRUB_UINT64_T): Likewise.
18836 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18838 Implement loading palette on ieee1275_fb.
18840 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
18841 (have_setcolors): Likewise.
18842 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
18843 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
18844 (grub_video_ieee1275_set_palette): Implement.
18846 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18847 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
18849 * util/grub-install.in (grub_partition): New variable.
18850 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
18851 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
18852 Fixes a bug reported by Yves Blusseau.
18854 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18858 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
18859 =grub_cpu_flush_cache on all mips and not only yeeloong.
18860 * configure.ac (COND_mips): New conditional.
18861 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
18863 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
18864 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
18865 [GRUB_LINKER_HAVE_INIT]: New function.
18866 (grub_emu_post_init): Likewise.
18867 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
18868 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
18869 * include/grub/cache.h (_mips): Include mips/cache.h.
18870 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
18871 LVM and RAID prototypes.
18872 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
18873 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
18876 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
18878 * util/grub-install.in: Don't try to verify core.img until after
18879 running grub-mkimage to create it.
18881 2010-09-10 Robert Millan <rmh@gnu.org>
18883 * util/grub.d/10_hurd.in: Add misc readability checks.
18884 * util/grub.d/10_kfreebsd.in: Likewise.
18885 * util/grub.d/10_linux.in: Likewise.
18887 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
18889 * util/grub-install.in: ${imgext} won't be defined here until the
18890 install branch is merged. For the meantime, only verify core.img on
18891 i386-pc and sparc64-ieee1275 platforms.
18893 2010-09-10 Robert Millan <rmh@gnu.org>
18895 Solaris support in grub_find_zpool_from_dir(). Thanks
18896 Seth Goldberg for referring to getextmntent() facility.
18898 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
18900 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
18902 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
18903 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
18904 method for finding zpool name.
18906 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
18908 grub-fstest needs the host and hostfs modules while other utilities
18909 actively require those modules to be absent, so grub-fstest needs
18910 its own initialisation and finalisation code.
18912 * Makefile.am (grub_fstest.pp): New target.
18913 (grub_fstest_init.lst): Likewise.
18914 (grub_fstest_init.c): Likewise.
18915 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
18917 2010-09-10 Robert Millan <rmh@gnu.org>
18919 * configure.ac: Check for `struct statfs.f_fstypename' and
18920 `struct statfs.f_mntfromname'.
18922 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
18923 kFreeBSD-specific code.
18925 2010-09-10 Robert Millan <rmh@gnu.org>
18927 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
18928 on ZFS. Now non-main filesystems are supported as / too.
18930 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
18932 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
18933 and grub-core/disk/host.c to ...
18934 (grub-fstest): ... here. Having the host disk implementation
18935 present confuses grub-probe and other utility programs.
18937 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
18938 when writing to a file, not when writing to stdout.
18940 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
18942 * tests/partmap_test.in: New test for partitions.
18943 * Makefile.util.def: Rules for new test.
18945 2010-09-09 Robert Millan <rmh@gnu.org>
18947 * util/grub-probe.c (probe): Fix a pair of unhandled error
18950 2010-09-09 Robert Millan <rmh@gnu.org>
18952 Basic Btrfs support (detection and UUID).
18954 * grub-core/fs/btrfs.c: New file.
18955 * Makefile.util.def (library): Register btrfs.c.
18956 * grub-core/Makefile.core.def: Likewise.
18958 2010-09-08 Robert Millan <rmh@gnu.org>
18960 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
18961 with (optional) parameters to specify device and relative path.
18962 * util/grub-install.in: Use is_path_readable_by_grub() to
18963 verify readability of a few critical files.
18964 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
18965 verify readability of grub.cfg.new.
18967 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
18969 Split minix.mod into minix.mod and minix2.mod.
18971 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
18972 * grub-core/Makefile.core.def (minix2): New module.
18973 * grub-core/fs/minix.c: Use definitions instead of runtime version
18975 * grub-core/fs/minix2.c: New file.
18977 2010-09-08 Yves Blusseau <blusseau@zetam.org>
18979 Add new --boot-directory option to replace --root-directory
18981 * util/grub-install.in: Add new --boot-directory option
18982 * util/grub-reboot.in: Likewise.
18983 * util/grub-set-default.in: Likewise.
18985 2010-09-08 Yves Blusseau <blusseau@zetam.org>
18987 * util/grub-mkconfig.in: Use new variable.
18989 2010-09-08 Yves Blusseau <blusseau@zetam.org>
18991 * configure.ac: Define some useful variables.
18993 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
18995 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
18996 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
18997 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
18998 Use terminfo and don't use cursor-on/cursor-off unless it's known
19000 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
19001 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
19003 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
19005 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
19006 starts with "(,", fill the drive containing the loaded image in
19007 between those two characters, but expect that a full partition
19008 specification including partition map names will follow.
19010 2010-09-08 Robert Millan <rmh@gnu.org>
19012 * configure.ac: Remove `--enable-grub-fstest' option.
19013 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
19015 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
19016 `grub-fstest' instead of `grub-probe' for readability verification.
19017 * util/grub-probe.c (probe): Remove readability verification kludge.
19019 2010-09-08 Robert Millan <rmh@gnu.org>
19021 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
19022 initializing `GRUB_FS'.
19024 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
19026 Not command (!) support to GRUB script.
19028 * tests/grub_script_not.in: New test.
19029 * Makefile.util.def: Rules for new test.
19031 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
19032 ! command as a special case.
19033 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
19035 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
19037 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
19040 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
19042 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
19044 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
19046 * docs/grub.texi (Shell-like scripting): Documentation for break,
19047 continue, shift and return commands.
19049 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
19051 Rename CD-ROM to cd on BIOS.
19053 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
19055 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
19057 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19059 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
19060 * util/grub-probe.c (main): Likewise.
19061 * util/i386/pc/grub-setup.c (main): Likewise.
19062 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
19063 Reported and debugged by: alexxy
19065 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19067 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
19070 2010-09-05 Jo Shields <directhex@apebox.org>
19072 * util/grub.d/30_os-prober.in: Add missing classes.
19074 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19076 * docs/grub.texi (Theme file format): Document new position format.
19078 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19080 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
19081 a table. Use @code instead of @verbatim.
19083 2010-09-05 Colin D Bennett <colin@gibibit.com>
19085 Gfxmenu documentation.
19087 * docs/grub.texi (Theme file format): New chapter.
19089 2010-09-05 Szymon Janc <szymon@janc.net.pl>
19091 * grub-core/Makefile.core.def (xzio): New module.
19092 * grub-core/io/xzio.c: New file.
19093 * grub-core/lib/xzembed/xz.h: New file (from xembed).
19094 * grub-core/lib/xzembed/xz_config.h: Likewise.
19095 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
19096 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
19097 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
19098 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
19099 * grub-core/lib/xzembed/xz_private.h: Likewise.
19100 * grub-core/lib/xzembed/xz_stream.h: Likewise.
19101 * include/grub/file.h (grub_file_filter_id): New compression filter
19102 GRUB_FILE_FILTER_XZIO.
19104 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19106 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
19107 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
19110 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19112 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
19113 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
19115 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19117 Uncompressed checksum support.
19119 * grub-core/commands/hashsum.c (options): Add option --uncompress.
19120 (check_list): New parameter uncompress.
19121 (grub_cmd_hashsum): Handle --uncompress.
19123 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19125 Reintroduce testload.
19127 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
19129 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
19130 (GRUB_MOD_INIT): New function.
19131 (GRUB_MOD_FINI): Likewise.
19132 * grub-core/Makefile.core.def (testload): New module.
19134 2010-09-05 Szymon Janc <szymon@janc.net.pl>
19136 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
19137 (uint8_t): New type.
19138 (uint16_t): Likewise.
19139 (uint32_t): Likewise.
19140 (uint64_t): Likewise.
19142 2010-09-05 Szymon Janc <szymon@janc.net.pl>
19144 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
19146 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19148 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
19150 (grub_gzfile_open): Removed. All users updated.
19151 (GRUB_MOD_INIT): New function.
19152 (GRUB_MOD_FINI): Likewise.
19153 * grub-core/kern/file.c (grub_file_filters_all): New variable.
19154 (grub_file_filters_enabled): Likewise.
19155 (grub_file_open): Handle filters.
19156 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
19157 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
19158 * include/grub/file.h (grub_file_filter_id_t): New type.
19159 (grub_file_filter_t): Likewise.
19160 (grub_file_filters_all): New extern variable.
19161 (grub_file_filters_enabled): Likewise.
19162 (grub_file_filter_register): New inline function.
19163 (grub_file_filter_unregister): Likewise.
19164 (grub_file_filter_disable): Likewise.
19165 (grub_file_filter_disable_compression): Likewise.
19166 * include/grub/gzio.h: Removed.
19168 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19170 Filename expansion support for wildcards in GRUB script.
19172 * tests/grub_script_expansion.in: New test.
19173 * Makefile.util.def: Rule for new test.
19175 * grub-core/commands/wildcard.c: New file, implements filename
19176 expansion support for GRUB script.
19177 * grub-core/Makefile.core.def: Rule update for regexp.mod.
19178 * grub-core/script/argv.c: Cosmetic changes.
19179 * grub-core/script/execute.c (grub_script_arglist_to_argv):
19180 Refactored to perform wildcard expansion on arguments.
19181 * include/grub/script_sh.h (grub_script_wildcard_translator): New
19184 * tests/util/grub-shell.in: Fix quoting for read input.
19186 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19188 Support for updating environment variables with matched substrings
19191 * tests/grub_cmd_regexp.in: New test.
19192 * Makefile.util.def: Rule for new test.
19194 * grub-core/commands/regexp.c: New option -s to update environment
19195 variables with regexp matches.
19197 2010-09-04 Szymon Janc <szymon@janc.net.pl>
19199 * include/grub/file.h (grub_file): New member not_easly_seekable.
19200 (grub_file_seekable): New inline function.
19201 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
19203 (grub_gzio_open): Set not_easly_seekable.
19204 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
19205 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
19207 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19209 Support for options to appear multiple times on cmdline.
19211 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
19212 * grub-core/commands/extcmd.c: Support for repeatable option.
19213 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
19214 repeatable option support.
19216 Refactor menuentry into a regular command.
19218 * grub-core/commands/menuentry.c: New file, menuentry command
19220 * grub-core/Makefile.core.def: Rule update for normal.mod.
19221 * grub-core/normal/main.c: Moved menuentry creation to
19222 grub-core/commands/menuentry.c.
19223 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
19224 (grub_menu_execute_entry_real): Removed.
19225 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
19227 (grub_script_execute_menuentry): Removed.
19228 * grub-core/script/parser.y (menuentry): Removed.
19229 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
19230 * grub-core/script/yylex.l (menuentry): Removed.
19231 * include/grub/menu.h (grub_menu_init): New prototype.
19232 (grub_menu_fini): New prototype.
19233 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
19234 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
19235 (grub_script_execute_sourcecode): New prototype.
19237 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19239 "return" command for GRUB script functions.
19241 * tests/grub_script_return.in: New test.
19242 * Makefile.util.def: Rules for new test.
19244 * grub-core/script/execute.c (grub_script_return): New function.
19245 * grub-core/script/main.c: Register/unregister return commaond.
19246 * include/grub/script_sh.h (grub_script_return): New prototype.
19248 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19250 "setparams" command to update positional parameters.
19252 * tests/grub_script_setparams.in: New test.
19253 * Makefile.util.def: Rules for new test.
19255 * grub-core/script/argv.c (grub_script_argv_make): New function.
19256 * grub-core/script/execute.c (replace_scope): New function.
19257 (grub_script_setparams): New function.
19258 * grub-core/script/lexer.c: Remove unused variables.
19259 * grub-core/script/main.c: Register/unregister setparams command.
19260 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
19261 (grub_script_setparams): New prototype.
19263 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19265 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
19268 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19270 Support for passing block of commands as an argument to extcmds.
19272 * Makefile.util.def: Rules for new test.
19273 * tests/grub_script_blockarg.in: New test.
19274 * grub-core/tests/test_blockarg.c: New file, block argument
19275 command used in the test.
19277 * include/grub/extcmd.h (grub_extcmd_context): New struct.
19278 (grub_register_extcmd_prio): New function prototype.
19279 (grub_extcmd_dispatcher): New function prototype.
19280 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
19282 * include/grub/script_sh.h (struct grub_script): New members
19283 `children', `next_siblings' and `refcnt' for block arguments and
19284 reference counting.
19285 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
19286 (grub_script_arg): New member `script' for block argument.
19287 (grub_script_argv): New member `script' for block argument.
19288 (grub_parser_param): New member `scripts' for block argument.
19289 (grub_script_mem_free): New extern function prototype.
19290 (grub_script_ref): New function prototype.
19291 (grub_script_unref): New function prototype.
19293 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
19294 extcmd form to support block arguments.
19295 * grub-core/script/argv.c: Block arguments support.
19296 * grub-core/script/execute.c: Likewise.
19297 * grub-core/script/lexer.c: Likewise.
19298 * grub-core/script/main.c: Likewise.
19299 * grub-core/script/script.c: Likewise.
19300 * grub-core/script/parser.y: Likewise. New `block' and `block0'
19303 * grub-core/commands/acpi.c: Update extcmd implementations with
19304 grub_extcmd_context_t.
19305 * grub-core/commands/cat.c: Likewise.
19306 * grub-core/commands/echo.c: Likewise.
19307 * grub-core/commands/extcmd.c: Likewise.
19308 * grub-core/commands/hashsum.c: Likewise.
19309 * grub-core/commands/hdparm.c: Likewise.
19310 * grub-core/commands/help.c: Likewise.
19311 * grub-core/commands/hexdump.c: Likewise.
19312 * grub-core/commands/i386/cpuid.c: Likewise.
19313 * grub-core/commands/i386/pc/drivemap.c: Likewise.
19314 * grub-core/commands/i386/pc/halt.c: Likewise.
19315 * grub-core/commands/i386/pc/sendkey.c: Likewise.
19316 * grub-core/commands/iorw.c: Likewise.
19317 * grub-core/commands/keystatus.c: Likewise.
19318 * grub-core/commands/loadenv.c: Likewise.
19319 * grub-core/commands/ls.c: Likewise.
19320 * grub-core/commands/lspci.c: Likewise.
19321 * grub-core/commands/memrw.c: Likewise.
19322 * grub-core/commands/probe.c: Likewise.
19323 * grub-core/commands/search_wrap.c: Likewise.
19324 * grub-core/commands/setpci.c: Likewise.
19325 * grub-core/commands/sleep.c: Likewise.
19326 * grub-core/disk/loopback.c: Likewise.
19327 * grub-core/hello/hello.c: Likewise.
19328 * grub-core/loader/i386/bsd.c: Likewise.
19329 * grub-core/loader/xnu.c: Likewise.
19330 * grub-core/term/gfxterm.c: Likewise.
19331 * grub-core/term/serial.c: Likewise.
19332 * grub-core/tests/lib/functional_test.c: Likewise.
19334 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19336 Multi-line quoted strings support.
19338 * grub-core/script/lexer.c (append_newline): Removed.
19339 (grub_script_lexer_yywrap): Refactored.
19340 (grub_script_lexer_init): Refactored.
19341 * grub-core/script/yylex.l (yywrap): New function.
19342 (grub_lexer_resplit): New function.
19343 (grub_lexer_unput): New function.
19344 * include/grub/script_sh.h (grub_lexer_param): New members, unput
19346 * tests/grub_script_echo1.in: Added few more testcases.
19348 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
19350 * grub-core/kern/misc.c: Don't add abort alias in utils.
19351 Reported by: echoline.
19353 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
19355 Add missing files into "make dist" tarball for other platforms.
19357 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
19358 * conf/Makefile.common (dist_noinst_DATA): New variable.
19359 * conf/Makefile.extra-dist: Added missing make dist files.
19360 * grub-core/Makefile.core.def: Likewise.
19362 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
19364 Compress grub_prefix.
19366 * grub-core/boot/i386/pc/lnxboot.S: Use
19367 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
19368 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
19369 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
19370 GRUB_MACHINE_PREFIX_END. All users updated.
19371 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
19372 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
19374 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
19375 * util/grub-mkimage.c (image_target_desc): Change data_end to
19376 prefix_end. All users updated.
19378 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
19380 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
19382 (grub_openbsd_boot): Likewise.
19383 (grub_netbsd_boot): Likewise.
19384 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
19385 (grub_xnu_boot): Likewise.
19387 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19389 * configure.ac: Clean LIBS variable after tests.
19391 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
19393 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
19395 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19397 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
19398 echo if libdevmapper will be used.
19400 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
19402 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
19403 constant for the same file.
19405 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19407 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
19409 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
19411 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
19414 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
19416 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
19417 required by the boot protocol.
19419 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
19420 ebp and edi members.
19421 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
19422 state.ebp and state.edi.
19423 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
19424 %ebp and %edi according to grub_relocator32_ebp and
19425 grub_relocator32_edi respectively.
19426 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
19429 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19431 Add i386-pc-pxe image target.
19433 * util/grub-mkimage.c (image_target_desc): New enum value
19435 (image_targets): New target i386-pc-pxe.
19436 (generate_image): Handle i386-pc-pxe image.
19438 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19442 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
19443 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
19445 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
19446 (grub_pxe_pxenv): Correct type.
19448 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
19450 * NEWS: Document most of the important changes since 1.98.
19452 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
19454 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
19455 generated manual page) a little.
19457 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
19459 * docs/grub.texi: Add myself as an author.
19461 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
19463 * Makefile.util.def (libgrub.a): Add missing sunpc.
19464 Reported by: Seth Goldberg.
19466 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19468 Interrupt wrapping and code simplifications.
19470 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
19471 x86_noieee1275 which are functionaly equivalent in this case.
19472 (grub-install): Make source on each platform explicit. Enable on
19474 * gentpl.py (x86_efi_pc): Removed group.
19475 (x86_noefi): Likewise.
19476 (i386_noefi): Likewise.
19477 (x86_noieee1275): Likewise.
19478 (i386_noieee1275): Likewise.
19479 (i386_noefi_noieee1275): Likewise.
19480 (i386_pc_qemu_coreboot): Likewise.
19481 (i386_coreboot_multiboot): Likewise.
19482 (i386_pc_coreboot_multiboot_qemu): Likewise.
19483 (x86_noefi_mips): Likewise.
19484 (noieee1275): Likewise.
19485 (ieee1275_mips): Likewise.
19486 (noemu_noieee1275): Likewise.
19489 (videoinkernel): Likewise.
19490 (videomodules): Likewise.
19491 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
19492 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
19493 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
19494 include/grub/loader.h, include/grub/msdos_partition.h,
19495 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
19496 include/grub/machine/console.h, include/grub/machine/vga.h,
19497 include/grub/machine/vbe.h, include/grub/machine/init.h,
19498 include/grub/machine/kernel.h, include/grub/cpu/time.h,
19499 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
19500 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
19501 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
19502 * grub-core/Makefile.core.def (kernel): Explicit the source for
19503 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
19504 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
19505 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
19506 Use videoinkernel tag.
19507 (usb): Enable on all usb.
19508 (usbserial_common): Likewise.
19509 (usbserial_pl2303): Likewise.
19510 (usbserial_ftdi): Likewise.
19511 (uhci): Enable on all x86.
19512 (ohci): Enable on all pci.
19513 (cmostest): Enable on all CMOS.
19514 (acpi): Include commands/acpi.c on all platforms.
19515 (halt): Add relevant lib/*/halt.c.
19516 (hdparm): Enable on all pci.
19518 (usbtest): Enable on all usb.
19519 (ata): Enable on all pci.
19520 (ata_pthru): Likewise.
19521 (usbms): Enable on all usb.
19522 (usb_keyboard): Likewise.
19523 (font): Use tag videomodules.
19525 (datetime): Use tag cmos. Enable on all noemu.
19526 (mmap): Use tags common and x86.
19527 (gfxterm): Use tag videomodules.
19528 (bitmap): Likewise.
19529 (bitmap_scale): Likewise.
19530 (video_fb): Likewise.
19532 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
19533 adjust padding accordingly. All users updated.
19534 (grub_ohci_transaction): Fix bad format specification.
19535 (GRUB_MOD_INIT): Add asserts for struct size.
19536 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
19537 (grub_alloc_td): Likewise.
19538 (grub_free_queue): Likewise.
19539 (grub_uhci_transfer): Likewise.
19540 (grub_uhci_transaction): Fix bad format specification.
19541 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
19542 (grub_usb_bulk_readwrite): Likewise.
19543 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
19544 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
19546 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
19548 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
19549 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
19550 Transformed into C.
19551 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
19552 Moved from here ...
19553 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
19554 ... here. Transformed into C. Made static.
19555 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
19556 Moved from here ...
19557 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
19558 ... here. Transformed into C. Made static.
19559 * grub-core/kern/i386/pc/startup.S
19560 (grub_biosdisk_check_int13_extensions): Moved from here ...
19561 * grub-core/disk/i386/pc/biosdisk.c
19562 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
19564 * grub-core/kern/i386/pc/startup.S
19565 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
19566 * grub-core/disk/i386/pc/biosdisk.c
19567 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
19568 Transformed into C. Made static.
19569 * grub-core/kern/i386/pc/startup.S
19570 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
19571 * grub-core/disk/i386/pc/biosdisk.c
19572 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
19573 Transformed into C. Made static.
19574 * grub-core/kern/i386/pc/startup.S
19575 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
19576 * grub-core/disk/i386/pc/biosdisk.c
19577 (grub_biosdisk_get_diskinfo_standard): ... here.
19578 Transformed into C. Made static.
19579 * grub-core/kern/i386/pc/startup.S
19580 (grub_biosdisk_get_num_floppies): Moved from here ...
19581 * grub-core/disk/i386/pc/biosdisk.c
19582 (grub_biosdisk_get_num_floppies): ... here.
19583 Transformed into C. Made static.
19584 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
19586 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
19587 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
19588 Transformed into C. Made static.
19589 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
19590 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
19591 Transformed into C. Made static.
19592 * grub-core/kern/i386/ieee1275/init.c: Removed.
19593 * grub-core/kern/i386/misc.S: Likewise.
19594 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
19595 Splitted from here ...
19596 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
19597 Transformed into C. Made static. All users updated.
19598 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
19599 Transformed into C. Made static. All users updated.
19600 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
19602 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
19603 Transformed into C. Made static. All users updated.
19604 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
19606 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
19607 Transformed into C. Made static. All users updated.
19608 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
19609 Removed (replaced by C version).
19610 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
19612 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
19613 Transformed into C. Made static.
19614 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
19616 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
19617 ... here. Transformed into C.
19618 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
19620 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
19621 ... here. Transformed into C.
19622 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
19624 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
19625 ... here. Transformed into C. Made static.
19626 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
19628 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
19629 ... here. Transformed into C.
19630 * grub-core/kern/i386/pc/startup.S
19631 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
19632 * grub-core/video/i386/pc/vbe.c
19633 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
19634 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
19636 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
19637 ... here. Transformed into C.
19638 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
19640 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
19641 ... here. Transformed into C.
19642 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
19644 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
19645 ... here. Transformed into C.
19646 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
19648 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
19649 ... here. Transformed into C.
19650 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
19652 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
19653 ... here. Transformed into C. Made static.
19654 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
19656 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
19657 ... here. Transformed into C. Made static.
19658 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
19660 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
19661 ... here. Transformed into C. Made static.
19662 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
19663 pxe_rm_entry as third argument.
19664 (grub_bios_interrupt): New function.
19665 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
19666 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
19667 of calling grub_stop.
19668 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
19669 * grub-core/lib/efi/halt.c (grub_halt): ...here.
19670 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
19671 * grub-core/lib/emu/halt.c (grub_halt): ... here.
19672 * grub-core/lib/i386/halt.c: Moved from here ...
19673 * grub-core/lib/i386/halt.c: ... here.
19674 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
19675 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
19676 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
19678 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
19679 * include/grub/i386/coreboot/init.h: Removed.
19680 * include/grub/i386/multiboot/init.h: Likewise.
19681 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
19682 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
19683 * include/grub/i386/pc/int.h: New file.
19684 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
19685 (grub_pxe_scan): Removed.
19686 (grub_pxe_call): Update prototype.
19687 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
19689 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
19690 * include/grub/i386/qemu/init.h: Removed.
19691 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
19693 (grub_halt): Likewise.
19694 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
19695 (grub_reboot): Likewise.
19696 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
19697 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
19698 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
19700 2010-08-30 Robert Millan <rmh@gnu.org>
19702 * NEWS: Document addition of ZFS support in `grub-install' and
19705 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
19707 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
19710 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19712 Remove leftover embedding of font objects.
19714 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
19715 * util/grub-install.in (font): Removed.
19716 * util/grub-mkimage.c (generate_image): Remove font support. All users
19719 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19721 Remove leftover embedding of font objects.
19723 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
19724 * util/grub-install.in (font): Removed.
19725 * util/grub-mkimage.c (generate_image): Remove font support. All users
19728 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19730 * docs/grub.texi (Network): Fix reference to pxe_blksize.
19731 Reported by: Ian Turner
19733 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19735 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
19736 timeout to avoid indefinite boot stalling.
19738 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19740 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
19741 (grub_env_write_color_highlight): Likewise.
19743 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19745 * grub-core/normal/term.c (print_more): Return to normal and not
19746 to standard state after printing "---MORE---".
19748 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19750 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
19751 Mask out the bit 0x80 since it has other meaning that specifiing color.
19753 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19755 New relocator. Allows for more kernel support and more straightforward
19758 * Makefile.am (BOOTTARGET): New variable.
19759 (QEMU32): Likewise.
19760 (linux.init.x86_64): New target.
19761 (linux.init.i386): Likewise.
19762 (multiboot.elf): Likewise.
19763 (kfreebsd.elf): Likewise.
19764 (kfreebsd.aout): Likewise.
19765 (pc-chainloader.elf): Likewise.
19766 (pc-chainloader.bin): Likewise.
19767 (ntldr.elf): Likewise.
19768 (ntldr.bin): Likewise.
19769 (multiboot2.elf): Likewise.
19770 (kfreebsd.init.x86_64): Likewise.
19771 (kfreebsd.init.i386): Likewise.
19772 (knetbsd.init.i386): Likewise.
19773 (kopenbsd.init.i386): Likewise.
19774 (knetbsd.init.x86_64): Likewise.
19775 (kopenbsd.init.x86_64): Likewise.
19776 (linux-initramfs.i386): Likewise.
19777 (linux-initramfs.x86_64): Likewise.
19778 (kfreebsd-mfsroot.i386.img): Likewise.
19779 (knetbsd.image.i386): Likewise.
19780 (kopenbsd.image.i386): Likewise.
19781 (kopenbsd.image.x86_64): Likewise.
19782 (knetbsd.miniroot-image.i386.img): Likewise.
19783 (kfreebsd-mfsroot.x86_64.img): Likewise.
19784 (knetbsd.image.x86_64): Likewise.
19785 (knetbsd.miniroot-image.x86_64.img): Likewise.
19786 (kfreebsd-mfsroot.i386.gz): Likewise.
19787 (bootcheck-kfreebsd-i386): Likewise.
19788 (kfreebsd-mfsroot.x86_64.gz): Likewise.
19789 (bootcheck-kfreebsd-x86_64): Likewise.
19790 (knetbsd.miniroot-image.i386.gz): Likewise.
19791 (bootcheck-knetbsd-i386): Likewise.
19792 (bootcheck-kopenbsd-i386): Likewise.
19793 (bootcheck-kopenbsd-x86_64): Likewise.
19794 (knetbsd.miniroot-image.x86_64.gz): Likewise.
19795 (bootcheck-knetbsd-x86_64): Likewise.
19796 (bootcheck-linux-i386): Likewise.
19797 (bootcheck-linux-x86_64): Likewise.
19798 (bootcheck-linux16-i386): Likewise.
19799 (bootcheck-linux16-x86_64): Likewise.
19800 (bootcheck-multiboot): Likewise.
19801 (bootcheck-multiboot2): Likewise.
19802 (bootcheck-kfreebsd-aout): Likewise.
19803 (bootcheck-pc-chainloader): Likewise.
19804 (bootcheck-ntldr): Likewise.
19805 (CLEANFILES): Add new targets.
19806 (BOOTCHECKS): New variable.
19807 (.PHONY): Add bootchecks.
19808 (SUCCESSFUL_BOOT_STRING): New variable.
19809 (BOOTCHECK_TIMEOUT): Likewise.
19810 (bootcheck): New target
19811 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
19812 * configure.ac: Correct efiemu excuse.
19813 * docs/grub.texi (Supported kernels): New chapter.
19814 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
19815 include/grub/mm_private.h. Simplify inclusion of
19816 include/grub/boot.h, include/grub/loader.h
19817 and include/grub/msdos_partition.h
19818 (KERNEL_HEADER_FILES) [i386_coreboot]:
19819 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
19820 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
19821 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
19822 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
19823 include/grub/machine/loader.h.
19824 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
19825 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
19827 (pci.mod): Enable on i386-multiboot.
19828 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
19829 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
19831 (relocator.mod): Rewritten.
19832 (aout.mod): Enable on all x86.
19833 (bsd.mod): Likewise.
19834 (ntldr.mod): New module.
19835 (linux.mod): Use loader/i386/linux.c on all x86.
19836 (xnu.mod): Enable on all x86.
19837 (vga_text.mod): disable on EFI and QEMU.
19838 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
19839 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
19840 * grub-core/efiemu/loadcore.c: Likewise.
19841 * grub-core/efiemu/main.c: Likewise.
19842 (grub_efiemu_exit_boot_services): Removed.
19843 (grub_efiemu_finish_boot_services): Likewise.
19844 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
19846 * grub-core/efiemu/i386/nocfgtables.c: New file.
19847 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
19848 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
19849 (grub_efi_finish_boot_services): Moved from here ...
19850 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
19851 Fille finish memory map and related data.
19852 (finish_mmap_buf): New variable.
19853 (grub_efi_uintn_t finish_mmap_size): Likewise.
19854 (grub_efi_uintn_t finish_key): Likewise.
19855 (grub_efi_uintn_t finish_desc_size): Likewise.
19856 (grub_efi_uint32_t finish_desc_version): Likewise.
19857 (grub_efi_is_finished): Likewise.
19858 (grub_efi_get_memory_map): Use saved memory map if EFI is already
19860 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
19861 (grub_elf64_phdr_iterate): Likewise.
19862 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
19863 (grub_os_area_size): Likewise.
19864 (grub_machine_init): Don't reserve os area.
19865 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
19866 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
19867 * grub-core/kern/i386/loader.S: Removed.
19868 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
19869 (grub_os_area_size): Likewise.
19870 (grub_machine_init): Don't reserve os area.
19871 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
19872 Don't call grub_dl_unload_all.
19873 Don't include loader.S.
19874 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
19875 Declare the memory after _end as available.
19876 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
19877 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
19878 (GRUB_MM_ALLOC_MAGIC): Moved from here...
19879 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
19880 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
19881 * include/grub/mm_private.h (grub_mm_header): ... here.
19882 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
19883 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
19884 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
19885 (grub_mm_region): ..here. Removed addr. Added pre_size.
19887 * grub-core/kern/mm.c (base): Renamed to ...
19888 (grub_mm_base): ... this. Made global.
19889 (grub_real_malloc): Alloc from end of region.
19890 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
19891 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
19892 * grub-core/kern/powerpc/cache_flush.S: ... here.
19893 * grub-core/lib/efi/relocator.c: New file.
19894 * grub-core/lib/i386/relocator.c: Rewritten.
19895 * grub-core/lib/i386/relocator16.S: New file.
19896 * grub-core/lib/i386/relocator32.S: Likewise.
19897 * grub-core/lib/i386/relocator64.S: Likewise.
19898 * grub-core/lib/i386/relocator_asm.S: Rewritten.
19899 * grub-core/lib/i386/relocator_common.S: New file.
19900 * grub-core/lib/ieee1275/relocator.c: Likewise.
19901 * grub-core/lib/mips/relocator.c: Rewritten.
19902 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
19903 stylistic adjustments.
19904 * grub-core/lib/powerpc/relocator.c: New file.
19905 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
19906 * grub-core/lib/relocator.c: Rewritten.
19907 * grub-core/lib/x86_64/relocator_asm.S: New file.
19908 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
19909 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
19910 (bsd_tag): New struct.
19911 (tags): New variable.
19912 (tags_last): Likewise.
19913 (netbsd_module): New struct.
19914 (netbsd_mods): New variable.
19915 (netbsd_mods_last): Likewise.
19916 (openbsd_opts): New parameter "serial".
19917 (OPENBSD_SERIAL_ARG): New definition.
19918 (netbsd_opts): New parameter "serial".
19919 (NETBSD_SERIAL_ARG): New definition.
19920 (grub_freebsd_add_meta): Reorganised into ...
19921 (grub_bsd_add_meta): ...this. All users updated.
19922 (grub_freebsd_add_mmap): Reorganised into ...
19923 (generate_e820_mmap): ...this...
19924 (grub_bsd_add_mmap): ...and this. All users updated.
19925 (grub_freebsd_list_modules): Use tags.
19926 (grub_netbsd_add_meta_module): New function.
19927 (grub_netbsd_list_modules): Likewise.
19928 (grub_freebsd_boot): Use relocator and finish EFI.
19929 (grub_openbsd_boot): Likewise.
19930 (grub_netbsd_setup_video): New function.
19931 (grub_netbsd_add_modules): Likewise.
19932 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
19934 (grub_bsd_unload): Unload tags.
19935 (grub_bsd_load_aout): Use relocator.
19936 (grub_bsd_elf32_size_hook): New function.
19937 (grub_bsd_elf32_hook): Use relocator.
19938 (grub_bsd_elf64_size_hook): New function.
19939 (grub_bsd_elf64_hook): Use relocator.
19940 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
19941 (grub_bsd_load): Zero-out openbsd_ramdisk.
19942 (grub_bsd_load): Use relocator.
19943 (grub_cmd_openbsd): Support serial.
19944 (grub_cmd_netbsd): Support modules.
19945 (grub_cmd_freebsd_module): Use relocator.
19946 (grub_netbsd_module_load): New function.
19947 (grub_cmd_netbsd_module): Likewise.
19948 (grub_cmd_openbsd_ramdisk): Likewise.
19949 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
19951 (GRUB_MOD_FINI): Unregister new commands.
19952 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
19953 (grub_freebsd_load_elfmodule_obj): Use relocator.
19954 (grub_freebsd_load_elfmodule): Likewise.
19955 (grub_freebsd_load_elf_meta): Likewise.
19956 (grub_netbsd_load_elf_meta): New function.
19957 (grub_openbsd_find_ramdisk): Likewise.
19958 * grub-core/loader/i386/bsd_helper.S: Removed.
19959 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
19960 * grub-core/loader/i386/bsd_trampoline.S: Removed.
19961 * grub-core/loader/i386/efi/linux.c: Likewise.
19962 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
19963 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
19964 (DEFAULT_VIDEO_MODE): Likewise.
19965 (real_mode_target): New variable.
19966 (prot_mode_target): Likewise.
19967 (initrd_mem_target): Likewise.
19968 (relocator): Likewise.
19969 (efi_mmap_buf): Likewise.
19970 (efi_mmap_size): Likewise.
19971 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
19972 (free_pages): Use relocator.
19973 (allocate_pages): Account for efi_mmap and use relocator. Return error.
19974 (grub_linux_setup_video): Return error.
19975 (grub_linux_trampoline_start): Removed.
19976 (grub_linux_trampoline_end): Likewise.
19977 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
19978 andd video parameters depending on firmware.
19979 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
19980 [GRUB_MACHINE_EFI]: Pass EFI parameters.
19981 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
19982 (grub_cmd_initrd): Use relocator.
19983 * grub-core/loader/i386/linux_trampoline.S: Removed.
19984 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
19985 (elf_sec_entsize): Likewise.
19986 (elf_sec_shstrndx): Likewise.
19987 (elf_sections): Likewise.
19988 (grub_multiboot_load): Use relocator.
19989 (grub_multiboot_get_mbi_size): Account for sections.
19990 (grub_multiboot_make_mbi): Use relocator and support sections.
19991 (grub_multiboot_add_elfsyms): New function.
19992 (grub_multiboot_free_mbi): Free sections.
19993 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
19994 (grub_linux_real_target): Likewise.
19995 (grub_linux_real_chunk): Likewise.
19996 (grub_linux16_prot_size): Likewise.
19997 (grub_linux16_boot): Use relocator.
19998 (grub_linux_unload): Unload relocator.
19999 (grub_cmd_linux): Use relocator.
20000 (grub_cmd_initrd): Likewise.
20001 * grub-core/loader/i386/pc/ntldr.c: New file.
20002 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
20003 Don't try to guess CPU frequency.
20004 (grub_xnu_set_video): Stretch bitmap.
20005 (grub_xnu_boot): Use relocator.
20006 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
20007 (grub_linux_unload): Free relocator.
20008 (grub_linux_load32): Use relocator.
20009 (grub_linux_load64): Likewise.
20010 (grub_cmd_initrd): Likewise.
20011 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
20012 (grub_multiboot_unload): Unload relocator.
20013 (grub_cmd_multiboot): Use relocator.
20014 (grub_cmd_module): Likewise.
20015 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
20016 Use relocator and support sections.
20017 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
20018 (elf_sec_entsize): Likewise.
20019 (elf_sec_shstrndx): Likewise.
20020 (elf_sections): Likewise.
20021 (grub_multiboot_load): Use relocator.
20022 (grub_multiboot_get_mbi_size): Account for sections.
20023 (grub_multiboot_make_mbi): Use relocator and support sections.
20024 (grub_multiboot_add_elfsyms): New function.
20025 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
20026 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
20027 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
20028 Prototype changed. All users updated.
20029 (grub_xnu_align_heap): Simplified.
20030 (grub_xnu_writetree_toheap): Likewise.
20031 (grub_xnu_unload): Unload relocator.
20032 (grub_cmd_xnu_kernel): Use relocator.
20033 (grub_cmd_xnu_kernel64): Likewise.
20034 (grub_xnu_register_memory): Simplified.
20035 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
20036 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
20038 (grub_console_checkkey): Likewise.
20039 (grub_console_getkey): Likewise.
20040 (grub_console_getwh): Likewise.
20041 (grub_console_getxy): Likewise.
20042 (grub_console_gotoxy): Likewise.
20043 (grub_console_cls): Likewise.
20044 (grub_console_setcolorstate): Likewise.
20045 (grub_console_setcursor): Likewise.
20046 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
20047 * grub-core/tests/boot/kbsd.init-i386.S: New file.
20048 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
20049 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
20050 * grub-core/tests/boot/kernel-8086.S: Likewise.
20051 * grub-core/tests/boot/kernel-i386.S: Likewise.
20052 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
20053 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
20054 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
20055 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
20056 * grub-core/tests/boot/knetbsd.cfg: Likewise.
20057 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
20058 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
20059 * grub-core/tests/boot/linux.cfg: Likewise.
20060 * grub-core/tests/boot/linux.init-i386.S: Likewise.
20061 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
20062 * grub-core/tests/boot/linux16.cfg: Likewise.
20063 * grub-core/tests/boot/multiboot.cfg: Likewise.
20064 * grub-core/tests/boot/multiboot2.cfg: Likewise.
20065 * grub-core/tests/boot/ntldr.cfg: Likewise.
20066 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
20067 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
20068 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
20070 * include/grub/dl.h (grub_dl_unload_all): Removed.
20071 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
20072 (grub_efi_finish_boot_services): Change prototype.
20073 (grub_efi_is_finished): New variable.
20074 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
20076 (grub_efiemu_finish_boot_services): Removed.
20077 (grub_machine_efiemu_init_tables): New prototype.
20078 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
20079 (grub_elf64_phdr_iterate): Likewise.
20080 * include/grub/i386/bsd.h: Include relocator.h.
20081 (freebsd_tag_header): New struct.
20082 (grub_openbsd_bios_mmap): Removed.
20083 (grub_unix_real_boot): Removed.
20084 (grub_freebsd_load_elfmodule32): Changed prototype.
20085 (grub_freebsd_load_elfmodule_obj64): Likewise.
20086 (grub_freebsd_load_elf_meta32): Likewise.
20087 (grub_freebsd_load_elf_meta64): Likewise.
20088 (grub_freebsd_add_meta): Removed.
20089 (grub_netbsd_load_elf_meta32): New prototype.
20090 (grub_netbsd_load_elf_meta64): Likewise.
20091 (grub_bsd_add_meta): Likewise.
20092 (grub_openbsd_ramdisk_descriptor): New struct.
20093 (grub_openbsd_find_ramdisk32): New prototype.
20094 (grub_openbsd_find_ramdisk64): Likewise.
20095 * include/grub/i386/coreboot/loader.h: Removed.
20096 * include/grub/i386/efi/loader.h: Likewise.
20097 * include/grub/i386/ieee1275/loader.h: Likewise.
20098 * include/grub/i386/linux.h (linux_kernel_header): Change void *
20100 * include/grub/i386/loader.h: Removed.
20101 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
20103 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
20104 (grub_phys_addr_t): New type.
20105 (grub_vtop): New inline function.
20106 (grub_map_memory): Likewise.
20107 (grub_unmap_memory): Likewise.
20108 * include/grub/i386/multiboot/loader.h: Removed.
20109 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
20110 (NETBSD_BTINFO_CONSOLE): New definition.
20111 (NETBSD_BTINFO_SYMTAB): Likewise.
20112 (NETBSD_BTINFO_MODULES): Likewise.
20113 (NETBSD_BTINFO_FRAMEBUF): Likewise.
20114 (grub_netbsd_bootinfo): New struct.
20115 (grub_netbsd_btinfo_common): Use explicit bitsize.
20116 (grub_netbsd_btinfo_mmap_entry): Removed.
20117 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
20118 (grub_netbsd_btinfo_bootdisk): New struct.
20119 (grub_netbsd_btinfo_symtab): Likewise.
20120 (grub_netbsd_btinfo_serial): Likewise.
20121 (grub_netbsd_btinfo_modules): Likewise.
20122 (grub_netbsd_btinfo_framebuf): Likewise.
20123 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
20124 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
20126 (grub_openbsd_bootargs): Use explicit bitsize.
20127 (grub_openbsd_bootarg_console): New struct.
20128 (GRUB_OPENBSD_COM_MAJOR): New definition.
20129 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
20130 * include/grub/i386/pc/efiemu.h: Removed.
20131 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
20132 * include/grub/i386/qemu/loader.h: Removed.
20133 * include/grub/i386/relocator.h: Rewritten.
20134 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
20135 * include/grub/mips/memory.h: New file.
20136 * include/grub/mips/multiboot.h: Rewritten.
20137 * include/grub/mips/relocator.h: Rewritten.
20138 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
20139 (grub_vtop): New function.
20140 (grub_map_memory): Likewise.
20141 (grub_unmap_memory): Likewise.
20142 * include/grub/misc.h (ALIGN_DOWN): New definition.
20143 * include/grub/mm.h (grub_mm_check_real): New proto.
20144 (GRUB_MM_CHECK): New definition.
20145 * include/grub/mm_private.h: New file.
20146 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
20147 (grub_multiboot_get_mbi_size): Removed.
20148 (grub_multiboot_make_mbi): Change prottype.
20149 (grub_multiboot_set_accepts_video): New proto.
20150 (grub_multiboot_add_elfsyms): Likewise.
20151 (grub_multiboot_payload_eip): New variable.
20152 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
20154 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
20156 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
20157 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
20158 * include/grub/powerpc/ieee1275/loader.h: Removed.
20159 * include/grub/powerpc/memory.h: New file.
20160 * include/grub/powerpc/relocator.h: Likewise.
20161 * include/grub/relocator.h: Likewise.
20162 * include/grub/relocator_private.h: Likewise.
20163 * include/grub/sparc64/ieee1275/loader.h: Removed.
20164 * include/grub/x86_64/memory.h: New file.
20165 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
20166 (grub_xnu_heap_malloc): Likewise.
20167 (grub_xnu_heap_real_start): Removed.
20168 (grub_xnu_heap_start): Likewise.
20169 (grub_xnu_relocator): New variable.
20170 (grub_xnu_heap_target_start): Likewise.
20171 * tests/util/grub-shell.in: Support non-pc.
20172 * util/grub-mkimage.c (image_targets): Fix multiboot target.
20174 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20176 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
20178 (grub_bidi_logical_to_visual): Check that malloc succeded.
20179 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
20181 (grub_xputs_normal): Likewise.
20183 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20185 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
20188 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20190 * grub-core/efiemu/runtime/efiemu.sh: Removed.
20192 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20194 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
20196 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20198 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
20201 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
20203 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
20205 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20207 * grub-core/normal/term.c (print_more): Fix a memory leak.
20208 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
20209 (grub_xputs_normal): Likewise.
20211 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20213 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
20214 the begining of the string
20216 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20218 * grub-core/script/script.c (grub_script_parse): Free parsed on
20221 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20223 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
20226 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20228 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
20231 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20233 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
20234 (scroll_up): Fix a memory leak.
20236 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20238 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
20241 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
20243 Handle USB pendrives exposed as floppies.
20245 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
20247 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
20248 Check for partitions on all devices.
20250 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20252 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
20253 (readkey): Likewise.
20255 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
20257 Multiple variable names support to "export" command.
20259 * normal/context.c (grub_cmd_export): "export" command supports
20260 multiple variable names.
20262 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
20264 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
20265 --target=drive output to Mach device name.
20267 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
20269 New Automake based build system for GRUB.
20271 * ABOUT-NLS: New file.
20272 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
20273 in Makefile.util.def file.
20274 * Makefile.util.def: New file. Autogen build definitions file for
20276 * conf/Makefile.common: New file. Common variables for GRUB host
20277 utils and target modules.
20278 * conf/Makefile.extra-dist: New file. Extra files for make dist.
20279 * docs/Makefile.am: New file. Automake file for docs.
20280 * gentpl.py: New file. Python script to generate Autogen
20282 * grub-core/Makefile.am: New file. GRUB target modules' rules
20283 that doesn't fit in Makefile.core.def file.
20284 * grub-core/Makefile.core.def: New file. Autogen build
20285 definitions file for GRUB target modules.
20286 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
20287 specific setjmp.S file.
20288 * po/Makefile.am: New file.
20290 * .bzrignore: New ignores.
20291 * INSTALL: New requirements, without Ruby.
20292 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
20293 * autogen.sh: Updated to invoke autogen as necessary.
20294 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
20295 and defines for Automake conditionals.
20296 * geninit.sh: Refactoring.
20298 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
20300 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
20303 * include/grub/test.h: Fix functional test modules' naming.
20304 * grub-core/tests/example_functional_test.c: Fix test module name.
20306 * util/misc.c: Hosted versions' of grub functions for libgrub.a
20307 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
20308 * util/grub-editenv.c: Likewise.
20309 * util/grub-fstest.c: Likewise.
20310 * util/grub-mkdevicemap.c: Likewise.
20311 * util/grub-mkfont.c: Likewise.
20312 * util/grub-mkimage.c: Likewise.
20313 * util/grub-mkpasswd-pbkdf2.c: Likewise.
20314 * util/grub-probe.c: Likewise.
20315 * util/grub-script-check.c: Likewise.
20316 * util/i386/pc/grub-setup.c: Likewise.
20317 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20319 * tests/util/grub-shell.in: Fix override directory path.
20320 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
20321 * util/import_gcry.py: Create Makefile.gcry.def file instead.
20323 * util/lvm.c: Update #includes.
20324 * util/raid.c: Likewise.
20325 * util/resolve.c: Likewise.
20326 * grub-core/bus/emu/pci.c: Likewise.
20327 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
20328 * grub-core/lib/posix_wrap/string.h: Likewise.
20329 * grub-core/kern/emu/main.c: Likewise.
20331 * grub-core/gensymlist.sh: New file. Script for generating kernel
20333 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
20335 * grub-core/gentrigtables.c: Fix unused variable warnings.
20337 * Makefile.in: Removed.
20338 * conf/any-emu.rmk: Removed.
20339 * conf/common.rmk: Removed.
20340 * conf/i386-coreboot.rmk: Removed.
20341 * conf/i386-efi.rmk: Removed.
20342 * conf/i386-ieee1275.rmk: Removed.
20343 * conf/i386-multiboot.rmk: Removed.
20344 * conf/i386-pc.rmk: Removed.
20345 * conf/i386-qemu.rmk: Removed.
20346 * conf/i386.rmk: Removed.
20347 * conf/mips-yeeloong.rmk: Removed.
20348 * conf/mips.rmk: Removed.
20349 * conf/powerpc-ieee1275.rmk: Removed.
20350 * conf/sparc64-ieee1275.rmk: Removed.
20351 * conf/tests.rmk: Removed.
20352 * conf/x86-efi.rmk: Removed.
20353 * conf/x86_64-efi.rmk: Removed.
20354 * gendistlist.sh: Removed.
20355 * geninitheader.sh: Removed.
20356 * genkernsyms.sh.in: Removed.
20357 * genmk.rb: Removed.
20358 * gensymlist.sh.in: Removed.
20359 * mkinstalldirs: Removed.
20361 * grub-core/boot: ... to here.
20363 * grub-core/bus: ... to here.
20364 * commands: Moved ...
20365 * grub-core/commands: ... to here.
20367 * grub-core/disk: ... to here.
20368 * efiemu: Moved ...
20369 * grub-core/efiemu: ... to here.
20371 * grub-core/font: ... to here.
20373 * grub-core/fs: ... to here.
20374 * gencmdlist.sh: Moved ...
20375 * grub-core/gencmdlist.sh: ... to here.
20376 * genemuinit.sh: Moved ...
20377 * grub-core/genemuinit.sh: ... to here.
20378 * genemuinitheader.sh: Moved ...
20379 * grub-core/genemuinitheader.sh: ... to here.
20380 * genfslist.sh: Moved ...
20381 * grub-core/genfslist.sh: ... to here.
20382 * genhandlerlist.sh: Moved ...
20383 * grub-core/genhandlerlist.sh: ... to here.
20384 * genmoddep.awk: Moved ...
20385 * grub-core/genmoddep.awk: ... to here.
20386 * genmodsrc.sh: Moved ...
20387 * grub-core/genmodsrc.sh: ... to here.
20388 * genpartmaplist.sh: Moved ...
20389 * grub-core/genpartmaplist.sh: ... to here.
20390 * genparttoollist.sh: Moved ...
20391 * grub-core/genparttoollist.sh: ... to here.
20392 * genterminallist.sh: Moved ...
20393 * grub-core/genterminallist.sh: ... to here.
20394 * gentrigtables.c: Moved ...
20395 * grub-core/gentrigtables.c: ... to here.
20396 * genvideolist.sh: Moved ...
20397 * grub-core/genvideolist.sh: ... to here.
20398 * gettext: Moved ...
20399 * grub-core/gettext: ... to here.
20400 * gfxmenu: Moved ...
20401 * grub-core/gfxmenu: ... to here.
20402 * gnulib: Moved ...
20403 * grub-core/gnulib: ... to here.
20405 * grub-core/hello: ... to here.
20407 * grub-core/hook: ... to here.
20409 * grub-core/io: ... to here.
20411 * grub-core/kern: ... to here.
20413 * grub-core/lib: ... to here.
20414 * loader: Moved ...
20415 * grub-core/loader: ... to here.
20417 * grub-core/mmap: ... to here.
20418 * normal: Moved ...
20419 * grub-core/normal: ... to here.
20420 * partmap: Moved ...
20421 * grub-core/partmap: ... to here.
20422 * parttool: Moved ...
20423 * grub-core/parttool: ... to here.
20424 * script: Moved ...
20425 * grub-core/script: ... to here.
20427 * grub-core/term: ... to here
20428 * tests/example_functional_test.c: Moved ...
20429 * grub-core/tests/example_functional_test.c: ... to here.
20430 * tests/lib/functional_test.c: Moved ...
20431 * grub-core/tests/lib/functional_test.c: ... to here.
20432 * tests/lib/test.c: Moved ...
20433 * grub-core/tests/lib/test.c: ... to here.
20435 * grub-core/video: ... to here.
20437 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
20439 Replace --enable-grub-emu-modules with grub-emu-lite.
20441 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
20444 * include/grub/emu/misc.h (grub_emu_init): New prototype.
20445 * kern/emu/full.c: New file. For grub-emu specific initialization.
20446 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
20447 * kern/emu/main.c: Call initialization function grub_emu_init.
20449 * Makefile.in: Include grub-emu-lite in install.
20450 * commands/parttool.c: Use grub_no_autoload to differentiate
20451 between grub-emu and grub-emu-lite.
20452 * include/grub/misc.h: New variable grub_no_autoload.
20454 * conf/any-emu.rmk: New rules for grub-emu-lite.
20455 * configure.ac: Remove --enable-grub-emu-modules.
20456 * genmk.rb: Cleanup unnecessary rules.
20457 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
20459 * normal/main.c: Don't load list files on grub-emu-lite.
20460 * util/misc.c (grub_arch_sync_caches): Removed.
20462 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
20464 * kern/mips/startup.S (grub_prefix): Update comment to refer to
20465 grub-mkimage rather than grub-mkelfimage.
20466 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
20468 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
20470 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
20471 a key after CapsLock or NumLock. It's just a qemu bug.
20473 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
20475 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
20476 needed by libusb wrapper.
20478 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
20480 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
20482 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
20484 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
20485 --nounzip is passed.
20487 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
20489 USB hotunplugging and USB serial support.
20491 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
20492 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
20493 (grub_uhci_transfer): Respect timeout and set *actual.
20494 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
20495 non-standard length.
20496 (grub_usb_device_attach): Autoload modules.
20497 (GRUB_MOD_INIT): Set grub_term_poll_usb.
20498 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
20499 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
20501 (grub_usb_add_hub): Fill nports and children.
20502 (attach_root_port): Receive hub instead of controller.
20503 All users updated. Fill hub->devices.
20504 (grub_usb_root_hub): Allocate hub->devices.
20505 (detach_device): New function.
20506 (poll_nonroot_hub): Fill children and detach devices.
20507 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
20508 actual arguments. All users updated.
20509 (grub_usb_bulk_read_extended): New function.
20510 * bus/usb/serial/common.c: New file.
20511 * bus/usb/serial/ftdi.c: Likewise.
20512 * bus/usb/serial/pl2303.c: Likewise.
20513 * commands/terminal.c (handle_command): Support wildcard.
20514 * commands/usbtest.c: Output "Unknown" instead of empty string.
20515 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
20516 (usbserial_common_mod_SOURCES): New variable.
20517 (usbserial_common_mod_CFLAGS): Likewise.
20518 (usbserial_common_mod_LDFLAGS): Likewise.
20519 (pkglib_MODULES): Add usbserial_pl2303.mod.
20520 (usbserial_pl2303_mod_SOURCES): New variable.
20521 (usbserial_pl2303_mod_CFLAGS): Likewise.
20522 (usbserial_pl2303_mod_LDFLAGS): Likewise.
20523 (pkglib_MODULES): Add usbserial_ftdi.mod.
20524 (usbserial_ftdi_mod_SOURCES): New variable.
20525 (usbserial_ftdi_mod_CFLAGS): Likewise.
20526 (usbserial_ftdi_mod_LDFLAGS): Likewise.
20527 (pkglib_MODULES): Add serial.mod.
20528 (serial_mod_SOURCES): New variable.
20529 (serial_mod_CFLAGS): Likewise.
20530 (serial_mod_LDFLAGS): Likewise.
20531 * conf/i386-pc.rmk: Likewise.
20532 * conf/mips-yeeloong.rmk: Likewise.
20533 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
20534 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
20535 * disk/usbms.c (first_available_slot): New variable.
20536 (grub_usbms_attach): Don't reuse free slots due to potential cache
20538 * include/grub/serial.h: Moved to ..
20539 * include/grub/ns8250.h: ...this.
20540 * include/grub/serial.h: New file.
20541 * include/grub/term.h (grub_term_poll_usb): New variable.
20542 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
20543 readkey. All users updated.
20544 (grub_terminfo_output_state): Pass term to put.
20545 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
20546 (grub_usb_controller_dev): Add timeout and actual arguments to
20547 transfer. All users updated.
20548 (grub_usb_interface): New field detach_data.
20549 (grub_usb_device): New fields children and nports.
20550 (grub_usb_ep_type_t): New type.
20551 (grub_usb_get_ep_type): New function.
20552 (grub_usb_bulk_read_extended): Likewise.
20553 * include/grub/usbdesc.h (grub_usb_desc): New type.
20554 * include/grub/usbserial.h: New file.
20555 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
20556 * kern/term.c (grub_term_poll_usb): New variable.
20557 (grub_getkey): Call grub_term_poll_usb if set.
20558 (grub_checkkey): Likewise.
20559 (grub_getkeystatus): Likewise.
20560 * term/serial.c: Moved controller-specific parts to ...
20561 * term/ns8250.c: ... here.
20562 * term/serial.c: Mostly rewritten.
20563 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
20566 2010-08-20 Robert Millan <rmh@gnu.org>
20568 Make kFreeBSD code more generic to support ext2fs as root, ufs as
20569 a separate module and maybe other interesting combinations.
20571 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
20572 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
20573 (kfreebsd_entry): Add generic filesystem module load routine.
20574 Map GRUB `ext2' to kFreeBSD `ext2fs'.
20576 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
20578 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
20579 "numcenter" (I misunderstood the purpose of this entry).
20580 * docs/grub.texi (sendkey): Likewise.
20582 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
20584 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
20585 status flag options; simply omitting the option is equivalent and
20586 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
20587 (keysym_table): Rename "num5numlock" to "numlock".
20588 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
20589 can uniformly say that only the last of multiple `sendkey'
20590 invocations has any effect.
20591 * docs/grub.texi (sendkey): New section.
20593 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
20595 * commands/i386/pc/sendkey.c (options): Fix three typos.
20597 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
20599 Implement sendkey support.
20601 * commands/i386/pc/sendkey.c: New file.
20602 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
20603 (sendkey_mod_SOURCES): New variable.
20604 (sendkey_mod_CFLAGS): Likewise.
20605 (sendkey_mod_LDFLAGS): Likewise.
20607 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
20609 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
20610 fix warnings from Autoconf.
20612 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
20614 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
20615 to avoid false positives with some assemblers that output things
20616 like "someprefix_func" as part of their output.
20618 2010-08-15 Robert Millan <rmh@gnu.org>
20620 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
20622 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
20623 grub_get_libzfs_handle() errors.
20625 2010-08-14 Robert Millan <rmh@gnu.org>
20627 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
20628 filesystem is not ZFS.
20630 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20632 Fix for misspelled color names defaulting to black/black (bug
20633 reported by Doug Nazar)
20635 * include/grub/normal.h (grub_parse_color_name_pair): Add return
20636 status to prototype.
20637 * normal/color.c (grub_parse_color_name_pair): Return failure
20639 (grub_env_write_color_normal): Ignore bad color names.
20640 (grub_env_write_color_highlight): Likewise.
20641 * normal/main.c (GRUB_MOD_INIT): Set default color names.
20643 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20645 "shift" command support to GRUB script.
20647 * include/grub/script_sh.h (grub_script_shift): New prototype.
20648 * script/execute.c (grub_script_shift): New function.
20649 * script/main.c (grub_script_init): Register shift command.
20650 (grub_script_fini): Unregister shift command.
20651 * util/grub-script-check.c (grub_script_cmd_shift): New function.
20653 * tests/grub_script_shift.in: New testcase.
20654 * conf/tests.rmk: Rules for new testcase.
20656 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20658 "continue" command support to GRUB script.
20660 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
20661 (grub_script_break): Continue support.
20662 * script/main.c (grub_script_init): Register continue command.
20663 (grub_script_fini): Unregister continue command.
20665 * tests/grub_script_continue.in: New testcase.
20666 * conf/tests.rmk: Rules for new testcase.
20668 2010-08-12 BVK Chaitanya <bvk@dbook>
20670 "break" command support to GRUB script.
20672 * conf/common.rmk: Rule updates to grub-script-check.
20673 * include/grub/misc.h (grub_min): New function.
20674 * include/grub/script_sh.h (grub_script_init): New prototype.
20675 (grub_script_fini): New prototype.
20676 (grub_script_break): New prototype.
20677 * script/main.c (grub_script_init): New function.
20678 (grub_script_fini): New function.
20679 * script/execute.c (grub_script_break): New function.
20680 * normal/main.c: Calls to grub_script_{init,fini}.
20681 * util/grub-script-check.c (grub_script_break): New function.
20683 * tests/grub_script_break.in: New testcase.
20684 * conf/tests.rmk: Rules for new test case.
20686 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20688 Function parameters support to GRUB script.
20690 * script/yylex.l (VARIABLE): Regular expression update.
20691 * script/function.c (grub_script_function_call): Moved ...
20692 * script/execute.c (grub_script_function_call): ... to here.
20693 (grub_script_execute_arglist_to_argv): Removed.
20694 (grub_script_arglist_to_argv): New function.
20695 * script/argv.c: New file.
20696 (grub_script_argv_free): New function.
20697 (grub_script_argv_next): Likewise.
20698 (grub_script_argv_append): Likewise.
20699 (grub_script_argv_split_append): Likewise.
20700 * include/grub/script_sh.h (grub_script_argv): New struct.
20701 (grub_script_argv_free): New function.
20702 (grub_script_argv_next): Likewise.
20703 (grub_script_argv_append): Likewise.
20704 (grub_script_argv_split_append): Likewise.
20706 * conf/common.rmk (normal.mod): New source script/argv.c.
20708 * tests/grub_script_echo1.in: More tests.
20709 * tests/grub_script_vars1.in: Likewise.
20710 * tests/grub_script_functions.in: New test case.
20711 * conf/tests.rmk: Rules for new testcase.
20713 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20715 Remove grub_script_cmdblock struct.
20717 * include/grub/script_sh.h: Remove grub_script_cmdblock.
20718 * script/parser.y: Likewise.
20719 * script/execute.c: Rename cmdblock suffix to cmdlist.
20720 * script/script.c: Likewise.
20721 * util/grub-script-check.c: Likewise.
20723 2010-08-11 Yves Blusseau <blusseau@zetam.org>
20725 * .bzrignore: add grub-macho2img
20727 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
20729 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
20731 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
20733 Remove the dump of sm712 initialisation sequence.
20735 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
20736 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
20737 (GRUB_VGA_IO_MISC_WRITE): Likewise.
20738 (GRUB_VGA_CR_*): Added many registers.
20739 (GRUB_VGA_SR_*): Likewise.
20740 (GRUB_VGA_GR_*): Likewise.
20741 (grub_vga_write_arx): New function.
20742 (grub_video_hw_config): New struct.
20743 (grub_vga_set_geometry): New function.
20744 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
20745 GRUB_PCI_CLASS_SUBCLASS_VGA.
20746 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
20747 * video/sm712.c (grub_sm712_write_reg): New function
20748 (grub_sm712_read_reg): Likewise.
20749 (grub_sm712_sr_write): Likewise.
20750 (grub_sm712_gr_write): Likewise.
20751 (grub_sm712_cr_write): Likewise.
20752 (grub_sm712_write_arx): Likewise.
20753 (grub_sm712_cr_shadow_write): Likewise.
20754 (grub_sm712_write_dda_lookup): Likewise.
20755 (grub_video_sm712_setup): Initialise the video rather then
20756 blindly replay the dump.
20757 (main) [TEST]: Add a routine to be able to compile as standalone for
20759 * video/sm712_init.c (sm712_init): Removed.
20760 (sm712_sr_seq1): New array.
20761 (sm712_sr_seq2): Likewise.
20763 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
20765 * include/grub/vga.h: Add missing grub/pci.h include.
20767 2010-08-10 Yves Blusseau <blusseau@zetam.org>
20769 * util/grub-macho2img.c (main): fix typo
20771 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
20773 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
20774 (grub_vga_gr_read): Likewise.
20775 (grub_vga_cr_write): Likewise.
20776 (grub_vga_cr_read): Likewise.
20777 (grub_vga_sr_write): Likewise.
20778 (grub_vga_sr_read): Likewise.
20779 (grub_vga_palette_read): Likewise.
20780 (grub_vga_palette_write): Likewise.
20781 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
20782 (grub_sm712_sr_read): New function.
20783 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
20784 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
20786 2010-08-09 Robert Millan <rmh@gnu.org>
20788 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
20789 out unused variables on non-ZFS build.
20791 2010-08-08 Robert Millan <rmh@gnu.org>
20793 Fix path generation for sub-filesystems in ZFS.
20795 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
20798 2010-08-08 Robert Millan <rmh@gnu.org>
20800 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
20802 2010-08-08 Robert Millan <rmh@gnu.org>
20804 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
20805 exist, issue a proper error message (rely on `ls' for translated
20808 2010-08-08 Robert Millan <rmh@gnu.org>
20810 Fix grub-probe invocation.
20812 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
20814 2010-08-04 Robert Millan <rmh@gnu.org>
20816 * configure.ac: Remove checks for getfsstat() and getmntany().
20817 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
20818 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
20819 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
20820 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
20821 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
20823 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
20824 via find_mount_point_from_dir() and getfsstat() / getmntany().
20826 2010-08-04 Robert Millan <rmh@gnu.org>
20828 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
20829 (grub_find_zpool_from_mount_point): Merge into ...
20830 (grub_find_zpool_from_dir): ... this.
20831 * kern/emu/misc.c: Likewise.
20834 (grub_make_system_path_relative_to_its_root): Replace
20835 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
20836 with grub_find_zpool_from_dir().
20837 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
20839 2010-08-04 Robert Millan <rmh@gnu.org>
20841 Support OpenSolaris in ZFS device resolution.
20843 * configure.ac: Check for getmntany().
20844 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
20845 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
20848 2010-08-03 Robert Millan <rmh@gnu.org>
20850 Fix grub-emu build.
20852 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
20853 * include/grub/emu/misc.h: ... here.
20855 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
20856 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
20858 * util/misc.c: Remove `<grub/util/libzfs.h>'.
20859 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
20860 (grub_get_libzfs_handle): Move to ...
20861 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
20862 (grub_get_libzfs_handle): ... here.
20864 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
20866 * script/execute.c (grub_script_execute_cmdline): Check for NULL
20867 as command name case.
20869 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
20871 * disk/raid.c (insert_array): Select unique numbers for named arrays
20872 as well, for use as keys in the disk cache.
20874 2010-08-01 Robert Millan <rmh@gnu.org>
20876 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
20877 kFreeBSD device name, except on ZFS where the filesystem label is
20879 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
20880 `/boot/zfs/zpool.cache'.
20881 Set mountfrom kernel variable using ${kfreebsd_device}.
20883 2010-08-01 Robert Millan <rmh@gnu.org>
20885 Make it even harder to use uninitialized `libzfs_handle' (and
20886 make the interface a bit simpler).
20888 * include/grub/util/misc.h (grub_util_init_libzfs)
20889 (libzfs_handle): Remove.
20890 (grub_get_libzfs_handle): New prototype.
20892 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
20894 (grub_util_init_libzfs): Remove.
20895 (grub_get_libzfs_handle): New function.
20897 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
20898 grub_get_libzfs_handle() to obtain a libzfs handle instead of
20899 accessing `libzfs_handle' directly.
20901 2010-08-01 Robert Millan <rmh@gnu.org>
20903 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
20904 (grub_find_zpool_from_mount_point): New function prototypes.
20906 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
20907 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
20909 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
20910 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
20911 `static' attribute.
20913 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
20914 finding zpool from mount point into ...
20915 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
20917 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
20918 requested path is part of a ZFS pool, use
20919 grub_find_zpool_from_mount_point() to detect its filesystem name,
20920 and generate a path with `/fsname@path' syntax.
20922 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
20924 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
20925 (void) rather than () so that this is a proper prototype.
20927 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
20929 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
20931 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
20933 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
20934 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
20936 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
20938 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
20940 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
20942 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
20944 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
20946 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
20947 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
20948 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
20949 disable gfxpayload.
20950 (Shell-like scripting): Add real content.
20951 (Serial terminal): Suggest `terminal_input serial; terminal_output
20952 serial' rather than putting the two commands on separate lines,
20953 since console input will be inoperative after the first command.
20954 (menuentry): Document --class, --users, and --hotkey options.
20955 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
20956 Vladimir Serbinenko).
20958 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
20959 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
20961 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
20963 2010-08-01 Robert Millan <rmh@gnu.org>
20965 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
20966 (grub_find_zpool_from_mount_point): New function prototypes.
20968 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
20969 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
20971 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
20972 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
20973 `static' attribute.
20975 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
20976 finding zpool from mount point into ...
20977 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
20979 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
20980 requested path is part of a ZFS pool, use
20981 grub_find_zpool_from_mount_point() to detect its filesystem name,
20982 and generate a path with `/fsname@path' syntax.
20984 2010-08-01 Robert Millan <rmh@gnu.org>
20986 Prevent accidental use of uninitialized libzfs_handle.
20988 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
20989 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
20990 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
20992 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
20994 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
20995 util/grub.d/10_linux.in). Fixes Debian bug #591093.
20997 2010-08-01 Robert Millan <rmh@gnu.org>
20999 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
21001 2010-07-31 Robert Millan <rmh@gnu.org>
21003 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
21005 2010-07-31 Robert Millan <rmh@gnu.org>
21007 * kern/emu/misc.c: Add missing license header.
21009 2010-07-31 Robert Millan <rmh@gnu.org>
21011 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
21013 * include/grub/util/libnvpair.h: Include `<config.h>'.
21014 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
21015 declaring libnvpair prototypes ourselves.
21016 * include/grub/util/libzfs.h: Include `<config.h>'.
21017 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
21018 declaring libzfs prototypes ourselves.
21020 (libzfs_handle): Moved to ...
21021 * include/grub/util/misc.h (libzfs_handle): ... here.
21022 Include `<grub/util/libzfs.h>'.
21024 2010-07-30 Robert Millan <rmh@gnu.org>
21026 * include/grub/emu/misc.h: Add missing license header.
21028 2010-07-30 Robert Millan <rmh@gnu.org>
21030 Enable `grub-probe -t device' resolution on ZFS.
21032 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
21033 * include/grub/util/libnvpair.h: New file.
21034 * include/grub/util/libzfs.h: New file.
21036 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
21037 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
21038 `<grub/util/libnvpair.h>'.
21039 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
21041 (find_mount_point_from_dir): New static function.
21042 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
21044 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
21045 find_root_device_from_libzfs() before ressorting to find_root_device().
21047 * include/grub/util/misc.h (grub_util_init_libzfs): New function
21049 * util/misc.c: Include `<grub/util/libzfs.h>'.
21050 (grub_util_init_libzfs): New function.
21051 [HAVE_LIBZFS] (libzfs_handle): New global variable.
21052 [HAVE_LIBZFS] (fini_libzfs): New static function.
21053 (grub_util_init_libzfs): New function.
21054 * util/grub-probe.c (main): Call grub_util_init_libzfs().
21056 2010-07-30 Robert Millan <rmh@gnu.org>
21058 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
21059 (xmalloc, xrealloc, xstrdup, xasprintf): Add
21060 `warn_unused_result' attribute.
21061 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
21062 (grub_xasprintf, grub_xvasprintf): Likewise.
21063 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
21065 2010-07-29 Robert Millan <rmh@gnu.org>
21067 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
21068 (probe): Handle `PRINT_FS_LABEL'.
21069 (main): Handle `-t fs_label'.
21071 2010-07-29 Robert Millan <rmh@gnu.org>
21073 * configure.ac: Remove grub-mkisofs checks.
21075 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
21077 * util/ieee1275/grub-install.in: Don't use empty grub_device.
21078 Reported by: Lennart Sorensen.
21080 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21082 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
21083 prior to terminal_input/terminal_output separation. It's been over 1.5
21084 years and those versions weren't widely deployed.
21086 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
21088 * disk/raid.c (insert_array): Don't count named arrays when looking
21089 for unused array numbers.
21090 Reported and tested by: Michael Guntsche.
21092 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21094 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
21095 implementation of this so that grub-emu links again, with a note
21096 that this should support hotplugging in the future.
21098 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21100 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
21102 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21104 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
21106 (grub_loopback_close): Remove empty function.
21107 (grub_loopback_dev): Remove close method.
21109 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21111 Disable EFI cursor when the EFI console becomes inactive.
21113 * term/efi/console.c (grub_efi_console_init): New function.
21114 (grub_efi_console_fini): New function.
21115 (grub_console_term_output): Register init and fini methods.
21117 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21119 * tests/util/grub-shell-tester.in: Remove bashism and declare as
21122 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21124 * disk/loopback.c (grub_loopback): Replace filename with file.
21125 (delete_loopback): Handle new semantics.
21126 (grub_cmd_loopback): Likewise.
21127 (grub_loopback_iterate): Likewise.
21128 (grub_loopback_close): Likewise.
21130 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21132 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
21134 Reported by: Tito Keitel.
21136 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21138 * docs/grub.texi (Naming convention): Document new naming convention.
21140 2010-07-20 Vadim Solomin <vadic052@gmail.com>
21141 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21143 Generate device.map in something closer to the old ordering.
21145 * util/deviceiter.c (struct device): New declaration.
21146 (compare_file_names): Rename to ...
21147 (compare_devices): ... this. Sort by kernel name in preference to
21148 the stable by-id name, but keep the latter as a fallback comparison.
21149 Update header comment.
21150 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
21151 of `struct device' rather than of plain file names.
21153 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
21155 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
21158 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21160 * commands/acpi.c (setup_common_tables): Use sizeof instead of
21162 (setv1table): Likewise.
21164 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21166 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
21167 removing the homehost if present.
21168 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
21169 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
21170 removing the homehost if present.
21171 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
21173 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
21175 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
21176 parameter. Set its pointer target to 0.
21177 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
21178 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
21179 `data_offset' value from the superblock for 1.x metadata.
21180 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
21181 data on the device.
21182 (insert_array): Record the start sector of data on the device.
21183 (grub_raid_register): Pass start_sector parameters to
21184 grub_raid_list->detect and insert_array.
21185 * include/grub/raid.h (struct grub_raid_array): Add start_sector
21187 (struct grub_raid): Add start_sector parameter to `detect'.
21189 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
21190 __attribute__ ((packed)), leaving a comment.
21191 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
21192 (grub_mdraid_detect_09): ... here and ...
21193 (grub_mdraid_detect_1x): ... here.
21195 2010-07-20 Peter Henn <peter.henn@web.de>
21197 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
21198 chunk size and disk size, which are already given as sector counts
21199 as distinct from the 0.90 units. Fetch the correct device number
21200 from the role table instead of using the table index.
21202 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
21204 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
21205 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
21206 (WriteMostly1): New macro.
21207 Set array->name to NULL for metadata format 0.90. Add support for
21208 metadata 1.x. Fix some comments.
21209 * disk/raid.c (): Add support for name based RAID arrays. Fix a
21211 * util/getroot.c (grub_util_get_grub_dev): Add support for
21212 /dev/md/name style devices.
21214 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21216 * .bzrignore: Ignore 20_linux_xen.
21218 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
21220 * util/import_unicode.py: Remove unnecessary imports.
21222 2010-07-17 Aleš Nesrsta <starous@volny.cz>
21224 Hotplugging and USB hub support.
21226 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
21227 (grub_ohci): Likewise.
21228 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
21229 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
21230 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
21231 (GRUB_OHCI_CTRL_EDS): Likewise.
21232 (GRUB_OHCI_BULK_EDS): Likewise.
21233 (GRUB_OHCI_TDS): Likewise.
21234 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
21235 (grub_ohci_ed_phys2virt): New function.
21236 (grub_ohci_virt_to_phys): Likewise.
21237 (grub_ohci_td_phys2virt): Likewise.
21238 (grub_ohci_td_virt2phys): Likewise.
21239 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
21241 (grub_ohci_find_ed): New function.
21242 (grub_ohci_alloc_td): Likewise.
21243 (grub_ohci_free_td): Likewise.
21244 (grub_ohci_free_tds): Likewise.
21245 (grub_ohci_transfer): Use previously allocated memory.
21246 (grub_ohci_portstatus): Reset status changed bit.
21247 (grub_ohci_detect_dev): Supply status changed.
21248 (grub_ohci_fini_hw): Free memory.
21249 (grub_ohci_restore_hw): Reallocate memory.
21250 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
21251 Reset status change.
21252 (grub_uhci_detect_dev): Supply status_change.
21253 * bus/usb/usb.c (attach_hooks): New var.
21254 (grub_usb_device_attach): New function.
21255 (grub_usb_register_attach_hook_class): Likewise.
21256 (grub_usb_unregister_attach_hook_class): Likewise.
21257 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
21258 (grub_usb_add_hub): Reset connection changed bit.
21259 (attach_root_port): New function.
21260 (grub_usb_root_hub): Likewise.
21261 (poll_nonroot_hub): Likewise.
21262 (grub_usb_poll_devices): Likewise.
21263 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
21264 * disk/usbms.c (grub_usbms_open): Use device hooks.
21265 (grub_usbms_iterate) :Poll devices.
21266 (grub_usbms_finddevs): Split into ...
21267 (grub_usbms_attach): ... this ...
21268 (grub_usbms_attach): ... and this.
21269 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
21271 (grub_usb_interface): New fields attached and detach_hook.
21272 (grub_usb_attach_hook_class): New type.
21273 (grub_usb_attach_desc): New struct.
21274 (grub_usb_register_attach_hook_class): New function.
21275 (grub_usb_unregister_attach_hook_class): Likewise.
21276 (grub_usb_poll_devices): Likewise.
21277 (grub_usb_device_attach): Likewise.
21278 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
21279 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
21281 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
21283 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
21284 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
21285 delta determination style. Works with most NetBSD partitions too.
21287 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
21289 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
21290 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
21292 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
21294 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
21296 2010-07-14 Anton Blanchard <anton@samba.org>
21298 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
21301 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
21303 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
21305 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
21307 * kern/partition.c (grub_partition_check_containment): New function to
21308 check that a partition is physically contained in a parent. Since
21309 offsets are relative (and non-negative), this reduces to checking that
21310 the partition ends before its parent.
21311 (grub_partition_map_probe): Discard out-of-range sub-partitions.
21312 (grub_partition_iterate): Likewise.
21313 * include/grub/partition.h (grub_partition_map): Slightly more detailed
21315 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
21316 partitions that start before their parent, and add debug printfs.
21318 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
21320 * Makefile.in (.SUFFIX): Spell correctly, as ...
21321 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
21322 bare module name without `.mod', e.g. `test') tried to invoke a
21325 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
21327 * README: Point to the Info manual.
21329 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
21331 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
21332 2nd superblock position from partition size.
21334 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
21336 * Makefile.in (MAINTAINER_CLEANFILES): Remove
21337 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
21338 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
21341 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
21343 Restructure SCSI .id handling.
21344 Reported and tested by: Aleš Nesrsta.
21346 * disk/ata.c (grub_atapi_close): Removed. All users updated.
21347 (grub_atapi_dev): Changed .name to "ata". New field .id.
21348 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
21349 (grub_usbms_dev): New field .id.
21350 * disk/scsi.c (grub_scsi_iterate): Generate name.
21351 (grub_scsi_open): Parse name.
21352 * include/grub/scsi.h (grub_make_scsi_id): New function.
21353 (grub_scsi_dev): Change iterate and open to number instead of naming
21354 busses. All users updated.
21355 (grub_scsi): Remove name. Add .bus.
21357 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
21359 * commands/help.c (grub_cmd_help): Fix a typo.
21361 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
21363 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
21364 Reported and tested by: Colin Watson.
21366 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
21368 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
21371 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
21373 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
21375 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
21377 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
21380 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21382 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
21383 and disk/raid6_recover.c.
21384 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
21385 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
21387 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21389 * term/gfxterm.c (repaint_schedulded): Rename to ...
21390 (repaint_scheduled): ... this. Update all callers.
21391 (repaint_was_schedulded): Rename to ...
21392 (repaint_was_scheduled): ... this. Update all callers.
21394 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21396 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
21397 which we expect to be handled by upper layers.
21399 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
21401 * bus/usb/usbhub.c: #include time.h header.
21403 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21405 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
21406 entry_name also for entries without stat blocks (e.g. ".."); fixes
21407 corruption of the first entry in a directory.
21409 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21411 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
21412 after setting gfxterm as the active terminal. GRUB_BACKGROUND
21413 doesn't work otherwise.
21415 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
21417 * docs/grub.texi (Features): Update list of supported file systems.
21418 (GNU/Linux): Update for GRUB 2.
21419 (Serial terminal): Remove mention of --disable-serial, which was a
21420 GRUB Legacy configure option. Update instructions to use
21421 `terminal_input' and `terminal_output' rather than `terminal'.
21422 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
21423 configuration' and `Installing GRUB using grub-install'.
21424 (Menu entry editor): Update for GRUB 2.
21425 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
21426 Document new -a, -u, and -v options.
21427 (initrd): New section.
21428 (initrd16): New section.
21429 (linux): New section.
21430 (linux16): New section.
21431 (search): The `var' argument to `--set' is optional.
21432 (GRUB only offers a rescue shell): Go into a little more detail on
21435 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
21437 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
21439 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
21441 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
21442 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
21444 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
21446 * util/i386/pc/grub-setup.c (setup): Rename prefix to
21447 install_prefix, in line with install_dos_part and install_bsd_part.
21448 Add new prefix variable, which is copied to install_prefix after
21449 comparing core.img in memory with the one read from disk in the
21450 no-embedding case, and use that rather than overwriting
21451 install_prefix immediately when installing to a partition.
21452 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
21455 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
21457 * configure.ac: Avoid == in test command, it's not portable.
21458 * util/grub.d/30_os-prober.in: Likewise.
21460 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
21462 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
21464 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
21466 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
21467 multiple (top-level) partmaps.
21469 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21471 * util/i386/efi/grub-install.in: Don't use empty grub_device.
21472 Reported by: Tino Keitel.
21474 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21476 Bidi and diacritics support.
21478 * Makefile.in (widthspec.bin): New target.
21479 (widthspec.h): Likewise.
21480 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
21481 * autogen.sh: Generate unidata.c.
21482 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
21483 * commands/ls.c (grub_ls_list_devices): Likewise.
21484 (grub_ls_list_files): Likewise.
21485 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
21486 (grub_mini_cmd_lsmod): Likewise.
21487 * commands/read.c: Likewise.
21488 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
21489 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
21490 * lib/arg.c (grub_arg_show_help): Likewise.
21491 * lib/crypto.c (grub_password_get): Likewise.
21492 * normal/auth.c (grub_username_get): Likewise.
21493 * normal/misc.c (grub_normal_print_device_info): Likewise.
21494 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
21495 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
21496 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
21497 (normal/charset.c_DEPENDENCIES): New variable.
21498 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
21499 (pkglib_MODULES): Remove charset.mod.
21500 (charset_mod_SOURCES): Removed.
21501 (charset_mod_CFLAGS): Likewise.
21502 (charset_mod_LDFLAGS): Likewise.
21503 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
21504 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
21506 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
21507 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
21508 (kernel_img_HEADERS): Add terminfo.h.
21509 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
21510 Fill ->font. Reverse ascii bitmaps.
21511 (grub_font_get_xheight): New function.
21512 * font/font.c (grub_font_get_string_width): Moved from here ...
21513 * gfxmenu/font.c (grub_font_get_string_width): ... here.
21514 * font/font.c (grub_font_draw_string): Moved from here ...
21515 * gfxmenu/font.c (grub_font_draw_string): ... here.
21516 * font/font.c (grub_font_dup_glyph): New function.
21517 (grub_font_blit_glyph): Likewise.
21518 (grub_font_blit_glyph_mirror): Likewise.
21519 (blit_comb): Likewise.
21520 (grub_font_construct_dry_run): Likewise.
21521 (grub_font_get_constructed_device_width): Likewise.
21522 (grub_font_construct_glyph): Likewise.
21523 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
21524 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
21525 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
21526 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
21527 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
21528 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
21529 (grub_font_get_xheight): New proto.
21530 (grub_font_get_constructed_device_width): Likewise.
21531 (grub_font_construct_glyph): Likewise.
21532 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
21533 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
21534 * include/grub/font.h (grub_font_draw_string): Moved from here ...
21535 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
21536 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
21537 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
21538 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
21539 (grub_console_getcharwidth): Likewise.
21540 * include/grub/misc.h (grub_xputs): New proto.
21541 (grub_puts): Inlined.
21542 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
21543 (grub_normal_get_line_counter): Removed.
21544 (grub_install_newline_hook): Likewise.
21545 (grub_normal_get_char_counter): New proto.
21546 (grub_normal_reset_more): Likewise.
21547 (grub_xputs_normal): Likewise.
21548 * include/grub/powerpc/ieee1275/console.h: Removed.
21549 * include/grub/sparc64/ieee1275/console.h: Likewise.
21550 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
21551 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
21552 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
21553 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
21554 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
21555 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
21556 (grub_term_input): Pass reference to self. All users updated.
21557 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
21558 Pass reference to self. New fields normal_color, highlight_color and
21559 data. All users updated.
21560 (grub_putchar): Removed.
21561 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
21562 (grub_unicode_estimate_width): New function.
21563 (grub_term_getcharwidth): Add defaults.
21564 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
21565 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
21566 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
21567 (grub_cls): Remove EXPORT_FUNC.
21568 (grub_setcolorstate): Inline.
21569 (grub_newline_hook): Removed.
21570 * include/grub/terminfo.h: Rewritten. All users updated.
21571 * include/grub/unicode.h: New file.
21572 * include/grub/video.h (grub_video_signed_rect): New type.
21573 * kern/emu/console.c (grub_console_highlight_color): Removed.
21574 (grub_console_normal_color): Likewise.
21575 (grub_console_standard_color): Made static.
21576 (grub_ncurses_putchar): Remove mapping.
21577 (grub_ncurses_getcharwidth): Removed.
21578 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
21579 (grub_ncurses_setcolor): Removed.
21580 (grub_ncurses_getcolor): Likewise.
21581 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
21582 (grub_console_putchar): ... this.
21583 (grub_console_putchar): Handle argument difference.
21584 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
21585 console_init_early and console_init_lately.
21586 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
21587 * kern/misc.c (grub_puts): Removed.
21588 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
21589 (grub_vsnprintf_real): Remove str = NULL support.
21590 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
21591 * normal/charset.c (grub_utf8_to_ucs4): ... here.
21592 * kern/term.c (grub_putcode): Renamed to ...
21593 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
21594 (grub_putchar): Removed.
21595 (grub_xputs_dumb): New function.
21596 (grub_xputs): New variable.
21597 * lib/charset.c: Move from here ...
21598 * normal/charset.c: ... to here.
21599 (grub_ucs4_to_utf8): New function.
21600 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
21601 (join_types): New variable.
21602 (unpack_join): New function.
21603 (bidi_types): New variable.
21604 (unpack_bidi): New function.
21605 (get_bidi_type): Likewise.
21606 (get_join_type): Likewise.
21607 (is_mirrored): Likewise.
21608 (grub_unicode_get_comb_type): Likewise.
21609 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
21610 (is_type_after): Likewise.
21611 (grub_unicode_aglomerate_comb): Likewise.
21612 (bidi_line_wrap): Likewise.
21613 (grub_bidi_line_logical_to_visual): Likewise.
21614 (grub_bidi_logical_to_visual): Likewise.
21615 (grub_unicode_mirror_code): Likewise.
21616 (grub_unicode_shape_code): Likewise.
21617 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
21618 Don't use grub_putchar.
21619 * normal/main.c (grub_normal_init_page): Use grub_putcode.
21620 (grub_normal_reader_init): Likewise.
21621 (grub_xputs_saved): New variable.
21622 (GRUB_MOD_INIT): Set grub_xputs.
21623 (GRUB_MOD_FINI): Restore grub_xputs.
21624 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
21625 (menu_init): Avoid printing gfxmenu error.
21626 (show_menu): Use grub_normal_get_char_counter.
21627 * normal/menu_entry.c (update_screen): Fix out-of-array.
21628 (complete): Avoid NULL dereferencing.
21629 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
21630 * normal/menu_text.c (print_spaces): Removed.
21631 (grub_print_ucs4): Likewise.
21632 (grub_print_message_indented): Use grub_print_ucs4.
21633 (print_message): Use grub_putcode.
21634 (print_entry): Hanlde diacritics.
21635 * normal/term.c (term_state): New type.
21636 (grub_more_lines): Removed.
21637 (term_states): New variable.
21638 (grub_normal_line_counter): Renamed to ..
21639 (grub_normal_char_counter): ...this. All users updated.
21640 (grub_normal_get_line_counter): Renamed to ...
21641 (grub_normal_get_char_counter): ... this.
21642 (grub_normal_reset_more): New function.
21643 (process_newline): Removed.
21644 (print_more): New function.
21645 (grub_install_newline_hook): Removed.
21646 (map_code): New function.
21647 (grub_puts_terminal): Use grub_print_ucs4.
21648 (putglyph): New function.
21649 (putcode_real): Likewise.
21650 (grub_putcode): Use putcode_real.
21651 (get_maxwidth): New function.
21652 (get_startwidth): Likewise.
21653 (print_ucs4_terminal): Likewise.
21654 (find_term_state): Likewise.
21655 (put_glyphs_terminal): Likewise.
21656 (print_backlog): Likewise.
21657 (print_ucs4_real): Likewise.
21658 (grub_print_ucs4): Likewise.
21659 (grub_xputs_normal): Likewise.
21660 * term/efi/console.c (grub_console_putchar): Output diacritics.
21661 (grub_console_getcharwidth): Removed.
21662 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
21663 * term/gfxterm.c (clear_char): Free chars.
21664 (scroll_up): Avoid leaking memory.
21665 (grub_gfxterm_putchar): Support diacritics.
21666 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
21667 * term/i386/pc/console.c (grub_console_term_output): Declare as
21668 GRUB_TERM_CODE_TYPE_VGA.
21669 * term/i386/pc/vga.c (grub_vga_term): Declare as
21670 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
21671 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
21672 GRUB_TERM_CODE_TYPE_VGA.
21673 * term/i386/vga_common.c (map_char): Removed.
21674 (grub_console_putchar): Likewise.
21675 (grub_console_getcharwidth): Likewise.
21676 * term/ieee1275/ofconsole.c: Simplify using terminfo.
21677 (colors): Reordered to match terminfo.
21678 (grub_ofconsole_normal_color): Removed.
21679 (grub_ofconsole_writeesc): Likewise.
21680 (grub_ofconsole_highlight_color): Likewise.
21681 (grub_ofconsole_getcharwidth): Likewise.
21682 (grub_ofconsole_setcolorstate): Likewise.
21683 (grub_ofconsole_setcolor): Likewise.
21684 (grub_ofconsole_getcolor): Likewise.
21685 (grub_ofconsole_readkey): Renamed to ...
21686 (readkey): ... this. Remove escape sequence handling. Return -1 on no
21688 (grub_ofconsole_checkkey): Removed.
21689 (grub_ofconsole_getkey): Likewise.
21690 (grub_ofconsole_getxy): Likewise.
21691 (grub_ofconsole_gotoxy): Likewise.
21692 (grub_ofconsole_cls): Likewise.
21693 (grub_ofconsole_refresh): Likewise.
21694 (grub_ofconsole_terminfo_input): New struct.
21695 (grub_ofconsole_terminfo_output): Likewise.
21696 (grub_ofconsole_term_input): Use terminfo.
21697 (grub_ofconsole_term_output): Likewise.
21698 (grub_console_init): Split into ...
21699 (grub_console_init_early): ...this and ...
21700 (grub_console_init_lately): ...this. Use terminfo.
21701 (grub_ofconsole_putchar): Renamed to ...
21702 (put): ... this. Remove mapping.
21703 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
21704 * term/serial.c: Simplify using terminfo.
21707 (keep_track): Likewise.
21708 (registered): Likewise.
21709 (input_buf): Likewise.
21710 (npending): Likewise.
21711 (serial_translate_key_sequence): Likewise.
21712 (fill_input_buf): Likewise.
21713 (grub_serial_checkkey): Likewise.
21714 (grub_serial_getkey): Likewise.
21715 (grub_serial_getxy): Likewise.
21716 (grub_serial_gotoxy): Likewise.
21717 (grub_serial_putchar): Likewise.
21718 (grub_serial_cls): Likewise.
21719 (grub_serial_setcolorstate): Likewise.
21720 (grub_serial_setcursor): Likewise.
21721 (serial_hw_init): Use serial_hw_fetch.
21722 (grub_serial_terminfo_input): New variable.
21723 (grub_serial_terminfo_output): Likewise.
21724 (grub_serial_term_input): Use terminfo.
21725 (grub_serial_term_output): Likewise.
21726 * term/terminfo.c (putstr): Use put.
21727 (grub_terminfo_all_free): New function
21728 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
21729 (grub_terminfo_output_register): New function.
21730 (grub_terminfo_output_unregister): Likewise.
21731 (grub_terminfo_getxy): Likewise.
21732 (grub_terminfo_readkey): Likewise.
21733 (grub_terminfo_checkkey): Likewise.
21734 (grub_terminfo_getkey): Likewise.
21735 (grub_terminfo_input_init): Likewise.
21736 (print_terminfo): Likewise.
21737 (grub_cmd_terminfo): Handle encoding.
21738 (grub_terminfo_gotoxy): Track position.
21739 (grub_terminfo_cls): Likewise.
21740 (grub_terminfo_putchar): Likewise.
21741 (grub_terminfo_setcolorstate): Handle colors
21742 (grub_terminfo_cursor_on): This ...
21743 (grub_terminfo_cursor_off): ... and this merged into ...
21744 (grub_terminfo_setcursor): ... this.
21745 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
21746 * unicode/ArabicShaping.txt: New file (imported from Unicode).
21747 * unicode/BidiMirroring.txt: Likewise.
21748 * unicode/UnicodeData.txt: Likewise.
21749 * unicode/COPYING: Likewise.
21750 * util/grub-editenv.c (grub_putchar): Removed.
21751 (grub_xputs_real): New function.
21752 (grub_xputs): New variable.
21753 * util/grub-fstest.c (grub_putchar): Removed.
21754 (grub_xputs_real): New function.
21755 (grub_xputs): New variable.
21756 * util/grub-mkdevicemap.c (grub_putchar): Removed.
21757 (grub_xputs_real): New function.
21758 (grub_xputs): New variable.
21759 * util/grub-probe.c (grub_putchar): Removed.
21760 (grub_xputs_real): New function.
21761 (grub_xputs): New variable.
21762 * util/grub-script-check.c (grub_putchar): Removed.
21763 (grub_xputs_real): New function.
21764 (grub_xputs): New variable.
21765 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
21766 (grub_xputs_real): New function.
21767 (grub_xputs): New variable.
21768 * util/import_unicode.py: New file.
21769 * util/grub-mkfont.c (ft_errmsgs): New array.
21770 (grub_glyph_info): Make bitmap a pointer.
21771 (file_formats): New type WIDTH_SPEC.
21772 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
21773 (options): Add width-spec.
21775 (add_char): Renamed to ...
21776 (add_glyph): ... this.
21777 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
21778 (glyph_replace): New type.
21779 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
21780 (add_char): New function.
21781 (add_subst): Likewise.
21782 (process_cursive): Likewise.
21783 (add_font): Handle GSUB.
21784 (write_font_width_spec): New function.
21785 (main): Sort glyphs.
21786 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
21787 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
21788 * kern/term.c (grub_cls): Moved from here...
21789 * normal/term.c (grub_cls): ... here.
21791 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
21793 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
21794 suitable for using within the format argument of printf when
21795 converting grub_size_t.
21796 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
21797 "x" to convert grub_size_t arguments.
21799 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21801 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
21803 (list_get_minimal_size): Take selection box into account.
21805 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21807 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
21810 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
21812 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
21813 devices when iterating over /dev/disk/by-id; they will be handled
21814 later if appropriate, which they aren't always (e.g. LVM).
21816 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
21818 * include/grub/misc.h (grub_reboot): Declare as noreturn.
21819 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
21821 (grub_halt): Likewise.
21822 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
21824 (grub_halt): Don't return, even if all of shut-down, power-off, and
21827 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
21829 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
21830 arguments, not three.
21832 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
21834 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
21835 * util/grub.d/10_linux.in: Use it to check for LVM, so that
21836 LVM-on-RAID is handled correctly.
21838 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
21840 * docs/grub.texi (Changes from GRUB Legacy): New section.
21841 (Future): Fix typo.
21843 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
21845 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
21846 grub.d/README accidentally ends up executable for one reason or
21847 another. Ignore it.
21849 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21851 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
21852 (gpt_partition_map_iterate): Support non-512B sectors.
21854 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21856 * kern/efi/init.c (grub_efi_init): Disable watchdog.
21857 Tested by: Seth Goldberg.
21859 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21861 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
21862 Properly align mbi.
21863 Reported by: Seth Goldberg.
21865 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
21867 * util/grub-mkrescue.in: Avoid module duplication.
21869 2010-07-01 Sean Finney <seanius@seanius.net>
21871 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
21873 2010-07-01 Sean Finney <seanius@seanius.net>
21875 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
21877 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
21879 * disk/lvm.c (grub_lvm_checkvalue): New function.
21880 (grub_lvm_check_flag): Likewise.
21882 2010-07-01 Robert Millan <rmh@gnu.org>
21884 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
21885 Support 'p' as partition separator on kernel of FreeBSD (used
21887 (grub_util_biosdisk_get_grub_dev): Likewise.
21889 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
21891 Yeeloong firmware port.
21893 * boot/mips/yeeloong/fwstart.S: New file.
21894 * bus/cs5536.c (gpiodump): New const.
21895 (set_io_space): New function.
21896 (set_iod): Likewise.
21897 (set_p2d): Likewise.
21898 (grub_cs5536_init_geode): Likewise.
21899 * commands/mips/yeeloong/lsspd.c: New file.
21900 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
21901 (serial_mod_SOURCES): New variable.
21902 (serial_mod_CFLAGS): Likewise.
21903 (serial_mod_LDFLAGS): Likewise.
21904 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
21905 term/terminfo.c and term/tparm.c.
21906 (pkglib_IMAGES): Add fwstart.img.
21907 (fwstart_img_SOURCES): New variable.
21908 (fwstart_img_CFLAGS): Likewise.
21909 (fwstart_img_ASFLAGS): Likewise.
21910 (fwstart_img_LDFLAGS): Likewise.
21911 (fwstart_img_FORMAT): Likewise.
21912 (pkglib_MODULES): Add lsspd.mod.
21913 (lsspd_mod_SOURCES): New variable.
21914 (lsspd_mod_CFLAGS): Likewise.
21915 (lsspd_mod_LDFLAGS): Likewise.
21916 (pkglib_MODULES): Add halt.mod.
21917 (halt_mod_SOURCES): New variable.
21918 (halt_mod_CFLAGS): Likewise.
21919 (halt_mod_LDFLAGS): Likewise.
21920 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
21921 (serial_mod_SOURCES): Removed.
21922 (serial_mod_CFLAGS): Likewise.
21923 (serial_mod_LDFLAGS): Likewise.
21924 * disk/ata.c (check_device): New function.
21925 (grub_ata_device_initialize): Use check_device.
21926 (grub_ata_iterate): Recheck devices.
21927 (grub_ata_open): Likewise.
21928 (grub_atapi_iterate): Likewise.
21929 (grub_atapi_open): Likewise.
21930 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
21931 (GRUB_ATA_CH1_PORT1): Likewise.
21932 (GRUB_ATA_CH0_PORT2): Likewise.
21933 (GRUB_ATA_CH1_PORT2): Likewise.
21934 * include/grub/mips/loongson.h: New file.
21935 * include/grub/mips/yeeloong/ec.h: Likewise.
21936 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
21937 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
21938 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
21939 * include/grub/misc.h (grub_halt): Declare as noreturn.
21940 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
21941 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
21942 (UART_ENABLE_FIFO_TRIGGER1): New definition.
21943 (UART_ENABLE_DTRRTS): Likewise.
21944 (UART_ENABLE_MODEM): Removed.
21945 (UART_ENABLE_OUT2): New const.
21946 * include/grub/term.h (grub_term_register_input_active): New function.
21947 (grub_term_register_output_active): Likewise.
21948 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
21950 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
21951 (init_pci): New function.
21952 (grub_machine_init): Execute platform init when firmware. Init serial.
21953 (grub_halt): Implement.
21954 (grub_exit): Likewise.
21955 (grub_reboot): Likewise.
21956 * term/serial.c (serial_hw_init): Update macros.
21957 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
21958 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
21959 (image_targets): New target mipsel-yeeloong-flash.
21960 (generate_image): Support IMAGE_YEELOONG_FLASH.
21961 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
21962 (grub_video_sm712_setup): Init card.
21963 (grub_video_sm712_set_palette): Removed.
21964 * video/sm712_init.c: New file.
21966 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
21968 * Makefile.in (install-local): Temporarily prepend $(builddir) to
21969 PATH when running help2man and then run it on the unadorned
21970 executable names, rather than passing $(builddir)/* paths to
21971 help2man. This avoids the build directory ending up in generated
21974 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
21976 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
21977 to avoid accidents when debugging with 'sh -x'.
21978 * util/grub-mkrescue.in: Likewise.
21979 * util/grub.d/00_header.in: Likewise.
21980 * util/grub.d/10_hurd.in: Likewise.
21981 * util/grub.d/10_kfreebsd.in: Likewise.
21982 * util/grub.d/10_linux.in: Likewise.
21983 * util/grub.d/10_netbsd.in: Likewise.
21984 * util/grub.d/10_windows.in: Likewise.
21985 * util/grub.d/20_linux_xen.in: Likewise.
21986 * util/grub.d/30_os-prober.in: Likewise.
21987 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21989 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
21991 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
21992 last character in the buffer.
21993 Reported by: Vladimir Serbinenko.
21995 2010-06-29 Robert Millan <rmh@gnu.org>
21997 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
21998 (Command-line and menu entry commands): Document `badram' command.
22000 2010-06-28 Robert Millan <rmh@gnu.org>
22002 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
22003 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
22004 command using ${GRUB_BADRAM} as parameter.
22006 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
22008 * docs/grub.texi (Device map): New section.
22009 (Themes): New section (stub).
22010 * Makefile.in (docs/grub.info): The info documentation now builds
22011 without errors. Make sure it stays that way.
22013 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
22015 Use normal parser for menu entries.
22016 Reported by: Thomas Frauendorfer
22018 * include/grub/parser.h (grub_parser_execute): Don't export.
22019 * normal/menu.c (grub_menu_execute_entry_real): New function.
22020 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
22022 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
22024 * docs/grub.texi (Embedded configuration): New section (replacing
22025 old "Preset Menu" stub).
22026 (Images): New section.
22027 (configfile): Note that any menu entries defined in `file' are shown
22030 2010-06-28 Josh Triplett <josh@joshtriplett.org>
22032 * mmap/i386/pc/mmap_helper.S: Set CF on return.
22034 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
22036 * util/grub-install.in: Add --debug-image= option.
22038 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
22040 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
22043 * util/deviceiter.c (check_device): Rename to ...
22044 (check_device_readable_unique): ... this. Update all callers.
22045 Maintain and check a list of which devices (by canonicalized name)
22046 have already been seen.
22047 (clear_seen_devices): New function.
22048 (compare_file_names) [__linux__]: New function.
22049 (grub_util_iterate_devices): Clear the list of seen devices on exit
22050 and (just in case) on entry.
22051 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
22052 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
22053 seen-devices list, superseded by general code in check_device.
22055 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
22057 * commands/cat.c (options): New variable.
22058 (grub_cmd_cat): Parse options. If the --dos option is given, print
22059 DOS-style "\r\n" line endings as simple newlines (Debian bug
22061 (GRUB_MOD_INIT): Use extcmd.
22062 (GRUB_MOD_FINI): Likewise.
22063 * docs/grub.texi (cat): Document --dos.
22065 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
22067 XEN with Linux grub-mkconfig support.
22069 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
22070 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
22071 GRUB_CMDLINE_XEN_DEFAULT.
22072 * util/grub.d/20_linux_xen.in: New file.
22074 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
22076 Initialise VGA video on qemu ourselves.
22078 * boot/i386/qemu/boot.S: Don't call 0xc000.
22079 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
22080 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
22081 (kernel_img_HEADERS): Add pci.h.
22082 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
22083 * configure.ac: Force unifont on qemu and yeeloong.
22084 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
22085 (grub_vga_palette_write): Use correct register.
22086 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
22087 Call grub_qemu_init_cirrus.
22088 * kern/i386/qemu/init.c: New file.
22089 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
22091 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
22093 2010-06-26 Pavel Roskin <proski@gnu.org>
22095 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
22098 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
22100 * docs/grub.texi (Simple configuration): Explain that
22101 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
22102 set to `true' to disable their respective recovery entries, not
22105 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
22107 Make the `source' command slightly faster.
22109 * normal/main.c (grub_normal_execute): Don't re-read list files when
22112 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
22114 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
22115 field position and mask size to red fields from mode_info, not
22117 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
22118 Remove redundant tag->common.framebuffer_type assignment.
22119 Reported by: Seth Goldberg.
22121 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
22123 Sync up other versions of the Linux loader with Robert Millan's
22124 change of 2010-01-09, "Make loader output a bit more user-friendly".
22126 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
22128 (grub_cmd_linux): Likewise.
22129 (grub_cmd_initrd): Likewise.
22130 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
22131 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
22133 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
22135 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
22136 larger than MEMORY_MAP_SIZE.
22138 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
22140 Fix parallel build.
22142 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
22144 * script/parser.y: #include grub_script.tab.h header.
22146 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
22148 Support >3GiB and <16MiB RAM in i386-qemu.
22150 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
22151 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
22152 (grub_lower_mem): Removed.
22153 (grub_upper_mem): Likewise.
22154 (mem_size): Made static.
22155 (above_4g): New variable.
22156 (grub_machine_mmap_init): Detect small mem_size and above_4g.
22157 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
22160 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
22162 Cirrus 5446 and Bochs video cards support.
22164 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
22166 (video_cirrus_mod_SOURCES): New variable.
22167 (video_cirrus_mod_CFLAGS): Likewise.
22168 (video_cirrus_mod_LDFLAGS): Likewise.
22169 (video_bochs_mod_SOURCES): Likewise.
22170 (video_bochs_mod_CFLAGS): Likewise.
22171 (video_bochs_mod_LDFLAGS): Likewise.
22172 * include/grub/vga.h: New file.
22173 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
22174 (grub_video_fb_set_page_t): New type.
22175 (grub_video_fb_setup): New prototype.
22176 (grub_video_fb_swap_buffers): Likewise.
22177 (grub_video_fb_get_info_and_fini): Likewise.
22178 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
22179 (CRTC_DATA_PORT): Likewise.
22180 (CRTC_CURSOR): Likewise.
22181 (CRTC_CURSOR_ADDR_HIGH): Likewise.
22182 (CRTC_CURSOR_ADDR_LOW): Likewise.
22183 (CRTC_CURSOR_DISABLE): Likewise.
22184 (update_cursor): Use grub_vga_cr_write.
22185 (grub_vga_text_setcursor): Likewise.
22186 * video/bochs.c: New file.
22187 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
22188 (palette): Likewise.
22189 (palette_size): Likewise.
22190 (framebuffer): New variable.
22191 (grub_video_fb_init): Use 'framebuffer'.
22192 (grub_video_fb_fini): Likewise.
22193 (grub_video_fb_get_info): Likewise.
22194 (grub_video_fb_get_palette): Likewise.
22195 (grub_video_fb_set_palette): Likewise.
22196 (grub_video_fb_set_viewport): Likewise.
22197 (grub_video_fb_get_viewport): Likewise.
22198 (grub_video_fb_map_color): Likewise.
22199 (grub_video_fb_map_rgb): Likewise.
22200 (grub_video_fb_map_rgba): Likewise.
22201 (grub_video_fb_unmap_color): Likewise.
22202 (grub_video_fb_unmap_color_int): Likewise.
22203 (grub_video_fb_fill_rect): Likewise.
22204 (grub_video_fb_blit_bitmap): Likewise.
22205 (grub_video_fb_blit_render_target): Likewise.
22206 (grub_video_fb_scroll): Likewise.
22207 (grub_video_fb_create_render_target): Likewise.
22208 (grub_video_fb_doublebuf_blit_init): Likewise.
22209 (grub_video_fb_set_active_render_target): Handle doublebuffering.
22210 (doublebuf_pageflipping_update_screen): New function.
22211 (doublebuf_pageflipping_init): Likewise.
22212 (grub_video_fb_setup): Likewise.
22213 (grub_video_fb_swap_buffers): Likewise.
22214 (grub_video_fb_get_info_and_fini): Likewise.
22215 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
22217 (doublebuf_pageflipping_commit): Restructured into ...
22218 (doublebuf_pageflipping_set_page): ... this.
22219 (doublebuf_pageflipping_update_screen): Removed.
22220 (doublebuf_pageflipping_init): Likewise.
22221 (double_buffering_init): Likewise.
22222 (grub_video_vbe_setup): Use grub_video_fb_setup.
22223 (grub_video_vbe_swap_buffers): Removed.
22224 (grub_video_vbe_set_active_render_target): Likewise.
22225 (grub_video_vbe_get_active_render_target): Likewise.
22226 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
22227 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
22228 grub_video_fb_set_active_render_target and
22229 grub_video_fb_get_active_render_target.
22230 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
22231 (SEQUENCER_DATA_PORT): Likewise.
22232 (MAP_MASK_REGISTER): Likewise.
22233 (CRTC_ADDR_PORT): Likewise.
22234 (CRTC_DATA_PORT): Likewise.
22235 (START_ADDR_HIGH_REGISTER): Likewise.
22236 (START_ADDR_LOW_REGISTER): Likewise.
22237 (GRAPHICS_ADDR_PORT): Likewise.
22238 (GRAPHICS_DATA_PORT): Likewise.
22239 (READ_MAP_REGISTER): Likewise.
22240 (INPUT_STATUS1_REGISTER): Likewise.
22241 (INPUT_STATUS1_VERTR_BIT): Likewise.
22242 (get_map_mask): Use grub_vga_sr_read.
22243 (set_map_mask): Use grub_vga_sr_write.
22244 (set_read_map): Use grub_vga_gr_write.
22245 (set_start_address): Use grub_vga_cr_write.
22246 * video/sm712.c (framebuffer): Remove leftover fields.
22248 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
22250 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
22251 setting GRUB_VIDEO_BACKEND. Make it available as a user override
22252 instead. Replace the gfxterm backend check with a check that
22253 ${GRUB_PREFIX}/video.lst is non-empty.
22254 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
22256 (load_video): New generated function. Call it before loading
22257 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
22258 * util/grub.d/10_linux.in (linux_entry): Call load_video.
22259 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
22260 * docs/grub.texi (Simple configuration): Document
22261 GRUB_VIDEO_BACKEND.
22263 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
22265 Use video functions in linux and xnu loaders.
22267 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
22268 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
22269 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
22270 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
22271 loader/i386/pc/linux.c.
22272 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
22273 (find_line_len): Removed.
22274 (find_framebuf): Likewise.
22275 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
22276 * loader/i386/efi/xnu.c: Removed.
22277 * loader/i386/pc/xnu.c: Moved from here...
22278 * loader/i386/xnu.c: ...here.
22280 Enable priorities in video drivers.
22282 * include/grub/video.h (grub_video_adapter_prio_t): New type.
22283 (grub_video_adapter): New field prio.
22284 (grub_video_register): Respect prio when inserting.
22285 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
22286 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
22287 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
22288 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
22289 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
22290 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
22291 * video/sm712.c (grub_video_sm712_adapter): Likewise.
22295 * include/grub/video.h (grub_video_driver_id_t): New value
22296 GRUB_VIDEO_DRIVER_SDL.
22297 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
22299 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
22301 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
22302 argument to printf.
22303 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
22305 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
22307 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
22308 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
22310 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
22312 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
22313 directly, and recommend grub-install instead.
22314 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
22316 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
22318 Fix i386-pc prefix handling with nested partitions (Debian bug
22319 #585068). Note that the case where the core image is booted using
22320 multiboot and relocated from its original location still requires
22323 * kern/i386/pc/init.c (make_install_device): If the prefix starts
22324 with "(,", fill the boot drive in between those two characters, but
22325 expect that a full partition specification including partition map
22327 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
22328 specified, write a prefix without the drive name but including a
22329 full partition specification.
22331 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
22333 * util/grub-mkconfig.in: Ignore non-option arguments, for
22334 compatibility with older versions (before 2010-06-12) which did the
22335 same. In particular, this makes it easier to ship an update-grub
22336 wrapper which is compatible with that used with GRUB Legacy (Debian
22339 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
22341 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
22342 for manual page generation.
22344 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
22346 * po/POTFILES: Remove leftover commands/handler.c.
22348 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
22350 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
22351 left this script non-functional.
22353 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
22355 * docs/man/grub-emu.h2m: New file.
22357 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
22359 * docs/grub.texi (Commands): Document reduced command set in rescue
22361 (cpuid): New section.
22363 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
22365 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
22366 new partition naming style.
22367 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
22369 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
22371 Add "-o grub.iso" like cmdline options support.
22373 * util/grub-install.in: Improve cmdline option parsing.
22374 * util/grub-mkconfig.in: Likewise.
22375 * util/grub-mkrescue.in: Likewise.
22376 * util/grub-reboot.in: Likewise.
22377 * util/grub-set-default.in: Likewise.
22378 * util/i386/efi/grub-install.in: Likewise.
22379 * util/ieee1275/grub-install.in: Likewise.
22380 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22382 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
22384 * .bzrignore: Ignore 41_custom.
22386 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
22388 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
22390 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
22392 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
22393 prototype declarations.
22395 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
22396 generating fs, partmap, and video lists.
22397 * include/grub/fs.h (grub_fs_register): Omit prototype if
22398 GRUB_LST_GENERATOR is defined.
22399 * include/grub/partition.h (grub_partition_map_register): Likewise.
22400 * include/grub/video.h (grub_video_register): Likewise.
22402 2010-06-12 Javier Martín <lordhabbit@gmail.com>
22404 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
22406 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
22408 * util/grub-mkrescue.in: Support --xorriso argument.
22410 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
22412 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
22413 Suggested by: Thomas Schmitt.
22415 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
22417 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
22418 Suggested by: Thomas Schmitt.
22420 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
22422 custom.cfg support.
22424 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
22425 * util/grub.d/41_custom.in: New file.
22427 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
22429 * util/grub-mkrescue.in (make_image): Remove sh module, which has
22430 been merged back into normal.
22432 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
22434 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
22435 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
22437 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
22439 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
22440 when generating manual pages.
22441 * docs/man/grub-bin2h.h2m: New file.
22442 * docs/man/grub-editenv.h2m: New file.
22443 * docs/man/grub-fstest.h2m: New file.
22444 * docs/man/grub-install.h2m: New file.
22445 * docs/man/grub-macho2img.h2m: New file.
22446 * docs/man/grub-mkconfig.h2m: New file.
22447 * docs/man/grub-mkdevicemap.h2m: New file.
22448 * docs/man/grub-mkfont.h2m: New file.
22449 * docs/man/grub-mkimage.h2m: New file.
22450 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
22451 * docs/man/grub-mkrelpath.h2m: New file.
22452 * docs/man/grub-mkrescue.h2m: New file.
22453 * docs/man/grub-ofpathname.h2m: New file.
22454 * docs/man/grub-pe2elf.h2m: New file.
22455 * docs/man/grub-probe.h2m: New file.
22456 * docs/man/grub-reboot.h2m: New file.
22457 * docs/man/grub-script-check.h2m: New file.
22458 * docs/man/grub-set-default.h2m: New file.
22459 * docs/man/grub-setup.h2m: New file.
22461 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
22463 Use FOR_* macros instead of *_iterate whenever possible.
22465 * commands/handler.c: Removed.
22466 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
22467 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
22468 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
22469 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
22470 (grub_probe_SOURCES): Remove kern/parser.c.
22471 (util/grub-script-check.c_DEPENDENCIES): Removed.
22472 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
22473 and grub_script_check_init.c.
22474 (grub_script_check_init.lst): Removed.
22475 (grub_script_check_init.h): Likewise.
22476 (grub_script_check_init.c): Likewise.
22477 (pkglib_MODULES): Remove handler.mod and sh.mod.
22478 (handler_mod_SOURCES): Removed.
22479 (handler_mod_CFLAGS): Likewise.
22480 (handler_mod_LDFLAGS): Likewise.
22481 (normal_mod_SOURCES): Remove normal/handler.c.
22482 Add script/main.c, script/script.c, script/execute.c,
22483 script/function.c, script/lexer.c, grub_script.tab.c
22484 and grub_script.yy.c.
22485 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
22486 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
22487 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
22488 (grub_setup_SOURCES): Remove kern/parser.c.
22489 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
22490 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
22491 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
22492 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
22493 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
22494 (grub_setup_SOURCES): Remove kern/parser.c.
22495 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
22496 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
22497 * include/grub/command.h (grub_command_iterate): Removed.
22498 (FOR_COMMANDS): New macro.
22499 * include/grub/dl.h (grub_dl): New member next.
22500 (grub_dl_iterate): Removed.
22501 (grub_dl_head): New variable declaration.
22502 (FOR_DL_MODULES): New macro.
22503 * include/grub/fs.h: Include list.h.
22504 (grub_fs): Make next first element.
22505 (grub_fs_list): New variable declaration.
22506 (grub_fs_register): Make inline.
22507 (grub_fs_unregister): Likewise.
22508 (grub_fs_iterate): Removed.
22509 (FOR_FILESYSTEMS): New macro.
22510 * include/grub/handler.h: Removed.
22511 * include/grub/list.h (grub_list_hook_t): Removed.
22512 (grub_list_test_t): Likewise.
22513 (grub_list_pop): Likewise.
22514 (grub_list_iterate): Likewise.
22515 (grub_list_insert): Likewise.
22516 (FOR_LIST_ELEMENTS): New macro.
22517 * include/grub/parser.h (grub_parser_class): Removed.
22518 (grub_parser_register): Likewise.
22519 (grub_parser_unregister): Likewise.
22520 (grub_parser_get_current): Likewise.
22521 (grub_parser_set_current): Likewise.
22522 (grub_register_rescue_parser): Likewise.
22523 (grub_rescue_parse_line): New function.
22524 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
22525 * include/grub/script_sh.h (grub_script_function_list): New variable
22527 (FOR_SCRIPT_FUNCTIONS): New macro.
22528 (grub_script_function_iterate): Removed.
22529 (grub_normal_parse_line): New prototype.
22530 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
22531 (FOR_DISABLED_TERM_INPUTS): Likewise.
22532 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
22533 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
22534 * include/grub/video.h (grub_video_adapter): Move 'next' to first
22536 (grub_video_register): Inline.
22537 (grub_video_unregister): Likewise.
22538 (grub_video_adapter_list): New variable declaration.
22539 (grub_video_iterate): Removed.
22540 (FOR_VIDEO_ADAPTERS): New macro.
22541 * kern/dl.c (grub_dl_list): Removed. All users updated.
22542 (grub_dl_iterate): Removed.
22543 * kern/fs.c (grub_fs_list): Make global.
22544 (grub_fs_register): Removed.
22545 (grub_fs_unregister): Likewise.
22546 (grub_fs_iterate): Likewise.
22547 * kern/handler.c: Removed.
22548 * kern/list.c (grub_list_pop): Removed.
22549 (grub_list_iterate): Likewise.
22550 (grub_list_insert): Likewise.
22551 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
22552 (grub_prio_list_insert): Don't use grub_list_insert.
22553 * kern/main.c (grub_register_rescue_parser): Don't call
22554 grub_register_rescue_parser.
22555 * kern/parser.c (grub_parser_class): Removed.
22556 (grub_parser_execute): Use grub_rescue_parse_line.
22557 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
22558 (grub_rescue_parser): Removed.
22559 (grub_register_rescue_parser): Likewise.
22560 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
22561 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
22562 (grub_auth_check_authentication): Likewise.
22563 * normal/completion.c (iterate_command): Removed.
22564 (grub_normal_do_completion): Use FOR_COMMANDS.
22565 * normal/handler.c: Removed.
22566 * normal/main.c (read_config_file): Remove parser changing.
22567 (grub_normal_execute): Don't call read_handler_list.
22568 (grub_normal_read_line_real): Statically allocate prompt.
22569 (grub_cmdline_run): Use grub_normal_parse_line.
22570 (GRUB_MOD_FINI): Don't call free_handler_list.
22571 * normal/menu_entry.c (run): Likewise.
22572 * script/function.c (grub_script_function_list): Make global.
22573 (grub_script_function_iterate): Removed.
22574 * script/main.c (grub_normal_parse_line): Make global.
22575 (grub_sh_parser): Removed.
22576 (GRUB_MOD_INIT): Likewise.
22577 (GRUB_MOD_FINI): Likewise.
22578 * tests/lib/functional_test.c (grub_functional_test): Use
22580 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
22581 (grub_test_run): Use FOR_LIST_ELEMENTS.
22582 * tests/lib/unit_test.c (main): Likewise.
22583 * util/deviceiter.c (grub_util_iterate_devices): Don't use
22585 * util/grub-fstest.c (grub_term_input_class): Removed.
22586 (grub_term_output_class): Likewise.
22587 * util/grub-probe.c: Likewise.
22588 * util/i386/pc/grub-setup.c: Likewise.
22589 * util/sparc64/ieee1275/grub-setup.c: Likewise.
22590 * util/grub-script-check.c (main): Don't call grub_init_all and
22592 * video/video.c (grub_video_adapter_list): Make global.
22593 (grub_video_register): Removed.
22594 (grub_video_unregister): Likewise.
22595 (grub_video_iterate): Likewise.
22597 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
22599 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
22600 reported by Henrique Ferreiro.
22602 2010-06-09 Robert Millan <rmh@gnu.org>
22604 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
22605 ones, when both are available.
22607 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
22609 Make --version uniform and avoid hard-coded program name.
22611 * util/grub-mkimage.c (main): Use `program_name' instead of
22613 * util/i386/pc/grub-setup.c (main): Likewise.
22614 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
22615 * util/grub-install.in: Save the basename of $0 in $self, and use the
22616 latter in informational messages. Use the same format for --version
22617 as the binary programs.
22618 * util/grub-mkconfig.in: Likewise.
22619 * util/grub-mkrescue.in: Likewise.
22620 * util/grub-reboot.in: Likewise.
22621 * util/grub-set-default.in: Likewise.
22622 * util/i386/efi/grub-install.in: Likewise.
22623 * util/ieee1275/grub-install.in: Likewise.
22624 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22626 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
22628 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
22629 embedding area. Use <= instead of == when checking for non-emptiness.
22631 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
22633 * configure.ac: Add `.' to the directories searched for unifont.
22635 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
22637 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
22640 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
22642 * docs/grub.texi (History): Expand to cover GRUB 2.
22643 (Serial terminal): Refer to `terminal_input' and `terminal_output'
22644 commands, not `terminal'.
22645 (serial): Likewise.
22646 (terminal_input): New section.
22647 (terminal_output): New section.
22648 (uppermem): New section (stub).
22649 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
22651 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
22653 * docs/grub.texi (Security): Menu entries are unrestricted by
22654 default, not restricted to superusers as I had previously thought.
22655 Reword to account for this.
22657 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22659 * kern/emu/misc.c (device_mapper_null_log): New function.
22660 (grub_device_mapper_supported): New function.
22661 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
22663 * kern/emu/hostdisk.c (find_partition_start): Check whether
22664 device-mapper is supported before trying to use it.
22665 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
22667 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22669 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
22670 (File name syntax): Likewise.
22671 (help): --all is no longer supported in GRUB 2. Be more precise
22672 about pattern matching.
22674 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22676 * normal/completion.c (grub_normal_do_completion): When completing
22677 arguments to "set" and the current word contains an equals sign,
22678 skip to after the equals sign before starting completion.
22680 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22682 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
22684 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22686 * docs/grub.texi (Network): New section.
22687 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
22688 `(nd)' as in GRUB Legacy.
22689 (pxe_unload): New section.
22691 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22693 * docs/grub.texi (Troubleshooting): `echo' is not usually available
22694 in the rescue shell, so recommend using `set' instead. Thanks,
22697 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22699 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
22700 (password): New section.
22701 (password_pbkdf2): New section.
22702 (search): New section.
22703 (Security): New section.
22704 (Troubleshooting): New section, currently very incomplete.
22705 (Invoking grub-mkpasswd-pbkdf2): New section.
22706 (Internals): New section, currently very incomplete.
22708 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22710 * util/grub.d/00_header.in: Add some more quoting (of
22711 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
22713 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
22715 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22717 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
22718 to `count', fixing variable shadowing that broke the -c option.
22720 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
22722 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
22723 in case they contain spaces.
22725 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
22727 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
22728 "part_" to partmap module names, in line with grub-install.
22729 Reported by: Jindřich Makovička (Debian bug #584426).
22731 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
22733 * util/grub-mkimage.c: Make target-related error messages slightly
22734 more helpful; -O talks about "format". Explicitly point to the use
22735 of -O if no target is specified.
22736 Reported by: Didier Raboud (Debian bug #584415).
22738 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
22740 * INSTALL: Document several build requirements for optional features
22741 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
22743 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
22745 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
22746 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
22747 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
22749 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22751 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
22752 Thanks to Jordan Uggla for spotting this.
22754 2010-06-02 Aleš Nesrsta <starous@volny.cz>
22756 Finally make USB usable.
22758 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
22759 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
22760 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
22761 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
22762 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
22763 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
22764 (GRUB_OHCI_FSMPS): Likewise.
22765 (GRUB_OHCI_PERIODIC_START): Likewise.
22766 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
22767 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
22768 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
22769 (GRUB_OHCI_SET_PORT_RESET): Likewise.
22770 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
22771 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
22772 (grub_ohci_transaction): Likewise.
22773 (grub_ohci_transfer): Improve condition detection algorithms.
22774 Handle toggle property. Program the transactions correctly.
22775 Improve error handling. Various important fixups.
22776 (grub_ohci_portstatus): Put register writes in right order.
22777 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
22778 (grub_uhci_transfer): Don't show "failed" message on success.
22779 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
22781 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
22782 determine its size.
22783 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
22784 before initialization is completed. Use IN direction for empty
22785 transfers. Use last_trans and compute toggle.
22786 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
22787 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
22788 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
22789 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
22790 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
22791 (grub_usb_device): Increase toggle to 256.
22792 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
22793 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
22794 GRUB_USBMS_SUBCLASS_SFF8070.
22795 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
22796 (grub_scsi_inquiry): New member page and alloc_length.
22797 (grub_scsi_request_sense): New structure.
22798 (grub_scsi_request_sense_data): Likewise.
22799 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
22801 * disk/scsi.c (grub_scsi_request_sense): New function.
22802 (grub_scsi_test_unit_ready): Likewise.
22803 (grub_scsi_inquiry): Fill new fields.
22804 (grub_scsi_read_capacity): Likewise.
22805 (grub_scsi_read10): Add request sense at the end.
22806 (grub_scsi_read12): Likewise.
22807 (grub_scsi_write10): Likewise.
22808 (grub_scsi_write12): Likewise.
22809 (grub_scsi_open): Add Test Unit Ready.
22810 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
22811 Support additional subclasses. Con't clear halt yet. Activate the
22812 proper config. Calculate LUNs correctly.
22813 (grub_usbms_transfer): Various important fixups.
22815 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
22817 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
22818 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
22819 (grub_ohci_fini_hw): New function.
22820 (grub_ohci_restore_hw): Likewise.
22821 (GRUB_MOD_INIT(ohci)): Register preboot hook.
22822 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
22823 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
22825 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
22827 Dedicated DMA allocations.
22829 * bus/pci.c (grub_memalign_dma32): New function
22830 (grub_dma_free): Likewise.
22831 (grub_dma_get_virt): Likewise.
22832 (grub_dma_get_phys): Likewise.
22833 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
22834 (grub_ohci_pci_iter): Use dma32_alloc.
22835 (grub_ohci_transfer): Likewise.
22836 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
22837 (grub_usb_bulk_readwrite): Likewise.
22838 * include/grub/pci.h: Add declarations.
22840 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
22844 * bus/cs5536.c: New file.
22845 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
22846 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
22847 (cs5536_mod_SOURCES): New variable.
22848 (cs5536_mod_CFLAGS): Likewise.
22849 (cs5536_mod_LDFLAGS): Likewise.
22850 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
22852 (kernel_img_SOURCES): Add bus/cs5536.c.
22853 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
22855 (usb_mod_SOURCES): New variable.
22856 (usb_mod_CFLAGS): New variable.
22857 (usb_mod_LDFLAGS): New variable.
22858 (usbtest_mod_SOURCES): New variable.
22859 (usbtest_mod_CFLAGS): New variable.
22860 (usbtest_mod_LDFLAGS): New variable.
22861 (ohci_mod_SOURCES): New variable.
22862 (ohci_mod_CFLAGS): New variable.
22863 (ohci_mod_LDFLAGS): New variable.
22864 (usbms_mod_SOURCES): New variable.
22865 (usbms_mod_CFLAGS): New variable.
22866 (usbms_mod_LDFLAGS): New variable.
22867 (usb_keyboard_mod_SOURCES): New variable.
22868 (usb_keyboard_mod_CFLAGS): New variable.
22869 (usb_keyboard_mod_LDFLAGS): New variable.
22870 * include/grub/smbus.h: New file.
22871 * include/grub/cs5536.h: New file.
22873 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22875 * util/grub.d/00_header.in: Add safety check to make sure that
22876 ${locale_dir} exists before trying to probe it.
22878 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22880 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
22881 per the GNU Coding Standards; this is now too obscure to be worth
22884 (chainloader): Remove cross-reference to `SCO UnixWare'.
22886 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22888 * docs/grub.texi (Chain-loading): New section.
22889 (DOS/Windows): New section, borrowed from GRUB Legacy with details
22890 adjusted for GRUB 2.
22891 (SCO UnixWare): Likewise.
22893 (chainloader): Add reference to `Block list syntax'.
22894 (drivemap): New section.
22895 (parttool): New section.
22897 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22899 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
22901 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
22902 (Installing GRUB using grub-install): Remove reference to the grub
22903 shell; mention `grub-mkimage' and `grub-setup' instead.
22904 (Invoking grub-install): Likewise.
22905 (Interface): Add reference to `Menu entry editor'.
22906 (serial): Remove `--device' option.
22908 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22910 * docs/grub.texi (Configuration): New section, documenting
22911 configuration file generation using grub-mkconfig. I've left a slot
22912 for documenting the full shell scripting format but have not yet
22913 started on writing that up.
22914 (Invoking grub-mkconfig): New section.
22916 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22918 * docs/grub.texi (direntry): Remove grub-terminfo reference.
22919 (GNU GRUB manual): Likewise.
22920 (General commands): Update description of `terminfo' for GRUB 2.
22922 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22924 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
22925 (GRUB_MOD_INIT): Fix capitalisation.
22926 * docs/grub.texi (Command-line and menu entry commands): Document
22927 gettext and gptsync commands.
22929 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22931 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
22932 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
22934 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
22936 Add btrfs probing support, currently only in the single-device case.
22938 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
22940 (grub_guess_root_device): Call find_root_device_from_mountinfo
22941 before looking in /dev.
22943 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22945 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
22946 GRUB_DISK_SIZE_UNKNOWN.
22947 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
22949 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
22951 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
22952 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
22953 corrupted or not synced properly.
22955 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22957 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
22958 Reported by: Seth Goldberg.
22960 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22962 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
22964 Reported by: Seth Goldberg.
22966 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22968 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
22969 Reported by: Seth Goldberg.
22971 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22973 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
22974 64-bit address as signed on MIPS.
22976 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
22978 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
22979 to the empty string.
22981 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
22983 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
22985 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
22986 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
22987 * kern/misc.c (__enable_execute_stack): Disable on
22990 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
22992 Make grub-probe work with symbolic links under /dev/mapper as well
22993 as with real block devices. The Linux world seems to be (at best)
22994 in transition here, and GRUB shouldn't get caught in the middle.
22996 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
22999 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
23001 * util/grub-script-check.c (main): Ensure defined behaviour on empty
23002 input files (in which case exit zero).
23004 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
23006 * kern/emu/misc.c (canonicalize_file_name): realpath can still
23007 return NULL for various reasons even if it has a maximum-length
23008 buffer: for example, there might be a symlink loop, or the path
23009 might exceed PATH_MAX. If this happens, return NULL.
23011 2010-05-27 Robert Millan <rmh@gnu.org>
23013 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
23014 partmap module to handle cross-partmap setups.
23015 Reported by Orestes Mas. Gràcies!
23017 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
23019 * util/grub-mkrescue.in: Initialise override_dir rather than
23020 assuming that it's unset or empty in the environment.
23022 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
23024 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
23025 variable index into p_index to suppress a warning with -Wshadow.
23027 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
23029 * INSTALL: Added flex >= 2.5.35 requirement.
23031 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
23033 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
23035 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
23039 * commands/i386/cmostest.c: New file.
23040 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
23041 (cmostest_mod_SOURCES): New variable.
23042 (cmostest_mod_CFLAGS): Likewise.
23043 (cmostest_mod_LDFLAGS): Likewise.
23044 * conf/i386-pc.rmk: Likewise.
23045 * docs/grub.texi (Vendor power-on keys): New section.
23046 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
23047 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
23048 and GRUB_BUTTON_CMOS_ADDRESS.
23049 * util/grub.d/00_header.in: Handle powering-on by separate button.
23051 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
23053 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
23054 Removed drawing_scrollbar argument. All users updated
23056 Reported by Jo Shields
23058 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
23060 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
23061 buffer since gfxterm handles double repaint.
23063 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
23065 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
23066 * term/gfxterm.c (real_scroll): Likewise.
23068 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
23070 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
23071 before calling BIOS.
23073 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
23075 * include/grub/i18n.h: Always enable grub_gettext.
23077 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
23079 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
23080 partition naming style.
23082 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
23084 * util/grub-mkconfig.in: Fix handling of -o so that it works when
23085 not the first option.
23087 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
23089 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
23091 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
23093 * util/misc.c: Move inclusion of <limits.h> to ...
23094 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
23096 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
23098 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
23099 Fix merge error in NetBSD code.
23100 (find_partition_start) [__NetBSD__]: Likewise.
23102 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
23104 Fix grub-mkrescue usage unit testing.
23106 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
23108 2010-05-18 Christian Franke <franke@computer.org>
23110 * util/grub.d/10_windows.in: Use path names instead of
23111 drive letters to prevent warning from Cygwin 1.7.
23112 Add drivemap command to menuentry if needed.
23114 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
23116 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
23117 gnumach and gnumach.gz.
23119 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
23121 * include/grub/i18n.h (gettext): Inline instead of using #define.
23122 (grub_gettext): Likewise.
23125 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
23127 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
23128 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
23129 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
23130 (main): Add a slash after pkglibdirroot.
23132 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
23134 * util/grub-install.in: Add missing "in" keyword.
23136 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
23138 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
23139 Reported by: Seth Goldberg.
23141 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
23143 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
23145 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
23147 * configure.ac: Check for Linux device-mapper support.
23149 * util/hostdisk.c (device_is_mapped): New function.
23150 (find_partition_start): New function, partly broken out from
23151 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
23152 device-mapper support added.
23153 (linux_find_partition): Use find_partition_start.
23154 (convert_system_partition_to_system_disk): Add `st' argument.
23155 Support Linux /dev/mapper/* devices if device-mapper support is
23156 available; only DM-RAID devices are understood at present.
23157 (find_system_device): Add `st' argument. Pass it to
23158 convert_system_partition_to_system_disk.
23159 (grub_util_biosdisk_get_grub_dev): Pass stat result to
23160 find_system_device and convert_system_partition_to_system_disk. Use
23161 find_partition_start.
23163 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
23164 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
23165 * util/deviceiter.c [__linux__]: Define MINOR.
23166 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
23167 * util/mkdevicemap.c (grub_putchar): New function.
23168 (grub_getkey): New function.
23169 (grub_refresh): New function.
23170 (main): Set debug=all if -v -v is used.
23172 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
23174 Fix build with non-GNU libcs.
23176 * util/misc.c (canonicalize_file_name): Move to ...
23177 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
23178 grub_make_system_path_relative_to_its_root.
23180 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
23182 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
23183 we handle finding grub-mkimage. Default to finding grub-mkimage in
23184 ${bindir} with program_transform_name applied, and provide a
23185 --grub-mkimage option to override this.
23187 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
23189 Remove grub-mkisofs.
23191 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
23192 (grub_mkisofs_SOURCES): Removed.
23193 (grub_mkisofs_CFLAGS): Removed.
23194 * util/mkisofs/defaults.h: Removed.
23195 * util/mkisofs/eltorito.c: Likewise.
23196 * util/mkisofs/exclude.h: Likewise.
23197 * util/mkisofs/hash.c: Likewise.
23198 * util/mkisofs/include/: Likewise.
23199 * util/mkisofs/include/fctldefs.h: Likewise.
23200 * util/mkisofs/include/mconfig.h: Likewise.
23201 * util/mkisofs/include/prototyp.h: Likewise.
23202 * util/mkisofs/include/statdefs.h: Likewise.
23203 * util/mkisofs/iso9660.h: Likewise.
23204 * util/mkisofs/joliet.c: Likewise.
23205 * util/mkisofs/match.c: Likewise.
23206 * util/mkisofs/match.h: Likewise.
23207 * util/mkisofs/mkisofs.c: Likewise.
23208 * util/mkisofs/mkisofs.h: Likewise.
23209 * util/mkisofs/msdos_partition.h: Likewise.
23210 * util/mkisofs/multi.c: Likewise.
23211 * util/mkisofs/name.c: Likewise.
23212 * util/mkisofs/rock.c: Likewise.
23213 * util/mkisofs/tree.c: Likewise.
23214 * util/mkisofs/write.c: Likewise.
23216 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
23218 Unify grub-mkimage accross platforms.
23220 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
23221 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
23222 (grub_mkelfimage_SOURCES): Removed.
23223 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
23224 (util/grub-mkimage.c_DEPENDENCIES): .. this.
23225 (bin_UTILITIES): Add grub-mkimage.
23226 (grub_mkimage_SOURCES): New variable.
23227 (kernel_img_HEADERS): Remove machine/kernel.h.
23228 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
23229 (pkglib_PROGRAMS): Add kernel.img.
23230 (kernel_img_HEADERS): Add machine/kernel.h.
23231 (kernel_img_FORMAT): Removed.
23232 (bin_UTILITIES): Remove grub-mkimage.
23233 (grub_mkimage_SOURCES): Removed.
23234 (grub_mkimage_CFLAGS): Likewise.
23235 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23236 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
23237 (pkglib_PROGRAMS): Add kernel.img.
23238 (bin_UTILITIES): Remove grub-mkimage.
23239 (grub_mkimage_SOURCES): Removed.
23240 (grub_mkimage_CFLAGS): Likewise.
23241 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23242 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
23243 (pkglib_PROGRAMS): Add kernel.img.
23244 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
23245 (pkglib_PROGRAMS): Add kernel.img.
23246 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
23247 (grub_mkimage_SOURCES): Removed.
23248 (grub_mkimage_CFLAGS): Likewise.
23249 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23250 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
23251 (pkglib_PROGRAMS): Add kernel.img.
23252 (bin_UTILITIES): Remove grub-mkimage.
23253 (grub_mkimage_SOURCES): Removed.
23254 (grub_mkimage_CFLAGS): Likewise.
23255 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23256 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
23257 (grub_mkimage_SOURCES): Removed.
23258 (grub_mkimage_CFLAGS): Likewise.
23259 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23260 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
23261 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
23262 (grub_pe32_optional_header): ... this.
23263 (grub_pe64_optional_header): ... and this. All users updated.
23264 (GRUB_PE32_PE32_MAGIC): Split into ..
23265 (GRUB_PE32_PE32_MAGIC): .. this.
23266 (GRUB_PE32_PE64_MAGIC): .. and this.
23267 (GRUB_PE32_SIGNATURE_SIZE): New definition.
23268 * include/grub/elf.h (PT_GNU_STACK): New definition.
23269 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
23270 * include/grub/i386/efi/kernel.h: Likewise.
23271 * include/grub/i386/kernel.h: Likewise.
23272 * include/grub/i386/pc/kernel.h: Likewise.
23273 * include/grub/i386/qemu/boot.h: Likewise.
23274 * include/grub/mips/kernel.h: Likewise.
23275 * include/grub/mips/qemu-mips/kernel.h: Likewise.
23276 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
23277 * include/grub/powerpc/kernel.h: Likewise.
23278 * include/grub/sparc64/ieee1275/boot.h: Likewise.
23279 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
23280 * include/grub/sparc64/kernel.h: Likewise.
23281 * include/grub/x86_64/efi/kernel.h: Likewise.
23282 * include/grub/x86_64/kernel.h: Likewise.
23283 * include/grub/offsets.h: New file.
23284 * include/grub/kernel.h (grub_module_info): Split into ...
23285 (grub_module_info32): ... this.
23286 (grub_module_info64): ... and this.
23287 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
23288 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
23289 (grub_boot_blocklist): Moved from here ...
23290 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
23291 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
23292 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
23293 * include/grub/types.h (grub_target_to_host16): Removed.
23294 (grub_target_to_host32): Likewise.
23295 (grub_target_to_host64): Likewise.
23296 (grub_host_to_target16): Likewise.
23297 (grub_host_to_target32): Likewise.
23298 (grub_host_to_target64): Likewise.
23299 (grub_host_to_target_addr): Likewise.
23301 Support grub-mkrescue for efi, coreboot and qemu.
23303 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
23304 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
23305 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
23306 * util/grub-mkrawimage.c: Moved from here ...
23307 * util/grub-mkimage.c: ... here. All users updated.
23308 (ALIGN_ADDR): Use image_target.
23309 (TARGET_NO_FIELD): New const.
23310 (image_target_desc): New type.
23311 (image_targets): New array.
23312 (grub_target_to_host64): Use image_target.
23313 (grub_target_to_host32): Likewise.
23314 (grub_target_to_host16): Likewise.
23315 (grub_host_to_target64): Likewise.
23316 (grub_host_to_target32): Likewise.
23317 (grub_host_to_target16): Likewise.
23318 (grub_host_to_target_addr): Likewise.
23319 (generate_image): Handle multiimage.
23320 (main): Require -O parameter. All users updated.
23321 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
23322 util/efi/grub-mkimage.c
23323 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
23324 New option --rom-directory.
23326 * util/i386/efi/grub-mkimage.c: Removed.
23327 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
23328 (grub_target_to_host32): Likewise.
23329 (grub_target_to_host64): Likewise.
23330 (grub_host_to_target16): Likewise.
23331 (grub_host_to_target32): Likewise.
23332 (grub_host_to_target64): Likewise.
23333 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
23334 (grub_target_to_host32): Likewise.
23335 (grub_target_to_host64): Likewise.
23336 (grub_host_to_target16): Likewise.
23337 (grub_host_to_target32): Likewise.
23338 (grub_host_to_target64): Likewise.
23340 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
23342 Source tree is reorganized for emu build.
23344 * include/grub/util/console.h: Move from here...
23345 * include/grub/emu/console.h: ...to here.
23346 * include/grub/util/getroot.h: Move from here...
23347 * include/grub/emu/getroot.h: ...to here.
23348 * include/grub/util/hostdisk.h: Move from here...
23349 * include/grub/emu/hostdisk.h: ...to here.
23350 * util/console.c: Move from here...
23351 * kern/emu/console.c: ...to here.
23352 * util/getroot.c: Move from here...
23353 * kern/emu/getroot.c: ...to here.
23354 * util/grub-emu.c: Move from here...
23355 * kern/emu/main.c: ...to here.
23356 * util/hostdisk.c: Move from here...
23357 * kern/emu/hostdisk.c: ...to here.
23358 * util/hostfs.c: Move from here...
23359 * kern/emu/hostfs.c: ...to here.
23360 * util/mm.c: Move from here...
23361 * kern/emu/mm.c: ...to here.
23362 * util/pci.c: Move from here...
23363 * bus/emu/pci.c: ...to here.
23364 * util/sdl.c: Move from here...
23365 * video/emu/sdl.c: ...to here.
23366 * util/time.c: Move from here...
23367 * kern/emu/time.c: ...to here.
23368 * util/usb.c: Move from here...
23369 * bus/usb/emu/usb.c: ...to here.
23371 * include/grub/emu/misc.h: New header for grub-emu functions.
23372 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
23374 * conf/any-emu.rmk: Rule updates for above renames.
23375 * conf/common.rmk: Likewise.
23376 * conf/i386-pc.rmk: Likewise.
23377 * conf/i386-qemu.rmk: Likewise.
23378 * conf/mips.rmk: Likewise.
23379 * conf/sparc64-ieee1275.rmk: Likewise.
23380 * conf/x86-efi.rmk: Likewise.
23382 * disk/lvm.h: #include updates for above renames.
23383 * util/grub-mkrelpath.c: Likewise.
23384 * util/grub-probe.c: Likewise.
23385 * util/i386/pc/grub-setup.c: Likewise.
23386 * util/sparc64/ieee1275/grub-setup.c: Likewise.
23387 * kern/emu/console.c: Likewise.
23388 * kern/emu/getroot.c: Likewise.
23389 * kern/emu/hostdisk.c: Likewise.
23390 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
23392 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
23393 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
23394 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
23395 * util/misc.c: Remove grub-emu functions.
23397 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
23400 Reported by: Thorsten Grützmacher.
23402 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
23404 (circprog_set_property): Register and unregister timeout hook.
23405 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
23406 (label_destroy): Free template. and unregister hook.
23407 (label_set_state): New function.
23408 (label_set_property): Handle templates and hooks.
23409 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
23411 (progress_bar_set_property): Register and unregister timeout hook.
23412 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
23413 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
23414 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
23415 (update_timeout_visit): Removed.
23416 (update_timeouts): New function.
23417 (redraw_timeouts): Likewise.
23418 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
23419 (grub_gfxmenu_clear_timeout): Likewise.
23420 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
23421 (grub_gfxmenu_timeout_notify): Likewise.
23422 (grub_gfxmenu_timeout_notifications): New external variable.
23423 (grub_gfxmenu_timeout_register): New function.
23424 (grub_gfxmenu_timeout_unregister): Likewise.
23426 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
23428 Transform (broken) vga terminal into (working) vga video driver.
23430 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
23431 video/i386/pc/vga.c.
23432 * include/grub/video.h (grub_video_driver_id):
23433 Add GRUB_VIDEO_DRIVER_VGA.
23434 * term/i386/pc/vga.c: Renamed to ...
23435 * video/i386/pc/vga.c: ...this
23436 (DEBUG_VGA): Removed.
23437 (CHAR_WIDTH): Likewise.
23438 (CHAR_HEIGHT): Likewise.
23439 (TEXT_WIDTH): Likewise.
23440 (TEXT_HEIGHT): Likewise.
23441 (DEFAULT_FG_COLOR): Likewise.
23442 (DEFAULT_BG_COLOR): Likewise.
23443 (colored_char): Likewise.
23446 (cursor_state): Likewise.
23447 (fg_color): Likewise.
23448 (bg_color): Likewise.
23449 (text_buf): Likewise.
23452 (framebuffer): New variable.
23453 (set_read_map): Disabled.
23454 (setup): New variable.
23455 (is_target): Likewise.
23456 (grub_vga_mod_init): Likewise.
23457 (grub_vga_mod_fini): Likewise.
23458 (check_vga_mem): Likewise.
23459 (write_char): Likewise.
23460 (write_cursor): Likewise.
23461 (scroll_up): Likewise.
23462 (grub_vga_putchar): Likewise.
23463 (grub_vga_getcharwidth): Likewise.
23464 (grub_vga_getwh): Likewise.
23465 (grub_vga_getxy): Likewise.
23466 (grub_vga_gotoxy): Likewise.
23467 (grub_vga_cls): Likewise.
23468 (grub_vga_setcolorstate): Likewise.
23469 (grub_vga_setcursor): Likewise.
23470 (grub_video_vga_init): New function.
23471 (grub_video_vga_setup): Likewise.
23472 (grub_video_vga_fini): Likewise.
23473 (update_target): Likewise.
23474 (grub_video_vga_blit_bitmap): Likewise.
23475 (grub_video_vga_blit_render_target): Likewise.
23476 (grub_video_vga_set_active_render_target): Likewise.
23477 (grub_video_vga_get_active_render_target): Likewise.
23478 (grub_video_vga_swap_buffers): Likewise.
23479 (grub_video_vga_set_palette): Likewise.
23480 (grub_video_vga_get_info_and_fini): Likewise.
23481 (grub_vga_term): Removed.
23482 (grub_video_vga_adapter): New variable.
23483 (GRUB_MOD_INIT): Register a video driver instead of terminal.
23484 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
23486 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
23488 * video/readers/jpeg.c: Indented.
23490 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
23492 Various jpeg cleanups.
23494 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
23495 (grub_jpeg_decode_quan_table): Use sizeof.
23496 (grub_jpeg_decode_du): Use ARRAY_SIZE.
23498 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
23500 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
23501 tables. Ignore non-last ac bit.
23502 (grub_jpeg_decode_quan_table): Likewise.
23504 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
23506 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
23507 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
23508 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
23509 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
23510 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
23511 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
23513 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
23515 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
23518 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
23520 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
23522 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
23524 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
23527 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
23529 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
23532 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
23534 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
23537 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
23539 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
23541 2010-05-01 Christian Franke <franke@computer.org>
23543 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
23544 Remove broken Cygwin path conversion.
23545 * util/misc.c: [__CYGWIN__] Add include and define.
23546 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
23548 (make_system_path_relative_to_its_root): Simplify loop, replace early
23550 [__CYGWIN__] Add conversion to win32 path.
23551 Include "/" case in trailing slash removal.
23553 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23555 * kern/main.c (grub_load_config): Fix copy-pasted comment.
23556 Reported by: Seth Goldberg
23558 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23560 * commands/help.c (grub_cmd_help): Fix a typo.
23561 Reported by: Seth Goldberg
23563 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23565 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
23567 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
23568 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
23569 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
23570 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
23571 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
23572 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
23573 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
23574 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
23575 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
23576 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
23577 * normal/context.c (GRUB_MOD_INIT): Likewise.
23578 * normal/main.c (GRUB_MOD_INIT): Likewise.
23579 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
23580 * term/serial.c (GRUB_MOD_INIT): Likewise.
23581 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
23583 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23585 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
23588 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23590 * commands/iorw.c: New file.
23591 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
23592 (iorw_mod_SOURCES): New variable.
23593 (iorw_mod_CFLAGS): Likewise.
23594 (iorw_mod_LDFLAGS): Likewise.
23596 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23600 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
23601 * normal/main.c (hotkey_aliases): New variable.
23602 (grub_normal_add_menu_entry): Parse "--hotkey".
23603 * normal/menu_text.c (run_menu): Handle hotkeys.
23605 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23607 * kern/i386/coreboot/init.c (grub_machine_init): Call
23608 grub_machine_mmap_init on qemu.
23610 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23612 * boot/i386/qemu/boot.S: Add a missing .code16.
23614 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23616 Use LBIO on coreboot.
23618 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
23619 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
23620 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
23622 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
23623 grub_machine_mmap_init on coreboot.
23624 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
23625 GRUB_LINUXBIOS_MEMBER_LINK.
23626 (grub_machine_mmap_iterate): Fix declaration.
23627 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
23629 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23631 Split coreboot and multiboot ports.
23633 * conf/i386-multiboot.rmk: New file.
23634 * configure.ac: Add multiboot port.
23635 * include/grub/i386/multiboot/boot.h: New file.
23636 * include/grub/i386/multiboot/console.h: Likewise.
23637 * include/grub/i386/multiboot/init.h: Likewise.
23638 * include/grub/i386/multiboot/kernel.h: Likewise.
23639 * include/grub/i386/multiboot/loader.h: Likewise.
23640 * include/grub/i386/multiboot/memory.h: Likewise.
23641 * include/grub/i386/multiboot/serial.h: Likewise.
23642 * include/grub/i386/multiboot/time.h: Likewise.
23643 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
23644 * loader/multiboot.c: Likewise.
23645 * loader/multiboot_mbi2.c: Likewise.
23646 * util/grub-mkrescue.in: Generate multiboot rescue.
23648 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23650 * kern/parser.c (grub_parser_execute): Cope with read-only config.
23652 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23654 Merge handling of input and output terminals. Fix a hang.
23656 * commands/terminal.c (abstract_terminal): New struct.
23657 (handle_command): New function. Based on grub_cmd_terminal_input.
23658 (grub_cmd_terminal_input): Use handle_command.
23659 (grub_cmd_terminal_output): Use handle_command.
23661 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
23663 Fix comment handling.
23665 * tests/grub_script_comments.in: New testcase.
23666 * conf/tests.rmk: Rules for new testcase.
23667 * script/yylex.l: Updated flex rules.
23669 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
23671 * docs/grub.texi (play): Document that zero pitches produce rests.
23672 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
23675 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
23677 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
23680 2010-04-26 Christian Franke <franke@computer.org>
23682 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
23683 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
23684 (grub_get_prefix): Remove function.
23685 * util/grub-emu.c (main): Replace grub_get_prefix () call by
23686 make_system_path_relative_to_its_root ().
23687 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
23689 2010-04-24 Christian Franke <franke@computer.org>
23691 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
23692 (kernel_img_LDFLAGS): Remove -static-libgcc.
23694 2010-04-24 Christian Franke <franke@computer.org>
23696 * configure.ac: Do not CHECK_BSS_START_SYMBOL
23697 and CHECK_END_SYMBOL if grub-emu is built.
23698 Unset TARGET_OBJ2ELF if grub-emu is built
23699 without module support.
23701 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
23705 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
23706 (grub_fstest_SOURCES): Likewise.
23707 (pkglib_MODULES): Add nilfs2.mod.
23708 (nilfs2_mod_SOURCES): New variable.
23709 (nilfs2_mod_CFLAGS): Likewise.
23710 (nilfs2_mod_LDFLAGS): Likewise.
23711 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
23712 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
23713 * fs/nilfs2.c: New file.
23715 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
23717 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
23720 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
23722 Add grub-mkconfig support for NetBSD.
23724 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
23725 * util/grub-mkconfig.in: export new NetBSD specific variables.
23726 * po/POTFILES-shell: added 10_netbsd.in.
23727 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
23729 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
23731 Fix emu build with grub-emu-pci and grub-emu-modules.
23733 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
23735 * include/grub/libpciaccess.h: New file.
23736 * conf/any-emu.rmk: Update kernel headers for emu build.
23738 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
23740 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
23742 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
23744 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
23746 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
23748 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
23749 Retrieve chosen/bootpath if bootpath isn't hardcoded.
23750 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
23751 util/ieee1275/ofpath.c.
23752 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
23753 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
23754 * include/grub/sparc64/ieee1275/boot.h
23755 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
23756 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
23757 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
23758 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
23760 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
23761 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
23762 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
23765 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
23767 * util/grub-mkconfig.in: Corrected two == equality tests.
23768 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
23769 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
23770 expect a number appended to it.
23771 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
23772 expects a number appended to it.
23774 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
23776 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
23778 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
23780 * util/hostdisk.c (make_device_name): Change to new partition naming.
23782 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
23784 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
23786 2010-04-17 Christian Franke <franke@computer.org>
23788 * Makefile.in: Add missing localedir setting.
23790 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
23792 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
23793 mistake in r2156. Noticed by Anthony Fok.
23795 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
23797 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
23799 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
23801 Fix a spurious, uninitialized variable warning.
23803 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
23804 Initialize variable, shdr.
23805 (grub_freebsd_load_elfmodule): Likewise.
23806 (grub_freebsd_load_elf_meta): Likewise.
23808 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
23810 Fix for escaped dollar in double quoted strings.
23812 * script/yylex.l: Updated flex rules.
23813 * conf/tests.rmk: Rule for new testcase.
23814 * tests/grub_script_dollar.in: New testcase.
23816 2010-04-13 Carles Pina i Estany <carles@pina.cat>
23817 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
23819 Enclose all translated strings in grub.cfg in single quotes, and
23820 escape them appropriately (Ubuntu bug #552921).
23822 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
23823 * util/grub.d/10_hurd.in: Use it.
23824 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
23825 * util/grub.d/10_linux.in (linux_entry): Likewise.
23827 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
23829 Fix cygwin compilation.
23831 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
23832 * include/grub/misc.h (__register_frame_info)
23833 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
23834 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
23835 * kern/misc.c (__register_frame_info)
23836 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
23837 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
23839 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
23841 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
23843 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
23845 Unify libgcc processing.
23847 * Makefile.in (kernel_img_LDFLAGS): New variable.
23848 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
23849 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
23851 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
23852 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
23853 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
23854 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
23855 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
23856 overwriting. Remove -lgcc and -static-libgcc
23857 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
23858 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
23859 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
23860 (kernel_img_LDFLAGS): Append instead of overwriting.
23861 Remove -lgcc and -static-libgcc
23862 * conf/sparc64-ieee1275.rmk: Likewise.
23863 * include/grub/powerpc/libgcc.h: Move to ...
23864 * include/grub/libgcc.h: .. this.
23865 * include/grub/libgcc.h: Don't export most of the function on x86.
23866 (__bswapsi2): New export.
23867 (__bswapdi2): Likewise.
23868 * include/grub/mips/libgcc.h: Removed.
23869 * include/grub/sparc64/libgcc.h: Likewise.
23871 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23873 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
23874 disk_info_msg (conflicts with gettexting into languages with cases).
23876 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
23878 Add grub-probe support for NetBSD.
23880 * util/getroot.c (find_root_device): Convert block device to
23881 character device on NetBSD.
23882 * util/probe.c (probe): Require character device on NetBSD.
23883 * util/hostdisk.c: NetBSD specific headers.
23884 (configure_device_driver): new function to tune device driver
23885 parameters (currently only for NetBSD floppy driver).
23886 (grub_util_biosdisk_open): NetBSD specific code (get disk size
23887 via disklabel ioctl).
23888 (open_device): call configure_device_driver on NetBSD.
23889 (convert_system_partition_to_system_disk): NetBSD specific code.
23890 (device_is_wholedisk): Likewise.
23891 (grub_util_biosdisk_get_grub_dev): Likewise.
23892 (make_device_name): Fixed a typo in bsd_part_str.
23893 * configure.ac: check for opendisk() and getrawpartition() on
23894 NetBSD and set LIBUTIL.
23895 * Makefile.in: add LIBUTIL to LIBS.
23897 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
23901 * util/grub-script-check.c: Better help message.
23903 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
23907 * configure.ac: Flex version check.
23908 * conf/common.rmk: Add -Wno-error to sh.mod.
23909 * script/yylex.l: Remove all #pragma.
23911 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23913 * include/grub/util/misc.h (canonicalise_file_name): Add missing
23915 Reported by: Seth Goldberg.
23917 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23919 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
23920 Rename "module" to "module2".
23921 Reported by: Seth Goldberg.
23923 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23925 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
23927 Reported by: Seth Goldberg.
23929 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23931 * lib/posix_wrap/locale.h: Add missing file.
23932 Reported by: Seth Goldberg.
23934 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23936 grub-emu module load support.
23938 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
23939 NO_DYNAMIC_MODULES switched to this.
23940 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
23941 (CFLAGS): Likewise.
23942 * conf/any-emu.rmk: Generate symlist.
23943 (kernel_img_HEADERS): Add util/datetime.h.
23944 (kernel_img_HEADERS) [sdl]: Add sdl.h.
23945 (kernel_img_HEADERS) [libusb]: Add libusb.h.
23946 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
23947 kern/$(target_cpu)/cache.S.
23948 * configure.ac (grub-emu-modules): New option.
23949 * genmk.rb: Handle multiple source lists.
23950 * include/grub/sdl.h: New file.
23951 * include/grub/libusb.h: Likewise.
23952 * util/grub-emu.c (main): Hanle (host) root.
23953 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
23954 GRUB_ERR_UNKNOWN_DEVICE.
23955 * util/misc.c: Move mm functions to ...
23956 * util/mm.c: ... here. All users updated.
23958 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23960 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
23961 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
23963 (maintainer-clean): Remove libgcrypt-grub.
23965 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23967 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
23969 2010-04-09 EFI Coder <eficoder@hotmail.com>
23971 * normal/menu_text.c (print_message): Clean up the message and show
23972 the Fn information when on EFI
23973 * term/efi/console.c (grub_console_checkkey): Add F4 support.
23975 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23977 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
23979 * normal/crypto.c (read_crypto_list): Likewise.
23980 * normal/dyncmd.c (read_command_list): Likewise.
23981 * normal/term.c (read_terminal_list): Likewise.
23982 * normal/main.c (read_lists): Use explicit prefix.
23983 (read_lists_hook): Use read_lists.
23984 (grub_normal_execute): Likewise.
23986 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23988 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
23989 Reported by: Thomas Schmitt.
23990 Add -no-emul-boot to grub-mkisofs parameters.
23992 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23994 * font/font.c: Indented.
23996 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
23998 Elif support to GRUB script (by Deepak Vankadaru).
24000 * tests/grub_script_if.in: New testcase.
24001 * conf/tests.rmk: Rule for new testcase.
24002 * script/parser.y: Grammar rules for elif.
24004 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
24006 While and until loops support to GRUB script.
24008 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
24009 (grub_script_create_cmdwhile): New function prototype.
24010 (grub_script_execute_cmdwhile): New function prototype.
24011 * script/execute.c (grub_script_execute_cmdwhile): New function.
24012 * script/parser.y (command): New commands.
24013 (whilecmd): New grammar rule.
24014 (untilcmd): New grammar rule.
24015 * script/script.c (grub_script_create_cmdwhile): New function.
24016 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
24019 * tests/grub_script_while1.in: New testcase.
24020 * conf/tests.rmk: Rule for new testcase.
24022 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24024 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
24027 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
24029 GRUB_BACKGROUND support.
24031 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
24032 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
24034 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24036 Load fonts and modules for gfxmenu in grub-mkconfig.
24037 Idea by: Mario Vazquez
24039 * util/grub.d/00_header.in: Load pf2 and image modules.
24041 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24043 grub-mkconfig multiple terminal support.
24045 * util/grub-mkconfig.in: Handle multiple terminals correctly.
24046 * util/grub.d/00_header.in: Likewise.
24048 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24050 * Makefile.in: Specify files explicitly instead of using $< and $@ since
24051 we use cd $(srcdir).
24053 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
24055 * util/grub.d/10_linux.in: Only use the first word of
24056 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
24057 spaces in GRUB_DISTRIBUTOR.
24058 * util/grub.d/10_kfreebsd.in: Likewise.
24059 * util/grub.d/10_hurd.in: Likewise.
24061 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
24063 Fix unit testing framework for Qemu 0.12.
24065 * tests/util/grub-shell.in: Remove -serial stdio option.
24067 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
24069 POSIX header file wrappers.
24071 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
24073 * lib/posix_wrap/ctype.h: Likewise.
24074 * lib/posix_wrap/errno.h: Likewise.
24075 * lib/posix_wrap/langinfo.h: Likewise.
24076 * lib/posix_wrap/limits.h: Likewise.
24077 * lib/posix_wrap/localcharset.h: Likewise.
24078 * lib/posix_wrap/stdint.h: Likewise.
24079 * lib/posix_wrap/stdio.h: Likewise.
24080 * lib/posix_wrap/stdlib.h: Likewise.
24081 * lib/posix_wrap/string.h: Likewise.
24082 * lib/posix_wrap/sys/types.h: Likewise.
24083 * lib/posix_wrap/unistd.h: Likewise.
24084 * lib/posix_wrap/wchar.h: Likewise.
24085 * lib/posix_wrap/wctype.h: Likewise.
24086 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
24087 (grub_script.yy.h): Likewise.
24088 * script/yylex.l: Remove POSIX emulation #defines.
24089 * Makefile.in (POSIX_CFLAGS): New variable.
24090 (GNULIB_UTIL_CFLAGS): Likewise.
24094 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
24095 (regexp_mod_SOURCES): New variable.
24096 (regexp_mod_CFLAGS): Likewise.
24097 (regexp_mod_LDFLAGS): Likewise.
24098 * commands/regexp.c: New file.
24099 * gnulib/regcomp.c: New file. Imported from gnulib.
24100 * gnulib/regex.c: Likewise.
24101 * gnulib/regex_internal.c: Likewise.
24102 * gnulib/regex_internal.h: Likewise.
24103 * gnulib/regexec.c: Likewise.
24104 * gnulib/regex.h: Likewise.
24106 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
24108 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
24109 unsupported video mode types.
24111 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
24113 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
24115 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
24117 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
24118 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
24120 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
24122 Remove unused grub_vga_get_font.
24124 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
24125 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
24127 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
24129 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
24130 * include/grub/misc.h: Likewise.
24132 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
24134 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
24135 for which failure is fatal.
24137 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
24139 * util/grub-install.in: Use mkdir -p to create grub directory.
24140 * util/i386/efi/grub-install.in: Likewise.
24141 * util/ieee1275/grub-install.in: Likewise.
24143 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
24145 * Makefile.in (LEX): new variable.
24147 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
24149 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
24150 `=' and added double quotes on operands of this equality test.
24152 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
24154 * Makefile.in (uninstall): Remove a leftover debug echo.
24155 Reported by: Grégoire Sutre
24157 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
24159 MIPS multiboot2 support.
24161 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
24162 (multiboot2_mod_SOURCES): New variable.
24163 (multiboot2_mod_CFLAGS): Likewise.
24164 (multiboot2_mod_LDFLAGS): Likewise.
24165 (multiboot2_mod_ASFLAGS): Likewise.
24166 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
24168 (MULTIBOOT_ENTRY_REGISTER): Likewise.
24169 (MULTIBOOT_MBI_REGISTER): Likewise.
24170 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
24171 (MULTIBOOT_ELF32_MACHINE): Likewise.
24172 (MULTIBOOT_ELF64_MACHINE): Likewise.
24173 * include/grub/mips/multiboot.h: New file.
24174 * include/grub/video.h (grub_video_driver_id): New type
24175 GRUB_VIDEO_DRIVER_SM712.
24176 (grub_video_get_info_and_fini): Export.
24177 (grub_video_get_palette): Likewise.
24178 (grub_video_get_driver_id): Likewise.
24179 * include/multiboot2.h: Resynced with spec.
24180 * loader/i386/multiboot.c: Moved from here ...
24181 * loader/multiboot.c: ... here. All users updated.
24182 (grub_multiboot_boot): Use platform-specific macros.
24183 * loader/i386/multiboot_elfxx.c: Moved from here ...
24184 * loader/multiboot_elfxx.c: ... here. All users updated.
24185 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
24186 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
24187 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
24189 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
24191 Import gnulib argp module.
24193 * gnulib/argp-ba.c: New file.
24194 * gnulib/argp-eexst.c: Likewise.
24195 * gnulib/argp-fmtstream.c: Likewise.
24196 * gnulib/argp-fmtstream.h: Likewise.
24197 * gnulib/argp-fs-xinl.c: Likewise.
24198 * gnulib/argp-help.c: Likewise.
24199 * gnulib/argp-namefrob.h: Likewise.
24200 * gnulib/argp-parse.c: Likewise.
24201 * gnulib/argp-pin.c: Likewise.
24202 * gnulib/argp-pv.c: Likewise.
24203 * gnulib/argp-pvh.c: Likewise.
24204 * gnulib/argp-version-etc.c: Likewise.
24205 * gnulib/argp-version-etc.h: Likewise.
24206 * gnulib/argp-xinl.c: Likewise.
24207 * gnulib/argp.h: Likewise.
24209 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
24211 * kern/device.c (grub_device_iterate): Clear errors after failed
24214 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
24216 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
24217 returned by firmware.
24219 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
24221 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
24222 compilation on coreboot and qemu
24224 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
24226 * include/multiboot2.h: Resync with spec.
24228 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
24230 Multiboot2 tag support
24232 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
24233 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
24234 Remove loader/multiboot_loader.c.
24235 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
24236 (grub_multiboot2_real_boot): Likewise.
24237 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
24238 (grub_get_multiboot_mmap_count): New proto.
24239 (grub_fill_multiboot_mmap): Likewise.
24240 (grub_multiboot_set_video_mode): Likewise.
24241 (grub_multiboot_set_console): Likewise.
24242 (grub_multiboot_load): Likewise.
24243 (grub_multiboot_load_elf): Likewise.
24244 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
24245 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
24246 * include/multiboot.h: Resynced with specification.
24247 * include/multiboot2.h: Resynced with specification.
24248 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
24249 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
24250 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
24251 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
24253 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
24254 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
24255 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
24257 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
24259 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
24260 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
24262 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
24263 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
24264 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
24266 * loader/i386/multiboot_mbi2.c: New file.
24268 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
24270 Resync with gnulib.
24272 * Makefile.in (GNULIB_CFLAGS): New variable.
24273 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
24274 (grub_script_check_CFLAGS): New variable.
24275 * gnulib/alloca.h: Resync with gnulib.
24276 * gnulib/error.c: Likewise.
24277 * gnulib/error.h: Likewise.
24278 * gnulib/fnmatch.c: Likewise.
24279 * gnulib/fnmatch_loop.c: Likewise.
24280 * gnulib/getdelim.c: Likewise.
24281 * gnulib/getline.c: Likewise.
24282 * gnulib/getopt.c: Likewise.
24283 * gnulib/getopt1.c: Likewise.
24284 * gnulib/getopt_int.h: Likewise.
24285 * gnulib/gettext.h: Likewise.
24286 * gnulib/progname.c: Likewise.
24287 * gnulib/progname.h: Likewise.
24289 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
24291 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
24292 which is the case with --disabled-nls.
24294 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
24295 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
24296 * util/misc.c: Likewise.
24297 * util/mkisofs/mkisofs.c: Likewise.
24298 * util/mkisofs/mkisofs.h: Likewise.
24300 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
24302 Simplify Apple CC support.
24304 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
24305 Add 0 byte at the end not to have a symbol with empty target.
24306 * mmap/i386/pc/mmap_helper.S: Likewise.
24307 * genmk.rb: Ignore errors 2030 and 2050.
24308 * kern/i386/pc/startup.S: Use LOCAL when possible.
24310 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
24312 Testcase and the fix for final semicolon on cmdline.
24314 * tests/grub_script_final_semicolon.in: New testcase.
24315 * conf/tests.rmk: Rules for the new testcase.
24316 * script/parser.y: Grammar fix.
24318 2010-03-26 BVK Chaitanya <bvk@localhost>
24320 Blank lines testcase for GRUB script.
24322 * tests/grub_script_blanklines.in: New testcase.
24323 * conf/tests.rmk: Rules for the new testcase.
24325 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
24327 Don't use __FILE__.
24329 * genmk.rb: Add -DGRUB_FILE to all C targets.
24330 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
24331 * include/grub/list.h: Likewise.
24332 * include/grub/misc.h: Likewise.
24333 * include/grub/mm.h: Likewise.
24334 * include/grub/test.h: Likewise.
24335 * kern/mm.c: Likewise.
24336 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
24338 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
24340 Sunpc partitions support.
24342 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
24343 (grub_fstest_SOURCES): Likewise.
24344 (pkglib_MODULES): Add part_sunpc.mod.
24345 (part_sunpc_mod_SOURCES): New variable.
24346 (part_sunpc_mod_CFLAGS): Likewise.
24347 (part_sunpc_mod_LDFLAGS): Likewise.
24348 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
24349 * partmap/sunpc.c: New file.
24351 2010-03-26 BVK Chaitanya <bvk@localhost>
24353 For loop support to GRUB script.
24355 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
24356 (grub_script_create_cmdfor): New function prototype.
24357 (grub_script_execute_cmdfor): New function prototype.
24358 * script/execute.c (grub_script_execute_cmdfor): New function.
24359 * script/parser.y (command): New for command.
24360 (forcmd): New grammar rule.
24361 * script/script.c (grub_script_create_cmdfor): New function.
24362 * util/grub-script-check.c (grub_script_execute_cmdfor): New
24364 * tests/grub_script_for1.in: New testcase.
24365 * conf/tests.rmk: Rules for new testcase.
24367 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
24371 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
24372 'partition' is NULL, grub_partition_get_start already does that.
24373 * commands/loadenv.c (check_blocklists): Likewise.
24374 (write_blocklists): Likewise.
24375 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
24376 (grub_fstest_SOURCES): Likewise.
24377 (pkglib_MODULES): Add part_bsd.mod.
24378 (part_bsd_mod_SOURCES): New variable.
24379 (part_bsd_mod_CFLAGS): Likewise.
24380 (part_bsd_mod_LDFLAGS): Likewise.
24381 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
24382 (grub_emu_SOURCES): Likewise.
24383 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24384 * include/grub/bsdlabel.h: New file.
24385 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
24387 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
24388 (grub_partition_map_list): New variable.
24389 (grub_partition_map_register): Inline.
24390 (grub_partition_map_unregister): Likewise.
24391 (FOR_PARTITION_MAPS): New macro.
24392 (grub_partition_map_iterate): Removed.
24393 (grub_partition_get_start): Handle nested partitions.
24394 * include/grub/msdos_partition.h: Remove bsd-related entries.
24395 (grub_pc_partition): Remove.
24396 * kern/disk.c (grub_disk_close): Free partition data.
24397 (grub_disk_adjust_range): Handle nested partitions.
24398 * kern/partition.c (grub_partition_map_probe): New function.
24399 (grub_partition_probe): Parse name to number, handle subpartitions.
24400 (get_partmap): New function.
24401 (grub_partition_iterate): Handle subpartitions.
24402 (grub_partition_get_name): Likewise.
24403 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
24404 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
24405 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
24406 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
24408 (acorn_partition_map_probe): Remove.
24409 (acorn_partition_map_get_name): Likewise.
24410 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
24412 Set 'index' to 0 since there can be only one partition entry per sector.
24413 (amiga_partition_map_probe): Remove.
24414 (amiga_partition_map_get_name): Likewise.
24415 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
24417 Set 'offset' and 'index' to real positions of partitions.
24418 (apple_partition_map_probe): Remove.
24419 (apple_partition_map_get_name): Likewise.
24420 * partmap/bsdlabel.c: New file.
24421 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
24423 Allocate 'data' so it can be correctly freed.
24424 Set 'index' to offset inside sector.
24425 (gpt_partition_map_probe): Remove.
24426 (gpt_partition_map_get_name): Likewise.
24427 * partmap/msdos.c (grub_partition_parse): Remove.
24428 (pc_partition_map_iterate): Don't force raw access.
24430 Make 'ext_offset' a local variable.
24431 (pc_partition_map_probe): Remove.
24432 (pc_partition_map_get_name): Remove.
24433 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
24435 (sun_partition_map_probe): Remove.
24436 (sun_partition_map_get_name): Likewise.
24437 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
24438 (grub_pcpart_type): Likewise.
24439 * util/hostdisk.c (open_device): Handle new numbering scheme.
24440 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
24441 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
24442 * util/grub-probe.c (probe_partmap): Handle nested paritions.
24443 * util/grub-install.in: Insert all subpartition modules.
24444 * util/ieee1275/grub-install.in: Likewise.
24446 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
24448 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
24451 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
24453 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
24455 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
24457 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
24458 match where 'make install' puts them.
24459 * util/i386/efi/grub-install.in: Likewise.
24461 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
24463 * .bzrignore: Add gentrigtables, grub-script-check,
24464 grub_script_check_init.c, grub_script_check_init.h, and
24467 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
24469 * kern/parser.c: Indented.
24471 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
24473 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
24475 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
24477 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
24478 alpha_mask_size == 0 case.
24480 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
24482 GRUB shell lexer and parser improvements.
24484 * conf/any-emu.rmk: Build rule updates.
24485 * conf/common.rmk: Likewise.
24486 * conf/i386-coreboot.rmk: Likewise.
24487 * conf/i386-efi.rmk: Likewise.
24488 * conf/i386-ieee1275.rmk: Likewise.
24489 * conf/i386-pc.rmk: Likewise.
24490 * conf/powerpc-ieee1275.rmk: Likewise.
24491 * conf/x86_64-efi.rmk: Likewise.
24493 * configure.ac: Configure check for flex.
24495 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
24497 (grub_lexer_param): Struct member updates.
24498 (grub_parser_param): Likewise.
24499 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
24500 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
24501 (grub_script_lexer_init): Prototype update.
24502 (grub_script_lexer_record_start): Likewise.
24503 (grub_script_lexer_record_stop): Likewise.
24504 (grub_script_lexer_yywrap): New function prototype.
24505 (grub_script_lexer_fini): Likewise.
24506 (grub_script_execute_argument_to_string): Removed by...
24507 (grub_script_execute_argument_to_argv): ...better version.
24509 * script/execute.c (ROUND_UPTO): New macro.
24510 (grub_script_execute_cmdline): Out of memory fixes.
24511 (grub_script_execute_menuentry): Likewise.
24512 (grub_script_execute_argument_to_string): Removed. Update all
24514 (grub_script_execute_argument_to_argv): ...better version.
24515 * script/function.c (grub_script_function_create): Use
24516 grub_script_execute_argument_to_argv instead of
24517 grub_script_execute_argument_to_string.
24519 * script/lexer.c (check_varstate): Removed.
24520 (check_textstate): Removed.
24521 (grub_script_lexer_record_start): Likewise.
24522 (grub_script_lexer_record_stop): Likewise.
24523 (recordchar): Replaced with...
24524 (grub_script_lexer_record): ...new function.
24525 (nextchar): Removed.
24526 (grub_script_lexer_init): Rewritten.
24527 (grub_script_yylex): Rewritten.
24528 (append_newline): New function.
24529 (grub_script_lexer_yywrap): New function.
24530 (grub_script_lexer_fini): New function.
24531 (grub_script_yyerror): Sets error flag.
24533 * script/yylex.l: New file.
24534 (grub_lexer_yyfree): Wrapper for flex yyffre.
24535 (grub_lexer_yyalloc): Likewise.
24536 (grub_lexer_yyrealloc): Likewise.
24537 * script/parser.y: Refactored.
24539 * script/script.c (grub_script_arg_add): Out of memory fixes.
24540 (grub_script_add_arglist): Likewise.
24541 (grub_script_create_cmdline): Likewise.
24542 (grub_script_create_cmdmenu): Likewise.
24543 (grub_script_add_cmd): Likewise.
24544 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
24545 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
24548 * tests/grub_script_echo1.in: New testcase.
24549 * tests/grub_script_vars1.in: New testcase.
24550 * tests/grub_script_echo_keywords.in: New testcase.
24552 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24554 Remove some redundancy in build system.
24556 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
24557 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
24558 (TARGET_LDFLAGS): Add -nostdlib.
24559 (TARGET_IMG_LDFLAGS): Likewise.
24560 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
24561 anything since mmap isn't available.
24562 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
24564 (pkglib_MODULES): Remove reboot.mod.
24565 (reboot_mod_SOURCES): Removed.
24566 (reboot_mod_CFLAGS): Likewise.
24567 (reboot_mod_LDFLAGS): Likewise.
24568 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
24569 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
24570 (DEFSYMFILES): Add kernel_syms.lst.
24571 (kernel_img_HEADERS): Add common headers.
24572 (symlist.c): New target.
24573 (kernel_syms.lst): Likewise.
24574 (pkglib_MODULES): Add memdisk.mod.
24575 (memdisk_mod_SOURCES): New variable.
24576 (memdisk_mod_CFLAGS): Likewise.
24577 (memdisk_mod_LDFLAGS): Likewise.
24578 (pkglib_MODULES): Add reboot.mod.
24579 (reboot_mod_SOURCES): New variable.
24580 (reboot_mod_CFLAGS): Likewise.
24581 (reboot_mod_LDFLAGS): Likewise.
24582 (pkglib_MODULES): Add date.mod.
24583 (date_mod_SOURCES): New variable.
24584 (date_mod_CFLAGS): Likewise.
24585 (date_mod_LDFLAGS): Likewise.
24586 (pkglib_MODULES): Add datehook.mod.
24587 (datehook_mod_SOURCES): New variable.
24588 (datehook_mod_CFLAGS): Likewise.
24589 (datehook_mod_LDFLAGS): Likewise.
24590 (pkglib_MODULES): Add lsmmap.mod.
24591 (lsmmap_mod_SOURCES): New variable.
24592 (lsmmap_mod_CFLAGS): Likewise.
24593 (lsmmap_mod_LDFLAGS): Likewise.
24594 (pkglib_MODULES): Add boot.mod.
24595 (boot_mod_SOURCES): New variable.
24596 (boot_mod_CFLAGS): Likewise.
24597 (boot_mod_LDFLAGS): Likewise.
24598 * conf/i386-coreboot.rmk: Removed redundant parts.
24599 * conf/i386-ieee1275.rmk: Likewise.
24600 * conf/i386-pc.rmk: Likewise.
24601 * conf/mips-yeeloong.rmk: Likewise.
24602 * conf/mips.rmk: Likewise.
24603 * conf/powerpc-ieee1275.rmk: Likewise.
24604 * conf/sparc64-ieee1275.rmk: Likewise.
24605 * conf/x86_64-efi.rmk: Likewise.
24606 * conf/i386-coreboot.rmk: Moved qemu parts ..
24607 * conf/i386-qemu.rmk: ... here
24608 * conf/i386-efi.rmk: Moved common parts to...
24609 * conf/x86-efi.rmk: ... here.
24610 * conf/i386.rmk: Added modules common to all x86 variants.
24611 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
24612 * disk/memdisk.c: Remove grub/machine/kernel.h.
24613 * gensymlist.sh.in: Include symbol.h.
24614 * hook/datehook.c: Correct module name.
24615 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
24616 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
24617 * include/grub/i386/efi/serial.h: New file.
24618 * include/grub/x86_64/efi/serial.h: Likewise.
24619 * util/time.c: Likewise.
24620 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
24622 2010-03-14 Colin King <colin.king@ubuntu.com>
24623 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
24625 Shrink the pre-partition-table part of boot.img by eight bytes.
24627 * boot/i386/pc/boot.S (ERR): New macro.
24628 (chs_mode): Use ERR.
24629 (geometry_error): Likewise.
24630 (hd_probe_error): Remove. This is only used once, so we wrwite
24632 (read_error): Instead of printing read_error_string, just set up
24633 %si and fall through to ...
24634 (error_message): ... this new function, also used by ERR.
24636 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
24638 Speed up consecutive hostdisk operations on the same device.
24640 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
24641 (grub_util_biosdisk_open): Initialise disk->data.
24642 (struct linux_partition_cache): New structure.
24643 (linux_find_partition): Cache partition start positions; these are
24644 expensive to compute on every read and write.
24645 (open_device): Cache open file descriptor in disk->data, so that we
24646 don't have to reopen it and flush the buffer cache for consecutive
24647 operations on the same device.
24648 (grub_util_biosdisk_close): New function.
24649 (grub_util_biosdisk_dev): Set `close' member.
24651 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
24652 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
24653 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
24654 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
24655 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
24657 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24659 Compile parts of grub-emu as modules.
24661 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
24662 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
24663 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
24664 (all-local): Add $(GRUB_EMU).
24665 (install-local): Install $(GRUB_EMU).
24666 (uninstall): Uninstall $(GRUB_EMU).
24667 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
24668 * kern/dl.c: Likewise.
24669 * commands/sleep.c: Not include machine/time.h.
24670 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
24671 (COMMON_CFLAGS): Likewise.
24672 (sbin_UTILITIES): Remove grub-emu.
24673 (grub_emu_SOURCES): Removed.
24674 (kernel_img_RELOCATABLE): New variable.
24675 (pkglib_PROGRAMS): Add kernel.img.
24676 (kernel_img_SOURCES): New variable
24677 (kernel_img_CFLAGS): Likewise.
24678 (kernel_img_LDFLAGS): Likewise.
24679 (TARGET_NO_STRIP): Likewise.
24680 (TARGET_NO_DYNAMIC_MODULES): Likewise.
24681 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
24682 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
24683 (grub-emu): New target.
24684 (GRUB_EMU): New variable.
24685 * configure.ac: Whitelist -emu as possible x86_64 architecture.
24686 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
24687 * loader/xnu.c: Likewise.
24688 * include/grub/pci.h: Likewise.
24689 * genemuinit.sh: New file.
24690 * genemuinitheader.sh: Likewise.
24691 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
24692 Support TARGET_NO_DYNAMIC_MODULES.
24693 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
24694 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
24695 * disk/loopback.c: Likewise.
24696 * font/font_cmd.c: Likewise.
24697 * partmap/acorn.c: Likewise.
24698 * partmap/amiga.c: Likewise.
24699 * partmap/apple.c: Likewise.
24700 * partmap/gpt.c: Likewise.
24701 * partmap/msdos.c: Likewise.
24702 * partmap/sun.c: Likewise.
24703 * parttool/msdospart.c: Likewise.
24704 * term/gfxterm.c: Likewise.
24705 * video/bitmap.c: Likewise.
24706 * video/readers/jpeg.c: Likewise.
24707 * video/readers/png.c: Likewise.
24708 * video/readers/tga.c: Likewise.
24709 * video/video.c: Likewise.
24710 * util/grub-emu.c (read_command_list): Removed.
24711 (main): Don't call util_init_nls.
24712 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
24713 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
24715 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24717 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
24718 date.mod, datehook.mod.
24719 (datetime_mod_SOURCES): New variable.
24720 (datetime_mod_CFLAGS): Likewise.
24721 (datetime_mod_LDFLAGS): Likewise.
24722 (date_mod_SOURCES): Likewise.
24723 (date_mod_CFLAGS): Likewise.
24724 (date_mod_LDFLAGS): Likewise.
24725 (datehook_mod_SOURCES): Likewise.
24726 (datehook_mod_CFLAGS): Likewise.
24727 (datehook_mod_LDFLAGS): Likewise.
24728 * conf/sparc64-ieee1275.rmk: Likewise.
24729 * lib/ieee1275/datetime.c: New file.
24731 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24733 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
24734 (ieee1275_fb_mod_SOURCES): New variable.
24735 (ieee1275_fb_mod_CFLAGS): Likewise.
24736 (ieee1275_fb_mod_LDFLAGS): Likewise.
24737 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
24739 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
24740 (HEAP_MAX_ADDR): Likewise.
24741 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
24743 Correct stop condition.
24744 (grub_ieee1275_devices_iterate): New function.
24745 * video/ieee1275.c: New file.
24747 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24749 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
24751 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
24753 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
24754 SCRATCH_PAD_DISKBOOT as scratch.
24755 (bootit): Pass Openfirmware pointer in %o4.
24756 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
24758 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
24759 with util/grub-mkrawimage.c.
24760 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
24761 * include/grub/aout.h (AOUT_MID_SUN): New definition.
24762 (grub_aout_get_type) [GRUB_UTIL]: Removed.
24763 (grub_aout_load) [GRUB_UTIL]: Likewise.
24764 * include/grub/kernel.h (grub_modules_get_end): New proto.
24765 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
24766 (SCRATCH_PAD_BOOT): New definition.
24767 (SCRATCH_PAD_DISKBOOT): Likewise.
24768 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
24769 * include/grub/sparc64/ieee1275/ieee1275.h
24770 (grub_ieee1275_original_stack): New variable
24771 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
24773 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
24774 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
24775 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
24776 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
24777 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
24778 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
24779 (grub_platform_image_format_t): New type.
24780 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
24781 * kern/main.c (grub_modules_get_end)
24782 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
24783 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
24784 (codestart): Switch stacks.
24785 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
24787 (grub_heap_init): Use grub_modules_get_end.
24788 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
24790 * util/grub-mkrawimage.c (generate_image): Support sparc64.
24792 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
24794 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
24796 * util/grub-mkrescue.in: Base ISO UUID on UTC.
24798 2010-03-08 Matt Kraai <kraai@ftbfs.org>
24800 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
24803 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
24805 * genmoddep.awk: Output all missing symbols and not only first.
24807 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24809 * NEWS: Put the date of 1.98 release.
24811 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24813 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
24816 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24818 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
24819 completition in the middle of string.
24821 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24823 * util/grub-mkrescue.in: Use mktemp with explicit template.
24825 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24827 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
24829 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24831 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
24834 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
24836 Fix FreeBSD compilation.
24838 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
24839 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
24841 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
24843 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
24845 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24847 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
24849 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24851 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
24853 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
24855 Support relative image path in theme file.
24857 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
24858 (image_set_property): Handle theme_dir and relative path.
24860 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24862 * configure.ac: Alias amd64 to x86_64.
24864 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24866 * NEWS: mention multiboot on EFI.
24868 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24870 * kern/main.c (grub_load_modules): Handle errors from init functions of
24873 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24875 * normal/autofs.c (autoload_fs_module): Handle errors.
24877 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24879 Disable linux.mod on qemu-mips since it's not functional and leads
24880 to compilation failure.
24882 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
24883 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
24884 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
24885 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
24886 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
24887 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
24888 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
24889 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
24890 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
24891 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
24892 Reported by: BVK Chaitanya
24894 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
24896 * INSTALL: Add gettext as a dependency and add qemu to a new section
24897 "Prerequisites for make-check".
24899 2010-03-04 Christian Franke <franke@computer.org>
24901 * util/grub-pe2elf.c: Add missing include "progname.h".
24903 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24905 * normal/crypto.c (read_crypto_list): Fix a typo.
24906 Reported by: Seth Goldberg.
24908 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24910 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
24911 Reported by: Seth Goldberg.
24913 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24915 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
24918 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24920 * genmk.rb: Remove terminal*.lst in make clean.
24921 Reported by: Seth Goldberg.
24923 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24925 * util/i386/efi/grub-install.in: Copy gettext files.
24927 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24929 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
24931 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24933 Wait for user entry basing on presence of output rather than on errors.
24935 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
24936 (grub_install_newline_hook): Likewise.
24937 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
24938 * normal/menu.c (show_menu): Check line_counter to determine presence
24940 * normal/term.c (grub_normal_line_counter): New variable.
24941 (grub_normal_get_line_counter): New function.
24942 (grub_install_newline_hook): Likewise.
24944 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24946 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
24948 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24950 * configure.ac: Update version to 1.98.
24952 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
24954 * util/grub.d/10_linux.in (linux_entry): Don't default to
24955 gfxpayload=keep if Linux doesn't support video handover.
24957 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
24959 Don't compile video modules on yeeloong since video subsystem is part
24962 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
24963 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
24964 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
24965 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
24966 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
24967 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
24968 * include/grub/bitmap_scale.h: Likewise.
24969 * include/grub/bufio.h: Likewise.
24970 * include/grub/font.h: Likewise.
24971 * include/grub/gfxterm.h: Likewise.
24972 * include/grub/video.h: Likewise.
24973 * include/grub/vbe.h: Don't include video_fb.h.
24974 * video/i386/pc/vbe.c: Include video_fb.h.
24975 * commands/i386/pc/vbetest.c: Include video.h.
24977 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
24979 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
24980 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
24981 default entry if GRUB_SAVEDEFAULT=true. This allows using
24982 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
24983 saving a new default on every boot.
24985 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
24987 * normal/crypto.c (read_crypto_list): Fix a memory leak.
24988 * normal/term.c (read_terminal_list): Likewise.
24989 * normal/main.c (grub_normal_init_page): Likewise.
24990 (grub_normal_read_line_real): Likewise.
24992 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
24994 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
24996 Reported by: Seth Goldberg.
24998 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
25000 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
25001 duplicate declaration of `start'.
25003 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
25005 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
25007 Reported by: Georgy Buranov
25009 2010-02-20 Carles Pina i Estany <carles@pina.cat>
25011 * util/grub-mkrawimage.c (usage): Change string formatting to
25014 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
25016 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
25019 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
25021 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
25022 Reported by: Michael Suchanek.
25024 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
25026 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
25027 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
25029 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
25031 Remove any reference to non-free fonts.
25033 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
25034 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
25035 uses non-free components.
25036 * font/font.c (grub_font_get_name): Remove example name.
25037 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
25038 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
25039 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
25040 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
25042 2010-02-16 Georgy Buranov <gburanov@gmail.com>
25044 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
25046 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
25048 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
25050 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
25052 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
25054 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
25056 * gensymlist.sh.in: Use TARGET_CC instead of CC.
25058 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
25060 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
25061 * docs/grub.texi (Command-line and menu entry commands): Document play
25064 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
25066 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
25067 parse arguments as inline tempo and notes. Move code for playing notes
25069 (play): ... new function.
25071 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
25073 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
25074 grub_uint16_t instead of short.
25075 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
25076 disk from little endian to cpu endianness.
25078 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
25080 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
25081 GRUB_TICKS_PER_SECOND instead of 120.
25083 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25085 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
25086 escape sequence after \e.
25088 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25090 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
25091 non-ASCII characters.
25093 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25095 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
25096 set root in single quotes to prevent \, from being unescaped.
25098 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25100 Prevent unknown commands from stopping menuentry execution.
25102 * script/execute.c (grub_script_execute_cmdline): Print error after
25105 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25107 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
25108 Reported by: Pavel Pisa.
25110 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25112 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
25114 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25116 Merge grub_ieee1275_map_physical into grub_map and rename to
25119 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
25120 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
25122 * kern/ieee1275/openfw.c (grub_map): Rename to ...
25123 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
25125 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
25127 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25129 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
25130 opening and not after.
25132 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25134 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
25137 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25139 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
25140 (alloc_phys): Use ALIGN_UP instead of align_addr.
25142 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25144 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
25146 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25148 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
25150 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25152 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
25155 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25157 Fix over-4GiB seek on sparc64.
25159 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
25160 Replace pos_i and pos_lo with pos. All users updated.
25161 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
25163 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
25165 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
25168 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25170 * util/grub-mkrawimage.c (main): Call set_program_name.
25172 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25174 Properly align 64-bit targets.
25176 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
25177 (generate_image): Use ALIGN_ADDR.
25179 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25181 Properly create cross-endian images.
25183 * include/grub/types.h (grub_host_to_target_addr): New macro
25184 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
25186 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25188 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
25190 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
25192 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
25194 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
25195 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
25196 (grub_linux_boot): Divide by 64K when on VESA.
25198 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
25200 Support GRUB_GFXPAYLOAD_LINUX.
25202 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
25203 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
25205 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
25207 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
25208 to show messages instead of discarding them.
25209 Process errors after executing command and not before. Keep old method
25212 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
25214 * configure.ac: Check for ft2build.h.
25216 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25218 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
25220 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25222 * genkernsyms.sh.in: Use TARGET_CC.
25224 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
25228 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25230 * include/grub/multiboot2.h: Remove leftover file.
25231 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
25232 * include/grub/partition.h [GRUB_UTIL]: Likewise.
25234 2010-02-07 Yves Blusseau <blusseau@zetam.org>
25236 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
25238 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25240 Fix warnings in grub-emu when compiling with maximum warning options.
25242 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
25243 (grub_arch_modules_addr): Return 0 and not NULL.
25244 * util/misc.c (ENABLE_RELOCATABLE): New definition.
25245 (xstrdup): Use newstr instead of dup.
25246 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
25247 of disk to dsk to avoid shadowing.
25248 (find_free_slot): Fix prototype.
25249 * util/getroot.c (grub_util_is_dmraid): Make static.
25250 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
25251 Add missing prototype.
25252 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
25254 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25256 * loader/i386/linux.c (grub_linux_setup_video): Handle error
25259 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25261 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
25264 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25266 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
25267 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
25268 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
25269 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
25270 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
25271 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
25273 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25275 * include/grub/err.h (grub_err_printf): Don't export.
25277 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25279 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
25281 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25283 * include/grub/i18n.h (grub_gettext_dummy): Removed.
25284 * kern/misc.c (grub_gettext_dummy): Make static.
25286 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25288 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
25290 * kern/term.c (grub_putchar): Likewise.
25292 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25294 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
25295 buggy hook call and memory leak.
25297 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25299 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
25301 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25303 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
25305 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25307 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
25309 Return grub_errno on allocation error.
25311 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25313 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
25315 2010-02-06 Yves Blusseau <blusseau@zetam.org>
25317 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
25318 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
25320 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25322 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
25324 (grub_pxefs_open): Likewise.
25326 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
25328 * util/grub.d/10_hurd.in: Add --class information to menuentries.
25329 * util/grub.d/10_kfreebsd.in: Likewise.
25330 * util/grub.d/10_linux.in: Likewise.
25332 2010-02-06 Colin D Bennett <colin@gibibit.com>
25334 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
25335 (gfxmenu_mod_SOURCES): New variable.
25336 (gfxmenu_mod_CFLAGS): Likewise.
25337 (gfxmenu_mod_LDFLAGS): Likewise.
25338 * include/grub/term.h (grub_term_set_current_output): Declare
25340 * docs/gfxmenu-theme-example.txt: New file.
25341 * gfxmenu/gfxmenu.c: Likewise.
25342 * gfxmenu/gui_box.c: Likewise.
25343 * gfxmenu/gui_canvas.c: Likewise.
25344 * gfxmenu/gui_circular_progress.c: Likewise.
25345 * gfxmenu/gui_image.c: Likewise.
25346 * gfxmenu/gui_label.c: Likewise.
25347 * gfxmenu/gui_list.c: Likewise.
25348 * gfxmenu/gui_progress_bar.c: Likewise.
25349 * gfxmenu/gui_string_util.c: Likewise.
25350 * gfxmenu/gui_util.c: Likewise.
25351 * gfxmenu/icon_manager.c: Likewise.
25352 * gfxmenu/model.c: Likewise.
25353 * gfxmenu/named_colors.c: Likewise.
25354 * gfxmenu/theme_loader.c: Likewise.
25355 * gfxmenu/view.c: Likewise.
25356 * gfxmenu/widget-box.c: Likewise.
25357 * include/grub/gfxmenu_model.h: Likewise.
25358 * include/grub/gfxmenu_view.h: Likewise.
25359 * include/grub/gfxwidgets.h: Likewise.
25360 * include/grub/gui.h: Likewise.
25361 * include/grub/gui_string_util.h: Likewise.
25362 * include/grub/icon_manager.h: Likewise.
25364 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25366 Agglomerate scrolling in gfxterm.
25368 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
25369 (grub_virtual_screen_setup): Initialise 'total_screen'.
25370 (write_char): Split to ...
25371 (paint_char): ... this ...
25372 (write_char): ... and this.
25373 (paint_char): Handle delayed scrolling.
25374 (draw_cursor): Likewise.
25375 (scroll_up): Split to ...
25376 (real_scroll): ... this ...
25377 (scroll_up): ... and this.
25378 (real_scroll): Handle multi-line scroll and draw below-the-bottom
25380 (grub_gfxterm_refresh): Call real_scroll.
25382 2010-02-06 Colin D Bennett <colin@gibibit.com>
25384 * include/grub/misc.h (grub_iscntrl): New inline function.
25385 (grub_isalnum): Likewise.
25386 (grub_strtol): Likewise.
25388 2010-02-06 Colin D Bennett <colin@gibibit.com>
25390 * normal/menu_text.c (get_entry_number): Move from here ...
25391 * normal/menu.c (get_entry_number): ... moved here.
25392 * include/grub/menu.h (grub_menu_get_default_entry_index):
25394 * normal/menu.c (grub_menu_get_default_entry_index): New function.
25395 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
25396 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
25397 (grub_menu_viewer_should_return): Likewise.
25398 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
25399 * normal/menu_text.c (run_menu): Enable menu switching.
25400 * normal/menu_viewer.c (should_return): New variable.
25401 (menu_viewer_changed): Likewise.
25402 (grub_menu_viewer_show_menu): Handle menu viewer changes.
25403 (grub_menu_viewer_should_return): New function.
25404 (menuviewer_write_hook): Likewise.
25405 (grub_menu_viewer_init): Likewise.
25407 2010-02-06 Colin D Bennet <colin@gibibit.com>
25408 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25410 Support for gfxterm in a window.
25412 * include/grub/gfxterm.h: New file.
25413 * include/grub/video.h (struct grub_video_rect): New declaration.
25414 (grub_video_rect_t): Likewise.
25415 * term/gfxterm.c (struct grub_gfxterm_window): New type.
25416 (refcount): New variable.
25417 (render_target): Likewise.
25418 (window): Likewise.
25419 (repaint_callback): Likewise.
25420 (grub_virtual_screen_setup): Use 'render_target'.
25421 (init_window): New function.
25422 (grub_gfxterm_init_window): Likewise.
25423 (grub_gfxterm_init): Check reference counter.
25425 (destroy_window): New function.
25426 (grub_gfxterm_destroy_window): Likewise.
25427 (grub_gfxterm_fini): Check reference counter.
25428 Use destroy_window.
25429 (redraw_screen_rect): Restore viewport.
25430 Use 'render_target' and 'window'.
25431 Call 'repaint_callback'.
25432 (write_char): Use 'render_target'.
25433 (draw_cursor): Likewise.
25434 (scroll_up): Restore viewport.
25435 Use 'render_target' and 'window'.
25436 Call 'repaint_callback'.
25437 (grub_gfxterm_cls): Likewise.
25438 (grub_gfxterm_refresh): Use 'window'.
25439 (grub_gfxterm_set_repaint_callback): New function.
25440 (grub_gfxterm_background_image_cmd): Use 'window'.
25441 (grub_gfxterm_get_term): New function.
25442 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
25444 2010-02-06 Colin D Bennett <colin@gibibit.com>
25446 Bitmap scaling support.
25448 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
25449 (bitmap_scale_mod_SOURCES): New variable.
25450 (bitmap_scale_mod_CFLAGS): Likewise.
25451 (bitmap_scale_mod_LDFLAGS): Likewise.
25452 * include/grub/bitmap_scale.h: New file.
25453 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
25454 (background_image_cmd_options): New variable.
25455 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
25456 (cmd): Rename and change type to ...
25457 (background_image_cmd_handle): ... this. All users updated.
25458 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
25459 * video/bitmap_scale.c: New file.
25461 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25465 * Makefile.in (LIBSDL): New variable.
25466 (enable_grub_emu_sdl): Likewise.
25467 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
25468 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
25469 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
25470 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
25471 * util/sdl.c: New file.
25473 2010-02-06 Colin D Bennett <colin@gibibit.com>
25474 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25476 Double buffering support.
25478 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
25479 * include/grub/video.h: Update comment.
25480 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
25482 (grub_video_fb_doublebuf_blit_init): New prototype.
25483 * term/gfxterm.c (scroll_up): Support double buffering.
25484 (grub_gfxterm_refresh): Likewise.
25485 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
25486 (grub_video_fb_doublebuf_blit_init): Likewise.
25487 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
25488 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
25489 'displayed_page', 'render_page' and 'update_screen'.
25490 (grub_video_vbe_fini): Free offscreen buffer.
25491 (doublebuf_pageflipping_commit): New function.
25492 (doublebuf_pageflipping_update_screen): Likewise.
25493 (doublebuf_pageflipping_init): Likewise.
25494 (double_buffering_init): Likewise.
25495 (grub_video_vbe_setup): Enable doublebuffering.
25496 (grub_video_vbe_swap_buffers): Implement.
25497 (grub_video_vbe_set_active_render_target): Handle double buffering.
25498 (grub_video_vbe_get_active_render_target): Likewise.
25499 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
25500 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
25501 (grub_video_vbe_enable_double_buffering): Likewise.
25502 (grub_video_vbe_swap_buffers): Use update_screen.
25503 (grub_video_set_mode): Use double buffering.
25505 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
25507 * maintainance/gentrigtables.py: Remove.
25508 * lib/trig.c: Likewise.
25510 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
25512 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
25514 (trigtables.c): New rule.
25515 (gentrigtables): Likewise.
25516 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
25518 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
25520 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
25523 2010-02-06 Colin D Bennet <colin@gibibit.com>
25525 Trigonometry support.
25527 * include/grub/trig.h: New file.
25528 * lib/trig.c: Likewise.
25529 * maintainance/gentrigtables.py: Likewise.
25530 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
25531 (trig_mod_SOURCES): New variable.
25532 (trig_mod_CFLAGS): Likewise.
25533 (trig_mod_LDFLAGS): Likewise.
25535 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25537 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
25540 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25542 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
25545 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
25547 * util/hostdisk.c (open_device): Don't use partition device when reading
25548 before the partition.
25549 (grub_util_biosdisk_read): Don't read from partition and before the
25550 partition in single operation.
25551 (grub_util_biosdisk_write): Don't write to partition and before the
25552 partition in single operation.
25554 2010-02-03 Torsten Landschoff <torsten@debian.org>
25556 * kern/disk.c (grub_disk_read): Fix offset computation when reading
25559 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
25561 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
25563 (grub_biosdisk_write): Refuse to write to CDROM.
25565 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
25567 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
25569 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
25571 * font/font.c (find_glyph): Check that bmp_idx is available before
25573 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
25574 with (font == NULL).
25576 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
25578 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
25580 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
25582 * include/grub/script_sh.h (sourcecode): Add const qualifier.
25583 * util/grub-script-check.c (getline): Fix empty lines case.
25585 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
25587 * Makefile.in (check): Exit with fail status when one of the tests
25589 * tests/example_functional_test.c (example_test): Fix reversed assert.
25590 * tests/example_unit_test.c (example_test): Likewise.
25592 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
25594 * util/grub.d/10_linux.in: This script does not use any of the
25595 contents of gettext.sh, only the external command `gettext', so stop
25596 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
25597 the same prefix as GRUB.)
25598 * util/grub.d/10_kfreebsd.in: Likewise.
25600 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
25602 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
25605 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
25607 * kern/disk.c (grub_disk_read): Fix offset computation when reading
25610 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
25612 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
25613 having a 4KiB and not 32KiB buffer size.
25615 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
25617 * util/hostfs.c: Include `<errno.h>'.
25618 (grub_hostfs_read): Handle errors from fseeko() and fread().
25620 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
25622 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
25623 loop when using read hooks on files whose size isn't sector-aligned.
25625 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
25627 Remove unused parameter.
25629 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
25630 (grub_iso9660_open): Remove initialization of `data->length'.
25632 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
25634 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
25635 memleak conditions.
25637 2010-01-27 Carles Pina i Estany <carles@pina.cat>
25639 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
25640 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
25642 2010-01-26 Carles Pina i Estany <carles@pina.cat>
25644 * util/bin2h.c (usage): Fix warning (space after backslash).
25646 2010-01-26 Carles Pina i Estany <carles@pina.cat>
25648 * font/font.c: Include `grub/fontformat.h.
25649 Remove font file format constants.
25650 (grub_font_load): Use the new macros.
25651 * include/grub/fontformat.h: New file.
25652 * util/grub-mkfont.c: Include `grub/fontformat.c'.
25653 (write_font_pf2): Use the new macros.
25655 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
25657 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
25660 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
25662 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
25664 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
25665 (_start): Macroify `0x7F'.
25667 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
25668 (make_install_device): Use "(pxe)" as fallback prefix when booting
25671 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
25673 * configure.ac: Reset LIBS after check for libgcc symbols.
25675 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
25677 * util/hostdisk.c (open_device): Add trailing newline to debug
25680 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
25682 * configure.ac: Check for `limits.h'.
25683 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
25685 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
25687 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
25688 capitalize error strings.
25690 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
25692 * util/grub.d/10_hurd.in: Add a recovery mode.
25694 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
25696 * configure.ac: Check for libgcc symbols with -nostdlib.
25698 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
25700 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
25702 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
25704 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
25705 stack since heap may be unavailable at that point.
25706 (grub_ofconsole_gotoxy): Likewise.
25708 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
25710 * configure.ac: Check for _restgpr_14_x.
25711 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
25712 and _savegpr_* prototypes.
25714 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
25716 Use generic grub_reboot() for i386-efi.
25718 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
25719 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
25720 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
25722 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
25724 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
25725 presence of "prefix" variable as it breaks when normal.mod is
25728 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
25730 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
25731 stack since heap is unavailable at that point.
25733 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
25735 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
25736 (grub_freebsd_bootinfo): Rewritten.
25737 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
25739 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
25741 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
25743 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
25745 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
25748 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
25750 * util/misc.c (make_system_path_relative_to_its_root): Change the work
25751 around for handling "/" to the correct fix. Fix a memory leak. Use
25752 xstrdup instead of strdup.
25754 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25756 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
25758 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25760 Optimise glyph lookup by Basic Multilingual Plane lookup array.
25762 * font/font.c (struct grub_font): New member 'bmp_idx'.
25763 (font_init): Initialise 'bmp_idx'.
25764 (load_font_index): Fill 'bmp_idx'.
25765 (find_glyph): Make inline. Use bmp_idx for BMP characters.
25767 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25769 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
25772 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25774 Move context handling out of the kernel.
25776 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
25777 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
25778 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
25779 * conf/i386-efi.rmk: Likewise.
25780 * conf/i386-ieee1275.rmk: Likewise.
25781 * conf/i386-pc.rmk: Likewise.
25782 * conf/powerpc-ieee1275.rmk: Likewise.
25783 * conf/sparc64-ieee1275.rmk: Likewise.
25784 * conf/x86_64-efi.rmk: Likewise.
25785 * include/grub/env.h: Include grub/menu.h.
25786 (grub_env_var_type): Removed.
25787 (grub_env_var): Replaced field 'type' with 'global'.
25788 (grub_env_find): New prototype.
25789 (grub_env_context_open): Remove EXPORT_FUNC.
25790 (grub_env_context_close): Likewise.
25791 (grub_env_export): Likewise.
25792 (grub_env_set_data_slot): Removed.
25793 (grub_env_get_data_slot): Likewise.
25794 (grub_env_unset_data_slot): Likewise.
25795 (grub_env_unset_menu): New prototype.
25796 (grub_env_set_menu): Likewise.
25797 (grub_env_get_menu): Likewise.
25798 * include/grub/env_private.h: New file.
25799 * include/grub/normal.h (grub_context_init): New prototype.
25800 (grub_context_fini): Likewise.
25801 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
25802 * normal/context.c (grub_cmd_export): ... to here.
25803 * kern/env.c: Include env_private.h.
25804 (HASHSZ): Moved to include/grub/env_private.h.
25805 (grub_env_context): Likewise.
25806 (grub_env_sorted_var): Likewise.
25807 (current_context): Renamed from this ...
25808 (grub_current_context): ...to this. 'static' removed. All users updated.
25809 (grub_env_find): Removed 'static'.
25810 (grub_env_context_open): Moved to normal/context.c.
25811 (grub_env_context_close): Likewise.
25812 (grub_env_export): Likewise.
25813 (mangle_data_slot_name): Removed.
25814 (grub_env_set_data_slot): Likewise.
25815 (grub_env_get_data_slot): Likewise.
25816 (grub_env_unset_data_slot): Likewise.
25817 * kern/main.c (grub_set_root_dev): Don't export root.
25818 It will be done later.
25819 (grub_main): Don't export prefix.
25820 It will be done later.
25821 * normal/context.c: New file.
25822 * normal/main.c (free_menu): Use grub_env_unset_menu.
25823 (grub_normal_add_menu_entry): Use grub_env_get_menu.
25824 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
25825 (GRUB_MOD_INIT(normal)): Call grub_context_init.
25826 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
25828 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25832 * commands/setpci.c: New file.
25833 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
25834 (setpci_mod_SOURCES): New variable.
25835 (setpci_mod_CFLAGS): Likewise.
25836 (setpci_mod_LDFLAGS): Likewise.
25838 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25840 Byte-addressable PCI configuration space.
25842 * bus/pci.c (grub_pci_make_address): Use byte address instead of
25844 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
25845 GRUB_PCI_REG_CACHELINE.
25846 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
25847 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
25848 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
25849 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
25850 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
25851 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
25852 grub_pci_make_address.
25853 (lock_rom_area): Likewise.
25854 * commands/lspci.c (grub_lspci_iter): Use macroses
25855 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
25856 of grub_pci_make_address.
25857 * disk/ata.c (grub_ata_pciinit): Likewise.
25858 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
25859 (GRUB_PCI_REG_VENDOR): Likewise.
25860 (GRUB_PCI_REG_DEVICE): Likewise.
25861 (GRUB_PCI_REG_COMMAND): Likewise.
25862 (GRUB_PCI_REG_STATUS): Likewise.
25863 (GRUB_PCI_REG_REVISION): Likewise.
25864 (GRUB_PCI_REG_CLASS): Likewise.
25865 (GRUB_PCI_REG_CACHELINE): Likewise.
25866 (GRUB_PCI_REG_LAT_TIMER): Likewise.
25867 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
25868 (GRUB_PCI_REG_BIST): Likewise.
25869 (GRUB_PCI_REG_ADDRESSES): Likewise.
25870 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25871 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25872 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25873 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25874 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25875 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25876 (GRUB_PCI_REG_CIS_POINTER): Likewise.
25877 (GRUB_PCI_REG_SUBVENDOR): Likewise.
25878 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
25879 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
25880 (GRUB_PCI_REG_CAP_POINTER): Likewise.
25881 (GRUB_PCI_REG_IRQ_LINE): Likewise.
25882 (GRUB_PCI_REG_IRQ_PIN): Likewise.
25883 (GRUB_PCI_REG_MIN_GNT): Likewise.
25884 (GRUB_PCI_REG_MAX_LAT): Likewise.
25885 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
25886 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
25887 * video/efi_uga.c (find_framebuf): Likewise.
25888 * video/sm712.c (grub_video_sm712_setup): Likewise.
25889 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
25892 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25894 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
25895 can be reliably determined to be supported.
25897 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25899 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
25900 that VESA is supported.
25901 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
25904 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25906 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
25908 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25910 * util/misc.c (make_system_path_relative_to_its_root): Work around
25911 special-casing of "/", as previous incarnation of this routine did.
25913 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25915 Fix any-emu compilation.
25917 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
25918 * grub_bin2h_SOURCES: New variable.
25920 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25922 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
25924 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25926 * util/grub.d/00_header.in: Fix handling of locale_dir.
25928 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25930 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
25931 as possible unifont location (Gentoo).
25932 Reported by: Alexander Brüning
25934 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25936 Don't try to generate lists for kernel.img.
25938 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
25939 (pkglib_MODULES): Remove kernel.img.
25940 (kernel_img_EXPORTS): Removed.
25941 (kernel_img_RELOCATABLE): New variable.
25942 * conf/x86_64-efi.rmk: Likewise.
25943 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
25945 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25947 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
25948 grub_xasprintf or grub_snprintf.
25949 (grub_vsprintf): Likewise.
25950 (grub_snprintf): New proto.
25951 (grub_vsnprintf): Likewise.
25952 (grub_xasprintf): Likewise.
25953 (grub_xvasprintf): Likewise.
25954 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
25955 (grub_sprintf): Removed.
25956 (grub_vsnprintf): New function.
25957 (grub_snprintf): Likewise.
25958 (grub_xvasprintf): Likewise.
25959 (grub_xasprintf): Likewise.
25960 (grub_vsprintf): Renamed to ...
25961 (grub_vsnprintf_real): ...this. New argument max_len.
25963 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
25965 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
25966 fix grub-script-check warning.
25968 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25970 * include/grub/font.h (grub_font_load): Fix prototype.
25972 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25974 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
25976 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25978 * include/grub/x86_64/at_keyboard.h: New file.
25980 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25982 * loader/mips/linux.c: Include missing grub/i18n.h.
25984 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25986 * normal/menu.c (notify_execution_failure): Clarify error message.
25988 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25990 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
25991 return value (and revert all return statements). Update users.
25993 2010-01-20 Dan Merillat <debian@dan.merillat.org>
25995 * kern/device.c (grub_device_iterate): Allocate new part_ent
25996 structure based on sizeof (*p) rather than sizeof (p->next), to
25997 account for structure padding.
25999 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
26000 disk is NULL, which might happen for LVM physical volumes with no
26003 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
26005 * loader/mips/linux.c (grub_cmd_initrd)
26006 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
26008 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
26010 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
26011 (grub_video_video_init, grub_video_bitmap_init)
26012 (grub_font_manager_init, grub_term_gfxterm_init)
26013 (grub_at_keyboard_init): New extern declarations.
26014 (grub_machine_init): Initialize gfxterm and at_keyboard.
26016 * kern/main.c (grub_main): Revert grub_printf delay kludge.
26018 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
26019 `gfxterm.mod' into core image.
26021 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
26022 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
26023 (kernel_img_FORMAT): Copy to ...
26025 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
26026 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
26027 (kernel_img_FORMAT): ... here, and ...
26029 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
26030 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
26031 (kernel_img_FORMAT): ... here.
26033 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
26034 and input (at_keyboard) terminals in kernel.
26035 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
26037 (pkglib_MODULES): Remove `pci.mod'.
26038 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
26039 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
26040 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
26041 (at_keyboard_mod_LDFLAGS): Remove variables.
26043 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
26045 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
26047 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
26049 * include/grub/mips/libgcc.h: Only export symbols for functions
26050 that libgcc provides.
26052 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
26056 * bus/bonito.c: New file.
26057 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
26058 GRUB_PCI_NUM_DEVICES.
26059 * term/i386/pc/serial.c: Move to ...
26060 * term/serial.c: ... here. All users updated.
26061 * util/i386/pc/grub-mkimage.c: Move to ...
26062 * util/grub-mkrawimage.c: ... here. All users updated.
26063 * term/i386/pc/at_keyboard.c: Move to ...
26064 * term/at_keyboard.c: ... here. All users updated.
26065 * conf/mips-qemu-mips.rmk: New file.
26066 * conf/mips-yeeloong.rmk: Likewise.
26067 * conf/mips.rmk: Likewise.
26068 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
26070 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
26072 (grub_ata_pciinit): Support CS5536.
26073 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
26074 * font/font_cmd.c (loadfont_command): Open file before passing it to
26076 (pseudo_file_read): New function.
26077 (pseudo_file_close): Likewise.
26078 (pseudo_fs): New structure.
26079 (load_font_module): New function.
26080 (GRUB_MOD_INIT(font_manager)): Load embedded font.
26081 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
26082 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
26083 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
26084 * include/grub/i386/at_keyboard.h: Split into ...
26085 * include/grub/at_keyboard.h: ... this ...
26086 * include/grub/i386/at_keyboard.h: ... and this.
26087 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
26089 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
26091 (grub_elf64_size): Likewise.
26092 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
26094 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
26095 * include/grub/i386/coreboot/serial.h: Rewritten.
26096 * include/grub/i386/ieee1275/serial.h: Include
26097 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
26098 * include/grub/i386/pc/serial.h: Moved from here ...
26099 * include/grub/serial.h: ... to here. All users updated.
26100 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
26101 (GRUB_PCI_NUM_BUS): Likewise.
26102 (GRUB_PCI_NUM_DEVICES): Likewise.
26103 (grub_pci_device_map_range): Add missing volatile keyword.
26104 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
26105 * include/grub/mips/at_keyboard.h: New file.
26106 * include/grub/mips/cache.h: Likewise.
26107 * include/grub/mips/io.h: Likewise.
26108 * include/grub/mips/kernel.h: Likewise.
26109 * include/grub/mips/libgcc.h: Likewise.
26110 * include/grub/mips/pci.h: Likewise.
26111 * include/grub/mips/qemu-mips/boot.h: Likewise.
26112 * include/grub/mips/qemu-mips/kernel.h: Likewise.
26113 * include/grub/mips/qemu-mips/loader.h: Likewise.
26114 * include/grub/mips/qemu-mips/memory.h: Likewise.
26115 * include/grub/mips/qemu-mips/serial.h: Likewise.
26116 * include/grub/mips/qemu-mips/time.h: Likewise.
26117 * include/grub/mips/relocator.h: Likewise.
26118 * include/grub/mips/time.h: Likewise.
26119 * include/grub/mips/types.h: Likewise.
26120 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
26121 * include/grub/mips/yeeloong/boot.h: Likewise.
26122 * include/grub/mips/yeeloong/kernel.h: Likewise.
26123 * include/grub/mips/yeeloong/loader.h: Likewise.
26124 * include/grub/mips/yeeloong/memory.h: Likewise.
26125 * include/grub/mips/yeeloong/pci.h: Likewise.
26126 * include/grub/mips/yeeloong/serial.h: Likewise.
26127 * include/grub/mips/yeeloong/time.h: Likewise.
26128 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
26129 * kern/elf.c (grub_elf32_size): New parameter. All users
26131 (grub_elf64_size): Likewise.
26132 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
26133 Load modules before saying "Welcome to GRUB!".
26134 Call grub_refresh after saying "Welcome to GRUB!".
26135 * kern/mips/cache.S: New file.
26136 * kern/mips/cache_flush.S: Likewise.
26137 * kern/mips/dl.c: Likewise.
26138 * kern/mips/init.c: Likewise.
26139 * kern/mips/qemu-mips/init.c: Likewise.
26140 * kern/mips/startup.S: Likewise.
26141 * kern/mips/yeeloong/init.c: Likewise.
26142 * kern/term.c (grub_putcode): Handle NULL terminal.
26143 (grub_getcharwidth): Likewise.
26144 (grub_getkey): Likewise.
26145 (grub_checkkey): Likewise.
26146 (grub_getkeystatus): Likewise.
26147 (grub_getxy): Likewise.
26148 (grub_getwh): Likewise.
26149 (grub_gotoxy): Likewise.
26150 (grub_cls): Likewise.
26151 (grub_setcolorstate): Likewise.
26152 (grub_setcolor): Likewise.
26153 (grub_getcolor): Likewise.
26154 (grub_refresh): Likewise.
26155 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
26156 (write_jump): Add hatch nop.
26157 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
26158 * lib/mips/setjmp.S: New file.
26159 * loader/mips/linux.c: Likewise.
26160 * term/i386/pc/at_keyboard.c: Move from here ...
26161 * term/at_keyboard.c: ... to here.
26162 * term/i386/pc/serial.c: Moved from here ...
26163 * term/serial.c: ... to here. All users updated.
26164 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
26165 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
26166 (serial_translate_key_sequence): Avoid deadlock.
26167 (grub_serial_getkey): Handle backspace.
26168 (grub_serial_putchar): Fix newline handling.
26169 * util/i386/pc/grub-mkimage.c: Move from here ...
26170 * util/grub-mkrawimage.c: ... to here. All users updated.
26171 (generate_image): New parameters 'font_path' and 'format'.
26172 Support embedding font.
26173 Use grub_host_to_target* instead of grub_cpu_to_le*.
26174 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
26175 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
26176 (options): New option "--font".
26178 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
26179 (main): Handle "--font".
26180 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
26181 (grub_virtual_screen_setup): Set bg_color_display.
26182 (redraw_screen_rect): Use bg_color_display instead of incorrect
26184 (grub_gfxterm_cls): Likewise.
26185 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
26186 Support embedding config file.
26187 (add_segments): Likewise.
26188 (options): New option "--config".
26189 (main): Handle "--config".
26190 * video/sm712.c: New file.
26192 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26194 Fix parallel builds.
26196 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
26197 font.c depend on ascii.h).
26199 2010-01-12 Carles Pina i Estany <carles@pina.cat>
26201 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
26203 2010-01-11 Carles Pina i Estany <carles@pina.cat>
26205 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
26206 By default: disabled.
26207 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
26210 2010-01-10 Carles Pina i Estany <carles@pina.cat>
26212 * font/font.c: Update copyright years.
26213 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
26215 2010-01-10 Carles Pina i Estany <carles@pina.cat>
26217 * font/font.c: Include `ascii.h'.
26218 (ASCII_BITMAP_SIZE): New macro.
26219 (ascii_font_glyph): Define.
26220 (ascii_glyph_lookup): New function.
26221 (grub_font_get_string_width): Change comment. If glyph not found, use
26222 ascii_glyph_lookup.
26223 (grub_font_get_glyph_with_fallback): If glyph not available returns
26224 ascii_glyph_lookup.
26225 * util/grub-mkfont.c (file_formats): New enum.
26226 (options): Add `ascii-bitmaps' new option.
26227 (usage): Add `asii-bitmaps' new option.
26228 (write_font_ascii_bitmap): New function.
26229 (write_font): Rename to ...
26230 (write_font_p2): ... this. Remove print_glyphs call.
26231 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
26232 used. Call print_glyphs.
26233 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
26235 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
26237 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
26238 (grub_bin2h_SOURCES): New variable.
26239 * util/bin2h.c: New file.
26241 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26243 * include/multiboot.h: Resynced with spec.
26244 * include/multiboot2.h: Likewise.
26245 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
26246 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
26248 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26250 * include/grub/term.h (grub_term_register_input,
26251 grub_term_register_output): Check return of terminal init()
26252 routines, and abort if errors are raised.
26254 * commands/terminal.c: Update copyright year.
26256 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26258 * commands/terminal.c (grub_cmd_terminal_input)
26259 (grub_cmd_terminal_output): Check return of terminal init()
26260 routines, and abort if errors are raised.
26262 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
26264 * include/grub/i386/bsd.h: Fix include pathes.
26266 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
26268 Add missing *BSD copyright headers.
26270 * include/grub/aout.h: Add BSD licence.
26271 * include/grub/i386/bsd.h: Parts under different licences moved to ...
26272 * include/grub/i386/freebsd_linker.h: ... here,
26273 * include/grub/i386/freebsd_reboot.h: ... here,
26274 * include/grub/i386/netbsd_bootinfo.h: ... here,
26275 * include/grub/i386/netbsd_reboot.h: ... here,
26276 * include/grub/i386/openbsd_bootarg.h: ... here,
26277 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
26278 licence to each file.
26280 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26282 * acinclude.m4: Remove `nop' assembly instruction; it's not
26283 implemented by all architectures.
26285 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26287 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
26288 ELILO. This is no longer necessary.
26290 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
26292 Added new tool, grub-scrit-check to verify grub.cfg syntax.
26294 * util/grub-script-check.c: grub-script-check tool.
26295 * conf/common.rmk: Make rules for grub-script-check.
26297 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26299 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
26300 spotting it back in 2008. Shame on me for forgetting he did.
26302 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
26304 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26306 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
26307 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
26308 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
26309 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
26310 (GRUB_VIDEO_TYPE_EFI): Rename to ...
26311 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
26313 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
26315 * include/grub/test.h: Add license header.
26316 * tests/example_functional_test.c: Likewise.
26317 * tests/example_unit_test.c: Likewise.
26318 * tests/lib/functional_test.c: Likewise.
26319 * tests/lib/test.c: Likewise.
26320 * tests/lib/unit_test.c: Likewise.
26322 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
26324 Use flag-based instead of hook-based video mode selection and "auto"
26327 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
26328 (grub_video_set_mode): Changed prototype. All users updated.
26329 (grub_video_check_mode_flag): New inline function.
26330 * video/video.c (parse_modespec): New function.
26331 (grub_video_set_mode): Parse flags and keywords.
26333 2010-01-17 Carles Pina i Estany <carles@pina.cat>
26335 * util/misc.c (grub_util_info): Fix the order of the parameters in a
26338 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
26340 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
26342 2010-01-16 Carles Pina i Estany <carles@pina.cat>
26344 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
26346 * util/grub-emu.c (usage): Likewise.
26347 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
26348 * util/i386/efi/grub-mkimage.c (usage): Likewise.
26349 * util/i386/pc/grub-mkimage.c (usage): Likewise.
26350 * util/i386/pc/grub-setup.c (usage): Likewise.
26352 2010-01-16 Carles Pina i Estany <carles@pina.cat>
26354 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
26356 (grub_util_info): Likewise.
26357 (grub_util_error): Likewise.
26358 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
26359 and/or new lines in `grub_util_warna', `grub_util_info',
26360 `grub_util_error' calls.
26361 * util/getroot.c: Likewise.
26362 * util/grub-editenv.c: Likewise.
26363 * util/grub-emu.c: Likewise.
26364 * util/grub-fstest.c: Likewise.
26365 * util/grub-mkdevicemap.c: Likewise.
26366 * util/grub-mkfont.c: Likewise.
26367 * util/grub-mkpasswd-pbkdf2.c: Likewise.
26368 * util/grub-mkrelpath.c: Likewise.
26369 * util/grub-pe2elf.c: Likewise.
26370 * util/grub-probe.c: Likewise.
26371 * util/hostdisk.c: Likewise.
26372 * util/i386/efi/grub-mkimage.c: Likewise.
26373 * util/i386/pc/grub-mkimage.c: Likewise.
26374 * util/i386/pc/grub-setup.c: Likewise.
26375 * util/ieee1275/ofpath.c: Likewise.
26376 * util/mkisofs/eltorito.c: Likewise.
26377 * util/mkisofs/rock.c: Likewise.
26378 * util/mkisofs/write.c: Likewise.
26379 * util/raid.c: Likewise.
26380 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26381 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26383 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
26385 Enable multiboot on non-pc.
26387 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
26388 multiboot.mod and multiboot2.mod to ...
26389 * conf/i386.rmk (pkglib_MODULES): ... here.
26390 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
26392 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
26393 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
26395 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
26396 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
26398 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
26399 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
26401 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
26402 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
26404 (ata_mod_SOURCES): Removed.
26405 (ata_mod_CFLAGS): Likewise.
26406 (ata_mod_LDFLAGS): Likewise.
26407 (relocator_mod_SOURCES): Removed.
26408 (relocator_mod_CFLAGS): Likewise.
26409 (relocator_mod_ASFLAGS): Likewise.
26410 (relocator_mod_LDFLAGS): Likewise.
26412 * include/grub/x86_64/multiboot.h: New file.
26413 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
26416 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
26418 Video multiboot support.
26420 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
26422 * include/multiboot.h: Resynced with multiboot specification.
26423 * include/multiboot2.h: Likewise.
26424 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
26425 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
26426 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
26427 (HAS_VGA_TEXT): Likewise.
26428 (accepts_video): New variable.
26429 (grub_multiboot_set_accepts_video): New function.
26430 (grub_multiboot_get_mbi_size): Account for video structures.
26431 (set_video_mode): New function.
26432 (retrieve_video_parameters): Likewise.
26433 (grub_multiboot_make_mbi): Fill video fields.
26435 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
26439 * include/grub/video.h (grub_video_driver_id): New type.
26440 (grub_video_adapter): New member 'id'. All users updated.
26441 (grub_video_get_driver_id): New proto.
26442 * video/video.c (grub_video_get_driver_id): New function.
26444 2010-01-14 Carles Pina i Estany <carles@pina.cat>
26446 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
26449 2010-01-14 Carles Pina i Estany <carles@pina.cat>
26451 * normal/cmdline.c (print_completion): Gettextizze.
26453 2001-01-14 Carles Pina i Estany <carles@pina.cat>
26455 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
26457 2010-01-14 Carles Pina i Estany <carles@pina.cat>
26459 * gettext/gettext.c (grub_gettext_translate): Push and pop
26461 (grub_gettext_delete_list): Change comment style.
26462 * kern/err.c (grub_error): Gettextizze.
26463 (grub_fatal): Gettextizze.
26465 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
26467 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
26468 (grub_linux16_real_boot): ... this.
26469 * kern/i386/loader.S: Likewise.
26470 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
26471 (grub_linux16_boot): New function. Switches to text mode and calls
26472 grub_linux16_real_boot().
26474 * loader/i386/bsd.c: Include `<grub/video.h>'.
26475 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
26476 text mode before calling grub_unix_real_boot().
26478 * loader/i386/multiboot.c: Include `<grub/video.h>'.
26479 (grub_multiboot_boot): Switch to text mode before calling
26480 grub_relocator32_boot().
26482 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
26483 (grub_chainloader_boot): Switch to text mode before calling
26484 grub_chainloader_real_boot().
26486 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
26487 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
26489 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
26492 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
26493 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
26495 * util/grub.d/00_header.in: Define a "savedefault" function for use
26497 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
26499 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
26500 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
26502 * util/grub-mkconfig_lib.in (save_default_entry): Only set
26503 saved_entry if boot_once is unset.
26504 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
26505 previous saved entry (i.e. grub-reboot).
26507 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
26509 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
26511 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
26513 * util/grub.d/00_header.in: Use `set var=val' rather than plain
26515 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
26517 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
26519 * util/grub-reboot.in: Fix --version output.
26520 * util/grub-set-default.in: Likewise.
26522 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
26524 * util/grub.d/00_header.in: Silently ignore zero-sized environment
26527 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
26529 * util/grub.d/00_header.in: Quote the value assigned to `default',
26530 in case it contains spaces.
26532 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
26534 * util/grub.d/30_os-prober.in: Fix merge error that moved a
26535 `save_default_entry' call from the macosx case to the linux case.
26537 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
26538 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
26540 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
26541 in `chosen' environment variable.
26542 * normal/menu_text.c (get_entry_number): Check if the variable
26543 matches the title of a menu entry.
26544 (run_menu): Pass menu to get_entry_number.
26546 * util/grub-reboot.in: New file.
26547 * util/grub-set-default.in: New file.
26548 * conf/common.rmk (grub-reboot): New utility.
26549 (grub-set-default): New utility.
26551 * util/grub-mkconfig_lib.in (save_default_entry): New function.
26552 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
26553 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
26554 move it to `saved_entry' for the next boot. Load environment on
26556 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
26557 * util/grub.d/10_hurd.in: Likewise.
26558 * util/grub.d/10_linux.in (linux_entry): Likewise.
26559 * util/grub.d/10_windows.in: Likewise.
26560 * util/grub.d/30_os-prober.in: Likewise.
26562 * util/grub-install.in: Create environment block.
26563 * util/i386/efi/grub-install.in: Likewise.
26564 * util/ieee1275/grub-install.in: Likewise.
26565 * util/sparc64/ieee1275/grub-install.in: Likewise.
26567 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
26569 Unit testing framework for GRUB.
26571 * Makefile.in: Test framework build rules for 'make check'.
26572 * conf/tests.rmk: Build rules for individual tests and framework.
26574 * include/grub/test.h: Header file for whitebox tests.
26575 * tests/lib/functional_test.c: Framework support for whitebox
26577 * tests/lib/test.c: Common whitebox testing code for unit and
26579 * tests/lib/unit_test.c: Framework support for whitebox unit
26582 * tests/util/grub-shell-tester.in: Support utility for grub-script
26584 * tests/util/grub-shell.in: Utility to execute grub-script
26585 commands in a Qemu instance.
26587 * tests/example_functional_test.c: Example whitebox functional
26589 * tests/example_grub_script_test.in: Example grub-script test.
26590 * tests/example_scripted_test.in: Example scripted test.
26591 * tests/example_unit_test.c: Example whitebox unit test.
26593 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
26595 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
26596 Add loader/i386/multiboot_mbi.c.
26597 (multiboot2_mod_SOURCES): Likewise.
26598 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
26599 (multiboot2_mod_SOURCES): Likewise.
26600 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
26601 (grub_multiboot_make_mbi): Likewise.
26602 (grub_multiboot_free_mbi): Likewise.
26603 (grub_multiboot_init_mbi): Likewise.
26604 (grub_multiboot_add_module): Likewise.
26605 (grub_multiboot_set_bootdev): Likewise.
26606 * loader/i386/multiboot.c (mbi): Removed.
26607 (mbi_dest): Likewise.
26608 (alloc_mbi): New variable.
26609 (grub_multiboot_payload_size): Removed. All users updated.
26610 (grub_multiboot_pure_size): New variable.
26611 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
26612 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
26613 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
26614 (grub_fill_multiboot_mmap): Likewise.
26615 (grub_multiboot_get_bootdev): Likewise.
26616 (grub_multiboot): Use multiboot_mbi functions.
26617 * loader/i386/multiboot_mbi.c: New file.
26619 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
26621 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
26622 it would result in module crash.
26624 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
26626 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
26627 (grub_ofconsole_getwh): Split to ...
26628 (grub_ofconsole_getwh): ... this.
26629 (grub_ofconsole_dimensions): ...and this.
26630 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
26632 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
26634 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
26636 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
26638 * loader/i386/pc/multiboot2.c: Removed stalled file.
26640 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
26642 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
26643 Reported by: Grégoire Sutre
26645 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
26647 * util/misc.c (canonicalize_file_name): New function.
26648 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
26649 instead of realpath().
26651 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
26653 * util/grub-install.in (usage): Clarify meaning of --root-directory,
26654 and make it clearer that it's optional. Based on confusion
26657 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
26659 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
26660 in premature implicit newline.
26662 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
26664 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
26665 which resulted in garbled command line at the end of screen.
26667 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
26669 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
26670 initialization with similar approach as with other Linux loaders.
26672 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
26674 Fix i386-ieee1275 build.
26676 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
26677 and grub_term_height() for video_{width,height} initialization.
26679 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
26681 Fix grub-emu build.
26683 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
26685 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
26686 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
26688 Support for multiple terminals.
26690 * Makefile.in (pkglib_DATA): terminal.lst.
26691 (terminal.lst): New target.
26692 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
26693 (GRUB_MOD_INIT(handler)): Likewise.
26694 (GRUB_MOD_FINI(handler)): Likewise.
26695 * commands/help.c (grub_cmd_help): Handle multiple terminals.
26696 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
26697 * commands/sleep.c (do_print): Use grub_term_restore_pos.
26698 (grub_cmd_sleep): Use grub_term_save_pos.
26699 * commands/terminal.c: New file.
26700 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
26701 commands/terminal.c and lib/charset.c.
26702 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
26703 (pkglib_MODULES): Add terminal.mod.
26704 (terminal_mod_SOURCES): New variable.
26705 (terminal_mod_CFLAGS): Likewise.
26706 (terminal_mod_LDFLAGS): Likewise.
26707 * genhandlerlist.sh: Don't handle terminals.
26708 * genmk.rb: Generate terminal-*.lst.
26709 * genterminallist.sh: New file.
26710 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
26711 (grub_is_valid_utf8): Likewise.
26712 (grub_utf8_to_ucs4_alloc): Likewise.
26713 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
26714 (grub_menu_register_viewer): Changed argument.
26715 (grub_menu_try_text): New proto.
26716 (grub_gfxmenu_try_hook): New declaration.
26717 * include/grub/normal.h (grub_normal_exit_level): New declaration.
26718 (grub_menu_init_page): Additional argument term.
26719 (grub_normal_init_page): Likewise.
26720 (grub_cmdline_get): Arguments simplified.
26721 (grub_utf8_to_ucs4_alloc): Removed.
26722 (grub_print_ucs4): Additional argument term.
26723 (grub_getstringwidth): Likewise.
26724 (grub_print_message_indented): Likewise.
26725 (grub_menu_text_register_instances): New proto.
26726 (grub_show_menu): Likewise.
26727 (read_terminal_list): Likewise.
26728 (grub_set_more): Likewise.
26729 * include/grub/parser.h: Include handler.h.
26730 * include/grub/reader.h: Rewritten.
26731 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
26732 (GRUB_TERM_WIDTH): Changed to function.
26733 (GRUB_TERM_HEIGHT): Likewise.
26734 (GRUB_TERM_BORDER_WIDTH): Likewise.
26735 (GRUB_TERM_BORDER_HEIGHT): Likewise.
26736 (GRUB_TERM_NUM_ENTRIES): Likewise.
26737 (GRUB_TERM_ENTRY_WIDTH): Likewise.
26738 (GRUB_TERM_CURSOR_X): Likewise.
26739 (grub_term_input_class): Likewise.
26740 (grub_term_output_class): Likewise.
26741 (grub_term_outputs_disabled): New declaration.
26742 (grub_term_inputs_disabled): Likewise.
26743 (grub_term_outputs): Likewise.
26744 (grub_term_inputs): Likewise.
26745 (grub_term_register_input): Rewritten.
26746 (grub_term_register_output): Likewise.
26747 (grub_term_unregister_input): Likewise.
26748 (grub_term_unregister_output): Likewise.
26749 (FOR_ACTIVE_TERM_INPUTS): New macro.
26750 (FOR_DISABLED_TERM_INPUTS): Likewise.
26751 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
26752 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
26753 * include/grub/terminfo.h: Add oterm argument to all protypes.
26754 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
26755 Use grub_rescue_run.
26756 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
26758 * kern/reader.c: Removed. All users updated.
26759 * kern/rescue_reader.c (grub_rescue_init): Removed.
26760 (grub_rescue_reader): Likewise.
26761 (grub_register_rescue_reader): Likewise.
26762 (grub_rescue_run): New function based on kern/reader.c.
26763 * kern/term.c: Adapted for multiterm.
26764 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
26765 (grub_is_valid_utf8): Likewise.
26766 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
26767 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
26769 * loader/i386/linux.c (grub_linux_boot): Likewise.
26770 * normal/auth.c (grub_username_get): New function.
26771 (grub_auth_check_authentication): Use grub_username_get.
26772 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
26773 * normal/color.c: Adapt for multiterm.
26774 * normal/main.c (read_config_file): Don't use grub_reader_loop.
26775 (grub_normal_init_page): Additional argument term.
26776 (read_lists): Call read_terminal_lists.
26777 (grub_enter_normal_mode): Call grub_cmdline_run.
26778 Handle grub_normal_exit_level.
26779 (grub_cmd_normal): Make reentrant.
26780 (grub_cmd_normal_exit): New function.
26781 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
26782 * normal/menu.c: Adapt for multiterm.
26783 * normal/menu_entry.c: Likewise.
26784 * normal/menu_text.c: Likewise.
26785 * normal/menu_viewer.c: Removed. All users updated.
26786 * normal/term.c: New file.
26787 * util/console.c: Change order of includes to workaround a bug in
26789 * term/terminfo.c: New argument oterm on all exported functions.
26791 * util/grub-editenv.c (grub_term_input_class): Removed.
26792 (grub_term_output_class): Likewise.
26794 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
26796 Make loader output a bit more user-friendly.
26798 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
26799 is being loaded. Likewise for the Hurd.
26801 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
26802 that kernel of FreeBSD ${version} is being loaded.
26804 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
26806 (grub_cmd_initrd): Likewise.
26807 * util/grub.d/10_linux.in (linux_entry): Print message indicating
26808 that Linux ${version} is being loaded. Likewise for initrd.
26810 2010-01-09 Carles Pina i Estany <carles@pina.cat>
26812 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
26814 2010-01-08 Carles Pina i Estany <carles@pina.cat>
26816 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
26817 (GRUB_MOD_INIT): Gettextizze.
26818 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
26819 (GRUB_MOD_INIT): Gettextizze.
26820 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
26821 (grub_cmd_linux): Capitalise Linux.
26822 (GRUB_MOD_INIT): Gettextizze.
26823 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
26824 (grub_cmd_linux): Capitalise Linux.
26825 (GRUB_MOD_INIT): Gettextizze.
26826 * loader/i386/linux.c: Include `<grub/i18n.h>'.
26827 (grub_cmd_linux): Capitalise Linux.
26828 (GRUB_MOD_INIT): Gettextizze.
26829 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
26830 (GRUB_MOD_INIT): Gettextizze.
26831 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
26832 (grub_cmd_linux): Capitalise Linux.
26833 (GRUB_MOD_INIT): Gettextizze.
26834 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
26835 (grub_cpu_xnu_init): Gettextizze.
26836 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
26837 (GRUB_MOD_INIT): Gettextizze.
26838 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
26839 (GRUB_MOD_INIT): Gettextizze.
26840 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
26841 (grub_linux_load64): Capitalise Linux.
26842 (GRUB_MOD_INIT): Gettextizze.
26843 * loader/xnu.c: Include `<grub/i18n.h>'.
26844 (GRUB_MOD_INIT): Gettextizze.
26845 * po/POTFILES: Add `loader/efi/appleloader.c',
26846 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
26847 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
26848 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
26849 `loader/i386/xnu.c', `loader/multiboot_loader.c',
26850 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
26851 and `loader/xnu.c'.
26853 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
26855 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
26857 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
26859 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
26860 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
26861 * util/mkisofs/mkisofs.c (main): Readjust --version output.
26863 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
26865 Reset Multiboot 2 support. New loader implements the draft in
26866 /branches/multiboot2 and shares as much code as possible with the
26867 production Multiboot 1 implementation.
26869 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
26870 * loader/multiboot2.c: Likewise.
26871 * loader/i386/multiboot_helper.S: Likewise.
26872 * include/multiboot2.h: Replace with latest version from the draft
26873 in /branches/multiboot2.
26875 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
26876 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
26877 and `loader/multiboot2.c'.
26878 (pkglib_MODULES): Add `multiboot2.mod'.
26879 (multiboot2_mod_SOURCES): New variable.
26880 (multiboot2_mod_LDFLAGS): Likewise.
26881 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
26883 * conf/i386-pc.rmk: Likewise.
26885 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
26886 (multiboot_mod_SOURCES): Remove variable.
26887 (multiboot_mod_LDFLAGS): Likewise.
26888 (multiboot_mod_CFLAGS): Likewise.
26890 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
26891 `<multiboot2.h>' instead of `<multiboot.h>'.
26892 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
26893 (MULTIBOOT_HEADER_MAGIC): New macros.
26895 * loader/multiboot_loader.c (module_version_status): Remove variable.
26896 (find_multi_boot2_header): Remove function.
26897 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
26898 logic. Always check for the Multiboot version we're compiling for.
26899 (grub_cmd_module_loader): Likewise.
26900 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
26901 command instead of `multiboot'.
26903 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
26905 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
26906 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
26909 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
26910 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
26912 Fix breakage introduced with previous commit.
26914 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
26916 * normal/handler.c (read_handler_list): Revert part of previous commit
26917 affecting this file.
26918 * normal/main.c (read_lists): Move read_handler_list() call back to ...
26919 (grub_normal_execute): ... here.
26921 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
26923 Merge prefix-redefinition-fix branch.
26925 * normal/autofs.c (read_fs_list): Make function capable of being
26926 run multiple times, gracefuly replacing the previous data
26928 * normal/dyncmd.c (read_command_list): Likewise.
26929 * normal/handler.c (read_handler_list): Likewise.
26930 * normal/main.c (read_lists): New function. Calls all the
26931 list reading functions.
26932 (grub_normal_execute): Use read_lists() instead of calling all
26933 list reading functions explicitly. Register read_lists() as a
26934 variable hook attached to ${prefix}.
26936 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
26938 Merge crypto branch.
26940 * Makefile.in (pkglib_DATA): Add crypto.lst.
26941 (crypto.lst): New target.
26942 * commands/hashsum.c: New file.
26943 * commands/password.c (check_password): Use grub_crypto_memcmp.
26944 * commands/password_pbkdf2.c: New file.
26945 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
26946 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
26947 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
26948 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
26949 -I$(srcdir)/lib/libgcrypt_wrap.
26950 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
26951 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
26952 password_pbkdf2.mod.
26953 (crypto_mod_SOURCES): New variable.
26954 (crypto_mod_CFLAGS): Likewise.
26955 (crypto_mod_LDFLAGS): Likewise.
26956 (hashsum_mod_SOURCES): New variable.
26957 (hashsum_mod_CFLAGS): Likewise.
26958 (hashsum_mod_LDFLAGS): Likewise.
26959 (pbkdf2_mod_SOURCES): New variable.
26960 (pbkdf2_mod_CFLAGS): Likewise.
26961 (pbkdf2_mod_LDFLAGS): Likewise.
26962 (password_pbkdf2_mod_SOURCES): New variable.
26963 (password_pbkdf2_mod_CFLAGS): Likewise.
26964 (password_pbkdf2_mod_LDFLAGS): Likewise.
26965 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
26966 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
26967 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
26968 Include conf/gcry.rmk.
26969 * include/grub/auth.h: Rewritten.
26970 * include/grub/crypto.h: New file.
26971 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
26972 * include/grub/normal.h (read_crypto_list): New prototype.
26973 * lib/crypto.c: New file.
26974 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
26975 * lib/pbkdf2.c: Likewise.
26976 * normal/auth.c (grub_auth_strcmp): Removed.
26977 (grub_iswordseparator): Likewise.
26978 (grub_auth_strword): Likewise.
26979 (is_authenticated): Use grub_strword.
26980 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
26981 and grub_strword. Pass entered password to authentication callback.
26982 * normal/crypto.c: New file.
26983 * normal/main.c: Call read_crypto_list.
26984 * util/grub-mkpasswd-pbkdf2.c: New file.
26985 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
26987 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
26989 Fix descent and ascent calculation.
26991 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
26992 (options): New option "asce".
26994 (add_char): Ignore invalid glyphs for descent calculation.
26995 Calculate ascent from actual content.
26996 (print_glyphs): Use 'asce'.
26997 (write_font): Likewise. Allow ascent override.
26998 (main): Handle "asce" option.
27000 2010-01-06 Carles Pina i Estany <carles@pina.cat>
27002 * kern/err.c: Include `<grub/i18n.h>'.
27003 (grub_print_error): Add full stop. Gettextizze.
27004 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
27005 (grub_bsd_load_elf): Capitalise ELF.
27006 (grub_cmd_freebsd_loadenv): Add `s' in error string.
27007 (grub_cmd_freebsd_module): Likewise.
27008 (grub_cmd_freebsd_module_elf): Likewise.
27009 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
27011 2010-01-06 Carles Pina i Estany <carles@pina.cat>
27013 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
27014 * commands/search_file.c (HELP_MESSAGE): New macro.
27015 * commands/search_label.c (HELP_MESSAGE): Likewise.
27016 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
27017 * po/POTFILES: Add `commands/search_file.c',
27018 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
27019 `commands/search.c'.
27021 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
27023 * config.rpath: Update from Gnulib.
27025 2010-01-05 Yves Blusseau <blusseau@zetam.org>
27027 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
27029 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
27031 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
27033 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
27035 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
27036 arguments to fread so that we get a return value in bytes, rather
27037 than something that will normally be rounded down to 0.
27038 Adjust error handling to avoid producing garbage when size_t is not
27039 the same size as long long.
27041 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
27043 * util/mkisofs/write.c (padblock_write): Check return value of
27046 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
27048 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
27051 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
27053 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
27055 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
27056 instead of manual alignment.
27057 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
27058 verbose). Avoid attempts to read past end of the device
27059 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
27060 but GRUB_DISK_CACHE_SIZE may exceed that).
27062 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
27064 * commands/crc.c (grub_cmd_crc): Abort on read errors.
27065 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
27068 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
27070 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
27072 (grub_efi_piwg_device_path): New structure
27073 (grub_efi_piwg_device_path_t): New type.
27074 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
27075 (devpath_1): Transform to a structure. All users updated.
27076 (devpath_2): Likewise.
27077 (devpath_3): Likewise.
27078 (devpath_4): Likewise.
27079 (devpath_5): Likewise.
27081 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
27083 * loader/efi/appleloader.c: Restored. Update all users.
27085 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
27087 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
27089 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
27090 (struct boot_blocklist): Move from here ...
27091 * include/grub/i386/pc/boot.h [ASM_FILE]
27092 (struct grub_boot_blocklist): ... to here. Update all users.
27093 (setup): Only initialize `start' member of `first_block'
27094 structure. Add assert() calls to verify the other members.
27096 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
27097 (generate_image): Fix broken blocklist length initialization.
27098 Add assert() call to verify blocklist `segment' field.
27100 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
27102 * loader/efi/appleloader.c: Remove. Update all users.
27104 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
27106 * boot/i386/pc/boot.S: Update copyright year.
27107 * boot/i386/pc/cdboot.S: Likewise.
27108 * boot/i386/pc/diskboot.S: Likewise.
27109 * boot/i386/pc/lnxboot.S: Likewise.
27110 * boot/i386/pc/pxeboot.S: Likewise.
27111 * bus/pci.c: Likewise.
27112 * commands/cmp.c: Likewise.
27113 * commands/help.c: Likewise.
27114 * commands/hexdump.c: Likewise.
27115 * commands/i386/pc/halt.c: Likewise.
27116 * commands/i386/pc/play.c: Likewise.
27117 * commands/i386/pc/vbeinfo.c: Likewise.
27118 * commands/ls.c: Likewise.
27119 * commands/test.c: Likewise.
27120 * disk/dmraid_nvidia.c: Likewise.
27121 * disk/i386/pc/biosdisk.c: Likewise.
27122 * disk/ieee1275/nand.c: Likewise.
27123 * disk/ieee1275/ofdisk.c: Likewise.
27124 * disk/lvm.c: Likewise.
27125 * disk/raid.c: Likewise.
27126 * disk/raid6_recover.c: Likewise.
27127 * disk/scsi.c: Likewise.
27128 * fs/affs.c: Likewise.
27129 * fs/cpio.c: Likewise.
27130 * fs/ext2.c: Likewise.
27131 * fs/hfs.c: Likewise.
27132 * fs/iso9660.c: Likewise.
27133 * fs/ntfs.c: Likewise.
27134 * fs/sfs.c: Likewise.
27135 * fs/udf.c: Likewise.
27136 * fs/ufs.c: Likewise.
27137 * fs/xfs.c: Likewise.
27138 * gencmdlist.sh: Likewise.
27139 * genmk.rb: Likewise.
27140 * include/grub/disk.h: Likewise.
27141 * include/grub/efi/api.h: Likewise.
27142 * include/grub/efi/efi.h: Likewise.
27143 * include/grub/efi/pe32.h: Likewise.
27144 * include/grub/elf.h: Likewise.
27145 * include/grub/fs.h: Likewise.
27146 * include/grub/i386/at_keyboard.h: Likewise.
27147 * include/grub/i386/pc/memory.h: Likewise.
27148 * include/grub/i386/pc/vbe.h: Likewise.
27149 * include/grub/i386/pci.h: Likewise.
27150 * include/grub/i386/tsc.h: Likewise.
27151 * include/grub/ieee1275/ieee1275.h: Likewise.
27152 * include/grub/ntfs.h: Likewise.
27153 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
27154 * include/grub/sparc64/libgcc.h: Likewise.
27155 * include/grub/symbol.h: Likewise.
27156 * include/grub/types.h: Likewise.
27157 * include/multiboot2.h: Likewise.
27158 * io/gzio.c: Likewise.
27159 * kern/device.c: Likewise.
27160 * kern/disk.c: Likewise.
27161 * kern/efi/efi.c: Likewise.
27162 * kern/efi/mm.c: Likewise.
27163 * kern/elf.c: Likewise.
27164 * kern/file.c: Likewise.
27165 * kern/i386/dl.c: Likewise.
27166 * kern/i386/pc/init.c: Likewise.
27167 * kern/i386/pc/startup.S: Likewise.
27168 * kern/ieee1275/ieee1275.c: Likewise.
27169 * kern/ieee1275/init.c: Likewise.
27170 * kern/main.c: Likewise.
27171 * kern/mm.c: Likewise.
27172 * kern/powerpc/dl.c: Likewise.
27173 * kern/sparc64/dl.c: Likewise.
27174 * kern/x86_64/dl.c: Likewise.
27175 * lib/hexdump.c: Likewise.
27176 * loader/efi/appleloader.c: Likewise.
27177 * loader/i386/ieee1275/linux.c: Likewise.
27178 * loader/i386/pc/chainloader.c: Likewise.
27179 * loader/i386/pc/linux.c: Likewise.
27180 * loader/i386/pc/multiboot2.c: Likewise.
27181 * loader/ieee1275/multiboot2.c: Likewise.
27182 * loader/multiboot2.c: Likewise.
27183 * loader/multiboot_loader.c: Likewise.
27184 * loader/powerpc/ieee1275/linux.c: Likewise.
27185 * normal/completion.c: Likewise.
27186 * normal/menu_entry.c: Likewise.
27187 * partmap/apple.c: Likewise.
27188 * util/grub.d/10_hurd.in: Likewise.
27189 * util/hostfs.c: Likewise.
27190 * video/readers/png.c: Likewise.
27192 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
27194 * include/grub/misc.h (GNUC_PREREQ): New macro.
27195 (ATTRIBUTE_ERROR): New macro.
27196 * include/grub/list.h (grub_bad_type_cast_real): Use
27199 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27201 * normal/menu_text.c (print_message): Change messages.
27203 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27205 * normal/menu_entry.c (store_completion): Gettextizze.
27207 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27209 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
27211 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27213 * po/POTFILES: Sort correctly.
27215 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27217 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
27218 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
27219 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
27221 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
27222 summary. Gettextizze the strings.
27223 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
27224 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
27225 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
27227 (GRUB_MOD_INIT): Remove command name from summary.
27228 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
27230 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
27231 * term/i386/pc/serial.c (options): Add full stops.
27232 (GRUB_MOD_INIT): Remove command name from the summary.
27234 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27236 * commands/acpi.c: Gettextizze help strings and/or options. Include
27237 `grub/i18n.h' if needed.
27238 * commands/blocklist.c: Likewise.
27239 * commands/boot.c: Likewise.
27240 * commands/cat.c: Likewise.
27241 * commands/cmp.c: Likewise.
27242 * commands/configfile.c: Likewise.
27243 * commands/crc.c: Likewise.
27244 * commands/date.c: Likewise.
27245 * commands/echo.c: Likewise.
27246 * commands/efi/fixvideo.c: Likewise.
27247 * commands/efi/loadbios.c: Likewise.
27248 * commands/gptsync.c: Likewise.
27249 * commands/halt.c: Likewise.
27250 * commands/handler.c: Likewise.
27251 * commands/hdparm.c: Likewise.
27252 * commands/hexdump.c: Likewise.
27253 * commands/i386/cpuid.c: Likewise.
27254 * commands/i386/pc/drivemap.c: Likewise.
27255 * commands/i386/pc/halt.c: Likewise.
27256 * commands/i386/pc/pxecmd.c: Likewise.
27257 * commands/i386/pc/vbeinfo.c: Likewise.
27258 * commands/i386/pc/vbetest.c: Likewise.
27259 * commands/ieee1275/suspend.c: Likewise.
27260 * commands/keystatus.c: Likewise.
27261 * commands/loadenv.c: Likewise.
27262 * commands/ls.c: Likewise.
27263 * commands/lsmmap.c: Likewise.
27264 * commands/lspci.c: Likewise.
27265 * commands/memrw.c: Likewise.
27266 * commands/minicmd.c: Likewise.
27267 * commands/parttool.c: Likewise.
27268 * commands/password.c: Likewise.
27269 * commands/probe.c: Likewise.
27270 * commands/read.c: Likewise.
27271 * commands/reboot.c: Likewise.
27272 * commands/search.c: Likewise.
27273 * commands/sleep.c: Likewise.
27274 * commands/test.c: Likewise.
27275 * commands/true.c: Likewise.
27276 * commands/usbtest.c: Likewise.
27277 * commands/videotest.c: Likewise.
27278 * commands/xnu_uuid.c: Likewise.
27279 * disk/loopback.c: Likewise.
27280 * hello/hello.c: Likewise.
27281 * loader/i386/bsd.c: Likewise.
27282 * term/i386/pc/serial.c: Likewise.
27283 * po/POTFILES: Add new files.
27285 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
27287 * term/i386/pc/at_keyboard.c
27288 (keyboard_controller_wait_untill_ready): Rename to ...
27289 (keyboard_controller_wait_until_ready): ... this. Update all users.
27291 2010-01-01 Carles Pina i Estany <carles@pina.cat>
27293 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
27294 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
27295 string using string width.
27296 * normal/menu_text.c (grub_print_message_indented): Use
27297 grub_print_spaces and not print_spaces.
27298 (print_timeout): Likewise.
27299 (print_spaces): Move to...
27300 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
27302 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
27304 Import from Gnulib.
27306 * gnulib/getdelim.c: New file.
27307 * gnulib/getline.c: Likewise.
27309 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
27311 * include/grub/list.h (grub_assert_fail): Removed.
27312 (grub_bad_type_cast_real): New function.
27313 (grub_bad_type_cast): New macro.
27314 (GRUB_AS_LIST): Use grub_bad_type_cast.
27315 (GRUB_AS_LIST_P): Likewise.
27316 (GRUB_AS_NAMED_LIST): Likewise.
27317 (GRUB_AS_NAMED_LIST_P): Likewise.
27318 (GRUB_AS_PRIO_LIST): Likewise.
27319 (GRUB_AS_PRIO_LIST_P): Likewise.
27320 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
27322 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
27324 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
27327 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
27329 * configure.ac: Check for TARGET_CFLAGS initialization before we
27330 initialize it ourselves (sigh).
27331 Move a few modifications to TARGET_CFLAGS to be unconditional
27332 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
27335 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
27336 * term/i386/pc/at_keyboard.c
27337 (keyboard_controller_wait_untill_ready): Likewise.
27338 (keyboard_controller_led): Rename `led_status' paramter to avoid
27341 2009-12-28 Carles Pina i Estany <carles@pina.cat>
27343 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
27346 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
27348 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
27350 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
27352 * normal/menu_text.c (grub_print_message_indented): Prevent
27353 past-the-end-of-array dereference.
27355 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
27357 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
27358 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
27360 2009-12-27 Carles Pina i Estany <carles@pina.cat>
27362 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
27363 * normal/main.c (grub_normal_read_line): Remove a space from the
27366 2009-12-27 Carles Pina i Estany <carles@pina.cat>
27368 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
27369 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27370 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
27371 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
27372 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27373 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27374 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
27376 2009-12-26 Carles Pina i Estany <carles@pina.cat>
27378 * video/readers/jpeg.c (cmd): Declare.
27379 (grub_cmd_jpegtest): Use `grub_command_t' type.
27380 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
27382 (GRUB_MOD_FINI): Use `cmd' to unregister.
27383 * video/readers/png.c (cmd): Declare.
27384 (grub_cmd_pngtest): Use `grub_command_t' type.
27385 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
27387 (GRUB_MOD_FINI): Use `cmd' to unregister.
27388 * video/readers/tga.c (cmd): Declare.
27389 (grub_cmd_tgatest): Use `grub_command_t' type.
27390 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
27392 (GRUB_MOD_FINI): Use `cmd' to unregister.
27394 2009-12-26 Carles Pina i Estany <carles@pina.cat>
27396 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
27398 * kern/corecmd.c (grub_register_core_commands): Likewise.
27399 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
27400 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
27401 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
27402 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27403 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
27404 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
27405 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
27406 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
27407 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27408 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27409 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
27410 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
27411 * normal/handler.c (insert_handler): Likewise.
27412 * normal/main.c (GRUB_MOD_INIT): Likewise.
27413 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
27415 2009-12-26 Carles Pina i Estany <carles@pina.cat>
27417 * commands/help.c (grub_cmd_help): Print the command name before the
27419 (GRUB_MOD_INIT): Remove command name from the summary.
27420 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
27422 * lib/arg.c (find_long): Print the command name before the summary.
27423 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
27425 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
27426 * commands/cat.c (GRUB_MOD_INIT): Likewise.
27427 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
27428 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
27429 * commands/crc.c (GRUB_MOD_INIT): Likewise.
27430 * commands/date.c (GRUB_MOD_INIT): Likewise.
27431 * commands/echo.c (GRUB_MOD_INIT): Likewise.
27432 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
27433 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
27434 * commands/handler.c (GRUB_MOD_INIT): Likewise.
27435 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
27436 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
27437 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
27438 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
27439 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
27440 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
27441 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
27442 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
27443 * commands/ls.c (GRUB_MOD_INIT): Likewise.
27444 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
27445 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
27446 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
27447 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
27448 * commands/password.c (GRUB_MOD_INIT): Likewise.
27449 * commands/probe.c (GRUB_MOD_INIT): Likewise.
27450 * commands/read.c (GRUB_MOD_INIT): Likewise.
27451 * commands/search.c (GRUB_MOD_INIT): Likewise.
27452 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
27453 * commands/test.c (GRUB_MOD_INIT): Likewise.
27454 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
27455 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
27456 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
27457 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
27458 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
27459 * lib/arg.c (GRUB_MOD_INIT): Likewise.
27460 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
27461 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
27462 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
27463 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
27464 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
27465 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
27466 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
27467 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
27469 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
27471 Use search command for preliminar UUID search.
27473 * commands/search.c: Split into ...
27474 * commands/search_wrap.c: ...this
27475 * commands/search.c: ...and this.
27476 * commands/search_file.c: New file.
27477 * commands/search_label.c: New file.
27478 * commands/search_uuid.c: New file.
27479 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
27480 Add commands/search_wrap.c, commands/search_file.c,
27481 commands/search_label.c and commands/search_uuid.c.
27482 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
27483 (search_mod_SOURCES): Set to commands/search_wrap.c.
27484 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
27486 (search_fs_file_mod_SOURCES): New variable.
27487 (search_fs_file_mod_CFLAGS): Likewise.
27488 (search_fs_file_mod_LDFLAGS): Likewise.
27489 (search_label_mod_SOURCES): Likewise.
27490 (search_label_mod_CFLAGS): Likewise.
27491 (search_label_mod_LDFLAGS): Likewise.
27492 (search_fs_uuid_mod_SOURCES): New variable.
27493 (search_fs_uuid_mod_CFLAGS): Likewise.
27494 (search_fs_uuid_mod_LDFLAGS): Likewise.
27495 (fs_file_mod_SOURCES): Removed.
27496 (fs_file_mod_CFLAGS): Likewise.
27497 (fs_file_mod_LDFLAGS): Likewise.
27498 (fs_uuid_mod_SOURCES): Removed.
27499 (fs_uuid_mod_CFLAGS): Likewise.
27500 (fs_uuid_mod_LDFLAGS): Likewise.
27501 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
27502 Set to util/grub-install.in.
27503 * disk/fs_file.c: Removed.
27504 * disk/fs_uuid.c: Likewise.
27505 * include/grub/search.h: New file.
27506 * util/grub-install.in: Handle sparc64.
27507 Create and use load.cfg.
27508 * util/sparc64/ieee1275/grub-install.in: Removed.
27510 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
27512 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
27513 Ignore return status if CF is cleared.
27514 (grub_biosdisk_get_diskinfo_standard): Likewise.
27516 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
27518 * term/i386/pc/at_keyboard.c
27519 (keyboard_controller_wait_untill_ready): New function.
27520 (grub_keyboard_controller_write, grub_keyboard_controller_read)
27521 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
27522 for keyboard polling, rather than duplicate the same loop. This
27523 saves a few bytes in code size.
27525 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
27527 Support for (pxe[:server[:gateway]]) syntax and
27528 use environment variable for PXE.
27530 * commands/i386/pc/pxecmd.c (options): Removed.
27531 (print_ip): Removed.
27532 (grub_cmd_pxe): Removed
27533 (grub_cmd_pxe_unload): New function.
27534 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
27535 (grub_pxe_your_ip): Made static.
27536 (grub_pxe_default_server_ip): Likewise.
27537 (grub_pxe_default_gateway_ip): Likewise.
27538 (grub_pxe_blksize): Likewise.
27539 (parse_ip): New function.
27540 (grub_pxe_open): Support server and gateway specification.
27541 (grub_pxe_close): Free disk->data.
27542 (grub_pxefs_open): Use disk->data.
27543 (grub_pxefs_read): Likewise.
27544 (grub_env_write_readonly): New function.
27545 (set_mac_env): Likewise.
27546 (set_env_limn_ro): Likewise.
27547 (parse_dhcp_vendor): Likewise.
27548 (grub_pxe_detect): Set the environment variables.
27549 (set_ip_env): New function.
27550 (write_ip_env): Likewise.
27551 (grub_env_write_pxe_default_server): Likewise.
27552 (grub_env_write_pxe_default_gateway): Likewise.
27553 (grub_env_write_pxe_blocksize): Likewise.
27554 (GRUB_MOD_INIT(pxe)): Set environment variables.
27555 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
27556 (grub_pxe_mac_addr_t): ... this. All users updated.
27557 (grub_pxe_your_ip): Removed.
27558 (grub_pxe_server_ip): Likewise.
27559 (grub_pxe_gateway_ip): Likewise.
27560 (grub_pxe_blksize): Likewise.
27562 2009-12-25 Carles Pina i Estany <carles@pina.cat>
27564 * commands/help.c: Include `<grub/i18n.h>'.
27565 (grub_cmd_help): Gettextizze.
27566 (GRUB_MOD_INIT): Likewise.
27567 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
27568 (GRUB_MOD_INIT): Gettextizze.
27569 * commands/search.c: Include `<grub/i18n.h>'.
27570 (options): Gettextizze.
27571 (GRUB_MOD_INIT): Gettextizze.
27572 * lib/arg.c: Include `<grub/i18n.h>'.
27573 (help_options): Gettextizze.
27574 (find_long): Likewise.
27575 (grub_arg_show_help): Likewise.
27576 * normal/dyncmd.c: Include `<grub/i18n.h>'.
27577 (read_command_list): Gettextizze.
27578 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
27579 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
27581 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
27583 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
27584 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
27585 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
27586 (led_status): New variable.
27587 (keyboard_controller_led): New function.
27588 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
27589 update led status for caps lock, num lock and scroll lock.
27591 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
27593 * util/hostdisk.c (open_device): Fix a comment.
27595 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27597 * util/grub-install.in (host_os): New variable.
27598 * util/i386/efi/grub-install.in (host_os): Likewise.
27600 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27602 * util/mkisofs/write.c (padblock_write): Abort when given an
27603 excedingly large embed image, instead of silently truncating it.
27605 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27607 * include/multiboot.h: Indentation fixes.
27609 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27611 * include/multiboot.h (struct multiboot_aout_symbol_table)
27612 (struct multiboot_elf_section_header_table): New structure
27613 declarations (stolen from GRUB Legacy).
27614 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
27617 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
27618 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
27621 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27623 * include/multiboot.h: Make comments src2texi-friendly.
27625 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27627 For consistency with [multiboot]/docs/boot.S.
27629 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
27630 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
27631 (MULTIBOOT_MAGIC2): Rename from this ...
27632 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
27634 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27636 * include/multiboot.h: Remove `<grub/types.h>'.
27637 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
27638 types. Update all users.
27640 2009-12-25 Carles Pina i Estany <carles@pina.cat>
27642 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
27643 `couldn't' and `can not' by `cannot'.
27644 * commands/i386/pc/drivemap.c: Likewise.
27645 * disk/ata.c: Likewise.
27646 * disk/ieee1275/nand.c: Likewise.
27647 * fs/affs.c: Likewise.
27648 * fs/fat.c: Likewise.
27649 * fs/hfs.c: Likewise.
27650 * fs/hfsplus.c: Likewise.
27651 * fs/iso9660.c: Likewise.
27652 * fs/jfs.c: Likewise.
27653 * fs/minix.c: Likewise.
27654 * fs/reiserfs.c: Likewise.
27655 * fs/sfs.c: Likewise.
27656 * fs/udf.c: Likewise.
27657 * fs/ufs.c: Likewise.
27658 * fs/xfs.c: Likewise.
27659 * loader/powerpc/ieee1275/linux.c: Likewise.
27660 * loader/sparc64/ieee1275/linux.c: Likewise.
27661 * util/grub-probe.c: Likewise.
27662 * util/misc.c: Likewise.
27664 2009-12-24 Carles Pina i Estany <carles@pina.cat>
27666 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
27668 * commands/acpi.c: Likewise.
27669 * commands/blocklist.c: Likewise.
27670 * commands/efi/loadbios.c: Likewise.
27671 * commands/i386/pc/drivemap.c: Likewise.
27672 * commands/loadenv.c: Likewise.
27673 * commands/memrw.c: Likewise.
27674 * commands/password.c: Likewise.
27675 * commands/videotest.c: Likewise.
27676 * disk/ata.c: Likewise.
27677 * disk/ata_pthru.c: Likewise.
27678 * disk/dmraid_nvidia.c: Likewise.
27679 * disk/ieee1275/nand.c: Likewise.
27680 * disk/ieee1275/ofdisk.c: Likewise.
27681 * disk/loopback.c: Likewise.
27682 * disk/lvm.c: Likewise.
27683 * disk/mdraid_linux.c: Likewise.
27684 * disk/raid.c: Likewise.
27685 * disk/raid6_recover.c: Likewise.
27686 * disk/scsi.c: Likewise.
27687 * efiemu/main.c: Likewise.
27688 * efiemu/mm.c: Likewise.
27689 * efiemu/pnvram.c: Likewise.
27690 * efiemu/symbols.c: Likewise.
27691 * font/font.c: Likewise.
27692 * fs/cpio.c: Likewise.
27693 * fs/hfsplus.c: Likewise.
27694 * fs/iso9660.c: Likewise.
27695 * fs/jfs.c: Likewise.
27696 * fs/minix.c: Likewise.
27697 * fs/ntfs.c: Likewise.
27698 * fs/ntfscomp.c: Likewise.
27699 * fs/reiserfs.c: Likewise.
27700 * fs/ufs.c: Likewise.
27701 * fs/xfs.c: Likewise.
27702 * gettext/gettext.c: Likewise.
27703 * include/grub/auth.h: Likewise.
27704 * kern/elf.c: Likewise.
27705 * kern/file.c: Likewise.
27706 * kern/ieee1275/init.c: Likewise.
27707 * kern/ieee1275/mmap.c: Likewise.
27708 * kern/ieee1275/openfw.c: Likewise.
27709 * kern/powerpc/dl.c: Likewise.
27710 * kern/sparc64/dl.c: Likewise.
27711 * lib/arg.c: Likewise.
27712 * loader/i386/bsd.c: Likewise.
27713 * loader/i386/bsdXX.c: Likewise.
27714 * loader/i386/efi/linux.c: Likewise.
27715 * loader/i386/efi/xnu.c: Likewise.
27716 * loader/i386/ieee1275/linux.c: Likewise.
27717 * loader/i386/linux.c: Likewise.
27718 * loader/i386/multiboot.c: Likewise.
27719 * loader/i386/pc/linux.c: Likewise.
27720 * loader/i386/pc/multiboot2.c: Likewise.
27721 * loader/i386/xnu.c: Likewise.
27722 * loader/ieee1275/multiboot2.c: Likewise.
27723 * loader/macho.c: Likewise.
27724 * loader/machoXX.c: Likewise.
27725 * loader/multiboot2.c: Likewise.
27726 * loader/multiboot_loader.c: Likewise.
27727 * loader/powerpc/ieee1275/linux.c: Likewise.
27728 * loader/sparc64/ieee1275/linux.c: Likewise.
27729 * loader/xnu.c: Likewise.
27730 * loader/xnu_resume.c: Likewise.
27731 * mmap/i386/pc/mmap.c: Likewise.
27732 * normal/menu_viewer.c: Likewise.
27733 * partmap/acorn.c: Likewise.
27734 * partmap/amiga.c: Likewise.
27735 * partmap/apple.c: Likewise.
27736 * script/lexer.c: Likewise.
27737 * term/gfxterm.c: Likewise.
27738 * term/i386/pc/serial.c: Likewise.
27739 * term/i386/pc/vga.c: Likewise.
27740 * term/ieee1275/ofconsole.c: Likewise.
27741 * term/terminfo.c: Likewise.
27742 * video/bitmap.c: Likewise.
27743 * video/efi_gop.c: Likewise.
27744 * video/efi_uga.c: Likewise.
27745 * video/fb/video_fb.c: Likewise.
27746 * video/i386/pc/vbe.c: Likewise.
27747 * video/readers/tga.c: Likewise.
27748 * video/video.c: Likewise.
27750 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
27752 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
27753 * commands/lspci.c: Likewise.
27754 * commands/probe.c: Likewise.
27755 * commands/xnu_uuid.c: Likewise.
27756 * conf/i386-coreboot.rmk: Likewise.
27757 * conf/i386-efi.rmk: Likewise.
27758 * conf/i386-ieee1275.rmk: Likewise.
27759 * conf/i386-pc.rmk: Likewise.
27760 * conf/powerpc-ieee1275.rmk: Likewise.
27761 * conf/sparc64-ieee1275.rmk: Likewise.
27762 * conf/x86_64-efi.rmk: Likewise.
27763 * fs/i386/pc/pxe.c: Likewise.
27764 * gettext/gettext.c: Likewise.
27765 * include/grub/efi/graphics_output.h: Likewise.
27766 * include/grub/i386/pc/memory.h: Likewise.
27767 * kern/env.c: Likewise.
27768 * kern/i386/qemu/startup.S: Likewise.
27769 * lib/i386/pc/biosnum.c: Likewise.
27770 * lib/i386/relocator.c: Likewise.
27771 * lib/i386/relocator_asm.S: Likewise.
27772 * lib/relocator.c: Likewise.
27773 * loader/i386/bsd.c: Likewise.
27774 * loader/i386/multiboot.c: Likewise.
27775 * loader/i386/pc/chainloader.c: Likewise.
27776 * loader/i386/xnu.c: Likewise.
27777 * loader/xnu.c: Likewise.
27778 * normal/main.c: Likewise.
27779 * normal/menu_text.c: Likewise.
27780 * util/getroot.c: Likewise.
27781 * util/grub-mkconfig_lib.in: Likewise.
27782 * util/grub.d/00_header.in: Likewise.
27783 * util/i386/pc/grub-mkimage.c: Likewise.
27784 * util/mkisofs/eltorito.c: Likewise.
27785 * util/mkisofs/exclude.h: Likewise.
27786 * util/mkisofs/hash.c: Likewise.
27787 * util/mkisofs/iso9660.h: Likewise.
27788 * util/mkisofs/joliet.c: Likewise.
27789 * util/mkisofs/mkisofs.c: Likewise.
27790 * util/mkisofs/mkisofs.h: Likewise.
27791 * util/mkisofs/multi.c: Likewise.
27792 * util/mkisofs/name.c: Likewise.
27793 * util/mkisofs/rock.c: Likewise.
27794 * util/mkisofs/tree.c: Likewise.
27795 * util/mkisofs/write.c: Likewise.
27796 * video/efi_gop.c: Likewise.
27798 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
27800 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
27803 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
27805 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
27806 * genmk.rb (class SCRIPT): Modify the target file instead of source.
27808 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27810 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
27811 (GRUB_MOD_INIT(memrw)): Update help line.
27813 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27815 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
27816 Use grub_extcmd_t. All users updated.
27817 (options): New variable.
27818 (grub_cmd_read): Restructure for readability. Support "-v" option.
27819 (grub_cmd_write): Restructure for readability.
27821 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
27823 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
27825 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
27827 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
27828 with the actual contents of the correspondending make variable.
27829 * util/grub-mkrescue.in (pkglib_DATA): New variable.
27830 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
27831 specifying `*.lst' and `efiemu??.o'
27833 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
27835 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
27836 after function name.
27837 Noticed by Rene Engelhard <rene@debian.org>.
27839 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27841 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
27842 (options): New variable.
27843 (iospace): Likewise.
27844 (grub_lspci_iter): List IO spaces if "-i" was given.
27845 (grub_cmd_lspci): Parse options.
27846 (GRUB_MOD_INIT(lspci)): Use extcmd.
27847 (GRUB_MOD_FINI(lspci)): Likewise.
27849 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
27851 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
27852 `function' keyword.
27853 Patch by Tony Mancill <tmancill@debian.org>.
27855 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27857 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
27858 (grub_uhci_portstatus): Likewise.
27859 (grub_uhci_portstatus): Add necessary delay.
27860 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
27862 2009-12-21 Carles Pina i Estany <carles@pina.cat>
27864 * commands/acpi.c (options): Fix capitalizations and/or full stops.
27865 (GRUB_MOD_INIT): Likewise.
27866 * commands/boot.c (GRUB_MOD_INIT): Likewise.
27867 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
27868 * commands/echo.c (options): Fix capitalizations and/or full stops.
27869 * commands/efi/loadbios.c (enable_rom_area): Likewise.
27870 (enable_rom_area): Likewise.
27871 (GRUB_MOD_INIT): Likewise.
27872 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
27873 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
27874 * commands/handler.c (GRUB_MOD_INIT): Likewise.
27875 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
27876 * commands/hexdump.c (options): Likewise.
27877 * commands/i386/cpuid.c (options): Likewise.
27878 (GRUB_MOD_INIT): Likewise.
27879 * commands/i386/pc/drivemap.c (options): Likewise.
27880 (GRUB_MOD_INIT): Likewise.
27881 * commands/i386/pc/halt (options): Likewise.
27882 (GRUB_MOD_INIT): Likewise.
27883 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
27884 * commands/i386/pc/pxecmd.c (options): Likewise.
27885 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
27886 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
27887 * commands/keystatus.c (options): Likewise.
27888 (GRUB_MOD_INIT): Likewise.
27889 * commands/loadenv.c (options): Likewise.
27890 * commands/ls.c (options): Likewise.
27891 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
27892 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
27893 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
27894 * commands/parttool.c (helpmsg): Likewise.
27895 * commands/probe.c (options): Likewise.
27896 * commands/read.c (GRUB_MOD_INIT): Likewise.
27897 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
27898 * commands/search.c (options): Likewise.
27899 * commands/sleep.c (options): Likewise.
27900 * commands/test.c (GRUB_MOD_INIT): Likewise.
27901 * commands/true.c (GRUB_MOD_INIT): Likewise.
27902 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
27903 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
27904 * lib/arg.c (help_options): Likewise.
27905 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
27907 * po/POTFILES: Add `commands/loadenv.c'.
27909 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
27911 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
27912 instead of specifying them explicit.
27914 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27916 * NEWS: Add grub-probe support for GNU/Hurd.
27918 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27920 * NEWS: gettext was added after 1.97.
27922 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27924 * util/mkisofs/msdos_partition.h: New file (based on
27925 include/grub/msdos_partition.h).
27926 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
27927 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
27928 (ld_options, main): Recognize --protective-msdos-label.
27929 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
27930 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
27931 (padblock_write): If `use_protective_msdos_label' is set, patch a
27932 protective DOS-style label in the output image.
27934 * util/grub-mkrescue.in: Use --protective-msdos-label.
27936 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27938 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
27941 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27943 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
27945 (ld_options, main): Recognize `--embedded-boot'.
27946 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
27948 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
27949 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
27950 (padblock_write): Likewise. Rewrite to support embedded boot image.
27952 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
27953 for BIOS-based disk boot instead of only ElTorito.
27955 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27957 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
27958 build (not needed for bootstrap).
27960 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27962 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
27963 from i386-pc build (not needed for bootstrap).
27964 Rewrite a pair of strings.
27966 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27968 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
27970 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
27972 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
27974 2009-12-21 Andreas Born <futur.andy@googlemail.com>
27976 * kern/env.c (grub_env_context_open): Mark exported variable for
27979 2009-12-21 Andreas Born <futur.andy@googlemail.com>
27981 * kern/env.c (grub_env_export): Create nonexistent variables before
27984 2009-12-20 Carles Pina i Estany <carles@pina.cat>
27986 * include/grub/auth.h: Include `<grub/i18n.h>'.
27987 (GRUB_GET_PASSWORD): Gettextizze string.
27988 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
27990 (grub_utf8_to_ucs4_alloc): Fix indentation.
27991 (grub_print_ucs4): Likewise.
27992 (grub_getstringwidth): Likewise.
27993 (print_message_indented): New declaration.
27994 * normal/auth.c: Include `<grub/i18n.h>'.
27995 (grub_auth_check_authentication): Gettexttize string.
27996 * normal/cmdline.c: Include `<grub/i18n.h>'.
27997 (grub_cmdline_get): Gettextizze.
27998 * normal/color.c: Include `<grub/i18n.h>'.
27999 (grub_parse_color_name_pair): Gettexttize strings.
28000 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
28001 string (use `print_message_indented').
28002 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
28003 `include/grub/normal.h'.
28004 (print_message_indented): Renamed to ...
28005 (grub_print_message_indented): ... this. Remove `static' qualifer (now
28006 used in normal/main.c).
28007 (print_message): Use `grub_print_message_indented' instead of
28008 `print_message_indented'.
28009 (print_timeout): Likewise.
28010 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
28011 (grub_normal_print_device_info): Gettexttize strings.
28012 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
28014 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
28016 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
28017 of arguments. Return number of tokens and not arguments. All users
28020 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
28022 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
28023 non-MSDOS paritions.
28025 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
28027 * include/grub/types.h (UNUSED): Removed since it conflicts with
28028 NetBSD headers. All users changed to direct __attribute__ ((unused)).
28029 Reported by Grégoire Sutre.
28031 2009-12-19 Carles Pina i Estany <carles@pina.cat>
28033 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
28034 (grub_print_ucs4_alloc): Likewise.
28035 (grub_getstringwidth): Likewise.
28036 * normal/main.c (grub_normal_init_page): Gettextize version string.
28037 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
28038 (getstringwidth): Renamed to ...
28039 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
28040 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
28041 (grub_print_ucs4): Remove `static' qualifer (now used in
28043 * po/POTFILES: Add normal/main.c.
28045 2009-12-19 Carles Pina i Estany <carles@pina.cat>
28047 * normal/menu_text.c (STANDARD_MARGIN): New macro.
28048 (print_message_indented): Add `margin_left' and `margin_right'
28050 (print_message): Update `print_message_indented' calls. Adds '\n' to the
28052 (print_timeout): Use `print_message_indented' to print the message.
28053 Deletes `second_stage' parameter.
28054 (run_menu): Update `print_timeout' calls.
28056 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
28058 Fix console palette on OpenFirmware.
28060 * term/ieee1275/ofconsole.c (MAX): Removed.
28061 (colors): Redone based on VGA palette.
28062 (grub_ofconsole_setcolor): Discard brightness bit since only 8
28063 colors are supported.
28064 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
28066 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
28068 Fix potential EfiEmu double prepare.
28070 * efiemu/main.c (prepared): New variable
28071 (grub_efiemu_unload): Set prepare to '0'.
28072 (grub_efiemu_prepare): Return if already prepared. Set prepared.
28074 set_virtual_address_map support.
28076 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
28078 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
28080 (grub_efiemu_crc32): Likewise.
28081 (grub_efiemu_crc64): Likewise.
28082 (grub_efiemu_set_virtual_address_map): Likewise.
28083 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
28085 (grub_autoefi_set_virtual_address_map): Likewise.
28086 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
28087 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
28088 Restructure flow to accomodate it.
28089 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
28090 (grub_efiemu_crc): Recompute CRC32.
28091 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
28092 (efiemu_ptv_relocated): ... this. Made global. All users updated.
28093 * efiemu/symbols.c (relocated_handle): New variable.
28094 (grub_efiemu_free_syms): Free relocated_handle.
28095 (grub_efiemu_alloc_syms): Allocate relocated_handle.
28096 (grub_efiemu_write_sym_markers): New function.
28097 (grub_efiemu_set_virtual_address_map): Likewise.
28099 Newer XNU parameters.
28101 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
28102 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
28103 (grub_xnu_fill_devicetree): New prototype.
28104 (grub_xnu_heap_real_start): New variable.
28105 * loader/xnu.c (get_name_ptr): New function.
28106 (grub_xnu_load_driver): Fill namelen and name.
28108 64-bit xnu support.
28110 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
28111 and 'loader/macho64.c'.
28112 * conf/i386-pc.rmk: Likewise.
28113 * conf/x86_64-efi.rmk: Likewise.
28114 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
28115 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
28116 * include/grub/macho.h (grub_macho_segment64): New structure.
28117 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
28118 (grub_macho_size32): ... to this.
28119 (grub_macho32_get_entry_point): Renamed from ...
28120 (grub_macho_get_entry_point32): ... to this.
28121 (grub_macho_contains_macho64): New prototype.
28122 (grub_macho_size64): Likewise.
28123 (grub_macho_get_entry_point64): Likewise.
28124 (grub_macho32_load): Renamed from ...
28125 (grub_macho_load32): ... to this.
28126 (grub_macho32_filesize): Renamed from ...
28127 (grub_macho_filesize32): ... to this.
28128 (grub_macho32_readfile): Renamed from ...
28129 (grub_macho_readfile32): ... to this.
28130 (grub_macho_filesize64): New prototype.
28131 (grub_macho_readfile64): Likewise.
28132 (grub_macho_parse32): Likewise.
28133 (grub_macho_parse64): Likewise.
28134 * loader/macho.c: Split into ...
28135 * loader/machoXX.c: ... and this. Replace 32 with XX.
28136 * loader/macho32.c: New file.
28137 * loader/macho64.c: Likewise.
28138 * loader/xnu.c (grub_xnu_is_64bit): New variable.
28139 (grub_cmd_xnu_kernel): Make 32-bit only.
28140 (grub_cmd_xnu_kernel64): New function.
28141 (grub_xnu_load_driver): Support Mach-O 64.
28142 (grub_cmd_xnu_mkext): Likewise.
28143 * util/grub.d/30_os-prober.in (osx_entry): New function.
28144 Generate entries for 64-bit boot too.
28146 Eliminate ad-hoc tree format in XNU and EfiEmu.
28148 * efiemu/main.c (grub_efiemu_prepare): Update comment.
28149 * efiemu/pnvram.c: Rewritten to use environment variables.
28152 Inline utf16_to_utf8.
28154 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
28155 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
28157 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
28159 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
28160 * commands/usbtest.c (grub_usb_get_string): ... move here.
28161 (usb_print_str): Fix error handling.
28162 * include/grub/usb.h (grub_usb_get_string): Remove.
28164 UTF-8 to UTF-16 transformation.
28166 * conf/common.rmk (pkglib_MODULES): Add charset.mod
28167 (charset_mod_SOURCES): New variable.
28168 (charset_mod_CFLAGS): Likewise.
28169 (charset_mod_LDFLAGS): Likewise.
28170 * include/grub/utf.h: New file.
28171 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
28173 Support for device properties.
28175 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
28176 (grub_xnu_devprop_device_header): Likewise.
28177 (grub_xnu_devprop_device_descriptor): Likewise.
28178 (grub_xnu_devprop_add_device): New prototype.
28179 (grub_xnu_devprop_remove_device): Likewise.
28180 (grub_xnu_devprop_remove_property): Likewise.
28181 (grub_xnu_devprop_add_property_utf8): Likewise.
28182 (grub_xnu_devprop_add_property_utf16): Likewise.
28183 (grub_cpu_xnu_init): Likewise.
28184 (grub_cpu_xnu_fini): Likewise.
28185 (grub_cpu_xnu_unload): Likewise.
28186 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
28187 (property_descriptor): Likewise.
28188 (devices): New variable.
28189 (grub_xnu_devprop_remove_property): New function.
28190 (grub_xnu_devprop_add_device): Likewise.
28191 (grub_xnu_devprop_remove_device): Likewise.
28192 (grub_xnu_devprop_add_property): Likewise.
28193 (grub_xnu_devprop_add_property_utf8): Likewise.
28194 (grub_xnu_devprop_add_property_utf16): Likewise.
28195 (hextoval): Likewise.
28196 (grub_cpu_xnu_fill_devprop): Likewise.
28197 (grub_cmd_devprop_load): Likewise.
28198 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
28199 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
28200 (cmd_devprop_load): New variable.
28201 (grub_cpu_xnu_init): New function.
28202 (grub_cpu_xnu_fini): Likewise.
28203 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
28204 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
28205 (grub_cmd_xnu_devtree): Likewise.
28206 (hextoval): New function.
28207 (unescape): Likewise.
28208 (grub_xnu_fill_devicetree): Likewise.
28210 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
28211 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
28213 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
28215 Workaround for broken ATI VBE.
28217 * video/i386/pc/vbe.c (last_set_mode): New variable.
28218 (grub_vbe_set_video_mode): Set 'last_set_mode'.
28219 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
28220 (grub_video_vbe_setup): Don't check for reserved flag.
28222 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
28224 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
28225 the `find' command.
28227 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
28229 UUID support for HFS.
28231 * fs/hfs.c (grub_hfs_uuid): New function.
28232 (grub_hfs_fs): New value .uuid.
28233 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
28235 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
28237 Fix a segfault with parsing unknown long options.
28239 * util/grub-mkrelpath.c (options): Zero terminate it.
28241 2009-12-13 Carles Pina i Estany <carles@pina.cat>
28243 * include/grub/misc.h (grub_puts): New declaration.
28244 (grub_puts_): Likewise.
28245 * kern/misc.c (grub_puts): New definition.
28246 (grub_puts_): Likewise.
28248 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
28250 * util/grub-probe.c (probe): Improve error message.
28252 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
28254 * loader/i386/multiboot_elfxx.c
28255 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
28258 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
28260 Relocator framework
28262 * loader/i386/xnu_helper.S: Removed. All users updated.
28263 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
28264 (relocator_mod_SOURCES): New variable.
28265 (relocator_mod_CFLAGS): Likewise.
28266 (relocator_mod_LDFLAGS): Likewise.
28267 (relocator_mod_ASFLAGS): Likewise.
28268 * conf/x86_64.rmk: Likewise.
28269 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
28270 (grub_multiboot_payload_entry_offset): Likewise.
28271 (grub_multiboot_forward_relocator): Likewise.
28272 (grub_multiboot_forward_relocator_end): Likewise.
28273 (grub_multiboot_backward_relocator): Likewise.
28274 (grub_multiboot_backward_relocator_end): Likewise.
28275 (grub_multiboot_payload_eip): New variable.
28276 (grub_multiboot_payload_orig): Likewise.
28277 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
28278 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
28279 * include/grub/i386/memory.h
28280 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
28281 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
28282 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
28283 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
28284 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
28285 * include/grub/i386/relocator.h: New file.
28286 * include/grub/x86_64/relocator.h: Likewise.
28287 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
28288 (XNU_RELOCATOR): New macro.
28289 (grub_xnu_launcher_start): Remove.
28290 (grub_xnu_launcher_end): Likewise.
28291 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
28292 (grub_xnu_heap_real_start): Remove.
28293 (grub_xnu_heap_start): Change to void *. All users updated.
28294 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
28295 * lib/i386/relocator.c: New file.
28296 * lib/i386/relocator_asm.S: Likewise.
28297 * lib/i386/relocator_backward.S: Likewise.
28298 * lib/mips/relocator.c: Likewise.
28299 * lib/mips/relocator_asm.S: Likewise.
28300 * lib/relocator.c: Likewise.
28301 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
28303 (playground): Likewise.
28304 (grub_multiboot_payload_orig): New variable.
28305 (grub_multiboot_payload_dest): Likewise.
28306 (grub_multiboot_payload_size): Likewise.
28307 (grub_multiboot_payload_eip): Likewise.
28308 (grub_multiboot_payload_esp): Likewise.
28309 (grub_multiboot_boot): Use grub_relocator32_boot.
28310 (grub_multiboot_unload): Free relocators.
28311 (grub_multiboot): Setup stack. Use relocators.
28312 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
28313 (grub_multiboot_load_elfXX): Use relocators.
28314 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
28315 (grub_multiboot_payload_size): Likewise.
28316 (grub_multiboot_payload_dest): Likewise.
28317 (grub_multiboot_payload_entry_offset): Likewise.
28318 (grub_multiboot_forward_relocator): Likewise.
28319 (grub_multiboot_backward_relocator): Likewise.
28320 (grub_multiboot_real_boot): Likewise.
28321 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
28322 (grub_xnu_entry_point): Likewise.
28323 (grub_xnu_arg1): Likewise.
28324 (grub_xnu_stack): Likewise.
28325 (grub_xnu_launch): Removed.
28326 (grub_xnu_boot_resume): New function.
28327 (grub_xnu_boot): Use relocators.
28328 * loader/i386/xnu_helper.S: Removed.
28329 * loader/xnu.c (grub_xnu_heap_start): New variable.
28330 (grub_xnu_heap_size): Likewise.
28331 (grub_xnu_heap_malloc): Use relocators.
28332 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
28334 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
28336 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
28339 2009-12-13 Carles Pina i Estany <carles@pina.cat>
28341 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
28342 GRUB_ERR_NONE before calling grub_env_set.
28344 2009-12-12 Robert Millan <rmh@aybabtu.com>
28346 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
28347 * genmk.rb (video): New variable.
28348 (CLEANFILES, VIDEOFILES): Add #{video}.
28349 (#{video}): New target rule.
28350 * genvideolist.sh: New file.
28351 * Makefile.in (pkglib_DATA): Add video.lst.
28352 (video.lst): New target rule.
28353 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
28355 * util/grub.d/30_os-prober.in: Replace `vbe' with
28356 ${GRUB_VIDEO_BACKEND}.
28358 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
28360 * THANKS: Add David Miller.
28362 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
28364 libpciaccess support.
28366 * Makefile.in (LIBPCIACCESS): New variable.
28367 (enable_grub_emu_pci): Likewise.
28368 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
28369 util/pci.c and commands/lspci.c.
28370 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
28371 * configure.ac (grub-emu-pci): New option.
28372 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
28373 (grub_pci_device_unmap_range): Likewise.
28374 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
28375 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
28376 (grub_pci_address_t) [!GRUB_UTIL]: New type.
28377 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
28378 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
28379 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
28380 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
28381 * include/grub/pciutils.h: New file.
28382 * util/pci.c: Likewise.
28384 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
28386 * util/misc.c: Don't include <errno.h> twice.
28388 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
28390 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
28391 name in an error message.
28392 (grub_biosdisk_rw): Likewise.
28394 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
28396 Eliminate NTFS 4Gib barrier.
28398 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
28399 (read_run_data): Likewise.
28400 (grub_ntfs_read_run_list): Likewise.
28401 (grub_ntfs_read_block): Likewise.
28402 (grub_ntfs_iterate_dir): Likewise.
28403 (read_mft): Likewise.
28404 (read_data): Likewise.
28406 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
28407 to avoid 64-bit division
28408 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
28409 (grub_ntfs_rlst): Use grub_disk_addr_t.
28411 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
28413 Eliminate grub-fstest 4Gib barrier.
28415 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
28416 (read_file): Fix error reporting.
28418 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
28420 Eliminate hexdump 4Gib barrier.
28422 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
28423 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
28425 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
28427 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
28430 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
28432 Remove miscellaneous files in distclean target.
28434 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
28436 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
28438 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
28439 if they're already set. This resolves the conflict between my
28440 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
28441 fixing the --grub-probe option again.
28442 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
28443 change on 2009-10-06, so that we now once again source
28444 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
28446 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
28448 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
28449 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
28450 `util/devicemap.c'.
28452 2009-12-08 Carles Pina i Estany <carles@pina.cat>
28454 * include/grub/misc.h (grub_printf_): New declaration.
28455 * kern/misc.c (grub_printf_): New definition.
28456 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
28457 instead of `grub_printf' and `_'.
28458 * normal/menu_entry.c (store_completion): Likewise.
28460 (grub_menu_entry_run): Likewise.
28461 * normal/menu_text.c (grub_wait_after_message): Likewise.
28462 (notify_booting): Likewise.
28463 (notify_fallback): Likewise.
28464 (notify_execution_failure): Likewise.
28466 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
28468 * configure.ac: Check for vasprintf.
28469 * util/misc.c (asprintf): Move allocation from here ...
28470 (vasprintf): ... to here. New function.
28471 (xasprintf): New function.
28472 * include/grub/util/misc.h (vasprintf, xasprintf): Add
28474 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
28475 * util/grub-mkfont.c (write_font): Likewise.
28476 * util/grub-probe.c (probe): Likewise.
28477 * util/hostdisk.c (make_device_name): Likewise.
28479 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
28481 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
28482 anything even prefixed with 'cdrom' as a cdrom.
28484 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
28486 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
28489 2009-12-05 Carles Pina i Estany <carles@pina.cat>
28491 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
28492 grub_gettext_msg_list.
28493 (grub_gettext_gettranslation_from_position): Return const char *
28495 (grub_gettext_translate): Add the translated strings into a list,
28496 returns from the list if existing there.
28497 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
28498 (grub_gettext_delete_list): Delete the list.
28499 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
28500 lang environment variable is changed.
28501 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
28503 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
28505 Rename kernel.mod to kernel.img.
28507 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
28508 (kernel_mod_EXPORTS): Rename to ...
28509 (kernel_img_EXPORTS): ... this.
28510 (kernel_mod_SOURCES): Rename to ...
28511 (kernel_img_SOURCES): ... this.
28512 (kernel_mod_HEADERS): Rename to ...
28513 (kernel_img_HEADERS): ... this. All users updated.
28514 (kernel_mod_CFLAGS): Rename to ...
28515 (kernel_img_CFLAGS): ... this.
28516 (kernel_mod_ASFLAGS): Rename to ...
28517 (kernel_img_ASFLAGS): ... this.
28518 (kernel_mod_LDFLAGS): Rename to ...
28519 (kernel_img_LDFLAGS): ... this.
28520 * conf/x86_64-efi.rmk: Likewise.
28521 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
28522 (read_kernel_image): ... this. All users updated.
28523 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
28525 2009-12-05 Carles Pina i Estany <carles@pina.cat>
28527 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
28528 (print_spaces): New function.
28529 (grub_print_ucs4): New function.
28530 (getstringwidth): New function.
28531 (print_message_indented): New function.
28532 (print_message): Gettexttize strings using print_message_indented.
28533 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
28535 (get_entry_number): Gettextize and uses dynamic terminal width.
28536 (notify_booting, notify_fallback, notify_execution_failure):
28538 * normal/menu_entry.c (store_completion): Cleanup the gettextized
28541 (grub_menu_entry_run): Likewise.
28542 * PO/POTFILES: Add normal/menu_entry.c.
28544 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
28546 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
28548 2009-12-05 Carles Pina i Estany <carles@pina.cat>
28550 * util/grub-install.in: Install gettext .mo files.
28551 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
28553 2009-12-05 Carles Pina i Estany <carles@pina.cat>
28555 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
28558 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
28560 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
28561 non-firmware-dependant one in realmode.S takes precedence.
28563 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
28565 * commands/halt.c: Replace misc arch-specific headers with
28567 * commands/reboot.c: Likewise.
28568 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
28570 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
28571 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
28572 (kernel_img_SOURCES): ... to here.
28574 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
28575 * include/grub/i386/pc/init.h: Likewise.
28576 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28577 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28579 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
28581 * include/grub/i386/halt.h: Remove.
28582 * include/grub/i386/reboot.h: Likewise.
28584 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
28586 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
28588 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
28589 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
28590 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
28592 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
28593 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28594 (usage): Add missing comma in printf.
28596 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
28598 Use the same reboot approach on i386 coreboot and qemu as we do on
28601 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
28602 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
28603 * kern/i386/reboot.c: Remove.
28604 * include/grub/i386/reboot.h (grub_reboot): Export function.
28605 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
28606 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
28607 0xf000:0xfff0 instead of 0xffff:0x0000.
28608 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
28609 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
28611 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
28613 Fix $srcdir != $objdir build.
28615 * Makefile.in (po/%.po): Rewrite as ...
28616 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
28618 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
28620 Fix GNU/Hurd grub-install crash.
28621 * util/grub-probe.c (probe): Try to access `path' only when it is not
28624 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
28626 Correct module naming.
28628 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
28629 (GRUB_MOD_INIT(efi_uga)): ... to this
28630 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
28631 (GRUB_MOD_FINI(efi_uga)): ... to this
28632 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
28633 (GRUB_MOD_INIT(efi_gop)): ... to this
28634 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
28635 (GRUB_MOD_FINI(efi_gop)): ... to this
28637 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
28639 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
28641 (usage): Translate `arg' strings using gettext().
28642 Thanks to Jordi Mallach for the suggestion.
28644 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
28646 GOP support. Based on patch from Bean
28647 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
28649 * video/efi_gop.c: New file.
28650 * include/grub/efi/graphics_output.h: Likewise.
28651 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
28652 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
28654 * conf/x86_64-efi.rmk: Likewise.
28656 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
28658 Rename efi_fb to efi_uga.
28660 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
28662 (efi_fb_mod_SOURCES): Rename this ...
28663 (efi_uga_mod_SOURCES): ... to this.
28664 (efi_fb_mod_CFLAGS): Rename this ...
28665 (efi_uga_mod_CFLAGS): ... to this.
28666 (efi_fb_mod_LDFLAGS): Rename this ...
28667 (efi_uga_mod_LDFLAGS): ... to this.
28668 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
28670 (efi_fb_mod_SOURCES): Rename this ...
28671 (efi_uga_mod_SOURCES): ... to this.
28672 (efi_fb_mod_CFLAGS): Rename this ...
28673 (efi_uga_mod_CFLAGS): ... to this.
28674 (efi_fb_mod_LDFLAGS): Rename this ...
28675 (efi_uga_mod_LDFLAGS): ... to this.
28676 * video/efi_fb.c: Move this ...
28677 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
28679 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
28681 * po/README: New file. Explain our PO file workflow.
28683 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
28685 * po/ChangeLog: Remove. Move relevant entries back to ...
28686 * ChangeLog: ... here.
28687 * po/ca.po: Remove (now handled by TLP).
28688 * po/id.po: Likewise.
28689 * po/zh_CN.po: Likewise.
28690 * Makefile.in (LINGUAS): Initialize in a way that supports
28693 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
28695 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
28696 reliing on po/LINGUAS.
28697 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
28698 (po/%.po): ... this.
28700 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
28702 * util/i386/efi/grub-mkimage.c: Include "progname.h".
28703 (main): Use `program_name' instead of nonexistent `progname'.
28705 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
28707 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
28708 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
28710 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
28712 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
28714 * conf/i386-efi.rmk: Likewise.
28715 * conf/i386-ieee1275.rmk: Likewise.
28716 * conf/powerpc-ieee1275.rmk: Likewise.
28717 * conf/sparc64-ieee1275.rmk: Likewise.
28718 * conf/x86_64-efi.rmk: Likewise.
28720 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
28722 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
28724 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
28726 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
28728 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
28730 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
28731 (grub_mkdevicemap_SOURCES): New variable.
28732 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
28733 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
28734 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
28735 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
28736 (grub_mkdevicemap_SOURCES): Remove.
28737 * conf/i386-efi.rmk: Likewise.
28738 * conf/i386-ieee1275.rmk: Likewise.
28739 * conf/i386-pc.rmk: Likewise.
28740 * conf/powerpc-ieee1275.rmk: Likewise.
28741 * conf/sparc64-ieee1275.rmk: Likewise.
28742 * conf/x86_64-efi.rmk: Likewise.
28743 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
28744 (usage): Fix strings to use `program_name'.
28745 (main): Initialize gettext.
28746 * util/grub-editenv.c: Likewise.
28747 * util/grub-emu.c: Likewise.
28748 * util/grub-fstest.c: Likewise.
28749 * util/grub-mkdevicemap.c: Likewise.
28750 * util/grub-mkfont.c: Likewise.
28751 * util/grub-mkrelpath.c: Likewise.
28752 * util/grub-pe2elf.c: Likewise.
28753 * util/grub-probe.c: Likewise.
28754 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
28755 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
28756 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28758 * util/misc.c: Include `"progname.h"'.
28759 (progname): Remove variable.
28760 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
28762 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
28764 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
28765 printf and print a newline after the menuentry header line.
28766 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28768 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
28770 autoconf >= 2.60 support $(localedir).
28772 * INSTALL: Note that autoconf 2.60 is required.
28773 * configure.ac (AC_PREREQ): Bump to 2.60.
28774 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
28775 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28777 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
28779 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
28782 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
28784 * normal/main.c (grub_normal_read_line): Fix off-by-one
28787 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
28789 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
28790 "parser.grub" in grub_command_execute() call.
28792 2009-11-24 Carles Pina i Estany <carles@pina.cat>
28794 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
28795 * conf/i386-efi.rmk: Likewise.
28796 * conf/i386-ieee1275.rmk: Likewise.
28797 * conf/i386-pc.rmk: Likewise.
28798 * conf/powerpc-ieee1275.rmk: Likewise.
28799 * conf/sparc64-ieee1275.rmk: Likewise.
28800 * conf/x86_64-efi.rmk: Likewise.
28801 * gettext/gettex.c: Include <grub/i18n.h>.
28802 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
28804 * include/grub/i18n.h: ... to here
28805 * include/grub/i18n.h: ... to here.
28806 * kern/misc.c: Include <grub/i18n.h>
28807 (grub_gettext_dummy): Move above user.
28809 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28811 * util/Makefile.in (install-local): Convert a `for' into a normal
28814 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
28816 * autogen.sh: Add automake call.
28817 * config.guess: Remove.
28818 * config.sub: Likewise.
28819 * install-sh: Likewise.
28821 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28823 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
28825 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28827 * util/Makefile.in (install-local): Convert a make `$(foreach)'
28828 function to a normal shell `for'.
28830 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28832 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
28834 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28836 * util/grub-mkrelpath.c: New file.
28837 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
28838 (grub_mkrelpath_SOURCES): New variable.
28839 * include/grub/util/misc.h: New function prototype.
28840 * util/misc.c (make_system_path_relative_to_its_root): New function.
28842 * util/grub-mkconfig_lib.in (bindir): New variable.
28843 (grub_mkrelpath): Likewise.
28844 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
28846 * util/probe.c (probe): Make the file path relative to its root.
28847 Change a info message to use the GRUB path. Enable again the
28848 check if we can read the file with GRUB facilities.
28850 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
28853 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28855 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
28858 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28860 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
28863 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28865 * util/getroot.c (grub_util_is_dmraid): New function.
28866 (grub_util_get_dev_abstraction): Treat dmraid and multipath
28867 devices as normal ones, not as LVM.
28869 2009-11-23 Carles Pina i Estany <carles@pina.cat>
28871 * conf/common.rmk: Add grub-gettext_lib target and updates
28872 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
28874 * gettext/gettext.c: New file. (Reads mo files).
28875 * include/grub/file.h (grub_file_pread): New prototype.
28876 * include/grub/i18n.h (_): New prototype.
28877 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
28879 * kern/misc.c (grub_gettext_dummy): New function.
28880 * normal/menu_text.c: Include <grub/i18n.h>.
28881 * normal/menu_text.c (print_timeout): Gettexttize string.
28882 * normal/menu_text.c (print_message): Gettexttize string.
28883 * po/POTFILES: Add `normal/menu_text.c'.
28884 * po/ca.po: Add new translations.
28885 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
28886 gettext module and defines locale_dir and lang in grub.cfg.
28887 * NEWS: Add gettext support.
28889 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28891 * util/hostdisk.c: Include `<grub/i18n.h>'.
28892 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
28893 (make_device_name): Rewrite using asprintf.
28894 (convert_system_partition_to_system_disk): Replace 0 with NULL.
28895 (find_system_device): If a device is not found, generate one just
28896 by reusing the OS path name.
28897 (read_device_map): Make it permissible for device.map not to exist.
28899 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28901 * script/sh/execute.c: Move from here ...
28902 * script/execute.c: ... to here. Update all users.
28903 * script/sh/function.c: Move from here ...
28904 * script/function.c: ... to here. Update all users.
28905 * script/sh/lexer.c: Move from here ...
28906 * script/lexer.c: ... to here. Update all users.
28907 * script/sh/main.c: Move from here ...
28908 * script/main.c: ... to here. Update all users.
28909 * script/sh/parser.y: Move from here ...
28910 * script/parser.y: ... to here. Update all users.
28911 * script/sh/script.c: Move from here ...
28912 * script/script.c: ... to here. Update all users.
28914 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28916 * configure.ac: Detect all `emu' platforms. Define
28917 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
28918 --enable-grub-emu logic. Disable include/grub/machine
28919 symlink on `emu' platforms.
28921 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
28922 * gensymlist.sh.in: Likewise.
28924 * include/grub/i386/coreboot/machine.h: Remove file.
28925 * include/grub/i386/efi/machine.h: Likewise.
28926 * include/grub/i386/ieee1275/machine.h: Likewise.
28927 * include/grub/i386/pc/machine.h: Likewise.
28928 * include/grub/i386/qemu/machine.h: Likewise.
28929 * include/grub/powerpc/ieee1275/machine.h: Likewise.
28930 * include/grub/sparc64/ieee1275/machine.h: Likewise.
28931 * include/grub/x86_64/efi/machine.h: Likewise.
28933 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
28934 * commands/halt.c: Likewise.
28935 * commands/reboot.c: Likewise.
28936 * include/grub/autoefi.h: Likewise.
28937 * include/grub/i386/at_keyboard.h: Likewise.
28938 * include/grub/i386/kernel.h: Likewise.
28939 * include/grub/i386/loader.h: Likewise.
28940 * include/grub/i386/pc/memory.h: Likewise.
28941 * kern/dl.c: Likewise.
28942 * kern/i386/coreboot/init.c: Likewise.
28943 * loader/i386/bsd.c: Likewise.
28944 * loader/i386/linux.c: Likewise.
28945 * loader/multiboot_loader.c: Likewise.
28946 * term/i386/pc/serial.c: Likewise.
28947 * term/usb_keyboard.c: Likewise.
28949 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
28950 `<grub/machine/machine.h>'
28951 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
28952 * util/misc.c: Remove `<grub/machine/machine.h>' and
28953 `<grub/machine/time.h>'.
28955 * Makefile.in (enable_grub_emu): Remove variable.
28956 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
28958 * conf/any-emu.rmk: New file.
28959 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
28960 (grub_emu_init.c): Move from here ...
28961 * conf/any-emu.rmk: ... to here.
28963 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
28964 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
28965 * conf/any-emu.rmk: ... to here.
28967 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28969 * include/grub/parser.h (grub_parser_register): Document need
28970 of `name' parameter.
28971 * normal/main.c (grub_normal_read_line): Simplify prompt string.
28972 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
28975 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28977 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
28979 * include/grub/i18n.h (N_): New macro.
28980 * util/mkisofs/mkisofs.h: Likewise.
28981 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
28983 (usage): Use gettext() to translate help strings when printing them.
28985 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28987 Based on patch from Bean
28988 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
28990 * video/efi_fb.c: New file.
28991 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
28992 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
28994 * conf/x86_64-efi.rmk: Likewise.
28996 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
28998 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
28999 * util/i386/pc/grub-setup.c: Likewise.
29001 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
29003 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
29005 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
29006 file_get_storage_info to implement grub_guess_root_device.
29008 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
29010 * Makefile.in (target): Use make's builtin $(shell) function
29011 instead of calling directly $(SHELL) to create the locale directories,
29012 inside the $(foreach) function.
29014 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
29016 * util/grub-mkrescue.in: Print an error and usage if output option
29017 has not been given.
29019 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
29021 Patch from Loïc Minier <loic.minier@ubuntu.com>.
29022 * util/grub.d/30_os-prober.in: Cope with Linux entries where
29023 root and /boot are on different devices.
29025 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
29027 Fix build for srcdir != objdir.
29029 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
29030 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
29032 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
29033 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
29034 reference for input.
29036 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
29038 * util/grub-mkrescue.in: Use source directory direcly (without copiing
29039 or hardlinking it). Remove -J option, Joliet is not compatible with
29040 multiple source directories.
29042 2009-11-21 Carles Pina i Estany <carles@pina.cat>
29043 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
29045 * util/grub-mkrescue.in: Recognize `--override-directory' option.
29046 (process_input_dir): New function. Process an arbitrary input
29048 Misc adjustments to support both "override mode" and system-wide mode.
29050 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
29052 * configure.ac (UNIFONT_BDF): Rename to ...
29053 (FONT_SOURCE): ... this. Update all users.
29055 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
29057 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
29058 to the list of unifont files to look for.
29060 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
29062 Patch from Joe Auricchio <jauricchio@gmail.com>
29063 * commands/minicmd.c (grub_mini_cmd_clear): New function.
29064 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
29065 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
29067 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
29069 * Makefile.in (install-local): Add a missing backslash.
29071 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
29073 * include/grub/x86_64/io.h: New file.
29075 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
29077 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
29078 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
29079 Include `"progname.h"'.
29080 (main): Initialize gettext.
29081 * util/i386/pc/grub-setup.c: Gettexttize.
29082 * util/i386/pc/grub-mkimage.c: Likewise.
29084 * Makefile.in (po/*.po): Redefine as ...
29085 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
29087 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
29089 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
29091 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
29092 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
29093 (program_name): Remove.
29094 (main): Initialize gettext support.
29095 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
29096 Include `<libintl.h>'.
29099 * util/mkisofs/eltorito.c: Gettexttize.
29100 * util/mkisofs/joliet.c: Likewise.
29101 * util/mkisofs/mkisofs.c: Likewise.
29102 * util/mkisofs/multi.c: Likewise.
29103 * util/mkisofs/rock.c: Likewise.
29104 * util/mkisofs/tree.c: Likewise.
29105 * util/mkisofs/write.c: Likewise.
29107 * po/POTFILES: Update with new files.
29109 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
29111 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
29112 * util/mkisofs/iso9660.h: Likewise.
29113 * util/mkisofs/joliet.c: Likewise.
29114 * util/mkisofs/mkisofs.c: Likewise.
29115 * util/mkisofs/mkisofs.h: Likewise.
29116 * util/mkisofs/rock.c: Likewise.
29117 * util/mkisofs/tree.c: Likewise.
29118 * util/mkisofs/write.c: Likewise.
29120 * util/mkisofs/eltorito.c (rcsid): Remove.
29121 * util/mkisofs/hash.c: Likewise.
29122 * util/mkisofs/joliet.c: Likewise.
29123 * util/mkisofs/name.c: Likewise.
29124 * util/mkisofs/rock.c: Likewise.
29125 * util/mkisofs/tree.c: Likewise.
29126 * util/mkisofs/write.c: Likewise.
29128 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
29130 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
29131 instead of static allocation.
29132 * util/mkisofs/match.h: Likewise.
29134 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
29136 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
29137 and `util/grub.d/10_linux.in'.
29138 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
29139 translatable Shell files.
29141 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
29143 * Makefile.in ($(srcdir)/aclocal.m4): New target.
29145 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29147 * INSTALL: Document Automake is needed for bootstrap.
29148 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
29149 * util/grub.d/10_kfreebsd.in (bindir): New variable.
29150 Add gettext initialization.
29151 (kfreebsd_entry): Make menuentry output translatable.
29153 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29155 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
29156 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
29157 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
29158 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
29159 (LINGUAS): Auto-generate using `po/LINGUAS'.
29160 * po/LINGUAS: New file.
29162 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29164 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
29166 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
29167 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
29168 bindtextdomain() calls for gettext initialization.
29170 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29172 * gnulib/progname.c: New file (imported from Gnulib).
29173 * gnulib/progname.h: Likewise.
29174 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
29175 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
29176 (usage): Replace `progname' with `program_name'.
29177 (main): Use set_program_name() for program name initialization.
29179 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29181 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
29183 * Makefile.in (CPPFLAGS): ... to here.
29185 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
29187 * aclocal.m4: Move from here ...
29188 * acinclude.m4: ... to here.
29189 * autogen.sh: Add call to `aclocal'.
29190 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
29192 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
29194 * Makefile.in (CLEANFILES): Add `po/*.mo'.
29195 (LINGUAS): New variable.
29196 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
29197 (install-local): Install MO files.
29198 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
29199 * include/grub/i18n.h: New file.
29200 * po/POTFILES: New file.
29201 * po/ca.po: New file.
29202 * util/grub.d/10_linux.in (bindir): New variable.
29203 Add gettext initialization.
29204 (linux_entry): Make menuentry output translatable.
29205 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
29206 (usage): Make --help output translatable.
29207 (main): Initialize gettext.
29209 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29211 * import_gcry.py: New file (written by Vladimir with minor
29213 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
29215 * INSTALL: Document that Python is required for bootstrap.
29217 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29219 Import ciphers from libgcrypt 1.4.4.
29221 * lib/libgcrypt/cipher/ChangeLog
29222 * lib/libgcrypt/cipher/ac.c
29223 * lib/libgcrypt/cipher/arcfour.c
29224 * lib/libgcrypt/cipher/bithelp.h
29225 * lib/libgcrypt/cipher/blowfish.c
29226 * lib/libgcrypt/cipher/camellia-glue.c
29227 * lib/libgcrypt/cipher/camellia.c
29228 * lib/libgcrypt/cipher/camellia.h
29229 * lib/libgcrypt/cipher/cast5.c
29230 * lib/libgcrypt/cipher/cipher.c
29231 * lib/libgcrypt/cipher/crc.c
29232 * lib/libgcrypt/cipher/des.c
29233 * lib/libgcrypt/cipher/dsa.c
29234 * lib/libgcrypt/cipher/ecc.c
29235 * lib/libgcrypt/cipher/elgamal.c
29236 * lib/libgcrypt/cipher/hash-common.c
29237 * lib/libgcrypt/cipher/hash-common.h
29238 * lib/libgcrypt/cipher/hmac-tests.c
29239 * lib/libgcrypt/cipher/md.c
29240 * lib/libgcrypt/cipher/md4.c
29241 * lib/libgcrypt/cipher/md5.c
29242 * lib/libgcrypt/cipher/primegen.c
29243 * lib/libgcrypt/cipher/pubkey.c
29244 * lib/libgcrypt/cipher/rfc2268.c
29245 * lib/libgcrypt/cipher/rijndael-tables.h
29246 * lib/libgcrypt/cipher/rijndael.c
29247 * lib/libgcrypt/cipher/rmd.h
29248 * lib/libgcrypt/cipher/rmd160.c
29249 * lib/libgcrypt/cipher/rsa.c
29250 * lib/libgcrypt/cipher/seed.c
29251 * lib/libgcrypt/cipher/serpent.c
29252 * lib/libgcrypt/cipher/sha1.c
29253 * lib/libgcrypt/cipher/sha256.c
29254 * lib/libgcrypt/cipher/sha512.c
29255 * lib/libgcrypt/cipher/tiger.c
29256 * lib/libgcrypt/cipher/twofish.c
29257 * lib/libgcrypt/cipher/whirlpool.c
29259 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
29261 Fix build for systems without error().
29263 * gnulib/error.c: New file (imported from Gnulib).
29264 * gnulib/error.h: Likewise.
29265 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
29266 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
29267 (this variable is now used by error()).
29269 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
29271 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
29272 instead of relying that char is signed.
29274 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
29276 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
29277 blocksize different from specified.
29278 (grub_pxefs_read): Likewise.
29280 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
29282 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
29284 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
29285 (grub_ata_readwrite): Likewise. Update 2 format strings.
29286 (grub_atapi_read): Likewise.
29288 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
29289 * conf/i386.rmk (pkglib_MODULES): ... to here ...
29290 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
29291 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
29292 (ata_mod_LDFLAGS): Move from here ...
29293 * conf/i386.rmk: ... to here ...
29294 * conf/x86_64-efi.rmk: ... and here.
29295 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
29296 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
29298 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
29300 Relicense multiboot.h, with RMS' blessing.
29302 * include/multiboot.h: Change to X11 license.
29304 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
29306 Support --version in grub-mkisofs.
29308 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
29309 (OPTION_VERSION): New macro.
29310 (ld_options): Recognize --version.
29311 (usage): Move `program_name' from here ...
29312 (program_name): ... to here. Add `static' qualifier.
29313 (main): Recognize `OPTION_VERSION'.
29315 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
29317 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
29318 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
29320 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
29322 Fix help2man generation for mkisofs.
29324 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
29325 (usage): Send output to stdout (rather than stderr).
29327 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
29329 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
29330 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
29331 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
29332 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
29333 (bin_SCRIPTS): Add `grub-mkfloppy'.
29334 (grub_mkfloppy_SOURCES): New variable.
29336 * util/grub-mkrescue.in: New file.
29337 * util/i386/pc/grub-mkfloppy.in: New file.
29339 * util/i386/coreboot/grub-mkrescue.in: Remove.
29340 * util/i386/pc/grub-mkrescue.in: Remove.
29342 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
29344 * include/grub/multiboot.h (struct grub_multiboot_header): Move
29346 * include/multiboot.h (struct multiboot_header): ... to here. Update
29348 * include/grub/multiboot.h (struct grub_multiboot_info): Move
29350 * include/multiboot.h (struct multiboot_info): ... to here. Update
29352 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
29354 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
29356 * include/grub/multiboot.h (struct grub_mod_list): Move
29358 * include/multiboot.h (struct multiboot_mod_list): ... to here.
29361 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
29363 * include/multiboot2.h (multiboot_word): Rename from this ...
29364 (multiboot2_word): ... to this. Update all users.
29365 (multiboot_header): Rename from this ...
29366 (multiboot2_header): ... to this. Update all users.
29367 (multiboot_tag_header): Rename from this ...
29368 (multiboot2_tag_header): ... to this. Update all users.
29369 (multiboot_tag_start): Rename from this ...
29370 (multiboot2_tag_start): ... to this. Update all users.
29371 (multiboot_tag_name): Rename from this ...
29372 (multiboot2_tag_name): ... to this. Update all users.
29373 (multiboot_tag_module): Rename from this ...
29374 (multiboot2_tag_module): ... to this. Update all users.
29375 (multiboot_tag_memory): Rename from this ...
29376 (multiboot2_tag_memory): ... to this. Update all users.
29377 (multiboot_tag_unused): Rename from this ...
29378 (multiboot2_tag_unused): ... to this. Update all users.
29379 (multiboot_tag_end): Rename from this ...
29380 (multiboot2_tag_end): ... to this. Update all users.
29382 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
29384 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
29385 this platform we should support Multiboot1 first.
29387 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
29388 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
29389 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
29391 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
29393 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
29394 of write calls (converting them to fwrite() if they aren't already).
29395 (get_torito_desc): Likewise.
29396 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
29398 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
29400 * util/i386/pc/grub-install.in: Move from here ...
29401 * util/grub-install.in: ... to here. Update all users.
29403 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
29405 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
29407 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
29409 Support for El Torito without floppy emulation.
29411 * util/mkisofs/eltorito.c: Include `<errno.h>'.
29412 (init_boot_catalog): Improve error handling.
29413 (get_torito_desc): Don't use floppy emulation unless requested by
29414 user. Patch boot information table when requested via
29415 `-boot-info-table'.
29416 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
29417 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
29418 (use_boot_info_table): New variables.
29419 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
29420 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
29421 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
29422 `--eltorito-emul-floppy'.
29423 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
29424 and `OPTION_ELTORITO_EMUL_FLOPPY'.
29425 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
29426 (use_boot_info_table, get_731): New prototypes.
29427 * util/mkisofs/write.c (get_731): New function.
29429 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
29431 Fix the generation of the man page.
29433 * util/pc/i386/grub-install.in: Source
29434 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
29436 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
29438 Large file support for grub-mkisofs.
29440 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
29441 * util/mkisofs/mkisofs.c (next_extent, last_extent)
29442 (session_start): Upgrade type to `uint64_t'. Update all users.
29443 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
29444 (struct directory_entry): Upgrade type of `starting_block' and
29445 `size' to `uint64_t'. Update all users.
29446 (struct deferred): Remove unused structure.
29447 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
29449 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
29450 file is larger than `UINT32_MAX'.
29451 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
29452 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
29454 (struct deferred_write): Upgrade type of `extent' and `size' to
29455 `uint64_t'. Update all users.
29456 (last_extent_written): Upgrade type to `uint64_t'. Update all
29458 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
29459 Update all users. Upgrade type of `remain' to `int64_t' and
29460 `use' to `size_t'. Use error() to handle fread() errors.
29461 (write_files): Rely on write_one_file() rather than calling
29462 xfwrite() directly.
29464 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
29466 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
29468 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29470 * util/mkisofs/fnmatch.c: Remove.
29471 * util/mkisofs/getopt1.c: Likewise.
29472 * util/mkisofs/getopt.c: Likewise.
29473 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
29474 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
29475 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
29476 `gnulib/getopt1.c' and `gnulib/getopt.c'.
29477 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
29479 * configure.ac: Detect `mingw32msvc' host_os.
29480 Check for lstat(), getuid() and getgid().
29482 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
29483 instances of `u_char' with `uint8_t'.
29485 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
29486 [!HAVE_GETUID] (getuid): New function (stub).
29487 [!HAVE_GETGID] (getgid): Likewise.
29488 [!HAVE_LSTAT] (lstat): Likewise.
29489 [!S_IROTH] (S_IROTH): New macro (dummy).
29490 [!S_IRGRP] (S_IRGRP): Likewise.
29492 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29494 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
29495 conditional expression).
29497 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29499 Import from Gnulib.
29501 * gnulib/fnmatch.c: New file.
29502 * gnulib/fnmatch.h: Likewise.
29503 * gnulib/fnmatch_loop.c: Likewise.
29504 * gnulib/getopt.c: Likewise.
29505 * gnulib/getopt.h: Likewise.
29506 * gnulib/getopt1.c: Likewise.
29507 * gnulib/getopt_int.h: Likewise.
29508 * gnulib/gettext.h: Likewise.
29510 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29512 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
29513 * normal/handler.c (read_handler_list): Likewise.
29515 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29519 * kern/command.c (grub_register_command_prio): Use
29520 grub_zalloc() instead of explicitly zeroing data.
29521 * kern/list.c: Include `<grub/mm.h>'.
29522 (grub_named_list_find): Replace `0' with `NULL'.
29523 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
29524 (fs_module_list): Change type to `grub_named_list_t'. Update all
29526 * normal/dyncmd.c (read_command_list): Add space between function
29527 call and parenthesis.
29528 * normal/handler.c (read_handler_list): Likewise.
29530 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29532 * normal/auth.c (punishment_delay): Moved from here ...
29533 (grub_auth_strcmp): ... to here (inside function).
29535 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29537 * include/grub/list.h (struct grub_named_list): Remove `const'
29538 qualifier from `name'.
29539 (struct grub_prio_list): Likewise.
29541 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29543 * normal/auth.c: Include `<grub/time.h>'.
29544 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
29546 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29548 * normal/auth.c (punishment_delay): New variable.
29549 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
29550 (grub_auth_check_authentication): Punish failed login attempts with
29551 an incremental (2^N) delay.
29553 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29555 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
29556 path with $(srcdir).
29558 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
29560 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
29562 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29564 * util/i386/coreboot/grub-mkrescue.in: New file.
29565 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
29568 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
29569 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
29570 * configure.ac: Add header and function checks to satisfy grub-mkisofs
29572 * util/mkisofs/defaults.h: New file.
29573 * util/mkisofs/eltorito.c: Likewise.
29574 * util/mkisofs/exclude.h: Likewise.
29575 * util/mkisofs/fnmatch.c: Likewise.
29576 * util/mkisofs/getopt.c: Likewise.
29577 * util/mkisofs/getopt1.c: Likewise.
29578 * util/mkisofs/hash.c: Likewise.
29579 * util/mkisofs/include/fctldefs.h: Likewise.
29580 * util/mkisofs/include/mconfig.h: Likewise.
29581 * util/mkisofs/include/prototyp.h: Likewise.
29582 * util/mkisofs/include/statdefs.h: Likewise.
29583 * util/mkisofs/iso9660.h: Likewise.
29584 * util/mkisofs/joliet.c: Likewise.
29585 * util/mkisofs/match.c: Likewise.
29586 * util/mkisofs/match.h: Likewise.
29587 * util/mkisofs/mkisofs.c: Likewise.
29588 * util/mkisofs/mkisofs.h: Likewise.
29589 * util/mkisofs/multi.c: Likewise.
29590 * util/mkisofs/name.c: Likewise.
29591 * util/mkisofs/rock.c: Likewise.
29592 * util/mkisofs/tree.c: Likewise.
29593 * util/mkisofs/write.c: Likewise.
29595 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
29597 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
29600 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
29602 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
29603 `grub-mkimage' (and use $0 when possible).
29605 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
29607 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
29608 error message for excessively large memory map.
29610 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
29612 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
29615 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
29617 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
29618 message for coreboot users.
29620 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
29622 Fix build with GNU gold.
29624 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
29625 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
29626 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
29628 * aclocal.m4: Likewise.
29630 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
29632 * configure.ac (AC_PREREQ): Bump to 2.59d.
29633 * INSTALL: Make it more clear when Autoconf and Ruby are
29634 needed and when to run `./autogen.sh'.
29636 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
29638 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
29641 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
29643 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
29645 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
29647 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
29648 giving it to GNU Mach.
29650 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
29652 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
29653 GNU partition number to get internal GRUB partition number.
29655 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
29657 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
29658 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
29660 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
29662 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
29663 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
29666 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
29668 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
29670 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
29674 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
29675 `-isystem=$(srcdir)/include'.
29677 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
29679 * util/i386/pc/grub-install.in: Remove hint that device.map should be
29680 checked (grub-install doesn't currently rely on it).
29682 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
29686 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
29687 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
29688 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
29689 * conf/i386-ieee1275.rmk: Likewise.
29690 * conf/i386-pc.rmk: Likewise.
29691 * conf/powerpc-ieee1275.rmk: Likewise.
29692 * conf/sparc64-ieee1275.rmk: Likewise.
29693 * conf/x86_64-efi.rmk: Likewise.
29695 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
29697 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
29699 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
29701 * include/grub/misc.h: Stop checking for APPLE_CC.
29703 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
29705 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
29706 doesn't cause an infinite call loop.
29708 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
29710 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
29713 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29715 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
29717 * Makefile.in: Likewise.
29719 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29721 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
29723 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29725 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
29727 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29729 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
29731 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29733 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
29735 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
29737 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29739 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
29740 in $(MAKEINFO) invocation. This makes it clear in output that
29741 errors are being ignored.
29743 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29745 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
29747 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
29748 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
29749 * conf/i386-ieee1275.rmk: Likewise.
29750 * conf/i386-pc.rmk: Likewise.
29751 * conf/powerpc-ieee1275.rmk: Likewise.
29752 * conf/sparc64-ieee1275.rmk: Likewise.
29753 * conf/x86_64-efi.rmk: Likewise.
29755 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
29757 * util/grub-editenv.c (main): If only a command is given, use
29758 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
29759 (usage): FILENAME is now optional and has a default.
29761 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
29763 Improve grub-mkconfig performance when there are several menu
29764 entries on a single filesystem.
29766 * util/grub.d/10_linux.in (linux_entry): Cache the output of
29767 prepare_grub_to_access_device.
29768 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29769 * util/grub.d/30_os-prober.in: Likewise.
29771 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29773 * util/grub.d/10_freebsd.in: Remove.
29774 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
29775 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
29777 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29779 * docs/grub.cfg: Fix example usage of *BSD loaders.
29781 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29783 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
29784 grub_util_error() call.
29786 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29788 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
29789 `reserved_first_sector' member.
29790 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
29791 `reserved_first_sector' to 1.
29792 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
29793 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
29794 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
29795 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
29796 filesystems which begin at first sector.
29797 (options): New option --skip-fs-probe.
29798 (main): Handle --skip-fs-probe and pass it to setup().
29800 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29802 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
29803 (memset): Fix function prototype.
29805 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29806 2009-10-25 Vasily Averin <vvs@parallels.com>
29808 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
29809 `dirent.direntlen == 0'.
29811 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29813 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
29815 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
29817 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29819 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
29820 `__trampoline_setup' and `__ucmpdi2'.
29821 * include/grub/powerpc/libgcc.h: Only export symbols for functions
29822 that libgcc provides.
29824 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29826 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
29827 * include/grub/sparc64/libgcc.h (memset): Likewise.
29828 * include/grub/misc.h (memset, memcmp): New function prototypes.
29830 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29832 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
29834 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
29836 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29838 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
29839 * docs/grub.cfg: Compensate for recent change in multiboot
29840 loader (since 2009-08-14 it won't pass filename to payload).
29841 * util/grub.d/10_hurd.in: Likewise.
29843 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
29845 * config.guess: Update to latest version from config git
29847 * config.sub: Likewise.
29849 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
29851 Fix build on sparc64.
29853 * configure.ac: Perform checks for libgcc symbols before
29854 adding `-nostdlib' to LDFLAGS.
29856 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
29858 Let user specify OpenBSD root device.
29860 * loader/i386/bsd.c (openbsd_root): New variable.
29861 (openbsd_opts): New option 'root'.
29862 (OPENBSD_ROOT_ARG): New macro.
29863 (grub_openbsd_boot): Use 'openbsd_root'.
29864 (grub_cmd_openbsd): Fill 'openbsd_root'.
29866 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
29868 * NEWS: Misc adjustments.
29870 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
29872 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
29874 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
29876 * configure.ac: Bump version to 1.97.
29878 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
29880 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
29881 -mno-3dnow on x86 architectures. Some toolchains enable these
29882 features by default, but they rely on registers that aren't enabled
29883 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
29885 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
29887 Make entry text a bit more readable.
29889 * util/grub.d/10_linux.in: Add `with' before `Linux'.
29891 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29893 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
29895 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29897 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
29900 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29902 * configure.ac: Add missing dollar.
29904 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29906 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
29908 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
29909 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
29911 * include/grub/sparc64/libgcc.h: Likewise. Use
29912 preprocessor conditionals.
29914 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
29916 * conf/common.rmk (grub-dumpbios): Remove rule.
29917 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
29918 * util/grub-dumpbios.in: Remove file.
29920 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
29922 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
29923 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
29925 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
29926 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
29929 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
29930 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
29931 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
29932 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
29935 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
29937 * term/tparm.c: Switch to GPLv3.
29939 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
29941 * include/grub/i386/cpuid.h: Add header protection.
29943 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
29945 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
29947 * include/grub/i386/cpuid.h: New file.
29948 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
29949 (has_longmode): Rename to ...
29950 (grub_cpuid_has_longmode): ... this. Update all users. Remove
29951 `static' attribute.
29952 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
29953 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
29954 on a CPU that doesn't implement AMD64 instruction set.
29956 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
29958 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
29959 that version.texi is rebuilt on version number changes.
29961 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
29963 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
29966 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
29968 * util/i386/pc/grub-install.in: Source
29969 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
29970 that the --grub-probe option will work.
29971 * util/sparc64/ieee1275/grub-install.in: Likewise.
29973 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
29975 * configure.ac: Bump version to 1.97~beta4.
29977 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
29979 Resync grub-mkdevicemap in x86_64-efi.
29981 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
29982 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
29983 `util/devicemap.c'.
29985 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
29987 * util/grub-editenv.c (create_envblk_file): Write new block with a
29988 .new suffix and then rename it into place, to ensure atomic
29991 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
29993 Do not automatically install headers.
29995 * Makefile.in (include_DATA): Remove. Update all users.
29997 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
29999 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
30000 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
30002 * util/osdetect.lua: Remove.
30003 * script/lua/lauxlib.c: Likewise.
30004 * script/lua/ldebug.c: Likewise.
30005 * script/lua/grub_main.c: Likewise.
30006 * script/lua/lauxlib.h: Likewise.
30007 * script/lua/ldebug.h: Likewise.
30008 * script/lua/ltablib.c: Likewise.
30009 * script/lua/liolib.c: Likewise.
30010 * script/lua/lstrlib.c: Likewise.
30011 * script/lua/lualib.h: Likewise.
30012 * script/lua/ldo.c: Likewise.
30013 * script/lua/ldump.c: Likewise.
30014 * script/lua/ldo.h: Likewise.
30015 * script/lua/loslib.c: Likewise.
30016 * script/lua/lundump.c: Likewise.
30017 * script/lua/grub_lib.c: Likewise.
30018 * script/lua/ldblib.c: Likewise.
30019 * script/lua/lundump.h: Likewise.
30020 * script/lua/lmem.c: Likewise.
30021 * script/lua/grub_lib.h: Likewise.
30022 * script/lua/lmathlib.c: Likewise.
30023 * script/lua/lstate.c: Likewise.
30024 * script/lua/ltm.c: Likewise.
30025 * script/lua/lvm.c: Likewise.
30026 * script/lua/lmem.h: Likewise.
30027 * script/lua/lstate.h: Likewise.
30028 * script/lua/ltm.h: Likewise.
30029 * script/lua/ltable.c: Likewise.
30030 * script/lua/lvm.h: Likewise.
30031 * script/lua/llex.c: Likewise.
30032 * script/lua/lgc.c: Likewise.
30033 * script/lua/grub_lua.h: Likewise.
30034 * script/lua/loadlib.c: Likewise.
30035 * script/lua/lfunc.c: Likewise.
30036 * script/lua/lopcodes.c: Likewise.
30037 * script/lua/lparser.c: Likewise.
30038 * script/lua/ltable.h: Likewise.
30039 * script/lua/llex.h: Likewise.
30040 * script/lua/lgc.h: Likewise.
30041 * script/lua/lfunc.h: Likewise.
30042 * script/lua/lbaselib.c: Likewise.
30043 * script/lua/lopcodes.h: Likewise.
30044 * script/lua/lparser.h: Likewise.
30045 * script/lua/lzio.c: Likewise.
30046 * script/lua/linit.c: Likewise.
30047 * script/lua/lobject.c: Likewise.
30048 * script/lua/llimits.h: Likewise.
30049 * script/lua/lstring.c: Likewise.
30050 * script/lua/lzio.h: Likewise.
30051 * script/lua/lapi.c: Likewise.
30052 * script/lua/lcode.c: Likewise.
30053 * script/lua/lua.h: Likewise.
30054 * script/lua/lobject.h: Likewise.
30055 * script/lua/lstring.h: Likewise.
30056 * script/lua/lapi.h: Likewise.
30057 * script/lua/lcode.h: Likewise.
30058 * script/lua/luaconf.h: Likewise.
30060 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
30062 * docs/grub.texi (Command-line and menu entry commands): Document
30063 date and echo commands.
30065 2009-09-24 Pavel Roskin <proski@gnu.org>
30067 * include/grub/kernel.h (struct grub_module_header): Remove
30068 `grub_module_header_types'. Make `type' unsigned. Make `size'
30069 32-bit on all platforms.
30070 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
30071 8-bit field. Use grub_host_to_target32() for `size'.
30072 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
30073 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
30074 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
30076 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
30078 Fix "lost keypress" bug in at_keyboard.
30080 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
30081 Checks for readyness of input buffer (without flushing it).
30082 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
30083 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
30085 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
30087 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
30088 size check within GRUB_MACHINE_PCBIOS section.
30090 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
30092 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
30094 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
30095 KEYBOARD_ISREADY check.
30096 (grub_at_keyboard_checkkey): Rename to ...
30097 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
30098 Remove gratuitous cast.
30100 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
30102 * configure.ac: Call AC_PROG_MKDIR_P.
30103 * Makefile.in (docs/stamp-vti): Create docs directory. Create
30104 version.texi in $(builddir) rather than $(srcdir).
30105 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
30106 to makeinfo's @include search path.
30108 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
30110 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
30112 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
30114 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
30117 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
30119 Build info documentation. Some code borrowed from Automake.
30121 * configure.ac: Check for makeinfo.
30122 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
30123 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
30125 (MOSTLYCLEANFILES): Add vti.tmp.
30126 (docs/version.texi, docs/stamp-vti): Update automatically.
30127 (docs/grub.info): Build info documentation. Use --force and ignore
30129 (all-local): Add $(INFOS).
30130 (install-local): Install info files.
30131 (uninstall): Uninstall info files.
30132 * docs/version.texi: Remove from revision control. This file is
30133 automatically generated on build now.
30134 * gendistlist.sh: Add `*.info'.
30136 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
30138 * kern/term.c: Fix indentation.
30140 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
30142 * util/hostdisk.c: Fix a comment.
30144 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
30146 Fix regression introduced in r2539.
30148 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
30151 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
30153 * util/grub.d/30_os-prober.in: Don't throw away stderr from
30154 os-prober. Under normal operation, it does not print anything to
30155 stderr; if it does, we need to debug it, and throwing away stderr
30156 makes that excessively difficult.
30158 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
30160 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
30162 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
30164 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
30165 AC_LANG_PROGRAM from autoconf.
30166 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
30167 prototypes (fixes warning).
30169 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
30170 `--disable-werror' was used.
30172 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
30174 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
30175 uninitialized `lastaddr'.
30177 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
30179 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
30181 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
30183 * commands/test.c (get_fileinfo): Return immediately if
30184 grub_fs_probe fails.
30186 2009-09-14 José Martínez <xosemp@gmail.com>
30188 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
30190 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
30192 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
30195 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
30197 * configure.ac: Remove --enable-grub-pe2elf. Only build
30198 grub-pe2elf when needed by the build system itself.
30199 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
30201 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
30203 * configure.ac: Bump version to 1.97~beta3.
30204 * docs/version.texi: Likewise.
30206 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
30208 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
30209 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
30211 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
30212 (grub_linux_setup_video): ... to here (with some adjustments).
30214 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
30216 Fix memory corruption issue (spotted by Colin Watson).
30218 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
30219 causing returned size to be stored in an incorrect memory location.
30220 Fix use of uninitialized value when storing the returned size.
30222 2009-09-12 Yves Blusseau <blusseau@zetam.org>
30224 Change clean rules to properly remove files
30226 * genmk.rb: add new clean rules
30227 * Makefile.in (clean): add the new targets
30228 (mostlyclean): likewise
30230 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
30232 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
30234 * fs/ntfs.c (init_file): Understand 64-bit sizes for
30235 non-resident files.
30237 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
30239 * configure.ac: Don't look for help2man when cross-compiling. Fixes
30240 part of bug #27349.
30242 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
30244 * util/grub-mkconfig.in: Make the created config mode 400 and
30245 print a warning if it fails.
30247 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
30249 * util/grub.d/40_custom.in: Ask user to type custom entries below
30250 comment, rather than below 'exec tail' line.
30252 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
30254 * util/grub.d/40_custom.in: Make sure that the explanatory text is
30255 visible in grub.cfg.
30257 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
30259 * util/grub.d/40_custom.in: Make it a little clearer how to use this
30262 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
30264 * docs/grub.cfg: Add an example menu entry for memtest86+.
30266 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
30268 * config.guess: Update to latest version from config git.
30269 * config.sub: Likewise.
30271 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
30273 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
30274 unknown-command case. Fixes bug #27320.
30276 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
30278 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
30279 `help' if the command exists.
30281 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
30283 * INSTALL: Require GCC 4.1.3 or later.
30285 2009-09-06 Yves Blusseau <blusseau@zetam.org>
30287 * Makefile.in (RMKFILES): add i386-qemu.rmk
30288 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
30289 $(srcdir)/stamp-h.in
30291 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
30293 * util/grub-probe.c (probe): Comment out buggy codepath, which
30294 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
30295 should be re-enabled after 1.97.
30297 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
30299 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
30302 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
30304 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
30305 unnecessary calls to grub_error.
30307 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
30309 * NEWS: Mention `keystatus' and Unicode fonts.
30311 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
30313 * configure.ac: Bump version to 1.97~beta2.
30314 * docs/version.texi: Likewise.
30316 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
30318 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
30319 containing unwind information in some cases where it previously did
30320 not. Use -fno-dwarf2-cfi-asm if available to restore the old
30321 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
30324 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
30326 Embedding loadenv module into grub-emu
30328 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
30330 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
30331 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
30332 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
30333 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
30334 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
30335 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
30337 2009-09-03 Magnus Granberg <zorry@ume.nu>
30339 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
30340 include -fPIE in the default specs.
30341 * configure.ac: Check if pie_possible is yes and add -fno-PIE
30344 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
30346 * INSTALL: Note that GNU Bison 2.3 or later is required.
30348 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
30350 * kern/i386/pc/startup.S: Fix typo.
30352 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
30354 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
30357 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
30359 * docs/grub.texi (Naming convention): Describe one-based partition
30361 (Device syntax): Likewise.
30362 (File name syntax): Likewise.
30363 (Block list syntax): Likewise.
30364 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
30366 (File name syntax): Likewise.
30367 (Command-line and menu entry commands): Document acpi, blocklist,
30368 crc, export, insmod, keystatus, ls, set, and unset commands.
30370 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
30372 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
30373 to avoid implying that only one of --shift, --ctrl, or --alt may be
30376 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
30378 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
30379 rather than comparing against S_IFREG, which will almost never work.
30381 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
30383 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
30384 (write_blocklists): Likewise.
30386 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
30388 * script/lua/grub_lua.h (fputs): Supply a format string as the first
30389 argument to grub_printf.
30391 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
30393 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
30396 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
30398 * kern/file.c (grub_file_read): Spelling fix
30400 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
30402 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
30403 loading of headers in some cases.
30405 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
30407 * configure.ac: Bump version to 1.97~beta1.
30408 * docs/version.texi: Likewise.
30410 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
30412 * include/grub/i386/xnu.h: Add license header.
30413 include grub/err.h explicitly.
30415 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
30417 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
30418 to `ufs' in the vfs.root.mountfrom kernel parameter.
30420 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
30422 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
30424 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
30425 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
30427 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
30428 `ARRAY_SIZE' macro.
30430 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
30432 * kern/file.c (grub_file_read): Check offset.
30433 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
30434 * fs/jfs.c (grub_jfs_read_file): Likewise.
30435 * fs/ntfs.c (grub_ntfs_read): Likewise.
30436 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
30437 * fs/minix.c (grub_minix_read_file): Correct offset check.
30438 * fs/ufs.c (grub_ufs_read_file): Likewise.
30440 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
30442 * term/i386/pc/console.c (bios_data_area): Cast
30443 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
30445 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
30447 1-bit optimised blitters.
30449 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
30451 (grub_video_fbblit_replace_24bit_1bit): Likewise.
30452 (grub_video_fbblit_replace_16bit_1bit): Likewise.
30453 (grub_video_fbblit_replace_8bit_1bit): Likewise.
30454 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
30455 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
30456 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
30457 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
30459 (grub_video_fbblit_replace_24bit_1bit): Likewise.
30460 (grub_video_fbblit_replace_16bit_1bit): Likewise.
30461 (grub_video_fbblit_replace_8bit_1bit): Likewise.
30462 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
30463 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
30464 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
30465 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
30467 * video/video.c (grub_video_get_blit_format): Return
30468 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
30470 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
30472 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
30473 the first argument to grub_printf.
30475 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
30476 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
30478 Add `getkeystatus' terminal method. Add a new `keystatus' command
30481 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
30482 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
30483 modifier key bitmasks.
30484 (struct grub_term_input): Add `getkeystatus' member.
30485 (grub_getkeystatus): Add prototype.
30486 * kern/term.c (grub_getkeystatus): New function.
30488 * include/grub/i386/pc/memory.h
30489 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
30490 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
30492 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
30493 (grub_console_term_input): Set `getkeystatus' member.
30494 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
30496 (grub_usb_keyboard_getreport): Likewise.
30497 (grub_usb_keyboard_checkkey): Likewise.
30498 (grub_usb_keyboard_getkeystatus): New function.
30499 (grub_usb_keyboard_term): Set `getkeystatus' member.
30501 * commands/keystatus.c: New file.
30502 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
30503 (keystatus_mod_SOURCES): New variable.
30504 (keystatus_mod_CFLAGS): Likewise.
30505 (keystatus_mod_LDFLAGS): Likewise.
30506 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
30507 commands/keystatus.c.
30508 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30509 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30510 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30511 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30512 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30513 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
30515 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
30517 Split befs.mod and afs.mod into *_be.mod and *.mod
30519 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
30520 (grub_fstest_SOURCES): Likewise.
30521 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
30522 (afs_be_mod_SOURCES): New variable.
30523 (afs_be_mod_CFLAGS): Likewise.
30524 (afs_be_mod_LDFLAGS): Likewise.
30525 (befs_be_mod_SOURCES): Likewise.
30526 (befs_be_mod_CFLAGS): Likewise.
30527 (befs_be_mod_LDFLAGS): Likewise.
30528 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
30529 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30530 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30531 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
30532 (grub_emu_SOURCES): Likewise.
30533 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30534 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30535 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
30536 * fs/afs_be.c: New file.
30537 * fs/befs_be.c: New file.
30538 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
30539 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
30540 (U16): Replaced with ...
30541 (grub_afs_to_cpu16): ...this. All users updated.
30542 (U32): Replaced with ...
30543 (grub_afs_to_cpu32): ...this. All users updated.
30544 (U64): Replaced with ...
30545 (grub_afs_to_cpu64): ...this. All users updated.
30546 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
30547 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
30548 (grub_afs_validate_sblock): Check only one endianness.
30549 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
30550 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
30551 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
30552 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
30553 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
30554 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
30555 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
30556 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
30558 2009-08-26 Bean <bean123ch@gmail.com>
30560 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
30562 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
30563 (grub_xfs_inode_block): Change return type to grub_uint64_t.
30564 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
30566 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30568 NetBSD memory map support.
30570 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
30571 (grub_netbsd_btinfo_mmap_header): New structure.
30572 (grub_netbsd_btinfo_mmap_entry): Likewise.
30573 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
30575 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30577 Enable bsd.mod on coreboot.
30579 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
30580 (bsd_mod_SOURCES): New variable.
30581 (bsd_mod_CFLAGS): Likewise.
30582 (bsd_mod_LDFLAGS): Likewise.
30583 (bsd_mod_ASFLAGS): Likewise.
30584 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
30585 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
30587 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30589 Cleanup NetBSD root support.
30591 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
30592 grub_bsd_get_device.
30595 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
30597 * util/grub.d/00_header.in: Move check for the video backend of
30598 gfxterm from here ...
30599 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
30600 a suitable video backend.
30602 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30604 Fix breakage in grub-setup.
30606 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
30607 "msdos_partition_map".
30609 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30611 Fix breakage in normal/auth.c.
30613 * normal/auth.c (grub_iswordseparator): New function.
30615 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30617 Authentication support.
30619 * commands/password.c: New file.
30620 * conf/common.rmk (pkglib_MODULES): Add password.mod.
30621 (password_mod_SOURCES): New variable.
30622 (password_mod_CFLAGS): Likewise.
30623 (password_mod_LDFLAGS): Likewise.
30624 (normal_mod_SOURCES): Add normal/auth.c.
30625 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
30627 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30628 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30629 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30630 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30631 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30632 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
30633 * include/grub/auth.h: New file.
30634 * include/grub/err.h (grub_err_t): New enum value
30635 GRUB_ERR_ACCESS_DENIED.
30636 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
30638 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
30639 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
30641 * normal/auth.c: New file.
30642 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
30643 (grub_cmdline_run): Don't allow to go to command line without
30645 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
30646 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
30647 menuentry without superuser rights.
30648 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
30649 user isn't a superuser.
30651 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30653 Save space by inlining misc.c functions.
30655 * kern/misc.c (grub_iswordseparator): Made static.
30656 * kern/misc.c (grub_strcat): Moved from here ...
30657 * include/grub/misc.h (grub_strcat): ... here. Inlined.
30658 * kern/misc.c (grub_strncat): Moved from here ...
30659 * include/grub/misc.h (grub_strncat): ... here. Inlined.
30660 * kern/misc.c (grub_strcasecmp): Moved from here ...
30661 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
30662 * kern/misc.c (grub_strncasecmp): Moved from here ...
30663 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
30664 * kern/misc.c (grub_isalpha): Moved from here ...
30665 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
30666 * kern/misc.c (grub_isdigit): Moved from here ...
30667 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
30668 * kern/misc.c (grub_isgraph): Moved from here ...
30669 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
30670 * kern/misc.c (grub_tolower): Moved from here ...
30671 * include/grub/misc.h (grub_tolower): ... here. Inlined.
30673 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30675 * script/sh/function.c (grub_script_function_find): Cut error message
30676 not to flood terminal.
30677 * script/sh/lexer.c (grub_script_yylex): Remove command line length
30679 * script/sh/script.c (grub_script_arg_add): Duplicate string.
30681 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
30683 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
30684 `report' grub_uint8_t *.
30685 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
30686 Use a 50-millisecond timeout rather than just repeating
30687 grub_usb_keyboard_getreport 50 times.
30688 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
30690 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30692 Rename *_partition_map to part_*
30694 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
30695 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
30696 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
30697 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
30699 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
30701 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
30702 * util/grub-probe.c (probe_partmap): Don't transform partition name
30703 to get module name.
30705 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30707 Fix OpenBSD and NetBSD support.
30709 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
30710 memory address conflict.
30711 (OPENBSD_MMAP_ACPI): New definition.
30712 (OPENBSD_MMAP_NVS): Likewise.
30713 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
30714 and OPENBSD_MMAP_NVS.
30715 Add memory map terminator
30716 Explicit cast when calling grub_unix_real_boot.
30717 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
30719 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30721 Let user specify NetBSD root device.
30723 * loader/i386/bsd.c (netbsd_root): New variable.
30724 (netbsd_opts): New option 'root'.
30725 (NETBSD_ROOT_ARG): New macro.
30726 (grub_netbsd_boot): Use 'netbsd_root'.
30727 (grub_bsd_unload): Free 'netbsd_root'.
30728 (grub_cmd_netbsd): Fill 'netbsd_root'.
30730 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30732 Support for 64-bit NetBSD.
30734 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
30735 point when booting non-FreeBSD.
30737 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30739 Support --no-smp and --no-acpi for NetBSD.
30741 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
30742 (NETBSD_AB_NOACPI): Likewise.
30743 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
30744 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
30746 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
30748 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
30750 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
30751 errors. Call grub_error when needed.
30753 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
30755 * commands/search.c (search_fs): Try searching without autoload first.
30756 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
30757 filesystem module explicitly for faster booting.
30759 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
30761 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
30763 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
30765 * util/grub.d/30_os-prober.in: Disable os-prober if
30766 `GRUB_DISABLE_OS_PROBER' was set to true.
30768 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
30770 * partmap/pc.c: Rename to ...
30771 * partmap/msdos.c: ... this. Update all users.
30772 (grub_pc_partition_map): Rename to ...
30773 (grub_msdos_partition_map): ... this. Update all users.
30775 * parttool/pcpart.c: Rename to ...
30776 * parttool/msdospart.c: ... this. Update all users.
30778 * include/grub/pc_partition.h: Rename to ...
30779 * include/grub/msdos_partition.h: ... this. Update all users.
30780 (grub_pc_partition_bsd_entry): Rename to ...
30781 (grub_msdos_partition_bsd_entry): ... this. Update all users.
30782 (grub_pc_partition_disk_label): Rename to ...
30783 (grub_msdos_partition_disk_label): ... this. Update all users.
30784 (grub_pc_partition_entry): Rename to ...
30785 (grub_msdos_partition_entry): ... this. Update all users.
30786 (grub_pc_partition_mbr): Rename to ...
30787 (grub_msdos_partition_mbr): ... this. Update all users.
30788 (grub_pc_partition): Rename to ...
30789 (grub_msdos_partition): ... this. Update all users.
30790 (grub_pc_partition_is_empty): Rename to ...
30791 (grub_msdos_partition_is_empty): ... this. Update all users.
30792 (grub_pc_partition_is_extended): Rename to ...
30793 (grub_msdos_partition_is_extended): ... this. Update all users.
30794 (grub_pc_partition_is_bsd): Rename to ...
30795 (grub_msdos_partition_is_bsd): ... this. Update all users.
30797 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
30798 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
30799 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
30800 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
30801 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
30802 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
30803 (gpt_mod_LDFLAGS): Rename to ...
30804 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
30805 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
30806 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
30807 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
30808 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
30809 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
30810 (part_gpt_mod_LDFLAGS): ... this.
30811 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
30812 `pcpart.mod' to `msdospart.mod'.
30813 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
30815 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
30816 (msdospart_mod_LDFLAGS): ... this.
30818 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
30820 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
30821 (openbsd_opts): Likewise.
30822 (netbsd_opts): Likewise.
30823 (freebsd_flags): Added 0 terminator.
30824 (openbsd_flags): Likewise.
30825 (netbsd_flags): Likewise.
30826 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
30827 (grub_cmd_freebsd): Transformed into extended command.
30828 (grub_cmd_openbsd): Likewise.
30829 (grub_cmd_netbsd): Likewise.
30830 (cmd_freebsd): Changed type to grub_extcmd_t.
30831 (cmd_openbsd): Likewise.
30832 (cmd_netbsd): Likewise.
30833 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
30834 grub_cmd_openbsd as extended commands.
30835 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
30836 cmd_netbsd and cmd_openbsd
30838 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
30840 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
30842 2009-08-21 Pavel Roskin <proski@gnu.org>
30844 * Makefile.in (install-local): When checking if a file is in the
30845 build directory, use "test -e" to detect symlinks.
30847 * Makefile.in (install-local): Remove all files in
30848 $(DESTDIR)$(pkglibdir) before installing new files there.
30850 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
30852 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
30855 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
30857 * util/grub-mkconfig.in: Don't use gfxterm by default if not
30858 explicitly specified by the user.
30860 2009-08-18 Pavel Roskin <proski@gnu.org>
30862 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
30863 grub_uint8_t pointer for data.
30864 * include/grub/fbutil.h (struct grub_video_fbblit_info):
30866 * video/fb/fbutil.c: Remove unnecessary casts.
30868 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
30872 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
30873 (grub_vbe_set_video_mode): Save active mode info
30874 only after setting the mode.
30875 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
30878 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
30880 Rename variables for clarity.
30882 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
30883 (active_vbe_mode_info): ... this. All users updated.
30884 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
30886 (initial_mode): Rename to ...
30887 (initial_vbe_mode): ... this. All users updated.
30888 (mode_in_use): Rename to ..
30889 (vbe_mode_in_use): ... this. All users updated.
30890 (mode_list): Rename to ..
30891 (vbe_mode_list): ... this. All users updated.
30892 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
30893 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
30894 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
30895 'mode_list_size' to 'vbe_mode_list_size'.
30896 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
30897 'best_mode_info' to 'best_vbe_mode_info' and
30898 'best_mode' to 'best_vbe_mode'
30900 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
30902 Remove duplicate grub_video_fb_get_video_ptr.
30904 * include/grub/fbutil.h (get_data_ptr): Rename to ...
30905 (grub_video_fb_get_video_ptr): ... this.
30906 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
30907 * video/fb/fbutil.c: Add comment about addressing.
30908 (get_data_ptr): Rename to ...
30909 (grub_video_fb_get_video_ptr): ... this. All users updated.
30910 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
30912 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
30914 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
30915 grub_dprintf() that was just added.
30917 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
30919 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
30920 (DEFAULT_VIDEO_MODE): Remove macros.
30921 (grub_linux_boot): Remove assumption that Linux has FB support,
30922 and use "text" as default video mode.
30924 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
30926 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
30928 * fs/fat.c (grub_fat_read_data): Likewise.
30930 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30932 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
30934 (grub_module): Likewise.
30936 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30938 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
30939 mbi->cmdline but free playground.
30941 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30943 Handle group offset on UFS1.
30945 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
30946 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
30948 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30950 Split ufs.mod into ufs1.mod and ufs2.mod.
30952 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
30953 (grub_fstest_SOURCES): Likewise.
30954 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
30955 (ufs_mod_SOURCES): Remove.
30956 (ufs_mod_CFLAGS): Likewise.
30957 (ufs_mod_LDFLAGS): Likewise.
30958 (ufs1_mod_SOURCES): New variable.
30959 (ufs1_mod_CFLAGS): Likewise.
30960 (ufs1_mod_LDFLAGS): Likewise.
30961 (ufs2_mod_SOURCES): New variable.
30962 (ufs2_mod_CFLAGS): Likewise.
30963 (ufs2_mod_LDFLAGS): Likewise.
30964 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
30965 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
30967 (grub_emu_SOURCES): Likewise.
30968 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30969 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30970 (grub_setup_SOURCES): Likewise.
30971 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30972 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
30973 (grub_setup_SOURCES): Likewise.
30974 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
30976 * fs/ufs2.c: New file.
30977 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
30979 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30983 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
30984 subsystem at the end.
30985 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
30986 (video_fb_mod_SOURCES): New variable.
30987 (video_fb_mod_CFLAGS): Likewise.
30988 (video_fb_mod_LDFLAGS): Likewise.
30989 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
30990 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
30991 * video/i386/pc/vbeblit.c: Moved from here ...
30992 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
30993 * video/i386/pc/vbefill.c: Moved from here ...
30994 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
30995 * video/i386/pc/vbeutil.c: Moved from here ...
30996 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
30997 * include/grub/i386/pc/vbeblit.h: Moved from here ...
30998 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
30999 * include/grub/i386/pc/vbefill.h: Moved from here ...
31000 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
31001 * include/grub/i386/pc/vbeutil.h: Moved from here ...
31002 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
31003 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
31004 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
31005 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
31006 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
31007 (grub_video_adapter): Added 'get_info_and_fini'.
31008 (grub_video_get_info_and_fini): New prototype.
31009 (grub_video_set_mode): make modestring const char *.
31010 * loader/i386/linux.c (grub_linux_setup_video): Use
31011 grub_video_get_info_and_fini.
31012 (grub_linux_boot): Move modesetting just before booting.
31013 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
31014 grub_video_get_info_and_fini.
31015 * video/i386/pc/vbe.c: Moved framebuffer part ...
31016 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
31017 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
31018 grub_video_fbstd_colors and grub_video_fb_set_palette.
31019 (grub_video_vbe_init): Clear 'framebuffer' variable and use
31020 grub_video_fb_init.
31021 (grub_video_vbe_fini): Use grub_video_fb_fini.
31022 (grub_video_vbe_setup): Use framebuffer.render_target instead of
31023 render_target and use grub_video_fb_set_active_render_target and
31024 grub_video_fb_set_palette.
31025 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
31026 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
31027 (grub_video_vbe_adapter): Use framebuffer.
31028 * video/video.c (grub_video_get_info_and_fini): New function.
31029 (grub_video_set_mode): Make modestring const char *.
31030 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
31031 values are already initialised.
31033 2009-08-14 Pavel Roskin <proski@gnu.org>
31035 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
31037 * boot/i386/pc/diskboot.S: Likewise.
31038 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
31039 sectors allow compilation on MacOSX.
31040 * conf/i386-pc.rmk: Enable unconditional compilation of
31043 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
31045 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
31046 * util/grub.d/00_header.in: Enter interruptible sleep if
31047 GRUB_HIDDEN_TIMEOUT is set.
31049 2009-08-13 Yves Blusseau <blusseau@zetam.org>
31051 * include/grub/symbol.h: Add the LOCAL macro.
31052 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
31053 starting with "L_".
31055 2009-08-13 Pavel Roskin <proski@gnu.org>
31057 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
31058 any modern compilers we support.
31060 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
31061 Use local labels starting with "L_" so that Apple assembler
31062 knows they are local.
31064 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
31066 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
31067 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
31068 (bsd_kernel_types): ... this enum.
31070 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
31071 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
31072 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
31074 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
31075 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
31076 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
31079 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
31081 * util/grub-dumpdevtree: Moved from here ...
31082 * util/i386/efi/grub-dumpdevtree: ... to here.
31083 (hexify): New function. Converts a string to its hex version.
31084 Generate hex versions of "efi" and "device-properties" by calling
31085 hexify() on the ASCII strings rather than by hardcoding numbers.
31087 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
31089 * fs/jfs.c: Update copyright year.
31091 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
31093 * util/grub.d/00_header.in: Fix a comment.
31094 * util/grub.d/10_linux.in: Likewise.
31095 * util/grub.d/10_windows.in: Likewise.
31096 * util/grub.d/10_hurd.in: Likewise.
31098 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
31100 * util/grub-mkconfig.in: Allow the user to specify the used font
31103 2009-08-08 Pavel Roskin <proski@gnu.org>
31105 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
31106 available, xfs.mod needs it now.
31108 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
31109 the "g" modifier in sed when the intention is to strip something
31110 once. This fixes comparison of kernels with multiple dashes.
31112 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
31113 on it. Add missing space before closing bracket. Fix
31114 misleading formatting.
31116 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
31118 * docs/grub.texi: Major overhaul. Remove all sections that are
31119 specific to GRUB Legacy, or mostly composed of Legacy-specific
31122 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
31124 * docs/version.texi: New file. Provides version information for
31127 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
31129 * docs/grub.texi: Update CVS information to SVN.
31130 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
31132 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
31134 * util/grub-mkconfig.in: Remove a wrong `fi'.
31136 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
31138 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
31139 (grub_jfs_uuid): New function.
31140 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
31142 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
31144 * util/grub-mkconfig_lib.in (font_path): Move the functionality
31146 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
31147 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
31149 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
31151 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
31152 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
31155 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
31156 not just "vmlinu[zx]".
31157 Moved from here ...
31158 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
31161 * util/grub.d/10_linux.in (find_latest): Moved from here ...
31162 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
31165 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
31167 * util/grub.d/10_freebsd.in: Use an absolute device path for
31168 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
31170 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
31172 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
31173 handling of multiple abstraction modules.
31175 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
31177 Fix a bug resulting in black screen when loading Linux using a
31180 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
31183 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
31184 (grub_vbe_bios_getset_dac_palette_width): New function.
31185 (grub_vbe_bios_get_dac_palette_width)
31186 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
31187 grub_vbe_bios_getset_dac_palette_width()).
31189 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
31190 check for return status.
31191 (grub_vbe_get_video_mode_info): When getting information for a packed
31192 mode (<= 8 bpp), obtain DAC palette width using
31193 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
31194 {red,green,blue}_mark_size.
31196 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
31198 * commands/search.c (options): Fix help output to match actual code.
31200 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
31202 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
31205 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
31207 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
31208 on XFS or ReiserFS.
31210 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
31212 Support Apple partition map with sector size different from 512 bytes.
31214 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
31215 (apple_partition_map_iterate): Respect 'aheader.blocksize'
31216 and 'apart.partmap_size'.
31218 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
31219 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
31223 * commands/i386/cpuid.c (options): New variable.
31224 (grub_cmd_cpuid): Return real error.
31225 (GRUB_MOD_INIT(cpuid)): Declare options.
31227 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
31229 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
31232 2009-07-31 Bean <bean123ch@gmail.com>
31234 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
31236 (grub_fshelp_node): Move inode field to the end.
31237 (grub_xfs_data): Remove inode field.
31238 (grub_xfs_inode_block): Calculate inode size using sblock.
31239 (grub_xfs_inode_offset): Likewise.
31240 (grub_xfs_read_inode): Calculate inode size using sblock.
31241 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
31242 (grub_xfs_iterate_dir): Calculate inode size using sblock.
31243 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
31244 to match inode size.
31245 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
31246 not accessible when data is null.
31247 (grub_xfs_open): Likewise.
31249 2009-07-31 Bean <bean123ch@gmail.com>
31251 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
31252 Don't change pv->disk if it's already set.
31254 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
31255 (grub_raid_register): ... here.
31256 (grub_raid_rescan): Removed.
31258 * include/grub/raid.h (grub_raid_rescan): Removed.
31260 * util/grub-fstest.c: Remove include file <grub/raid.h>.
31261 (fstest): Replace grub_raid_rescan with module fini function followed
31264 * util/grub-probe.c: Add include file <grub/raid.h>.
31265 (probe_raid_level): New function.
31266 (probe): Detect abstraction by walking the disk device, support two
31267 level of abstraction (LVM on RAID) when detecting partition map.
31269 2009-07-31 Pavel Roskin <proski@gnu.org>
31271 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
31272 to grub_zalloc(), it was erroneous.
31273 Reported by Bean <bean123ch@gmail.com>
31275 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
31277 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
31278 embedding zone, not only the first one.
31280 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
31282 * term/gfxterm.c (clear_char): New function.
31283 (grub_virtual_screen_setup): Use clear_char.
31284 (scroll_up): Likewise.
31285 (grub_virtual_screen_cls): Likewise.
31287 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
31289 * util/deviceiter.c (get_acceleraid_disk_name): New static
31291 (grub_util_iterate_devices): Handle Accelraid devices.
31292 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
31294 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
31296 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
31297 separator for the suggested gfxpayload string (';' collides with the
31298 parser and needs escaping).
31300 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
31302 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
31303 Clear direction flag before jumping to OS.
31304 (grub_multiboot2_real_boot): Likewise.
31306 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
31308 * util/i386/pc/grub-install: Fix parsing of --disk-module
31311 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
31313 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
31316 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
31318 * util/grub-mkconfig.in (package_version): New variable.
31319 Use it do display the version.
31321 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
31323 * kern/file.c (grub_file_open): Revert to previous check with
31326 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
31328 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
31329 from help line. It's out of sync with code.
31331 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
31333 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
31334 entries on failed boot.
31336 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
31338 * kern/file.c (grub_file_open): Fix an error check.
31340 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
31342 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
31343 partition map couldn't be identified.
31345 2009-07-23 Pavel Roskin <proski@gnu.org>
31347 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
31348 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
31349 case of little endian words becomes just an optimization.
31350 Respect const modifier.
31351 (md5_final): Use code that doesn't depend on endianness.
31353 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
31354 to avoid loss of upper bits if align is unsigned and shorter
31357 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
31359 UUID support for UFS
31361 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
31362 (grub_ufs_uuid): New function.
31363 (grub_ufs_fs): add .uuid
31365 2009-07-21 Pavel Roskin <proski@gnu.org>
31367 * kern/dl.c (grub_dl_check_header): Make static.
31369 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
31371 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
31372 add drivemap for Vista. It breaks Windows 7.
31374 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
31376 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
31379 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
31383 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
31384 (grub_fstest_SOURCES): Likewise.
31385 (pkglib_MODULES): Add befs.mod.
31386 (befs_mod_SOURCES): New variable.
31387 (befs_mod_CFLAGS): Likewise.
31388 (befs_mod_LDFLAGS): Likewise.
31389 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31390 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31391 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31392 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31393 (grub_setup_SOURCES): Likewise.
31394 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31395 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31396 (grub_setup_SOURCES): Likewise.
31397 * fs/befs.c: New file.
31398 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
31399 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
31400 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
31401 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
31402 (B_KEY_INDEX_ALIGN): New declaration.
31403 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
31404 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
31405 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
31406 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
31407 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
31408 (grub_afs_mount) [MODE_BFS]: Likewise.
31409 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
31410 (grub_afs_fs): Use GRUB_AFS_FSNAME
31411 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
31412 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
31413 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
31414 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
31416 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
31418 * util/getroot.c (find_root_device): Add support for MacOSX.
31419 * util/hostdisk.c: Likewise.
31421 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
31423 * font/font.c (find_glyph): Check whether a font is present to avoid
31424 segmentation fault.
31426 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
31428 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
31430 2009-07-20 Pavel Roskin <proski@gnu.org>
31432 * configure.ac: Trim excessively wordy excuses.
31434 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
31436 Add symlink, mtime and label support to AtheFS.
31438 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
31439 (grub_afs_iterate_dir): Handle symlinks.
31440 (grub_afs_open): Use grub_afs_read_symlink.
31441 (grub_afs_dir): Likewise.
31443 (grub_afs_label): New function.
31444 (grub_afs_fs): Add grub_afs_label.
31445 (grub_afs_read_symlink): New function.
31447 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
31449 Fix AtheFS support.
31451 * fs/afs.c: Fix comments style.
31452 (grub_afs_blockrun): Declare as packed.
31453 (grub_afs_datastream): Likewise.
31454 (grub_afs_bnode): Likewise.
31455 (grub_afs_btree): Likewise.
31456 (grub_afs_sblock): Likewise.
31457 Declare `name' as char.
31458 (grub_afs_inode): Declare as packed.
31459 Change void *vnode to grub_uint32_t unused.
31460 (grub_afs_iterate_dir): Check that key_size is positive.
31461 (grub_afs_mount): Don't read superblock twice.
31462 (grub_afs_dir): Don't free node in case of error,
31463 grub_fshelp_find_file already handles this.
31464 (grub_afs_open): Likewise.
31466 2009-07-19 Pavel Roskin <proski@gnu.org>
31468 * Makefile.in: Remove LIBLZO and enable_lzo.
31469 * conf/i386-pc.rmk: Remove lzo support.
31470 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
31471 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
31473 * kern/i386/pc/lzo1x.S: Remove.
31474 * kern/i386/pc/startup.S: Remove lzo support.
31475 * util/i386/pc/grub-mkimage.c: Likewise.
31477 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
31479 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
31480 * fs/xfs.c (grub_xfs_dir): Likewise.
31481 * fs/afs.c (grub_afs_dir): Likewise.
31482 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
31483 (grub_iso9660_open): Likewise.
31484 * fs/jfs.c (grub_jfs_open): Likewise.
31485 * fs/ext2.c (grub_ext2_dir): Likewise.
31486 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
31487 * script/sh/lexer.c (grub_script_yylex): Likewise.
31489 2009-07-16 Pavel Roskin <proski@gnu.org>
31491 * configure.ac: Never add "-c" to CFLAGS.
31493 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
31495 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
31496 grub_cv_cc_efiemu should be used.
31498 * configure.ac: Typo fixes.
31500 * kern/mm.c (grub_zalloc): New function.
31501 (grub_debug_zalloc): Likewise.
31502 * include/grub/mm.h: Declare grub_zalloc() and
31503 grub_debug_zalloc().
31504 * util/misc.c (grub_zalloc): New function.
31505 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
31506 instead of grub_malloc(), remove unneeded initializations.
31507 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
31508 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
31509 * commands/parttool.c (grub_cmd_parttool): Likewise.
31510 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
31511 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
31512 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
31513 * disk/usbms.c (grub_usbms_finddevs): Likewise.
31514 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
31515 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
31516 (grub_cmd_efiemu_pnvram): Likewise.
31517 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
31518 * fs/iso9660.c (grub_iso9660_mount): Likewise.
31519 (grub_iso9660_iterate_dir): Likewise.
31520 * fs/jfs.c (grub_jfs_opendir): Likewise.
31521 * fs/ntfs.c (list_file): Likewise.
31522 (grub_ntfs_mount): Likewise.
31523 * kern/disk.c (grub_disk_open): Likewise.
31524 * kern/dl.c (grub_dl_load_core): Likewise.
31525 * kern/elf.c (grub_elf_file): Likewise.
31526 * kern/env.c (grub_env_context_open): Likewise.
31527 (grub_env_set): Likewise.
31528 (grub_env_set_data_slot): Likewise.
31529 * kern/file.c (grub_file_open): Likewise.
31530 * kern/fs.c (grub_fs_blocklist_open): Likewise.
31531 * loader/i386/multiboot.c (grub_module): Likewise.
31532 * loader/xnu.c (grub_xnu_create_key): Likewise.
31533 (grub_xnu_create_value): Likewise.
31534 * normal/main.c (grub_normal_add_menu_entry): Likewise.
31535 (read_config_file): Likewise.
31536 * normal/menu_entry.c (make_screen): Likewise.
31537 * partmap/sun.c (sun_partition_map_iterate): Likewise.
31538 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
31539 * script/sh/script.c (grub_script_parse): Likewise.
31540 * video/bitmap.c (grub_video_bitmap_create): Likewise.
31541 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
31542 * video/readers/png.c (grub_png_output_byte): Likewise.
31543 (grub_video_reader_png): Likewise.
31545 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
31547 Enable all targets that can be built by default
31549 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
31550 grub-mkfont and grub-fstest if they can be built
31552 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
31554 Fix hang and segmentation fault in grub-emu-usb
31556 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
31557 * util/usb.c (grub_libusb_devices): likewise
31558 (grub_libusb_init): rename to ...
31559 (GRUB_MOD_INIT (libusb)):...this
31560 (grub_libusb_fini): rename to ..
31561 (GRUB_MOD_FINI (libusb)):...this
31562 * disk/usbms.c (grub_usbms_transfer): fix retry logic
31563 * include/grub/disk.h (grub_raid_init): removed, it's useless
31564 (grub_raid_fini): likewise
31565 (grub_lvm_init): likewise
31566 (grub_lvm_fini): likewise
31567 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
31570 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
31574 * Makefile.in (LIBUSB): new macro
31575 * genmk.rb (Utility/print_tail): new method
31576 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
31577 (top level): call util.print_tail at the end.
31579 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
31581 Make FreeBSD accept zpool.cache
31583 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
31584 type is /boot/zfs/zpool.cache
31586 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
31590 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
31591 correct wrong typedef
31592 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
31594 2009-07-15 Pavel Roskin <proski@gnu.org>
31596 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
31597 * kern/disk.c (struct grub_disk_cache): Likewise.
31599 * commands/probe.c (options): Typo fix.
31601 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
31602 Increase to 0x5a to accommodate FAT32. Adjust other offsets
31604 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
31606 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
31607 the end of "Error" to make the message more readable.
31609 * boot/i386/pc/boot.S (kernel_segment): Remove.
31610 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
31613 * boot/i386/pc/boot.S (boot_version): Remove.
31614 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
31617 * include/grub/i386/pc/boot.h: Sort all offsets.
31618 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
31619 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
31620 * boot/i386/pc/boot.S: Assert location of every offset listed in
31621 include/grub/i386/pc/boot.h.
31623 2009-07-13 Pavel Roskin <proski@gnu.org>
31625 * include/grub/i386/coreboot/machine.h: Rename
31626 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
31627 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
31628 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
31630 * kern/dl.c: Force native word size to suppress warnings when
31631 compiling grub-emu.
31633 * kern/device.c (grub_device_iterate): Change struct part_ent to
31634 hold the name, not a pointer to it. Use one grub_malloc() per
31635 partition, not two. Free partition_name if grub_malloc() fails.
31636 Set ents to NULL only before grub_partition_iterate() is called.
31638 2009-07-11 Bean <bean123ch@gmail.com>
31640 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
31643 2009-07-10 Bean <bean123ch@gmail.com>
31644 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
31646 * kern/ieee1275/openfw.c (grub_children_iterate)
31647 (grub_devalias_iterate): Fix size evaluation for property or path
31648 strings, which was broken since r2132.
31650 2009-07-07 Pavel Roskin <proski@gnu.org>
31652 * commands/search.c (search_file): Merge into ...
31653 (search_fs): ... this. Accept search type as argument.
31654 (grub_cmd_search): Pass search type to search_fs().
31656 * include/grub/util/console.h: New file.
31657 * util/console.c: Use it instead of grub/machine/console.h.
31658 * util/grub-emu.c: Likewise.
31660 * lib/arg.c (find_long_option): Remove.
31661 (find_long): Add `len' argument, make `s' const char *.
31662 (grub_arg_parse): Parse long options in place, not in a
31665 2009-07-06 Pavel Roskin <proski@gnu.org>
31667 * commands/search.c (search_fs): Fix potential NULL pointer
31670 * commands/search.c (search_fs): Replace QUID macro with quid_fn
31673 2009-07-06 Daniel Mierswa <impulze@impulze.org>
31675 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
31678 2009-07-05 Pavel Roskin <proski@gnu.org>
31680 * include/grub/i386/linux.h (struct linux_kernel_params):
31681 Restore padding3, it's still needed.
31683 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
31685 * util/osdetect.lua: Likewise.
31687 2009-07-05 Bean <bean123ch@gmail.com>
31689 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
31691 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
31692 (grub_lua_getenv): Likewise.
31693 (grub_lua_setenv): Likewise.
31694 (save_errno): New function.
31695 (push_result): Likewise.
31696 (grub_lua_enum_device): Likewise.
31697 (grub_lua_enum_file): Likewise.
31698 (grub_lua_file_open): Likewise.
31699 (grub_lua_file_close): Likewise.
31700 (grub_lua_file_seek): Likewise.
31701 (grub_lua_file_read): Likewise.
31702 (grub_lua_file_getline): Likewise.
31703 (grub_lua_file_getsize): Likewise.
31704 (grub_lua_file_getpos): Likewise.
31705 (grub_lua_file_eof): Likewise.
31706 (grub_lua_file_exist): Likewise.
31707 (grub_lua_add_menu): Likewise.
31709 * script/lua/grub_lua.h (isupper): New inline function.
31710 (islower): Likewise.
31711 (ispunct): Likewise.
31712 (isxdigit): Likewise.
31713 (strcspn): Change to normal function.
31714 (strpbkr): New function declaration.
31715 (memchr): Likewise.
31717 * script/lua/grub_main.c (scan_str): New function.
31718 (strcspn): Likewise.
31719 (strpbrk): Likewise.
31720 (memchr): Likewise.
31722 * script/lua/linit.c (lualibs): Enable the string library.
31724 * util/osdetect.lua: New file.
31726 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
31728 * include/grub/i386/linux.h (struct linux_kernel_params): Add
31729 `capabilities' member.
31731 2009-07-02 Pavel Roskin <proski@gnu.org>
31733 * genparttoollist.sh: Add missing newline at the end.
31735 2009-07-01 Pavel Roskin <proski@gnu.org>
31737 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
31739 * util/hostdisk.c (open_device): Remove `const' from
31740 `sysctl_size', as sysctlbyname() can change it (in this case it
31741 doesn't actually happen).
31743 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
31744 using signed long int constants.
31746 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
31747 constant to avoid a warning on FreeBSD.
31749 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
31752 * Makefile.in: Install include/grub/machine symlink.
31754 * Makefile.in: When installing symlinks, use "cp -fR", which
31755 works on FreeBSD and MacOSX.
31756 From Yves Blusseau <cl7m42e02@sneakemail.com>
31758 * kern/dl.c (grub_dl_resolve_symbol): Make static.
31759 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
31761 * util/misc.c: Move grub_reboot() and grub_halt() ...
31762 * util/grub-emu.c: ... here. Make main_env static.
31763 * include/grub/util/misc.h: Remove main_env.
31765 * kern/mm.c: Use correct format to print size_t.
31767 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
31768 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
31769 * kern/powerpc/dl.c: Likewise.
31770 * kern/sparc64/dl.c: Likewise.
31771 * kern/x86_64/dl.c: Likewise.
31773 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31775 Fix grub-emu build on sparc64-ieee1275.
31777 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
31778 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
31780 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31782 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
31783 (grub_reboot, grub_halt): New functions.
31785 * util/i386/pc/misc.c: Delete. Update all users.
31786 * util/sparc64/ieee1275/misc.c: Likewise.
31787 * util/powerpc/ieee1275/misc.c: Likewise.
31789 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31791 * conf/i386.rmk (setjmp_mod_SOURCES)
31792 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
31793 * conf/common.rmk (setjmp_mod_SOURCES)
31794 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
31795 to use $(target_cpu).
31796 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
31797 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
31798 * conf/powerpc-ieee1275.rmk: Likewise.
31799 * conf/sparc64-ieee1275.rmk: Likewise.
31801 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
31802 $(target_cpu) for kern/$(target_cpu)/dl.c.
31803 * conf/i386-efi.rmk: Likewise.
31804 * conf/i386-ieee1275.rmk: Likewise.
31805 * conf/x86_64-efi.rmk: Likewise.
31806 * conf/i386-coreboot.rmk: Likewise.
31807 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
31808 $(target_cpu) for kern/$(target_cpu)/dl.c and for
31809 kern/$(target_cpu)/cache.S.
31810 * conf/sparc64-ieee1275.rmk: Likewise.
31812 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31814 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
31815 type to `grub_uint8_t', and adjust `padding9' accordingly.
31817 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
31819 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
31821 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
31822 assembly in final jump, using register constraints.
31824 (grub_linux_boot): For text mode, initialize `have_vga' using
31825 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
31827 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
31828 right before the final jump.
31830 Set `video_mode' to 0x3.
31832 Document initialization of `video_page', `video_mode' and
31835 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
31837 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
31838 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
31839 and set GRUB_LINUX_FLAG_QUIET appropriately.
31841 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
31843 Fix build on Debian / sparc.
31845 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
31847 2009-06-28 Pavel Roskin <proski@gnu.org>
31849 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
31852 * util/grub.d/10_linux.in: Match SUSE style initrd names.
31854 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
31856 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
31859 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
31863 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
31864 file can't be opened. grub_file_open() is already supposed to set
31865 grub_errno / grub_errmsg appropriately.
31866 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
31868 2009-06-27 Pavel Roskin <proski@gnu.org>
31869 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
31871 * include/grub/dl.h: Include grub/elf.h.
31872 (struct grub_dl): Add symtab field.
31873 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
31874 GRUB_MODULES_MACHINE_READONLY.
31875 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
31876 of the header for read-only modules.
31877 (grub_dl_unload): Free mod->symtab for read-only modules.
31878 * kern/i386/dl.c: Use mod->symtab.
31879 * kern/powerpc/dl.c: Likewise.
31880 * kern/sparc64/dl.c: Likewise.
31881 * kern/x86_64/dl.c: Likewise.
31883 * conf/i386-qemu.rmk: New file.
31884 * kern/i386/qemu/startup.S: Likewise.
31885 * kern/i386/qemu/mmap.c: Likewise.
31886 * boot/i386/qemu/boot.S: Likewise.
31887 * include/grub/i386/qemu/time.h: Likewise.
31888 * include/grub/i386/qemu/serial.h: Likewise.
31889 * include/grub/i386/qemu/kernel.h: Likewise.
31890 * include/grub/i386/qemu/console.h: Likewise.
31891 * include/grub/i386/qemu/boot.h: Likewise.
31892 * include/grub/i386/qemu/init.h: Likewise.
31893 * include/grub/i386/qemu/machine.h: Likewise.
31894 * include/grub/i386/qemu/loader.h: Likewise.
31895 * include/grub/i386/qemu/memory.h: Likewise.
31897 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
31898 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
31899 [qemu] (pkglib_IMAGES): Add `boot.img'.
31900 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
31901 [qemu] (boot_img_FORMAT): New variables.
31902 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
31903 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
31904 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
31905 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31906 [qemu] (kernel_img_FORMAT): New variables.
31908 * configure.ac: Recognise `i386-qemu'.
31910 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
31911 (for no compression).
31912 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
31913 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
31914 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
31915 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
31918 2009-06-27 Pavel Roskin <proski@gnu.org>
31920 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
31922 * efiemu/prepare32.c: Likewise.
31923 * efiemu/prepare64.c: Likewise.
31925 2009-06-26 Pavel Roskin <proski@gnu.org>
31927 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
31928 * include/grub/elf.h: Define symbols without "32" or "64" based
31929 on GRUB_TARGET_WORDSIZE.
31930 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
31931 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
31933 * efiemu/loadcore64.c: Likewise.
31934 * loader/i386/bsd32.c: Likewise.
31935 * loader/i386/bsd64.c: Likewise.
31936 * kern/dl.c: Remove own ELF definitions.
31937 * util/i386/efi/grub-mkimage.c: Likewise.
31939 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
31941 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
31942 segment 0x0 unconditionally, because the reference generated by
31943 GAS is an absolute address.
31945 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31947 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
31948 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
31950 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31952 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
31953 indexes. Check for -f explicitly.
31954 (search_file): Improve error message.
31955 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
31957 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31959 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
31960 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
31962 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31964 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
31965 * conf/i386-ieee1275.rmk: Likewise.
31966 * conf/i386-coreboot.rmk: Likewise.
31968 * kern/i386/pc/startup.S (grub_stop): Remove function.
31969 * kern/i386/ieee1275/startup.S: Likewise.
31970 * kern/i386/coreboot/startup.S: Likewise.
31971 * kern/i386/misc.S (grub_stop): New function.
31973 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31975 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
31976 * kern/i386/realmode.S (real_to_prot): ... to here.
31978 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31980 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
31982 (kernel_elf_SOURCES): Rename to ...
31983 (kernel_img_SOURCES): ... this.
31984 (kernel_elf_HEADERS): Rename to ...
31985 (kernel_img_HEADERS): ... this. Update all users.
31986 (kernel_elf_ASFLAGS): Rename to ...
31987 (kernel_img_ASFLAGS): ... this.
31988 (kernel_elf_CFLAGS): Rename to ...
31989 (kernel_img_CFLAGS): ... this.
31990 (kernel_elf_LDFLAGS): Rename to ...
31991 (kernel_img_LDFLAGS): ... this.
31992 * conf/i386-coreboot.rmk: Likewise.
31993 * conf/powerpc-ieee1275.rmk: Likewise.
31995 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
31998 2009-06-21 Pavel Roskin <proski@gnu.org>
32000 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
32001 to match nested functions.
32002 * loader/sparc64/ieee1275/linux.c: Likewise.
32004 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
32006 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
32008 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
32009 all i386 platforms.
32011 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
32013 Fix asm file handling on ELF, and remove workarounds.
32015 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
32016 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
32017 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
32018 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
32020 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
32022 Load BSD ELF modules
32024 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
32025 and loader/i386/bsd64.c
32026 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
32027 (FREEBSD_MODTYPE_ELF_MODULE): New definition
32028 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
32029 (grub_freebsd_load_elfmodule32): New declaration
32030 (grub_freebsd_load_elfmoduleobj64): Likewise
32031 (grub_freebsd_load_elf_meta32): Likewise
32032 (grub_freebsd_load_elf_meta64): Likewise
32033 (grub_freebsd_add_meta): Likewise
32034 (grub_freebsd_add_meta_module): Likewise
32035 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
32036 (grub_freebsd_add_meta_module): Likewise and move module-specific
32037 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
32038 (grub_cmd_freebsd): Add elf-kernel specific parts
32039 based on grub_freebsd_add_meta_module
32040 (grub_cmd_freebsd_module): Add type parsing moved from
32041 grub_freebsd_add_meta_module
32042 (grub_cmd_freebsd_module_elf): New function
32043 (cmd_freebsd_module_elf): New variable
32044 (GRUB_MOD_INIT): Register freebsd_module_elf
32045 * loader/i386/bsd32.c: New file
32046 * loader/i386/bsd64.c: Likewise
32047 * loader/i386/bsdXX.c: Likewise
32048 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
32049 (grub_elf64_load): Likewise
32050 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
32052 (grub_elf64_load_hook_t): Likewise
32054 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
32056 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
32058 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
32059 don't write a menu entry for recovery mode.
32061 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
32063 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
32064 after it's no longer needed.
32066 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
32068 * include/grub/i386/loader.h (grub_linux_prot_size)
32069 (grub_linux_tmp_addr, grub_linux_real_addr)
32070 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
32071 GRUB_MACHINE_PCBIOS.
32072 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
32073 common grub_util_info() call to ...
32074 (generate_image): ... here.
32075 Fix use of uninitialized memory, comparison of signed with
32076 unsigned integers and memory leak.
32077 Remove bogus module address message.
32079 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
32081 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
32083 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
32085 2009-06-19 Pavel Roskin <proski@gnu.org>
32087 * configure.ac: Remove stray AC_MSG_CHECKING.
32089 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
32091 * disk/scsi.c (grub_scsi_open): use continue instead of big if
32093 2009-06-18 Pavel Roskin <proski@gnu.org>
32095 * conf/common.rmk: Add fs_file.mod.
32096 * disk/fs_file.c: New file.
32097 * include/grub/disk.h (enum grub_disk_dev_id): Add
32098 GRUB_DISK_DEVICE_FILE_ID.
32100 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
32102 Fix build with Apple's toolchain. Part 2
32104 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
32107 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
32109 Fix build with Apple's toolchain. Part 1
32111 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
32113 * configure.ac: remove a leftover AC_MSG_RESULT
32114 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
32117 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
32121 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
32122 (decomp_block): initialize ch
32123 use grub_memcpy instead of memcpy
32125 2009-06-17 Pavel Roskin <proski@gnu.org>
32127 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
32128 version, use declarations needed to use vga_text as the startup
32131 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
32132 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
32134 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
32135 and grub_at_keyboard_fini(), it's done on module load and
32138 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
32140 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
32141 file can't be found.
32142 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
32144 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
32146 Fix newline handling
32148 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
32149 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
32150 (grub_script_yylex): don't segfault on unterminated script
32151 newline terminates command and variable
32153 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
32155 avoid double grub_adjust_range call. Bug reported by David Simner
32157 * kern/disk.c (grub_disk_write): change to raw disk access before
32160 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
32162 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
32163 spaces, for the benefit of help2man.
32164 * util/i386/efi/grub-mkimage.c (usage): Likewise.
32166 2009-06-16 Pavel Roskin <proski@gnu.org>
32168 * kern/i386/halt.c: Include grub/machine/init.h.
32169 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
32171 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
32173 * util/grub.d/30_os-prober.in: Use ${root} in the generated
32174 drivemap menuentry.
32176 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
32178 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
32181 2009-06-16 Pavel Roskin <proski@gnu.org>
32183 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
32184 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
32185 save %dx, we only need %dl and we never change it.
32186 * boot/i386/pc/cdboot.S: Don't set the root drive.
32187 * boot/i386/pc/pxeboot.S: Likewise.
32188 * include/grub/i386/pc/boot.h: Remove
32189 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
32190 GRUB_BOOT_MACHINE_DRIVE_CHECK.
32191 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
32192 * kern/i386/pc/init.c (make_install_device): Remove references
32193 to grub_root_drive.
32194 * kern/i386/pc/startup.S: Likewise.
32195 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
32197 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
32201 * commands/xnu_uuid.c: new file
32202 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
32203 (xnu_uuid_mod_SOURCES): new variable
32204 (xnu_uuid_mod_CFLAGS): likewise
32205 (xnu_uuid_mod_LDFLAGS): likewise
32206 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
32207 * conf/i386-ieee1275.rmk: likewise
32208 * conf/i386-pc.rmk: likewise
32209 * conf/powerpc-ieee1275.rmk: likewise
32210 * conf/sparc64-ieee1275.rmk: likewise
32211 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
32213 2009-06-16 Pavel Roskin <proski@gnu.org>
32215 * configure.ac: Avoid '==' in test command, it's not portable.
32217 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
32221 * commands/probe.c: new file
32222 * conf/common.rmk (pkglib_MODULES): add probe.mod
32223 (probe_mod_SOURCES): new variable
32224 (probe_mod_CFLAGS): likewise
32225 (probe_mod_LDFLAGS): likewise
32226 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
32227 * conf/i386-ieee1275.rmk: likewise
32228 * conf/i386-pc.rmk: likewise
32229 * conf/powerpc-ieee1275.rmk: likewise
32230 * conf/sparc64-ieee1275.rmk: likewise
32232 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
32234 Fix handling of string like \"hello\" and "a
32237 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
32238 (grub_script_yylex): fix parsing of quoting, escaping and newline
32240 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
32242 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
32245 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
32247 * util/grub-mkconfig.in: Fix parsing of --output option.
32249 2009-06-12 Pavel Roskin <proski@gnu.org>
32251 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
32252 genmk.rb don't need to be generated or installed.
32254 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
32256 * commands/i386/pc/drivemap_int13h.S: add more comments
32258 2009-06-11 Pavel Roskin <proski@gnu.org>
32260 * Makefile.in (uninstall): Uninstall manuals.
32262 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
32263 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
32264 and update-grub_lib in two places.
32265 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
32267 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
32268 a compiler warning.
32270 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
32271 `entry_lo' to fix variable shadowing.
32273 2009-06-11 Christian Franke <franke@computer.org>
32275 * kern/misc.c (__enable_execute_stack): Add missing return type
32276 to prevent gcc warning.
32278 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
32280 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
32282 2009-06-11 Pavel Roskin <proski@gnu.org>
32284 * Makefile.in: Don't rely on any scripts being executable.
32285 Always use $(SHELL) to run shell scripts.
32287 * configure.ac: Always define ___main if using -nostdlib. This
32288 fixes tests on Cygwin.
32290 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
32294 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
32295 is in bytes and not in blocks
32297 2009-06-11 Pavel Roskin <proski@gnu.org>
32299 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
32302 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
32304 * util/grub.d/30_os-prober.in: Fix a comment. Source
32305 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
32306 to set the root device. Place drivemap command in the generated
32309 2009-06-11 Pavel Roskin <proski@gnu.org>
32311 * configure.ac: Remove host_m32. Issues with 64-bit utilities
32312 have long been resolved.
32314 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
32316 * util/grub.d/10_linux.in: Capitalise "Linux".
32318 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
32320 2009-06-11 Pavel Roskin <proski@gnu.org>
32322 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
32323 fix a gcc warning and ensure that the function won't ever exit.
32325 * kern/i386/ieee1275/init.c: Add missing prototype for
32326 grub_stop_floppy().
32328 * loader/ieee1275/multiboot2.c [__i386__]: Include
32329 grub/cpu/multiboot.h.
32331 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
32332 casts to short - they are not portable and cause warnings. Fix
32333 use of uninitialized values in input_buf. Use ARRAY_SIZE.
32335 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
32339 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
32341 (grub_get_root_biosnumber_saved): new variable
32342 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
32343 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
32344 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
32345 %dx after the call if necessary
32346 * conf/common.rmk (pkglib_MODULES): remove boot.mod
32347 (boot_mod_SOURCES): remove
32348 (boot_mod_CFLAGS): remove
32349 (boot_mod_LDFLAGS): remove
32350 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
32351 (boot_mod_SOURCES): new variable
32352 (boot_mod_CFLAGS): likewise
32353 (boot_mod_LDFLAGS): likewise
32354 * conf/i386-efi.rmk: likewise
32355 * conf/i386-ieee1275.rmk: likewise
32356 * conf/i386-pc.rmk: likewise
32357 * conf/powerpc-ieee1275.rmk: likewise
32358 * conf/sparc64-ieee1275.rmk: likewise
32359 * conf/x86_64-efi.rmk: likewise
32360 * include/grub/i386/pc/biosnum.h: new file
32361 * lib/i386/pc/biosnum.c: likewise
32362 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
32363 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
32364 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
32366 2009-06-10 Pavel Roskin <proski@gnu.org>
32368 * io/gzio.c (test_header): Don't reuse one buffer for all data.
32369 Use separate variables. Read only the file size at the end, but
32370 not the checksum that we don't use.
32372 * kern/file.c (grub_file_read): Use void pointer for the buffer.
32373 Adjust all callers.
32375 * kern/ieee1275/openfw.c: Remove libc includes.
32376 * kern/ieee1275/cmain.c: Likewise.
32377 * include/grub/ieee1275/ieee1275.h: Likewise.
32379 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
32382 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
32384 * Makefile.in: Remove all trailing whitespace.
32385 * conf/i386-pc.rmk: Likewise.
32386 * conf/powerpc-ieee1275.rmk: Likewise.
32387 * conf/sparc64-ieee1275.rmk: Likewise.
32388 * docs/grub.texi: Likewise.
32389 * docs/texinfo.tex: Likewise.
32390 * disk/fs_uuid.c: Likewise.
32391 * disk/lvm.c: Likewise.
32392 * disk/scsi.c: Likewise.
32393 * disk/ata.c: Likewise.
32394 * disk/ieee1275/ofdisk.c: Likewise.
32395 * disk/i386/pc/biosdisk.c: Likewise.
32396 * disk/host.c: Likewise.
32397 * disk/raid.c: Likewise.
32398 * disk/efi/efidisk.c: Likewise.
32399 * disk/usbms.c: Likewise.
32400 * disk/memdisk.c: Likewise.
32401 * disk/loopback.c: Likewise.
32402 * kern/powerpc/dl.c: Likewise.
32403 * kern/device.c: Likewise.
32404 * kern/dl.c: Likewise.
32405 * kern/sparc64/dl.c: Likewise.
32406 * kern/ieee1275/ieee1275.c: Likewise.
32407 * kern/term.c: Likewise.
32408 * kern/fs.c: Likewise.
32409 * kern/i386/dl.c: Likewise.
32410 * kern/i386/pc/startup.S: Likewise.
32411 * kern/i386/pc/init.c: Likewise.
32412 * kern/i386/pc/mmap.c: Likewise.
32413 * kern/i386/pc/lzo1x.S: Likewise.
32414 * kern/i386/ieee1275/init.c: Likewise.
32415 * kern/i386/realmode.S: Likewise.
32416 * kern/i386/tsc.c: Likewise.
32417 * kern/partition.c: Likewise.
32418 * kern/corecmd.c: Likewise.
32419 * kern/file.c: Likewise.
32420 * kern/efi/efi.c: Likewise.
32421 * kern/efi/init.c: Likewise.
32422 * kern/efi/mm.c: Likewise.
32423 * kern/main.c: Likewise.
32424 * kern/err.c: Likewise.
32425 * kern/env.c: Likewise.
32426 * kern/disk.c: Likewise.
32427 * kern/generic/millisleep.c: Likewise.
32428 * kern/generic/rtc_get_time_ms.c: Likewise.
32429 * kern/misc.c: Likewise.
32430 * kern/parser.c: Likewise.
32431 * genmk.rb: Likewise.
32432 * configure.ac: Likewise.
32433 * boot/i386/pc/diskboot.S: Likewise.
32434 * boot/i386/pc/pxeboot.S: Likewise.
32435 * boot/i386/pc/boot.S: Likewise.
32436 * boot/i386/pc/lnxboot.S: Likewise.
32437 * boot/i386/pc/cdboot.S: Likewise.
32438 * parttool/pcpart.c: Likewise.
32439 * video/readers/tga.c: Likewise.
32440 * video/video.c: Likewise.
32441 * video/bitmap.c: Likewise.
32442 * lib/envblk.c: Likewise.
32443 * lib/i386/setjmp.S: Likewise.
32444 * fs/xfs.c: Likewise.
32445 * fs/afs.c: Likewise.
32446 * fs/fat.c: Likewise.
32447 * fs/ntfs.c: Likewise.
32448 * fs/udf.c: Likewise.
32449 * fs/affs.c: Likewise.
32450 * fs/iso9660.c: Likewise.
32451 * fs/hfs.c: Likewise.
32452 * fs/fshelp.c: Likewise.
32453 * fs/ext2.c: Likewise.
32454 * fs/jfs.c: Likewise.
32455 * fs/reiserfs.c: Likewise.
32456 * fs/hfsplus.c: Likewise.
32457 * fs/minix.c: Likewise.
32458 * fs/cpio.c: Likewise.
32459 * fs/sfs.c: Likewise.
32460 * fs/ufs.c: Likewise.
32461 * efiemu/prepare.c: Likewise.
32462 * efiemu/loadcore_common.c: Likewise.
32463 * efiemu/runtime/efiemu.sh: Likewise.
32464 * efiemu/runtime/efiemu.S: Likewise.
32465 * efiemu/runtime/efiemu.c: Likewise.
32466 * efiemu/pnvram.c: Likewise.
32467 * efiemu/main.c: Likewise.
32468 * efiemu/i386/pc/cfgtables.c: Likewise.
32469 * efiemu/i386/loadcore64.c: Likewise.
32470 * efiemu/i386/loadcore32.c: Likewise.
32471 * efiemu/loadcore.c: Likewise.
32472 * efiemu/symbols.c: Likewise.
32473 * efiemu/mm.c: Likewise.
32474 * include/grub/autoefi.h: Likewise.
32475 * include/grub/datetime.h: Likewise.
32476 * include/grub/term.h: Likewise.
32477 * include/grub/hfs.h: Likewise.
32478 * include/grub/lvm.h: Likewise.
32479 * include/grub/i386/tsc.h: Likewise.
32480 * include/grub/i386/linux.h: Likewise.
32481 * include/grub/i386/xnu.h: Likewise.
32482 * include/grub/i386/efiemu.h: Likewise.
32483 * include/grub/i386/pc/biosdisk.h: Likewise.
32484 * include/grub/i386/pc/memory.h: Likewise.
32485 * include/grub/i386/pc/vbe.h: Likewise.
32486 * include/grub/parttool.h: Likewise.
32487 * include/grub/video.h: Likewise.
32488 * include/grub/memory.h: Likewise.
32489 * include/grub/fs.h: Likewise.
32490 * include/grub/partition.h: Likewise.
32491 * include/grub/xnu.h: Likewise.
32492 * include/grub/efi/api.h: Likewise.
32493 * include/grub/efi/pe32.h: Likewise.
32494 * include/grub/efi/memory.h: Likewise.
32495 * include/grub/multiboot.h: Likewise.
32496 * include/grub/usbdesc.h: Likewise.
32497 * include/grub/multiboot2.h: Likewise.
32498 * include/grub/acpi.h: Likewise.
32499 * include/grub/efiemu/efiemu.h: Likewise.
32500 * include/grub/disk.h: Likewise.
32501 * include/grub/ieee1275/ieee1275.h: Likewise.
32502 * include/grub/net.h: Likewise.
32503 * include/grub/machoload.h: Likewise.
32504 * include/grub/macho.h: Likewise.
32505 * include/multiboot.h: Likewise.
32506 * genmoddep.awk: Likewise.
32507 * normal/main.c: Likewise.
32508 * normal/menu_entry.c: Likewise.
32509 * normal/menu_viewer.c: Likewise.
32510 * normal/completion.c: Likewise.
32511 * normal/cmdline.c: Likewise.
32512 * normal/misc.c: Likewise.
32513 * normal/datetime.c: Likewise.
32514 * bus/usb/usbtrans.c: Likewise.
32515 * bus/usb/ohci.c: Likewise.
32516 * bus/usb/uhci.c: Likewise.
32517 * bus/usb/usb.c: Likewise.
32518 * mmap/efi/mmap.c: Likewise.
32519 * mmap/i386/pc/mmap_helper.S: Likewise.
32520 * mmap/i386/pc/mmap.c: Likewise.
32521 * mmap/i386/mmap.c: Likewise.
32522 * mmap/i386/uppermem.c: Likewise.
32523 * mmap/mmap.c: Likewise.
32524 * commands/acpi.c: Likewise.
32525 * commands/echo.c: Likewise.
32526 * commands/blocklist.c: Likewise.
32527 * commands/loadenv.c: Likewise.
32528 * commands/usbtest.c: Likewise.
32529 * commands/boot.c: Likewise.
32530 * commands/parttool.c: Likewise.
32531 * commands/search.c: Likewise.
32532 * commands/cat.c: Likewise.
32533 * commands/i386/pc/play.c: Likewise.
32534 * commands/i386/pc/drivemap.c: Likewise.
32535 * commands/i386/pc/vbeinfo.c: Likewise.
32536 * commands/i386/pc/acpi.c: Likewise.
32537 * commands/i386/pc/vbetest.c: Likewise.
32538 * commands/ls.c: Likewise.
32539 * commands/cmp.c: Likewise.
32540 * commands/test.c: Likewise.
32541 * commands/efi/acpi.c: Likewise.
32542 * commands/gptsync.c: Likewise.
32543 * commands/help.c: Likewise.
32544 * partmap/amiga.c: Likewise.
32545 * partmap/apple.c: Likewise.
32546 * partmap/acorn.c: Likewise.
32547 * partmap/pc.c: Likewise.
32548 * partmap/sun.c: Likewise.
32549 * partmap/gpt.c: Likewise.
32550 * script/sh/lexer.c: Likewise.
32551 * script/sh/function.c: Likewise.
32552 * font/font.c: Likewise.
32553 * font/font_cmd.c: Likewise.
32554 * loader/powerpc/ieee1275/linux.c: Likewise.
32555 * loader/efi/chainloader.c: Likewise.
32556 * loader/multiboot_loader.c: Likewise.
32557 * loader/macho.c: Likewise.
32558 * loader/i386/multiboot.c: Likewise.
32559 * loader/i386/linux.c: Likewise.
32560 * loader/i386/pc/linux.c: Likewise.
32561 * loader/i386/pc/multiboot2.c: Likewise.
32562 * loader/i386/pc/chainloader.c: Likewise.
32563 * loader/i386/pc/xnu.c: Likewise.
32564 * loader/i386/bsd_trampoline.S: Likewise.
32565 * loader/i386/efi/linux.c: Likewise.
32566 * loader/i386/multiboot_elfxx.c: Likewise.
32567 * loader/i386/bsd_helper.S: Likewise.
32568 * loader/i386/bsd.c: Likewise.
32569 * loader/i386/linux_trampoline.S: Likewise.
32570 * loader/i386/xnu_helper.S: Likewise.
32571 * loader/i386/xnu.c: Likewise.
32572 * loader/i386/bsd_pagetable.c: Likewise.
32573 * loader/i386/multiboot_helper.S: Likewise.
32574 * loader/xnu.c: Likewise.
32575 * loader/xnu_resume.c: Likewise.
32576 * io/gzio.c: Likewise.
32577 * term/efi/console.c: Likewise.
32578 * term/terminfo.c: Likewise.
32579 * term/ieee1275/ofconsole.c: Likewise.
32580 * term/i386/pc/serial.c: Likewise.
32581 * term/i386/pc/vesafb.c: Likewise.
32582 * term/i386/pc/vga.c: Likewise.
32583 * term/usb_keyboard.c: Likewise.
32584 * term/gfxterm.c: Likewise.
32585 * aclocal.m4: Likewise.
32586 * util/lvm.c: Likewise.
32587 * util/grub.d/30_os-prober.in: Likewise.
32588 * util/grub.d/10_hurd.in: Likewise.
32589 * util/console.c: Likewise.
32590 * util/grub-macho2img.c: Likewise.
32591 * util/grub-probe.c: Likewise.
32592 * util/hostfs.c: Likewise.
32593 * util/i386/pc/grub-mkimage.c: Likewise.
32594 * util/i386/pc/grub-setup.c: Likewise.
32595 * util/i386/efi/grub-mkimage.c: Likewise.
32596 * util/grub-mkconfig.in: Likewise.
32597 * util/raid.c: Likewise.
32598 * util/resolve.c: Likewise.
32599 * util/grub-mkdevicemap.c: Likewise.
32600 * util/grub-emu.c: Likewise.
32601 * util/getroot.c: Likewise.
32602 * util/hostdisk.c: Likewise.
32603 * util/usb.c: Likewise.
32604 * util/grub-editenv.c: Likewise.
32605 * util/misc.c: Likewise.
32607 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
32609 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
32610 `genparttoollist.sh'.
32611 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
32612 Add `*.sh' to the list find searches for and change `mdate.sh'
32615 2009-06-10 Pavel Roskin <proski@gnu.org>
32617 * include/grub/multiboot2.h: Provide compatibility defines for
32619 * include/multiboot2.h: Include stdint.h only if needed, using
32621 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
32623 * loader/ieee1275/multiboot2.c: Likewise.
32624 * loader/multiboot2.c: Likewise.
32625 * loader/multiboot_loader.c: Likewise.
32627 * configure.ac: Use -nostdlib when probing for the target. It
32628 should not be required to have libc for the target.
32630 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
32631 they fail without libc headers for the target.
32632 * include/grub/powerpc/libgcc.h: Use weak attribute for all
32634 * include/grub/sparc64/libgcc.h: Likewise. Don't use
32635 preprocessor conditionals.
32637 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
32638 build system doesn't need to be aware of the tar.c internals.
32640 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
32642 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
32644 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
32646 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
32647 disk limit to 26 for IDE, Virtio, Xen and SCSI.
32649 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
32651 * util/i386/pc/grub-install.in: Change the error message if UUIDs
32652 aren't available if ata.mod gets used.
32654 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
32656 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
32657 initialising controller.
32658 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32660 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
32662 * util/i386/pc/grub-install.in: Add a parameter --disk-module
32663 to choose between ata and biosdisk module on i386-pc.
32665 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
32667 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
32668 Subclass and Programming Interface fields in terms of the 3 byte
32669 Class Code register.
32670 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32672 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
32673 interface is OHCI. Add grub_dprintf for symmetry with
32675 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
32676 interface is UHCI. Add interf variable for programming
32677 interface. Print interface with class/subclass.
32679 * bus/usb/ohci.c: Set interf with correct field.
32681 * bus/usb/uhci.c: Remove unneeded doubled lines.
32682 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
32683 Remove whitespace inside comment.
32685 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
32687 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
32688 as fallback an equivalent option without depth.
32690 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
32692 Not fail if unable to retrieve C/H/S on LBA disks
32694 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
32695 if unable to retrieve C/H/S on LBA disks
32697 2009-06-08 Pavel Roskin <proski@gnu.org>
32699 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
32702 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
32704 * Makefile.in (uninstall): Remove all $lib_DATA files.
32706 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
32708 Bugfix: install on partitionless device
32710 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
32713 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
32715 * Makefile.in (uninstall): Remove all $include_DATA files.
32717 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
32719 * commands/true.c: New file. Implement the true and false commands.
32720 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
32721 (true_mod_SOURCES): New variable.
32722 (true_mod_CFLAGS): Likewise.
32723 (true_mod_LDFLAGS): Likewise.
32725 2009-06-05 Colin D Bennett <colin@gibibit.com>
32727 Optimized font character lookup using binary search instead of linear
32728 search. Fonts now are required to have the character index ordered by
32731 * font/font.c (load_font_index): Verify that fonts have ordered
32733 (find_glyph): Use binary search instead of linear search to find a
32734 character in a font.
32736 2009-06-05 Michael Scherer <misc@mandriva.org>
32738 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
32739 uses case sensitive btree.
32740 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
32741 only for case insensitive filesystems.
32743 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
32745 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
32746 * conf/common.rmk (search_mod_CFLAGS): likewise
32748 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32750 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
32751 compensate a compiler bug
32753 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32755 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
32758 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32760 Definitions for creating asm symbols with Apple's CC
32762 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
32763 [APPLE_CC] (VARIABLE): likewise
32765 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32767 Disable lnxboot.img when compiled
32770 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
32771 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
32772 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
32773 [! APPLE_CC] (CODE_LENG): skip
32774 [! APPLE_CC] (setup_sects): likewise
32775 [! APPLE_CC]: skip filling
32777 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32779 Address in trampolines based on 32-bit registers when compiled
32782 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
32784 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
32786 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32788 Avoid aliases when compiling with Apple's CC for PCBIOS machine
32790 * kern/misc.c [APPLE_CC] (memcpy): new function
32791 [APPLE_CC] (memmove): likewise
32792 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
32793 (memcpy): define alias conditionally on !APPLE_CC
32796 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
32797 APPLE_CC are defined
32798 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
32799 (grub_assert_fail): make prototype conditional
32801 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32803 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
32805 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
32807 (CLEANFILES): add grub-macho2img
32808 (grub_macho2img_SOURCES): new variable
32809 * kern/i386/pc/startup.S (bss_start): new variable
32810 (bss_end): likewise
32811 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
32812 * util/grub-macho2img.c: new file
32814 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32816 Use objconv when compiling with Apple's CC
32818 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
32819 (efiemu64.o): likewise
32820 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
32821 when compiling with Apple's CC
32822 (efiemu64_s.o): likewise
32823 * configure.ac: check for objconv when compiling with Apple's CC
32824 * genmk.rb: use objconv for modules when compiled with Apple's CC
32826 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32828 Define segment as well as section when compiling with
32831 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
32832 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
32833 (efiemu_convert_pointer): likewise
32834 (efiemu_set_virtual_address_map): likewise
32835 (efiemu_convert_pointer): likewise
32836 (efiemu_getcrc32): likewise
32837 (init_crc32_table): likewise
32838 (reflect): likewise
32839 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
32840 (GRUB_MOD_DEP): likewise
32842 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32844 Allow a compilation without -mcmodel=large
32846 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
32847 when compiled without -mcmodel=large
32848 (filter_memory_map): remove memory post 4 GiB when compiled
32849 without -mcmodel=large
32850 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
32851 TARGET_CFLAGS when -mcmodel=large isn't supported
32853 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32855 Remove nested functions in efiemu core
32857 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
32859 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32861 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
32863 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
32865 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
32867 (grub_cpu_is_tsc_supported): likewise
32868 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
32870 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32872 Absolute addressing through constant with Apple's cc
32874 * kern/i386/pc/startup.S: Define necessary constants
32875 and address through it when using ABS with Apple's CC
32876 * boot/i386/pc/diskboot.S: likewise
32877 * boot/i386/pc/boot.S: likewise
32878 * boot/i386/pc/lnxboot.S: likewise
32879 * boot/i386/pc/cdboot.S: likewise
32880 * mmap/i386/pc/mmap_helper.S: likewise
32881 * commands/i386/pc/drivemap_int13h.S: likewise
32883 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32885 Check if compiler is apple cc
32887 * Makefile.in (ASFLAGS): new variable
32888 (TARGET_ASFLAGS): likewise
32889 (TARGET_MODULE_FORMAT): likewise
32890 (TARGET_APPLE_CC): likewise
32891 (OBJCONV): likewise
32892 (TARGET_IMG_CFLAGS): likewise
32893 (TARGET_CPPFLAGS): add includedir
32894 * configure.ac: call grub_apple_cc and grub_apple_target_cc
32895 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
32896 Check for linker script only if compiler isn't Apple's CC
32897 (TARGET_MODULE_FORMAT): set
32898 (TARGET_APPLE_CC): likewise
32899 (TARGET_ASFLAGS): likewise
32900 (ASFLAGS): likewise
32901 Check for objcopy only if compiler isn't Apple's CC
32902 Check for BSS symbol only if compiler isn't Apple's CC
32903 * genmk.rb: adapt nm options if we use Apple's utils
32904 * aclocal.m4 (grub_apple_cc): new test
32905 (grub_apple_target_cc): likewise
32907 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32909 Simplify sed expressions and improve awk
32911 * Makefile.in (install-local): simplify sed expression
32912 * gencmdlist.sh: likewise
32913 * genmoddep.awk: avoid adding module as a dependency of itself
32915 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32917 Add missing start symbols
32919 * boot/i386/pc/boot.S: add start
32920 * boot/i386/pc/pxeboot.S: likewise
32922 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32924 Fix wrong assumptions with grub-mkimage on EFI
32926 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
32927 (relocate_addresses): consider both r_addend and value at offset
32928 (make_mods_section): zerofill modinfo and header
32929 (convert_elf): write prefix here
32931 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32933 Use .asciz instead of .string
32935 * i386/pc/diskboot.S: use .asciz instead of .string
32936 * i386/pc/boot.S: likewise
32937 * include/grub/dl.h (GRUB_MOD_DEP): likewise
32938 (GRUB_MOD_NAME): likewise
32940 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32944 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
32945 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
32946 (grub_video_setup): remove
32947 (grub_video_set_mode): new prototype
32948 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
32950 (linux_vesafb_res): compile only on PCBIOS
32951 (grub_linux_boot): support gfxpayload
32952 * loader/i386/pc/xnu.c (video_hook): new function
32953 (grub_xnu_set_video): support gfxpayload
32954 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
32955 (DEFAULT_VIDEO_HEIGHT): likewise
32956 (DEFAULT_VIDEO_FLAGS): likewise
32957 (DEFAULT_VIDEO_MODE): new definition
32958 (video_hook): new function
32959 (grub_gfxterm_init): use grub_video_set_mode
32960 * util/grub.d/30_os-prober.in: remove explicit modesetting before
32962 * video/video.c (grub_video_setup): removed
32963 (grub_video_set_mode): new function based on grub_gfxterm_init and
32966 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32968 Avoid calling biosdisk in drivemap
32970 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
32971 (revparse_biosdisk): likewise
32972 (list_mappings): derive name from id directly
32973 (grub_cmd_drivemap): use tryparse_diskstring
32975 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32979 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
32980 (grub_lexer_param): add tokenonhold
32981 (grub_script_create_cmdline): remove cmdline. All callers updated
32982 (grub_script_function_create): make functionname
32983 grub_script_arg. All callers updated
32984 (grub_script_execute_argument_to_string): new prototype
32985 * kern/parser.c (state_transitions): reorder
32986 (grub_parser_cmdline_state): fix a bug and make more compact
32987 * script/sh/execute.c (grub_script_execute_argument_to_string):
32989 (grub_script_execute_cmdline): use new format
32990 * script/sh/function.c (grub_script_function_create): make functionname
32991 grub_script_arg. All callers updated
32992 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
32993 (grub_script_yylex): remove
32994 (grub_script_yylex2): renamed to ...
32995 (grub_script_yylex): ...renamed
32996 parse the expressions like a${b}c
32997 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
32998 (GRUB_PARSER_TOKEN_VAR): remove
32999 (GRUB_PARSER_TOKEN_NAME): likewise
33000 ("if"): declare as typeless
33001 ("while"): likewise
33002 ("function"): likewise
33007 (argument): likewise
33008 (script): accept empty scripts and make exit on error
33009 (arguments): use GRUB_PARSER_TOKEN_ARG
33010 (function): likewise
33011 (command): move error handling to script
33012 (menuentry): move grub_script_lexer_ref before
33013 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
33014 argument. All callers updated
33016 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
33018 Prevent GRUB from probing floppies during boot.
33020 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
33021 * commands/search.c (options): Add --no-floppy.
33022 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
33023 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
33024 --no-floppy when searching for UUIDs.
33026 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
33028 Simplify the code duplication in commands/search.c.
33030 * commands/search.c (search_label, search_fs_uuid): Merge into ...
33031 (search_fs): ... this. Update all users.
33033 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
33035 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
33037 2009-05-28 Pavel Roskin <proski@gnu.org>
33039 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
33040 Remove the original symlink explicitly.
33042 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
33043 just one slash. That's how grub_fshelp_find_file() does it.
33045 2009-05-26 Pavel Roskin <proski@gnu.org>
33047 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
33050 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
33053 2009-05-25 Christian Franke <franke@computer.org>
33055 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
33057 (grub_atapi_identify): Add wait after drive select.
33058 (grub_ata_identify): Do more strict status register check before
33059 calling grub_atapi_identify (). Suppress error message if status
33060 register is 0x00 after command failure. Add status register
33061 check after PIO read to avoid bogus identify due to stuck DRQ.
33062 Thanks to Pavel Roskin for testing.
33063 (grub_device_initialize): Remove unsafe status register check.
33064 Thanks to 'phcoder' for problem report and patch.
33065 Prevent sign extension in debug message.
33067 2009-05-23 Colin D Bennett <colin@gibibit.com>
33069 Cleaned up `include/grub/normal.h'. Grouped prototypes by
33070 definition file, and functions defined in `normal/menu.c' have had
33071 their prototypes moved to `include/grub/menu.h' for consistency.
33073 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
33075 (grub_menu_get_entry): Likewise.
33076 (grub_menu_get_timeout): Likewise.
33077 (grub_menu_set_timeout): Likewise.
33078 (grub_menu_execute_entry): Likewise.
33079 (grub_menu_execute_with_fallback): Likewise.
33080 (grub_menu_entry_run): Likewise.
33082 * include/grub/normal.h: Re-ordered and grouped function
33083 prototypes by file that the function is defined in.
33084 (grub_menu_execute_callback): Removed; moved to menu.h.
33085 (grub_menu_get_entry): Likewise.
33086 (grub_menu_get_timeout): Likewise.
33087 (grub_menu_set_timeout): Likewise.
33088 (grub_menu_execute_entry): Likewise.
33089 (grub_menu_execute_with_fallback): Likewise.
33090 (grub_menu_entry_run): Likewise.
33091 (grub_menu_addentry): Renamed from this ...
33092 (grub_normal_add_menu_entry): ... to this.
33094 * normal/main.c (grub_menu_addentry): Renamed from this ...
33095 (grub_normal_add_menu_entry): ... to this.
33097 * script/sh/execute.c (grub_script_execute_menuentry): Update
33098 reference to renamed grub_menu_addentry function.
33100 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
33102 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
33104 2009-05-22 Pavel Roskin <proski@gnu.org>
33106 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
33107 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
33108 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
33109 compiling for the i386 targets, but not for the utilities.
33111 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
33113 (grub_root_drive): Likewise.
33114 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
33116 (grub_root_drive): Change size to byte.
33117 (grub_start_addr): Remove.
33118 (grub_end_addr): Likewise.
33119 (grub_apm_bios_info): Likewise.
33121 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
33123 * normal/i386: Remove.
33124 * normal/powerpc: Likewise.
33125 * normal/sparc64: Likewise.
33126 * normal/x86_64: Likewise.
33128 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
33130 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
33131 * loader/i386/linux_trampoline.S: Fix indentation
33132 * loader/i386/xnu_helper.S: Likewise
33134 2009-05-18 Colin D Bennett <colin@gibibit.com>
33136 Display error messages when parsing a Lua statement fails.
33137 Previously, executing a syntactically invalid statement like
33138 ")foo" or "bar;" would silently fail.
33140 * script/lua/grub_main.c (handle_lua_error): New function.
33141 (grub_lua_parse_line): Improved reporting of Lua parser and
33144 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
33146 Remove -Werror which causes build to fail on some systems
33148 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
33149 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
33150 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
33152 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
33154 trampoline for linux on 64-bit platform
33156 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
33157 loader/i386/efi/linux_trampoline.S
33158 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
33160 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
33162 * loader/i386/linux_trampoline.S: moved here
33163 * loader/i386/efi/linux.c (allocate_pages): reserve space for
33165 (jumpvector): removed
33166 (grub_linux_trampoline_start): new declaration
33167 (grub_linux_trampoline_end): likewise
33168 (grub_linux_boot): use trampoline when on 64-bit platform
33169 * loader/i386/linux.c: likewise
33171 2009-05-16 Pavel Roskin <proski@gnu.org>
33173 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
33174 const to avoid a warning.
33175 (grub_lua_setenv): Likewise.
33176 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
33177 lmsg to fix a warning.
33179 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
33181 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
33182 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
33183 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
33184 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
33185 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
33186 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
33187 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
33188 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
33190 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
33192 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
33194 2009-05-16 Bean <bean123ch@gmail.com>
33196 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
33197 (lua_mod_SOURCES): New variable.
33198 (lua_mod_CFLAGS): Likewise.
33199 (lua_mod_LDFLAGS): Likewise.
33201 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
33202 (setjmp_mod_SOURCES): New variable.
33203 (setjmp_mod_CFLAGS): Likewise.
33204 (setjmp_LDFLAGS): Likewise.
33206 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
33207 (setjmp_mod_SOURCES): New variable.
33208 (setjmp_mod_CFLAGS): Likewise.
33209 (setjmp_LDFLAGS): Likewise.
33211 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
33212 (setjmp_mod_SOURCES): New variable.
33213 (setjmp_mod_CFLAGS): Likewise.
33214 (setjmp_LDFLAGS): Likewise.
33216 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
33217 (setjmp_mod_SOURCES): New variable.
33218 (setjmp_mod_CFLAGS): Likewise.
33219 (setjmp_LDFLAGS): Likewise.
33221 * normal/i386/setjmp.S: Moved from here ...
33222 * lib/i386/setjmp.S: ... Moved here
33223 * normal/x86_64/setjmp.S: Moved from here ...
33224 * lib/x86_64/setjmp.S: ... Moved here
33225 * normal/powerpc/setjmp.S: Moved from here ...
33226 * lib/powerpc/setjmp.S: ... Moved here
33227 * normal/sparc64/setjmp.S: Moved from here ...
33228 * lib/sparc64/setjmp.S: ... Moved here
33230 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
33231 returns_twice in mingw.
33233 * script/lua/grub_lib.c: New file.
33234 * script/lua/grub_lib.h: Likewise.
33235 * script/lua/grub_lua.h: Likewise.
33236 * script/lua/grub_main.c: Likewise.
33237 * script/lua/lapi.c: Likewise.
33238 * script/lua/lapi.h: Likewise.
33239 * script/lua/lauxlib.c: Likewise.
33240 * script/lua/lauxlib.h: Likewise.
33241 * script/lua/lbaselib.c: Likewise.
33242 * script/lua/lcode.c: Likewise.
33243 * script/lua/lcode.h: Likewise.
33244 * script/lua/ldblib.c: Likewise.
33245 * script/lua/ldebug.c: Likewise.
33246 * script/lua/ldebug.h: Likewise.
33247 * script/lua/ldo.c: Likewise.
33248 * script/lua/ldo.h: Likewise.
33249 * script/lua/ldump.c: Likewise.
33250 * script/lua/lfunc.c: Likewise.
33251 * script/lua/lfunc.h: Likewise.
33252 * script/lua/lgc.c: Likewise.
33253 * script/lua/lgc.h: Likewise.
33254 * script/lua/linit.c: Likewise.
33255 * script/lua/liolib.c: Likewise.
33256 * script/lua/llex.c: Likewise.
33257 * script/lua/llex.h: Likewise.
33258 * script/lua/llimits.h: Likewise.
33259 * script/lua/lmathlib.c: Likewise.
33260 * script/lua/lmem.c: Likewise.
33261 * script/lua/lmem.h: Likewise.
33262 * script/lua/loadlib.c: Likewise.
33263 * script/lua/lobject.c: Likewise.
33264 * script/lua/lobject.h: Likewise.
33265 * script/lua/lopcodes.c: Likewise.
33266 * script/lua/lopcodes.h: Likewise.
33267 * script/lua/loslib.c: Likewise.
33268 * script/lua/lparser.c: Likewise.
33269 * script/lua/lparser.h: Likewise.
33270 * script/lua/lstate.c: Likewise.
33271 * script/lua/lstate.h: Likewise.
33272 * script/lua/lstring.c: Likewise.
33273 * script/lua/lstring.h: Likewise.
33274 * script/lua/lstrlib.c: Likewise.
33275 * script/lua/ltable.c: Likewise.
33276 * script/lua/ltable.h: Likewise.
33277 * script/lua/ltablib.c: Likewise.
33278 * script/lua/ltm.c: Likewise.
33279 * script/lua/ltm.h: Likewise.
33280 * script/lua/lua.h: Likewise.
33281 * script/lua/luaconf.h: Likewise.
33282 * script/lua/lualib.h: Likewise.
33283 * script/lua/lundump.c: Likewise.
33284 * script/lua/lundump.h: Likewise.
33285 * script/lua/lvm.c: Likewise.
33286 * script/lua/lvm.h: Likewise.
33287 * script/lua/lzio.c: Likewise.
33288 * script/lua/lzio.h: Likewise.
33290 2009-05-16 Bean <bean123ch@gmail.com>
33292 * include/grub/kernel.h (grub_module_header_types): Add type
33295 * kern/main.c (grub_load_config): New function.
33296 (grub_main): Call grub_load_config to read boot config.
33298 * grub-mkimage (generate_image): New parameter config_path.
33299 (options): New option --config.
33300 (main): Parse --config option, and pass it to generate_image.
33302 2009-05-14 Christian Franke <franke@computer.org>
33304 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
33305 This fixes build on Cygwin.
33307 2009-05-14 Pavel Roskin <proski@gnu.org>
33309 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
33310 jump. This saves two bytes, so the typical case of 2 swapped
33311 drives would fit 32 bytes.
33313 2009-05-13 Pavel Roskin <proski@gnu.org>
33315 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
33316 grub_uint32_t to avoid a warning.
33318 * loader/i386/linux.c (allocate_pages): When assigning
33319 real_mode_mem, cast through grub_size_t to fix a warning. The
33320 code already makes sure that the value would fit a pointer.
33321 (grub_linux_setup_video): Cast render_target->data to
33322 grub_size_t to fix a warning.
33324 2009-05-13 Javier Martín <lordhabbit@gmail.com>
33326 * commands/i386/pc/drivemap.c: New file - implement drivemap
33328 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
33329 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
33331 2009-05-13 Pavel Roskin <proski@gnu.org>
33333 * util/i386/pc/grub-setup.c (setup): Remove unused variable
33334 embedding_area_exists.
33336 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
33338 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
33339 it easier to understand / work with.
33340 Improve warning messages for cases where there's no embedding area,
33341 or when it is too small (or core.img too large).
33343 2009-05-13 Pavel Roskin <proski@gnu.org>
33345 * loader/i386/pc/multiboot2.c: Add necessary includes for
33346 grub_multiboot2_real_boot().
33348 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
33349 PX record is always little-endian. We only need the lower 2
33352 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
33353 facilitate code reuse.
33354 (grub_cpio_mount): Use "struct head", not a char buffer. This
33355 fixes a warning reported by gcc 4.4.
33357 * kernel/disk.c (grub_disk_read): Use void pointer for the
33359 (grub_disk_write): Use const void pointer for the buffer.
33360 Adjust all callers. Remove unnecessary casts.
33362 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
33364 * util/i386/pc/grub-install.in: Update copyright year.
33366 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
33370 * commands/gptsync.c: new file
33371 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
33372 (gptsync_mod_SOURCES): new variable
33373 (gptsync_mod_CFLAGS): likewise
33374 (gptsync_mod_LDFLAGS): likewise
33375 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
33377 (GRUB_PC_PARTITION_TYPE_HFS): likewise
33378 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
33379 * conf/i386-ieee1275.rmk: likewise
33380 * conf/i386-pc.rmk: likewise
33381 * conf/powerpc-ieee1275.rmk: likewise
33383 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
33387 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
33388 (grub_dl_ref): likewise
33390 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
33392 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
33393 split in two functions (one for msdos and one for gpt).
33395 2009-05-08 Pavel Roskin <proski@gnu.org>
33397 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
33400 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
33401 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
33402 Initialize them with -1. Add sanity check for bad1. Eliminate
33405 2009-05-08 David S. Miller <davem@davemloft.net>
33407 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
33409 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
33411 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
33414 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
33416 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
33417 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
33419 2009-05-05 David S. Miller <davem@davemloft.net>
33421 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
33423 2009-05-05 Pavel Roskin <proski@gnu.org>
33425 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
33426 of grub_dl_ref() and grub_dl_unref().
33427 * commands/parttool.c: Remove preprocessor conditionals around
33428 grub_dl_ref() and grub_dl_unref().
33429 * fs/affs.c: Likewise.
33430 * fs/afs.c: Likewise.
33431 * fs/cpio.c: Likewise.
33432 * fs/ext2.c: Likewise.
33433 * fs/fat.c: Likewise.
33434 * fs/hfs.c: Likewise.
33435 * fs/hfsplus.c: Likewise.
33436 * fs/iso9660.c: Likewise.
33437 * fs/jfs.c: Likewise.
33438 * fs/minix.c: Likewise.
33439 * fs/ntfs.c: Likewise.
33440 * fs/reiserfs.c: Likewise.
33441 * fs/sfs.c: Likewise.
33442 * fs/udf.c: Likewise.
33443 * fs/ufs.c: Likewise.
33444 * fs/xfs.c: Likewise.
33445 * include/grub/dl.h: Likewise.
33446 * loader/xnu.c: Likewise.
33448 2009-05-04 Pavel Roskin <proski@gnu.org>
33450 * commands/acpi.c: Remove unused variable my_mod.
33451 * partmap/amiga.c: Likewise.
33452 * partmap/apple.c: Likewise.
33453 * partmap/gpt.c: Likewise.
33454 * partmap/pc.c: Likewise.
33455 * partmap/sun.c: Likewise.
33456 * term/gfxterm.c: Likewise.
33457 * term/i386/pc/vesafb.c: Likewise.
33458 * term/i386/pc/vga.c: Likewise.
33460 2009-05-04 David S. Miller <davem@davemloft.net>
33462 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
33463 pointer args to grub_ieee1275_get_property().
33465 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
33467 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
33468 devices, and do not traverse down under controller nodes.
33470 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
33471 (grub_ofdisk_open): Use it to un-escape "," characters.
33472 * kern/disk.c (find_part_sep): New.
33473 (grub_disk_open): Use it to find the first non-escaped ','
33474 character in the disk name.
33475 * util/ieee1275/devicemap.c (escape_of_path): New.
33476 (grub_util_emit_devicemap_entry): Use it.
33477 * util/sparc64/ieee1275/grub-install.in: Update script to
33478 strip partition specifiers properly by not triggering on
33479 '\' escaped ',' characters.
33481 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
33483 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
33485 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
33487 (linux_vesafb_modes): Add a lot of additional modes to the list (based
33488 on documentation from Wikipedia).
33490 2009-05-04 Pavel Roskin <proski@gnu.org>
33492 * disk/ata.c: Spelling fixes.
33493 * disk/raid.c: Likewise.
33494 * disk/usbms.c: Likewise.
33495 * disk/dmraid_nvidia.c: Likewise.
33496 * kern/ieee1275/openfw.c: Likewise.
33497 * kern/ieee1275/init.c: Likewise.
33498 * kern/ieee1275/cmain.c: Likewise.
33499 * boot/i386/pc/cdboot.S: Likewise.
33500 * video/readers/png.c: Likewise.
33501 * video/i386/pc/vbe.c: Likewise.
33502 * fs/udf.c: Likewise.
33503 * fs/hfs.c: Likewise.
33504 * fs/reiserfs.c: Likewise.
33505 * efiemu/runtime/efiemu.c: Likewise.
33506 * efiemu/main.c: Likewise.
33507 * efiemu/mm.c: Likewise.
33508 * include/grub/elf.h: Likewise.
33509 * include/grub/xnu.h: Likewise.
33510 * include/grub/usbdesc.h: Likewise.
33511 * include/grub/usb.h: Likewise.
33512 * include/grub/script_sh.h: Likewise.
33513 * include/grub/lib/LzmaEnc.h: Likewise.
33514 * include/grub/efiemu/efiemu.h: Likewise.
33515 * include/grub/command.h: Likewise.
33516 * normal/menu.c: Likewise.
33517 * normal/main.c: Likewise.
33518 * normal/datetime.c: Likewise.
33519 * bus/usb/uhci.c: Likewise.
33520 * mmap/i386/uppermem.c: Likewise.
33521 * mmap/mmap.c: Likewise.
33522 * commands/acpi.c: Likewise.
33523 * commands/test.c: Likewise.
33524 * partmap/apple.c: Likewise.
33525 * font/font.c: Likewise.
33526 * loader/sparc64/ieee1275/linux.c: Likewise.
33527 * loader/macho.c: Likewise.
33528 * loader/i386/bsd_trampoline.S: Likewise.
33529 * loader/i386/bsd.c: Likewise.
33530 * loader/xnu.c: Likewise.
33531 * term/i386/pc/vesafb.c: Likewise.
33532 * term/usb_keyboard.c: Likewise.
33533 * util/resolve.c: Likewise.
33534 * util/getroot.c: Likewise.
33536 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
33538 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
33540 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
33542 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
33545 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
33547 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
33548 parameter only available on BIOS.
33550 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
33552 Removed wrong semicolon in declaration
33554 * grub/misc.h (grub_dprintf): remove semicolon
33556 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
33558 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
33559 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
33560 is done by grub_cmd_linux() now).
33561 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
33562 restore video to text mode.
33563 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
33564 indicates lack of "vga=" parameter. "vga=0" is mapped to
33565 `GRUB_LINUX_VID_MODE_NORMAL'.
33567 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
33569 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
33570 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
33571 and `normal/script.c'. Add `kern/rescue_reader.c',
33572 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
33573 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
33574 `grub_script.tab.c'.
33576 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33577 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33578 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33579 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33580 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33582 * Makefile.in: Remove duplicated 2008 in Copyright line.
33584 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
33586 * util/misc.c (grub_util_warn): New function. Emits a warning
33588 * include/grub/util/misc.h (grub_util_warn): New declaration.
33590 * util/i386/pc/grub-install.in: Understand --force and pass it down
33593 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
33595 (setup): Improve error messages and add warnings when requested to
33596 install in odd layouts. Refuse to install using blocklists unless
33599 2009-05-04 martin f. krafft <madduck@madduck.net>
33601 * disk/raid.c (grub_raid_scan_device): Improve debug message.
33603 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
33605 Updated copyright year
33607 * fs/hfsplus.c: updated copyright year
33609 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
33613 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
33614 in the space previously used by unused3
33615 (grub_hfsplus_uuid): new function
33616 (grub_hfsplus_fs): added uuid field
33618 2009-05-03 Pavel Roskin <proski@gnu.org>
33620 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
33621 suppress warnings. It's no longer needed.
33622 * disk/host.c: Likewise.
33623 * disk/ata_pthru.c: Likewise.
33624 * disk/loopback.c: Likewise.
33625 * hook/datehook.c: Likewise.
33626 * parttool/pcpart.c: Likewise.
33627 * fs/i386/pc/pxe.c: Likewise.
33628 * fs/ntfscomp.c: Likewise.
33629 * efiemu/main.c: Likewise.
33630 * mmap/mmap.c: Likewise.
33631 * commands/crc.c: Likewise.
33632 * commands/hexdump.c: Likewise.
33633 * commands/hdparm.c: Likewise.
33634 * commands/acpi.c: Likewise.
33635 * commands/echo.c: Likewise.
33636 * commands/minicmd.c: Likewise.
33637 * commands/blocklist.c: Likewise.
33638 * commands/memrw.c: Likewise.
33639 * commands/loadenv.c: Likewise.
33640 * commands/usbtest.c: Likewise.
33641 * commands/lsmmap.c: Likewise.
33642 * commands/boot.c: Likewise.
33643 * commands/parttool.c: Likewise.
33644 * commands/configfile.c: Likewise.
33645 * commands/search.c: Likewise.
33646 * commands/ieee1275/suspend.c: Likewise.
33647 * commands/cat.c: Likewise.
33648 * commands/i386/pc/pxecmd.c: Likewise.
33649 * commands/i386/pc/play.c: Likewise.
33650 * commands/i386/pc/halt.c: Likewise.
33651 * commands/i386/pc/vbeinfo.c: Likewise.
33652 * commands/i386/pc/vbetest.c: Likewise.
33653 * commands/lspci.c: Likewise.
33654 * commands/date.c: Likewise.
33655 * commands/handler.c: Likewise.
33656 * commands/ls.c: Likewise.
33657 * commands/test.c: Likewise.
33658 * commands/cmp.c: Likewise.
33659 * commands/efi/loadbios.c: Likewise.
33660 * commands/efi/fixvideo.c: Likewise.
33661 * commands/halt.c: Likewise.
33662 * commands/help.c: Likewise.
33663 * commands/reboot.c: Likewise.
33664 * hello/hello.c: Likewise.
33665 * script/sh/main.c: Likewise.
33666 * loader/xnu.c: Likewise.
33667 * term/terminfo.c: Likewise.
33668 * term/i386/pc/serial.c: Likewise.
33669 * term/usb_keyboard.c: Likewise.
33671 2009-05-03 David S. Miller <davem@davemloft.net>
33673 * normal/menu.c: Include grub/parser.h
33675 2009-05-03 Pavel Roskin <proski@gnu.org>
33677 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
33679 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
33680 Suggested by Javier Martín <lordhabbit@gmail.com>
33682 * util/i386/pc/grub-mkrescue.in: Allow for the case when
33683 efiemu??.o doesn't exist.
33684 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
33687 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
33689 FreeBSD 64-bit support
33691 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
33692 and loader/i386/bsd_trampoline.S
33693 (bsd_mod_ASFLAGS): new variable
33694 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
33695 (FREEBSD_MODTYPE_KERNEL64): likewise
33696 (grub_bsd64_trampoline_start): likewise
33697 (grub_bsd64_trampoline_end): likewise
33698 (grub_bsd64_trampoline_selfjump): likewise
33699 (grub_bsd64_trampoline_gdt): likewise
33700 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
33701 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
33702 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
33703 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
33704 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
33706 * loader/i386/bsd_pagetable.c: new file
33707 * loader/i386/bsd_trampoline.S: likewise
33708 * loader/i386/bsd.c (ALIGN_QWORD): new macro
33709 (ALIGN_VAR): likewise
33710 (entry_hi): new variable
33711 (kern_end_mdofs): likewise
33712 (is_64bit): likewise
33713 (grub_freebsd_add_meta): use ALIGN_VAR
33714 (grub_e820_mmap): new declaration
33715 (grub_freebsd_add_mmap): new function
33716 (grub_freebsd_add_meta_module): support 64 bit kernels
33717 (grub_freebsd_list_modules): use ALIGN_VAR
33718 (gdt_descriptor): new declaration
33719 (grub_freebsd_boot): support 64 bit kernels
33720 (grub_bsd_elf64_hook): new function
33721 (grub_bsd_load_elf): support elf64
33723 2009-05-03 Bean <bean123ch@gmail.com>
33725 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
33726 after we get the result of if statement.
33728 2009-05-03 Bean <bean123ch@gmail.com>
33730 * Makefile.in (enable_efiemu): New variable.
33732 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
33734 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
33736 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
33737 path, add -mno-red-zone option.
33738 (efiemu64_s.o): Likewise.
33739 (efiemu64.o): Use macro $^ for source file.
33741 * configure.ac (--enable-efiemu): New option.
33743 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
33747 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
33748 (pkglib_MODULES): add xnu.mod
33749 (xnu_mod_SOURCES): new variable
33750 (xnu_mod_CFLAGS): likewise
33751 (xnu_mod_LDFLAGS): likewise
33752 (xnu_mod_ASFLAGS): likewise
33753 * conf/i386-pc.rmk: likewise
33754 * conf/x86_64-efi.rmk: likewise
33755 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
33757 * include/grub/i386/macho.h: new file
33758 * include/grub/i386/xnu.h: likewise
33759 * include/grub/macho.h: likewise
33760 * include/grub/machoload.h: likewise
33761 * include/grub/x86_64/macho.h: likewise
33762 * include/grub/x86_64/xnu.h: likewise
33763 * include/grub/xnu.h: likewise
33764 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
33765 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
33766 * loader/i386/efi/xnu.c: new file
33767 * loader/i386/pc/xnu.c: likewise
33768 * loader/i386/xnu.c: likewise
33769 * loader/i386/xnu_helper.S: likewise
33770 * loader/macho.c: likewise
33771 * loader/xnu.c: likewise
33772 * loader/xnu_resume.c: likewise
33773 * util/grub-dumpdevtree: likewise
33774 * include/grub/i386/pit.h: include grub/err.h
33775 (grub_pit_wait): export
33776 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
33778 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
33782 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
33783 _linux_efi, linux_efi.
33784 new files in grub-emu
33785 new targets efiemu32.o and efiemu64.o
33786 * loader/linux_normal_efiemu.c: likewise
33787 * loader/i386/efi/linux.c: added preliminary efiemu support
33788 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
33790 * include/grub/autoefi.h: new file
33791 * include/grub/i386/efiemu.h: likewise
33792 * include/grub/i386/pc/efiemu.h: likewise
33793 * include/grub/efi/api.h: add LL suffix when necessary
33794 new definitions relating to tables
33795 * include/grub/efiemu/efiemu.h: new file
33796 * include/grub/efiemu/runtime.h: likewise
33797 * efiemu/prepare.c: likewise
33798 * efiemu/loadcore_common.c: likewise
33799 * efiemu/loadcore64.c: likewise
33800 * efiemu/runtime/efiemu.sh: likewise
33801 * efiemu/runtime/efiemu.S: likewise
33802 * efiemu/runtime/efiemu.c: likewise
33803 * efiemu/runtime/config.h: likewise
33804 * efiemu/prepare32.c: likewise
33805 * efiemu/main.c: likewise
33806 * efiemu/modules/pnvram.c: likewise
33807 * efiemu/modules/i386: likewise
33808 * efiemu/modules/i386/pc: likewise
33809 * efiemu/modules/acpi.c: likewise
33810 * efiemu/i386/pc/cfgtables.c: likewise
33811 * efiemu/i386/loadcore64.c: likewise
33812 * efiemu/i386/loadcore32.c: likewise
33813 * efiemu/prepare64.c: likewise
33814 * efiemu/loadcore.c: likewise
33815 * efiemu/symbols.c: likewise
33816 * efiemu/mm.c: likewise
33817 * efiemu/loadcore32.c: likewise
33819 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
33823 * commands/acpi.c: new file
33824 * commands/i386/pc/acpi.c: likewise
33825 * commands/efi/acpi.c: likewise
33826 * include/grub/acpi.h: likewise
33827 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
33828 (acpi_mod_SOURCES): new variable
33829 (acpi_mod_CFLAGS): likewise
33830 (acpi_mod_LDFLAGS): likewise
33831 * conf/i386-efi.rmk: likewise
33832 * conf/x86_64-efi.rmk: likewise
33834 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
33836 Missing part from mmap patch
33838 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
33839 (grub_mmap_unregister)
33840 (grub_mmap_free_and_unregister): use grub_mmap_register
33842 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
33846 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
33847 * loader/i386/linux.c (find_mmap_size): likewise
33848 (allocate_pages): likewise
33849 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
33850 (grub_fill_multiboot_mmap): likewise
33851 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
33852 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
33853 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
33854 (OPENBSD_MMAP_RESERVED): likewise
33855 * include/grub/i386/pc/memory.h: include grub/memory.h
33856 (grub_lower_mem): removed
33857 (grub_upper_mem): likewise
33858 (GRUB_MACHINE_MEMORY_ACPI): new definition
33859 (GRUB_MACHINE_MEMORY_NVS): likewise
33860 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
33861 (GRUB_MACHINE_MEMORY_HOLE): likewise
33862 (grub_machine_mmap_register): likewise
33863 (grub_machine_mmap_unregister): likewise
33864 (grub_machine_get_upper): likewise
33865 (grub_machine_get_lower): likewise
33866 (grub_machine_get_post64): likewise
33867 * include/grub/i386/efi/memory.h: new file
33868 * include/grub/x86_64/efi/memory.h: likewise
33869 * include/grub/efi/memory.h: likewise
33870 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
33871 (mmap_mod_SOURCES): new variable
33872 (mmap_mod_LDFLAGS): likewise
33873 (mmap_mod_ASFLAGS): likewise
33874 * conf/i386-coreboot.rmk: likewise
33875 * conf/i386-ieee1275.rmk: likewise
33876 * conf/i386-efi.rmk: likewise
33877 * conf/x86_64-efi.rmk: likewise
33878 * include/grub/types.h (UINT_TO_PTR): new macro
33879 (PTR_TO_UINT32): likewise
33880 (PTR_TO_UINT64): likewise
33881 * include/grub/memory.h: new file
33882 * mmap/i386/pc/mmap.c: likewise
33883 * mmap/i386/pc/mmap_helper.S: likewise
33884 * mmap/i386/uppermem.c: likewise
33885 * mmap/mmap.c: likewise
33886 * mmap/efi/mmap.c: likewise
33887 * kern/i386/coreboot/init.c (grub_machine_init): don't use
33889 * kern/i386/pc/init.c (grub_lower_mem): removed variable
33890 (grub_upper_mem): likewise
33891 (grub_machine_init): don't use grub_upper_mem,
33892 make grub_lower_mem local
33893 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
33894 grub_mmap_iterate and grub_mmap_get_upper
33895 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
33897 2009-05-02 Bean <bean123ch@gmail.com>
33899 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
33900 script/sh/parser.y.
33901 (pkglib_MODULES): Add normal.mod and sh.mod.
33902 (normal_SOURCES): New variable.
33903 (normal_mod_CFLAGS): Likewise.
33904 (normal_mod_LDFLAGS): Likewise.
33905 (sh_mod_SOURCES): Likewise.
33906 (sh_mod_CFLAGS): Likewise.
33907 (sh_mod_LDFLAGS): Likewise.
33909 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
33910 script/sh/lexer.c_DEPENDENCIES.
33911 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
33912 kern/rescue_reader.c and kern/rescue_parser.c.
33913 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
33914 (grub_emu_SOURCES): Change source files.
33915 (pkglib_MODULES): Remove normal.mod.
33916 (normal_SOURCES): Removed.
33917 (normal_mod_CFLAGS): Likewise.
33918 (normal_mod_LDFLAGS): Likewise.
33919 * conf/i386-coreboot.rmk: Likewise.
33920 * conf/i386-efi.rmk: Likewise.
33921 * conf/i386-ieee1276.rmk: Likewise.
33922 * conf/powerpc-ieee1275.rmk: Likewise.
33923 * conf/sparc64-ieee1275.rmk: Likewise.
33924 * conf/x86_64-efi.rmk: Likewise.
33926 * include/grub/command.h (grub_command_execute): New inline function.
33928 * include/grub/menu.h (grub_menu_entry): Removed commands field.
33930 * include/grub/normal.h: Remove <grub/setjmp.h>.
33931 (grub_fs_module_list): Moved to normal/autofs.c.
33932 (grub_exit_env): Removed.
33933 (grub_command_execute): Likewise.
33934 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
33936 (read_command_list): New function declaration.
33937 (read_fs_list): Likewise.
33939 * include/parser.h: Include <grub/reader.h>.
33940 (grub_parser_split_cmdline): Change type of getline parameter.
33941 (grub_parser): New structure.
33942 (grub_parser_class): New variable.
33943 (grub_parser_execute): New function declaration.
33944 (grub_register_rescue_parser): Likewise.
33945 (grub_parser_register): New inline function.
33946 (grub_parser_unregister): Likewise.
33947 (grub_parser_get_current): Likewise.
33948 (grub_parser_set_current): Likewise.
33950 * include/grub/reader.h: New file.
33951 * kern/reader.c: Likewise.
33952 * kern/rescue_parser.c: Likewise.
33953 * kern/rescue_reader.c: Likewise.
33954 * normal/autofs.c: Likewise.
33955 * normal/dyncmd.c: Likewise.
33957 * include/grub/rescue.h: Removed.
33958 * normal/command.h: Likewise.
33960 * include/grub/script.h: Moved to ...
33961 * include/grub/script_sh.h: ... Moved here.
33962 * normal/execute.c: Moved to ...
33963 * script/sh/execute.c: ... Moved here.
33964 * normal/function.c: Moved to ...
33965 * script/sh/function.c: ... Moved here.
33966 * normal/lexer.c: Moved to ...
33967 * script/sh/lexer.c: ... Moved here.
33968 * normal/parser.y: Moved to ...
33969 * script/sh/parser.y: ... Moved here.
33970 * normal/script.c: Moved to ...
33971 * script/sh/script.c: ... Moved here.
33973 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
33975 (grub_exit_env): Removed.
33976 (fs_module_list): Moved to normal/autofs.c.
33977 (grub_file_getline): Don't handle comment here.
33978 (free_menu): Skip removed field entry->commands.
33979 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
33981 (read_config_file): Removed nested parameter, change getline function.
33982 (grub_enter_normal_mode): Removed.
33983 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
33984 (read_command_list): Likewise.
33985 (autoload_fs_module): Moved to normal/autofs.c.
33986 (read_fs_list): Likewise.
33987 (reader_nested): New variable.
33988 (grub_normal_execute): Run parser.sh to switch to sh parser.
33989 (grub_cmd_rescue): Removed.
33990 (cmd_normal): Removed.
33991 (grub_cmd_normal): Unregister itself at the beginning. Don't register
33993 (grub_cmdline_run): New function.
33994 (grub_normal_reader_init): Likewise.
33995 (grub_normal_read_line): Likewise.
33996 (grub_env_write_pager): Likewise.
33997 (cmdline): New variable.
33998 (grub_normal_reader): Likewise.
33999 (GRUB_MOD_INIT): Register normal reader and set as current, register
34000 pager hook, register normal command with grub_register_command_prio,
34001 so that it won't show up in command.lst.
34002 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
34003 grub_fs_autoload_hook.
34005 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
34006 (grub_menu_execute_entry): Replace grub_script_execute with
34007 grub_parser_execute, change parameter to grub_command_execute.
34009 * normal/menu_text.c: Remove <grub/script.h>.
34011 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
34012 and <grub/parser.h>.
34013 (run): Change editor_getline to use new parser interface. Change
34014 parameter to grub_command_execute.
34016 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
34017 <grub/reader.h> and <grub/parser.h>.
34018 (grub_load_normal_mode): Execute normal command.
34019 (grub_main): Call grub_register_core_commands,
34020 grub_register_rescue_parser and grub_register_rescue_reader, use
34021 grub_reader_loop to enter input loop.
34023 * kern/parser.c (grub_parser_split_cmdline): Change type of
34025 (grub_parser_class): New variable.
34026 (grub_parser_execute): New function.
34028 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
34029 * loader/multiboot2.c: Likewise.
34030 * loader/sparc64/ieee1275/linux.c: Likewise.
34032 * util/grub-emu.c (read_command_list): New dummy function.
34034 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
34036 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
34037 count to 16 for CCISS and IDA.
34039 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
34041 * normal/menu_text.c (grub_wait_after_message): Print a newline
34042 after waiting for user input.
34044 * loader/i386/linux.c: Include `<grub/normal.h>'.
34045 (grub_cmd_linux): Improve the error message about `ask' mode, by
34046 waiting for user input so it's not missed (we can do this, since
34047 user requested interaction).
34049 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
34051 Added missing lst to grub-mkrescue
34053 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
34054 and ${input_dir}/parttool.lst
34056 2009-04-30 David S. Miller <davem@davemloft.net>
34058 * util/hostdisk.c (device_is_wholedisk): New function.
34059 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
34060 zero only if device_is_wholedisk() returns true.
34062 * util/hostdisk.c (convert_system_partition_to_system_disk):
34063 Handle virtual disk devices named /dev/vdiskX as found on sparc
34066 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
34067 lettered partition specifier is found, convert to numbered.
34069 2009-04-29 David S. Miller <davem@davemloft.net>
34071 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
34072 * include/grub/sparc64/ieee1275/memory.h: Likewise.
34074 * normal/command.c: Add missing newline at end of file.
34076 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
34078 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
34079 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
34080 grub_ofdisk_read): Likewise, and deal similarly with the fact that
34081 ihandles have a 32-bit type but need to be stored in a "void *".
34083 2009-04-28 Pavel Roskin <proski@gnu.org>
34085 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
34086 not disk. Adjust all dependencies.
34087 (grub_fs_uuid_close): Use grub_device_close(), not
34090 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
34091 parent's partition, don't copy it by reference, as it gets freed
34094 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
34096 Preboot hooks support
34098 * commands/boot.c (struct grub_preboot_t): new declaration
34099 (preboots_head): new variable
34100 (preboots_tail): likewise
34101 (grub_loader_register_preboot_hook): new function
34102 (grub_loader_unregister_preboot_hook): likewise
34103 (grub_loader_set): launch preboot hooks
34104 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
34105 (grub_loader_register_preboot_hook): new declaration
34106 (grub_loader_unregister_preboot_hook): likewise
34108 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
34112 * disk/scsi.c (grub_scsi_open): added missing cast when
34113 calling grub_dprintf
34115 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
34117 Bug and warning fixes
34119 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
34121 * commands/test.c (test_parse): fixed bug with file tests and corrected
34122 declaration of find_file
34124 2009-04-26 Pavel Roskin <proski@gnu.org>
34126 * Makefile.in: Don't install empty manual pages if help2man is
34127 missing. Use help2man option for output, not shell redirection.
34129 2009-04-26 David S. Miller <davem@davemloft.net>
34131 * util/grub-mkdevicemap.c (make_device_map): Add missing
34132 NESTED_FUNC_ATTR to process_device().
34134 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
34138 * commands/test.c: rewritten to use bash-like test
34140 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
34142 Parttool autoloading and improvements
34144 * Makefile.in (pkglib_DATA): add parttool.lst
34145 (parttool.lst): new target
34146 * genmk.rb: generate parttool-*
34147 (CLEANFILES): add #{parttool}
34148 (PARTTOOLFILES): new variable
34149 * genparttoollist.sh: new file
34150 * parttool/pcpart.c (grub_pcpart_boot): more feedback
34151 (grub_pcpart_type): likewise
34152 * commands/parttool.c (helpmsg): new variable
34153 (grub_cmd_parttool): output help if not enough arguments are supplied
34155 (GRUB_MOD_INIT(parttool)): use helpmsg
34157 2009-04-24 David S. Miller <davem@davemloft.net>
34159 Avoiding opening same device multiple times in device iterator.
34161 * kern/device.c: (grub_device_iterate): Define struct part_ent,
34162 and use it to build a list of partitions in iterate_disk() and
34163 iterate_partition().
34165 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
34168 * disk/ieee1275/nand.c (grub_nand_iterate): Return
34169 grub_devalias_iterate() result instead of unconditional 0.
34170 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
34171 Also, capture hook return value, either directly or via
34172 grub_children_iterate(), and propagate to caller.
34173 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
34174 grub_children_iterate): Return value is now 'int' instead of
34176 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
34177 like a proper iterator, stopping when hooks return non-zero.
34178 (grub_devalias_iterate): Likewise.
34180 2009-04-23 David S. Miller <davem@davemloft.net>
34182 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
34184 2009-04-22 David S. Miller <davem@davemloft.net>
34186 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
34187 is larger than address_cells, use that value for address_cells too.
34189 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
34190 IEEE1275_MAX_PATH_LEN): Define.
34191 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
34192 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
34193 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
34194 'devtype'. Explicitly NULL terminate devalias expansion.
34196 * util/sparc64/ieee1275/misc.c: New file.
34197 * util/sparc64/ieee1275/grub-setup.c: New file.
34198 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
34199 * util/sparc64/ieee1275/grub-mkimage.c: New file.
34200 * util/sparc64/ieee1275/grub-install.in: New file.
34201 * util/ieee1275/ofpath.c: New file.
34202 * util/ieee1275/devicemap.c: New file.
34203 * util/devicemap.c: New file.
34204 * util/deviceiter.c: New file.
34205 * kern/sparc64/ieee1275/init.c: New file.
34206 * include/grub/util/ofpath.h: New file.
34207 * include/grub/util/deviceiter.h: New file.
34208 * util/grub-mkdevicemap.c: Include deviceiter.h.
34209 Implement using grub_util_emit_devicemap_entry and
34210 grub_util_iterate_devices.
34211 * conf/i386-corebook.rmk: Build util/deviceiter.c and
34212 util/devicemap.c into grub-mkdevicemap
34213 * conf/i386-efi.rmk: Likewise.
34214 * conf/i386-ieee1275.rmk: Likewise.
34215 * conf/i386-pc.rmk: Likewise.
34216 * conf/powerpc-ieee1275.rmk: Likewise.
34217 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
34218 images and installation utilities. Build kernel as image
34219 instead of as elf binary. Use common rules as much as possible.
34221 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
34223 Correct GPT definition
34225 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
34228 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
34230 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
34232 2009-04-19 David S. Miller <davem@davemloft.net>
34234 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
34235 (grub_rescue_cmd_linux): Rename to...
34236 (grub_cmd_linux): and fix prototype.
34237 (grub_rescue_cmd_initrd): Rename to...
34238 (grub_cmd_initrd): and fix prototype.
34239 (cmd_linux, cmd_initrd): New.
34240 (GRUB_MOD_INIT(linux)): Use grub_register_command().
34241 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
34243 2009-04-17 Pavel Roskin <proski@gnu.org>
34245 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
34247 (grub_ohci_transfer): Likewise.
34249 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
34251 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
34252 return without a value. Fix inconsistent indentation.
34254 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
34255 match struct grub_fs.
34257 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
34258 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
34259 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
34260 * commands/lspci.c (grub_lspci_iter): Likewise.
34262 2009-04-16 Bean <bean123ch@gmail.com>
34264 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
34267 2009-04-15 Pavel Roskin <proski@gnu.org>
34269 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
34270 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
34271 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
34274 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
34276 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
34277 that no multiple data or metadata areas are supported and `Unknown
34280 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
34282 Move loader out of the kernel
34284 * kern/loader.c: moved to ...
34285 * commands/boot.c: ... moved here
34286 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
34287 * commands/boot.c (grub_cmd_boot): moved here. All users updated
34288 * include/grub/kernel.h (grub_machine_fini): export
34289 * include/grub/loader.h (grub_loader_is_loaded): update declaration
34290 (grub_loader_set): likewise
34291 (grub_loader_unset): likewise
34292 (grub_loader_boot): likewise
34293 * conf/common.rmk: new module boot.mod
34294 (pkglib_MODULES): add boot.mod
34295 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
34296 (grub_emu_SOURCES): likewise
34297 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
34298 (grub_emu_SOURCES): likewise
34299 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
34300 (grub_emu_SOURCES): likewise
34301 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
34302 (grub_emu_SOURCES): likewise
34303 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
34304 (grub_emu_SOURCES): likewise
34305 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
34306 (grub_emu_SOURCES): likewise
34307 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
34308 (grub_emu_SOURCES): likewise
34310 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
34312 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
34314 * kern/misc.c (grub_itoa): Removed function
34315 (grub_ltoa): likewise
34316 (grub_vsprintf): use grub_lltoa
34318 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
34322 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
34323 * conf/i386-coreboot.rmk: likewise
34324 * conf/i386-ieee1275.rmk: likewise
34325 * conf/powerpc-ieee1275.rmk: likewise
34327 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
34329 * INSTALL: Add that `./autogen.sh' needs to be run before
34332 2009-04-14 Bean <bean123ch@gmail.com>
34334 * Makefile.in (pkglib_DATA): Add handler.lst.
34335 (handler.lst): New rule.
34337 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
34338 * conf/i386-coreboot.rmk: Likewise.
34339 * conf/i386-ieee1275.rmk: Likewise.
34340 * conf/i386-efi.rmk: Likewise.
34341 * conf/x86_64-efi.rmk: Likewise.
34342 * conf/powerpc-ieee1275.rmk: Likewise.
34343 * conf/sparc64-ieee1275.rmk: Likewise.
34345 * genhandlerlist.sh: New file.
34347 * genmk.rb: Add rules to generate handler.lst.
34349 * include/grub/normal.h (grub_file_getline): New function definition.
34350 (read_handler_list): Likewise.
34351 (free_handler_list): Likewise.
34353 * include/grub/term.h (grub_term_register_input): Add name parameter
34354 for auto generation of handler.lst.
34355 (grub_term_register_output): Likewise.
34357 * normal/handler.c: New file.
34359 * normal/main.c (get_line): Renamed to grub_file_getline.
34360 (read_config_file): Use the newly renamed grub_file_getline.
34361 (read_command_list): Likewise.
34362 (read_fs_list): Likewise.
34363 (grub_normal_execute): Call read_handler_list to parse handler.lst.
34364 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
34366 * term/efi/console.c (grub_console_init): Add name parameter for auto
34367 generation of handler.lst.
34368 * term/gfxterm.c: Likewise.
34369 * term/i386/pc/at_keyboard.c: Likewise.
34370 * term/i386/pc/console.c: Likewise.
34371 * term/i386/pc/serial.c: Likewise.
34372 * term/i386/pc/vesafb.c: Likewise.
34373 * term/i386/pc/vga.c: Likewise.
34374 * term/i386/pc/vga_text.c: Likewise.
34375 * term/ieee1275/ofconsole.c: Likewise.
34376 * term/usb_keyboard.c: Likewise.
34378 2009-04-14 Bean <bean123ch@gmail.com>
34380 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
34381 properly with null character.
34383 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
34385 * configure: Remove.
34386 * config.h.in: Likewise.
34387 * stamp-h.in: Likewise.
34388 * DISTLIST: Likewise.
34389 * conf/common.mk: Likewise.
34390 * conf/i386-coreboot.mk: Likewise.
34391 * conf/i386-efi.mk: Likewise.
34392 * conf/i386-ieee1275.mk: Likewise.
34393 * conf/i386.mk: Likewise.
34394 * conf/i386-pc.mk: Likewise.
34395 * conf/powerpc-ieee1275.mk: Likewise.
34396 * conf/sparc64-ieee1275.mk: Likewise.
34397 * conf/x86_64-efi.mk: Likewise.
34399 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
34402 2009-04-14 John Stanley <jpsinthemix@verizon.net>
34403 David S. Miller <davem@davemloft.net>
34405 * util/hostdisk.c (make_device_name): Fix buffer length
34408 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
34410 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
34411 <sys/param.h> and <sys/sysctl.h>.
34412 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
34413 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
34414 opening the device and reset them afterwards.
34416 2009-04-13 Pavel Roskin <proski@gnu.org>
34418 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
34419 Reported by John Stanley <jpsinthemix@verizon.net>
34421 2009-04-13 Robert Millan <rmh@aybabtu.com>
34423 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
34424 that name for menuentries when appropriate.
34426 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
34428 * util/grub.d/10_freebsd.in: Add a missing `fi'.
34430 2009-04-13 Robert Millan <rmh@aybabtu.com>
34432 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
34433 to Linux, simply abort telling the user it's no longer supported.
34435 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
34437 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
34438 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
34439 `freebsd_loadenv' only when devices.hints exist.
34441 2009-04-13 Pavel Roskin <proski@gnu.org>
34443 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
34445 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
34447 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
34449 (grub_drive): Likewise.
34451 2009-04-13 David S. Miller <davem@davemloft.net>
34453 * kern/sparc64/ieee1275/ieee1275.c: New file.
34454 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
34455 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
34456 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
34457 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
34458 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
34459 grub_ieee1275_alloc_physmem): Declare new exported functions.
34461 * include/grub/sparc64/ieee1275/loader.h: New file.
34462 * include/grub/sparc64/ieee1275/memory.h: Likewise.
34463 * include/grub/sparc64/kernel.h: Likewise.
34464 * loader/sparc64/ieee1275/linux.c: Likewise.
34466 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
34467 (grub_fstest_SOURCES): Likewise.
34469 * util/hostdisk.c (make_device_name): Do not make any assumptions
34470 about the length of drive names.
34472 * kern/dl.c (grub_dl_load_file): Close file immediately when
34473 we are done using it.
34475 2009-04-12 David S. Miller <davem@davemloft.net>
34477 * kern/misc.c (grub_ltoa): Fix cast when handling negative
34478 values. Noticed by Pavel Roskin.
34480 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
34483 * genmk.rb: Add more flexible image type specification, also
34484 pass --strip-unneeded to objcopy.
34485 * conf/i386-pc.rmk: Use *_FORMAT.
34486 * conf/i386-pc.mk: Rebuilt.
34488 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
34489 (OFDISK_HASH_SZ): Define.
34490 (ofdisk_hash): New hash table.
34491 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
34492 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
34493 instead of device phandle which is not unique.
34495 * kern/sparc64/ieee1275/init.c: Delete, replace with...
34496 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
34497 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
34498 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
34499 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
34500 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
34501 GRUB_KERNEL_MACHINE_DATA_END): Define.
34502 (grub_kernel_image_size, grub_total_module_size): Declare.
34504 2009-04-12 Pavel Roskin <proski@gnu.org>
34506 * configure.ac: Change the logic when we check for target tools.
34507 Do it when the target is specified and it's different from the
34508 specified value of the host.
34510 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
34512 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
34513 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
34514 GNU/kFreeBSD. Check if a device is a character device. Use
34515 DIOCGMEDIASIZE to get the size.
34516 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
34517 support for GNU/kFreeBSD.
34518 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
34519 is a character device instead of a block device. Add support for
34520 FreeBSD device names.
34522 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
34523 is a character device instead of a block device.
34525 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
34526 is a character device instead of a block device.
34528 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
34530 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
34531 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
34532 FreeBSD. Check if a device is a character device. Use
34533 DIOCGMEDIASIZE to get the size.
34534 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
34535 support for FreeBSD.
34536 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
34537 is a character device instead of a block device. Add support for
34538 FreeBSD device names.
34540 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
34541 a character device instead of a block device.
34542 (grub_util_check_char_device): New function.
34544 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
34545 a character device instead of a block device.
34547 * include/grub/util/getroot.h (grub_util_check_char_device): New
34550 2009-04-11 David S. Miller <davem@davemloft.net>
34552 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
34554 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
34555 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
34556 function, if present.
34557 (__bswapdi2): Likewise.
34559 * include/grub/sparc64/ieee1275/boot.h: New file.
34560 * boot/sparc64/ieee1275/boot.S: Likewise.
34561 * boot/sparc64/ieee1275/diskboot.S: Likewise.
34563 * kern/misc.c (grub_ltoa): New function.
34564 (grub_vsprintf): Use it to format 'long' integers.
34566 2009-04-10 David S. Miller <davem@davemloft.net>
34568 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
34569 slots are of type grub_ieee1275_cell_t.
34570 (grub_nand_read): Likewise.
34571 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
34572 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
34573 macros are used to compare values in arg/ret block of the call.
34574 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
34575 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
34576 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
34577 grub_ieee1275_instance_to_path, grub_ieee1275_write,
34578 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
34579 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
34580 grub_ieee1275_close, grub_ieee1275_set_property,
34581 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
34582 grub_ieee1275_cell_t.
34583 * kern/ieee1275/openfw.c (grub_map): Likewise.
34584 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
34585 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
34587 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
34588 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
34589 (grub_devalias_iterate): Likewise.
34591 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
34595 * fs/ufs.c (INODE_NBLOCKS): new definition
34596 (struct grub_ufs_dirent): added fields for non-BSD dirents
34597 (grub_ufs_get_file_block): fixed double indirect handling
34598 (grub_ufs_lookup_symlink): use more robust way to determine whether
34600 (grub_ufs_find_file): support for non-BSD dirents
34601 (grub_ufs_dir): support for non-BSD dirents
34603 2009-04-10 Bean <bean123ch@gnail.com>
34605 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
34606 attribute, otherwise the size would be wrong for i386 platform.
34608 * include/grub/pci.h (grub_pci_read_word): New inline function.
34609 (grub_pci_read_byte): Likewise.
34610 (grub_pci_write): Likewise.
34611 (grub_pci_write_word): Likewise.
34612 (grub_pci_write_byte): Likewise.
34614 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
34616 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
34617 (find_framebuf): Scan pci to locate the frame buffer address.
34619 * commands/efi/fixvideo.c: New file.
34621 * commands/efi/loadbios.c: Likewise.
34623 * commands/memrw.c: Likewise.
34625 * util/grub-dumpbios.in: Likewise.
34627 * conf/common.rmk (grub-dumpbios): New utility.
34628 (pkglib_MODULES): New module memrw.mod.
34629 (memrw_mod_SOURCE): New macro.
34630 (memrw_mod_CFLAGS): Likewise.
34631 (memrw_mod_LDFLAGS): Likewise.
34633 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
34635 (loadbios_mod_SOURCE): New macro.
34636 (loadbios_mod_CFLAGS): Likewise.
34637 (loadbios_mod_LDFLAGS): Likewise.
34638 (fixvideo_mod_SOURCE): Likewise.
34639 (fixvideo_mod_CFLAGS): Likewise.
34640 (fixvideo_mod_LDFLAGS): Likewise.
34642 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
34644 (loadbios_mod_SOURCE): New macro.
34645 (loadbios_mod_CFLAGS): Likewise.
34646 (loadbios_mod_LDFLAGS): Likewise.
34647 (fixvideo_mod_SOURCE): Likewise.
34648 (fixvideo_mod_CFLAGS): Likewise.
34649 (fixvideo_mod_LDFLAGS): Likewise.
34651 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
34653 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
34655 2009-04-07 David S. Miller <davem@davemloft.net>
34657 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
34658 support for R_SPARC_OLO10 relocations. Fix compile warning for
34659 R_SPARC_WDISP30 case.
34660 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
34662 2009-04-06 Pavel Roskin <proski@gnu.org>
34664 * include/grub/misc.h (ARRAY_SIZE): New macro.
34665 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
34667 * loader/i386/linux.c (allocate_pages): Use free_pages().
34668 (grub_linux_unload): Don't use free_pages().
34669 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
34670 wrong index. Treat all other modes as text modes.
34671 (grub_cmd_linux): Initialize vid_mode unconditionally to
34672 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
34674 * commands/help.c (print_command_help): Use cmd->prio, not
34675 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
34677 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
34681 * parttool/pcpart.c: new file
34682 * commands/parttool.c: likewise
34683 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
34684 (parttool_mod_SOURCES): new variable
34685 (parttool_mod_CFLAGS): likewise
34686 (parttool_mod_LDFLAGS): likewise
34687 (pcpart_mod_SOURCES): likewise
34688 (pcpart_mod_CFLAGS): likewise
34689 (pcpart_mod_LDFLAGS): likewise
34690 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
34691 and parttool/pcpart.c
34692 * conf/i386-efi.rmk: likewise
34693 * conf/i386-ieee1275.rmk: likewise
34694 * conf/i386-pc.rmk: likewise
34695 * conf/powerpc-ieee1275.rmk: likewise
34696 * conf/sparc64-ieee1275.rmk: likewise
34697 * conf/x86_64-ieee1275.rmk: likewise
34699 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
34701 Support for mtime and further expandability of dir command
34703 * include/grub/lib/datetime.h: moved to ...
34704 * include/grub/datetime.h: ... moved here and added
34705 declaration of grub_unixtime2datetime. All users updated
34706 * include/grub/fs.h: new syntax for dir and mtime functions in
34708 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
34709 and GRUB_FSHELP_FLAGS_MASK
34710 * commands/ls.c (grub_ls_list_files): Write mtime in long format
34711 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
34712 (grub_ext2_mtime): new function
34713 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
34714 (grub_hfsplus_mtime): new function
34715 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
34716 (GRUB_UFS_ATTR_FILE): likewise
34717 (GRUB_UFS_ATTR_LNK): likewise
34718 (struct grub_ufs_sblock): new fields mtime
34719 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
34721 (grub_ufs_dir): mtime support
34722 (grub_ufs_mtime): new function
34723 * fs/affs.c (grub_affs_dir): use new dir syntax
34724 * fs/afs.c (grub_afs_dir): likewise
34725 * fs/cpio.c (grub_cpio_dir): likewise
34726 * fs/fat.c (grub_fat_find_dir): likewise
34727 * fs/hfs.c (grub_hfs_dir): likewise
34728 * fs/iso9660.c (grub_iso9660_dir): likewise
34729 * fs/jfs.c (grub_jfs_dir): likewise
34730 * fs/minix.c (grub_minix_dir): likewise
34731 * fs/ntfs.c (grub_ntfs_dir): likewise
34732 * fs/reiserfs.c (grub_reiserfs_dir): likewise
34733 * fs/sfs.c (grub_sfs_dir): likewise
34734 * fs/xfs.c (grub_xfs_dir): likewise
34735 * util/hostfs.c (grub_hostfs_dir): likewise
34736 * lib/datetime.c: moved to ...
34737 * normal/datetime.c: ... moved here
34738 (grub_unixtime2datetime): new function
34739 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
34740 * normal/completion.c (iterate_dir): use new dir syntax
34741 * normal/misc.c (grub_normal_print_device_info): tell the
34742 last modification time of a volume
34743 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
34744 * conf/common.rmk: added lib/datetime.c to ls.mod
34745 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
34746 (normal_mod_SOURCES): likewise
34747 (datetime_mod_SOURCES): Removed lib/datetime.c
34748 * conf/i386-efi.rmk: likewise
34749 * conf/i386-ieee1275.rmk: likewise
34750 * conf/i386-pc.rmk: likewise
34751 * conf/powerpc-ieee1275.rmk: likewise
34752 * conf/sparc64-ieee1275.rmk: likewise
34753 * conf/x86_64-efi.rmk: likewise
34755 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
34757 Trim trailing spaces in FAT label and support mtools-like labels
34759 * fs/fat.c (grub_fat_iterate_dir): New function based
34760 on grub_fat_find_dir
34761 (grub_fat_find_dir): use grub_fat_iterate_dir
34762 (grub_fat_label): likewise
34764 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
34766 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
34768 remove extraneous kernel_elf_HEADERS
34770 2009-04-04 Bean <bean123ch@gnail.com>
34772 * include/grub/util/misc.h: Add dummy function fsync for mingw.
34774 * util/misc.c: Likewise.
34776 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
34778 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
34779 instead of grub_printf.
34781 2009-04-03 Robert Millan <rmh@aybabtu.com>
34783 * loader/i386/linux.c (grub_linux_setup_video): Fill
34784 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
34785 values from `mode info' structure instead of hardcoded
34788 2009-04-01 Pavel Roskin <proski@gnu.org>
34790 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
34792 * genmk.rb: Likewise.
34793 * configure.ac: Likewise.
34795 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
34797 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
34798 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
34800 2009-04-01 David S. Miller <davem@davemloft.net>
34802 * normal/sparc64/setjmp.S: Fix setjmp implementation.
34803 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
34804 (grub_setjmp): Mark with 'returns_twice' attribute.
34805 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
34806 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
34807 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
34809 2009-04-01 Robert Millan <rmh@aybabtu.com>
34811 Reapply fix from 2008-07-28 which was accidentally reverted; also
34812 perform the same fix to a similar check in same function.
34814 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
34815 with the same number are found, just use issue a warning with
34816 grub_dprintf(), as this error has been reported to be non-fatal.
34818 2009-03-31 Pavel Roskin <proski@gnu.org>
34820 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
34821 for cross-compilation.
34823 2009-03-30 Robert Millan <rmh@aybabtu.com>
34825 Fix i386-ieee1275 build.
34827 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
34828 Remove declaration.
34830 2009-03-30 Pavel Roskin <proski@gnu.org>
34832 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
34833 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
34834 zero-terminated, rely only on the strlen value. Fix comparison
34835 of strings differing in length.
34837 2009-03-30 Robert Millan <rmh@aybabtu.com>
34839 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
34840 checking for abi version. Improve error messages on BIOS to notify
34841 user about `linux16' command.
34843 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
34847 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
34848 in case of collision
34849 * disk/scsi.c (grub_scsi_open): free scsi in case of error
34851 2009-03-29 Robert Millan <rmh@aybabtu.com>
34853 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
34854 set `vid_mode' accordingly.
34855 (grub_linux_boot): Process `vid_mode' and set video mode.
34857 2009-03-29 Robert Millan <rmh@aybabtu.com>
34859 * util/grub.d/10_linux.in (linux_entry): New function.
34860 Factorize generation of Linux boot entries.
34862 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
34864 Make the format of Environment Block plain text. The boot loader
34865 part is not tested well yet.
34867 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
34869 (envblk): Likewise.
34870 (usage): Remove "info" and "clear". Add "unset". Update the
34871 description of "set", as this does not delete variables any
34873 (create_envblk_file): Complete rewrite.
34874 (open_envblk_file): Likewise.
34875 (cmd_info): Removed.
34876 (cmd_list): Likewise.
34877 (cmd_set): Likewise.
34878 (cmd_clear): Likewise.
34879 (list_variables): New function.
34880 (write_envblk): Likewise.
34881 (set_variables): Likewise.
34882 (unset_variables): Likewise.
34883 (main): Complete rewrite.
34885 * commands/loadenv.c (buffer): Removed.
34886 (envblk): Likewise.
34887 (open_envblk_file): New function.
34888 (read_envblk_file): Complete rewrite.
34889 (grub_cmd_load_env): Likewise.
34890 (grub_cmd_list_env): Likewise.
34891 (struct blocklist): New struct.
34892 (free_blocklists): New function.
34893 (check_blocklists): Likewise.
34894 (write_blocklists): Likewise.
34895 (grub_cmd_save_env): Complete rewrite.
34897 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
34898 a plain text signature.
34899 (GRUB_ENVBLK_MAXLEN): Removed.
34900 (struct grub_envblk): Complete rewrite.
34901 (grub_envblk_find): Removed.
34902 (grub_envblk_insert): Likewise.
34903 (grub_envblk_open): New prototype.
34904 (grub_envblk_set): Likewise.
34905 (grub_envblk_delete): Put const to VALUE.
34906 (grub_envblk_iterate): Put const to NAME and VALUE.
34907 (grub_envblk_close): New prototype.
34908 (grub_envblk_buffer): New inline function.
34909 (grub_envblk_size): Likewise.
34911 * lib/envblk.c: Include grub/mm.h.
34912 (grub_env_find): Removed.
34913 (grub_envblk_open): New function.
34914 (grub_envblk_close): Likewise.
34915 (escaped_value_len): Likewise.
34916 (find_next_line): Likewise.
34917 (grub_envblk_insert): Removed.
34918 (grub_envblk_set): New function.
34919 (grub_envblk_delete): Complete rewrite.
34920 (grub_envblk_iterate): Likewise.
34922 2009-03-28 Robert Millan <rmh@aybabtu.com>
34924 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
34925 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
34926 variables. Use 16-bit loader.
34927 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
34929 * kern/i386/loader.S (grub_linux_boot): Rename to ...
34930 (grub_linux16_boot): ... this. Update all users.
34931 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
34932 (grub_linux_boot): ... this. Update all users.
34934 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
34935 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
34936 commands to `linux16' and `initrd16'.
34937 (GRUB_MOD_FINI(linux)): Rename to ...
34938 (GRUB_MOD_FINI(linux16)): ... this.
34940 2009-03-24 Pavel Roskin <proski@gnu.org>
34942 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
34943 not just for compilation.
34945 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
34947 Move multiboot helper out of kernel
34949 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
34950 `loader/i386/multiboot_helper.S'.
34951 * conf/i386-coreboot.rmk: Likewise
34952 * conf/i386-ieee1275.rmk: Likewise
34954 * kern/i386/loader.S: Move multiboot helpers from here...
34955 * loader/i386/multiboot_helper.S: ...moved here
34956 * include/grub/i386/loader.h: Move declarations of multiboot
34957 helpers from here...
34958 * include/grub/i386/multiboot.h: ...moved here
34959 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
34961 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
34963 * kern/env.c (grub_env_context_open): Added an argument to specify
34964 whether a new context inherits exported variables from current
34965 one. This is useful when making a sandbox to interpret a config
34967 All callers updated.
34969 * include/grub/env.h (grub_env_context_open): Updated the prototype.
34971 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
34973 * kern/env.c (grub_env_context_close): Fix memory leaks.
34975 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
34977 * normal/main.c (grub_normal_execute): Added an argument
34978 BATCH to specify if an interactive interface should be provided
34979 after reading a config file.
34980 All callers updated.
34981 (read_command_list): Prevent being executed twice.
34982 (read_fs_list): Likewise.
34984 * include/grub/normal.h (grub_normal_execute): Updated the
34987 2009-03-22 Pavel Roskin <proski@gno.org>
34989 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
34991 * kern/i386/pc/startup.S: Likewise.
34992 * kern/i386/efi/startup.S: Likewise.
34993 * kern/i386/ieee1275/startup.S: Likewise.
34994 * kern/i386/coreboot/startup.S: Likewise.
34995 * kern/x86_64/efi/startup.S: Likewise.
34997 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
34998 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
34999 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
35001 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
35003 Bugfixes in multiboot for bugs uncovered by solaris kernel.
35005 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
35007 Use vaddr of correct segment for entry_point.
35009 2009-03-21 Bean <bean123ch@gmail.com>
35011 * commands/blocklist.c: Add include file <grub/command.h>, remove
35012 <grub/normal.h> and <grub/arg.h>.
35013 (grub_cmd_blocklist): Use the new command interface.
35014 (GRUB_MOD_INIT): Likewise.
35015 (GRUB_MOD_FINI): Likewise.
35016 * commands/boot.c: Likewise.
35017 * commands/cat.c: Likewise.
35018 * commands/cmp.c: Likewise.
35019 * commands/configfile.c: Likewise.
35020 * commands/crc.c: Likewise.
35021 * commands/echo.c: Likewise.
35022 * commands/halt.c: Likewise.
35023 * commands/handler.c: Likewise.
35024 * commands/hdparm.c: Likewise.
35025 * commands/help.c: Likewise.
35026 * commands/hexdump.c: Likewise.
35027 * commands/loadenv.c: Likewise.
35028 * commands/ls.c: Likewise.
35029 * commands/lsmmap.c: Likewise.
35030 * commands/lspci.c: Likewise.
35031 * commands/loadenv.c: Likewise.
35032 * commands/read.c: Likewise.
35033 * commands/reboot.c: Likewise.
35034 * commands/search.c: Likewise.
35035 * commands/sleep.c: Likewise.
35036 * commands/test.c: Likewise.
35037 * commands/usbtest.c: Likewise.
35038 * commands/videotest.c: Likewise.
35039 * commands/i386/cpuid.c: Likewise.
35040 * commands/i386/pc/halt.c: Likewise.
35041 * commands/i386/pc/play.c: Likewise.
35042 * commands/i386/pc/pxecmd.c: Likewise.
35043 * commands/i386/pc/vbeinfo.c: Likewise.
35044 * commands/i386/pc/vbetest.c: Likewise.
35045 * commands/ieee1275/suspend.c: Likewise.
35046 * disk/loopback.c: Likewise.
35047 * font/font_cmd.c: Likewise.
35048 * hello/hello.c: Likewise.
35049 * loader/efi/appleloader.c: Likewise.
35050 * loader/efi/chainloader.c: Likewise.
35051 * loader/i386/bsd.c: Likewise.
35052 * loader/i386/efi/linux.c: Likewise.
35053 * loader/i386/ieee1275/linux.c: Likewise.
35054 * loader/i386/linux.c: Likewise.
35055 * loader/i386/pc/chainloader.c: Likewise.
35056 * loader/i386/pc/linux.c: Likewise.
35057 * loader/powerpc/ieee1275/linux.c: Likewise.
35058 * loader/multiboot_loader.c: Likewise.
35059 * term/gfxterm.c: Likewise.
35060 * term/i386/pc/serial.c: Likewise.
35061 * term/terminfo.c: Likewise.
35063 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
35064 * term/i386/pc/vga.c: Likewise.
35065 * video/readers/jpeg.c: Likewise.
35066 * video/readers/png.c: Likewise.
35067 * video/readers/tga.c: Likewise.
35069 * util/grub-fstest (cmd_loopback): Removed.
35070 (cmd_blocklist): Likewise.
35071 (cmd_ls): Likewise.
35072 (grub_register_command): Likewise.
35073 (grub_unregister_command): Likewise.
35074 (execute_command): Use grub_command_find to locate command and execute
35077 * include/grub/efi/chainloader.h: Removed.
35078 * loader/efi/chainloader_normal.c: Likewise.
35079 * loader/i386/bsd_normal.c: Likewise.
35080 * loader/i386/pc/chainloader_normal.c: Likewise.
35081 * loader/i386/pc/multiboot_normal.c: Likewise.
35082 * loader/linux_normal.c: Likewise.
35083 * loader/multiboot_loader_normal.c: Likewise.
35084 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
35086 * gencmdlist.sh: Scan new registration command grub_register_extcmd
35087 and grub_register_command_p1.
35089 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
35090 kern/command.c, lib/arg.c and commands/extcmd.c.
35091 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
35092 (minicmd_mod_SOURCES): New variable.
35093 (minicmd_mod_CFLAGS): Likewise.
35094 (minicmd_mod_LDFLAGS): Likewise.
35095 (extcmd_mod_SOURCES): Likewise.
35096 (extcmd_mod_CFLAGS): Likewise.
35097 (extcmd_mod_LDFLAGS): Likewise.
35098 (boot_mod_SOURCES): Removed.
35099 (boot_mod_CFLAGS): Likewise.
35100 (boot_mod_LDFLAGS): Likewise.
35102 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
35104 (kernel_img_HEADERS): Add command.h.
35105 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
35106 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
35108 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
35109 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
35110 remove the corresponding normal mode command.
35111 (normal_mod_SOURCES): Remove normal/arg.c.
35112 * conf/i386-coreboot.rmk: Likewise.
35113 * conf/i386-efi.rmk: Likewise.
35114 * conf/i386-ieee1275.rmk: Likewise.
35115 * conf/powerpc-ieee1275.rmk: Likewise.
35116 * conf/x86_64-efi.rmk: Likewise.
35118 * include/grub/arg.h: Move from here ...
35119 * include/grub/lib/arg.h: ... to here.
35121 * normal/arg.c: Move from here ...
35122 * lib/arg.c: ... to here.
35124 * commands/extcmd.c: New file.
35125 * commands/minicmd.c: Likewise.
35126 * include/grub/command.h: Likewise.
35127 * include/grub/extcmd.h: Likewise.
35128 * kern/command.c: Likewise.
35129 * kern/corecmd.c: Likewise.
35131 * kern/list.c (grub_list_iterate): Return int instead of void.
35132 (grub_list_insert): New function.
35133 (grub_prio_list_insert): Likewise.
35135 * kern/rescue.c (grub_rescue_command): Removed.
35136 (grub_rescue_command_list): Likewise.
35137 (grub_rescue_register_command): Likewise.
35138 (grub_rescue_unregister_command): Likewise.
35139 (grub_rescue_cmd_boot): Move to minicmd.c
35140 (grub_rescue_cmd_help): Likewise.
35141 (grub_rescue_cmd_info): Likewise.
35142 (grub_rescue_cmd_boot): Likewise.
35143 (grub_rescue_cmd_testload): Likewise.
35144 (grub_rescue_cmd_dump): Likewise.
35145 (grub_rescue_cmd_rmmod): Likewise.
35146 (grub_rescue_cmd_lsmod): Likewise.
35147 (grub_rescue_cmd_exit): Likewise.
35148 (grub_rescue_print_devices): Moved to corecmd.c.
35149 (grub_rescue_print_files): Likewise.
35150 (grub_rescue_cmd_ls): Likewise.
35151 (grub_rescue_cmd_insmod): Likewise.
35152 (grub_rescue_cmd_set): Likewise.
35153 (grub_rescue_cmd_unset): Likewise.
35154 (attempt_normal_mode): Use grub_command_find to get normal module.
35155 (grub_enter_rescue_mode): Use grub_register_core_commands to register
35156 commands, remove grub_rescue_register_command calls.
35158 * normal/command.c (grub_register_command): Removed.
35159 (grub_unregister_command): Likewise.
35160 (grub_command_find): Likewise.
35161 (grub_iterate_commands): Likewise.
35162 (rescue_command): Likewise.
35163 (export_command): Moved to corecmd.c.
35164 (set_command): Removed.
35165 (unset_command): Likewise.
35166 (insmod_command): Likewise.
35167 (rmmod_command): Likewise.
35168 (lsmod_command): Likewise.
35169 (grub_command_init): Likewise.
35171 * normal/completion.c (iterate_command): Use cmd->prio to check for
35173 (complete_arguments): Use grub_extcmd_t structure to find options.
35174 (grub_normal_do_completion): Change function grub_iterate_commands to
35175 grub_command_iterate.
35177 * normal/execute.c (grub_script_execute_cmd): No need to parse
35180 * normal/main.c (grub_dyncmd_dispatcher): New function.
35181 (read_command_list): Register unload commands as dyncmd.
35182 (grub_cmd_normal): Use new command interface, register rescue,
35183 unregister normal at entry, register normal, unregister rescue at exit.
35185 * include/grub/list.h (grub_list_test_t): New type.
35186 (grub_list_iterate): Return int instead of void.
35187 (grub_list_insert): New function.
35188 (GRUB_AS_NAMED_LIST_P): New macro.
35189 (GRUB_AS_PRIO_LIST): Likewise.
35190 (GRUB_AS_PRIO_LIST_P): Likewise.
35191 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
35192 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
35193 (grub_prio_list): New structure.
35194 (grub_prio_list_insert): New function.
35195 (grub_prio_list_remove): New inline function.
35197 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
35198 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
35199 (GRUB_COMMAND_FLAG_MENU): Likewise.
35200 (GRUB_COMMAND_FLAG_BOTH): Likewise.
35201 (GRUB_COMMAND_FLAG_TITLE): Likewise.
35202 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
35203 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
35204 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
35205 (grub_command): Likewise.
35206 (grub_register_command): Likewise.
35207 (grub_command_find): Likewise.
35208 (grub_iterate_commands): Likewise.
35209 (grub_command_init): Likewise.
35210 (grub_arg_parse): Likewise.
35211 (grub_arg_show_help): Likewise.
35213 * include/grub/rescue.h (grub_rescue_register_command): Removed.
35214 (grub_rescue_unregister_command): Likewise.
35216 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
35217 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
35218 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
35220 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
35221 grub_rescue_cmd_initrd.
35222 * include/grub/i386/loader.h: Likewise.
35223 * include/grub/x86_64/loader.h: Likewise.
35225 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
35227 2009-03-21 Bean <bean123ch@gmail.com>
35229 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
35230 instead of stat in mingw environment.
35232 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
35234 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
35236 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
35239 2009-03-21 Bean <bean123ch@gmail.com>
35241 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
35242 out of range error.
35244 2009-03-18 Michel Dänzer <michel@daenzer.net>
35246 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
35247 checking inode flags for EXT4_EXTENTS_FLAG.
35249 2009-03-18 Robert Millan <rmh@aybabtu.com>
35251 * loader/i386/linux.c: Include `<grub/video.h>' and
35252 `<grub/i386/pc/vbe.h>'..
35253 (grub_linux_setup_video): New function. Loosely based on the EFI one.
35254 (grub_linux32_boot): Attempt to configure video settings with
35255 grub_linux_setup_video().
35256 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
35257 to avoid grub_console_fini() which would step out of graphical mode
35260 2009-03-14 Robert Millan <rmh@aybabtu.com>
35262 Fix build on powerpc.
35263 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
35265 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
35267 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
35268 background image command.
35270 2009-03-12 Colin D Bennett <colin@gibibit.com>
35272 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
35273 (grub_gfxterm_putchar): Extract pairs of identical calls to
35274 draw_cursor out of conditional blocks.
35276 2009-03-11 Pavel Roskin <proski@gnu.org>
35278 * fs/hfs.c (grub_hfs_strncasecmp): New function.
35279 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
35281 2009-03-11 Robert Millan <rmh@aybabtu.com>
35283 * loader/i386/multiboot_elfxx.c
35284 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
35286 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
35288 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
35291 2009-03-11 Robert Millan <rmh@aybabtu.com>
35293 * loader/i386/multiboot.c (code_size): New variable.
35294 (grub_multiboot): Define offsets by adding to `code_size' rather
35295 than subtracting from `grub_multiboot_payload_size'. Provide
35296 4-byte alignment to MBI and others by increasing
35297 `boot_loader_name_length' appropriately.
35299 * loader/i386/multiboot_elfxx.c
35300 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
35302 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
35304 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
35307 2009-03-08 Robert Millan <rmh@aybabtu.com>
35309 Make loader/i386/linux.c usable on i386-pc again.
35311 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
35313 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
35316 2009-03-07 Bean <bean123ch@gmail.com>
35318 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
35321 2009-03-06 Robert Millan <rmh@aybabtu.com>
35323 Fix display issue on terminals with screen size other than 80x25
35324 (e.g. gfxterm with resolution higher than 640x480).
35326 * normal/main.c (grub_normal_init_page): Display title text in a
35327 position relative to the center of the terminal instead of relying
35328 on a hardcoded offset.
35330 2009-03-04 Robert Millan <rmh@aybabtu.com>
35332 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
35335 * Makefile.in (host_kernel): New variable.
35336 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
35337 scripts instead of just the windows one.
35338 * configure.ac: Initialize and AC_SUBST `host_kernel'.
35340 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
35342 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
35344 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35345 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35346 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35347 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35348 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35349 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35351 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
35353 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
35354 or if there's no space for the disk label and print the partition number on a
35357 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
35359 * util/misc.c: Include <time.h>.
35360 (grub_millisleep): New function.
35362 2009-03-04 Bean <bean123ch@gmail.com>
35364 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
35365 another option -mno-red-zone.
35367 * commands/handler.c: Change module description.
35369 * kern/handler.c: Add missing space at the end of description line.
35371 * kern/list.c: Likewise.
35373 2009-03-03 Robert Millan <rmh@aybabtu.com>
35375 Move more components to the relocation area, and fix mbi pointer
35376 handling to use the destination rather than the origin (thanks to
35377 Vladimir Serbinenko for spotting).
35379 * loader/i386/multiboot.c (mbi_dest): New variable.
35380 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
35381 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
35384 2009-03-01 Bean <bean123ch@gmail.com>
35386 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
35387 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
35388 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
35389 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
35391 * loader/i386/efi/linux.c (acpi_guid): New variable.
35392 (acpi_guid): Likewise.
35393 (EBDA_SEG_ADDR): New constant.
35394 (LOW_MEM_ADDR): Likewise.
35395 (FAKE_EBDA_SEG): Likewise.
35396 (fake_bios_data): New function.
35397 (grub_linux_boot): Call fake_bios_data.
35399 2009-03-01 Bean <bean123ch@gmail.com>
35401 * commands/terminal.c: Removed.
35403 * commands/handler.c: New file.
35405 * include/grub/list.h: Likewise.
35407 * include/grub/handler.h: Likewise.
35409 * kern/list.c: Likewise.
35411 * kern/handler.c: Likewise.
35413 * kern/term.h: Include header file <grub/handler.h>.
35414 (grub_term_input): Move next field to the beginning.
35415 (grub_term_output): Likewise.
35416 (grub_term_input_class): New variable.
35417 (grub_term_output_class): Likewise.
35418 (grub_term_register_input): Changed to inline function.
35419 (grub_term_register_output): Likewise.
35420 (grub_term_unregister_input): Likewise.
35421 (grub_term_unregister_output): Likewise.
35422 (grub_term_set_current_input): Likewise.
35423 (grub_term_set_current_output): Likewise.
35424 (grub_term_get_current_input): Likewise.
35425 (grub_term_get_current_output): Likewise.
35426 (grub_term_iterate_input): Removed.
35427 (grub_term_iterate_output): Likewise.
35429 * kern/term.c (grub_term_list_input): Removed.
35430 (grub_term_list_output): Likewise.
35431 (grub_term_input_class): New variable.
35432 (grub_term_output_class): Likewise.
35433 (grub_cur_term_input): Change variable as macro.
35434 (grub_cur_term_output): Likewise.
35435 (grub_term_register_input): Removed.
35436 (grub_term_register_output): Likewise.
35437 (grub_term_unregister_input): Likewise.
35438 (grub_term_unregister_output): Likewise.
35439 (grub_term_set_current_input): Likewise.
35440 (grub_term_set_current_output): Likewise.
35441 (grub_term_iterate_input): Likewise.
35442 (grub_term_iterate_output): Likewise.
35443 (grub_term_get_current_input): Likewise.
35444 (grub_term_get_current_output): Likewise.
35446 * util/grub-editenv.c: Include header file <grub/handler.h>.
35447 (grub_term_get_current_input): Removed.
35448 (grub_term_get_current_output): Likewise.
35449 (grub_term_input_class): New variable.
35450 (grub_term_output_class): Likewise.
35452 * util/grub-fstest.c (grub_term_get_current_input): Removed.
35453 (grub_term_get_current_output): Likewise.
35454 (grub_term_input_class): New variable.
35455 (grub_term_output_class): Likewise.
35457 * util/grub-probe.c (grub_term_get_current_input): Removed.
35458 (grub_term_get_current_output): Likewise.
35459 (grub_term_input_class): New variable.
35460 (grub_term_output_class): Likewise.
35462 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
35463 (grub_term_get_current_output): Likewise.
35464 (grub_term_input_class): New variable.
35465 (grub_term_output_class): Likewise.
35467 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
35468 (terminal_mod_SOURCES): Likewise.
35469 (terminal_mod_CFLAGS): Likewise.
35470 (terminal_mod_LDFLAGS): Likewise.
35472 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
35474 (kernel_img_SOURCES): Add list.c and handler.c.
35475 (kernel_img_HEADERS): Add list.h and handler.h.
35477 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
35479 (kernel_mod_SOURCES): Add list.c and handler.c.
35480 (kernel_mod_HEADERS): Add list.h and handler.h.
35482 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
35484 (kernel_elf_SOURCES): Add list.c and handler.c.
35485 (kernel_elf_HEADERS): Add list.h and handler.h.
35487 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
35489 (kernel_elf_SOURCES): Add list.c and handler.c.
35490 (kernel_elf_HEADERS): Add list.h and handler.h.
35492 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
35494 (kernel_mod_SOURCES): Add list.c and handler.c.
35495 (kernel_mod_HEADERS): Add list.h and handler.h.
35497 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
35499 (kernel_elf_SOURCES): Add list.c and handler.c.
35500 (kernel_elf_HEADERS): Add list.h and handler.h.
35502 2009-02-27 Robert Millan <rmh@aybabtu.com>
35504 Factorize elf32 / elf64 code in Multiboot loader. This will
35505 prevent it from getting out of sync again.
35507 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
35508 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
35509 grub_multiboot_load_elf64): Move from here ...
35510 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
35511 grub_multiboot_load_elf): ... to here (new file).
35513 2009-02-27 Robert Millan <rmh@aybabtu.com>
35515 * util/grub.d/10_linux.in: Rename "single-user mode" to
35518 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
35520 Don't leak in SCSI code.
35521 * disk/scsi.c (grub_scsi_close): free `scsi'.
35523 2009-02-27 Robert Millan <rmh@aybabtu.com>
35525 * loader/i386/pc/multiboot.c: Move from here ...
35526 * loader/i386/multiboot.c: ... to here. Update all users.
35528 2009-02-27 Robert Millan <rmh@aybabtu.com>
35530 Patch from Alexandre Bique <bique.alexandre@gmail.com>
35531 * util/i386/pc/grub-setup.c (setup): Fix directory path.
35533 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
35535 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
35538 2009-02-27 Robert Millan <rmh@aybabtu.com>
35540 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
35541 `0x' qualifier as 0 when base is specified as parameter).
35543 2009-02-24 Bean <bean123ch@gmail.com>
35545 * configure.ac: Check for -mcmodel=large in x86_64 target.
35547 * include/grub/efi/api.h (efi_call_10): New macro.
35548 (efi_wrap_10): New function.
35550 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
35551 (GRUB_PE32_REL_BASED_HIGH): Likewise.
35552 (GRUB_PE32_REL_BASED_LOW): Likewise.
35553 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
35554 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
35555 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
35556 (GRUB_PE32_REL_BASED_SECTION): Likewise.
35557 (GRUB_PE32_REL_BASED_REL): Likewise.
35558 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
35559 (GRUB_PE32_REL_BASED_DIR64): Likewise.
35560 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
35562 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
35565 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
35566 (efi_wrap_10): New function.
35568 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
35570 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
35571 MB/MBP model (NV chipset).
35572 (devdata_devs): Add devpath_5 to the list.
35574 * load/i386/efi/linux.c (video_base): Remove variable.
35575 (RGB_MASK): New macro.
35576 (RGB_MAGIC): Likewise.
35577 (LINE_MIN): Likewise.
35578 (LINE_MAX): Likewise.
35579 (FBTEST_STEP): Likewise.
35580 (FBTEST_COUNT): Likewise.
35581 (fb_list): New variable.
35582 (grub_find_video_card): Remove function.
35583 (find_framebuf): New function.
35584 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
35587 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
35588 problem for x86_64.
35590 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
35592 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
35594 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
35597 2009-02-22 Robert Millan <rmh@aybabtu.com>
35599 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
35600 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
35601 in our relocation, instead of using it directly from heap. Also
35602 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
35604 2009-02-21 Robert Millan <rmh@aybabtu.com>
35606 Implement USB keyboard support (based on patch by Marco Gerards)
35608 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
35609 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
35610 (usb_keyboard_mod_LDFLAGS): New variables.
35612 * term/usb_keyboard.c: New file.
35614 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
35616 Corrected wrong declaration
35618 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
35620 2009-02-14 Christian Franke <franke@computer.org>
35622 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
35623 (grub_lspci_iter): Print class code and programming interface byte.
35625 2009-02-14 Christian Franke <franke@computer.org>
35627 * gendistlist.sh: Ignore `.svn' directories.
35629 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
35631 * fs/fat.c: Add 2009 to Copyright line.
35633 2009-02-14 Christian Franke <franke@computer.org>
35635 * commands/hdparm.c: New file. Provides `hdparm' command
35636 which sends ATA commands via grub_disk_ata_pass_through ().
35638 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
35640 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
35641 and <grub/cpu/io.h> to include/grub/ata.h.
35642 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
35643 (GRUB_CDROM_SECTOR_SIZE): Remove.
35644 (GRUB_ATA_*): Move to include/grub/ata.h.
35645 (GRUB_ATAPI_*): Likewise.
35646 (enum grub_ata_commands): Likewise.
35647 (enum grub_ata_timeout_milliseconds): Likewise.
35648 (struct grub_ata_device): Likewise.
35649 (grub_ata_regset): Likewise.
35650 (grub_ata_regget): Likewise.
35651 (grub_ata_regset2): Likewise.
35652 (grub_ata_regget2): Likewise.
35653 (grub_ata_check_ready): Likewise.
35654 (grub_ata_wait_not_busy): Remove static, exported in
35655 include/grub/ata.h.
35656 (grub_ata_wait_drq): Likewise.
35657 (grub_ata_pio_read): Likewise.
35659 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
35660 function for hdparm.mod.
35662 * include/grub/ata.h: New file, contains declarations from
35664 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
35666 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
35667 (grub_disk_ata_pass_through): New exported variable.
35669 * kern/disk.c (grub_disk_ata_pass_through): New variable.
35671 2009-02-13 Colin D Bennett <colin@gibibit.com>
35673 Support multiple fallback entries, and provide an API to support
35674 executing default+fallback menu entries. Renamed the `terminal' menu
35677 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
35678 variable declaration.
35679 (grub_menu_execute_callback): New structure declaration.
35680 (grub_menu_execute_callback_t): New typedef.
35681 (grub_menu_execute_with_fallback): New function declaration.
35682 (grub_menu_get_entry): Likewise.
35683 (grub_menu_get_timeout): Likewise.
35684 (grub_menu_set_timeout): Likewise.
35686 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
35688 * normal/menu.c (grub_wait_after_message): Moved to
35689 `normal/menu_text.c'.
35690 (draw_border): Likewise.
35691 (print_message): Likewise.
35692 (print_entry): Likewise.
35693 (print_entries): Likewise.
35694 (grub_menu_init_page): Likewise.
35695 (get_entry_number): Likewise.
35696 (print_timeout): Likewise.
35697 (run_menu): Likewise.
35698 (grub_menu_execute_entry): Likewise.
35699 (show_text_menu): Likewise.
35700 (get_and_remove_first_entry_number): New function.
35701 (grub_menu_execute_with_fallback): Likewise.
35702 (get_entry): Renamed to ...
35703 (grub_menu_get_entry): .. this and made it global.
35704 (get_timeout): Renamed to ...
35705 (grub_menu_get_timeout): ... this and made it global.
35706 (set_timeout): Renamed to ...
35707 (grub_menu_set_timeout): ... this and made it global.
35708 (grub_normal_terminal_menu_viewer): Renamed to ...
35709 (grub_normal_text_menu_viewer): ... this.
35711 * normal/menu_text.c: New file. Extracted text-menu-specific code
35712 from normal/menu.c.
35714 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
35715 (normal_mod_SOURCES): Likewise.
35717 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35718 (normal_mod_SOURCES): Likewise.
35720 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35721 (normal_mod_SOURCES): Likewise.
35723 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
35724 (normal_mod_SOURCES): Likewise.
35726 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35727 (normal_mod_SOURCES): Likewise.
35729 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35730 (normal_mod_SOURCES): Likewise.
35732 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35733 (normal_mod_SOURCES): Likewise.
35735 2009-02-11 Robert Millan <rmh@aybabtu.com>
35737 * util/grub.d/00_header.in: Update old reference to `font' command.
35739 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
35741 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
35743 Based on patch from Javier Martín.
35745 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
35747 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
35748 to avoid false positives with FAT.
35749 (grub_fstest_SOURCES): Likewise.
35750 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35751 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35752 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35753 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35754 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35755 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35757 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
35759 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
35760 bpb.version_specific.fat12_or_fat16.fstype and
35761 bpb.version_specific.fat32.fstype.
35763 2009-02-08 Robert Millan <rmh@aybabtu.com>
35765 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
35767 2009-02-08 Robert Millan <rmh@aybabtu.com>
35769 * Makefile.in (host_os, host_cpu): New variables.
35770 (target_os): Remove. Update all users.
35772 2009-02-08 Marco Gerards <marco@gnu.org>
35774 * Makefile.in (enable_grub_emu_usb): New variable.
35775 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
35776 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
35777 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
35778 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
35779 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
35780 `usbtest.mod' and `usbms.mod'.
35781 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
35782 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
35783 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
35784 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
35785 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
35788 * disk/usbms.c: New file.
35790 * include/grub/usb.h: Likewise.
35792 * include/grub/usbtrans.h: Likewise.
35794 * include/grub/usbdesc.h: Likewise.
35796 * bus/usb/usbtrans.c: Likewise.
35798 * bus/usb/ohci.c: Likewise.
35800 * bus/usb/uhci.c: Likewise.
35802 * bus/usb/usbhub.c: Likewise.
35804 * bus/usb/usb.c: Likewise.
35806 * commands/usbtest.c: Likewise.
35808 * util/usb.c: Likewise.
35810 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
35812 * configure.ac: Test for libusb presence.
35814 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
35816 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
35818 * kern/mm.c: Add more comments.
35820 2009-02-08 Robert Millan <rmh@aybabtu.com>
35822 Patch from Javier Martín.
35823 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
35824 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
35826 2009-02-08 Robert Millan <rmh@aybabtu.com>
35828 * fs/cpio.c: Split tar functionality to ...
35829 * fs/tar.c: ... here (new file). Update all users.
35831 2009-02-07 Robert Millan <rmh@aybabtu.com>
35833 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
35834 backward-incompatible features.
35836 Based on patch from Javier Martín, with some adjustments.
35838 2009-02-07 Michael Scherer <misc@mandriva.org>
35840 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
35842 2009-02-07 Robert Millan <rmh@aybabtu.com>
35844 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
35845 position of `disk/lvm.c' to ensure grub_init_all() always picks it
35846 after the RAID stuff.
35848 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
35850 Fixes problem when running vbetest command as reported by
35851 Vladimir Serbinenko <phcoder@gmail.com>.
35853 * (grub_vbe_set_video_mode): Fixed problem with text modes.
35855 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
35857 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
35858 /dev/md/NpN style mdraid devices.
35860 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
35862 * util/unifont2pff.rb: Remove.
35864 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
35866 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
35869 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
35871 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
35872 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35873 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35874 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35875 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35876 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35877 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35879 2009-02-02 Christian Franke <franke@computer.org>
35881 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
35883 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
35885 * INSTALL: Note that we now require at least autoconf 2.59 and
35886 that LZO is optional.
35888 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
35890 Base on patch on bug #24154 created by Tomas Tintera
35891 <trosos@seznam.cz>.
35893 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
35895 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
35897 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
35898 <bero@arklinux.org>.
35900 * normal/parser.y (script_init): Add missing semicolon.
35902 2009-01-31 Colin D Bennett <colin@gibibit.com>
35904 * normal/main.c: Add include to grub/menu_viewer.h.
35905 (free_menu_entry_classes): Added.
35906 (grub_normal_menu_addentry): Added class property handling.
35907 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
35908 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
35910 * normal/menu_viewer.c: New file.
35912 * normal/menu.c (run_menu_entry): Renamed to ...
35913 (grub_menu_execute_entry): ... this and made it as global.
35914 (grub_menu_run): Renamed to ...
35915 (show_text_menu): ... this and made it local.
35916 (show_text_menu): Adapt to new function names.
35917 (grub_normal_terminal_menu_viewer): New global variable.
35919 * include/grub/menu.h: New file.
35921 * include/grub/menu_viewer.h: New file.
35923 * include/grub/normal.h: Added include to grub/menu.h.
35924 (grub_menu_entry): Moved to include/grub/menu.h.
35925 (grub_menu_entry_t): Likewise.
35926 (grub_menu): Likewise.
35927 (grub_menu_t): Likewise.
35928 (grub_normal_terminal_menu_viewer): Added.
35929 (grub_menu_execute_entry): Likewise.
35930 (grub_menu_run): Removed.
35932 * DISTLIST: Added include/grub/menu.h.
35933 Added include/grub/menu_viewer.h.
35934 Added normal/menu_viewer.c.
35936 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
35938 * normal/execute.c (grub_script_execute_menuentry): Changed to use
35939 arglist for menutitle arguments.
35941 * normal/main.c (grub_normal_menu_addentry): Likewise.
35943 * normal/parser.y (menuentry): Likewise.
35945 * normal/script.c (grub_script_create_cmdmenu): Likewise.
35947 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
35948 (grub_script_create_cmdmenu): Likewise.
35950 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
35952 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
35955 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
35957 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
35959 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
35961 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
35963 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
35965 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
35967 2009-01-30 Christian Franke <franke@computer.org>
35969 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
35970 in option help text.
35972 2009-01-27 Pavel Roskin <proski@gnu.org>
35974 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
35976 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
35978 * commands/lsmmap.c: Add include to grub/machine/memory.h.
35980 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
35982 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
35983 unregister function.
35985 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
35987 * disk/scsi.c (grub_scsi_read): Fix sign problem.
35989 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
35991 * util/grub-mkfont.c (usage): Fix typo.
35993 * util/elf/grub-mkimage.c (load_modules): Fix warning.
35995 2009-01-26 Daniel Mierswa <impulze@impulze.org>
35997 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
35999 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
36001 * kern/misc.c (grub_strcasecmp): New function.
36002 (grub_strcasecmp): Use grub_size_t instead of int for length.
36004 * include/grub/misc.h: Update function prototypes.
36006 2009-01-26 Robert Millan <rmh@aybabtu.com>
36008 * configure.ac: Fix cross-compilation check.
36010 2009-01-22 Christian Franke <franke@computer.org>
36012 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
36013 (precision) digit string. Allow `.format2' without `format1' (width).
36014 Limit input chars for `%s' output to `format2' if specified. This is
36015 compatible with standard printf ().
36017 2009-01-22 Christian Franke <franke@computer.org>
36019 * disk/ata.c (grub_ata_wait_status): Replace by ...
36020 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
36021 other status bits may be invalid while BSY is asserted.
36022 (grub_ata_check_ready): New function.
36023 (grub_ata_cmd): Removed.
36024 (grub_ata_wait_drq): New function.
36025 (grub_ata_strncpy): Remove inline.
36026 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
36027 and error check now done by grub_ata_wait_drq ().
36028 (grub_ata_pio_write): Likewise.
36029 (grub_atapi_identify): Set DEV before check for !BSY. Use
36030 grub_ata_wait_drq () to wait for data.
36031 (grub_ata_device_initialize): Add status register check to
36032 detect missing SATA slave devices. Add debug messages.
36033 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
36034 (grub_atapi_packet): Set DEV before check for !BSY. Replace
36035 transfer loop by grub_ata_pio_write ().
36036 (grub_ata_identify): Set DEV before check for !BSY. Use
36037 grub_ata_wait_drq () to wait for data.
36038 (grub_ata_setaddress): Set DEV before check for !BSY.
36039 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
36040 read/write in one loop. Fix invalid command on write. Fix incomplete
36041 command on (size % batch) == 0. Add missing error check after write of
36042 last block. Add debug messages.
36043 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
36045 2009-01-19 Christian Franke <franke@computer.org>
36047 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
36048 (GRUB_ATAPI_IREASON_*): Likewise.
36049 (grub_ata_pio_write): Fix timeout error return.
36050 (grub_atapi_identify): Add grub_ata_wait () after cmd.
36051 (grub_atapi_wait_drq): New function.
36052 (grub_atapi_packet): New parameter `size'.
36053 Use grub_atapi_wait_drq () and direct write instead of
36054 grub_ata_pio_write ().
36055 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
36056 reads the number of bytes requested by the device for each DRQ
36058 (grub_atapi_write): Remove old implementation, return not
36059 implemented instead.
36061 2009-01-19 Christian Franke <franke@computer.org>
36063 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
36064 of 512 to calculate data size.
36065 (grub_scsi_read12): Likewise.
36066 (grub_scsi_write10): Likewise.
36067 (grub_scsi_write12): Likewise.
36068 (grub_scsi_read): Adjust size according to blocksize.
36069 Add checks for invalid blocksize and unaligned transfer.
36071 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
36073 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
36075 * term/gfxterm.c (write_char): Fix background rendering for wide
36078 2009-01-19 Robert Millan <rmh@aybabtu.com>
36080 * config.guess: Update to latest version from config git.
36081 * config.sub: Likewise.
36083 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
36085 * Makefile.in: Change font compilation to use new grub-mkfont instead
36088 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
36089 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
36090 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
36091 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
36092 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
36093 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
36094 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
36095 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
36096 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
36098 2009-01-16 Christian Franke <franke@computer.org>
36100 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
36101 (enum grub_ata_timeout_milliseconds): New enum.
36102 (grub_ata_wait_status): Add parameter milliseconds.
36103 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
36104 recovery from timed-out commands.
36105 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
36106 return grub_errno instead of REG_ERROR.
36107 (grub_ata_pio_write): Add parameter milliseconds.
36108 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
36109 Pass milliseconds to grub_ata_wait_status () and
36110 grub_ata_pio_read ().
36111 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
36112 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
36113 grub_ata_wait_status (). Fix IDENTIFY timeout check.
36114 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
36115 It is not suitable for device detection, because DEV bit is ignored,
36116 the command may run too long, and not all devices set the signature
36118 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
36119 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
36120 Fix device selection, DEV bit must be set first to address the registers
36121 of the correct device.
36122 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
36123 grub_ata_pio_read/write ().
36124 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
36125 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
36127 2009-01-13 Carles Pina i Estany <carles@pina.cat>
36129 * util/grub-editenv.c (main): Use fseeko(), not fseek().
36131 2009-01-13 Bean <bean123ch@gmail.com>
36133 * util/grub-mkfont.c (write_font): forget to remove some debug code.
36135 2009-01-13 Bean <bean123ch@gmail.com>
36137 * Makefile.in: (enable_grub_mkfont): New variable.
36138 (freetype_cflags): Likewise.
36139 (freetype_libs): Likewise.
36141 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
36142 (grub_mkfont_SOURCES): New variable.
36143 (grub_mkfont_CFLAGS): Likewise.
36144 (grub_mkfont_LDFLAGS): Likewise.
36146 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
36147 library if `--enable-grub-mkfont' is requested.
36148 (enable_grub_mkfont): New variable.
36149 (freetype_cflags): Likewise.
36150 (freetype_libs): Likewise.
36152 * util/grub-mkfont.c: New file.
36154 2009-01-12 Christian Franke <franke@computer.org>
36156 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
36157 mode check. Fix setting of compat_use[].
36159 2009-01-10 Robert Millan <rmh@aybabtu.com>
36161 Update a few copyright years which we forgot to do in 2008 (only for
36162 files whose changes made in 2008 were copyright-significant)
36164 * Makefile.in: Add 2008 to Copyright line.
36165 * disk/ieee1275/ofdisk.c: Likewise.
36166 * disk/efi/efidisk.c: Likewise.
36167 * kern/dl.c: Likewise.
36168 * kern/sparc64/ieee1275/init.c: Likewise.
36169 * kern/mm.c: Likewise.
36170 * kern/efi/mm.c: Likewise.
36171 * boot/i386/pc/boot.S: Likewise.
36172 * genfslist.sh: Likewise.
36173 * fs/iso9660.c: Likewise.
36174 * fs/hfs.c: Likewise.
36175 * fs/jfs.c: Likewise.
36176 * fs/minix.c: Likewise.
36177 * fs/ufs.c: Likewise.
36178 * gensymlist.sh.in: Likewise.
36179 * genkernsyms.sh.in: Likewise.
36180 * include/grub/misc.h: Likewise.
36181 * include/grub/types.h: Likewise.
36182 * include/grub/symbol.h: Likewise.
36183 * include/grub/elf.h: Likewise.
36184 * include/grub/kernel.h: Likewise.
36185 * include/grub/disk.h: Likewise.
36186 * include/grub/dl.h: Likewise.
36187 * include/grub/i386/linux.h: Likewise.
36188 * include/grub/i386/pc/biosdisk.h: Likewise.
36189 * include/grub/efi/api.h: Likewise.
36190 * include/grub/efi/pe32.h: Likewise.
36191 * include/grub/util/misc.h: Likewise.
36192 * normal/execute.c: Likewise.
36193 * normal/arg.c: Likewise.
36194 * normal/completion.c: Likewise.
36195 * normal/lexer.c: Likewise.
36196 * normal/parser.y: Likewise.
36197 * normal/misc.c: Likewise.
36198 * commands/i386/pc/vbeinfo.c: Likewise.
36199 * commands/hexdump.c: Likewise.
36200 * commands/terminal.c: Likewise.
36201 * commands/ls.c: Likewise.
36202 * commands/help.c: Likewise.
36203 * partmap/pc.c: Likewise.
36204 * loader/efi/chainloader.c: Likewise.
36205 * loader/multiboot_loader.c: Likewise.
36206 * loader/i386/pc/multiboot2.c: Likewise.
36207 * term/efi/console.c: Likewise.
36208 * term/i386/pc/serial.c: Likewise.
36209 * util/lvm.c: Likewise.
36210 * util/console.c: Likewise.
36211 * util/i386/efi/grub-mkimage.c: Likewise.
36212 * util/raid.c: Likewise.
36214 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
36216 * commands/videotest.c: Removed include to grub/machine/memory.h.
36218 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
36219 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
36220 (video_mod_SOURCES): Removed.
36221 (video_mod_CFLAGS): Likewise.
36222 (video_mod_LDFLAGS): Likewise.
36223 (gfxterm_mod_SOURCES): Likewise.
36224 (gfxterm_mod_CFLAGS): Likewise.
36225 (gfxterm_mod_LDFLAGS): Likewise.
36226 (videotest_mod_SOURCES): Likewise.
36227 (videotest_mod_CFLAGS): Likewise.
36228 (videotest_mod_LDFLAGS): Likewise.
36229 (bitmap_mod_SOURCES): Likewise.
36230 (bitmap_mod_CFLAGS): Likewise.
36231 (bitmap_mod_LDFLAGS): Likewise.
36232 (tga_mod_SOURCES): Likewise.
36233 (tga_mod_CFLAGS): Likewise.
36234 (tga_mod_LDFLAGS): Likewise.
36235 (jpeg_mod_SOURCES): Likewise.
36236 (jpeg_mod_CFLAGS): Likewise.
36237 (jpeg_mod_LDFLAGS): Likewise.
36238 (png_mod_SOURCES): Likewise.
36239 (png_mod_CFLAGS): Likewise.
36240 (png_mod_LDFLAGS): Likewise.
36242 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
36243 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
36244 (video_mod_SOURCES): Added.
36245 (video_mod_CFLAGS): Likewise.
36246 (video_mod_LDFLAGS): Likewise.
36247 (videotest_mod_SOURCES): Likewise.
36248 (videotest_mod_CFLAGS): Likewise.
36249 (videotest_mod_LDFLAGS): Likewise.
36250 (bitmap_mod_SOURCES): Likewise.
36251 (bitmap_mod_CFLAGS): Likewise.
36252 (bitmap_mod_LDFLAGS): Likewise.
36253 (tga_mod_SOURCES): Likewise.
36254 (tga_mod_CFLAGS): Likewise.
36255 (tga_mod_LDFLAGS): Likewise.
36256 (jpeg_mod_SOURCES): Likewise.
36257 (jpeg_mod_CFLAGS): Likewise.
36258 (jpeg_mod_LDFLAGS): Likewise.
36259 (png_mod_SOURCES): Likewise.
36260 (png_mod_CFLAGS): Likewise.
36261 (png_mod_LDFLAGS): Likewise.
36262 (gfxterm_mod_SOURCES): Likewise.
36263 (gfxterm_mod_CFLAGS): Likewise.
36264 (gfxterm_mod_LDFLAGS): Likewise.
36266 * term/gfxterm.c: Removed include to grub/machine/memory.h,
36267 grub/machine/console.h.
36269 2009-01-04 Jerone Young <jerone@gmail.com>
36271 Make on screen instructions clearer
36273 Based on patch created by Jidanni <jidanni@jidanni.org>
36275 * normal/menu.c: print clearer instructions on the screen
36277 2009-01-02 Colin D Bennett <colin@gibibit.com>
36281 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
36282 build system and fixed gfxterm.c to work with different sized fonts.
36284 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
36286 * configure: Re-generated.
36288 * DISTLIST: Removed font/manager.c.
36290 Added font/font_cmd.c.
36292 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
36295 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
36297 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
36299 * kern/term.c: Changed users of grub_utf8_to_ucs4.
36301 * normal/menu.c: Likewise.
36303 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
36304 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
36306 * include/grub/font.h: Replaced with new file.
36308 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
36309 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
36310 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
36311 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
36312 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
36313 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
36314 fg_red, fg_green, fg_blue, fg_alpha.
36315 (grub_video_adapter): Removed blit_glyph.
36316 (grub_video_blit_glyph): Removed.
36318 * font/manager.c: Removed file.
36320 * font/font.c: New file.
36322 * font/font_cmd.c: Likewise.
36324 * video/video.c (grub_video_blit_glyph): Removed.
36326 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
36327 (grub_video_vbe_map_rgba): Likewise.
36328 (grub_video_vbe_unmap_color_int): Likewise.
36329 (grub_video_vbe_blit_glyph): Removed.
36330 (grub_video_vbe_adapter): Removed blit_glyph.
36332 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
36333 (get_pixel): Likewise.
36334 (set_pixel): Likewise.
36336 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
36338 * term/gfxterm.c: Adapted to new font engine.
36340 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
36342 * term/i386/pc/vga.c: Likewise.
36344 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
36346 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
36348 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
36350 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
36352 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
36354 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
36356 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
36358 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
36360 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
36362 * util/grub.d/00_header.in: Changed to use new loadfont command.
36364 * util/grub-mkconfig_lib.in: Changed font extension.
36366 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
36368 * util/getroot.c (grub_util_get_grub_dev): Add support for
36369 /dev/md/dNNpNN style partitionable mdraid devices.
36371 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
36373 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
36374 at a time limit of the PXE TFTP API correctly.
36375 (grub_pxefs_close): Likewise.
36377 2008-11-29 Robert Millan <rmh@aybabtu.com>
36379 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
36380 grub_ata_device_initialize() calls.
36382 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
36384 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
36386 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
36388 2008-11-28 Robert Millan <rmh@aybabtu.com>
36390 Fix build on powerpc-ieee1275. Based on patch created by
36391 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
36392 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36393 `kern/ieee1275/mmap.c'.
36394 * include/grub/powerpc/ieee1275/memory.h: New file.
36396 Provide grub-install on coreboot.
36397 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
36398 (grub_install_SOURCES): New variable.
36399 * util/i386/pc/grub-install.in: Add a few condition checks to make it
36400 usable on coreboot.
36402 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
36404 * util/grub-fstest.c (grub_term_get_current_input): Change return type
36405 to `grub_term_input_t'.
36406 (grub_term_get_current_output): Change return type to
36407 `grub_term_output_t'.
36409 2008-11-22 Robert Millan <rmh@aybabtu.com>
36411 Fix breakage on coreboot due to declaration mismatch.
36412 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
36413 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
36414 grub_vga_text_cls().
36416 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
36417 comments. Avoid copying one more byte than necessary (just in case).
36419 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
36420 to 0x200000 (avoids trouble with some OFW implementations, and matches
36421 with the one in Yaboot).
36422 Reported by Manoel Abranches
36424 2008-11-20 Robert Millan <rmh@aybabtu.com>
36426 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
36427 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
36429 * util/grub-mkconfig_lib.in (grub_warn): New function.
36430 (convert_system_path_to_grub_path): Use grub_warn() when issuing
36431 warnings, to obtain consistent formatting.
36432 * util/grub.d/00_header.in: Likewise.
36433 * util/update-grub_lib.in: Likewise.
36435 * loader/i386/linux.c (allocate_pages): Fix a warning.
36436 Move comment text to `#error' stanza.
36438 Harmonize ieee1275's grub_available_iterate() with the generic
36439 grub_machine_mmap_iterate() interface (fixes a recently-introduced
36440 build problem on i386-ieee1275):
36441 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
36442 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
36443 parameter `type'. Update all users of this function.
36444 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
36445 `kern/ieee1275/mmap.c'.
36446 * kern/ieee1275/init.c
36447 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
36449 (grub_machine_mmap_iterate): ... this.
36450 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
36451 return type to `grub_err_t'. Update all implementations of this
36452 function prototype.
36453 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
36456 Add `lsmmap' command (lists firmware-provided memory map):
36457 * commands/lsmmap.c: New file.
36458 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
36459 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
36461 * conf/powerpc-ieee1275.rmk: Likewise.
36462 * conf/i386-coreboot.rmk: Likewise.
36463 * conf/i386-ieee1275.rmk: Likewise.
36465 2008-11-19 Robert Millan <rmh@aybabtu.com>
36467 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
36468 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
36469 constraints to initrd allocation (based on code from
36470 loader/i386/pc/linux.c). Without them, initrd was allocated too high
36471 for Linux to find it.
36473 2008-11-14 Robert Millan <rmh@aybabtu.com>
36475 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
36476 order to cope with duplicate slashes.
36478 2008-11-14 Robert Millan <rmh@aybabtu.com>
36480 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
36481 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
36482 don't want to mess with lower memory, because it is used in the Linux
36485 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
36486 an appropriate place in lower memory, between 0x10000 and 0x90000,
36487 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
36488 is in our heap (probably as a result of it being corrupted during
36489 decompression). Add #error instance with comment to explain why this
36490 loader isn't currently usable on PC/BIOS.
36492 2008-11-14 Robert Millan <rmh@aybabtu.com>
36494 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
36495 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
36497 2008-11-12 Robert Millan <rmh@aybabtu.com>
36499 Make loader/i386/linux.c buildable on i386-pc (although disabled).
36501 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
36502 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
36504 * include/grub/i386/pc/memory.h: ... to here.
36506 2008-11-12 Robert Millan <rmh@aybabtu.com>
36508 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
36511 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
36512 (grub_console_cur_color, grub_console_real_putchar)
36513 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
36514 (grub_console_setcolorstate, grub_console_setcolor)
36515 (grub_console_getcolor): Move from here ...
36516 * include/grub/i386/vga_common.h: ... to here (new file).
36518 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
36519 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
36520 `<grub/i386/io.h>'.
36521 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
36522 `<grub/i386/vga_common.h>'.
36524 2008-11-12 Robert Millan <rmh@aybabtu.com>
36526 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
36527 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
36528 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
36530 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
36531 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
36533 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
36534 grub_console_init() with call to grub_vga_text_init().
36535 (grub_machine_fini): Replace call to
36536 grub_console_fini() with call to grub_vga_text_fini() and
36537 grub_at_keyboard_fini().
36539 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
36540 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
36541 (grub_console_setcolorstate, grub_console_setcolor)
36542 (grub_console_getcolor): New function prototypes.
36544 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
36545 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
36546 (grub_vga_text_setcursor): Static-ize.
36547 (grub_vga_text_term): New structure.
36548 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
36550 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
36551 (grub_console_cur_color, grub_console_standard_color)
36552 (grub_console_normal_color, grub_console_highlight_color)
36553 (map_char, grub_console_putchar, grub_console_getcharwidth)
36554 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
36555 (grub_console_getcolor): Move from here ...
36556 * term/i386/vga_common.c: ... to here (same function names).
36558 2008-11-12 Robert Millan <rmh@aybabtu.com>
36560 Use newly-added Multiboot support in coreboot.
36562 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
36563 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
36565 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
36566 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
36567 (codestart): Store the MBI in `startup_multiboot_info' when we're
36568 being loaded using Multiboot.
36570 * kern/i386/coreboot/init.c (grub_machine_init): Move
36571 grub_at_keyboard_init() call to beginning of function (useful for
36572 debugging). Call grub_machine_mmap_init() before attempting to use
36573 grub_machine_mmap_iterate().
36574 (grub_lower_mem, grub_upper_mem): Move from here ...
36575 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
36578 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
36579 function prototype.
36581 2008-11-12 Robert Millan <rmh@aybabtu.com>
36583 Fix a regression introduced by the at_keyboard.mod split. Because
36584 some terminals are default on some platforms and non-default on
36585 others, the first terminal being registered determines which is
36586 going to be default.
36588 * kern/term.c (grub_term_register_input): If this is the first
36589 terminal being registered, set it as the current one.
36590 (grub_term_register_output): Likewise.
36592 * term/efi/console.c (grub_console_init): Do not call
36593 grub_term_set_current_output() or grub_term_set_current_input().
36594 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
36595 * term/i386/pc/console.c (grub_console_init): Likewise.
36596 (grub_console_fini): Do not call grub_term_set_current_input()
36597 (but leave grub_term_set_current_output() to restore text mode).
36599 2008-11-10 Robert Millan <rmh@aybabtu.com>
36601 * util/grub.d/00_header.in: Add backward compatibility check for
36602 versions of terminal.mod that don't understand `terminal_input' or
36605 2008-11-09 Robert Millan <rmh@aybabtu.com>
36607 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
36608 `terminal_input' / `terminal_output', not `terminal'.
36610 2008-11-08 Robert Millan <rmh@aybabtu.com>
36612 * Makefile.in (include_DATA): Fix srcdir=. assumption.
36613 (DISTCLEANFILES): Add `build_env.mk'.
36615 2008-11-08 Robert Millan <rmh@aybabtu.com>
36617 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
36618 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
36619 members. Update all users.
36620 * util/console.c (grub_ncurses_term): Split in ...
36621 (grub_ncurses_term_input): ... this, and ...
36622 (grub_ncurses_term_output): ... this. Update all users.
36623 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
36625 2008-11-08 Robert Millan <rmh@aybabtu.com>
36627 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
36628 (PKGDATA): Add $(pkgdata_SRCDIR).
36629 (pkglib_BUILDDIR): New variable.
36630 (pkgdata_SRCDIR): New variable.
36631 (build_env.mk): New target.
36632 (include_DATA): New variable.
36633 (install-local): Install $(include_DATA) files in $(includedir).
36635 2008-11-07 Pavel Roskin <proski@gnu.org>
36637 * gendistlist.sh: Use C locale for sorting to ensure consistent
36638 output on all systems.
36640 * util/grub.d/00_header.in: Remove incorrect space before
36643 2008-11-07 Robert Millan <rmh@aybabtu.com>
36645 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
36647 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
36648 * loader/multiboot_loader.c (find_multi_boot2_header): New function
36649 (based on find_multi_boot1_header).
36650 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
36651 using find_multi_boot2_header(), and abort if neither Multiboot or
36652 Multiboot headers were found.
36654 2008-11-07 Robert Millan <rmh@aybabtu.com>
36656 Modularize at_keyboard.mod:
36658 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
36659 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
36660 (at_keyboard_mod_LDFLAGS): New variables.
36662 Actual terminal split:
36664 * include/grub/term.h (struct grub_term): Split in ...
36665 (struct grub_term_input): ... this, and ...
36666 (struct grub_term_output): ... this. Update all users.
36667 (grub_term_set_current): Split in ...
36668 (grub_term_set_current_input): ... this, and ...
36669 (grub_term_set_current_output): ... this.
36670 (grub_term_get_current): Split in ...
36671 (grub_term_get_current_input): ... this, and ...
36672 (grub_term_get_current_output): ... this.
36673 (grub_term_register): Split in ...
36674 (grub_term_register_input): ... this, and ...
36675 (grub_term_register_output): ... this.
36676 (grub_term_unregister): Split in ...
36677 (grub_term_unregister_input): ... this, and ...
36678 (grub_term_unregister_output): ... this.
36679 (grub_term_iterate): Split in ...
36680 (grub_term_iterate_input): ... this, and ...
36681 (grub_term_iterate_output): ... this.
36683 * kern/term.c (grub_term_list): Split in ...
36684 (grub_term_list_input): ... this, and ...
36685 (grub_term_list_output): ... this. Update all users.
36686 (grub_cur_term): Split in ...
36687 (grub_cur_term_input): ... this, and ...
36688 (grub_cur_term_output): ... this. Update all users.
36689 (grub_term_set_current): Split in ...
36690 (grub_term_set_current_input): ... this, and ...
36691 (grub_term_set_current_output): ... this.
36692 (grub_term_get_current): Split in ...
36693 (grub_term_get_current_input): ... this, and ...
36694 (grub_term_get_current_output): ... this.
36695 (grub_term_register): Split in ...
36696 (grub_term_register_input): ... this, and ...
36697 (grub_term_register_output): ... this.
36698 (grub_term_unregister): Split in ...
36699 (grub_term_unregister_input): ... this, and ...
36700 (grub_term_unregister_output): ... this.
36701 (grub_term_iterate): Split in ...
36702 (grub_term_iterate_input): ... this, and ...
36703 (grub_term_iterate_output): ... this.
36705 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
36706 a check for input and one for output (and only attempt to get keys
36707 from user when input works).
36709 * util/grub-probe.c (grub_term_get_current): Split in ...
36710 (grub_term_get_current_input): ... this, and ...
36711 (grub_term_get_current_output): ... this.
36712 * util/grub-fstest.c: Likewise.
36713 * util/i386/pc/grub-setup.c: Likewise.
36714 * util/grub-editenv.c: Likewise.
36716 Portability adjustments:
36718 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
36719 `term/i386/pc/at_keyboard.c'.
36720 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
36721 grub_keyboard_controller_init() (now handled by terminal .init).
36722 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
36723 grub_at_keyboard_init().
36724 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
36725 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
36726 at_keyboard.mod via input terminal interface).
36727 * include/grub/i386/coreboot/console.h: Convert into a stub for
36728 `<grub/i386/pc/console.h>'.
36730 Migrate full terminals to new API:
36732 * term/efi/console.c (grub_console_term): Split into ...
36733 (grub_console_term_input): ... this, and ...
36734 (grub_console_term_output): ... this. Update all users.
36735 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
36736 (grub_ofconsole_init): Split into ...
36737 (grub_ofconsole_init_input): ... this, and ...
36738 (grub_ofconsole_init_output): ... this.
36739 (grub_ofconsole_term): Split into ...
36740 (grub_ofconsole_term_input): ... this, and ...
36741 (grub_ofconsole_term_output): ... this. Update all users.
36742 * term/i386/pc/serial.c (grub_serial_term): Split into ...
36743 (grub_serial_term_input): ... this, and ...
36744 (grub_serial_term_output): ... this. Update all users.
36745 * term/i386/pc/console.c (grub_console_term): Split into ...
36746 (grub_console_term_input): ... this, and ...
36747 (grub_console_term_output): ... this. Update all users.
36748 (grub_console_term_input): Only enable it on PC/BIOS platform.
36749 (grub_console_init): Remove grub_keyboard_controller_init() call.
36751 Migrate input terminals to new API:
36753 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
36754 `i386' and `i386/pc' to enable build on x86_64 (this driver is
36755 i386-specific anyway).
36756 (grub_console_checkkey): Rename to ...
36757 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
36759 (grub_keyboard_controller_orig): New variable.
36760 (grub_console_getkey): Rename to ...
36761 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
36763 (grub_keyboard_controller_init): Static-ize. Save original
36764 controller value so that it can be restored ...
36765 (grub_keyboard_controller_fini): ... here (new function).
36766 (grub_at_keyboard_term): New structure.
36767 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
36770 Migrate output terminals to new API:
36772 * term/i386/pc/vga.c (grub_vga_term): Change type to
36773 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
36774 members. Update all users.
36775 * term/gfxterm.c (grub_video_term): Change type to
36776 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
36777 members. Update all users.
36778 * include/grub/i386/pc/console.h (grub_console_checkkey)
36779 (grub_console_getkey): Do not export (no longer needed by gfxterm,
36782 Migrate `terminal' command and userland tools to new API:
36784 * commands/terminal.c (grub_cmd_terminal): Split into ...
36785 (grub_cmd_terminal_input): ... this, and ...
36786 (grub_cmd_terminal_output): ... this.
36787 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
36788 `terminal_input' and `terminal_output'.
36789 * util/grub.d/00_header.in: Adjust `terminal' calls to new
36790 `terminal_input' / `terminal_output' API.
36791 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
36792 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
36793 provided ${GRUB_TERMINAL}, convert it).
36795 2008-11-04 Robert Millan <rmh@aybabtu.com>
36797 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
36799 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
36801 2008-11-03 Bean <bean123ch@gmail.com>
36803 * kern/elf.c (grub_elf32_load): Revert to previous code.
36804 (grub_elf64_load): Likewise.
36806 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
36808 2008-11-01 Robert Millan <rmh@aybabtu.com>
36810 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
36811 (TARGET_CPPFLAGS): Likewise.
36812 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
36814 2008-11-01 Carles Pina i Estany <carles@pina.cat>
36816 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
36818 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
36820 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
36821 addition of objects until the code is not going to be able to fail.
36823 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
36825 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
36826 (add a missing NULL check, and correct them by moving the pointer
36827 operations after the actual check).
36829 2008-10-29 Robert Millan <rmh@aybabtu.com>
36831 * util/i386/pc/grub-install.in: Handle empty string as output from
36832 make_system_path_relative_to_its_root().
36834 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
36836 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
36837 circular metadata worst case scenario. If the metadata is circular
36838 then copy the wrap in place.
36839 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
36840 project lib/format_text/layout.h
36841 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
36843 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
36845 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
36847 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
36849 * util/update-grub_lib.in: Mention filename in warning message.
36851 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
36853 * NEWS: Update for rename of update-grub to grub-mkconfig.
36855 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
36857 * util/update-grub_lib.in: Copy to ...
36858 * util/grub-mkconfig_lib.in: ... this. Update all users.
36859 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
36860 * util/update-grub.in: Rename to ...
36861 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
36862 option. Add `--output' option to allow users to specify the generated
36863 configuration file. Default to stdout.
36864 (update_grub_dir): Rename to ...
36865 (grub_mkconfig_dir): ... this.
36866 (grub_cfg): Default to an empty string.
36867 * conf/common.rmk (update-grub): Rename to ...
36868 (grub-mkconfig): ... this.
36869 (update-grub_lib): Copy to ...
36870 (grub-mkconfig_lib): ... this.
36871 (update-grub_SCRIPTS): Copy to ...
36872 (grub-mkconfig_SCRIPTS): ... this. Update all users.
36873 (update-grub_DATA): Rename to ...
36874 (grub-mkconfig_DATA): ... this.
36876 2008-09-28 Robert Millan <rmh@aybabtu.com>
36878 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
36879 to `modified'. Add the real `created' field.
36880 (grub_iso9660_uuid): Use `modified' rather than `created' for
36881 constructing the UUID.
36883 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
36885 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
36886 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
36888 2008-09-28 Bean <bean123ch@gmail.com>
36890 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
36891 Thanks to Christian Franke for finding this bug.
36893 2008-09-25 Robert Millan <rmh@aybabtu.com>
36895 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
36896 instances of grub_util_get_disk_name() (see previous commit).
36898 2008-09-25 Robert Millan <rmh@aybabtu.com>
36900 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
36901 `util/i386/get_disk_name.c'.
36902 * conf/i386-efi.rmk: Likewise.
36903 * conf/x86_64-efi.rmk: Likewise.
36904 * conf/i386-coreboot.rmk: Likewise.
36905 * conf/i386-ieee1275.rmk: Likewise.
36906 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
36907 `util/ieee1275/get_disk_name.c'.
36908 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
36909 * util/ieee1275/get_disk_name.c: Remove file.
36910 * util/i386/get_disk_name.c: Remove file.
36911 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
36912 "hd%d" for device.map entries, rather than using
36913 grub_util_get_disk_name().
36915 2008-09-24 Carles Pina i Estany <carles@pina.cat>
36917 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
36919 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
36921 2008-09-24 Carles Pina i Estany <carles@pina.cat>
36923 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
36925 (GRUB_TERM_PPAGE): Changed to 0x4900.
36927 2008-09-24 Robert Millan <rmh@aybabtu.com>
36929 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
36930 macros (they were i386-pc specific).
36931 * include/grub/sparc64/ieee1275/console.h: Likewise.
36932 * include/grub/efi/console.h: Likewise.
36934 2008-09-22 Bean <bean123ch@gmail.com>
36936 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
36937 resident and in attribute list.
36939 * include/grub/ntfs.h (BMP_LEN): Removed.
36941 2008-09-22 Bean <bean123ch@gmail.com>
36943 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
36944 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
36946 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
36947 error occurs, as grub_disk_open will call grub_disk_close, which will
36948 call p->close (scsi).
36950 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
36952 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
36953 (AC_PREREQ): Bumped to 2.59.
36954 (AC_TRY_COMPILE): Replace obsolete macro with ...
36955 (AC_COMPILE_IFELSE): ... this.
36956 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
36957 (AC_LINK_IFELSE): ... this.
36959 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
36961 * autogen.sh: Add a call to `gendistlist.sh'.
36963 2008-09-19 Christian Franke <franke@computer.org>
36965 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
36966 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
36967 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
36968 Export __enable_execute_stack() to modules.
36969 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
36972 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
36974 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
36977 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
36979 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
36980 #include <grub/util/hostdisk.h>.
36982 2008-09-08 Robert Millan <rmh@aybabtu.com>
36984 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
36985 segments when their filesz is zero (grub_file_read() interprets
36986 zero-size as "read until EOF", which results in memory corruption).
36987 Use `lowest_segment' rather than 0 for calculating the current
36988 segment load address.
36990 2008-09-08 Robert Millan <rmh@aybabtu.com>
36992 * util/hostdisk.c (open_device): Replace a grub_util_info() call
36993 with grub_dprintf("hostdisk", ...), as it was so verbose that it
36994 clobbered useful information.
36996 2008-09-08 Robert Millan <rmh@aybabtu.com>
36998 * include/grub/util/biosdisk.h: Move to ...
36999 * include/grub/util/hostdisk.h: ... here. Update all users.
37000 * util/biosdisk.c: Move to ...
37001 * util/hostdisk.c: ... here. Update all users.
37003 2008-09-07 Robert Millan <rmh@aybabtu.com>
37005 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
37007 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
37008 and length can be stored directly in the `mbi->mmap_addr' and
37009 `mbi->mmap_length' struct fields.
37011 2008-09-07 Robert Millan <rmh@aybabtu.com>
37013 * conf/i386.rmk: New file. Provides declaration for building
37015 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
37016 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
37018 Include `conf/i386.mk'.
37019 * conf/i386-efi.rmk: Likewise.
37020 * conf/x86_64-efi.rmk: Likewise.
37021 * conf/i386-coreboot.rmk: Likewise.
37022 * conf/i386-ieee1275.rmk: Likewise.
37024 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
37026 Based on patch created by Colin D Bennett <colin@gibibit.com>.
37027 Adds optimization support for BGR based modes.
37029 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
37030 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
37031 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
37032 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
37033 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
37034 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
37035 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
37036 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
37037 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
37038 (grub_video_i386_vbeblit_index_index): Likewise.
37039 (grub_video_i386_vbeblit_replace_directN): Added.
37040 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
37041 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
37042 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
37043 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
37044 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
37045 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
37046 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
37047 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
37048 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
37049 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
37050 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
37051 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
37052 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
37054 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
37055 (grub_video_i386_vbefill_R8G8B8): Likewise.
37056 (grub_video_i386_vbefill_index): Likewise.
37057 (grub_video_i386_vbefill_direct32): Added.
37058 (grub_video_i386_vbefill_direct24): Likewise.
37059 (grub_video_i386_vbefill_direct16): Likewise.
37060 (grub_video_i386_vbefill_direct8): Likewise.
37062 * include/grub/video.h (grub_video_blit_format): Removed
37063 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
37064 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
37065 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
37066 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
37067 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
37069 * video/video.c (grub_video_get_blit_format): Updated to use new
37070 blit formats. Added handling for 16 bit color modes.
37072 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
37074 (common_blitter): Updated to use new blitters.
37076 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
37078 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
37079 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
37080 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
37081 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
37082 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
37083 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
37084 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
37085 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
37086 (grub_video_i386_vbeblit_index_index): Likewise.
37087 (grub_video_i386_vbeblit_replace_directN): Added.
37088 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
37089 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
37090 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
37091 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
37092 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
37093 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
37094 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
37095 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
37096 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
37097 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
37098 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
37099 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
37100 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
37102 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
37103 (grub_video_i386_vbefill_R8G8B8): Likewise.
37104 (grub_video_i386_vbefill_index): Likewise.
37105 (grub_video_i386_vbefill_direct32): Added.
37106 (grub_video_i386_vbefill_direct24): Likewise.
37107 (grub_video_i386_vbefill_direct16): Likewise.
37108 (grub_video_i386_vbefill_direct8): Likewise.
37110 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
37113 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
37116 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
37119 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
37122 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
37124 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
37127 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
37129 * fs/iso9660.c (grub_iso9660_date): New structure.
37130 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
37131 (grub_iso9660_uuid): New function.
37133 2008-09-05 Bean <bean123ch@gmail.com>
37135 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
37137 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
37138 insensitive bit for names in Win32 and Win32 & DOS namespace.
37140 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
37142 * include/grub/types.h (LONG_MAX): Likewise.
37144 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
37146 * util/getroot.c: Include <config.h>.
37147 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
37148 add support for /dev/md/N devices and handle LVM double dash escaping.
37150 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
37152 * config.guess: Update to latest version from config git.
37153 * config.sub: Likewise.
37155 2008-09-03 Robert Millan <rmh@aybabtu.com>
37157 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
37158 `disk->total_sectors'.
37160 2008-09-01 Colin D Bennett <colin@gibibit.com>
37162 * include/grub/normal.h: Fixed incorrect comment for
37163 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
37165 2008-09-01 Colin D Bennett <colin@gibibit.com>
37167 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
37168 values with defines.
37170 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
37171 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
37172 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
37173 (GRUB_VBE_MODEATTR_COLOR): Likewise.
37174 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
37175 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
37176 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
37177 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
37178 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
37179 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
37180 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
37181 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
37182 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
37183 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
37184 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
37185 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
37186 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
37187 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
37188 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
37190 2008-08-31 Robert Millan <rmh@aybabtu.com>
37192 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
37194 (grub_multiboot): Fix a few warnings.
37196 2008-08-31 Robert Millan <rmh@aybabtu.com>
37198 * loader/i386/pc/multiboot.c: Update comment not to say that
37199 boot_device support is unimplemented.
37201 2008-08-31 Robert Millan <rmh@aybabtu.com>
37203 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
37204 or memory map support are unimplemented.
37206 2008-08-31 Colin D Bennett <colin@gibibit.com>
37208 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
37210 2008-08-31 Colin D Bennett <colin@gibibit.com>
37212 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
37213 total video memory in 'vbeinfo' output; show color format details for
37216 2008-08-30 Pavel Roskin <proski@gnu.org>
37218 * util/genmoddep.c: Remove for real this time.
37219 * DISTLIST: Remove util/genmoddep.c.
37221 2008-08-30 Robert Millan <rmh@aybabtu.com>
37223 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
37224 as required by Multiboot spec (it was already 4-byte aligned, but
37227 2008-08-29 Pavel Roskin <proski@gnu.org>
37229 * kern/powerpc/ieee1275/crt0.S: Rename to ...
37230 * kern/powerpc/ieee1275/startup.S: ... this.
37231 * conf/powerpc-ieee1275.rmk: Adjust for the above.
37232 * DISTLIST: Likewise.
37234 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
37235 grub/cpu/kernel.h. Add start label for consistency with other
37236 platforms. Add grub_prefix immediately after start. Add jump
37237 to the code after grub_prefix.
37238 * include/grub/powerpc/kernel.h: Provide valid values for
37239 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
37241 2008-08-29 Bean <bean123ch@gmail.com>
37243 * configure.ac: Change host_os to cygwin for mingw.
37244 (asprintf): New check for function.
37246 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
37247 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
37249 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
37250 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
37251 sync, sleep and grub_util_get_disk_size for mingw.
37253 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
37254 to get size in mingw.
37255 (open_device): Use flag O_BINARY if it's defined.
37256 (find_root_device): Add dummy code for mingw.
37258 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
37259 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
37260 (get_scsi_disk_name): Return 0 for mingw.
37262 * util/hostfs.c: #include <grub/util/misc.h>.
37263 (grub_hostfs_open): Use "rb" flag to open file, use
37264 grub_util_get_disk_size to get disk size for mingw.
37266 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
37267 (asprintf): New function if HAVE_ASPRINTF is not set.
37268 (sync): New function for mingw.
37270 (grub_util_get_disk_size): Likewise.
37272 2008-08-28 Pavel Roskin <proski@gnu.org>
37274 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
37277 2008-08-28 Robert Millan <rmh@aybabtu.com>
37279 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
37281 2008-08-28 Robert Millan <rmh@aybabtu.com>
37283 Change find_grub_drive() syntax so it doesn't prevent it from
37284 detecting NULL names as errors.
37286 * util/biosdisk.c (find_grub_drive): Move free slot search code
37288 (find_free_slot): ... to here.
37289 (read_device_map): Use find_free_slot() to search for free slots.
37291 2008-08-27 Marco Gerards <marco@gnu.org>
37293 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
37294 (scsi_mod_SOURCES): New variable.
37295 (scsi_mod_CFLAGS): Likewise
37296 (scsi_mod_LDFLAGS): Likewise.
37298 * disk/scsi.c: New file.
37300 * include/grub/scsi.h: Likewise.
37302 * include/grub/scsicmd.h: Likewise.
37304 * disk/ata.c: Include <grub/scsi.h>.
37305 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
37307 (grub_ata_iterate): Skip ATAPI devices.
37308 (grub_ata_open): Only handle ATAPI devices.
37309 (struct grub_atapi_read): Removed.
37310 (grub_atapi_readsector): Likewise.
37311 (grub_ata_read): No longer handle ATAPI devices.
37312 (grub_ata_write): Likewise.
37313 (grub_atapi_iterate): New function.
37314 (grub_atapi_read): Likewise.
37315 (grub_atapi_write): Likewise.
37316 (grub_atapi_open): Likewise.
37317 (grub_atapi_close): Likewise.
37318 (grub_atapi_dev): New variable.
37319 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
37320 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
37322 * include/grub/disk.h (enum grub_disk_dev_id): Add
37323 `GRUB_DISK_DEVICE_SCSI_ID'.
37325 2008-08-26 Robert Millan <rmh@aybabtu.com>
37327 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
37328 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
37331 2008-08-23 Bean <bean123ch@gmail.com>
37333 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
37334 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
37335 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
37336 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
37338 (raid5rec_mod_SOURCES): New macro.
37339 (raid5rec_mod_CFLAGS): Likewise.
37340 (raid5rec_mod_LDFLAGS): Likewise.
37341 (raid6rec_mod_SOURCES): Likewise.
37342 (raid6rec_mod_CFLAGS): Likewise.
37343 (raid6rec_mod_LDFLAGS): Likewise.
37344 (mdraid_mod_SOURCES): Likewise.
37345 (mdraid_mod_CFLAGS): Likewise.
37346 (mdraid_mod_LDFLAGS): Likewise.
37347 (dm_nv_mod_SOURCES): Likewise.
37348 (dm_nv_mod_CFLAGS): Likewise.
37349 (dm_nv_mod_LDFLAGS): Likewise.
37351 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
37352 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
37353 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
37355 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
37356 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
37358 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37360 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37362 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37364 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37366 * disk/raid5_recover.c: New file.
37368 * disk/raid6_recover.c: Likewise.
37370 * disk/mdraid_linux.c: Likewise.
37372 * disk/dmraid_nvidia.c: Likewise.
37374 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
37377 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
37378 calculate the size of raid device.
37379 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
37380 different layout of raid5.
37381 (grub_raid_scan_device): Remove code specific to mdraid.
37382 (grub_raid_list): New variable.
37383 (free_array): New function.
37384 (grub_raid_register): Likewise.
37385 (grub_raid_unregister): Likewise.
37386 (grub_raid_rescan): Likewise.
37387 (GRUB_MOD_INIT): Don't iterate device here.
37388 (GRUB_MOD_FINI): Use free_array to release resource.
37390 * include/grub/raid.h: Remove macro and structure specific to mdraid.
37391 (grub_raid5_recover_func_t): New function variable type.
37392 (grub_raid6_recover_func_t): Likewise.
37393 (grub_raid5_recover_func): New variable.
37394 (grub_raid6_recover_func): Likewise.
37395 (grub_raid_register): New function.
37396 (grub_raid_unregister): Likewise.
37397 (grub_raid_rescan): Likewise.
37398 (grub_raid_block_xor): Likewise.
37400 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
37401 (CMD_CRC): New macro.
37403 (read_file): Handle device as well as file.
37404 (cmd_crc): New function.
37405 (fstest): Handle multiple disks.
37406 (options): Remove part, raw and long, add root and diskcount.
37407 (usage): Add crc, remove -p, -r, -l, add -r and -c.
37408 (main): Find the first non option entry and ignore subsequent options,
37409 add handling for the new options, support multiple disks.
37411 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
37413 2008-08-23 Bean <bean123ch@gmail.com>
37415 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
37417 * genfslist.sh: Ignore kernel.mod.
37419 * genpartmaplist.sh: Likewise.
37421 2008-08-23 Robert Millan <rmh@aybabtu.com>
37423 * util/getroot.c (find_root_device): Skip anything that starts with
37424 a dot, not just directories. This avoids things like /dev/.tmp.md0.
37426 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
37428 * util/update-grub.in (GRUB_GFXMODE): Export variable.
37429 * util/grub.d/00_header.in: Allow the administrator to change default
37430 gfxmode via ${GRUB_GFXMODE}.
37432 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
37434 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
37436 2008-08-21 Robert Millan <rmh@aybabtu.com>
37438 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
37440 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
37441 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
37443 2008-08-20 Carles Pina i Estany <carles@pina.cat>
37445 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
37446 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
37448 2008-08-19 Robert Millan <rmh@aybabtu.com>
37450 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
37451 (struct grub_virtual_screen): Remove `cursor_color'.
37452 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
37454 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
37456 2008-08-18 Robert Millan <rmh@aybabtu.com>
37458 Unify (identical) linux_normal.c files.
37459 * loader/i386/efi/linux_normal.c: Move from here ...
37460 * loader/linux_normal.c: ... to here. Update all users.
37461 * loader/i386/pc/linux_normal.c: Delete. Update all users.
37462 * loader/i386/ieee1275/linux_normal.c: Likewise.
37464 2008-08-18 Robert Millan <rmh@aybabtu.com>
37466 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
37467 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
37468 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
37469 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
37470 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
37472 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
37473 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
37474 (GRUB_LINUX_CL_END_OFFSET): ... to here.
37475 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
37476 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
37477 (GRUB_EFI_CL_END_OFFSET): Rename to ...
37478 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
37479 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
37480 Initialize `params->video_cursor_x' and `params->video_cursor_y'
37481 portably using grub_getxy().
37482 Replace `-EFI' with `-bzImage' in boot message.
37484 2008-08-17 Robert Millan <rmh@aybabtu.com>
37486 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
37488 2008-08-17 Robert Millan <rmh@aybabtu.com>
37490 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
37492 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
37493 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
37494 (grub_machine_mmap_iterate): New function declaration.
37495 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
37497 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
37500 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
37501 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
37502 Move e820 parsing from here ...
37503 * kern/i386/pc/mmap.c: New file.
37504 (grub_machine_mmap_iterate): ... to here.
37506 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
37507 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
37508 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
37509 (grub_available_iterate): Redeclare to return `void', and redeclare
37510 its hook to use grub_uint64_t as addr and size parameters, and rename
37512 (grub_machine_mmap_iterate): ... this. Update all users.
37514 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
37515 to make it more readable. Rename to ...
37516 (grub_machine_mmap_iterate): ... this.
37518 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
37519 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
37520 (grub_multiboot): Allocate an extra region after the payload, and fill
37521 it with a Multiboot memory map. Adjust a.out loader to calculate size
37522 with the extra space.
37523 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
37524 with the extra space.
37526 2008-08-17 Carles Pina i Estany <carles@pina.cat>
37528 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
37530 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
37532 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
37533 mdate-sh to the list `find' searches for.
37534 * DISTLIST: Regenerated.
37536 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
37538 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
37539 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
37540 genmoddep.awk, gensymlist.sh.in.
37541 (DISTDIRS): Add bus, docs, hook, lib.
37542 * DISTLIST: Regenerated.
37543 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
37545 2008-08-16 Robert Millan <rmh@aybabtu.com>
37547 * disk/raid.c (grub_raid_init): Handle/report errors set by
37548 grub_device_iterate().
37549 * disk/lvm.c (grub_lvm_init): Likewise.
37551 2008-08-15 Bean <bean123ch@gmail.com>
37553 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
37555 (datetime_mod_SOURCES): New macro.
37556 (datetime_mod_CFLAGS): Likewise.
37557 (datetime_mod_LDFLAGS): Likewise.
37558 (date_mod_SOURCES): Likewise.
37559 (date_mod_CFLAGS): Likewise.
37560 (date_mod_LDFLAGS): Likewise.
37561 (datehook_mod_SOURCES): Likewise.
37562 (datehook_mod_CFLAGS): Likewise.
37563 (datehook_mod_LDFLAGS): Likewise.
37565 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
37567 (datetime_mod_SOURCES): New macro.
37568 (datetime_mod_CFLAGS): Likewise.
37569 (datetime_mod_LDFLAGS): Likewise.
37570 (date_mod_SOURCES): Likewise.
37571 (date_mod_CFLAGS): Likewise.
37572 (date_mod_LDFLAGS): Likewise.
37573 (datehook_mod_SOURCES): Likewise.
37574 (datehook_mod_CFLAGS): Likewise.
37575 (datehook_mod_LDFLAGS): Likewise.
37577 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
37579 (datetime_mod_SOURCES): New macro.
37580 (datetime_mod_CFLAGS): Likewise.
37581 (datetime_mod_LDFLAGS): Likewise.
37582 (date_mod_SOURCES): Likewise.
37583 (date_mod_CFLAGS): Likewise.
37584 (date_mod_LDFLAGS): Likewise.
37585 (datehook_mod_SOURCES): Likewise.
37586 (datehook_mod_CFLAGS): Likewise.
37587 (datehook_mod_LDFLAGS): Likewise.
37589 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
37591 (datetime_mod_SOURCES): New macro.
37592 (datetime_mod_CFLAGS): Likewise.
37593 (datetime_mod_LDFLAGS): Likewise.
37594 (date_mod_SOURCES): Likewise.
37595 (date_mod_CFLAGS): Likewise.
37596 (date_mod_LDFLAGS): Likewise.
37597 (datehook_mod_SOURCES): Likewise.
37598 (datehook_mod_CFLAGS): Likewise.
37599 (datehook_mod_LDFLAGS): Likewise.
37601 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
37603 (datetime_mod_SOURCES): New macro.
37604 (datetime_mod_CFLAGS): Likewise.
37605 (datetime_mod_LDFLAGS): Likewise.
37606 (date_mod_SOURCES): Likewise.
37607 (date_mod_CFLAGS): Likewise.
37608 (date_mod_LDFLAGS): Likewise.
37609 (datehook_mod_SOURCES): Likewise.
37610 (datehook_mod_CFLAGS): Likewise.
37611 (datehook_mod_LDFLAGS): Likewise.
37613 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
37615 * commands/date.c: New file.
37617 * hook/datehook.c: Likewise.
37619 * include/grub/lib/datetime.h: Likewise.
37621 * include/grub/i386/cmos.h: Likewise.
37623 * lib/datetime.c: Likewise.
37625 * lib/i386/datetime.c: Likewise.
37627 * lib/efi/datetime.c: Likewise.
37629 2008-08-14 Robert Millan <rmh@aybabtu.com>
37631 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
37632 (grub_mkelfimage_SOURCES): New variable.
37633 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
37635 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
37636 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
37637 * conf/powerpc-ieee1275.rmk: Likewise.
37638 * conf/i386-ieee1275.rmk: Likewise.
37640 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
37641 * kern/i386/coreboot/init.c: Likewise.
37643 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
37644 with `<grub/cpu/kernel.h>'.
37645 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
37647 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
37648 * kern/i386/coreboot/startup.S: Likewise.
37650 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
37651 (GRUB_MOD_GAP): Remove.
37652 * include/grub/powerpc/kernel.h: New file.
37653 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
37654 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
37655 * include/grub/i386/kernel.h: New file.
37656 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
37657 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
37658 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
37660 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
37662 Use --directory when invoking grub_mkimage.
37664 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
37665 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
37666 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
37667 and GRUB_KERNEL_CPU_PREFIX.
37669 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
37671 * include/grub/err.h (grub_err_printf): New function prototype.
37672 * util/misc.c (grub_err_printf): New function.
37673 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
37675 * kern/err.c (grub_print_error): Use grub_err_printf.
37677 2008-08-13 Robert Millan <rmh@aybabtu.com>
37679 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
37681 2008-08-13 Robert Millan <rmh@aybabtu.com>
37683 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
37686 2008-08-12 Robert Millan <rmh@aybabtu.com>
37688 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
37689 of the relocation code from here ...
37690 (grub_multiboot): ... to here.
37691 (forward_relocator, backward_relocator): Move from here ...
37692 * kern/i386/loader.S (grub_multiboot_forward_relocator)
37693 (grub_multiboot_backward_relocator): ... to here.
37694 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
37695 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
37696 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
37697 (grub_multiboot_forward_relocator_end)
37698 (grub_multiboot_backward_relocator)
37699 (grub_multiboot_backward_relocator_end): New variables.
37701 2008-08-12 Bean <bean123ch@gmail.com>
37703 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
37705 2008-08-11 Robert Millan <rmh@aybabtu.com>
37707 * kern/i386/linuxbios/startup.S: Move from here ...
37708 * kern/i386/coreboot/startup.S: ... to here.
37710 * kern/i386/linuxbios/init.c: Move from here ...
37711 * kern/i386/coreboot/init.c: ... to here.
37713 * kern/i386/linuxbios/table.c: Move from here ...
37714 * kern/i386/coreboot/mmap.c: ... to here.
37716 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
37718 2008-08-11 Robert Millan <rmh@aybabtu.com>
37720 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
37721 errors. Leave it to the upper layer to handle them.
37723 2008-08-09 Christian Franke <franke@computer.org>
37725 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
37726 * conf/common.rmk: Install `grub-pe2elf' only if requested.
37727 Install `grub.d/10_windows' only on Cygwin.
37728 * configure.ac: Add subst of `target_os'.
37729 Check `target_os' also before setting TARGET_OBJ2ELF.
37730 Add `--enable-grub-pe2elf'.
37732 2008-08-08 Robert Millan <rmh@aybabtu.com>
37734 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
37735 (grub_last_time): Change type to grub_uint64_t.
37736 (grub_disk_open): Migrate code from to using grub_get_time_ms().
37737 (grub_disk_close): Likewise.
37739 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
37740 (run_menu): Migrate code from to using grub_get_time_ms().
37742 * util/misc.c (grub_get_time_ms): New function.
37744 2008-08-08 Marco Gerards <marco@gnu.org>
37746 * disk/ata.c (grub_ata_regget): Change return type to
37748 (grub_ata_regget2): Likewise.
37749 (grub_ata_wait_status): New function.
37750 (grub_ata_wait_busy): Removed function, updated all users to use
37751 `grub_ata_wait_status'.
37752 (grub_ata_wait_drq): Likewise.
37753 (grub_ata_cmd): New function.
37754 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
37756 (grub_ata_pio_write): Add error handling.
37757 (grub_atapi_identify): Likewise.
37758 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
37760 (grub_ata_identify): Use `grub_ata_cmd' and improve error
37761 handling. Actually use the detected registers. Reorder the
37762 detection logic such that it is easier to read.
37763 (grub_ata_pciinit): Do not assign the same ID to each controller.
37764 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
37766 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
37768 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
37770 2008-08-08 Marco Gerards <marco@gnu.org>
37774 2008-08-07 Bean <bean123ch@gmail.com>
37776 * include/grub/x86_64/pci.h: New file.
37778 2008-08-07 Christian Franke <franke@computer.org>
37780 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
37781 (TIMER2_GATE): Likewise.
37782 (grub_pit_wait): Add enable/disable of the timer2 gate
37783 bit of port 0x61. This fixes a possible infinite loop.
37785 2008-08-07 Bean <bean123ch@gmail.com>
37787 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
37788 kern/i386/tsc.c and kern/i386/pit.c.
37790 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
37793 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
37796 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
37798 2008-08-07 Bean <bean123ch@gmail.com>
37800 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
37802 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
37804 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
37805 multiple inclusion. Add #include <grub/types.h>.
37807 2008-08-06 Christian Franke <franke@computer.org>
37809 * conf/common.rmk: Build and install `10_windows'.
37810 * util/grub.d/10_windows.in: New script.
37812 2008-08-06 Pavel Roskin <proski@gnu.org>
37814 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
37816 2008-08-06 Robert Millan <rmh@aybabtu.com>
37818 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
37819 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
37821 2008-08-06 Bean <bean123ch@gmail.com>
37823 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
37824 (grub_pxefs_fs_int): Remove dummy definition.
37825 (grub_pxefs_open): Use data->block_size to store the current block
37827 (grub_pxefs_read): Use block size stored in data->block_size. As the
37828 value of grub_pxe_blksize can be changed after the file is opened.
37830 2008-08-06 Bean <bean123ch@gmail.com>
37832 * fs/i386/pc/pxe.c (curr_file): new variable.
37833 (grub_pxefs_open): Simply the handling of pxe file system. Don't
37834 require the dummy internal file system anymore.
37835 (grub_pxefs_read): Removed.
37836 (grub_pxefs_close): Likewise.
37837 (grub_pxefs_fs_int): Likewise.
37838 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
37839 connection when we switch file.
37840 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
37842 2008-08-06 Robert Millan <rmh@aybabtu.com>
37844 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
37846 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
37847 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
37849 * kern/i386/halt.c: New file.
37850 * kern/i386/reboot.c: Likewise.
37851 * include/grub/i386/reboot.h: Likewise.
37852 * include/grub/i386/halt.h: Likewise.
37854 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
37855 Include `<grub/cpu/halt.h>'.
37856 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
37857 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
37859 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
37860 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
37861 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
37862 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
37863 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
37864 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
37866 * include/grub/i386/at_keyboard.h: ... to here.
37868 2008-08-05 Robert Millan <rmh@aybabtu.com>
37870 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
37871 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
37872 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
37873 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
37874 `kern/generic/millisleep.c'.
37876 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
37877 instead of grub_get_rtc().
37878 (grub_tsc_init): Initialize `tsc_boot_time'.
37880 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
37881 (grub_machine_init): Use grub_tsc_init() rather than
37882 installing an RTC-based handler via grub_install_get_time_ms().
37884 * kern/i386/pit.c: New file.
37885 * include/grub/i386/pit.h: Likewise.
37887 2008-08-05 Bean <bean123ch@gmail.com>
37889 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
37891 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
37892 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
37893 (pxe_mod_SOURCES): New macro.
37894 (pxe_mod_CFLAGS): Likewise.
37895 (pxe_mod_LDFLAGS): Likewise.
37896 (pxecmd_mod_SOURCES): Likewise.
37897 (pxecmd_mod_CFLAGS): Likewise.
37898 (pxecmd_mod_LDFLAGS): Likewise.
37900 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
37901 (grub_pxe_call): Likewise.
37903 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
37905 * commands/i386/pc/pxecmd.c: New file.
37907 * fs/i386/pc/pxe.c: Likewise.
37909 * include/grub/i386/pc/pxe.h: Likewise.
37911 2008-08-05 Bean <bean123ch@gmail.com>
37913 * util/console.c (grub_console_cur_color): New variable.
37914 (grub_console_standard_color): Likewise.
37915 (grub_console_normal_color): Likewise.
37916 (grub_console_highlight_color): Likewise.
37917 (color_map): Likewise.
37918 (use_color): Likewise.
37919 (NUM_COLORS): New macro.
37920 (grub_ncurses_setcolorstate): Handle color properly.
37921 (grub_ncurses_setcolor): Don't change color here, just remember the
37922 settings, color will be set in grub_ncurses_setcolorstate.
37923 (grub_ncurses_getcolor): New function.
37924 (grub_ncurses_init): Initialize color pairs.
37925 (grub_ncurses_term): New member grub_ncurses_getcolor.
37927 2008-08-05 Colin D Bennett <colin@gibibit.com>
37929 High resolution timer support. Implemented for x86 CPUs using TSC.
37930 Extracted generic grub_millisleep() so it's linked in only as needed.
37931 This requires a Pentium compatible CPU; if the RDTSC instruction is
37932 not supported, then it falls back on the generic grub_get_time_ms()
37933 implementation that uses the machine's RTC.
37935 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
37936 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
37937 `kern/generic/millisleep.c'.
37939 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
37940 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
37942 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
37943 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
37945 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37947 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
37948 `kern/generic/millisleep.c'.
37950 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37952 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
37954 * kern/generic/rtc_get_time_ms.c: New file.
37956 * kern/generic/millisleep.c: New file.
37958 * kern/misc.c: Don't include
37959 <kern/time.h> anymore.
37960 (grub_millisleep_generic): Removed.
37962 * commands/sleep.c (grub_interruptible_millisleep): Uses
37963 grub_get_time_ms() instead of grub_get_rtc().
37965 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
37967 (grub_cpu_is_cpuid_supported): New inline function.
37968 (grub_cpu_is_tsc_supported): New inline function.
37969 (grub_tsc_init): New function prototype.
37970 (grub_tsc_get_time_ms): New function prototype.
37972 * kern/i386/tsc.c (grub_get_time_ms): New file.
37974 * include/grub/time.h: Include <grub/types.h.
37975 (grub_millisleep_generic): Removed.
37976 (grub_get_time_ms): New prototype.
37977 (grub_install_get_time_ms): New prototype.
37978 (grub_rtc_get_time_ms): New prototype.
37980 * kern/time.c (grub_get_time_ms): New function.
37981 (grub_install_get_time_ms): New function.
37983 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
37984 <grub/time.h> anymore.
37985 (grub_millisleep): Removed.
37986 (grub_machine_init): Call grub_tsc_init.
37988 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
37989 get_time_ms() implementation.
37991 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
37992 (ieee1275_get_time_ms): New function.
37993 (grub_machine_init): Install get_time_ms() implementation.
37995 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
37996 (grub_machine_init): Call grub_tsc_init().
37997 (grub_millisleep): Removed.
37999 * kern/ieee1275/init.c (grub_millisleep): Removed.
38000 (grub_machine_init): Install ieee1275_get_time_ms()
38002 (ieee1275_get_time_ms): New function.
38003 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
38006 2008-08-05 Marco Gerards <marco@gnu.org>
38008 * disk/ata.c: Include <grub/pci.h>.
38009 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
38010 (grub_ata_initialize): Rewritten.
38011 (grub_ata_device_initialize): New function.
38013 2008-08-04 Pavel Roskin <proski@gnu.org>
38015 * kern/main.c: Include grub/mm.h.
38017 2008-08-04 Robert Millan <rmh@aybabtu.com>
38019 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
38020 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
38021 corruption problem).
38023 2008-08-04 Robert Millan <rmh@aybabtu.com>
38025 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
38026 warnings introduced in my last commit.
38028 2008-08-03 Robert Millan <rmh@aybabtu.com>
38030 Make PCI available on all i386 architectures.
38032 * include/grub/i386/pc/pci.h: Move from here ...
38033 * include/grub/i386/pci.h: ... to here.
38035 * include/grub/i386/pc/pci.h: Remove.
38036 * include/grub/i386/efi/pci.h: Remove.
38037 * include/grub/x86_64/efi/pci.h: Remove.
38039 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
38040 `<grub/cpu/pci.h>'.
38042 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
38043 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
38044 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
38046 * conf/i386-ieee1275.rmk: Likewise.
38048 2008-08-03 Robert Millan <rmh@aybabtu.com>
38050 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
38051 (grub_console_setcursor): Make it possible to set cursor off.
38053 2008-08-03 Robert Millan <rmh@aybabtu.com>
38055 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
38056 of modules instead of assuming which platform provides what.
38057 * util/update-grub.in: Likewise.
38059 2008-08-03 Robert Millan <rmh@aybabtu.com>
38061 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
38062 instead of `grub_install_dos_part' to determine whether a drive needs
38063 to be prepended to prefix (`grub_install_dos_part' is not reliable,
38064 because it can be overridden when loading GRUB via Multiboot).
38066 2008-08-02 Robert Millan <rmh@aybabtu.com>
38068 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
38070 2008-08-02 Robert Millan <rmh@aybabtu.com>
38072 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
38073 of informational grub_dprintf() calls.
38075 2008-08-02 Robert Millan <rmh@aybabtu.com>
38077 * disk/memdisk.c (memdisk_size): Don't initialize.
38078 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
38080 * include/grub/i386/pc/kernel.h
38081 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
38082 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
38083 (grub_memdisk_image_size, grub_arch_memdisk_addr)
38084 (grub_arch_memdisk_size): Remove.
38086 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
38087 field (was only used to transfer a constant). Add `type' field to
38088 support multiple module types.
38089 (grub_module_iterate): New function.
38091 * kern/device.c (grub_device_open): Do not hide error messages
38092 when grub_disk_open() fails. Use grub_print_error() instead.
38094 * kern/i386/pc/init.c (grub_arch_modules_addr)
38095 (grub_arch_memdisk_size): Remove functions.
38096 (grub_arch_modules_addr): Return the module address in high memory
38097 (now that it isn't copied anymore).
38099 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
38100 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
38101 decompression routine (grub_total_module_size already includes that
38102 now). Don't copy modules back to low memory.
38104 * kern/main.c: Include `<grub/mm.h>'.
38105 (grub_load_modules): Split out (and use) ...
38106 (grub_module_iterate): ... this function, which iterates through
38107 module objects and runs a hook.
38108 Comment out grub_mm_init_region() call, as it would cause non-ELF
38109 modules to be overwritten.
38111 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
38112 the memdisk image in its own region, make it part of the module list.
38113 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
38114 (main): Parse --memdisk|-m option, and pass user-provided path as
38115 parameter to generate_image().
38116 (add_segments): Pass `memdisk_path' down to load_modules().
38117 (load_modules): Embed memdisk image in module section when requested.
38118 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
38119 `header.type' instead of `header.offset'.
38121 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
38122 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
38123 (memdisk_mod_LDFLAGS): New variables.
38124 * conf/i386-coreboot.rmk: Likewise.
38125 * conf/i386-ieee1275.rmk: Likewise.
38127 2008-08-02 Robert Millan <rmh@aybabtu.com>
38129 * loader/i386/pc/multiboot.c (playground, forward_relocator)
38130 (backward_relocator): New variables. Used to allocate and relocate
38131 the payload, respectively.
38132 (grub_multiboot_load_elf32): Load into heap instead of requested
38133 address, install the appropriate relocator code in each bound of
38134 the payload, and set the entry point such that
38135 grub_multiboot_real_boot() will jump to one of them.
38137 * kern/i386/loader.S (grub_multiboot_payload_size)
38138 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
38139 (grub_multiboot_payload_entry_offset): New variables.
38140 (grub_multiboot_real_boot): Set cpu context to what the relocator
38141 expects, and jump to the relocator instead of the payload.
38143 * include/grub/i386/loader.h (grub_multiboot_payload_size)
38144 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
38145 (grub_multiboot_payload_entry_offset): Export.
38147 2008-08-01 Bean <bean123ch@gmail.com>
38149 * normal/menu_entry.c (editor_getline): Don't return the original
38150 string as result, as it will be released by lexer once it has done
38153 2008-08-01 Robert Millan <rmh@aybabtu.com>
38155 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
38156 within menuentries, not before them.
38157 util/grub.d/10_hurd.in: Likewise.
38159 2008-08-01 Bean <bean123ch@gmail.com>
38161 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
38162 (bufio_mod_SOURCES): New macro.
38163 (bufio_mod_CFLAGS): Likewise.
38164 (bufio_mod_LDFLAGS): Likewise.
38166 * include/grub/bufio.h: New file.
38168 * io/bufio.c: Likewise.
38170 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
38171 (grub_video_reader_png): Use grub_buffile_open to open file.
38173 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
38174 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
38176 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
38177 (grub_video_reader_tga): Use grub_buffile_open to open file.
38179 * font/manager.c: Include <grub/bufio.h>.
38180 (add_font): Use grub_buffile_open to open file.
38182 2008-07-31 Robert Millan <rmh@aybabtu.com>
38184 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
38185 ELF segments, use a macro for arbitrarily accessing any of them instead
38186 of preparing a pointer that allows access to one at a time.
38187 (grub_multiboot_load_elf64): Likewise.
38189 2008-07-31 Bean <bean123ch@gmail.com>
38191 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
38192 GRUB_KERNEL_MACHINE_DATA_END.
38194 2008-07-30 Robert Millan <rmh@aybabtu.com>
38196 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
38197 Increase from 0x50 to 0x60.
38198 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
38199 use UUIDs to identify the root drive for them. If that's not
38201 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
38202 check, for cross-disk installs.
38204 2008-07-30 Robert Millan <rmh@aybabtu.com>
38206 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
38207 is non-empty, use it to set the `prefix' environment variable instead
38208 of the usual approach.
38209 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
38210 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
38211 environment variable instead of dummy make_install_device().
38213 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
38214 (start): Insert a data section, with `grub_prefix' variable.
38215 * kern/i386/linuxbios/startup.S: Likewise.
38217 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
38218 New variable reference.
38219 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
38220 New macro. Defines offset of `grub_prefix' within startup.S (relative
38222 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
38223 section within startup.S (relative to `start').
38224 * include/grub/i386/coreboot/kernel.h: Likewise.
38226 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
38227 Overwrite grub_prefix with its contents, at the beginning of the
38229 (main): Understand -p|--prefix.
38231 2008-07-30 Robert Millan <rmh@aybabtu.com>
38233 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
38235 2008-07-30 Robert Millan <rmh@aybabtu.com>
38237 * term/i386/pc/vga_text.c (grub_console_cls): Use
38238 grub_console_gotoxy() to go back to beginning of the screen.
38239 Found by Patrick Georgi <patrick.georgi@coresystems.de>
38241 2008-07-29 Christian Franke <franke@computer.org>
38243 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
38244 Add conversion of emulated mount points on Cygwin.
38246 2008-07-29 Christian Franke <franke@computer.org>
38248 * util/update-grub.in: Add a check for admin
38250 Remove old `grub.cfg.new' before creation.
38251 Add `-f' to `mv' to handle the different filesystem
38252 semantics of Windows.
38254 2008-07-29 Bean <bean123ch@gmail.com>
38256 * normal/main.c (get_line): Fix buffer overflow bug.
38258 2008-07-28 Robert Millan <rmh@aybabtu.com>
38260 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
38261 (struct grub_apple_header): New struct. Describes the layout of
38262 the partmap header.
38263 (apple_partition_map_iterate): Check the header magic as well as the
38264 partition magic (which was already being checked).
38266 2008-07-28 Pavel Roskin <proski@gnu.org>
38268 * genmk.rb: Add a warning to the beginning of the output that
38269 it's a generated file and should not be edited.
38271 2008-07-28 Robert Millan <rmh@aybabtu.com>
38273 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
38274 with the same number are found, just use issue a warning with
38275 grub_dprintf(), as this error has been reported to be non-fatal.
38277 2008-07-27 Robert Millan <rmh@aybabtu.com>
38279 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
38282 2008-07-27 Bean <bean123ch@gmail.com>
38284 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
38285 (grub_fat_find_dir): Ignore case when comparing filename.
38287 2008-07-27 Bean <bean123ch@gmail.com>
38289 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
38290 smallino, as it's more descriptive, and i8count can be confused with
38291 the other field count.
38292 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
38295 2008-07-27 Bean <bean123ch@gmail.com>
38297 * commands/crc.c: New file.
38299 * lib/crc.c: Likewise.
38301 * include/grub/lib/crc.h: Likewise.
38303 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
38305 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
38306 (hexdump): Move this function to ...
38308 * lib/hexdump.c: ... here.
38310 * include/grub/hexdump.h: Renamed to ...
38312 * include/grub/lib/hexdump.h: ... this.
38314 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
38316 * util/grub-editenv.c: Likewise.
38318 * include/envblk.h: Renamed to ...
38320 * include/lib/envblk.h: ... this.
38322 * util/envblk.c: Renamed to ...
38324 * lib/envblk.c: ... this.
38326 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
38328 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
38329 (pkglib_MODULES): Add crc.mod.
38330 (hexdump_mod_SOURCES): Add lib/hexdump.c.
38331 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
38332 (crc_mod_SOURCES): New macro.
38333 (crc_mod_CFLAGS): Likewise.
38334 (crc_mod_LDFLAGS): Likewise.
38336 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
38338 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38340 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38342 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38344 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38346 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
38348 * commands/help.c: Include <grub/term.h>.
38349 (TERM_WIDTH): Removed. Updated all users.
38351 2008-07-27 Pavel Roskin <proski@gnu.org>
38353 * util/getroot.c (find_root_device): Rephrase a comment to avoid
38354 spurious warnings about a comment within a comment.
38356 2008-07-25 Robert Millan <rmh@aybabtu.com>
38358 * util/getroot.c (find_root_device): Skip devices that match
38359 /dev/dm-[0-9]. This lets the real device be found for any type of
38360 abstraction (LVM, EVMS, RAID..).
38361 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
38362 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
38363 device is found first, find_root_device() will now skip it.
38365 2008-07-24 Pavel Roskin <proski@gnu.org>
38367 * include/grub/types.h: Use __builtin_bswap32() and
38368 __builtin_bswap64() with gcc 4.3 and newer.
38370 2008-07-24 Christian Franke <franke@computer.org>
38372 * util/i386/pc/grub-install.in: If `--debug' is specified,
38373 pass `--verbose' to grub-setup.
38374 Abort script if make_system_path_relative_to_its_root() fails.
38376 2008-07-24 Bean <bean123ch@gmail.com>
38378 * configure.ac: Fixed a bug caused by the previous cygwin patch,
38379 variable `target_platform' should be `platform'.
38381 2008-07-24 Bean <bean123ch@gmail.com>
38383 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
38384 (grub_png_init_fixed_block): New function.
38385 (grub_png_decode_image_data): Handle fixed huffman code compression.
38387 2008-07-24 Bean <bean123ch@gmail.com>
38389 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
38390 (grub_pe2elf_SOURCES): New macro.
38391 (CLEANFILES): Add grub-pe2elf.
38393 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
38394 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
38395 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
38396 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
38397 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
38398 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
38399 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
38400 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
38401 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
38402 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
38403 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
38404 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
38405 (GRUB_PE32_DT_FUNCTION): Likewise.
38406 (GRUB_PE32_REL_I386_DIR32): Likewise.
38407 (GRUB_PE32_REL_I386_REL32): Likewise.
38408 (grub_pe32_symbol): New structure.
38409 (grub_pe32_reloc): Likewise.
38411 * util/grub-pe2elf.c: New file.
38413 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
38414 start symbol in non pc platform.
38416 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
38418 The following patches are from Christian Franke.
38420 * include/grub/dl.h: Remove .previous, gas supports this only
38423 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
38424 Remove .type, gas supports this only for ELF format.
38426 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
38427 nullbytes in symbol table. This fixes an infinite loop if table is
38430 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
38431 TARGET_IMG_LDFLAGS and EXEEXT.
38433 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
38434 TARGET_IMG_LDFLAGS_AC.
38435 (grub_CHECK_STACK_ARG_PROBE): New function.
38437 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
38439 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
38441 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
38442 to set TARGET_IMG_LD* accordingly.
38443 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
38444 Add call to grub_CHECK_STACK_ARG_PROBE.
38445 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
38447 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
38449 * genmk.rb: Add EXEEXT to CLEANFILES.
38451 2008-07-23 Robert Millan <rmh@aybabtu.com>
38453 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
38454 define the codes for arrows and lines used for the menu).
38455 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
38458 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
38459 fonts, because the latter are too slow.
38461 2008-07-21 Bean <bean123ch@gmail.com>
38463 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
38464 a20. Run keyboard test last, as it will cause macbook to halt.
38466 2008-07-18 Pavel Roskin <proski@gnu.org>
38468 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
38469 load foreign architecture modules correctly anyway. Keep
38470 support for loading host architecture modules, whether we
38471 compile them or not.
38473 2008-07-17 Pavel Roskin <proski@gnu.org>
38475 * configure.ac: Use -m32 or -m64 regardless of whether we had to
38476 change target_cpu. The compiler default can mismatch target_cpu
38479 * disk/efi/efidisk.c: Fix format warnings on x86_64.
38480 * kern/efi/efi.c: Likewise.
38482 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
38483 target compiler is functional.
38484 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
38487 * configure.ac: Default to efi platform for x86_64-apple. Allow
38488 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
38489 adjustments from the rest, only do them if target is not
38490 explicitly given. Merge other adjustments with the final sanity
38491 check. Remove an extraneous check for supported CPU. Be
38492 specific which CPU and which platform is not supported.
38494 * configure.ac: Default to pc platform for x86_64.
38496 2008-07-17 Robert Millan <rmh@aybabtu.com>
38498 Partial LinuxBIOS -> Coreboot rename.
38500 * conf/i386-linuxbios.rmk: Renamed to ...
38501 * conf/i386-coreboot.rmk: ... this.
38502 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
38503 * configure.ac: Accept "coreboot" as input platform (but maintain
38504 compatibility with "linuxbios").
38505 * include/grub/i386/linuxbios: Renamed to ...
38506 * include/grub/i386/coreboot: ... this.
38508 2008-07-17 Bean <bean123ch@gmail.com>
38510 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
38511 (appleldr_mod_SOURCE): New variable.
38512 (appleldr_mod_CFLAGS): Likewise.
38513 (appleldr_mod_LDFLAGS): Likewise.
38514 (pci_mod_SOURCES): Likewise.
38515 (pci_mod_CFLAGS): Likewise.
38516 (pci_mod_LDFLAGS): Likewise.
38517 (lspci_mod_SOURCES): Likewise.
38518 (lspci_mod_CFLAGS): Likewise.
38519 (lspci_mod_LDFLAGS): Likewise.
38521 * conf/x86_64-efi.rmk: New file.
38523 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
38525 (grub_efidisk_write): Likewise.
38527 * include/efi/api.h (efi_call_0): New macro.
38528 (efi_call_1): Likewise.
38529 (efi_call_2): Likewise.
38530 (efi_call_3): Likewise.
38531 (efi_call_4): Likewise.
38532 (efi_call_5): Likewise.
38533 (efi_call_6): Likewise.
38535 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
38536 grub_rescue_cmd_chainloader.
38538 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
38539 (grub_pe32_optional_header): Change some fields based on i386 or
38541 (GRUB_PE32_PE32_MAGIC): Likewise.
38543 * include/grub/efi/uga_draw.h: New file.
38545 * include/grub/elf.h (STN_ABS): New constant.
38546 (R_X86_64_NONE): Relocation constant for x86_64.
38547 (R_X86_64_64): Likewise.
38548 (R_X86_64_PC32): Likewise.
38549 (R_X86_64_GOT32): Likewise.
38550 (R_X86_64_PLT32): Likewise.
38551 (R_X86_64_COPY): Likewise.
38552 (R_X86_64_GLOB_DAT): Likewise.
38553 (R_X86_64_JUMP_SLOT): Likewise.
38554 (R_X86_64_RELATIVE): Likewise.
38555 (R_X86_64_GOTPCREL): Likewise.
38556 (R_X86_64_32): Likewise.
38557 (R_X86_64_32S): Likewise.
38558 (R_X86_64_16): Likewise.
38559 (R_X86_64_PC16): Likewise.
38560 (R_X86_64_8): Likewise.
38561 (R_X86_64_PC8): Likewise.
38563 * include/grub/i386/efi/pci.h: New file.
38565 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
38566 Change it value based on platform.
38567 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
38568 (GRUB_E820_RAM): Likewise.
38569 (GRUB_E820_RESERVED): Likewise.
38570 (GRUB_E820_ACPI): Likewise.
38571 (GRUB_E820_NVS): Likewise.
38572 (GRUB_E820_EXEC_CODE): Likewise.
38573 (GRUB_E820_MAX_ENTRY): Likewise.
38574 (grub_e820_mmap): New structure.
38575 (linux_kernel_header): Change the efi field according to different
38576 kernel version, also field from linux_kernel_header.
38578 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
38580 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
38581 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
38582 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
38583 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
38584 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
38585 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
38586 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
38587 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
38588 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
38589 (GRUB_PCI_ADDR_IO_MASK): Likewise.
38591 * include/grub/x86_64/efi/kernel.h: New file.
38593 * include/grub/x86_64/efi/loader.h: Likewise.
38595 * include/grub/x86_64/efi/machine.h: Likewise.
38597 * include/grub/x86_64/efi/pci.h: Likewise.
38599 * include/grub/x86_64/efi/time.h: Likewise.
38601 * include/grub/x86_64/linux.h: Likewise.
38603 * include/grub/x86_64/setjmp.h: Likewise.
38605 * include/grub/x86_64/time.h: Likewise.
38607 * include/grub/x86_64/types.h: Likewise.
38609 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
38610 GRUB_TARGET_SIZEOF_VOID_P.
38612 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
38613 (grub_efi_locate_handle): Likewise.
38614 (grub_efi_open_protocol): Likewise.
38615 (grub_efi_set_text_mode): Likewise.
38616 (grub_efi_stall): Likewise.
38617 (grub_exit): Likewise.
38618 (grub_reboot): Likewise.
38619 (grub_halt): Likewise.
38620 (grub_efi_exit_boot_services): Likewise.
38621 (grub_get_rtc): Likewise.
38623 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
38624 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
38625 (grub_efi_allocate_pages): Wrap efi calls.
38626 (grub_efi_free_pages): Wrap efi calls.
38627 (grub_efi_get_memory_map): Wrap efi calls.
38629 * kern/x86_64/dl.c: New file.
38631 * kern/x86_64/efi/callwrap.S: Likewise.
38633 * kern/x86_64/efi/startup.S: Likewise.
38635 * loader/efi/appleloader.c: Likewise.
38637 * loader/efi/chainloader.c (cmdline): New variable.
38638 (grub_chainloader_unload): Wrap efi calls.
38639 (grub_chainloader_boot): Likewise.
38640 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
38643 * loader/efi/chainloader_normal.c (chainloader_command):
38644 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
38647 * loader/i386/efi/linux.c (allocate_pages): Change allocation
38649 (grub_e820_add_region): New function.
38650 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
38652 (grub_find_video_card): New function.
38653 (grub_linux_setup_video): New function.
38654 (grub_rescue_cmd_linux): Probe for video information.
38656 * normal/x86_64/setjmp.S: New file.
38658 * term/efi/console.c (map_char): New function.
38659 (grub_console_putchar): Map unicode char.
38660 (grub_console_checkkey): Wrap efi calls.
38661 (grub_console_getkey): Likewise.
38662 (grub_console_getwh): Likewise.
38663 (grub_console_gotoxy): Likewise.
38664 (grub_console_cls): Likewise.
38665 (grub_console_setcolorstate): Likewise.
38666 (grub_console_setcursor): Likewise.
38668 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
38670 2008-07-16 Pavel Roskin <proski@gnu.org>
38672 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
38675 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
38676 pointer, not an integer. This fixes a warning and prevents
38677 precision loss on 64-bit systems.
38678 (relocate_addresses): Remove unneeded cast.
38680 2008-07-15 Pavel Roskin <proski@gnu.org>
38682 * kern/i386/ieee1275/init.c: Include grub/cache.h.
38684 * term/ieee1275/ofconsole.c: Disable code unused on i386.
38686 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
38687 Fix comparison between signed and unsigned.
38689 * include/grub/i386/ieee1275/console.h: Declare
38690 grub_console_init() and grub_console_fini().
38692 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
38693 It's empty and unused.
38695 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
38696 beginning to avoid warnings with some compilers.
38698 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
38699 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
38701 2008-07-14 Pavel Roskin <proski@gnu.org>
38703 * kern/env.c (grub_register_variable_hook): Don't copy empty
38704 string, it leaks memory. Pass "" to grub_env_set(), it should
38705 handle constant strings.
38707 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
38708 * commands/cmp.c (grub_cmd_cmp): Likewise.
38709 * kern/dl.c (grub_dl_flush_cache): Likewise.
38710 (grub_dl_load_core): Likewise.
38711 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
38712 (grub_elf64_load_phdrs): Likewise.
38714 2008-07-13 Pavel Roskin <proski@gnu.org>
38716 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
38717 between signed and unsigned.
38718 (LzmaEnc_Finish): Fix warning about an unused parameter.
38720 2008-07-13 Bean <bean123ch@gmail.com>
38722 * Makefile.in (enable_lzo): New rule.
38724 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
38726 * configure.ac (ENABLE_LZO): New option --enable-lzo.
38728 * boot/i386/pc/lnxboot.S: #include <config.h>.
38730 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
38731 its value according to the compression algorithm used, lzo or lzma.
38733 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
38734 compression algorithm according to configure macro.
38736 * kern/i386/pc/startup.S (codestart): Likewise.
38738 * kern/i386/pc/lzma_decode.S: New file.
38740 * include/grub/lib/LzFind.h: Likewise.
38742 * include/grub/lib/LzHash.h: Likewise.
38744 * include/grub/lib/LzmaDec.h: Likewise.
38746 * include/grub/lib/LzmaEnc.h: Likewise.
38748 * include/grub/lib/LzmaTypes.h: Likewise.
38750 * lib/LzFind.c: Likewise.
38752 * lib/LzmaDec.c: Likewise.
38754 * lib/LzmaEnc.c: Likewise.
38756 2008-07-13 Bean <bean123ch@gmail.com>
38758 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
38759 (grub_ext4_extent_header): New structure.
38760 (grub_ext4_extent): Likewise.
38761 (grub_ext4_extent_idx): Likewise.
38762 (grub_ext4_find_leaf): New function.
38763 (grub_ext2_read_block): Handle extents.
38765 2008-07-12 Robert Millan <rmh@aybabtu.com>
38767 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
38769 2008-07-11 Robert Millan <rmh@aybabtu.com>
38771 * util/grub.d/40_custom.in: New file. Example on how to add custom
38772 entries to /etc/grub.d.
38773 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
38774 40_custom (implicitly, by merging all the grub.d rules).
38776 2008-07-11 Pavel Roskin <proski@gnu.org>
38778 * commands/read.c (grub_getline): Fix invalid memory access.
38779 Don't add newline to the variable value.
38781 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
38782 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
38783 (serial_hw_get_port): Check validity of the port number.
38784 (grub_cmd_serial): Check return value of serial_hw_get_port().
38786 2008-07-07 Pavel Roskin <proski@gnu.org>
38788 * boot/i386/pc/diskboot.S (notification_string): Replace
38789 "Loading kernel" with just "loading". This is shorter, less
38790 confusing and saves a few bytes for possible future changes.
38792 2008-07-05 Pavel Roskin <proski@gnu.org>
38794 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
38795 size for ATAPI devices, they are undefined. Output sector
38796 number in decimal form.
38798 * disk/ata.c: Use named constants for status bits.
38800 2008-07-04 Pavel Roskin <proski@gnu.org>
38802 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
38803 grub_addr_t before casting it to the void pointer to fix a
38804 warning. Non-addressable regions are discarded earlier.
38805 (grub_arch_modules_addr): Cast _end to grub_addr_t.
38806 * kern/i386/linuxbios/table.c: Include grub/misc.h.
38807 (check_signature): Don't shadow table_header.
38808 (grub_linuxbios_table_iterate): Cast numeric constants to
38809 grub_linuxbios_table_header_t.
38810 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
38813 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
38816 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
38817 pointer, which can cause warnings. Support 64-bit addresses.
38819 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
38820 of sizeof(long). This fixes PowerPC image generation on x86_64.
38822 2008-07-04 Robert Millan <rmh@aybabtu.com>
38824 This fixes a performance issue when pc & gpt partmap iterators
38825 didn't abort iteration even after our hook found what it was
38826 looking for (often causing expensive probes of non-existent drives).
38828 Some callers relied on previous buggy behaviour, since they would
38829 raise an error when their own hooks caused early abortion of its
38832 * kern/device.c (grub_device_open): Improve error message.
38833 * disk/lvm.c (grub_lvm_open): Likewise.
38834 * disk/raid.c (grub_raid_open): Likewise.
38836 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
38837 when hook requests it, independently of grub_errno.
38838 (pc_partition_map_probe): Do not fail when find_func() caused
38839 early abortion of pc_partition_map_iterate().
38841 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
38842 when hook requests it, independently of grub_errno.
38843 (gpt_partition_map_probe): Do not fail when find_func() caused
38844 early abortion of gpt_partition_map_iterate().
38846 * kern/partition.c (grub_partition_iterate): Abort parent iteration
38847 when hook requests it, independently of grub_errno. Do not fail when
38848 part_map_iterate_hook() caused early abortion of p->iterate().
38850 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
38851 when grub_partition_iterate() returned with non-zero.
38853 2008-07-03 Pavel Roskin <proski@gnu.org>
38855 * disk/ata.c (grub_ata_pio_write): Check status before writing,
38856 like we do in grub_ata_pio_read().
38857 (grub_ata_readwrite): Always write individual sectors. Fix the
38858 sector count for the remainder.
38859 (grub_ata_write): Enable writing to ATA devices. Correctly
38860 report error for ATAPI devices.
38862 2008-07-02 Pavel Roskin <proski@gnu.org>
38864 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
38867 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
38868 for every read sector, we already increment it for the whole
38869 batch. This fixes reading more than 256 sectors at once.
38871 * util/grub-editenv.c (cmd_info): Cast argument to long
38872 explicitly. ptrdiff_t reduces to int on i386.
38874 * util/grub-editenv.c (main): Be specific which parameter is
38877 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
38878 (memdisk): Make memdisk_orig_addr a pointer.
38880 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
38881 for file offsets, use grub_off_t instead. Fix printf format
38884 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
38885 there. Real unexpected warnings should not drown in the noise
38886 about known problems.
38888 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
38889 grub_disk_addr_t for memory addresses.
38891 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
38892 explicitly to fix a warning.
38894 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
38896 * Makefile.in (MODULE_LDFLAGS): New variable.
38897 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
38898 the linker accepts --build-id=none.
38899 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
38901 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
38903 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
38904 those in Linux XFS code. Provide a way to access 64-bit parent
38906 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
38907 the end of struct grub_xfs_dir_header.
38909 2008-07-02 Bean <bean123ch@gmail.com>
38911 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
38912 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
38913 and GRUB_IEEE1275_FLAG_NO_ANSI.
38915 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
38916 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
38917 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
38919 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
38920 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
38922 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
38923 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
38925 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
38926 esc sequence on non ANSI terminal.
38927 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
38929 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
38932 2008-07-02 Bean <bean123ch@gmail.com>
38934 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
38935 (grub_editenv_SOURCES): New variable.
38936 (pkglib_MODULES): Add loadenv.mod.
38937 (loadenv_mod_SOURCES): New variable.
38938 (loadenv_mod_CFLAGS): Likewise.
38939 (loadenv_mod_LDFLAGS): Likewise.
38941 * include/grub/envblk.h: New file.
38943 * util/envblk.c: New file.
38945 * util/grub-editenv.c: New file.
38947 * commands/loadenv.c: New file.
38949 2008-07-01 Pavel Roskin <proski@gnu.org>
38951 * include/multiboot2.h (struct multiboot_tag_module): Use char,
38952 not unsigned char. This fixes warnings and is consistent with
38955 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
38957 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
38959 * term/tparm.c (analyze): Always set *popcount.
38961 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
38962 cast to fix a warning.
38964 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
38965 cast to suppress a warning.
38967 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
38968 grub_fshelp_read_file() expects.
38970 * fs/fat.c: Fix UUID calculation on big-endian systems. We
38971 write uuid as a 32-bit value in CPU byte order, so declare and
38974 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
38975 long if the format specifier expects it.
38976 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
38977 * partmap/pc.c (pc_partition_map_iterate): Likewise.
38978 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
38979 long to fix a warning.
38980 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
38981 grub_dprintf() arguments to fix warnings.
38983 2008-06-30 Pavel Roskin <proski@gnu.org>
38985 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
38986 install_bsd_part immediately before core.img is embedded or
38987 modified on disk. This fixes core.img verification if core.img
38988 cannot be embedded.
38990 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
38991 core_path to calculate the blocklist.
38992 Patch from Javier Martín <lordhabbit@gmail.com>
38994 2008-06-29 Robert Millan <rmh@aybabtu.com>
38996 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
38997 block to disk block.
38998 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
38999 Patch from Niels Böhm <bitbucket@arcor.de>
39001 2008-06-29 Robert Millan <rmh@aybabtu.com>
39003 * util/update-grub_lib.in (font_path): Search for fonts in
39004 /boot/grub first, which is more likely to be readable (we aren't
39005 deciding where fonts live, just looking for them).
39007 2008-06-26 Pavel Roskin <proski@gnu.org>
39009 * util/biosdisk.c (read_device_map): Don't leave dead map
39010 entries for devices failing stat() check.
39012 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
39013 core_path_dev for the core.img path on the target device.
39015 2008-06-26 Robert Millan <rmh@aybabtu.com>
39017 * disk/fs_uuid.c: New file.
39018 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
39019 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
39020 (fs_uuid_mod_LDFLAGS): New variables.
39021 * include/grub/disk.h (grub_disk_dev_id): Add
39022 `GRUB_DISK_DEVICE_UUID_ID'.
39023 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
39024 implement iterate().
39026 2008-06-26 Robert Millan <rmh@aybabtu.com>
39028 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
39029 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
39030 Linux image includes no initrd.
39032 2008-06-21 Javier Martín <lordhabbit@gmail.com>
39034 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
39035 call to resolve the core image location that effectively appended the
39038 2008-06-21 Robert Millan <rmh@aybabtu.com>
39040 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
39043 * util/grub.d/10_hurd.in: ... to here ...
39044 * util/grub.d/10_linux.in: ... and here.
39046 2008-06-19 Robert Millan <rmh@aybabtu.com>
39048 * kern/main.c (grub_main): Export `prefix' variable immediately
39049 after it has been set by grub_machine_set_prefix().
39051 2008-06-19 Robert Millan <rmh@aybabtu.com>
39053 * commands/search.c (search_label, search_fs_uuid, search_file): Print
39054 search result when not saving to variable, not the other way around.
39055 When saving to variable, abort iteration as soon as a match is found.
39057 2008-06-19 Robert Millan <rmh@aybabtu.com>
39059 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
39060 check for partition that provides /boot/grub. Its logic is flawed,
39061 as it prevents prepare_grub_to_access_device() from being called
39064 2008-06-19 Robert Millan <rmh@aybabtu.com>
39066 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
39067 "insmod" command directly when abstraction modules are needed,
39068 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
39069 since it had already been processed).
39071 2008-06-19 Pavel Roskin <proski@gnu.org>
39073 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
39074 changed. This is needed in case GRUB_LIBDIR changes.
39075 * conf/i386-ieee1275.rmk: Likewise.
39076 * conf/i386-linuxbios.rmk: Likewise.
39077 * conf/i386-pc.rmk: Likewise.
39078 * conf/powerpc-ieee1275.rmk: Likewise.
39080 2008-06-18 Pavel Roskin <proski@gnu.org>
39082 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
39083 kernel_elf_symlist.c to symlist.c for consistency with other
39084 architectures. Update all users.
39085 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
39087 2008-06-18 Robert Millan <rmh@aybabtu.com>
39089 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
39092 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
39093 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
39094 a RAID device, run setup() for all members independently on whether
39095 LVM abstraction is being used.
39096 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
39097 If grub-mkimage has set `*install_dos_part == -2', don't override this
39099 Perform *install_dos_part adjustments independently on whether
39100 we're embedding or not.
39101 Clarify error message when image is too big for embedding.
39102 Remove duplicate *install_dos_part stanza.
39104 2008-06-17 Robert Millan <rmh@aybabtu.com>
39106 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
39107 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
39109 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
39110 values in grub_ofconsole_normal_color and
39111 grub_ofconsole_highlight_color (they're not directly related to
39112 background and foreground).
39113 (grub_ofconsole_setcolorstate): Extract background and foreground
39114 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
39116 2008-06-17 Robert Millan <rmh@aybabtu.com>
39118 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
39119 /boot/grub for the check in last commit, not /boot (they could be
39120 different partitions).
39122 2008-06-16 Robert Millan <rmh@aybabtu.com>
39124 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
39125 asked to setup access for the same partition that provides /boot,
39126 don't bother using UUIDs since our root already has the value we
39129 2008-06-16 Robert Millan <rmh@aybabtu.com>
39131 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
39133 Patch from Sven Mueller <sven@debian.org>.
39135 2008-06-16 Robert Millan <rmh@aybabtu.com>
39137 * util/update-grub.in: Check for $EUID instead of $UID.
39138 Reported by Vincent Zweije.
39140 2008-06-16 Bean <bean123ch@gmail.com>
39142 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
39143 (grub_ext2_read_block): Likewise.
39144 (grub_ext2_read_inode): Likewise.
39145 (grub_ext2_mount): Likewise.
39146 (grub_ext2_close): Likewise.
39147 (grub_ext3_get_journal): Removed.
39149 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
39150 (grub_reiserfs_read_symlink): Likewise.
39151 (grub_reiserfs_mount): Likewise.
39152 (grub_reiserfs_open): Likewise.
39153 (grub_reiserfs_read): Likewise.
39154 (grub_reiserfs_close): Likewise.
39155 (grub_reiserfs_get_journal): Removed.
39157 * fs/fshelp.c (grub_fshelp_read): Removed.
39158 (grub_fshelp_map_block): Likewise.
39160 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
39161 (grub_fshelp_journal): Likewise.
39162 (grub_fshelp_read): Likewise.
39163 (grub_fshelp_map_block): Likewise.
39165 2008-06-16 Pavel Roskin <proski@gnu.org>
39167 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
39168 floating point anymore.
39169 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
39171 2008-06-15 Pavel Roskin <proski@gnu.org>
39173 * commands/ls.c (grub_ls_list_files): Use integer calculations
39174 for human readable format, avoid floating point use.
39175 * kern/misc.c (grub_ftoa): Remove.
39176 (grub_vsprintf): Remove floating point support.
39178 2008-06-15 Robert Millan <rmh@aybabtu.com>
39180 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
39182 Reported by Max Vozeler.
39184 2008-06-15 Robert Millan <rmh@aybabtu.com>
39186 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
39187 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
39189 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
39190 the beginning of the prefix.
39192 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
39193 It is assumed that if we have a memdisk, grub-mkimage has set
39194 grub_prefix to include the "(memdisk)" drive in it.
39196 2008-06-15 Robert Millan <rmh@aybabtu.com>
39198 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
39199 Initialize keyboard controller after registering the terminal, so that
39200 grub_printf() can be called from grub_keyboard_controller_init().
39202 2008-06-15 Robert Millan <rmh@aybabtu.com>
39204 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
39205 extent-btree which is written as big endian on disk.
39206 Reported by Alain Greppin <al@chilibi.org>.
39208 2008-06-14 Robert Millan <rmh@aybabtu.com>
39210 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
39211 * util/i386/pc/grub-install.in (modules): Likewise.
39213 2008-06-13 Pavel Roskin <proski@gnu.org>
39215 * commands/ls.c (grub_ls_list_files): Fix format warnings.
39217 2008-06-13 Bean <bean123ch@gmail.com>
39219 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
39221 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
39223 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
39224 to indicate sparse block.
39226 2008-06-12 Pavel Roskin <proski@gnu.org>
39228 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
39229 number, grub_fshelp_read() does it for us.
39231 * fs/fshelp.c (grub_fshelp_read): New function. Implement
39232 linear disk read with journal translation.
39233 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
39234 * include/grub/fshelp.h: Declare grub_fshelp_read().
39236 2008-06-09 Pavel Roskin <proski@gnu.org>
39238 * fs/minix.c (grub_minix_mount): Handle error reading
39241 2008-06-08 Robert Millan <rmh@aybabtu.com>
39243 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
39244 don't append the RAID prefix afterwards.
39245 Reported by Clint Adams.
39247 2008-06-08 Robert Millan <rmh@aybabtu.com>
39249 Based on description from Pavel:
39250 * kern/disk.c (grub_disk_check_range): Rename to ...
39251 (grub_disk_adjust_range): ... this. Add a comment explaining the
39252 tasks performed by this function.
39254 2008-06-08 Robert Millan <rmh@aybabtu.com>
39256 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
39257 `num_serial' (for consistency with other variables).
39258 (struct grub_ntfs_data): Add `uuid' member.
39259 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
39260 (grub_ntfs_uuid): New function.
39261 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
39263 2008-06-07 Pavel Roskin <proski@gnu.org>
39265 * util/biosdisk.c (open_device): Revert last change to the
39266 function, it broke installation. The sector needs to be
39267 different dependent on which device is opened.
39269 2008-06-06 Robert Millan <rmh@aybabtu.com>
39271 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
39272 rest of GRUB, and breakage doesn't happen if its value were modified.
39274 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
39275 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
39276 a constant (same value).
39277 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
39278 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
39280 2008-06-06 Robert Millan <rmh@aybabtu.com>
39282 * util/biosdisk.c (open_device): Do not modify sector offset when
39283 accessing a partition. kern/disk.c already handles this for us.
39285 2008-06-06 Robert Millan <rmh@aybabtu.com>
39287 * util/grub-emu.c (grub_machine_init): Move code in this function from
39289 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
39290 segfault in case grub_printf() is called).
39292 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
39293 grub_probe. Update all users not to explicitly add it again.
39294 (grub_device): New variable; contains corresponding device for grubdir.
39295 (fs_module, partmap_module, devabstraction_module): Pass
39296 `--device ${grub_device}' to grub_probe to avoid traversing /dev
39299 2008-06-05 Robert Millan <rmh@aybabtu.com>
39301 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
39302 is found, print it (same layout as with labels).
39304 2008-06-04 Robert Millan <rmh@aybabtu.com>
39306 * util/biosdisk.c (get_drive): Rename to ...
39307 (find_grub_drive): ... this. Update all users.
39309 (get_os_disk): Rename to ...
39310 (convert_system_partition_to_system_disk): ... this. Update all users.
39312 (find_drive): Rename to ...
39313 (find_system_device): ... this. Update all users.
39315 2008-06-04 Robert Millan <rmh@aybabtu.com>
39317 * util/biosdisk.c (get_os_disk): Handle IDA devices.
39318 * util/grub-mkdevicemap.c (get_mmc_disk_name)
39319 (make_device_map): Likewise.
39321 2008-06-01 Robert Millan <rmh@aybabtu.com>
39323 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
39324 before dereferencing it.
39326 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
39327 union with fat12/fat16-specific ones. Add some new fields, including
39328 `num_serial' for both versions.
39329 (struct grub_fat_data): Add `uuid' member.
39330 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
39331 names. Initialize `data->uuid' using `num_serial'.
39332 (grub_fat_uuid): New function.
39333 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
39335 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
39336 (grub_reiserfs_uuid): New function.
39337 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
39340 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
39341 (grub_xfs_uuid): New function.
39342 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
39344 2008-06-01 Robert Millan <rmh@aybabtu.com>
39346 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
39347 code that is backward compatible with pre-uuid search command.
39349 2008-05-31 Robert Millan <rmh@aybabtu.com>
39351 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
39352 floppies after everything else, to ensure floppy drive isn't accessed
39353 unnecessarily (patch from Bean).
39355 2008-05-31 Robert Millan <rmh@aybabtu.com>
39357 * commands/search.c (search_label, search_fs_uuid, search_file): Do
39358 not print device names when we were asked to set a variable.
39360 2008-05-31 Robert Millan <rmh@aybabtu.com>
39362 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
39363 using "cursor-on" and "cursor-off" commands (understood at least by
39364 the Open Firmware flavour on OLPC).
39366 2008-05-31 Michael Gorven <michael@gorven.za.net>
39368 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
39369 on and off sequences.
39371 2008-05-31 Robert Millan <rmh@aybabtu.com>
39373 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
39374 * util/update-grub.in: Likewise.
39376 2008-05-30 Pavel Roskin <proski@gnu.org>
39378 * util/biosdisk.c (linux_find_partition): Simplify logic and
39379 make the code more universal. Keep special processing for
39380 devfs, but use a simple rule for all other devices. If the
39381 device ends with a number, append 'p' and the partition number.
39382 Otherwise, append only the partition number.
39384 2008-05-30 Robert Millan <rmh@aybabtu.com>
39386 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
39387 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
39388 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
39389 the `root' parameter to Linux.
39391 2008-05-30 Robert Millan <rmh@aybabtu.com>
39393 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
39394 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
39395 --fs_uuid with --fs-uuid.
39396 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
39397 all filesystems support them).
39399 2008-05-30 Robert Millan <rmh@aybabtu.com>
39401 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
39402 grub_printf() flags, since we're printing in units of 2 bytes.
39404 2008-05-30 Robert Millan <rmh@aybabtu.com>
39406 * util/grub.d/00_header.in: Remove obsolete comment referencing
39407 convert_system_path_to_grub_path().
39408 * util/update-grub.in: Likewise.
39409 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
39410 (convert_system_path_to_grub_path): Add a warning message explaining
39411 that this function is deprecated. Rely on is_path_readable_by_grub()
39412 for the readability checks.
39413 (font_path): Use is_path_readable_by_grub() for the readability
39414 check rather than convert_system_path_to_grub_path().
39416 2008-05-30 Robert Millan <rmh@aybabtu.com>
39418 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
39419 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
39420 converting it first.
39421 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
39422 grub.cfg for access to font file, and afterwards call it again to set
39425 2008-05-30 Robert Millan <rmh@aybabtu.com>
39427 * commands/search.c (options): Add --fs_uuid option.
39428 (search_fs_uuid): New function.
39429 (grub_cmd_search): Fix --set argument passing.
39430 Use search_fs_uuid() when requested via --fs_uuid.
39431 (grub_search_init): Update help message.
39432 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
39433 and redeclare it as an array of 16-bit words.
39434 (grub_ext2_uuid): New function.
39435 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
39436 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
39437 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
39438 (GRUB_DEVICE_BOOT_UUID): New variables.
39439 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
39440 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
39442 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
39443 just assume `root' variable has the right value.
39444 * util/grub.d/10_linux.in: Likewise.
39445 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
39447 (main): Recognise `-t fs_uuid' argument.
39449 2008-05-30 Robert Millan <rmh@aybabtu.com>
39451 * util/biosdisk.c (map): Redefine structure to hold information
39452 about GRUB drive name.
39453 (get_drive): Reimplement without assuming (and verifying) BIOS-like
39455 (call_hook): Remove.
39456 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
39457 member. Assume drive has partitions.
39458 (grub_util_biosdisk_open): Access device names via `.device' struct
39460 (open_device): Likewise.
39461 (find_drive): Likewise.
39462 (read_device_map): Adjust map[] usage to match the new struct
39463 definition. Don't check for duplicates (still possible, but not cheap
39465 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
39466 (make_device_name): Remove assumption of BIOS-like drive names.
39468 2008-05-30 Pavel Roskin <proski@gnu.org>
39470 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
39471 compiling execute.c doesn't need grub_script.tab.h anymore.
39472 (normal/command.c_DEPENDENCIES): Likewise.
39473 (normal/function.c_DEPENDENCIES): Likewise.
39474 * conf/i386-ieee1275.rmk: Likewise.
39475 * conf/i386-linuxbios.rmk: Likewise.
39476 * conf/i386-pc.rmk: Likewise.
39477 * conf/powerpc-ieee1275.rmk: Likewise.
39478 * conf/sparc64-ieee1275.rmk: Likewise.
39480 2008-05-29 Pavel Roskin <proski@gnu.org>
39482 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
39483 when scanning metadata for volume group name.
39485 * include/grub/script.h: Don't include grub_script.tab.h. It's
39486 a generated file, which may only be included from the files with
39487 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
39488 use union YYSTYPE, as the later allows forward declaration.
39489 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
39491 2008-05-29 Robert Millan <rmh@aybabtu.com>
39493 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
39494 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
39495 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
39496 (grub_console_checkkey): Add grub_dprintf() call to report unknown
39499 2008-05-29 Robert Millan <rmh@aybabtu.com>
39501 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
39502 control key combinations.
39504 2008-05-29 Robert Millan <rmh@aybabtu.com>
39506 * util/powerpc/ieee1275/grub-install.in: Move from here ...
39507 * util/ieee1275/grub-install.in: ... to here.
39508 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
39509 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
39510 (grub_install_SOURCES): Likewise.
39512 2008-05-29 Robert Millan <rmh@aybabtu.com>
39514 * fs/affs.c: Update copyright year.
39515 * fs/ext2.c: Likewise.
39516 * fs/fshelp.c: Likewise.
39517 * fs/hfsplus.c: Likewise.
39518 * fs/ntfs.c: Likewise.
39519 * fs/xfs.c: Likewise.
39520 * include/grub/fshelp.h: Likewise.
39521 * util/grub-mkdevicemap.c: Likewise.
39523 2008-05-28 Robert Millan <rmh@aybabtu.com>
39525 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
39526 might need to be fatfs to support some firmware implementations
39529 2008-05-28 Robert Millan <rmh@aybabtu.com>
39531 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
39533 * util/grub-mkdevicemap.c (get_mmc_disk_name)
39534 (make_device_map): Likewise.
39536 2008-05-20 Bean <bean123ch@gmail.com>
39538 * fs/fshelp.c (grub_fshelp_map_block): New function.
39539 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
39540 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
39542 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
39543 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
39544 (grub_fshelp_journal): New structure.
39545 (grub_fshelp_map_block): New function prototype.
39546 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
39547 (grub_fshelp_map_block): Likewise.
39549 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
39550 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
39551 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
39552 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
39553 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
39554 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
39555 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
39556 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
39557 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
39558 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
39559 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
39560 (grub_ext2_sblock): New members for journal support.
39561 (grub_ext3_journal_header): New structure.
39562 (grub_ext3_journal_revoke_header): Likewise.
39563 (grub_ext3_journal_block_tag): Likewise.
39564 (grub_ext3_journal_sblock): Likewise.
39565 (grub_fshelp_node): New members logfile and journal.
39566 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
39567 grub_fshelp_map_block to get real block number.
39568 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
39570 (grub_ext2_read_inode): Likewise.
39571 (grub_ext3_get_journal): New function.
39572 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
39573 (grub_ext2_close): Release memory used by journal.
39575 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
39576 (REISERFS_MAGIC_DESC_BLOCK): New macro.
39577 (grub_reiserfs_transaction_header): Renamed to
39578 grub_reiserfs_description_block, replace field data with real_blocks.
39579 (grub_reiserfs_commit_block): New structure.
39580 (grub_reiserfs_data): New member journal.
39581 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
39583 (grub_reiserfs_read_symlink): Likewise.
39584 (grub_reiserfs_iterate_dir): Likewise.
39585 (grub_reiserfs_open): Likewise.
39586 (grub_reiserfs_read): Likewise.
39587 (grub_reiserfs_get_journal): New function.
39588 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
39589 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
39590 using grub_reiserfs_get_journal.
39591 (grub_reiserfs_close): Release memory used by journal.
39593 * fs/affs.c (grub_affs_read_block): Change block type to
39594 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
39596 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
39598 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
39600 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
39602 * fs/udf.c (grub_udf_read_block): Change block type to
39603 grub_disk_addr_t. Use type cast to avoid warning.
39605 * fs/xfs.c (grub_xfs_read_block): Likewise.
39607 2008-05-16 Christian Franke <franke@computer.org>
39609 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
39610 to ensure that break with ESC will always work.
39611 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
39612 Remove ESC from keyboard queue.
39614 2008-05-16 Christian Franke <franke@computer.org>
39616 * util/biosdisk.c: [__CYGWIN__] Add includes.
39617 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
39618 (get_os_disk): Move variable declarations to OS specific
39619 parts to avoid warning.
39620 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
39621 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
39622 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
39624 * util/getroot.c: [__CYGWIN__] Add includes.
39625 (strip_extra_slashes): Fix "/" case.
39626 [__CYGWIN__] (get_win32_path): New function.
39627 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
39628 [__CYGWIN__] (find_root_device): Disable.
39629 [__CYGWIN__] (get_bootsec_serial): New function.
39630 [__CYGWIN__] (find_cygwin_root_device): Likewise.
39631 [__linux__] (grub_guess_root_device): Add early returns to simplify
39633 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
39634 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
39635 check for Linux only.
39637 2008-05-15 Bean <bean123ch@gmail.com>
39639 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
39640 keyboard hang problem in apple's intel mac.
39642 2008-05-09 Robert Millan <rmh@aybabtu.com>
39644 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
39646 * util/grub-mkdevicemap.c (get_virtio_disk_name)
39647 (make_device_map): Likewise.
39648 Reported by Aurelien Jarno <aurel32@debian.org>
39650 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
39652 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
39653 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
39654 (make_device_map): Output entries for xvd type disks.
39656 2008-05-07 Robert Millan <rmh@aybabtu.com>
39658 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
39660 * util/grub-mkdevicemap.c (get_cciss_disk_name)
39661 (make_device_map): Likewise.
39662 Reported by Roland Dreier <rdreier@cisco.com>
39664 2008-05-07 Robert Millan <rmh@aybabtu.com>
39666 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
39667 grub_strstr() call. Correct a few mistakes in failure path handling.
39669 2008-05-06 Robert Millan <rmh@aybabtu.com>
39671 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
39672 Do not print a trailing slash (therefore, the root directory is an
39674 (convert_system_path_to_grub_path): Do not remove trailing slash
39675 from make_system_path_relative_to_its_root() output.
39677 * util/i386/pc/grub-install.in: Add trailing slash to output from
39678 make_system_path_relative_to_its_root().
39680 2008-05-06 Robert Millan <rmh@aybabtu.com>
39682 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
39683 ensures that output lines aren't intermangled with those sent to
39684 stderr (via grub_util_info()).
39685 * util/grub-probe.c (grub_refresh): Likewise.
39686 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
39688 2008-05-05 Christian Franke <franke@computer.org>
39690 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
39691 Add Cygwin device names.
39692 (get_ide_disk_name) [__CYGWIN__]: Likewise.
39693 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
39694 (check_device): Return error instead of success on empty name.
39695 (make_device_map): Move label inside linux specific code to
39696 prevent compiler warning.
39698 2008-04-30 Robert Millan <rmh@aybabtu.com>
39700 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
39701 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
39703 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
39705 2008-04-29 Robert Millan <rmh@aybabtu.com>
39707 * docs/grub.cfg: New file (example GRUB configuration).
39709 2008-04-26 Robert Millan <rmh@aybabtu.com>
39711 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
39712 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
39713 and `disk/ieee1275/nand.c'.
39715 2008-04-25 Bean <bean123ch@gmail.com>
39717 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
39720 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
39721 change the buffer size to 4096 for cdrom device.
39723 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
39725 (_linux_mod_SOURCES): New variable.
39726 (_linux_mod_CFLAGS): Likewise.
39727 (_linux_mod_LDFLAGS): Likewise.
39728 (linux_mod_SOURCES): Likewise.
39729 (linux_mod_CFLAGS): Likewise.
39730 (linux_mod_LDFLAGS): Likewise.
39731 (nand_mod_SOURCES): Likewise.
39732 (nand_mod_CFLAGS): Likewise.
39733 (nand_mod_LDFLAGS): Likewise.
39735 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
39736 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
39737 type property. (nand device in olpc don't have this property)
39739 * include/grub/disk.h (grub_disk_dev_id): New macro
39740 GRUB_DISK_DEVICE_NAND_ID.
39742 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
39743 function prototype.
39744 (grub_rescue_cmd_initrd): Likewise.
39746 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
39747 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
39748 ofw_cif_handler and ofw_idt, adjust padding number.
39750 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
39751 GRUB_MACHINE_IEEE1275 is defined.
39753 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
39754 Use NESTED_FUNC_ATTR attribute on the hook parameter.
39756 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
39757 on nested function heap_init.
39758 (grub_upper_mem): New variable for i386-ieee1275.
39759 (grub_get_extended_memory): New function for i386-ieee1275.
39760 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
39762 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
39763 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
39766 * loader/i386/ieee1275/linux.c: New file.
39768 * loader/i386/ieee1275/linux_normal.c: New file.
39770 * disk/ieee1275/nand.c: New file.
39772 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
39774 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
39776 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
39778 2008-04-18 Robert Millan <rmh@aybabtu.com>
39780 Restructures early code path on ieee1275 to unify grub_main() as
39781 the first C function that is executed in every platform.
39783 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
39784 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
39786 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
39787 * kern/ieee1275/cmain.c (cmain): Rename to ...
39788 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
39789 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
39792 2008-04-18 Robert Millan <rmh@aybabtu.com>
39794 * util/update-grub.in: Fix syntax error when setting
39795 `GRUB_PRELOAD_MODULES'.
39796 Reported by Stephane Chazelas <stephane@artesyncp.com>
39798 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
39800 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
39801 section into account, newer toolchains generate unique build ids
39802 * configure.ac: remove the test for --build-id=none acceptance,
39803 we want build ids to be preserved
39804 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
39805 far from other sections don't cause the raw binary images grow
39808 2008-04-15 Robert Millan <rmh@aybabtu.com>
39810 * disk/lvm.c: Update copyright year.
39811 * kern/misc.c: Likewise.
39813 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
39815 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
39816 there is no memory left for physical volume name.
39818 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
39820 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
39821 volume name mapping to support bigger than 9 character names properly.
39823 2008-04-13 Robert Millan <rmh@aybabtu.com>
39825 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
39826 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
39828 2008-04-13 Christian Franke <franke@computer.org>
39830 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
39831 to create a floppy emulation boot CD when non emulation mode
39833 Enable Joliet CD filesystem extension.
39835 2008-04-13 Robert Millan <rmh@aybabtu.com>
39837 * kern/misc.c (grub_strncat): Fix off-by-one error.
39838 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
39840 * kern/env.c (grub_env_context_close): Clear current context, not
39842 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
39844 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
39846 2008-04-13 Robert Millan <rmh@aybabtu.com>
39848 Improve robustness when handling LVM.
39850 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
39851 (and leave `*p' unmodified).
39852 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
39854 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
39855 iterating through it.
39856 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
39858 (grub_lvm_scan_device): Check the return value (and fail gracefully
39859 when due) on each grub_lvm_getvalue() or grub_strstr() call.
39860 Don't assume `vg->pvs != NULL' when iterating through it.
39862 2008-04-13 Robert Millan <rmh@aybabtu.com>
39864 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
39865 * genmk.rb (partmap): New variable.
39866 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
39867 (#{partmap}): New target rule.
39868 * genpartmaplist.sh: New file.
39869 * Makefile.in (pkglib_DATA): Add partmap.lst.
39870 (partmap.lst): New target rule.
39871 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
39872 modules (including all partition maps), instead of preloading them.
39874 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
39876 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
39877 `linux-boot-prober' (if installed) to detect other operating
39878 systems which are installed on the computer and add them to
39880 * conf/common.rmk: Build and install 30_os-prober.
39882 2008-04-12 Robert Millan <rmh@aybabtu.com>
39884 * kern/powerpc/ieee1275/init.c: Move from here ...
39885 * kern/ieee1275/init.c: ... to here. Update all users.
39887 * kern/powerpc/ieee1275/cmain.c: Move from here ...
39888 * kern/ieee1275/cmain.c: ... to here. Update all users.
39890 * kern/powerpc/ieee1275/openfw.c: Move from here ...
39891 * kern/ieee1275/openfw.c: ... to here. Update all users.
39893 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
39894 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
39896 2008-04-10 Pavel Roskin <proski@gnu.org>
39898 * configure.ac: Always use "_cv_" in cache variables for
39899 compatibility with Autoconf 2.62.
39901 2008-04-07 Robert Millan <rmh@aybabtu.com>
39903 Revert grub/machine/init.h addition by Pavel (since it breaks on
39904 i386-ieee1275 and others):
39905 * util/i386/pc/misc.c: Remove grub/machine/init.h.
39906 * util/powerpc/ieee1275/misc.c: Likewise.
39908 2008-04-07 Robert Millan <rmh@aybabtu.com>
39910 * util/grub-probe.c (probe): Improve error message.
39912 2008-04-07 Robert Millan <rmh@aybabtu.com>
39914 * util/biosdisk.c (read_device_map): Skip devices that don't exist
39915 (this prevents the presence of a bogus entry from ruining the whole
39918 2008-04-06 Pavel Roskin <proski@gnu.org>
39920 * util/biosdisk.c: Include grub/util/biosdisk.h.
39921 * util/grub-fstest.c (execute_command): Make static.
39922 * util/grub-mkdevicemap.c (check_device): Likewise.
39923 * util/i386/pc/misc.c: Include grub/machine/init.h.
39924 * util/powerpc/ieee1275/misc.c: Likewise.
39925 * util/lvm.c: Include grub/util/lvm.h.
39926 * util/misc.c: Include grub/kernel.h, grub/misc.h and
39928 * util/raid.c: Include grub/util/raid.h.
39929 (grub_util_getdiskname): Make static.
39931 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
39932 grub_hostfs_fini(), as they are called from grub_init_all() and
39933 grub_fini_all() respectively. This fixes an infinite loop in
39934 grub-fstest due to double registration of hostfs.
39935 Reported by Christian Franke <Christian.Franke@t-online.de>
39937 2008-04-05 Pavel Roskin <proski@gnu.org>
39939 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
39940 all 8 functions. Otherwise, probe function 0 only.
39942 2008-04-04 Pavel Roskin <proski@gnu.org>
39944 * commands/lspci.c (grub_lspci_iter): Print the bus number
39947 * commands/lspci.c (grub_pci_classes): Fix typos.
39948 (grub_lspci_iter): Don't print func twice. Print vendor ID
39949 before device ID, as it's normally done.
39951 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
39952 Fix signedness warnings.
39953 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
39955 * util/ieee1275/get_disk_name.c: Include config.h so that
39956 _GNU_SOURCE is defined and getline() is declared. Mark an
39957 unused argument as such. Fix a signedness warning.
39959 2008-04-02 Pavel Roskin <proski@gnu.org>
39961 * genkernsyms.sh.in: Use more robust assignments for CC and
39962 srcdir. Quote srcdir.
39963 * gensymlist.sh.in: Likewise. Assert at the compile time that
39964 the symbol table is not empty.
39966 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
39967 * fs/cpio.c (grub_cpio_read): Likewise.
39969 2008-04-01 Pavel Roskin <proski@gnu.org>
39971 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
39972 * disk/host.c (grub_host_open): Likewise.
39973 * disk/loopback.c (grub_loopback_open): Likewise.
39974 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
39975 disk->id as in disk/host.c, not a multi-character constant.
39977 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
39978 later is obsolete, potentially dangerous and sets a bad example.
39979 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
39980 * util/misc.c (grub_util_get_image_size): Likewise.
39982 * disk/loopback.c (options): Improve help for "--partitions".
39984 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
39985 options to align them with the short options, e.g. "echo -e".
39987 2008-03-31 Bean <bean123ch@gmail.com>
39989 * video/reader/png.c (grub_png_data): New member is_16bit and
39991 (grub_png_decode_image_header): Detect 16 bit png image.
39992 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
39993 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
39994 (grub_video_reader_png): Release memory occupied by image_data.
39996 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
39998 (grub_nfs_mount): Skip the test for sector per cluster.
40000 * include/grub/ntfs.h (MAX_SPC): Removed.
40002 2008-03-31 Bean <bean123ch@gmail.com>
40004 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
40005 (grub_probe_SOURCES): Add fs/afs.c.
40006 (grub_fstest_SOURCES): Likewise.
40007 (afs_mod_SOURCES): New variable.
40008 (afs_mod_CFLAGS): Likewise.
40009 (afs_mod_LDFLAGS): Likewise.
40011 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
40012 (grub_emu_SOURCES): Likewise.
40014 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40016 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40018 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40020 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40022 * fs/afs.c: New file.
40024 2008-03-30 Pavel Roskin <proski@gnu.org>
40026 * disk/host.c: Include grub/misc.h to fix a warning.
40027 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
40028 warnings about implicit declarations.
40030 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
40032 * include/grub/i386/loader.h: Change declaration of
40033 grub_linux_boot() to match what grub_loader_set() expects.
40034 * util/getroot.c (grub_guess_root_device): Return const char* to
40036 * util/grub-probe.c (probe): Fix a warning about uninitialized
40037 abstraction_name variable.
40038 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
40039 second argument as unused to fix a warning.
40041 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
40042 missing grub_error() call.
40044 * util/update-grub_lib.in: Define datarootdir, since Autoconf
40045 2.60 and newer uses it to define datadir.
40047 * commands/sleep.c: Fix warning about implicit declaration.
40048 * disk/memdisk.c: Likewise.
40049 * loader/aout.c: Likewise.
40050 * loader/i386/bsd_normal.c: Likewise.
40051 * util/grub-probe.c: Likewise.
40053 * commands/i386/cpuid.c (has_longmode): Make static.
40054 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
40055 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
40057 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
40058 GDT. This is more robust, as %ds can change.
40059 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
40060 calling real_to_prot().
40061 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
40063 2008-03-28 Pavel Roskin <proski@gnu.org>
40065 * kern/i386/pc/startup.S: Assert that uncompressed functions
40066 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
40067 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
40068 code, as they push parts of the code (error handlers) beyond
40069 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
40070 code as correctness and size.
40072 2008-03-28 Pavel Roskin <proski@gnu.org>
40074 * kern/i386/pc/startup.S
40075 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
40076 data block address to the real mode, keep offset minimal. This
40077 works around a bug in AWARD BIOS on old Athlon systems, which
40078 makes CD detection hang.
40080 2008-03-26 Pavel Roskin <proski@gnu.org>
40082 * normal/color.c (grub_parse_color_name_pair): Make `name' a
40084 * include/grub/normal.h: Add grub_parse_color_name_pair()
40087 2008-03-24 Bean <bean123ch@gmail.com>
40089 * disk/i386/pc/biosdisk.c (cd_start): Removed.
40090 (cd_count): Removed.
40091 (cd_drive): New variable.
40092 (grub_biosdisk_get_drive): Don't check for (cdN) device.
40093 (grub_biosdisk_call_hook): Likewise.
40094 (grub_biosdisk_iterate): Change cdrom detection method.
40095 (grub_biosdisk_open): Replace cd_start with cd_drive.
40096 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
40097 detect cdrom device.
40099 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
40101 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
40102 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
40103 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
40104 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
40105 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
40106 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
40107 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
40108 (grub_biosdisk_cdrp): New structure.
40109 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
40111 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
40113 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
40116 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
40119 2008-03-20 Robert Millan <rmh@aybabtu.com>
40121 Remove 2 TiB limit in ata.mod.
40122 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
40123 (grub_ata_dumpinfo): Print sector count with 0x%llx.
40124 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
40125 grub_uint64_t instead of grub_uint32_t.
40127 2008-03-05 Bean <bean123ch@gmail.com>
40129 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
40130 (grub_multiboot): Set boot device.
40132 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
40134 2008-03-02 Bean <bean123ch@gmail.com>
40136 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
40139 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
40141 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
40144 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
40147 * docs/fdl.texi: New file.
40149 * docs/mdate-sh: New file. Copied from gnulib.
40150 * docs/texinfo.tex: Likewise.
40152 * config.guess: Updated from gnulib.
40153 * install-sh: Likewise.
40155 2008-02-28 Robert Millan <rmh@aybabtu.com>
40157 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
40158 (aout_mod_SOURCES): New variable.
40159 (aout_mod_CFLAGS): Likewise.
40160 (aout_mod_LDFLAGS): Likewise.
40162 * conf/i386-ieee1275.rmk: Likewise.
40164 2008-02-28 Robert Millan <rmh@aybabtu.com>
40166 * util/update-grub.in: Reorganise terminal validity check. Accept
40167 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
40168 Based on suggestion by Franklin PIAT.
40170 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
40172 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
40174 * util/getroot.c (grub_util_check_block_device): New function that
40175 returns the given argument if it is a block device and returns NULL else.
40176 * util/grub-probe.c (argument_is_device): New variable.
40177 (probe): Promote device_name from a variable to an argument. Receive
40178 device_name from grub_util_check_block_device() if path is NULL and from
40179 grub_guess_root_device() else. Do not free() device_name anymore.
40180 (options): Introduce new parameter '-d, --device'.
40181 (main): Add description of the new parameter to the help screen.
40182 Rename path variable to argument. Set argument_is_device if the '-d'
40183 option is given. Pass argument to probe() depending on
40184 argument_is_device.
40186 2008-02-24 Bean <bean123ch@gmail.com>
40188 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
40189 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
40190 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
40191 (GRUB_ISO9660_VOLDESC_PART): Likewise.
40192 (GRUB_ISO9660_VOLDESC_END): Likewise.
40193 (grub_iso9660_primary_voldesc): New member escape.
40194 (grub_iso9660_data): New member joliet.
40195 (grub_iso9660_convert_string): New function.
40196 (grub_iso9660_mount): Detect joliet extension.
40197 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
40198 (grub_iso9660_iso9660_label): Likewise.
40200 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
40201 (grub_setup_SOURCES): Add fs/udf.c.
40202 (grub_fstest_SOURCES): Likewise.
40203 (udf_mod_SOURCES): New variable.
40204 (udf_mod_CFLAGS): Likewise.
40205 (udf_mod_LDFLAGS): Likewise.
40207 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
40208 (grub_emu_SOURCES): Likewise.
40210 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40212 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40214 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40216 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40218 * fs/udf.c: New file.
40220 2008-02-24 Robert Millan <rmh@aybabtu.com>
40222 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
40223 (normal/lexer.c_DEPENDENCIES): New variables.
40224 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
40225 (normal/lexer.c_DEPENDENCIES): Likewise.
40226 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
40227 (normal/lexer.c_DEPENDENCIES): Likewise.
40228 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
40229 (normal/lexer.c_DEPENDENCIES): Likewise.
40230 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
40231 (normal/lexer.c_DEPENDENCIES): Likewise.
40232 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
40233 (normal/lexer.c_DEPENDENCIES): Likewise.
40235 2008-02-23 Robert Millan <rmh@aybabtu.com>
40237 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
40238 since they were intended to be in hex. This didn't break previously
40239 because of a bug in gpt_partition_map_iterate() (see below).
40241 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
40242 when checking the validity of GPT header.
40243 Remove `partno', since it always provides the same information as `i'.
40245 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
40247 * include/grub/efi/time.h: Fix a wrong comment.
40249 2008-02-19 Pavel Roskin <proski@gnu.org>
40251 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
40254 2008-02-19 Bean <bean123ch@gmail.com>
40256 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
40257 (aout_mod_SOURCES): New variable.
40258 (aout_mod_CFLAGS): Likewise.
40259 (aout_mod_LDFLAGS): Likewise.
40260 (_bsd_mod_SOURCES): New variable.
40261 (_bsd_mod_CFLAGS): Likewise.
40262 (_bsd_mod_LDFLAGS): Likewise.
40263 (bsd_mod_SOURCES): New variable.
40264 (bsd_mod_CFLAGS): Likewise.
40265 (bsd_mod_LDFLAGS): Likewise.
40267 * include/grub/aout.h: New file.
40269 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
40271 * include/grub/i386/bsd.h: New file.
40273 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
40276 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
40277 function is called, so that it's possible to change it inside the hook.
40278 (grub_elf64_load): Likewise.
40279 (grub_elf_file): Don't close the file if elf header is not found.
40280 (grub_elf_close): Close the file if grub_elf_file fails (The new
40281 grub_elf_file won't close it).
40282 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
40283 (grub_elf64_size): Likewise.
40285 * kern/i386/loader.S (grub_unix_real_boot): New function.
40287 * loader/aout.c: New file.
40289 * loader/i386/bsd.c: New file.
40291 * loader/i386/bsd_normal.c: New file.
40293 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
40295 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
40296 can test other formats.
40298 2008-02-19 Robert Millan <rmh@aybabtu.com>
40300 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
40301 (grub_gpt_partition_type_empty): Redefine with macro from
40302 `<grub/gpt_partition.h>'.
40303 (gpt_partition_map_iterate): Adjust partition type comparison.
40305 Export `entry' as partmap-specific `part.data' struct.
40306 (grub_gpt_header, grub_gpt_partentry): Move from here ...
40308 * include/grub/gpt_partition.h (grub_gpt_header)
40309 (grub_gpt_partentry): ... to here (new file).
40311 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
40313 (grub_gpt_partition_type_bios_boot): New const variable, defined
40314 with macro from `<grub/gpt_partition.h>'.
40316 (setup): Replace `first_start' with `embed_region', which keeps
40317 track of the embed region (and is partmap-agnostic).
40319 Replace find_first_partition_start() with find_usable_region(),
40320 which finds a usable region for embedding using partmap-specific
40321 knowledge (supports PC/MSDOS and GPT).
40323 Fix all assumptions that the embed region start at sector 1, using
40324 `embed_region.start' from now on. Similarly, use `embed_region.end'
40325 rather than `first_start' to calculate available size.
40327 In grub_util_info() message, replace "into after the MBR" with an
40328 indication of the specific sector our embed region starts at.
40330 2008-02-19 Robert Millan <rmh@aybabtu.com>
40332 * DISTLIST: Replace `commands/ieee1275/halt.c' and
40333 `commands/ieee1275/reboot.c' with `commands/halt.c' and
40334 `commands/reboot.c'.
40335 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
40336 (halt_mod_SOURCES): Likewise.
40337 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
40338 (halt_mod_SOURCES): Likewise.
40340 2008-02-17 Christian Franke <franke@computer.org>
40342 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
40344 2008-02-17 Robert Millan <rmh@aybabtu.com>
40346 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
40347 set `first_start' to 0 for non-PC/MSDOS partition maps.
40349 2008-02-16 Robert Millan <rmh@aybabtu.com>
40351 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
40352 do not assume partition map is PC/MSDOS before performing checks that
40353 are specific to that layout.
40355 2008-02-13 Robert Millan <rmh@aybabtu.com>
40357 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
40358 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
40359 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
40361 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
40363 * configure.ac: Only a cosmetic change on the handling of
40364 -fno-stack-protector.
40366 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
40368 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
40369 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
40371 (grub_install_SOURCES): Add halt.mod and reboot.mod.
40372 (halt_mod_SOURCES): New variable.
40373 (halt_mod_CFLAGS): Likewise.
40374 (halt_mod_LDFLAGS): Likewise.
40375 (reboot_mod_SOURCES): Likewise.
40376 (reboot_mod_CFLAGS): Likewise.
40377 (reboot_mod_LDFLAGS): Likewise.
40379 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
40380 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
40382 (halt_mod_SOURCES): Likewise.
40383 (reboot_mod_SOURCES): Likewise.
40385 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
40386 commands/i386/pc/reboot.c by commands/reboot.c.
40387 (reboot_mod_SOURCES): Likewise.
40389 * commands/i386/pc/reboot.c: merge this file ...
40391 * commands/ieee1275/reboot.c: ... and this file ...
40393 * commands/reboot.c: ... to this file.
40394 Add some precompiler directive to include the correct header for
40397 * commands/ieee1275/halt.c: move this file ...
40399 * commands/halt.c: ... to here.
40400 Add some precompiler directive to include the correct header for
40403 * include/grub/efi/efi.h (grub_reboot): New function declaration.
40404 (grub_halt): Likewise.
40406 * kern/efi/efi.c (grub_reboot): New function.
40407 (grub_halt): Likewise.
40409 2008-02-12 Robert Millan <rmh@aybabtu.com>
40411 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
40412 /dev (like it is done for /dev/mapper). This doesn't provide support
40413 for EVMS, but at least it is now easy to identify the problem when it
40416 2008-02-11 Robert Millan <rmh@aybabtu.com>
40418 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
40419 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
40420 comparing it with -1, not 0.
40422 2008-02-10 Robert Millan <rmh@aybabtu.com>
40424 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
40426 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40427 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
40429 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
40430 `disk/lvm.c' to the end of the list.
40431 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40432 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40434 2008-02-10 Robert Millan <rmh@aybabtu.com>
40436 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
40437 grub_print_error() instead. This will let user know why we're entering
40439 Based on suggestions from Sam Morris.
40441 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
40443 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
40444 on remaining N args, instead of "--" arg N times.
40446 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
40448 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
40449 (fill_with_default_glyph): Changed to use unknown_glyph for fill
40450 pattern for unknown glyphs.
40452 2008-02-09 Robert Millan <rmh@aybabtu.com>
40454 * configure.ac: Probe for `help2man'.
40455 * Makefile.in (builddir): New variable.
40456 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
40457 or otherwise add a few flags/options to it.
40458 (install-local): For every executable utility or script that is
40459 installed, invoke $(HELP2MAN) to install a manpage based on --help
40462 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
40463 that it doesn't prevent --help from working in build tree.
40465 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
40466 with `bug-grub@gnu.org'.
40467 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
40468 * util/update-grub.in (usage): New function.
40469 Implement proper argument check, with support for --help and --version
40470 (as well as existing -y).
40472 2008-02-09 Christian Franke <franke@computer.org>
40474 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
40475 avoid overwriting previous output.
40476 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
40478 2008-02-09 Robert Millan <rmh@aybabtu.com>
40480 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
40483 2008-02-09 Robert Millan <rmh@aybabtu.com>
40485 * commands/sleep.c: New file.
40486 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
40487 (sleep_mod_SOURCES): New variable.
40488 (sleep_mod_CFLAGS): Likewise.
40489 (sleep_mod_LDFLAGS): Likewise.
40491 2008-02-09 Robert Millan <rmh@aybabtu.com>
40493 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
40494 situations in which we can deduce the RAID size and the superblock
40497 2008-02-09 Robert Millan <rmh@aybabtu.com>
40499 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
40500 and return a grub_diskmemberlist_t composed of LVM physical volumes.
40501 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
40503 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
40504 and return a grub_diskmemberlist_t composed of physical array members.
40505 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
40507 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
40509 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
40510 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
40511 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
40513 * util/grub-probe.c (probe): Move partmap probing code from here ...
40514 (probe_partmap): ... to here.
40515 (probe): Use probe_partmap() once for the disk we're probing, and
40516 additionally, when such disk contains a memberlist() struct member,
40517 once for each disk that is contained in the structure returned by
40520 2008-02-09 Robert Millan <rmh@aybabtu.com>
40522 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
40523 environment variable to 'all' in order to obtain debug output from
40525 * util/i386/pc/grub-setup.c (main): Likewise.
40527 2008-02-08 Robert Millan <rmh@aybabtu.com>
40529 * disk/raid.c (grub_raid_scan_device): Check for
40530 `array->device[sb.this_disk.number]' rather than for
40531 `array->device[sb.this_disk.number]->name', since the latter is not
40532 guaranteed to be accessible.
40534 2008-02-08 Robert Millan <rmh@aybabtu.com>
40536 * disk/raid.c: Update copyright.
40537 * fs/cpio.c: Likewise.
40538 * include/grub/raid.h: Likewise.
40539 * loader/i386/pc/multiboot.c: Likewise.
40540 * util/hostfs.c: Likewise.
40542 2008-02-08 Robert Millan <rmh@aybabtu.com>
40544 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
40545 to a grub_disk_t array.
40546 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
40548 (grub_raid_scan_device): Replace `device[x].name' accesses with
40549 `device[x]->name'. Simplify initialization of `array->device[x]'.
40551 2008-02-08 Robert Millan <rmh@aybabtu.com>
40553 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
40554 grub_dprintf() calls.
40555 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
40558 2008-02-07 Christian Franke <franke@computer.org>
40560 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
40561 instead of fseek and ftell to support large files.
40562 (grub_hostfs_read): Likewise.
40564 2008-02-07 Robert Millan <rmh@aybabtu.com>
40566 Patch from Jeroen Dekkers.
40567 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
40568 failure, since successfully reading all array members might not be
40571 2008-02-06 Robert Millan <rmh@aybabtu.com>
40573 * util/grub-probe.c (probe): Simplify partmap probing (with the
40574 assumption that the first word up to the underscore equals to
40577 2008-02-06 Christian Franke <franke@computer.org>
40579 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
40580 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
40581 last block of a cpio or tar stream.
40582 Check for "TRAILER!!!" instead of any empty data
40583 block to detect last block of a cpio stream.
40584 (grub_cpio_dir): Fix constness of variable np.
40585 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
40586 cpio or tar trailer is detected. This fixes a crash
40587 on open of a non existing file.
40589 2008-02-05 Bean <bean123ch@gmail.com>
40591 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
40593 (grub_multiboot_load_elf64): Likewise.
40594 (grub_multiboot): Initialize mbi structure.
40596 * util/grub-fstest.c: Don't include unused header file script.h.
40598 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
40600 (grub_fstest_SOURCES): Likewise.
40602 2008-02-05 Robert Millan <rmh@aybabtu.com>
40604 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
40605 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
40606 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
40607 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
40609 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
40610 (translation_table): Replace hardcoded values with macros
40611 provided by `<grub/term.h>'.
40613 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
40614 (keyboard_map): Correct/add a few values, with macros provided
40615 by `<grub/term.h>'.
40616 (keyboard_map_shift): Zero values that don't differ from their
40617 `keyboard_map' equivalents.
40618 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
40619 Discard the second scan code that is always sent by Caps lock.
40620 Only use `keyboard_map_shift' when it provides a non-zero value,
40621 otherwise fallback to `keyboard_map'.
40623 2008-02-04 Bean <bean123ch@gmail.com>
40625 * Makefile.in (enable_grub_fstest): New variable.
40627 * conf/common.rmk (grub_fstest_init.lst): New rule.
40628 (grub_fstest_init.h): Likewise.
40629 (grub_fstest_init.c): Likewise.
40630 (util/grub-fstest.c_DEPENDENCIES): New variable.
40631 (grub_fstest_SOURCES): Likewise.
40633 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
40635 * util/grub-fstest.c: New file.
40637 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
40639 Make grub-setup handle a separate root device.
40641 * util/i386/pc/grub-setup.c (setup): Always open the root device,
40642 so that the root device can be compared with the destination
40644 When embedding the core image, if the root and destination devices
40645 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
40647 When not embedding, set ROOT_DRIVE to 0xFF.
40649 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
40651 Add support for having a grub directory in a different drive. This
40652 is still only the data handling part.
40654 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
40655 (codestart): Save %dh in GRUB_ROOT_DRIVE.
40656 (grub_root_drive): New variable.
40658 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
40659 instead of GRUB_BOOT_DRIVE to construct a device name. Set
40660 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
40663 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
40665 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
40667 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
40669 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
40670 is bogus, because PXE booting does not specify any drive
40673 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
40674 am not sure if this is really correct.
40676 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
40677 is always identical to the boot drive when booting from a CD.
40679 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
40681 (root_drive): New variable.
40682 (real_start): Unconditionally set %dh to ROOT_DRIVE.
40683 (setup_sectors): Push %dx right after popping it, because %dh will
40685 (copy_buffer): Restore %dx.
40687 2008-02-03 Robert Millan <rmh@aybabtu.com>
40689 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
40690 use `cdboot.img' for cdrom images.
40692 2008-02-03 Robert Millan <rmh@aybabtu.com>
40694 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
40695 only setup gfxterm when `font' command has succeeded.
40697 2008-02-03 Robert Millan <rmh@aybabtu.com>
40699 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
40700 (grub_rescue_cmd_multiboot_loader)
40701 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
40703 2008-02-03 Pavel Roskin <proski@gnu.org>
40705 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
40706 %edx and %esi from stack only after grub_gate_a20() is called.
40707 grub_gate_a20() clobbers %edx.
40709 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
40711 * configure.ac (AC_INIT): Bumped to 1.96.
40713 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
40714 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
40715 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
40716 video/readers/png.c.
40718 2008-02-03 Bean <bean123ch@gmail.com>
40720 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
40721 (cdboot_img_SOURCES): New variable.
40722 (cdboot_img_ASFLAGS): New variable.
40723 (cdboot_img_LDFLAGS): New variable.
40725 * boot/i386/pc/cdboot.S: New file.
40727 * disk/i386/pc/biosdisk.c (cd_start): New variable.
40728 (cd_count): Likewise.
40729 (grub_biosdisk_get_drive): Add support for cd device.
40730 (grub_biosdisk_call_hook): Likewise.
40731 (grub_biosdisk_iterate): Likewise.
40732 (grub_biosdisk_open): Likewise.
40733 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
40734 (grub_biosdisk_rw): Support reading from cd device.
40735 (GRUB_MOD_INIT): Iterate cd devices.
40737 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
40738 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
40739 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
40741 * kern/i386/pc/init.c (make_install_device): Check for cd device.
40743 2008-02-02 Robert Millan <rmh@aybabtu.com>
40745 * commands/read.c: New file.
40746 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
40747 (read_mod_SOURCES): New variable.
40748 (read_mod_CFLAGS): Likewise.
40749 (read_mod_LDFLAGS): Likewise.
40751 2008-02-02 Robert Millan <rmh@aybabtu.com>
40753 * normal/main.c (grub_normal_execute): Check for `menu->size' when
40754 determining whether menu has to be displayed.
40756 2008-02-02 Marco Gerards <marco@gnu.org>
40758 * bus/pci.c: New file.
40760 * include/grub/pci.h: Likewise.
40762 * include/grub/i386/pc/pci.h: Likewise.
40764 * commands/lspci.c: Likewise.
40766 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
40768 (pci_mod_SOURCES): New variable.
40769 (pci_mod_CFLAGS): Likewise.
40770 (pci_mod_LDFLAGS): Likewise.
40771 (lspci_mod_SOURCES): Likewise.
40772 (lspci_mod_CFLAGS): Likewise.
40773 (lspci_mod_LDFLAGS): Likewise.
40775 2008-02-02 Bean <bean123ch@gmail.com>
40777 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
40778 (grub_ufs_get_file_block): Fix indirect block calculation problem.
40780 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
40781 (grub_xfs_btree_node): New structure.
40782 (grub_xfs_btree_root): New structure.
40783 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
40784 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
40785 (GRUB_XFS_EXTENT_BLOCK): Likewise.
40786 (GRUB_XFS_EXTENT_SIZE): Likewise.
40787 (grub_xfs_read_block): Support btree format type.
40788 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
40789 Use directory block as basic unit.
40791 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
40793 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
40794 __attribute__ ((__regparm__ (1))).
40796 2008-02-01 Robert Millan <rmh@aybabtu.com>
40798 Correct a mistake in previous commit.
40800 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
40802 (normal/command.c_DEPENDENCIES): New variable.
40804 2008-02-01 Robert Millan <rmh@aybabtu.com>
40806 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
40808 (normal/command.c_DEPENDENCIES): New variable.
40809 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
40810 * conf/i386-ieee1275.rmk: Likewise.
40811 * conf/i386-linuxbios.rmk: Likewise.
40812 * conf/i386-pc.rmk: Likewise.
40813 * conf/sparc64-ieee1275.rmk: Likewise.
40814 * conf/powerpc-ieee1275.rmk: Likewise.
40815 (grub_emu_SOURCES): Add `fs/fshelp.c'.
40817 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
40819 2008-02-01 Robert Millan <rmh@aybabtu.com>
40821 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
40822 call at beginning of function.
40824 2008-01-31 Pavel Roskin <proski@gnu.org>
40826 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
40827 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
40828 (grub_mkrescue_SOURCES): Likewise.
40829 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
40831 2008-01-30 Robert Millan <rmh@aybabtu.com>
40833 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
40834 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
40835 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
40836 (grub_probe_SOURCES): ... to here.
40838 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
40839 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
40840 * conf/i386-ieee1275.rmk: Likewise.
40841 * conf/i386-linuxbios.rmk: Likewise.
40842 * conf/powerpc-ieee1275.rmk: Likewise.
40844 2008-01-30 Tristan Gingold <gingold@free.fr>
40846 * kern/rescue.c: Silently accept empty lines.
40848 2008-01-29 Bean <bean123ch@gmail.com>
40850 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
40851 (real_code_2): Code cleanup and change comment style.
40852 (move_memory): Avoid using 32-bit address mode.
40854 2008-01-29 Bean <bean123ch@gmail.com>
40856 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
40857 (png_mod_SOURCES): New variable.
40858 (png_mod_CFLAGS): Likewise.
40859 (png_mod_LDFLAGS): Likewise.
40861 * video/readers/png.c: New file.
40863 2008-01-28 Robert Millan <rmh@aybabtu.com>
40865 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
40866 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
40867 `ifndef GRUB_MOD_GAP' hack.
40868 * util/elf/grub-mkimage.c (add_segments): Likewise.
40870 2008-01-27 Robert Millan <rmh@aybabtu.com>
40872 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
40873 `GRUB_MOD_GAP' for platforms in which it's not defined.
40874 * util/elf/grub-mkimage.c (add_segments): Likewise.
40876 2008-01-27 Robert Millan <rmh@aybabtu.com>
40878 Get grub-emu to build again (including parallel builds).
40880 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
40882 (util/grub-emu.c_DEPENDENCIES): ... this, ...
40883 (normal/execute.c_DEPENDENCIES): ... this, ...
40884 (grub-emu_DEPENDENCIES): ... and this.
40886 * conf/i386-efi.rmk: Likewise.
40887 * conf/i386-linuxbios.rmk: Likewise.
40888 * conf/i386-ieee1275.rmk: Likewise.
40889 * conf/powerpc-ieee1275.rmk: Likewise.
40890 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
40892 2008-01-27 Robert Millan <rmh@aybabtu.com>
40894 * NEWS: Add a few items.
40896 2008-01-27 Robert Millan <rmh@aybabtu.com>
40898 Fix parallel builds with grub-emu. Based on earlier commit for
40899 grub-probe and grub-setup.
40901 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40902 (util/grub-emu.c_DEPENDENCIES): ... this.
40903 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40904 (util/grub-emu.c_DEPENDENCIES): ... this.
40905 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40906 (util/grub-emu.c_DEPENDENCIES): ... this.
40907 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40908 (util/grub-emu.c_DEPENDENCIES): ... this.
40909 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40910 (util/grub-emu.c_DEPENDENCIES): ... this.
40912 2008-01-27 Pavel Roskin <proski@gnu.org>
40914 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
40915 to create a gap between _end and the modules added to the image
40916 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
40917 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
40918 * util/elf/grub-mkimage.c (add_segments): Likewise.
40920 2008-01-26 Pavel Roskin <proski@gnu.org>
40922 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
40923 just return an error.
40925 2008-01-26 Bean <bean123ch@gmail.com>
40927 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
40928 (grub_reiserfs_get_item): Save offset of the next item.
40929 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
40931 2008-01-25 Robert Millan <rmh@aybabtu.com>
40933 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
40934 make all filesystem sources appear together (possibly fixing omissions
40936 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40937 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40938 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40939 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40941 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
40943 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
40944 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
40945 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
40946 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
40948 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
40949 (probe): Add a sanity check to make sure of our ability to read
40950 requested files when probing for filesystem type.
40952 * genmk.rb: Update copyright year (2007).
40954 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
40955 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
40956 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
40957 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
40958 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
40959 : Remove function prototypes.
40961 2008-01-25 Robert Millan <rmh@aybabtu.com>
40963 Revert my previous commits (based on wrong assumption of how grub_errno
40966 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
40967 * kern/file.c (grub_file_open): Likewise.
40969 2008-01-24 Pavel Roskin <proski@gnu.org>
40971 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
40972 that hang if GRUB tries to setup colors.
40973 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
40974 colors for firmwares that don't support it.
40975 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
40976 Recognize Open Hack'Ware, set flags to work around its
40979 2008-01-24 Robert Millan <rmh@aybabtu.com>
40981 * kern/file.c (grub_file_open): Do not account previous failures of
40982 unrelated functions when grub_errno is checked for.
40983 Reported by Oleg Strikov.
40985 2008-01-24 Bean <bean123ch@gmail.com>
40987 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
40988 (grub_ufs_sblock): New member volume name.
40989 (grub_ufs_find_file): Fix string copy bug.
40990 (grub_ufs_label): Implement this function properly.
40992 * fs/hfs.c (grub_hfs_cnid_type): New enum.
40993 (grub_hfs_iterate_records): Use the correct file number for extents
40994 and catalog file. Fix problem in next index calculation.
40995 (grub_hfs_find_node): Replace recursive function call with loop.
40996 (grub_hfs_iterate_dir): Replace recursive function call with loop.
40998 2008-01-23 Robert Millan <rmh@aybabtu.com>
41000 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
41001 `<grub/symbol.h>' and `<grub/multiboot.h>'.
41002 (grub_multiboot2_real_boot): New function prototype.
41004 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
41005 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
41007 * kern/i386/ieee1275/init.c (grub_os_area_addr)
41008 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
41010 2008-01-23 Robert Millan <rmh@aybabtu.com>
41012 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
41013 #ifdef'ed out grub_printf().
41015 2008-01-23 Robert Millan <rmh@aybabtu.com>
41017 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
41018 grub_dprintf calls, since they make "debug=all" mode unusable.
41019 (grub_console_checkkey): Likewise.
41021 2008-01-23 Robert Millan <rmh@aybabtu.com>
41023 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41024 `term/i386/pc/at_keyboard.c'.
41025 (pkglib_MODULES): Add `serial.mod'.
41026 (serial_mod_SOURCES): New variable.
41027 (serial_mod_CFLAGS): Likewise.
41028 (serial_mod_LDFLAGS): Likewise.
41030 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
41031 `<grub/powerpc/ieee1275/console.h>'.
41032 (grub_keyboard_controller_init): New function prototype.
41033 (grub_console_checkkey): Likewise.
41034 (grub_console_getkey): Likewise.
41036 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
41039 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
41040 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
41042 2008-01-23 Robert Millan <rmh@aybabtu.com>
41044 * kern/i386/pc/init.c (make_install_device): When memdisk image is
41045 present, "(memdisk)/boot/grub" becomes the default prefix.
41047 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
41048 a memdisk tarball with all the modules. Add --overlay=DIR option that
41049 allows users to overlay additional files into the image.
41051 2008-01-23 Robert Millan <rmh@aybabtu.com>
41053 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
41054 and `machine/memory.h'.
41055 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
41056 (_multiboot_mod_SOURCES): New variable.
41057 (_multiboot_mod_CFLAGS): Likewise.
41058 (_multiboot_mod_LDFLAGS): Likewise.
41059 (multiboot_mod_SOURCES): Likewise.
41060 (multiboot_mod_CFLAGS): Likewise.
41061 (multiboot_mod_LDFLAGS): Likewise.
41063 * include/grub/i386/ieee1275/loader.h: New file.
41065 * include/grub/i386/ieee1275/machine.h: Likewise.
41067 * include/grub/i386/ieee1275/memory.h: Likewise.
41069 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
41070 variable declaration.
41071 (grub_os_area_size): Likewise.
41073 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
41074 (grub_lower_mem, grub_upper_mem): New variables.
41075 (grub_stop_floppy): New function (just to make
41076 grub_multiboot2_real_boot() happy).
41078 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
41079 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
41080 (grub_stop): New function.
41081 Include `"../realmode.S"' and `"../loader.S"'.
41083 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
41084 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
41086 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
41087 rely on grub_multiboot2_real_boot() for final boot.
41089 2008-01-22 Robert Millan <rmh@aybabtu.com>
41091 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
41092 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
41093 device that doesn't look like an SD card.
41094 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
41095 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
41096 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
41097 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
41100 2008-01-22 Robert Millan <rmh@aybabtu.com>
41102 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
41103 avoid claiming over our own code.
41105 2008-01-22 Bean <bean123ch@gmail.com>
41107 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
41108 (jpeg_mod_SOURCES): New variable.
41109 (jpeg_mod_CFLAGS): Likewise.
41110 (jpeg_mod_LDFLAGS): Likewise.
41112 * video/readers/jpeg.c : New file.
41114 2008-01-22 Bean <bean123ch@gmail.com>
41116 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
41117 there are no more items.
41119 2008-01-21 Robert Millan <rmh@aybabtu.com>
41121 * kern/mm.c (grub_mm_init_region): Improve debug message.
41123 2008-01-21 Robert Millan <rmh@aybabtu.com>
41125 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
41126 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
41128 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
41130 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
41131 Indicates start of upper memory.
41132 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
41133 (generate_image): Abort when image size is big enough to corrupt
41136 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
41137 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
41138 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
41139 instead of hardcoding 0xA0000.
41140 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
41141 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
41142 instead of hardcoding 0xA0000.
41144 2008-01-21 Robert Millan <rmh@aybabtu.com>
41146 * disk/memdisk.c (memdisk_size): New variable.
41147 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
41149 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
41150 image to dynamic memory.
41151 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
41152 `memdisk_size'. Free memdisk block.
41154 2008-01-21 Robert Millan <rmh@aybabtu.com>
41156 Fix detection of very small filesystems (like tar).
41158 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
41159 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
41160 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
41161 a problem with this disk).
41163 2008-01-21 Robert Millan <rmh@aybabtu.com>
41165 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
41166 on grub_biosdisk_rw_standard() error.
41168 2008-01-21 Robert Millan <rmh@aybabtu.com>
41170 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
41172 * kern/elf.c: Likewise.
41173 * kern/ieee1275/ieee1275.c: Likewise.
41174 * kern/powerpc/ieee1275/openfw.c: Likewise.
41175 * term/ieee1275/ofconsole.c: Likewise.
41177 2008-01-21 Robert Millan <rmh@aybabtu.com>
41179 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
41181 * include/grub/kernel.h (grub_arch_memdisk_addr)
41182 (grub_arch_memdisk_size): Moved from here ...
41184 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
41185 (grub_arch_memdisk_size): ... to here.
41187 2008-01-21 Robert Millan <rmh@aybabtu.com>
41189 Mostly based on bugfix from Bean.
41191 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
41192 attribute with hook() parameter.
41193 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
41195 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
41196 attribute with hook() parameter.
41197 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
41200 2008-01-21 Robert Millan <rmh@aybabtu.com>
41202 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
41203 (pkglib_MODULES): Add `memdisk.mod'.
41204 (memdisk_mod_SOURCES): New variable.
41205 (memdisk_mod_CFLAGS): Likewise.
41206 (memdisk_mod_LDFLAGS): Likewise.
41208 * disk/memdisk.c: New file.
41210 * include/grub/disk.h (grub_disk_dev_id): Add
41211 `GRUB_DISK_DEVICE_MEMDISK_ID'.
41213 * include/grub/i386/pc/kernel.h
41214 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
41215 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
41216 (grub_kernel_image_size): New variable declaration.
41217 (grub_total_module_size): Likewise.
41218 (grub_memdisk_image_size): Likewise.
41220 * include/grub/i386/pc/memory.h
41221 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
41223 * include/grub/kernel.h: Include `<grub/symbol.h>'.
41224 (grub_arch_memdisk_addr): New variable declaration.
41225 (grub_arch_memdisk_size): Likewise.
41227 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
41228 (grub_arch_memdisk_size): Likewise.
41230 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
41231 (codestart): Replace hardcoded `0x100000' with
41232 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
41234 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
41235 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
41236 not NULL, append the contents of the file it refers to, at the end of
41237 the compressed kernel image. Initialize `grub_memdisk_image_size'
41238 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
41239 (options): Add "memdisk"|'m' option.
41240 (main): Parse --memdisk|-m option, and pass user-provided path as
41241 parameter to generate_image().
41243 2008-01-20 Robert Millan <rmh@aybabtu.com>
41245 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
41246 grub_dprintf() calls from here ...
41247 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
41249 2008-01-20 Robert Millan <rmh@aybabtu.com>
41251 Fix detection of "real mode" when /options/real-mode? doesn't exist.
41253 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
41255 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
41256 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
41257 `GRUB_IEEE1275_FLAG_REAL_MODE'.
41258 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
41260 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
41261 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
41263 2008-01-19 Robert Millan <rmh@aybabtu.com>
41265 Get rid of confusing function (superseded by
41266 `grub_ieee1275_get_integer_property')
41267 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
41269 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
41271 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
41272 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
41273 in native endianness from grub_ieee1275_get_integer_property().
41275 2008-01-19 Robert Millan <rmh@aybabtu.com>
41277 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
41278 command after "shut-down", since implementations differ on which
41279 the command for halt is.
41281 2008-01-19 Robert Millan <rmh@aybabtu.com>
41283 * include/grub/i386/linuxbios/console.h: Add header protection.
41284 (grub_keyboard_controller_init): New function prototype.
41285 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
41286 (KEYBOARD_COMMAND_READ): Likewise.
41287 (KEYBOARD_COMMAND_WRITE): Likewise.
41288 (KEYBOARD_SCANCODE_SET1): Likewise.
41289 (grub_keyboard_controller_write): New function.
41290 (grub_keyboard_controller_read): Likewise.
41291 (grub_keyboard_controller_init): Likewise.
41293 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
41294 (grub_console_init): On coreboot/LinuxBIOS, call
41295 grub_keyboard_controller_init().
41297 2008-01-19 Robert Millan <rmh@aybabtu.com>
41299 PowerPC changes provided by Pavel Roskin.
41301 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
41302 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
41303 don't rely on cmain() doing it.
41304 * kern/i386/ieee1275/startup.S (_start): Store %eax in
41305 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
41307 2008-01-16 Robert Millan <rmh@aybabtu.com>
41309 * include/grub/i386/linuxbios/memory.h
41310 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
41311 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
41312 receive `table_header' as argument. Instead, probe for it in the
41313 known memory ranges where it can be present.
41314 (grub_available_iterate): Do not pass a fixed `table_header' address
41315 to grub_linuxbios_table_iterate().
41317 2008-01-15 Robert Millan <rmh@aybabtu.com>
41319 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
41320 * conf/i386-ieee1275.rmk: New file.
41321 * include/grub/i386/ieee1275/console.h: Likewise.
41322 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
41323 * include/grub/i386/ieee1275/kernel.h: Likewise.
41324 * include/grub/i386/ieee1275/time.h: Likewise.
41325 * kern/i386/ieee1275/init.c: Likewise.
41326 * kern/i386/ieee1275/startup.S: Likewise.
41328 2008-01-15 Robert Millan <rmh@aybabtu.com>
41330 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
41331 when pointers are 32-bit (but still do set it to one when they are
41334 2008-01-15 Robert Millan <rmh@aybabtu.com>
41336 * include/grub/ieee1275/ieee1275.h
41337 (grub_ieee1275_get_integer_property): New function prototype.
41339 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
41340 (grub_ieee1275_get_integer_property): New function. Wraps around
41341 grub_ieee1275_get_property() to handle endianness.
41343 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
41344 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
41346 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
41347 (grub_map): Likewise.
41348 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
41350 2008-01-15 Bean <bean123ch@gmail.com>
41352 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
41353 (grub_script_execute_cmdline): Reset grub_errno.
41355 * normal/main.c (read_config_file): Reset grub_errno.
41357 * normal/parse.y (script_init): New.
41358 (script): Move function and menuentry here.
41360 (command): Add delimiter at the end of command.
41361 (commands): Adjust to match the new command.
41362 (commandblock): Remove grub_script_lexer_record_start.
41363 (menuentry): Add grub_script_lexer_record_start, use the new commands.
41364 (if): Use the new commands.
41366 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
41368 2008-01-15 Robert Millan <rmh@aybabtu.com>
41370 * normal/menu.c (run_menu): Move timeout message from here ...
41371 (print_timeout): ... to here.
41372 (run_menu): Use print_timeout() once during initial draw to print
41373 the whole message, and again in every clock tick to update only
41374 the number of seconds.
41376 2008-01-15 Robert Millan <rmh@aybabtu.com>
41378 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
41379 actual size of `available' from grub_ieee1275_get_property(), and
41380 restrict parsing to that bound.
41382 2008-01-15 Christian Franke <franke@computer.org>
41384 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
41385 (argp_program_version): Remove variable.
41386 (argp_program_bug_address): Likewise.
41387 (options): Convert from struct argp_option to struct option.
41388 (struct arguments): Remove.
41389 (parse_opt): Remove.
41390 (usage): New function.
41391 (main): Replace struct args members by simple variables.
41392 Replace argp_parse() by getopt_long().
41393 Add switch to evaluate options.
41394 Add missing "(...)" around root_dev in prefix string.
41396 2008-01-14 Robert Millan <rmh@aybabtu.com>
41398 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
41399 for grub_ieee1275_exit(), in order to improve portability.
41401 2008-01-14 Robert Millan <rmh@aybabtu.com>
41403 * util/grub.d/10_linux.in (prefix): Define.
41404 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
41406 2008-01-13 Pavel Roskin <proski@gnu.org>
41408 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
41409 grub_errno if no errors have been detected.
41411 2008-01-12 Robert Millan <rmh@aybabtu.com>
41413 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
41414 (grub_util_get_dev_abstraction): New function prototype.
41416 * util/getroot.c: Include `<grub/util/getroot.h>'
41417 (grub_util_get_grub_dev): Move detection of abstraction type to ...
41418 (grub_util_get_dev_abstraction): ... here (new function).
41420 * util/grub-probe.c: Convert PRINT_* to an enum. Add
41421 `PRINT_ABSTRACTION'.
41422 (probe): Probe for abstraction type when requested.
41423 (main): Understand `--target=abstraction'.
41425 * util/i386/efi/grub-install.in: Add abstraction module to core
41426 image when it is found to be necessary.
41427 * util/i386/pc/grub-install.in: Likewise.
41428 * util/powerpc/ieee1275/grub-install.in: Likewise.
41430 * util/update-grub_lib.in (font_path): Return system path without
41431 converting to GRUB path.
41432 * util/update-grub.in: Convert system path returned by font_path()
41433 to a GRUB path. Use `grub-probe -t abstraction' to determine what
41434 abstraction module is needed for loading fonts (if any). Export
41435 that as `GRUB_PRELOAD_MODULES'.
41436 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
41439 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
41441 Remove some unused code from reiserfs.
41443 * fs/reiserfs.c (struct grub_reiserfs_key)
41444 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
41445 (struct grub_reiserfs_node_body): Removed.
41446 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
41448 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
41450 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
41452 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
41454 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
41456 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
41458 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
41459 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
41460 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
41462 2008-01-10 Robert Millan <rmh@aybabtu.com>
41464 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
41465 Determines if a file is garbage left by packaging systems, etc.
41466 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
41467 for processing /etc/grub.d scripts.
41468 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
41469 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
41470 as a condition for processing Linux images.
41472 2008-01-10 Pavel Roskin <proski@gnu.org>
41474 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
41475 to compile reiserfs.c on PowerPC.
41477 2008-01-10 Robert Millan <rmh@aybabtu.com>
41479 * kern/device.c (grub_device_iterate): Do not abort device iteration
41480 when one of the devices cannot be opened.
41481 * kern/disk.c (grub_disk_open): Do not account previous failures of
41482 unrelated functions when grub_errno is checked for.
41484 2008-01-08 Robert Millan <rmh@aybabtu.com>
41486 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
41487 `! grub_linux_is_bzimage', change order of address comparison to make
41488 it more intuitive, and improve "too big zImage" error message.
41490 2008-01-08 Robert Millan <rmh@aybabtu.com>
41492 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
41493 `$(update-grub_DATA)'.
41494 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
41497 2008-01-07 Robert Millan <rmh@aybabtu.com>
41499 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
41500 which instruction is modified by grub-setup during installation
41501 (since it wasn't obvious by only looking at this file).
41503 2008-01-07 Robert Millan <rmh@aybabtu.com>
41505 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
41506 listing actual TODO items.
41508 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
41510 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
41512 (grub_reiserfs_get_key_offset): Likewise.
41513 (grub_reiserfs_set_key_offset): Likewise.
41514 (grub_reiserfs_set_key_type): Likewise.
41515 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
41517 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
41518 better to remove the bitfield version completely.
41520 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
41522 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
41523 allocated from the heap, due to the fshelp implementation.
41524 (grub_reiserfs_dir): Free NODE, due to the same reason.
41526 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
41528 Mostly from Vincent Pelletier:
41530 * fs/reiserfs.c: New file.
41532 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
41533 (reiserfs_mod_SOURCES): New variable.
41534 (reiserfs_mod_CFLAGS): Likewise.
41535 (reiserfs_mod_LDFLAGS): Likewise.
41537 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
41538 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
41539 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
41542 2008-01-06 Robert Millan <rmh@aybabtu.com>
41544 * normal/color.c: Remove `<grub/env.h>'.
41546 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
41548 * include/grub/normal.h: Include <grub/env.h>.
41550 2008-01-05 Robert Millan <rmh@aybabtu.com>
41552 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
41553 usage example with `(hd0,1)'.
41554 Reported by Samuel Thibault.
41556 2008-01-05 Robert Millan <rmh@aybabtu.com>
41558 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
41559 (grub_linux_boot_zimage): Rename to ...
41560 (grub_linux_boot): ... this.
41561 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
41562 (grub_linux_boot_zimage): Conditionalize zImage copy.
41564 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
41565 (grub_linux_boot_bzimage): Remove prototype.
41566 (grub_linux_boot_zimage): Rename to ...
41567 (grub_linux_boot): ... this.
41569 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
41570 (grub_linux_boot): Remove function.
41572 2008-01-05 Robert Millan <rmh@aybabtu.com>
41574 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
41575 (grub_env_write_color_highlight): Likewise.
41576 (grub_wait_after_message): Likewise.
41578 * normal/color.c: New file.
41580 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
41581 (normal_mod_DEPENDENCIES): Likewise.
41583 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
41584 (normal_mod_DEPENDENCIES): Likewise.
41586 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
41587 (normal_mod_DEPENDENCIES): Likewise.
41589 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
41590 (normal_mod_DEPENDENCIES): Likewise.
41592 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
41593 for waiting after a message is printed.
41594 * normal/main.c (read_config_file): Likewise.
41595 (grub_normal_init): Register grub_env_write_color_normal() and
41596 grub_env_write_color_highlight() hooks. Mark `color_normal' and
41597 `color_highlight' variables as global.
41599 * normal/menu.c (grub_wait_after_message): New function.
41600 (grub_color_menu_normal): New variable. Replaces ...
41601 (GRUB_COLOR_MENU_NORMAL): ... this macro.
41602 (grub_color_menu_highlight): New variable. Replaces ...
41603 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
41604 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
41605 `GRUB_TERM_COLOR_STANDARD'.
41606 (print_message): Use `grub_setcolorstate' to reload colors. Rename
41607 `normal_code' and `highlight_code' to `old_color_normal' and
41608 `old_color_highlight', respectively.
41609 (grub_menu_init_page): Update colors when drawing the menu, based on
41610 `menu_color_normal' and `menu_color_highlight' variables.
41611 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
41612 a message is printed.
41614 2008-01-05 Robert Millan <rmh@aybabtu.com>
41616 * kern/env.c (grub_env_context_open): Propagate hooks for global
41617 variables to new context.
41619 * kern/main.c (grub_set_root_dev): Export `root' variable.
41621 2008-01-05 Robert Millan <rmh@aybabtu.com>
41623 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
41624 discs unconditionally, since udev and others have options to provide
41627 2008-01-05 Robert Millan <rmh@aybabtu.com>
41629 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
41631 2008-01-04 Christian Franke <franke@computer.org>
41633 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
41636 2008-01-03 Pavel Roskin <proski@gnu.org>
41638 * kern/i386/linuxbios/init.c: Put "void" to all function
41639 declarations with no arguments.
41640 * kern/powerpc/ieee1275/init.c: Likewise.
41641 * term/i386/pc/at_keyboard.c: Likewise.
41642 * term/i386/pc/vga_text.c: Likewise.
41643 * util/grub-mkdevicemap.c: Likewise.
41645 2008-01-02 Robert Millan <rmh@aybabtu.com>
41647 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
41648 message when loaded image is out of bounds.
41649 (grub_multiboot_load_elf64): Likewise.
41651 2008-01-02 Pavel Roskin <proski@gnu.org>
41653 * util/grub.d/10_linux.in: Try version without ".old" when
41654 looking for initrd. It's better to use initrd from the newer
41655 kernel of the same version than no initrd at all.
41657 2008-01-01 Robert Millan <rmh@aybabtu.com>
41659 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
41661 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
41663 * include/grub/video.h: Added grub_video_unmap_color and
41664 grub_video_get_active_render_target.
41665 (grub_video_adapter): Added unmap_color and get_active_render_target.
41667 * video/video.c: Added grub_video_unmap_color and
41668 grub_video_get_active_render_target.
41669 (grub_video_get_info): Changed method to accept NULL pointer as an
41670 argument to allow detection of active video adapter.
41672 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
41673 grub_video_vbe_unmap_color_int.
41674 Added grub_video_vbe_unmap_color and
41675 grub_video_vbe_get_active_render_target.
41676 (grub_video_vbe_adapter): Added unmap_color and
41677 get_active_render_target.
41679 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
41680 with grub_video_vbe_unmap_color_int.
41682 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
41683 (DEFAULT_NORMAL_COLOR): Likewise.
41684 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
41685 (DEFAULT_FG_COLOR): Removed.
41686 (DEFAULT_BG_COLOR): Likewise.
41687 (DEFAULT_CURSOR_COLOR): Changed value.
41688 (grub_virtual_screen): Added standard_color_setting,
41689 normal_color_setting, highlight_color_setting and term_color.
41690 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
41691 (bitmap_width): Added.
41692 (bitmap_height): Likewise.
41693 (bitmap): Likewise.
41694 (set_term_color): Likewise.
41695 (grub_virtual_screen_setup): Changed to use new terminal coloring
41697 (grub_gfxterm_init): Added init for bitmap.
41698 (grub_gfxterm_fini): Added destroy for bitmap.
41699 (redraw_screen_rect): Updated to use background bitmap and new
41701 (scroll_up): Added optimization for case when there is no bitmap.
41702 (grub_gfxterm_cls): Fixed to use correct background color.
41703 (grub_virtual_screen_setcolorstate): Changed to use new terminal
41705 (grub_virtual_screen_setcolor): Likewise.
41706 (grub_virtual_screen_getcolor): Added.
41707 (grub_gfxterm_background_image_cmd): Likewise.
41708 (grub_video_term): Added setcolor and getcolor.
41709 (MOD_INIT): Added registration of background_image command.
41710 (MOD_TERM): Added unregistration for background_image command.
41712 2007-12-30 Pavel Roskin <proski@gnu.org>
41714 * loader/multiboot_loader.c: Fix multiboot command
41715 unregistration. Fix all typos in the word "multiboot".
41717 2007-12-29 Pavel Roskin <proski@gnu.org>
41719 * util/grub.d/10_linux.in: Refactor search for initrd. Add
41720 support for initrd names used in Fedora.
41722 2007-12-26 Bean <bean123ch@gmail.com>
41724 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
41725 (cpio_mod_SOURCES): New variable.
41726 (cpio_mod_CFLAGS): Likewise.
41727 (cpio_mod_LDFLAGS): Likewise.
41729 * fs/cpio.c: New file.
41731 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
41733 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41735 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
41737 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41739 2007-12-25 Robert Millan <rmh@aybabtu.com>
41741 * include/grub/term.h (struct grub_term): Add `getcolor' function.
41742 (grub_getcolor): New function.
41744 * kern/term.c (grub_getcolor): New function.
41745 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
41746 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
41747 (print_entry): Set normal and highlight colors to
41748 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
41749 respectively, before printing and restore them to old
41751 (grub_menu_init_page): Likewise. Fill an additional colored space
41752 that would otherwise be left blank.
41754 * term/efi/console.c (grub_console_getcolor): New function.
41755 (struct grub_console_term.getcolor): New variable.
41756 * term/i386/pc/console.c (grub_console_getcolor): New function.
41757 (struct grub_console_term.getcolor): New variable.
41758 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
41759 (struct grub_console_term.getcolor): New variable.
41761 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
41762 (struct grub_console_term.setcolor): Remove variable.
41763 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
41764 (struct grub_console_term.setcolor): Remove variable.
41765 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
41766 (struct grub_console_term.setcolor): Remove variable.
41767 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
41768 (struct grub_console_term.setcolor): Remove variable.
41770 2007-12-25 Robert Millan <rmh@aybabtu.com>
41772 * configure.ac: Search for possible unifont.hex locations, and
41773 define UNIFONT_HEX if found.
41775 * Makefile.in (UNIFONT_HEX): Define variable.
41776 (DATA): Rename to ...
41777 (PKGLIB): ... this. Update all users.
41778 (PKGDATA): New variable.
41779 (pkgdata_IMAGES): Rename to ...
41780 (pkglib_IMAGES): ... this. Update all users.
41781 (pkgdata_MODULES): Rename to ...
41782 (pkglib_MODULES): ... this. Update all users.
41783 (pkgdata_PROGRAMS): Rename to ...
41784 (pkglib_PROGRAMS): ... this. Update all users.
41785 (pkgdata_DATA): Rename to ...
41786 (pkglib_DATA): ... this. Update all users.
41787 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
41788 (unicode.pff, ascii.pff): New rules.
41789 (all-local): Add `$(PKGDATA)' dependency.
41790 (install-local): Process `$(PKGDATA)'.
41792 * util/update-grub_lib.in (font_path): Search for *.pff files in
41793 a few more locations, including `${pkgdata}'.
41795 2007-12-23 Robert Millan <rmh@aybabtu.com>
41797 Patch from Bean <bean123ch@gmail.com>:
41798 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
41801 2007-12-21 Bean <bean123ch@gmail.com>
41803 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
41804 (ntfscomp_mod_SOURCES): New variable.
41805 (ntfscomp_mod_CFLAGS): Likewise.
41806 (ntfscomp_mod_LDFLAGS): Likewise.
41808 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
41809 (grub_probe_SOURCES): Likewise.
41810 (grub_emu_SOURCES): Likewise.
41812 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
41813 (grub_emu_SOURCES): Likewise.
41815 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
41816 (grub_emu_SOURCES): Likewise.
41818 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
41819 (grub_emu_SOURCES): Likewise.
41821 * fs/ntfs.c (grub_ntfscomp_func): New variable.
41822 (read_run_list): Renamed to grub_ntfs_read_run_list.
41823 (decomp_nextvcn): Moved to ntfscomp.c.
41824 (decomp_getch): Likewise.
41825 (decomp_get16): Likewise.
41826 (decomp_block): Likewise.
41827 (read_block): Likewise.
41828 (read_data): Partially moved to ntfscomp.c.
41829 (fixup): Change unsigned to grub_uint16_t.
41830 (read_mft): Change unsigned long to grub_uint32_t.
41831 (read_attr): Likewise.
41832 (read_data): Likewise.
41833 (read_run_data): Likewise.
41834 (read_run_list): Likewise.
41835 (read_mft): Likewise.
41837 * fs/ntfscomp.c: New file.
41839 * include/grub/ntfs.h: New file.
41841 2007-12-16 Robert Millan <rmh@aybabtu.com>
41843 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
41844 IDE disk check, since Linux is known to support 20 IDE disks.
41845 Reported by Colin Watson.
41847 2007-12-15 Bean <bean123ch@gmail.com>
41849 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
41850 (lnxboot_img_SOURCES): New variable.
41851 (lnxboot_img_ASFLAGS): Likewise.
41852 (lnxboot_img_LDFLAGS): Likewise.
41854 * boot/i386/pc/lnxboot.S: New file.
41856 2007-11-24 Pavel Roskin <proski@gnu.org>
41858 * configure.ac: Test if '--build-id=none' is supported by the
41859 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
41860 objcopy to generate incorrect binary files (binutils
41861 2.17.50.0.18-1 as shipped by Fedora 8).
41862 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
41863 linking, so that build ID doesn't break the test.
41865 2007-11-24 Pavel Roskin <proski@gnu.org>
41867 * include/grub/i386/time.h: use "void" in the argument list
41868 of grub_cpu_idle().
41869 * include/grub/powerpc/time.h: Likewise.
41870 * include/grub/sparc64/time.h: Likewise.
41872 2007-11-18 Christian Franke <franke@computer.org>
41874 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
41875 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
41876 This fixes the problem that function keys did not work in grub-emu.
41878 2007-11-18 Christian Franke <franke@computer.org>
41880 * disk/host.c (grub_host_open): Remove attribute unused from
41881 name parameter. Add check for "host". This fixes the problem
41882 that grub-emu does not find partitions.
41884 2007-11-18 Christian Franke <franke@computer.org>
41886 * util/hostfs.c (is_dir): New function.
41887 (grub_hostfs_dir): Handle missing dirent.d_type case.
41888 (grub_hostfs_read): Add missing fseek().
41889 (grub_hostfs_label): Clear label pointer. This fixes a crash
41890 of grub-emu on "ls (host)".
41892 2007-11-18 Christian Franke <franke@computer.org>
41894 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
41895 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
41896 to 64 bit boundary by default.
41898 2007-11-18 Bean <bean123ch@gmail.com>
41900 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
41901 (hexdump_mod_SOURCES): New variable.
41902 (hexdump_mod_CFLAGS): Likewise.
41903 (hexdump_mod_LDFLAGS): Likewise.
41905 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41907 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41909 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41911 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41913 * include/grub/hexdump.h: New file.
41915 * commands/hexdump.c: New file.
41917 2007-11-10 Robert Millan <rmh@aybabtu.com>
41919 * commands/i386/pc/play.c (beep_off): Switch order of arguments
41920 in grub_outb() calls.
41921 (beep_on): Likewise.
41923 2007-11-10 Christian Franke <franke@computer.org>
41925 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
41926 (grub_menu_run): Likewise.
41928 2007-11-10 Robert Millan <rmh@aybabtu.com>
41930 * include/grub/i386/efi/machine.h: New file.
41931 * include/grub/i386/linuxbios/machine.h: Likewise.
41932 * include/grub/i386/pc/machine.h: Likewise.
41933 * include/grub/powerpc/ieee1275/machine.h: Likewise.
41934 * include/grub/sparc64/ieee1275/machine.h: Likewise.
41936 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
41937 (serial_hw_io_addr): New variable.
41938 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
41939 instead of `(unsigned short *) 0x400'.
41941 2007-11-10 Bean <bean123ch@gmail.com>
41943 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
41945 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
41947 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
41948 (vga_mod_SOURCES): Added.
41949 (vga_mod_CFLAGS): Likewise.
41950 (vga_mod_LDFLAGS): Likewise.
41952 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
41954 (set_map_mask): Likewise.
41955 (set_read_map): Likewise.
41956 (set_read_address): Likewise.
41957 (vga_font): Removed variable.
41958 (get_vga_glyph): Removed function.
41959 (invalidate_char): Likewise.
41960 (write_char): Changed to use grub_font_get_glyph() for font
41962 (grub_vga_putchar): Likewise.
41963 (grub_vga_getcharwidth): Likewise.
41965 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
41967 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
41969 (pxeboot_img_LDFLAGS): Likewise.
41970 (diskboot_img_LDFLAGS): Likewise.
41971 (kernel_img_LDFLAGS): Likewise.
41973 2007-11-06 Robert Millan <rmh@aybabtu.com>
41975 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
41976 in grub_outb() calls.
41977 (serial_hw_init): Likewise.
41979 2007-11-05 Robert Millan <rmh@aybabtu.com>
41981 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
41982 spaces. Skip non-regular files.
41984 2007-11-05 Robert Millan <rmh@aybabtu.com>
41986 * kern/disk.c (grub_disk_firmware_fini)
41987 (grub_disk_firmware_is_tainted): New variables.
41989 * include/grub/disk.h (grub_disk_firmware_fini)
41990 (grub_disk_firmware_is_tainted): Likewise.
41992 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
41993 (grub_disk_biosdisk_fini): ... to here.
41994 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
41995 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
41996 is set. Register grub_disk_biosdisk_fini() in
41997 `grub_disk_firmware_fini'.
41999 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
42000 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
42001 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
42002 to finish existing firmware disk interface.
42004 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
42005 (ata_mod_SOURCES): New variable.
42006 (ata_mod_CFLAGS): Likewise.
42007 (ata_mod_LDFLAGS): Likewise.
42009 2007-11-05 Robert Millan <rmh@aybabtu.com>
42011 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
42012 (grub_ata_wait): Reimplement using grub_millisleep().
42014 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
42015 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
42017 2007-11-03 Marco Gerards <marco@gnu.org>
42019 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
42020 (CRTC_ADDR_PORT): New macro.
42021 (CRTC_DATA_PORT): Likewise.
42022 (CRTC_CURSOR): Likewise.
42023 (CRTC_CURSOR_ADDR_HIGH): Likewise.
42024 (CRTC_CURSOR_ADDR_LOW): Likewise.
42025 (update_cursor): New function.
42026 (grub_console_real_putchar): Call `update_cursor'.
42027 (grub_console_gotoxy): Likewise.
42028 (grub_console_cls): Set the default color when clearing the
42030 (grub_console_setcursor): Implemented.
42032 2007-11-03 Marco Gerards <marco@gnu.org>
42034 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
42036 (grub_ata_pio_write): Likewise.
42038 (grub_atapi_identify): Wait after issuing an ATA command.
42039 (grub_atapi_packet): Likewise.
42040 (grub_ata_identify): Likewise.
42041 (grub_ata_readwrite): Likewise.
42043 2007-11-03 Marco Gerards <marco@gnu.org>
42045 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
42046 (grub_ata_pio_write): Likewise.
42047 (grub_ata_readwrite): Use `grub_error', instead of
42048 returning `grub_errno'.
42050 2007-11-03 Marco Gerards <marco@gnu.org>
42052 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
42053 grub_ata_pio_write once for every single sector, instead of for
42056 2007-10-31 Robert Millan <rmh@aybabtu.com>
42058 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
42060 * conf/i386-linuxbios.rmk: New file.
42062 * kern/i386/pc/hardware.c: Likewise.
42063 * term/i386/pc/at_keyboard.c: Likewise.
42064 * term/i386/pc/vga_text.c: Likewise.
42066 * include/grub/i386/linuxbios/boot.h: Likewise.
42067 * include/grub/i386/linuxbios/console.h: Likewise.
42068 * include/grub/i386/linuxbios/init.h: Likewise.
42069 * include/grub/i386/linuxbios/kernel.h: Likewise.
42070 * include/grub/i386/linuxbios/loader.h: Likewise.
42071 * include/grub/i386/linuxbios/memory.h: Likewise.
42072 * include/grub/i386/linuxbios/serial.h: Likewise.
42073 * include/grub/i386/linuxbios/time.h: Likewise.
42075 * kern/i386/linuxbios/init.c: Likewise.
42076 * kern/i386/linuxbios/startup.S: Likewise.
42077 * kern/i386/linuxbios/table.c: Likewise.
42079 2007-10-31 Marco Gerards <marco@gnu.org>
42081 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
42082 (ata_mod_SOURCES): New variable.
42083 (ata_mod_CFLAGS): Likewise.
42084 (ata_mod_LDFLAGS): Likewise.
42086 * disk/ata.c: New file.
42088 * include/grub/disk.h (grub_disk_dev_id): Add
42089 `GRUB_DISK_DEV_ATA_ID'.
42091 2007-10-31 Robert Millan <rmh@aybabtu.com>
42093 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
42094 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
42096 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
42097 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
42099 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
42102 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
42104 2007-10-27 Robert Millan <rmh@aybabtu.com>
42106 * include/grub/types.h (ULONG_MAX): Define macro.
42108 2007-10-22 Robert Millan <rmh@aybabtu.com>
42110 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
42112 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
42114 2007-10-22 Robert Millan <rmh@aybabtu.com>
42116 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
42117 (pkgdata_MODULES): Add `biosdisk.mod'.
42118 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
42121 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
42122 (grub_biosdisk_init): Replace with ...
42123 (GRUB_MOD_INIT(biosdisk)): ... this.
42124 (grub_biosdisk_fini): Replace with ...
42125 (GRUB_MOD_FINI(biosdisk)): ... this.
42127 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
42128 (grub_machine_init): Remove call to grub_biosdisk_init().
42129 (grub_machine_fini): Remove call to grub_machine_fini().
42131 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
42133 2007-10-22 Robert Millan <rmh@aybabtu.com>
42135 * include/grub/time.h: New file.
42136 * include/grub/i386/time.h: Likewise.
42137 * include/grub/powerpc/time.h: Likewise.
42138 * include/grub/sparc64/time.h: Likewise.
42140 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
42142 (KERNEL_MACHINE_TIME_HEADER): ... this.
42143 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
42145 (KERNEL_MACHINE_TIME_HEADER): ... this.
42146 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
42148 (KERNEL_MACHINE_TIME_HEADER): ... this.
42150 * kern/i386/efi/init.c: Include `<grub/time.h>'.
42151 (grub_millisleep): New function.
42152 * kern/i386/pc/init.c: Include `<grub/time.h>'.
42153 (grub_millisleep): New function.
42154 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
42155 Remove `grub/machine/time.h' include.
42156 (grub_millisleep): New function.
42157 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
42158 Remove `grub/machine/time.h' include.
42159 (grub_millisleep): New function.
42161 * include/grub/misc.h (grub_div_roundup): New function.
42163 * kern/misc.c: Include `<grub/time.h>'.
42164 (grub_millisleep_generic): New function.
42166 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
42168 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
42170 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
42171 `machine/time.h'. Add `time.h'.
42172 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
42174 2007-10-21 Robert Millan <rmh@aybabtu.com>
42176 * include/grub/misc.h (grub_max): New function.
42178 2007-10-21 Robert Millan <rmh@aybabtu.com>
42180 * util/misc.c (grub_util_info): Call fflush() before returning.
42182 2007-10-20 Robert Millan <rmh@aybabtu.com>
42184 * genmk.rb (Image): Copy `extra_flags' from here ...
42185 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
42187 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
42188 to `argc' and `args' arguments.
42190 2007-10-17 Robert Millan <rmh@aybabtu.com>
42192 * kern/i386/loader.S: New file.
42194 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
42195 * kern/i386/loader.S (grub_linux_prot_size)... to here.
42196 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
42197 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
42198 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
42199 * kern/i386/loader.S (grub_linux_real_addr)... to here.
42200 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
42201 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
42202 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
42203 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
42204 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
42205 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
42206 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
42207 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
42209 * kern/i386/realmode.S: New file.
42211 * kern/i386/pc/startup.S (protstack): Moved from here ...
42212 * kern/i386/realmode.S (protstack)... to here.
42213 * kern/i386/pc/startup.S (gdt): Moved from here ...
42214 * kern/i386/realmode.S (gdt)... to here.
42215 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
42216 * kern/i386/realmode.S (prot_to_real)... to here.
42218 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
42219 `kern/i386/realmode.S'.
42221 2007-10-17 Robert Millan <rmh@aybabtu.com>
42223 * include/grub/i386/loader.h: New file.
42225 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
42226 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
42227 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
42228 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
42229 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
42230 * include/grub/i386/loader.h (grub_linux_prot_size)
42231 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
42232 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
42233 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
42234 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
42236 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
42238 2007-10-15 Robert Millan <rmh@aybabtu.com>
42240 * normal/misc.c (grub_normal_print_device_info): Do not probe for
42241 filesystem when dev->disk is unset.
42242 Do probe for filesystem even when dev->disk->has_partitions is set.
42243 In case a filesystem is found, always report it.
42244 In case it isn't, if dev->disk->has_partitions is set, report that
42245 a partition table was found instead of reporting that no filesystem
42246 could be identified.
42248 2007-10-12 Robert Millan <rmh@aybabtu.com>
42250 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
42251 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
42253 * include/grub/types.h (grub_host_to_target16): New macro.
42254 (grub_host_to_target32): Likewise.
42255 (grub_host_to_target64): Likewise.
42256 (grub_target_to_host16): Likewise.
42257 (grub_target_to_host32): Likewise.
42258 (grub_target_to_host64): Likewise.
42260 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
42261 Renamed from to ...
42262 (GRUB_MOD_ALIGN): ...this. Update all users.
42264 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
42265 grub_host_to_target32.
42266 Replace grub_be_to_cpu32 with grub_target_to_host32.
42267 (load_modules): Likewise.
42268 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
42269 Replace grub_be_to_cpu32 with grub_target_to_host32.
42270 Replace grub_cpu_to_be16 with grub_host_to_target16.
42271 Replace grub_cpu_to_be32 grub_host_to_target32.
42273 2007-10-12 Robert Millan <rmh@aybabtu.com>
42275 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
42276 * util/elf/grub-mkimage.c: ... here.
42278 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
42279 `util/powerpc/ieee1275/grub-mkimage.c'.
42281 2007-10-07 Robert Millan <rmh@aybabtu.com>
42283 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
42284 and make it easier to figure out.
42285 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
42286 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
42287 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
42288 leave us with less than HEAP_MIN_SIZE total heap.
42289 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
42291 2007-10-03 Robert Millan <rmh@aybabtu.com>
42293 * include/grub/i386/io.h: New file.
42294 * commands/i386/pc/play.c (inb): Removed.
42296 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
42298 * term/i386/pc/serial.c (inb): Removed.
42300 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
42302 * term/i386/pc/vga.c (inb): Removed.
42304 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
42307 2007-10-02 Robert Millan <rmh@aybabtu.com>
42309 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
42310 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42311 Reported by Marcin Kurek.
42313 2007-09-07 Robert Millan <rmh@aybabtu.com>
42315 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
42316 SmartFirmware version updates (as released by Sven Luther), and avoid
42317 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
42318 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
42321 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
42323 From Hitoshi Ozeki:
42324 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
42325 when merging two regions.
42327 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
42329 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
42330 * normal/completion.c (grub_normal_do_completion): Likewise.
42331 Reported by Hitoshi Ozeki.
42333 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
42335 Do not use devices at boot in chainloading.
42337 * loader/i386/pc/chainloader.c (boot_drive): New variable.
42338 (boot_part_addr): Likewise.
42339 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
42340 with BOOT_DRIVE and BOOT_PART_ADDR.
42341 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
42342 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
42344 2007-08-29 Robert Millan <rmh@aybabtu.com>
42346 Patch from Simon Peter <dn.tlp@gmx.net>:
42347 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
42348 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
42349 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
42350 util/i386/pc/grub-setup.c_DEPENDENCIES.
42351 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
42352 util/grub-probe.c_DEPENDENCIES.
42353 * conf/powerpc-ieee1275.rmk: Likewise.
42355 2007-08-28 Robert Millan <rmh@aybabtu.com>
42357 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
42358 to tell grub-mkdevicemap how to name devices.
42359 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
42362 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
42363 util/i386/get_disk_name.c.
42364 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
42365 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
42366 util/ieee1275/get_disk_name.c.
42368 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
42370 * DISTLIST: Add util/i386/get_disk_name.c and
42371 util/ieee1275/get_disk_name.c.
42373 * util/grub-mkdevicemap.c: Replace device naming logic with
42374 grub_util_get_disk_name() calls.
42376 2007-08-20 Robert Millan <rmh@aybabtu.com>
42378 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
42379 (so that it works for both plural and singular quantities).
42381 2007-08-05 Robert Millan <rmh@aybabtu.com>
42383 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
42384 so that [xz] isn't taken into account when determining order.
42386 2007-08-02 Marco Gerards <marco@gnu.org>
42388 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
42389 `include/multiboot2.h', `include/grub/elfload.h',
42390 `include/multiboot.h', `include/grub/multiboot.h',
42391 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
42392 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
42393 `kern/elf.c', `loader/multiboot_loader.c',
42394 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
42395 `loader/i386/pc/multiboot2.c',
42396 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
42397 `util/i386/pc/grub-mkrescue.in'. Remove
42398 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
42399 `include/grub/i386/pc/util/biosdisk.h' and
42400 `include/grub/powerpc/ieee1275/multiboot.h'.
42402 2007-08-02 Bean <bean123ch@gmail.com>
42404 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
42405 (ntfs_mod_SOURCES): New variable.
42406 (ntfs_mod_CFLAGS): Likewise.
42407 (ntfs_mod_LDFLAGS): Likewise.
42409 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
42410 (grub_probe_SOURCES): Likewise.
42411 (grub_emu_SOURCES): Likewise.
42413 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
42414 (grub_emu_SOURCES): Likewise.
42416 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
42417 (grub_emu_SOURCES): Likewise.
42419 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
42421 * fs/ntfs.c: New file.
42423 2007-08-02 Bean <bean123ch@gmail.com>
42425 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
42427 * file.h (grub_file): Likewise.
42429 * fshelp.h (grub_fshelp_read_file): Likewise.
42431 * util/i386/pc/grub-setup.c (setup): Likewise.
42432 (save_first_sector): Likewise.
42433 (save_blocklists): Likewise.
42435 * fs/affs.c (grub_affs_read_file): Likewise.
42437 * fs/ext2.c (grub_ext2_read_file): Likewise.
42439 * fs/fat.c (grub_fat_read_data): Likewise.
42441 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
42443 * fs/hfs.c (grub_hfs_read_file): Likewise.
42445 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
42447 * fs/jfs.c (grub_jfs_read_file): Likewise.
42449 * fs/minix.c (grub_minix_read_file): Likewise.
42451 * fs/sfs.c (grub_sfs_read_file): Likewise.
42453 * fs/ufs.c (grub_ufs_read_file): Likewise.
42455 * fs/xfs.c (grub_xfs_read_file): Likewise.
42457 * command/blocklist.c (read_blocklist): Likewise.
42458 (print_blocklist): Likewise.
42460 2007-08-02 Marco Gerards <marco@gnu.org>
42462 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
42465 * disk/host.c: New file.
42467 * util/hostfs.c: Likewise.
42469 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
42470 return `GRUB_ERR_BAD_FS'.
42471 * fs/sfs.c (grub_sfs_mount): Likewise.
42472 * fs/xfs.c (grub_xfs_mount): Likewise.
42474 * include/grub/disk.h (enum grub_disk_dev_id): Add
42475 `GRUB_DISK_DEVICE_HOST_ID'.
42477 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
42479 2007-07-24 Jerone Young <jerone@gmail.com>
42481 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
42482 modules for compilation.
42483 * conf/powerpc-ieee1275.rmk: Likewise.
42485 * include/multiboot.h: Move multiboot definitions to one file. Rename
42486 many definitions to not get grub specific.
42487 * include/multiboot2.h: Create header with multiboot 2 definitions.
42488 * include/grub/multiboot.h: Header for grub specific function
42489 prototypes and definitions.
42490 * include/grub/multiboot2.h: Likewise.
42491 * include/grub/multiboot_loader.h: Likewise.
42492 * include/grub/i386/pc/multiboot.h: Removed.
42493 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
42495 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
42496 and 2 to allow for one multiboot and module commands.
42497 * loader/multiboot2.c: Add multiboot2 functionality.
42498 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
42499 and definition names.
42500 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
42502 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
42503 ieee1275 specific multiboot2 code.
42505 * kern/i386/pc/startup.S: Change headers and definition names for
42506 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
42508 2007-07-22 Robert Millan <rmh@aybabtu.com>
42510 * geninitheader.sh: Process file specified in first parameter rather
42511 than hardcoding grub_modules_init.lst.
42512 * geninit.sh: Likewise. Also, construct header name dynamically rather
42513 than hardcoding grub_modules_init.h.
42515 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
42516 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
42517 grub_probe_init.[ch] and grub_setup_init.[ch].
42519 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
42520 grub_modules_init.h with grub_emu_init.h.
42521 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
42522 grub_probe_init.[ch] files.
42523 * conf/i386-efi.rmk: Likewise.
42524 * conf/i386-pc.rmk: Likewise.
42525 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
42526 grub_setup_init.[ch] files.
42528 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
42529 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
42530 to initialize modules rather than a list of hardcoded functions.
42531 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
42532 grub_init_all() to initialize modules rather than a list of hardcoded
42535 2007-07-22 Robert Millan <rmh@aybabtu.com>
42537 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
42538 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
42540 2007-07-22 Robert Millan <rmh@aybabtu.com>
42542 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
42543 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
42544 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
42545 flag when running on SmartFirmware.
42546 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
42547 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
42550 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
42551 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
42552 rather than decreasing it.
42554 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
42555 there's not enough space to do it, fail in the same way as when it
42556 can't be done because there are no partitions.
42558 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
42559 when nvsetenv failed.
42561 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
42563 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
42564 because this rule is automatically generated.
42565 (grub-mkrescue): Removed for the same reason as above.
42567 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
42569 Migrate to GNU General Public License Version 3.
42571 * COPYING: Replaced with the plain text version of GPLv3.
42573 * config.guess: Updated from gnulib.
42574 * config.sub: Likewise.
42576 * geninit.sh: Output a GPLv3 copyright notice.
42577 * geninitheader.sh: Likewise.
42578 * genmodsrc.sh: Likewise.
42579 * gensymlist.sh.in: Likewise.
42581 * boot/i386/pc/boot.S: Upgraded to GPLv3.
42582 * boot/i386/pc/diskboot.S: Likewise.
42583 * boot/i386/pc/pxeboot.S: Likewise.
42584 * commands/blocklist.c: Likewise.
42585 * commands/boot.c: Likewise.
42586 * commands/cat.c: Likewise.
42587 * commands/cmp.c: Likewise.
42588 * commands/configfile.c: Likewise.
42589 * commands/echo.c: Likewise.
42590 * commands/help.c: Likewise.
42591 * commands/ls.c: Likewise.
42592 * commands/search.c: Likewise.
42593 * commands/terminal.c: Likewise.
42594 * commands/test.c: Likewise.
42595 * commands/videotest.c: Likewise.
42596 * commands/i386/cpuid.c: Likewise.
42597 * commands/i386/pc/halt.c: Likewise.
42598 * commands/i386/pc/play.c: Likewise.
42599 * commands/i386/pc/reboot.c: Likewise.
42600 * commands/i386/pc/vbeinfo.c: Likewise.
42601 * commands/i386/pc/vbetest.c: Likewise.
42602 * commands/ieee1275/halt.c: Likewise.
42603 * commands/ieee1275/reboot.c: Likewise.
42604 * commands/ieee1275/suspend.c: Likewise.
42605 * disk/loopback.c: Likewise.
42606 * disk/lvm.c: Likewise.
42607 * disk/raid.c: Likewise.
42608 * disk/efi/efidisk.c: Likewise.
42609 * disk/i386/pc/biosdisk.c: Likewise.
42610 * disk/ieee1275/ofdisk.c: Likewise.
42611 * font/manager.c: Likewise.
42612 * fs/affs.c: Likewise.
42613 * fs/ext2.c: Likewise.
42614 * fs/fat.c: Likewise.
42615 * fs/fshelp.c: Likewise.
42616 * fs/hfs.c: Likewise.
42617 * fs/hfsplus.c: Likewise.
42618 * fs/iso9660.c: Likewise.
42619 * fs/jfs.c: Likewise.
42620 * fs/minix.c: Likewise.
42621 * fs/sfs.c: Likewise.
42622 * fs/ufs.c: Likewise.
42623 * fs/xfs.c: Likewise.
42624 * hello/hello.c: Likewise.
42625 * include/grub/acorn_filecore.h: Likewise.
42626 * include/grub/arg.h: Likewise.
42627 * include/grub/bitmap.h: Likewise.
42628 * include/grub/boot.h: Likewise.
42629 * include/grub/cache.h: Likewise.
42630 * include/grub/device.h: Likewise.
42631 * include/grub/disk.h: Likewise.
42632 * include/grub/dl.h: Likewise.
42633 * include/grub/elfload.h: Likewise.
42634 * include/grub/env.h: Likewise.
42635 * include/grub/err.h: Likewise.
42636 * include/grub/file.h: Likewise.
42637 * include/grub/font.h: Likewise.
42638 * include/grub/fs.h: Likewise.
42639 * include/grub/fshelp.h: Likewise.
42640 * include/grub/gzio.h: Likewise.
42641 * include/grub/hfs.h: Likewise.
42642 * include/grub/kernel.h: Likewise.
42643 * include/grub/loader.h: Likewise.
42644 * include/grub/lvm.h: Likewise.
42645 * include/grub/misc.h: Likewise.
42646 * include/grub/mm.h: Likewise.
42647 * include/grub/net.h: Likewise.
42648 * include/grub/normal.h: Likewise.
42649 * include/grub/parser.h: Likewise.
42650 * include/grub/partition.h: Likewise.
42651 * include/grub/pc_partition.h: Likewise.
42652 * include/grub/raid.h: Likewise.
42653 * include/grub/rescue.h: Likewise.
42654 * include/grub/script.h: Likewise.
42655 * include/grub/setjmp.h: Likewise.
42656 * include/grub/symbol.h: Likewise.
42657 * include/grub/term.h: Likewise.
42658 * include/grub/terminfo.h: Likewise.
42659 * include/grub/tparm.h: Likewise.
42660 * include/grub/types.h: Likewise.
42661 * include/grub/video.h: Likewise.
42662 * include/grub/efi/api.h: Likewise.
42663 * include/grub/efi/chainloader.h: Likewise.
42664 * include/grub/efi/console.h: Likewise.
42665 * include/grub/efi/console_control.h: Likewise.
42666 * include/grub/efi/disk.h: Likewise.
42667 * include/grub/efi/efi.h: Likewise.
42668 * include/grub/efi/pe32.h: Likewise.
42669 * include/grub/efi/time.h: Likewise.
42670 * include/grub/i386/linux.h: Likewise.
42671 * include/grub/i386/setjmp.h: Likewise.
42672 * include/grub/i386/types.h: Likewise.
42673 * include/grub/i386/efi/kernel.h: Likewise.
42674 * include/grub/i386/efi/loader.h: Likewise.
42675 * include/grub/i386/efi/time.h: Likewise.
42676 * include/grub/i386/pc/biosdisk.h: Likewise.
42677 * include/grub/i386/pc/boot.h: Likewise.
42678 * include/grub/i386/pc/chainloader.h: Likewise.
42679 * include/grub/i386/pc/console.h: Likewise.
42680 * include/grub/i386/pc/init.h: Likewise.
42681 * include/grub/i386/pc/kernel.h: Likewise.
42682 * include/grub/i386/pc/loader.h: Likewise.
42683 * include/grub/i386/pc/memory.h: Likewise.
42684 * include/grub/i386/pc/multiboot.h: Likewise.
42685 * include/grub/i386/pc/serial.h: Likewise.
42686 * include/grub/i386/pc/time.h: Likewise.
42687 * include/grub/i386/pc/vbe.h: Likewise.
42688 * include/grub/i386/pc/vbeblit.h: Likewise.
42689 * include/grub/i386/pc/vbefill.h: Likewise.
42690 * include/grub/i386/pc/vbeutil.h: Likewise.
42691 * include/grub/i386/pc/vga.h: Likewise.
42692 * include/grub/ieee1275/ieee1275.h: Likewise.
42693 * include/grub/ieee1275/ofdisk.h: Likewise.
42694 * include/grub/powerpc/libgcc.h: Likewise.
42695 * include/grub/powerpc/setjmp.h: Likewise.
42696 * include/grub/powerpc/types.h: Likewise.
42697 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
42698 * include/grub/powerpc/ieee1275/console.h: Likewise.
42699 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
42700 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
42701 * include/grub/powerpc/ieee1275/loader.h: Likewise.
42702 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
42703 * include/grub/powerpc/ieee1275/time.h: Likewise.
42704 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
42705 * include/grub/sparc64/libgcc.h: Likewise.
42706 * include/grub/sparc64/setjmp.h: Likewise.
42707 * include/grub/sparc64/types.h: Likewise.
42708 * include/grub/sparc64/ieee1275/console.h: Likewise.
42709 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
42710 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
42711 * include/grub/sparc64/ieee1275/time.h: Likewise.
42712 * include/grub/util/biosdisk.h: Likewise.
42713 * include/grub/util/getroot.h: Likewise.
42714 * include/grub/util/lvm.h: Likewise.
42715 * include/grub/util/misc.h: Likewise.
42716 * include/grub/util/raid.h: Likewise.
42717 * include/grub/util/resolve.h: Likewise.
42718 * io/gzio.c: Likewise.
42719 * kern/device.c: Likewise.
42720 * kern/disk.c: Likewise.
42721 * kern/dl.c: Likewise.
42722 * kern/elf.c: Likewise.
42723 * kern/env.c: Likewise.
42724 * kern/err.c: Likewise.
42725 * kern/file.c: Likewise.
42726 * kern/fs.c: Likewise.
42727 * kern/loader.c: Likewise.
42728 * kern/main.c: Likewise.
42729 * kern/misc.c: Likewise.
42730 * kern/mm.c: Likewise.
42731 * kern/parser.c: Likewise.
42732 * kern/partition.c: Likewise.
42733 * kern/rescue.c: Likewise.
42734 * kern/term.c: Likewise.
42735 * kern/efi/efi.c: Likewise.
42736 * kern/efi/init.c: Likewise.
42737 * kern/efi/mm.c: Likewise.
42738 * kern/i386/dl.c: Likewise.
42739 * kern/i386/efi/init.c: Likewise.
42740 * kern/i386/efi/startup.S: Likewise.
42741 * kern/i386/pc/init.c: Likewise.
42742 * kern/i386/pc/lzo1x.S: Likewise.
42743 * kern/i386/pc/startup.S: Likewise.
42744 * kern/ieee1275/ieee1275.c: Likewise.
42745 * kern/powerpc/cache.S: Likewise.
42746 * kern/powerpc/dl.c: Likewise.
42747 * kern/powerpc/ieee1275/cmain.c: Likewise.
42748 * kern/powerpc/ieee1275/crt0.S: Likewise.
42749 * kern/powerpc/ieee1275/init.c: Likewise.
42750 * kern/powerpc/ieee1275/openfw.c: Likewise.
42751 * kern/sparc64/cache.S: Likewise.
42752 * kern/sparc64/dl.c: Likewise.
42753 * kern/sparc64/ieee1275/init.c: Likewise.
42754 * kern/sparc64/ieee1275/openfw.c: Likewise.
42755 * loader/efi/chainloader.c: Likewise.
42756 * loader/efi/chainloader_normal.c: Likewise.
42757 * loader/i386/efi/linux.c: Likewise.
42758 * loader/i386/efi/linux_normal.c: Likewise.
42759 * loader/i386/pc/chainloader.c: Likewise.
42760 * loader/i386/pc/chainloader_normal.c: Likewise.
42761 * loader/i386/pc/linux.c: Likewise.
42762 * loader/i386/pc/linux_normal.c: Likewise.
42763 * loader/i386/pc/multiboot.c: Likewise.
42764 * loader/i386/pc/multiboot_normal.c: Likewise.
42765 * loader/powerpc/ieee1275/linux.c: Likewise.
42766 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
42767 * normal/arg.c: Likewise.
42768 * normal/cmdline.c: Likewise.
42769 * normal/command.c: Likewise.
42770 * normal/completion.c: Likewise.
42771 * normal/execute.c: Likewise.
42772 * normal/function.c: Likewise.
42773 * normal/lexer.c: Likewise.
42774 * normal/main.c: Likewise.
42775 * normal/menu.c: Likewise.
42776 * normal/menu_entry.c: Likewise.
42777 * normal/misc.c: Likewise.
42778 * normal/parser.y: Likewise.
42779 * normal/script.c: Likewise.
42780 * normal/i386/setjmp.S: Likewise.
42781 * normal/powerpc/setjmp.S: Likewise.
42782 * normal/sparc64/setjmp.S: Likewise.
42783 * partmap/acorn.c: Likewise.
42784 * partmap/amiga.c: Likewise.
42785 * partmap/apple.c: Likewise.
42786 * partmap/gpt.c: Likewise.
42787 * partmap/pc.c: Likewise.
42788 * partmap/sun.c: Likewise.
42789 * term/gfxterm.c: Likewise.
42790 * term/terminfo.c: Likewise.
42791 * term/efi/console.c: Likewise.
42792 * term/i386/pc/console.c: Likewise.
42793 * term/i386/pc/serial.c: Likewise.
42794 * term/i386/pc/vesafb.c: Likewise.
42795 * term/i386/pc/vga.c: Likewise.
42796 * term/ieee1275/ofconsole.c: Likewise.
42797 * util/biosdisk.c: Likewise.
42798 * util/console.c: Likewise.
42799 * util/genmoddep.c: Likewise.
42800 * util/getroot.c: Likewise.
42801 * util/grub-emu.c: Likewise.
42802 * util/grub-mkdevicemap.c: Likewise.
42803 * util/grub-probe.c: Likewise.
42804 * util/lvm.c: Likewise.
42805 * util/misc.c: Likewise.
42806 * util/raid.c: Likewise.
42807 * util/resolve.c: Likewise.
42808 * util/update-grub.in: Likewise.
42809 * util/update-grub_lib.in: Likewise.
42810 * util/grub.d/00_header.in: Likewise.
42811 * util/grub.d/10_hurd.in: Likewise.
42812 * util/grub.d/10_linux.in: Likewise.
42813 * util/i386/efi/grub-install.in: Likewise.
42814 * util/i386/efi/grub-mkimage.c: Likewise.
42815 * util/i386/pc/grub-install.in: Likewise.
42816 * util/i386/pc/grub-mkimage.c: Likewise.
42817 * util/i386/pc/grub-mkrescue.in: Likewise.
42818 * util/i386/pc/grub-setup.c: Likewise.
42819 * util/i386/pc/misc.c: Likewise.
42820 * util/powerpc/ieee1275/grub-install.in: Likewise.
42821 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
42822 * util/powerpc/ieee1275/misc.c: Likewise.
42823 * video/bitmap.c: Likewise.
42824 * video/video.c: Likewise.
42825 * video/i386/pc/vbe.c: Likewise.
42826 * video/i386/pc/vbeblit.c: Likewise.
42827 * video/i386/pc/vbefill.c: Likewise.
42828 * video/i386/pc/vbeutil.c: Likewise.
42829 * video/readers/tga.c: Likewise.
42831 2007-07-02 Robert Millan <rmh@aybabtu.com>
42833 * conf/i386-efi.rmk: Replace obsolete reference to
42834 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
42835 with util/getroot.c.
42836 * conf/powerpc-ieee1275.rmk: Likewise.
42837 * conf/sparc64-ieee1275.rmk: Likewise.
42839 * util/grub-emu.c (main): Fix unchecked pointer handling.
42841 2007-07-02 Robert Millan <rmh@aybabtu.com>
42843 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
42844 invocation to fail, in order to support partition-less media.
42846 * util/i386/pc/grub-install.in: Likewise.
42848 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
42849 which fs or partmap modules are needed (akin to its sister scripts).
42851 Also use grub-probe to get rid of unportable /proc/mounts check.
42853 Print the same informational message that the other scripts do, before
42856 2007-06-23 Robert Millan <rmh@aybabtu.com>
42858 * util/update-grub_lib.in (font_path): New function. Determine whether
42859 a font file can be found and, if so, echo the GRUB path to it.
42861 * util/update-grub.in: Handle multiple terminals depending on user
42862 input, platform availability and font file presence. Propagate
42863 variables of our findings to /etc/grub.d/ children.
42865 * util/grub.d/00_header.in: Handle multiple terminals, based on
42866 environment setup by update-grub.
42868 2007-06-23 Robert Millan <rmh@aybabtu.com>
42870 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
42872 2007-06-21 Robert Millan <rmh@aybabtu.com>
42874 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
42875 indicate end of data section in kernel image.
42876 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
42877 GRUB_KERNEL_MACHINE_DATA_END.
42879 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
42881 * kern/i386/efi/startup.S: Likewise.
42883 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
42884 during image generation. Implement --prefix option to override this
42886 * util/i386/efi/grub-mkimage.c: Likewise.
42888 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
42889 code to make path relative to its root into a separate function.
42891 * util/i386/pc/grub-install.in: Use newly provided
42892 make_system_path_relative_to_its_root() to convert ${grubdir}, then
42893 pass the result to grub-install --prefix.
42895 2007-06-13 Robert Millan <rmh@aybabtu.com>
42897 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
42898 DEFAULT_DEVICE_MAP.
42899 * util/grub-emu.c: Use above definitions from misc.h instead of
42901 * util/grub-mkdevicemap.c: Likewise.
42902 * util/i386/pc/grub-setup.c: Likewise.
42903 * util/grub-probe.c: Likewise.
42904 (probe): Abort with grub_util_error() when either
42905 grub_guess_root_device or grub_util_get_grub_dev fails.
42907 2007-06-12 Robert Millan <rmh@aybabtu.com>
42909 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
42910 "pager" assignment.
42911 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
42913 * util/grub-probe.c (probe): Likewise for "drive_name".
42915 2007-06-11 Robert Millan <rmh@aybabtu.com>
42917 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
42918 not just the cdrom one.
42920 2007-06-11 Robert Millan <rmh@aybabtu.com>
42922 * util/i386/pc/grub-mkrescue.in: Add "set -e".
42923 Add --pkglibdir=DIR option to override pkglibdir.
42924 Mention --image-type=TYPE in help output.
42925 Fix --grub-mkimage (it was a no-op).
42926 Abort gracefully when no parameter is given.
42928 2007-06-11 Robert Millan <rmh@aybabtu.com>
42930 * util/i386/pc/grub-mkrescue.in: New file.
42931 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
42932 * Makefile.in: Handle bin_SCRIPTS.
42934 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
42936 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
42937 list of video modes.
42939 2007-06-06 Robert Millan <rmh@aybabtu.com>
42941 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
42942 file doesn't exist, or if it is in a filesystem grub can't read.
42944 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
42945 not abort if GRUB_DRIVE could not be defined. Rearrange generated
42946 header comment to fit in 80 columns when the variables are resolved.
42948 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
42949 could be identified by update-grub. Remove redundant check for
42950 unifont.pff existence (since convert_system_path_to_grub_path now
42953 2007-06-04 Robert Millan <rmh@aybabtu.com>
42955 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
42957 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
42959 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
42961 2007-06-04 Robert Millan <rmh@aybabtu.com>
42963 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
42965 * include/grub/partition.h: Declare grub_apple_partition_map_init and
42966 grub_apple_partition_map_fini.
42969 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
42970 to access >2 TiB disks).
42972 Print disk->total_sectors with %llu instead of %lu, since this
42973 variable is always 64-bit (prevents wrong disk size from being displayed
42974 on either >2 TiB disk or big-endian CPU).
42976 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
42977 into a generic case that supports all (sane) partition maps.
42979 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
42982 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
42983 and grub_apple_partition_map_fini() after that.
42985 2007-06-01 Robert Millan <rmh@aybabtu.com>
42987 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
42989 * util/grub.d/00_header.in: Only enable gfxterm when
42990 convert_system_path_to_grub_path() succeeds.
42992 2007-05-20 Robert Millan <rmh@aybabtu.com>
42994 * util/update-grub_lib.in: New file.
42995 * DISTLIST: Add update-grub_lib.in.
42996 * conf/common.rmk: Generate update-grub_lib and install it in
42998 * Makefile.in: Add install routine for $(lib_DATA).
43000 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
43001 function provided by update-grub_lib to support arbitrary paths of
43003 * util/update-grub.in: Use convert_system_path_to_grub_path() to
43004 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
43006 2007-05-19 Robert Millan <rmh@aybabtu.com>
43008 * commands/i386/cpuid.c: New module.
43009 * DISTLIST: Add it.
43010 * conf/i386-efi.rmk: Enable cpuid.mod.
43011 * conf/i386-pc.rmk: Likewise.
43013 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
43015 * kern/disk.c (grub_disk_read): Check return value of
43018 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
43020 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
43022 * disk/raid.c (grub_raid_open): Likewise.
43024 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
43026 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
43027 stack instead of on the heap.
43029 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
43030 before doing a read on it.
43032 * configure.ac: Only use -fno-stack-protector for the target
43035 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
43037 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
43038 __attribute_ ((unused)) to mode_type argument.
43040 * util/getroot.c (grub_guess_root_device): Fix #endif.
43042 * kern/misc.c (memcmp): Fix prototype.
43044 * include/grub/partition.h [GRUB_UTIL]
43045 (grub_gpt_partition_map_init): Add prototype.
43046 (grub_gpt_partition_map_fini): Likewise.
43048 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
43049 at the right place.
43051 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
43052 (grub_fat_read_data): Likewise.
43053 (grub_fat_find_dir): Likewise.
43055 * font/manager.c (find_glyph): Make table a const.
43056 (grub_font_get_glyph): Remove bitmap from if statement.
43058 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
43060 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
43061 code, first search for device in /dev/mapper, then in /dev.
43062 (grub_util_get_grub_dev): New function.
43063 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
43065 * util/grub-probe.c (probe): Remove check for RAID, call
43066 grub_util_get_grub_dev() instead of
43067 grub_util_biosdisk_get_grub_dev().
43068 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
43069 grub_util_biosdisk_get_grub_dev().
43070 * util/i386/pc/grub-setup.c (main): Likewise.
43072 2007-05-16 Robert Millan <rmh@aybabtu.com>
43074 * DISTLIST: Update for the latest changes.
43075 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
43076 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
43077 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
43078 grub/util/biosdisk.h.
43079 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
43080 grub/util/biosdisk.h.
43082 2007-05-16 Robert Millan <rmh@aybabtu.com>
43084 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
43086 2007-05-16 Robert Millan <rmh@aybabtu.com>
43088 * util/i386/efi/grub-install.in: New.
43089 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
43090 newly added grub-install.
43091 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
43093 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
43094 grub/util/biosdisk.h.
43095 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
43096 grub/util/biosdisk.h.
43098 2007-05-16 Robert Millan <rmh@aybabtu.com>
43100 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
43101 * include/grub/util/biosdisk.h: ... here.
43102 * util/i386/pc/biosdisk.c: Moved to ...
43103 * util/biosdisk.c: ... here.
43104 * util/i386/pc/getroot.c: Moved to ...
43105 * util/getroot.c: ... here.
43106 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
43107 * util/grub-mkdevicemap.c: ... here.
43108 * util/i386/pc/grub-probe.c: Moved to ...
43109 * util/grub-probe.c: ... here.
43111 2007-05-15 Robert Millan <rmh@aybabtu.com>
43113 * util/update-grub.in: Remove duplicated line in grub.cfg header
43116 2007-05-13 Robert Millan <rmh@aybabtu.com>
43118 * util/update-grub.in: Fix a few assumptions about the devices holding
43119 /, /boot and /boot/grub being the same.
43120 * util/grub.d/00_header.in: Likewise.
43121 * util/grub.d/10_hurd.in: Likewise.
43122 * util/grub.d/10_linux.in: Likewise.
43124 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
43125 patterns. Use that to define the `.old' suffix as older than `'.
43127 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
43129 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
43130 the grub.cfg header message.
43132 2007-05-11 Robert Millan <rmh@aybabtu.com>
43134 * util/update-grub.in: Create device.map if it doesn't already exist,
43135 before attempting to run grub-probe.
43136 Check for grub-probe and grub-mkdevicemap with the same code
43137 grub-install is using.
43140 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
43142 * Makefile.in: Add the datarootdir autoconf variable.
43144 2007-05-09 Robert Millan <rmh@aybabtu.com>
43146 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
43147 fail gracefully if dev->disk->partition == NULL.
43149 2007-05-07 Robert Millan <rmh@aybabtu.com>
43151 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
43152 determine partition map module.
43153 * util/i386/pc/grub-install.in: Use this feature to decide which
43154 partition module to load, instead of hardcoding pc and gpt.
43156 2007-05-07 Robert Millan <rmh@aybabtu.com>
43158 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
43159 source directory differs from build directory.
43161 2007-05-05 Robert Millan <rmh@aybabtu.com>
43163 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
43166 2007-05-05 Robert Millan <rmh@aybabtu.com>
43168 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
43170 2007-05-05 Robert Millan <rmh@aybabtu.com>
43172 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
43173 command-line arguments via ${GRUB_CMDLINE_LINUX}.
43175 2007-05-05 Robert Millan <rmh@aybabtu.com>
43177 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
43178 (grub_probe_SOURCES): Likewise.
43179 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
43180 GPT and initialize dos_part and bsd_part accordingly.
43181 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
43183 (main): Activate gpt module for use during partition identification,
43184 and deactivate it afterwards.
43185 * util/i386/pc/grub-install.in: Add gpt module to core.img.
43186 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
43187 partition identification, and deactivate it afterwards.
43189 2007-05-05 Robert Millan <rmh@aybabtu.com>
43191 * term/i386/pc/console.c (grub_console_fini): Call
43192 grub_term_set_current() before grub_term_unregister().
43194 2007-05-04 Robert Millan <rmh@aybabtu.com>
43196 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
43197 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
43198 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
43199 and update-grub_DATA.
43200 * conf/common.rmk: Build and install update-grub components.
43201 * conf/common.mk: Regenerate.
43202 * util/update-grub.in: New. Core of update-grub.
43203 * util/grub.d/00_header.in: New. Generates grub.cfg header.
43204 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
43205 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
43206 * util/grub.d/README: New. Document grub.d directory layout.
43208 2007-05-01 Robert Millan <rmh@aybabtu.com>
43210 * util/grub-emu.c: Move initialization functions
43211 grub_util_biosdisk_init() and grub_init_all() before
43212 grub_util_biosdisk_get_grub_dev(), which relies on them.
43214 2007-04-19 Robert Millan <rmh@aybabtu.com>
43216 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
43219 2007-04-18 Jerone Young <jerone@gmail.com>
43221 * kernel/elf.c: Add missing parenthesis for conditional statement
43224 2007-04-10 Jerone Young <jerone@gmail.com>
43226 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
43227 continue on and look for device node with real device name.
43229 2007-04-10 Jerone Young <jerone@gmail.com>
43231 * configure.ac: Add argument for autoconf to use transformation
43233 * Makefile.in: Add autoconf package transformation code.
43234 * util/i386/pc/grub-install.in: Likewise.
43235 * util/powerpc/ieee1275/grub-install.in: Likewise.
43237 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
43239 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
43240 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
43241 (EXT2_REVISION): Likewise.
43242 (EXT2_INODE_SIZE): Likewise.
43243 (struct grub_ext2_block_group): Added a missing member
43245 (grub_ext2_read_inode): Divide by the inode size in a superblock
43246 instead of 128 to obtain INODES_PER_BLOCK.
43247 Use the macro EXT2_INODE_SIZE instead of directly using
43248 SBLOCK->INODE_SIZE.
43250 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
43252 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
43253 superblock instead of the structure size to compute an
43254 offset. This fixes the problem that GRUB could not read a
43255 filesystem when inode size is different from 128-byte.
43257 2007-03-05 Marco Gerards <marco@gnu.org>
43259 * normal/main.c (read_config_file): When "menu" is not set, create
43260 an initial context.
43262 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
43264 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
43265 (HEAP_LIMIT): New macro.
43266 (grub_claim_heap): Claim memory up to `heaplimit'.
43268 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
43270 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
43271 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
43272 (_start): Likewise.
43273 (grub_arch_modules_addr): Return address after `_end'.
43274 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
43275 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
43276 (add_segments): Calculate `_end' from phdr size and location.
43277 (ALIGN_UP): Moved to ...
43278 * include/grub/misc.h: here.
43279 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
43281 (GRUB_IEEE1275_MODULE_BASE): Removed.
43283 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
43285 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
43288 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
43290 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
43292 (grub_elf64_load_hook_t): Likewise.
43293 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
43296 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
43298 * kern/mm.c: Update copyright.
43299 (grub_mm_debug): Correct syntax error.
43300 (grub_mm_dump_free): New function.
43301 (grub_debug_free): Call `grub_free'.
43302 * include/grub/mm.h: Update copyright.
43303 (grub_mm_dump_free): Add declaration.
43305 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
43307 * include/grub/ieee1275/ieee1275.h: Update copyright.
43308 * kern/powerpc/ieee1275/init.c: Likewise.
43309 * kern/powerpc/ieee1275/openfw.c: Likewise.
43311 * loader/powerpc/ieee1275/linux.c: Likewise.
43312 * include/grub/elfload.h: Likewise.
43313 * kern/elf.c: Likewise.
43314 (grub_elf32_load): Pass `base' and `size' parameters. Update all
43316 (grub_elf64_load): Likewise.
43317 (grub_elf32_load_segment): Move to a nested function.
43318 (grub_elf64_load_segment): Likewise.
43320 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
43322 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
43324 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
43325 (grub_heap_len): Likewise.
43326 (HEAP_SIZE): New macro.
43327 (grub_claim_heap): New function.
43328 (grub_machine_init): Don't claim heap directly. Call
43330 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
43331 (grub_available_iterate): New function.
43333 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
43335 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
43336 * configure.ac: Use it for testing the HOST and TARGET compilers.
43338 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
43340 * Makefile.in (enable_grub_emu): New variable.
43341 * configure.ac (--enable-grub-emu): New option.
43342 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
43343 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
43344 * conf/i386-pc.rmk: Likewise.
43345 * conf/powerpc-ieee1275.rmk: Likewise.
43346 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
43348 2006-12-12 Marco Gerards <marco@gnu.org>
43350 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
43352 * kern/env.c (grub_env_unset): Don't free the member `value' when
43353 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
43356 * normal/main.c (current_menu): Removed.
43357 (free_menu): Unset the `menu' environment variable.
43358 (grub_normal_menu_addentry): Make use of the environment variable
43359 `menu', instead of using the global `current_menu'. Allocate
43360 memory for the sourcecode of this entry.
43361 (read_config_file): New argument `nested', changed all callers.
43362 Only in the case of a new context, initialize a new menu. Set the
43363 `menu' environment variable.
43364 (grub_normal_execute): Don't set and unset the environment
43365 variable `menu' here anymore. Only free the menu when leaving the
43368 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
43371 2006-12-11 Marco Gerards <marco@gnu.org>
43373 * normal/menu_entry.c (run): Fix off by one bug so the last line
43374 is executed. Move the loader check to outside the loop.
43376 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
43378 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
43380 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
43382 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
43383 the number of sectors. Reported by Andrey Shuvikov
43384 <mr_hyro@yahoo.com>.
43386 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
43388 * kern/disk.c (grub_disk_read): When there is a read error, always
43389 try to read only the necessary data.
43391 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
43393 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
43395 [GRUB_UTIL] (grub_raid_fini): Likewise.
43396 [GRUB_UTIL] (grub_lvm_init): Likewise.
43397 [GRUB_UTIL] (grub_lvm_fini): Likewise.
43398 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
43399 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
43400 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
43401 and grub_raid_fini().
43403 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
43405 * include/grub/types.h (__unused): Rename to UNUSED.
43406 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
43407 (grub_elf64_size): Likewise.
43409 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
43411 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
43412 grub_error_push and grub_error_pop in the error-handling path.
43413 (grub_elf32_load_segment): Only call grub_file_read with non-zero
43416 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
43418 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
43419 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43420 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43421 (kernel_elf_SOURCES): Likewise.
43422 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
43423 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
43424 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
43425 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
43426 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
43427 (elf_mod_SOURCES): New variable.
43428 (elf_mod_CFLAGS): Likewise.
43429 (elf_mod_LDFLAGS): Likewise.
43430 * include/grub/types.h (__unused): New macro.
43431 * include/grub/elfload.h: New file.
43432 * kern/elf.c: Likewise.
43433 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
43434 (ELF32_LOADMASK): New macro.
43435 (ELF64_LOADMASK): Likewise.
43436 (vmlinux): Removed.
43437 (grub_linux_load32): New function.
43438 (grub_linux_load64): Likewise.
43439 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
43440 Use grub_elf_t instead of grub_file_t.
43442 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
43444 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
43445 `catch_result' to struct set_color_args.
43447 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
43449 * normal/menu.c: Include grub/script.h.
43450 * normal/menu_entry.c: Likewise.
43451 * include/grub/normal.h: Do not include grub/script.h.
43453 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
43455 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
43457 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
43459 * kern/disk.c (grub_disk_open): Print debug messages when opening a
43461 (grub_disk_close): Print debug messages when closing a disk.
43462 (grub_disk_read): Print debug messages when disk read fails.
43463 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
43465 * kern/partition.c: Include misc.h.
43466 (grub_partition_iterate): Print debug messages when detecting
43469 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
43471 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
43473 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
43475 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
43477 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
43478 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
43480 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
43482 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
43483 instead of sizeof(lv). Patch by Michael Guntsche.
43485 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
43487 * disk/lvm.c: Rename VGS to VG_LIST.
43488 (grub_lvm_iterate): Change VGS->LV to VG-LV.
43489 (grub_lvm_open): Likewise.
43490 Thanks to Michael Guntsche for finding this bug.
43492 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43494 * configure.ac (AC_INIT): Bumped to 1.95.
43496 2006-10-14 Robert Millan <rmh@aybabtu.com>
43498 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
43499 with "/dev/.static/dev/md".
43501 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
43503 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
43504 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
43505 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
43506 DRIVE_NAME are always freed.
43508 * util/i386/pc/biosdisk.c (make_device_name): Add one into
43509 DOS_PART, as a DOS partition is counted from one instead of zero
43510 now. Reported by Robert Millan.
43512 2006-10-14 Robert Millan <rmh@aybabtu.com>
43514 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
43515 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
43516 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
43517 string returned by grub_guess_root_device.
43518 * util/i386/pc/grub-setup.c: Likewise.
43519 * util/i386/pc/grub-probefs.c: Likewise.
43521 * util/i386/pc/grub-probefs.c: Rename to ...
43522 * util/i386/pc/grub-probe.c: ... this.
43523 * DISTLIST: Remove grub-probefs, add grub-probe.
43524 * conf/i386-efi.rmk: Likewise.
43525 * conf/i386-pc.rmk: Likewise.
43526 * util/i386/pc/grub-install.in: Likewise.
43528 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
43529 choose which information we want to print.
43531 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
43533 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
43534 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
43535 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
43536 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
43537 video/readers/tga.c and video/i386/pc/vbeutil.c.
43539 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
43541 Added support for RAID and LVM.
43543 * disk/lvm.c: New file.
43544 * disk/raid.c: Likewise.
43545 * include/grub/lvm.h: Likewise.
43546 * include/grub/raid.h: Likewise.
43547 * include/grub/util/lvm.h: Likewise.
43548 * include/grub/util/raid.h: Likewise.
43549 * util/lvm.c: Likewise.
43550 * util/raid.c: Likewise.
43552 * include/grub/disk.h (grub_disk_dev_id): Add
43553 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
43554 (grub_disk_get_size): New prototype.
43555 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
43556 returns a partition.
43557 (grub_disk_get_size): New function.
43559 * kern/i386/pc/init.c (make_install_device): Copy the prefix
43560 verbatim if grub_install_dos_part is -2.
43562 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
43565 * util/i386/pc/grub-setup.c (setup): New argument
43566 MUST_EMBED. Force embedding of GRUB when the argument is
43567 true. Close FILE before returning.
43568 (main): Add support for RAID and LVM.
43570 * conf/common.rmk: Add RAID and LVM modules.
43571 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
43573 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
43575 * kern/misc.c (grub_strstr): New function.
43576 * include/grub/misc.h (grub_strstr): New prototype.
43578 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
43580 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
43582 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
43584 * kern/misc.c (grub_strtoull): Guess the base only if not
43587 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
43589 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
43592 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
43594 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
43596 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
43597 Remove `flags' argument. All callers changed.
43598 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
43599 (IEEE1275_IHANDLE_INVALID): New variable.
43600 (IEEE1275_CELL_INVALID): New variable.
43601 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
43602 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
43603 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
43604 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
43605 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
43606 codes from Open Firmware. All callers updated.
43607 (grub_ieee1275_next_property): Directly return Open Firmware return
43609 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
43610 Standardize error checking from `grub_ieee1275_get_property'.
43611 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
43612 `devalias' to `aliases'. Correct comments. Consolidate error paths.
43614 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
43616 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
43617 `instance_to_package_args' to `instance_to_path_args'.
43619 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
43620 `grub_ieee1275_chosen'.
43622 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
43623 `grub_ieee1275_interpret'.
43625 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
43627 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
43629 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
43631 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
43632 (__cmpdi): Likewise.
43634 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
43635 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
43638 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
43640 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
43641 to type `grub_ssize_t'.
43642 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
43644 2006-09-22 Marco Gerards <marco@gnu.org>
43646 * normal/script.c (grub_script_create_cmdmenu): Skip leading
43649 2006-09-22 Marco Gerards <marco@gnu.org>
43651 * commands/echo.c: New file.
43653 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
43655 * conf/common.rmk (echo_mod_SOURCES): New variable.
43656 (echo_mod_CFLAGS): Likewise.
43657 (echo_mod_LDFLAGS): Likewise.
43659 2006-09-22 Marco Gerards <marco@gnu.org>
43661 * normal/main.c (get_line): Malloc memory instead of using
43662 preallocated memory. Removed the arguments `cmdline' and
43663 `max_len'. Updated all callers.
43665 2006-09-22 Marco Gerards <marco@gnu.org>
43667 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
43668 (normal_mod_DEPENDENCIES): Likewise.
43670 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
43671 (normal_mod_DEPENDENCIES): Likewise.
43673 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
43675 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
43677 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
43679 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
43680 (normal_mod_DEPENDENCIES): Likewise.
43681 * conf/i386-pc.mk: Regenerate.
43682 * conf/i386-efi.mk: Likewise
43683 * conf/common.mk: Likewise.
43684 * conf/powerpc-ieee1275.mk: Likewise.
43685 * conf/sparc64-ieee1275.mk: Likewise.
43687 2006-09-22 Robert Millan <rmh@aybabtu.com>
43689 Sync with i386 version.
43690 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
43691 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
43693 2006-09-21 Robert Millan <rmh@aybabtu.com>
43695 Import from GRUB Legacy (lib/device.c):
43696 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
43697 (init_device_map) [__linux__]: Add support for I2O devices.
43699 2006-09-14 Marco Gerards <marco@gnu.org>
43701 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
43704 2006-09-14 Robert Millan <rmh@aybabtu.com>
43706 * util/i386/pc/grub-install.in: Skip menu.lst when removing
43709 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
43711 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
43712 before adding it to device.map.
43714 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
43716 * genmk.rb: Let GCC generate dependencies the first time it
43717 compiles a file; using the -MD option.
43718 * conf/common.mk: Regenerate.
43719 * conf/i386-pc.mk: Likewise.
43720 * conf/i386-efi.mk: Likewise.
43721 * conf/powerpc-ieee1275.mk: Likewise.
43722 * conf/sparc64-ieee1275.mk: Likewise.
43724 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
43726 Move the prototypes of grub_setjmp and grub_longjmp to
43727 cpu/setjmp.h, so that each architecture may specify different
43730 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
43731 (grub_longjmp): Likewise.
43732 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
43733 (grub_longjmp): Likewise.
43734 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
43735 (grub_longjmp): Likewise.
43737 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
43738 [!GRUB_UTIL] (grub_longjmp): Removed.
43740 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
43742 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
43743 "color!" method does not return any value.
43745 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
43747 * include/grub/bitmap.h: New file.
43749 * include/grub/i386/pc/vbeutil.h: Likewise.
43751 * video/bitmap.c: Likewise.
43753 * video/readers/tga.c: Likewise.
43755 * video/i386/pc/vbeutil.c: Likewise.
43757 * commands/videotest.c: Code cleanup and updated to reflect to new
43760 * term/gfxterm.c: Likewise.
43762 * video/video.c: Likewise.
43764 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
43765 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
43766 (bitmap_mod_SOURCES): New entry.
43767 (bitmap_mod_CFLAGS): Likewise.
43768 (bitmap_mod_LDFLAGS): Likewise.
43769 (tga_mod_SOURCES): Likewise.
43770 (tga_mod_CFLAGS): Likewise.
43771 (tga_mod_LDFLAGS): Likewise.
43773 * include/grub/video.h (grub_video_blit_operators): New enum type.
43774 (grub_video_render_target): Changed as forward declaration and moved
43775 actual definition to be video driver specific.
43776 (grub_video_adapter.blit_bitmap): Added blitting operator.
43777 (grub_video_adapter.blit_render_target): Likewise.
43778 (grub_video_blit_bitmap): Likewise.
43779 (grub_video_blit_render_target): Likewise.
43781 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
43782 driver specific render target definition.
43783 (grub_video_vbe_map_rgba): Added driver internal helper.
43784 (grub_video_vbe_unmap_color): Updated to use
43785 grub_video_i386_vbeblit_info.
43786 (grub_video_vbe_get_video_ptr): Likewise.
43788 * include/grub/i386/pc/vbeblit.h
43789 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
43790 grub_video_i386_vbeblit_info.
43791 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
43792 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
43793 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
43794 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
43795 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
43796 (grub_video_i386_vbeblit_index_index): Likewise.
43797 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
43798 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
43799 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
43800 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
43802 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
43805 * video/i386/pc/vbeblit.c: Updated to reflect changes on
43806 include/grub/i386/pc/vbeblit.h.
43808 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
43809 Updated to use grub_video_i386_vbeblit_info.
43810 (grub_video_i386_vbefill_R8G8B8): Likewise.
43811 (grub_video_i386_vbefill_index): Likewise.
43812 (grub_video_i386_vbefill): Added generic filler.
43814 * video/i386/pc/vbefill.c: Updated to reflect changes on
43815 include/grub/i386/pc/vbefill.h.
43817 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
43818 grub_video_i386_vbeblit_info.
43819 (grub_video_vbe_unmap_color): Likewise.
43820 (grub_video_vbe_blit_glyph): Likewise.
43821 (grub_video_vbe_scroll): Likewise.
43822 (grub_video_vbe_draw_pixel): Removed function.
43823 (grub_video_vbe_get_pixel): Likewise.
43824 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
43825 updated code to use it.
43826 (common_blitter): Added common blitter for render target and bitmap.
43827 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
43828 (grub_video_vbe_blit_render_target): Likewise.
43830 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
43832 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
43833 is in text mode if there is no console control protocol instance
43836 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
43838 * include/grub/video.h: Code cleanup.
43840 * include/grub/i386/pc/vbe.h: Likewise.
43842 * video/i386/pc/vbe.c: Likewise.
43844 * video/i386/pc/vbeblit.c: Likewise.
43846 * video/i386/pc/vbefill.c: Likewise.
43848 * video/video.c: Likewise. Also added more comments.
43850 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
43852 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
43853 (struct grub_biosdisk_dap): Likewise.
43855 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
43856 linkage settings for all functions.
43858 2006-07-12 Marco Gerards <marco@gnu.org>
43860 * configure.ac (--enable-mm-debug): Fix typo.
43862 * genkernsyms.sh.in: Use proper quoting for `CC'.
43864 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
43866 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
43867 (normal_mod_ASFLAGS): Remove "-m32".
43869 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
43871 * util/misc.c: Include config.h.
43872 [!HAVE_MEMALIGN]: Do not include malloc.h.
43873 (grub_memalign): Use posix_memalign, if present. Then, use
43874 memalign, if present. Otherwise, emit an error.
43876 * util/grub-emu.c: Do not include malloc.h.
43878 * include/grub/util/misc.h: Include unistd.h. This is required for
43879 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
43880 D. Eades III <hde@foobar-qux.org>.
43882 * configure.ac (AC_GNU_SOURCE): Added.
43883 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
43886 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
43888 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
43889 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
43891 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
43893 * include/grub/types.h (grub_host_addr_t): Rename to
43894 grub_target_addr_t.
43895 (grub_host_off_t): Rename to grub_target_off_t.
43896 (grub_host_size_t): Rename to grub_target_size_t.
43897 (grub_host_ssize_t): Rename to grub_target_ssize_t.
43898 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
43900 * include/grub/kernel.h (struct grub_module_header): Change type
43901 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
43902 (grub_module_info): Likewise.
43904 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
43906 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
43907 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
43908 Velazquez <jesus.velazquez@gmail.com>.
43910 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
43912 Count partitions from 1 instead of 0 in the string representation
43913 of partitions. Still use 0-based internally.
43915 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
43916 (sun_partition_map_iterate): Use grub_partition_t instead of
43917 struct grub_partition *. Cast DESC->START_CYLINDER to
43918 grub_uint64_t after converting the endian.
43919 (sun_partition_map_probe): Subtract 1 for PARTNUM.
43920 (sun_partition_map_get_name): Add 1 to P->INDEX.
43922 * partmap/pc.c (grub_partition_parse): Subtract 1 for
43924 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
43926 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
43927 zero instead of one.
43928 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
43929 (gpt_partition_map_get_name): Add 1 into P->INDEX.
43931 * partmap/apple.c (apple_partition_map_iterate): Change the type
43932 of POS to unsigned.
43933 (apple_partition_map_probe): Subtract 1 for PARTNUM.
43934 (apple_partition_map_get_name): Add 1 into P->INDEX.
43936 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
43937 of POS to unsigned.
43938 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
43939 calculate the offset of a partition.
43940 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
43941 (amiga_partition_map_get_name): Add 1 into P->INDEX.
43943 * partmap/acorn.c (acorn_partition_map_find): Change the type of
43944 SECTOR to grub_disk_addr_t.
43945 (acorn_partition_map_iterate): Likewise.
43946 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
43947 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
43949 (acorn_partition_map_get_name): Add 1 into P->INDEX.
43951 * kern/i386/pc/init.c (make_install_device): Add 1 into
43952 GRUB_INSTALL_DOS_PART.
43954 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
43957 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
43959 Clean up the code to support 64-bit addressing in disks and
43960 files. This change is not enough for filesystems yet.
43962 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
43963 type of "start" to grub_uint64_t.
43964 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
43965 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
43966 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
43969 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
43970 to grub_disk_addr_t.
43972 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
43975 * partmap/pc.c (pc_partition_map_iterate): Likewise.
43977 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
43980 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
43982 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
43984 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
43986 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
43987 to grub_off_t, to detect an error from grub_file_seek.
43988 (grub_multiboot_load_elf32): Likewise.
43990 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
43991 maximum unsigned long value when an overflow is detected.
43992 (grub_strtoull): New function.
43993 (grub_divmod64): Likewise.
43994 (grub_lltoa): use grub_divmod64.
43996 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
43998 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
43999 the pointer to next character. Use grub_strtoull instead of
44001 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
44002 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
44005 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
44006 return value is signed.
44007 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
44008 test if OFFSET is less than zero, as OFFSET is unsigned now.
44010 * kern/disk.c (struct grub_disk_cache): Change the type of
44011 "sector" to grub_disk_addr_t.
44012 (grub_disk_cache_get_index): Change the type of SECTOR to
44013 grub_disk_addr_t. Calculate the hash with SECTOR casted to
44014 unsigned after shifting.
44015 (grub_disk_cache_invalidate): Change the type of SECTOR to
44017 (grub_disk_cache_unlock): Likewise.
44018 (grub_disk_cache_store): Likewise.
44019 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
44020 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
44021 grub_disk_addr_t and grub_uint64_t, respectively.
44022 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
44023 body, as the value of OFFSET is tweaked by
44024 grub_disk_check_range. Change the types of START_SECTOR, LEN and
44025 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
44027 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
44028 body, as the value of OFFSET is tweaked by
44029 grub_disk_check_range. Change the types of LEN and N to
44032 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
44033 and "saved_offset" to grub_off_t.
44034 (test_header): Cast BUF to char *.
44035 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
44037 (grub_gzio_read): Change the types of OFFSET and SIZE to
44038 grub_off_t and grub_size_t, respectively.
44040 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
44042 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
44043 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
44044 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
44045 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
44046 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
44048 * include/grub/types.h (grub_off_t): Unconditionally set to
44050 (grub_disk_addr_t): Changed to grub_uint64_t.
44052 * include/grub/partition.h (struct grub_partition): Change the
44053 types of "start", "len" and "offset" to grub_disk_addr_t,
44054 grub_uint64_t and grub_disk_addr_t, respectively.
44055 (grub_partition_get_start): Return grub_disk_addr_t.
44056 (grub_partition_get_len): Return grub_uint64_t.
44058 * include/grub/misc.h (grub_strtoull): New prototype.
44059 (grub_divmod64): Likewise.
44061 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
44062 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
44063 grub_off_t, respectively.
44064 All callers and references changed.
44066 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
44067 grub_size_t in "read".
44068 All callers and references changed.
44070 * include/grub/file.h (struct grub_file): Change the types of
44071 "offset" and "size" to grub_off_t and grub_off_t,
44072 respectively. Change the type of SECTOR to grub_disk_addr_t in
44074 (grub_file_read): Change the type of LEN to grub_size_t.
44075 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
44077 (grub_file_size): Return grub_off_t.
44078 (grub_file_tell): Likewise.
44079 All callers and references changed.
44081 * include/grub/disk.h (struct grub_disk_dev): Change the types of
44082 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
44084 (struct grub_disk): Change the type of "total_sectors" to
44085 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
44087 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
44088 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
44089 (grub_disk_write): Likewise.
44090 All callers and references changed.
44092 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
44093 char * for grub_strncmp to silence gcc.
44094 (grub_iso9660_mount): Likewise.
44095 (grub_iso9660_mount): Likewise.
44096 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
44098 (grub_iso9660_iterate_dir): Likewise.
44099 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
44101 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
44102 LEN to grub_disk_addr_t and grub_size_t, respectively.
44104 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
44106 * fs/jfs.c (grub_jfs_read_file): Likewise.
44108 * fs/minix.c (grub_jfs_read_file): Likewise.
44110 * fs/sfs.c (grub_jfs_read_file): Likewise.
44112 * fs/ufs.c (grub_jfs_read_file): Likewise.
44114 * fs/xfs.c (grub_jfs_read_file): Likewise.
44116 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
44117 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
44120 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
44121 BLKNR to -1 instead of returning GRUB_ERRNO.
44122 (grub_ext2_read_file): Change the types of SECTOR and
44123 LEN to grub_disk_addr_t and grub_size_t, respectively.
44125 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
44126 LEN to grub_disk_addr_t and grub_size_t, respectively.
44128 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
44131 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
44132 string. Do not cast SECTOR explicitly.
44134 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
44135 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
44136 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
44137 grub_disk_addr_t and grub_size_t, respectively. If the sector is
44138 over 2TB and LBA mode is not supported, raise an error.
44139 (get_safe_sectors): New function.
44140 (grub_biosdisk_read): Use get_safe_sectors.
44141 (grub_biosdisk_write): Likewise.
44143 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
44144 (grub_efidisk_write): Likewise.
44146 * disk/loopback.c (delete_loopback): Cosmetic changes.
44147 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
44149 (grub_loopback_open): Likewise.
44150 (grub_loopback_read): Likewise. Also, change the type of POS to
44151 grub_off_t, and fix the usage of grub_memset.
44153 * commands/i386/pc/play.c: Include grub/machine/time.h.
44155 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
44158 * commands/configfile.c: Include grub/env.h.
44160 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
44161 GRUB_ERRNO directly instead. Change the type of POS to
44162 grub_off_t. Follow the coding standard.
44164 * commands/blocklist.c: Include grub/partition.h.
44165 (grub_cmd_blocklist): Return an error if the underlying device is
44166 not a disk. Take the starting sector of a partition into account,
44167 if a partition is used.
44169 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
44171 (lba_mode): Support 64-bit addresses.
44172 (chs_mode): Likewise.
44173 (copy_buffer): Adapted to the new offsets of a length field and a
44175 (blocklist_default_start): Allocate 64-bit space.
44177 * boot/i386/pc/boot.S (force_lba): Removed.
44178 (boot_drive): Moved to under KERNEL_SECTOR.
44179 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
44181 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
44183 (lba_mode): Refactored to support a 64-bit address. More size
44185 (setup_sectors): Likewise.
44187 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
44189 * DISTLIST: Added include/grub/i386/linux.h. Removed
44190 include/grub/i386/pc/linux.h
44192 * configure.ac (AC_INIT): Bumped to 1.94.
44194 * config.guess: Updated from gnulib.
44195 * config.sub: Likewise.
44196 * install-sh: Likewise.
44197 * mkinstalldirs: Likewise.
44199 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
44201 * conf/common.rmk (grub_modules_init.lst): Depended on
44202 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
44205 * genmk.rb (PModule::rule): Reverted the previous change.
44207 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
44209 * conf/common.rmk (grub_modules_init.lst): Depends on
44210 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
44211 that the target does not exist before producing.
44212 (grub_modules_init.h): Remove the target before generating.
44213 (grub_emu_init.c): Likewise.
44215 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
44217 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
44219 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
44220 for the target-specific tests. Make sure that we also have the
44221 up-to-date target variables for those tests.
44223 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
44225 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
44226 (PModule::rule): Likewise.
44228 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
44230 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
44231 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
44232 target-specific flags should be prefixed.
44233 (PModule::rule): Likewise.
44235 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
44237 * configure.ac (CMP): Check if cmp is available explicitly.
44239 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
44241 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
44242 (target_cpu): New variable.
44243 (pkglibdir): Use target_cpu instead of host_cpu.
44245 * util/i386/pc/grub-install.in (host_cpu): Removed.
44246 (target_cpu): New variable.
44247 (pkglibdir): Use target_cpu instead of host_cpu.
44249 * util/genmoddep.c: Removed.
44251 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
44252 instead of GRUB_HOST_SIZEOF_VOID_P.
44253 * kern/dl.c: Likewise.
44255 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
44257 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
44258 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
44259 (GRUB_TARGET_SIZEOF_LONG): ... this.
44260 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
44261 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
44262 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
44264 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
44265 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
44266 (GRUB_TARGET_SIZEOF_LONG): ... this.
44267 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
44268 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
44269 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
44271 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
44272 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
44273 (GRUB_TARGET_SIZEOF_LONG): ... this.
44274 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
44275 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
44277 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
44278 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
44279 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
44280 instead of GRUB_HOST_SIZEOF_LONG.
44281 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
44282 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
44283 GRUB_CPU_WORDS_BIGENDIAN.
44284 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
44285 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
44288 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
44289 (genmoddep_SOURCES): Likewise.
44290 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
44291 (genmoddep_SOURCES): Likewise.
44292 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
44293 (genmoddep_SOURCES): Likewise.
44294 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
44296 (genmoddep_SOURCES): Likewise.
44298 * genmoddep.awk: New file.
44300 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
44301 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
44302 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
44303 (PModule::rule): Likewise.
44304 (Program::rule): Likewise.
44305 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
44306 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
44309 * configure.ac: Rewritten intensively to use host and target
44310 instead of build and host, respectively.
44312 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
44313 (host_cpu): Removed.
44314 (target_cpu): New variable.
44315 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
44316 (BUILD_CC): Removed.
44317 (BUILD_CFLAGS): Likewise.
44318 (BUILD_CPPFLAGS): Likewise.
44319 (TARGET_CC): New variable.
44320 (TARGET_CFLAGS): Likewise.
44321 (TARGET_CPPFLAGS): Likewise.
44322 (TARGET_LDFLAGS): Likewise.
44324 (include): Use target_cpu instead of host_cpu.
44325 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
44327 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
44329 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
44331 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
44332 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
44333 field 'false' to 'exec_on_false'.
44334 (grub_script_create_cmdif): Renamed argument names to reflect above
44337 * normal/execute.c (grub_script_execute_cmdif): Likewise.
44339 * normal/script.c (grub_script_create_cmdif): Likewise.
44341 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
44343 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
44345 (grub_hfsplus_btree_recptr): Likewise.
44346 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
44347 FILEBLOCK both to pass a block number and store next block
44349 (grub_hfsplus_read_block): Rewritten heavily to support an extent
44350 overflow file correctly. Specify errors appropriately, because
44351 fshelp expects that GRUB_ERRNO is set when fails. Reuse
44352 grub_hfsplus_btree_recptr to get the pointer to a found key.
44353 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
44356 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
44358 (_linux_mod_SOURCES): New variable.
44359 (_linux_mod_CFLAGS): Likewise.
44360 (_linux_mod_LDFLAGS): Likewise.
44361 (linux_mod_SOURCES): Likewise.
44362 (linux_mod_CFLAGS): Likewise.
44363 (linux_mod_LDFLAGS): Likewise.
44365 * DISTLIST: Added loader/i386/efi/linux.c,
44366 loader/i386/efi/linux_normal.c and
44367 include/grub/i386/efi/loader.h.
44369 * loader/i386/efi/linux.c: New file.
44370 * loader/i386/efi/linux_normal.c: Likewise.
44371 * include/grub/i386/efi/loader.h: Likewise.
44373 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
44375 * commands/blocklist.c: New file.
44377 * DISTLIST: Added commands/blocklist.c.
44379 * term/efi/console.c (grub_console_highlight_color): Use a lighter
44380 color for the background, and a darker color for the foreground.
44381 (grub_console_checkkey): Return READ_KEY.
44382 (grub_console_cls): Set the background to
44383 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
44385 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
44387 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
44388 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
44390 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
44393 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
44394 BG. The spec is wrong again.
44396 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
44398 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
44400 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
44401 commands/blocklist.c.
44402 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44404 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
44405 (blocklist_mod_SOURCES): New variable.
44406 (blocklist_mod_CFLAGS): Likewise.
44407 (blocklist_mod_LDFLAGS): Likewise.
44409 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
44411 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
44413 (lba_mode): Use %eax more intensively to reduce the code size.
44415 2006-05-20 Marco Gerards <marco@gnu.org>
44417 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
44419 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
44421 (script): Accept leading newlines.
44422 (newlines): New rule to describe 0 or more newlines.
44423 (commands): Accept `command' with trailing newline. Fixed the
44424 order in which arguments were passed to `grub_script_add_cmd'.
44425 Accept commands separated by newlines.
44426 (function): Changed to accept newlines.
44427 (menuentry) Rewritten.
44429 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
44430 front of the list, instead of to the end.
44432 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
44434 * util/i386/pc/grub-install.in (bindir): New variable.
44435 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
44436 Shaver <lbgwjl@gmail.com>.
44438 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
44440 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
44441 grub/machine/linux.h
44442 * loader/i386/pc/linux.c: Likewise.
44444 * include/grub/i386/pc/linux.h: Moved to ...
44445 * include/grub/i386/linux.h: ... here.
44447 * include/grub/i386/linux.h (struct linux_kernel_params): New
44450 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
44452 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
44454 (grub_video_vbe_blit_glyph): Likewise.
44455 (grub_video_vbe_blit_bitmap): Likewise.
44456 (grub_video_vbe_blit_render_target): Likewise.
44458 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
44460 * configure.ac (--with-platform): Properly quote the square
44463 2006-05-08 Marco Gerards <marco@gnu.org>
44465 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
44467 (kernel_elf_HEADERS): ...to this. Updated all users.
44468 (grubof_symlist.c): Renamed from this...
44469 (kernel_elf_symlist.c): ...to this. Updated all users.
44470 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
44471 (grubof_SOURCES): Renamed from this...
44472 (kernel_elf_SOURCES): ...to this.
44473 (grubof_HEADERS): Renamed from this...
44474 (kernel_elf_HEADERS): ...to this.
44475 (grubof_CFLAGS): Renamed from this...
44476 (kernel_elf_CFLAGS): ...to this.
44477 (grubof_ASFLAGS): Renamed from this...
44478 (kernel_elf_ASFLAGS): ...to this.
44479 (grubof_LDFLAGS): Renamed from this...
44480 (kernel_elf_LDFLAGS): ...to this.
44482 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
44484 (kernel_elf_HEADERS): ...to this. Updated all users.
44485 (grubof_symlist.c): Renamed from this...
44486 (kernel_elf_symlist.c): ...to this. Updated all users.
44487 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
44488 (grubof_SOURCES): Renamed from this...
44489 (kernel_elf_SOURCES): ...to this.
44490 (grubof_HEADERS): Renamed from this...
44491 (kernel_elf_HEADERS): ...to this.
44492 (grubof_CFLAGS): Renamed from this...
44493 (kernel_elf_CFLAGS): ...to this.
44494 (grubof_ASFLAGS): Renamed from this...
44495 (kernel_elf_ASFLAGS): ...to this.
44496 (grubof_LDFLAGS): Renamed from this...
44497 (kernel_elf_LDFLAGS): ...to this.
44499 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
44500 `kernel.elf' instead of `grubof'.
44502 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
44504 Add --with-platform to configure. Use pkglibdir instead of
44505 pkgdatadir. This is reported by Roger Leigh.
44507 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
44508 (host_vendor): Likewise.
44509 (host_os): Likewise.
44510 (pkgdatadir): Likewise.
44511 (platform): New variable.
44512 (pkglibdir): Likewise.
44513 Use PKGLIBDIR instead of PKGDATADIR.
44515 * util/i386/pc/grub-install.in (datadir): Removed.
44516 (host_vendor): Likewise.
44517 (host_os): Likewise.
44518 (pkgdatadir): Likewise.
44519 (platform): New variable.
44520 (pkglibdir): Likewise.
44521 Use PKGLIBDIR instead of PKGDATADIR.
44523 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
44524 instead of GRUB_DATADIR.
44526 * util/i386/pc/grub-mkimage.c (usage): Likewise.
44528 * util/i386/efi/grub-mkimage.c (usage): Likewise.
44531 * configure.ac (--with-platform): New option.
44532 Use PLATFORM instead of HOST_VENDOR to specify a platform.
44534 * Makefile.in: Include a makefile based on PLATFORM instead of
44536 (pkgdatadir): Not appended by the machine type.
44537 (pkglibdir): Appended by the machine type.
44538 (host_vendor): Removed.
44539 (platform): New variable.
44540 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
44541 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
44542 (uninstall): Likewise.
44544 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
44546 Use the environment context in the menu. Remove the commands
44547 "default" and "timeout", and use variables instead.
44549 * normal/menu.c: Include grub/env.h.
44550 (print_entry): Cast TITLE to silence gcc.
44551 (get_timeout): New function.
44552 (set_timeout): Likewise.
44553 (get_entry_number): Likewise.
44554 (run_menu): Use a default entry, a fallback entry and a timeout
44555 in the environment variables "default", "fallback" and
44556 "timeout". Also, tweak the default entry if it is not within the
44557 current menu entries.
44558 (grub_menu_run): Use a fallback entry in the environment variable
44561 * normal/main.c (read_config_file): Do not initialize
44562 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
44564 (grub_normal_execute): Use a data slot to store the menu.
44566 * include/grub/normal.h (struct grub_menu): Removed default_entry,
44567 fallback_entry and timeout.
44568 (struct grub_menu_list): Removed.
44569 (grub_menu_list_t): Likewise.
44570 (struct grub_context): Likewise.
44571 (grub_context_t): Likewise.
44572 (grub_context_get): Likewise.
44573 (grub_context_get_current_menu): Likewise.
44574 (grub_context_push_menu): Likewise.
44575 (grub_context_pop_menu): Likewise.
44576 (grub_default_init): Likewise.
44577 (grub_default_fini): Likewise.
44578 (grub_timeout_init): Likewise.
44579 (grub_timeout_fini): Likewise.
44581 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
44583 (normal_mod_SOURCES): Removed normal/context.c.
44585 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
44586 commands/default.c, commands/timeout.c and normal/context.c.
44587 (normal_mod_SOURCES): Removed normal/context.c.
44589 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
44590 commands/timeout.c and normal/context.c.
44591 (normal_mod_SOURCES): Removed normal/context.c.
44593 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
44594 commands/default.c, commands/timeout.c and normal/context.c.
44595 (normal_mod_SOURCES): Removed normal/context.c.
44597 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
44599 (default_mod_SOURCES): Removed.
44600 (default_mod_CFLAGS): Likewise.
44601 (default_mod_LDFLAGS): Likewise.
44602 (timeout_mod_SOURCES): Removed.
44603 (timeout_mod_CFLAGS): Likewise.
44604 (timeout_mod_LDFLAGS): Likewise.
44606 * DISTLIST: Removed commands/default.c, commands/timeout.c and
44609 * commands/default.c: Removed.
44610 * commands/timeout.c: Likewise.
44611 * normal/context.c: Likewise.
44613 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
44615 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
44617 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
44619 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
44620 "next" to "prev" for readability.
44621 (struct grub_env_sorted_var): New struct.
44622 (grub_env_context): Renamed to ...
44623 (initial_context): ... this.
44624 (grub_env_var_context): Renamed to ...
44625 (current_context): ... this.
44626 (grub_env_find): Look only at CURRENT_CONTEXT.
44627 (grub_env_context_open): Rewritten to copy exported variables from
44629 (grub_env_context_close): Rewritten according to the new
44630 scheme. Also, add an assertion to prevent the initial context from
44632 (grub_env_insert): Removed the code for the sorted list.
44633 (grub_env_remove): Likewise.
44634 (grub_env_export): Simply mark the variable with
44635 GRUB_ENV_VAR_GLOBAL.
44636 (grub_env_set): A cosmetic change for naming consistency.
44637 (grub_env_get): Likewise.
44638 (grub_env_unset): Likewise.
44639 (grub_env_iterate): Rewritten to sort variables within this
44641 (grub_register_variable_hook): Fixed for naming consistency. Call
44642 grub_env_find again, only if NAME is not found at the first time.
44643 (mangle_data_slot_name): New function.
44644 (grub_env_set_data_slot): Likewise.
44645 (grub_env_get_data_slot): Likewise.
44646 (grub_env_unset_data_slot): Likewise.
44648 * include/grub/env.h (grub_env_var_type): New enum.
44649 (GRUB_ENV_VAR_LOCAL): New constant.
44650 (GRUB_ENV_VAR_GLOBAL): Likewise.
44651 (GRUB_ENV_VAR_DATA): Likewise.
44652 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
44654 (grub_env_set): Replace VAR with NAME for consistency.
44655 (grub_register_variable_hook): Likewise.
44656 (grub_env_export): Specify the name of the argument.
44657 (grub_env_set_data_slot): New prototype.
44658 (grub_env_get_data_slot): Likewise.
44659 (grub_env_unset_data_slot): Likewise.
44661 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
44663 Extend the loader so that GRUB can accept a loader which comes
44664 back to GRUB when a loaded image exits. Also, this change adds
44665 support for a chainloader on EFI.
44667 * term/efi/console.c: Include grub/misc.h.
44668 (grub_console_checkkey): Display a scan code on the top for
44669 debugging. This will be removed once the EFI port gets stable.
44670 Correct the scan code mapping.
44672 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
44673 allocate memory from larger regions, in order to reduce the number
44674 of allocated regions. Otherwise, the MacOSX loader panics.
44675 (filter_memory_map): Avoid less than 1MB for compatibility with
44677 (add_memory_regions): Allocate from the tail of a region, if
44678 possible, to avoid allocating a region near to 1MB, for the MacOSX
44681 * kern/efi/init.c (grub_efi_set_prefix): Specify
44682 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
44684 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
44685 argument IMAGE_HANDLE and specify it to get a loaded image.
44686 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
44687 grub_efi_get_loaded_image.
44688 (grub_efi_get_filename): Divide the length by the size of
44690 (grub_efi_get_device_path): New function.
44691 (grub_efi_print_device_path): Print End Device Path nodes. Divide
44692 the length by the size of grub_efi_char16_t for a file path device
44695 * kern/loader.c (grub_loader_noreturn): New variable.
44696 (grub_loader_set): Accept a new argument NORETURN. Set
44697 GRUB_LOADER_NORETURN to NORETURN.
44698 All callers changed.
44699 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
44702 * include/grub/efi/efi.h (grub_efi_get_device_path): New
44704 (grub_efi_get_loaded_image): Take an argument to specify an image
44707 * include/grub/loader.h (grub_loader_set): Added one more argument
44710 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
44711 instead of grub_efi_open_protocol.
44712 (grub_efidisk_get_device_name): Likewise.
44713 (grub_efidisk_close): Print a newline.
44714 (grub_efidisk_get_device_handle): Fixed to use
44715 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
44716 GRUB_EFI_DEVICE_PATH_TYPE.
44718 * disk/efi/efidisk.c (device_path_guid): Moved to ...
44719 * kern/efi/efi.c (device_path_guid): ... here.
44721 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
44723 (kernel_mod_HEADERS): Added efi/disk.h.
44724 (_chain_mod_SOURCES): New variable.
44725 (_chain_mod_CFLAGS): Likewise.
44726 (_chain_mod_LDFLAGS): Likewise.
44727 (chain_mod_SOURCES): Likewise.
44728 (chain_mod_CFLAGS): Likewise.
44729 (chain_mod_LDFLAGS): Likewise.
44731 * DISTLIST: Added include/grub/efi/chainloader.h,
44732 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
44734 * include/grub/efi/chainloader.h: New file.
44735 * loader/efi/chainloader.c: Likewise.
44736 * loader/efi/chainloader_normal.c: Likewise.
44738 2006-04-30 Marco Gerards <marco@gnu.org>
44740 * commands/configfile.c (grub_cmd_source): New function.
44741 (GRUB_MOD_INIT): Register the commands `source' and `.'.
44742 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
44744 2006-04-30 Marco Gerards <marco@gnu.org>
44746 * normal/execute.c (grub_script_execute_cmd): Change the return
44747 type to `grub_err_t'. Correctly return the error.
44748 (grub_script_execute_cmdline): In case a command line is not a
44749 command or a function, try to interpret it as an assignment.
44751 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
44753 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
44754 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
44755 skip a node whose name is obviously invalid as UTF-16,
44756 i.e. contains a NUL character. Stop the iteration when the last
44757 directory entry is found. Instead of using the return value of
44758 grub_hfsplus_btree_iterate_node, store the value in RET and use
44759 it, because the iterator can be stopped by the last directory
44762 2006-04-30 Marco Gerards <marco@gnu.org>
44764 * include/grub/env.h (grub_env_export): New prototype. Reported
44765 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
44767 2006-04-30 Marco Gerards <marco@gnu.org>
44769 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
44770 size of the extents in a catalog file record.
44772 2006-04-29 Marco Gerards <marco@gnu.org>
44774 * commands/configfile.c (grub_cmd_configfile): Execute the
44775 configfile within its own context.
44777 * include/grub/env.h (grub_env_context_open): New prototype.
44778 (grub_env_context_close): Likewise.
44780 * kern/env.c (grub_env): Removed.
44781 (grub_env_sorted): Likewise.
44782 (grub_env_context): New variable.
44783 (grub_env_var_context): Likewise.
44784 (grub_env_find): Search both the active context and the global
44786 (grub_env_context_open): New function.
44787 (grub_env_context_close): Likewise.
44788 (grub_env_insert): Likewise.
44789 (grub_env_remove): Likewise.
44790 (grub_env_export): Likewise.
44791 (grub_env_set): Changed to use helper functions to avoid code
44793 (grub_env_iterate): Rewritten so both the current context and the
44794 global context are being used.
44796 * normal/command.c (export_command): New function.
44797 (grub_command_init): Register the `export' function.
44799 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
44801 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
44802 explicitly to suppress gcc's warnings.
44803 * fs/fat.c (grub_fat_find_dir): Likewise.
44804 (grub_fat_label): Likewise.
44805 * fs/xfs.c (grub_xfs_read_inode): Likewise.
44806 (grub_xfs_mount): Likewise.
44807 (grub_xfs_label): Likewise.
44808 * fs/affs.c (grub_affs_mount): Likewise.
44809 (grub_affs_label): Likewise.
44810 (grub_affs_iterate_dir): Likewise.
44811 * fs/sfs.c (grub_sfs_mount): Likewise.
44812 (grub_sfs_iterate_dir): Likewise.
44813 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
44814 * fs/hfs.c (grub_hfs_mount): Likewise.
44815 (grub_hfs_cmp_catkeys): Likewise.
44816 (grub_hfs_find_dir): Likewise.
44817 (grub_hfs_dir): Likewise.
44818 (grub_hfs_label): Likewise.
44819 * fs/jfs.c (grub_jfs_mount): Likewise.
44820 (grub_jfs_opendir): Likewise.
44821 (grub_jfs_getent): Likewise.
44822 (grub_jfs_lookup_symlink): Likewise.
44823 (grub_jfs_label): Likewise.
44824 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
44825 (grub_hfsplus_iterate_dir): Likewise.
44826 (grub_hfsplus_btree_iterate_node): Made static.
44828 * util/grub-emu.c (prefix): New variable.
44829 (grub_machine_set_prefix): New function.
44830 (main): Do not set the environment variable "prefix" here. Only
44831 set PREFIX, which is used later by grub_machine_set_prefix.
44833 * include/grub/video.h: Do not include grub/symbol.h.
44834 (grub_video_register): Not exported. This symbol is not defined in
44836 (grub_video_unregister): Likewise.
44837 (grub_video_iterate): Likewise.
44838 (grub_video_setup): Likewise.
44839 (grub_video_restore): Likewise.
44840 (grub_video_get_info): Likewise.
44841 (grub_video_get_blit_format): Likewise.
44842 (grub_video_set_palette): Likewise.
44843 (grub_video_get_palette): Likewise.
44844 (grub_video_set_viewport): Likewise.
44845 (grub_video_get_viewport): Likewise.
44846 (grub_video_map_color): Likewise.
44847 (grub_video_map_rgb): Likewise.
44848 (grub_video_map_rgba): Likewise.
44849 (grub_video_fill_rect): Likewise.
44850 (grub_video_blit_glyph): Likewise.
44851 (grub_video_blit_bitmap): Likewise.
44852 (grub_video_blit_render_target): Likewise.
44853 (grub_video_scroll): Likewise.
44854 (grub_video_swap_buffers): Likewise.
44855 (grub_video_create_render_target): Likewise.
44856 (grub_video_delete_render_target): Likewise.
44857 (grub_video_set_active_render_target): Likewise.
44859 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
44861 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
44863 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
44864 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44865 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44866 instead of $(srcdir)/genkernsyms.sh.
44868 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
44869 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44870 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44871 instead of $(srcdir)/genkernsyms.sh.
44873 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
44874 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44875 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44876 instead of $(srcdir)/genkernsyms.sh.
44878 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
44879 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44880 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44881 instead of $(srcdir)/genkernsyms.sh.
44883 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
44886 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
44888 (gensymlist.sh): New target.
44889 (genkernsyms.sh): Likewise.
44891 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
44892 genkernsyms.sh.in and gensymlist.sh.in.
44894 * genkernsyms.sh: Removed.
44895 * gensymlist.sh: Likewise.
44897 * genkernsyms.sh.in: New file.
44898 * gensymlist.sh.in: Likewise.
44900 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
44902 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
44903 clobber "prefix", since we may have already set it manually.
44905 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
44907 * kern/misc.c (abort): New alias for grub_abort.
44909 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
44911 A new machine-specific function "grub_machine_set_prefix" is
44912 defined. This is called after loading modules, so that a prefix
44913 initialization can use modules. Also, this change adds an
44914 intensive debugging feature for the memory manager via the
44915 configure option "--enable-mm-debug".
44917 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
44920 * kern/sparc64/ieee1275/init.c (abort): Removed.
44921 (grub_stop): Likewise.
44922 (grub_exit): New function.
44923 (grub_set_prefix): Renamed to ...
44924 (grub_machine_set_prefix): ... this.
44925 (grub_machine_init): Do not call grub_set_prefix.
44927 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
44928 (grub_machine_set_prefix): ... this.
44929 (grub_machine_init): Do not call grub_set_prefix.
44931 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
44932 (grub_machine_init): Do not set the prefix here.
44934 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
44936 * kern/efi/init.c: Include grub/mm.h.
44937 (grub_efi_set_prefix): New function.
44939 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
44940 (grub_efi_get_filename): New function.
44941 (grub_print_device_path): Renamed to ...
44942 (grub_efi_print_device_path): ... this.
44944 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
44945 [MM_DEBUG] (grub_realloc): Likewise.
44946 [MM_DEBUG] (grub_free): Likewise.
44947 [MM_DEBUG] (grub_memalign): Likewise.
44948 [MM_DEBUG] (grub_mm_debug): New variable.
44949 [MM_DEBUG] (grub_debug_malloc): New function.
44950 [MM_DEBUG] (grub_debug_free): New function.
44951 [MM_DEBUG] (grub_debug_realloc): New function.
44952 [MM_DEBUG] (grub_debug_memalign): New function.
44954 * kern/misc.c (grub_abort): Print a newline to distinguish
44957 * kern/main.c (grub_main): Call grub_machine_set_prefix and
44958 grub_set_root_dev after loading modules. This is necessary when
44959 setting a prefix depends on modules.
44961 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
44962 (grub_efi_print_device_path): ... this.
44963 (grub_efi_get_filename): New prototype.
44964 (grub_efi_set_prefix): Likewise.
44966 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
44968 (grub_efidisk_get_device_handle): New prototype.
44969 (grub_efidisk_get_device_name): Likewise.
44971 * include/grub/mm.h: Include config.h.
44972 (MM_DEBUG): Removed.
44973 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
44974 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
44975 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
44976 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
44977 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
44978 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
44979 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
44980 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
44981 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
44983 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
44985 * disk/efi/efidisk.c: Include grub/partition.h.
44986 (iterate_child_devices): New function.
44987 (add_device): First, compare only last device path nodes, so that
44988 devices are sorted by the types.
44989 (grub_efidisk_get_device_handle): New function.
44990 (grub_efidisk_get_device_name): Likewise.
44992 * configure.ac (--enable-mm-debug): New option to enable the
44993 memory manager debugging feature. This makes the binary much
44994 bigger, so is disabled by default.
44996 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
44998 Use grub_abort instead of grub_stop, and grub_exit must be
44999 define in each architecture now. Also, this change adds support
45002 * util/i386/pc/grub-probefs.c: Include grub/term.h.
45003 (grub_getkey): New function.
45004 (grub_term_get_current): Likewise.
45006 * util/i386/pc/grub-setup.c: Include grub/term.h.
45007 (grub_getkey): New function.
45008 (grub_term_get_current): Likewise.
45010 * util/misc.c (grub_stop): Renamed to ...
45011 (grub_exit): ... this.
45013 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
45014 (grub_exit): ... this.
45015 (grub_machine_init): Use grub_abort instead of abort.
45016 (grub_stop): Removed.
45018 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
45021 * kern/i386/pc/startup.S (grub_exit): New function.
45022 (cold_reboot): New label.
45024 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
45025 (grub_efi_init): Call grub_efidisk_init.
45026 (grub_efi_fini): Call grub_efidisk_fini.
45028 * kern/efi/efi.c: Include grub/mm.h.
45029 (grub_efi_console_control_guid): Renamed to ...
45030 (console_control_guid): ... this.
45031 (grub_efi_loaded_image_guid): Renamed to ...
45032 (loaded_image_guid): ... this.
45033 (grub_efi_locate_handle): New function.
45034 (grub_efi_open_protocol): Likewise.
45035 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
45036 GRUB_EFI_CONSOLE_CONTROL_GUID.
45037 (grub_efi_exit): Removed.
45038 (grub_stop): Likewise.
45039 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
45040 (grub_exit): New function.
45041 (grub_print_device_path): Likewise.
45043 * kern/rescue.c (grub_rescue_cmd_exit): New function.
45044 (grub_enter_rescue_mode): Register "exit".
45046 * kern/misc.c (grub_real_dprintf): A cosmetic change.
45047 (grub_abort): New function.
45049 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
45051 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
45053 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
45055 * include/grub/efi/efi.h (grub_efi_exit): Removed.
45056 (grub_print_device_path): New prototype.
45057 (grub_efi_locate_handle): Likewise.
45058 (grub_efi_open_protocol): Likewise.
45060 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
45061 * disk/efi/efidisk.c: Likewise.
45063 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
45065 * include/grub/efi/console_control.h
45066 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
45068 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
45069 last 8 bytes as an array.
45070 (GRUB_EFI_DISK_IO_GUID): New macro.
45071 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
45072 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
45073 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
45075 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
45076 (struct grub_efi_device_path): Rename the member "sub_type" to
45078 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
45079 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
45080 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
45081 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
45082 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
45083 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
45084 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
45085 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
45086 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
45087 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
45088 (struct grub_efi_pci_device_path): New structure.
45089 (grub_efi_pci_device_path_t): New type.
45090 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
45091 (struct grub_efi_pccard_device_path): New structure.
45092 (grub_efi_pccard_device_path_t): New type.
45093 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
45094 (struct grub_efi_memory_mapped_device_path): New structure.
45095 (grub_efi_memory_mapped_device_path_t): New type.
45096 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
45097 (struct grub_efi_vendor_device_path): New structure.
45098 (grub_efi_vendor_device_path_t): New type.
45099 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
45100 (struct grub_efi_controller_device_path): New structure.
45101 (grub_efi_controller_device_path_t): New type.
45102 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
45103 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
45104 (struct grub_efi_acpi_device_path): New structure.
45105 (grub_efi_acpi_device_path_t): New type.
45106 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
45107 (struct grub_efi_expanded_acpi_device_path): New structure.
45108 (grub_efi_expanded_acpi_device_path_t): New type.
45109 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
45110 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
45111 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
45112 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
45113 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
45114 (struct grub_efi_atapi_device_path): New structure.
45115 (grub_efi_atapi_device_path_t): New type.
45116 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
45117 (struct grub_efi_fibre_channel_device_path): New structure.
45118 (grub_efi_fibre_channel_device_path_t): New type.
45119 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
45120 (struct grub_efi_1394_device_path): New structure.
45121 (grub_efi_1394_device_path_t): New type.
45122 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
45123 (struct grub_efi_usb_device_path): New structure.
45124 (grub_efi_usb_device_path_t): New type.
45125 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
45126 (struct grub_efi_usb_class_device_path): New structure.
45127 (grub_efi_usb_class_device_path_t): New type.
45128 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
45129 (struct grub_efi_i2o_device_path): New structure.
45130 (grub_efi_i2o_device_path_t): New type.
45131 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
45132 (struct grub_efi_mac_address_device_path): New structure.
45133 (grub_efi_mac_address_device_path_t): New type.
45134 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
45135 (struct grub_efi_ipv4_device_path): New structure.
45136 (grub_efi_ipv4_device_path_t): New type.
45137 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
45138 (struct grub_efi_ipv6_device_path): New structure.
45139 (grub_efi_ipv6_device_path_t): New type.
45140 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
45141 (struct grub_efi_infiniband_device_path): New structure.
45142 (grub_efi_infiniband_device_path_t): New type.
45143 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
45144 (struct grub_efi_uart_device_path): New structure.
45145 (grub_efi_uart_device_path_t): New type.
45146 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
45147 (struct grub_efi_vendor_messaging_device_path): New structure.
45148 (grub_efi_vendor_messaging_device_path_t): New type.
45149 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
45150 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
45151 (struct grub_efi_hard_drive_device_path): New structure.
45152 (grub_efi_hard_drive_device_path_t): New type.
45153 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
45154 (struct grub_efi_cdrom_device_path): New structure.
45155 (grub_efi_cdrom_device_path_t): New type.
45156 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
45157 (struct grub_efi_vendor_media_device_path): New structure.
45158 (grub_efi_vendor_media_device_path_t): New type.
45159 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
45160 (struct grub_efi_file_path_device_path): New structure.
45161 (grub_efi_file_path_device_path_t): New type.
45162 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
45163 (struct grub_efi_protocol_device_path): New structure.
45164 (grub_efi_protocol_device_path_t): New type.
45165 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
45166 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
45167 (struct grub_efi_bios_device_path): New structure.
45168 (grub_efi_bios_device_path_t): New type.
45169 (struct grub_efi_disk_io): New structure.
45170 (grub_efi_disk_io_t): New type.
45171 (struct grub_efi_block_io_media): New structure.
45172 (grub_efi_block_io_media_t): New type.
45173 (struct grub_efi_block_io): New structure.
45174 (grub_efi_block_io_t): New type.
45176 * include/grub/misc.h (grub_stop): Removed.
45177 (grub_exit): New prototype.
45178 (grub_abort): Likewise.
45180 * include/grub/disk.h (enum grub_disk_dev_id): Added
45181 GRUB_DISK_DEVICE_EFIDISK_ID.
45183 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
45184 disk/efi/efidisk.c.
45185 (kernel_syms.lst): Remove the target if an error occurs.
45187 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
45189 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
45190 as it was simply too buggy.
45192 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
45194 * kern/misc.c (grub_lltoa): New function.
45195 (grub_vsprintf): Added support for the long long suffix,
45198 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
45200 * Makefile.in (LDFLAGS): Add variable.
45201 (LD): Remove variable.
45202 * configure.ac: Add -m32 to LDFLAGS.
45203 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
45204 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
45205 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
45206 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
45207 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
45209 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
45210 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
45211 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
45213 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
45215 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
45216 length for unknown glyph.
45218 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
45220 Add support for pre-loaded modules into the EFI port.
45222 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
45223 completely. Accept one more argument DIR. The caller has changed.
45225 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
45227 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
45228 (grub_efi_loaded_image_guid): New variable.
45229 (grub_efi_get_loaded_image): New function.
45230 (grub_arch_modules_addr): Likewise.
45232 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
45235 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
45236 (struct grub_efi_loaded_image): New structure.
45237 (grub_efi_loaded_image_t): New type.
45239 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
45241 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
45242 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
45243 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
45245 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
45247 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
45249 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
45251 * DISTLIST: Added include/grub/efi/console.h,
45252 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
45253 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
45255 * include/grub/efi/console.h: New file.
45256 * include/grub/efi/time.h: Likewise.
45257 * include/grub/i386/efi/kernel.h: Likewise.
45258 * kern/efi/init.c: Likewise.
45259 * kern/efi/mm.c: Likewise.
45260 * term/efi/console.c: Likewise.
45262 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
45263 (grub_stop): Removed.
45264 (grub_get_rtc): Likewise.
45265 (grub_machine_init): Simply call grub_efi_init.
45266 (grub_machine_fini): Call grub_efi_fini.
45268 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
45269 (grub_efi_output_string): Removed.
45270 (grub_efi_stall): New function.
45271 (grub_stop): Likewise.
45272 (grub_get_rtc): Likewise.
45274 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
45275 (grub_efi_stall): New prototype.
45276 (grub_efi_allocate_pages): Likewise.
45277 (grub_efi_free_pages): Likewise.
45278 (grub_efi_get_memory_map): Likewise.
45279 (grub_efi_mm_init): Likewise.
45280 (grub_efi_mm_fini): Likewise.
45281 (grub_efi_init): Likewise.
45282 (grub_efi_fini): Likewise.
45284 * include/grub/i386/efi/time.h: Do not include
45285 grub/symbol.h. Include grub/efi/time.h.
45286 (GRUB_TICKS_PER_SECOND): Removed.
45287 (grub_get_rtc): Likewise.
45289 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
45290 Added padding. The EFI spec is buggy.
45291 (GRUB_EFI_BLACK): New macro.
45292 (GRUB_EFI_BLUE): Likewise.
45293 (GRUB_EFI_GREEN): Likewise.
45294 (GRUB_EFI_CYAN): Likewise.
45295 (GRUB_EFI_RED): Likewise.
45296 (GRUB_EFI_MAGENTA): Likewise.
45297 (GRUB_EFI_BROWN): Likewise.
45298 (GRUB_EFI_LIGHTGRAY): Likewise.
45299 (GRUB_EFI_BRIGHT): Likewise.
45300 (GRUB_EFI_DARKGRAY): Likewise.
45301 (GRUB_EFI_LIGHTBLUE): Likewise.
45302 (GRUB_EFI_LIGHTGREEN): Likewise.
45303 (GRUB_EFI_LIGHTCYAN): Likewise.
45304 (GRUB_EFI_LIGHTRED): Likewise.
45305 (GRUB_EFI_LIGHTMAGENTA): Likewise.
45306 (GRUB_EFI_YELLOW): Likewise.
45307 (GRUB_EFI_WHITE): Likewise.
45308 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
45309 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
45310 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
45311 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
45312 (GRUB_EFI_BACKGROUND_RED): Likewise.
45313 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
45314 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
45315 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
45316 (GRUB_EFI_TEXT_ATTR): Likewise.
45318 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
45319 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
45320 (kernel_mod_HEADERS): Added efi/time.h.
45322 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
45324 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
45325 include/grub/efi/api.h, include/grub/efi/console_control.h,
45326 include/grub/efi/efi.h, include/grub/efi/pe32.h,
45327 include/grub/i386/efi/time.h, kern/efi/efi.c,
45328 kern/i386/efi/init.c, kern/i386/efi/startup.S,
45329 and util/i386/efi/grub-mkimage.c.
45331 * Makefile.in (RMKFILES): Added i386-efi.rmk.
45333 * genmk.rb (PModule#rule): Do not export symbols if
45334 #{prefix}_EXPORTS is set to "no".
45336 * conf/i386-efi.mk: New file.
45337 * conf/i386-efi.rmk: Likewise.
45338 * include/grub/efi/api.h: Likewise.
45339 * include/grub/efi/console_control.h: Likewise.
45340 * include/grub/efi/efi.h: Likewise.
45341 * include/grub/efi/pe32.h: Likewise.
45342 * include/grub/i386/efi/time.h: Likewise.
45343 * kern/efi/efi.c: Likewise.
45344 * kern/i386/efi/init.c: Likewise.
45345 * kern/i386/efi/startup.S: Likewise.
45346 * util/i386/efi/grub-mkimage.c: Likewise.
45348 2006-04-17 Marco Gerards <marco@gnu.org>
45350 * include/grub/script.h: Include <grub/parser.h> and
45351 "grub_script.tab.h".
45352 (struct grub_lexer_param): New struct.
45353 (struct grub_parser_param): Likewise.
45354 (grub_script_create_arglist): Pass the state in an argument.
45355 (grub_script_add_arglist): Likewise.
45356 (grub_script_create_cmdline): Likewise.
45357 (grub_script_create_cmdblock): Likewise.
45358 (grub_script_create_cmdif): Likewise.
45359 (grub_script_create_cmdmenu): Likewise.
45360 (grub_script_add_cmd): Likewise.
45361 (grub_script_arg_add): Likewise.
45362 (grub_script_lexer_ref): Likewise.
45363 (grub_script_lexer_deref): Likewise.
45364 (grub_script_lexer_record_start): Likewise.
45365 (grub_script_lexer_record_stop): Likewise.
45366 (grub_script_mem_record): Likewise.
45367 (grub_script_mem_record_stop): Likewise.
45368 (grub_script_malloc): Likewise.
45369 (grub_script_yylex): Likewise.
45370 (grub_script_yyparse): Likewise.
45371 (grub_script_yyerror): Likewise.
45372 (grub_script_yylex): Likewise.
45373 (grub_script_lexer_init): Return the state.
45375 * normal/lexer.c (grub_script_lexer_state): Removed variable.
45376 (grub_script_lexer_done): Likewise.
45377 (grub_script_lexer_getline): Likewise.
45378 (grub_script_lexer_refs): Likewise.
45379 (script): Likewise.
45380 (newscript): Likewise.
45381 (record): Likewise.
45382 (recording): Likewise.
45383 (recordpos): Likewise.
45384 (recordlen): Likewise.
45385 (grub_script_lexer_init): Return the state instead of setting
45387 (grub_script_lexer_ref): Use the newly added argument for state
45388 instead of globals.
45389 (grub_script_lexer_deref): Likewise.
45390 (grub_script_lexer_record_start): Likewise.
45391 (grub_script_lexer_record_stop): Likewise.
45392 (recordchar): Likewise.
45393 (nextchar): Likewise.
45394 (grub_script_yylex2): Likewise.
45395 (grub_script_yylex): Likewise.
45396 (grub_script_yyerror): Likewise.
45398 * normal/parser.y (func_mem): Removed variable.
45399 (menu_entry): Likewise.
45401 (%lex-param): New parser option.
45402 (%parse-param): Likewise.
45403 (script): Always return the AST.
45404 (argument): Pass the state around.
45405 (arguments): Likewise.
45406 (grubcmd): Likewise.
45407 (commands): Likewise.
45408 (function): Likewise.
45409 (menuentry): Likewise.
45410 (if_statement): Likewise.
45413 * normal/script.c (grub_script_memused): Removed variable.
45414 (grub_script_parsed): Likewise.
45415 (grub_script_malloc): Added a state argument. Use that instead of
45417 (grub_script_mem_record): Likewise.
45418 (grub_script_mem_record_stop): Likewise.
45419 (grub_script_arg_add): Likewise.
45420 (grub_script_add_arglist): Likewise.
45421 (grub_script_create_cmdline): Likewise.
45422 (grub_script_create_cmdif): Likewise.
45423 (grub_script_create_cmdmenu): Likewise.
45424 (grub_script_add_cmd): Likewise.
45425 (grub_script_parse): Setup the state before calling the parser.
45427 2006-04-16 Marco Gerards <marco@gnu.org>
45429 * normal/command.c (grub_command_init): Remove the title command.
45431 * normal/lexer.c (grub_script_yylex): Renamed from this...
45432 (grub_script_yylex2): ... to this.
45433 (grub_script_yylex): New function. Temporary
45434 introduced to filter some tokens.
45435 (grub_script_yyerror): Print a newline.
45437 * normal/main.c (read_config_file): Output information about the
45438 lines that contain errors. Wait for a key after all lines have
45439 been processed. Don't return an empty menu.
45441 * normal/parser.y (func_mem): Don't initialize.
45442 (menu_entry): Likewise.
45443 (err): New variable.
45444 (script): Don't return anything when an error was encountered.
45445 (ws, returns): Removed rules.
45446 (argument): Disabled concatenated variable support.
45447 (arguments): Remove explicit separators.
45448 (grubcmd): Likewise.
45449 (function): Likewise.
45450 (menuentry): Likewise.
45452 (commands): Likewise. Add error handling.
45454 * normal/script.c (grub_script_create_cmdline): If
45455 `grub_script_parsed' is 0, assume the parser encountered an error.
45457 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
45459 * configure.ac: Add support for EFI. Fix the typo
45460 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
45462 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
45464 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
45465 foreign multibyte characters should be shown correctly.
45467 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
45469 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
45471 (read_config_file): Made it to close file before returning.
45473 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
45475 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
45476 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
45477 video/i386/pc/vbefill.c.
45479 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
45480 video/i386/pc/vbefill.c.
45482 * include/grub/video.h (grub_video_blit_format): New enum.
45483 (grub_video_mode_info): Added new member blit_format.
45484 (grub_video_get_blit_format): New function prototype.
45486 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
45487 function prototype.
45488 (grub_video_vbe_map_rgb): Likewise.
45489 (grub_video_vbe_unmap_color): Likewise.
45491 * include/grub/i386/pc/vbeblit.h: New file.
45493 * include/grub/i386/pc/vbefill.h: New file.
45495 * video/video.c (grub_video_get_blit_format): New function.
45496 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
45497 (grub_video_vbe_map_rgb): Likewise.
45498 (grub_video_vbe_unmap_color): Likewise.
45500 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
45502 (grub_video_vbe_blit_render_target): Changed to use more optimized
45504 (grub_video_vbe_setup): Added detection for optimized settings.
45505 (grub_video_vbe_create_render_target): Likewise.
45507 * video/i386/pc/vbeblit.c: New file.
45509 * video/i386/pc/vbefill.c: New file.
45511 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
45513 * font/manager.c (grub_font_get_glyph): Removed font fixup from
45516 * util/unifont2pff.rb: ... and moved it to here. Improved argument
45517 parsing to support both hex and dec ranges. If filename was missing
45518 show usage information.
45520 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
45522 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
45523 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
45525 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
45526 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
45527 (video_mod_SOURCES): Added.
45528 (video_mod_CFLAGS): Likewise.
45529 (video_mod_LDFLAGS): Likewise.
45530 (gfxterm_mod_SOURCES): Likewise.
45531 (gfxterm_mod_CFLAGS): Likewise.
45532 (gfxterm_mod_LDFLAGS): Likewise.
45533 (videotest_mod_SOURCES): Likewise.
45534 (videotest_mod_CFLAGS): Likewise.
45535 (videotest_mod_LDFLAGS): Likewise.
45536 (vesafb_mod_SOURCES): Removed.
45537 (vesafb_mod_CFLAGS): Likewise.
45538 (vesafb_mod_LDFLAGS): Likewise.
45539 (vga_mod_SOURCES): Likewise.
45540 (vga_mod_CFLAGS): Likewise.
45541 (vga_mod_LDFLAGS): Likewise.
45543 * commands/videotest.c: New file.
45545 * font/manager.c (fill_with_default_glyph): Modified to use
45547 (grub_font_get_glyph): Likewise.
45548 (fontmanager): Renamed from this...
45549 (font_manager): ... to this.
45551 * include/grub/font.h (grub_font_glyph): Added new structure.
45552 (grub_font_get_glyph): Modified to use grub_font_glyph.
45554 * include/grub/misc.h (grub_abs): Added as inline function.
45556 * include/grub/video.h: New file.
45558 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
45559 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
45560 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
45561 (grub_vbe_get_controller_info): Renamed from this...
45562 (grub_vbe_bios_get_controller_info): ... to this.
45563 (grub_vbe_get_mode_info): Renamed from this...
45564 (grub_vbe_bios_get_mode_info): ... to this.
45565 (grub_vbe_set_mode): Renamed from this...
45566 (grub_vbe_bios_set_mode): ... to this.
45567 (grub_vbe_get_mode): Renamed from this...
45568 (grub_vbe_bios_get_mode): ... to this.
45569 (grub_vbe_set_memory_window): Renamed from this...
45570 (grub_vbe_bios_set_memory_window): ... to this.
45571 (grub_vbe_get_memory_window): Renamed from this...
45572 (grub_vbe_bios_get_memory_window): ... to this.
45573 (grub_vbe_set_scanline_length): Renamed from this...
45574 (grub_vbe_set_scanline_length): ... to this.
45575 (grub_vbe_get_scanline_length): Renamed from this...
45576 (grub_vbe_bios_get_scanline_length): ... to this.
45577 (grub_vbe_set_display_start): Renamed from this...
45578 (grub_vbe_bios_set_display_start): ... to this.
45579 (grub_vbe_get_display_start): Renamed from this...
45580 (grub_vbe_bios_get_display_start): ... to this.
45581 (grub_vbe_set_palette_data): Renamed from this...
45582 (grub_vbe_bios_set_palette_data): ... to this.
45583 (grub_vbe_set_pixel_rgb): Removed.
45584 (grub_vbe_set_pixel_index): Likewise.
45586 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
45588 (grub_vbe_bios_get_controller_info): ... to this.
45589 (grub_vbe_get_mode_info): Renamed from this...
45590 (grub_vbe_bios_get_mode_info): ... to this.
45591 (grub_vbe_set_mode): Renamed from this...
45592 (grub_vbe_bios_set_mode): ... to this.
45593 (grub_vbe_get_mode): Renamed from this...
45594 (grub_vbe_bios_get_mode): ... to this.
45595 (grub_vbe_set_memory_window): Renamed from this...
45596 (grub_vbe_bios_set_memory_window): ... to this.
45597 (grub_vbe_get_memory_window): Renamed from this...
45598 (grub_vbe_bios_get_memory_window): ... to this.
45599 (grub_vbe_set_scanline_length): Renamed from this...
45600 (grub_vbe_set_scanline_length): ... to this.
45601 (grub_vbe_get_scanline_length): Renamed from this...
45602 (grub_vbe_bios_get_scanline_length): ... to this.
45603 (grub_vbe_set_display_start): Renamed from this...
45604 (grub_vbe_bios_set_display_start): ... to this.
45605 (grub_vbe_get_display_start): Renamed from this...
45606 (grub_vbe_bios_get_display_start): ... to this.
45607 (grub_vbe_set_palette_data): Renamed from this...
45608 (grub_vbe_bios_set_palette_data): ... to this.
45609 (grub_vbe_bios_get_controller_info): Fixed problem with registers
45610 getting corrupted after calling it. Added more pushes and pops.
45611 (grub_vbe_bios_set_mode): Likewise.
45612 (grub_vbe_bios_get_mode): Likewise.
45613 (grub_vbe_bios_get_memory_window): Likewise.
45614 (grub_vbe_bios_set_scanline_length): Likewise.
45615 (grub_vbe_bios_get_scanline_length): Likewise.
45616 (grub_vbe_bios_get_display_start): Likewise.
45617 (grub_vbe_bios_set_palette_data): Likewise.
45619 * normal/cmdline.c (cl_set_pos): Refresh the screen.
45620 (cl_insert): Likewise.
45621 (cl_delete): Likewise.
45623 * term/gfxterm.c: New file.
45625 * term/i386/pc/vesafb.c: Removed file.
45627 * video/video.c: New file.
45629 * video/i386/pc/vbe.c (real2pm): Added new function.
45630 (grub_video_vbe_draw_pixel): Likewise.
45631 (grub_video_vbe_get_video_ptr): Likewise.
45632 (grub_video_vbe_get_pixel): Likewise
45633 (grub_video_vbe_init): Likewise.
45634 (grub_video_vbe_fini): Likewise.
45635 (grub_video_vbe_setup): Likewise.
45636 (grub_video_vbe_get_info): Likewise.
45637 (grub_video_vbe_set_palette): Likewise.
45638 (grub_video_vbe_get_palette): Likewise.
45639 (grub_video_vbe_set_viewport): Likewise.
45640 (grub_video_vbe_get_viewport): Likewise.
45641 (grub_video_vbe_map_color): Likewise.
45642 (grub_video_vbe_map_rgb): Likewise.
45643 (grub_video_vbe_map_rgba): Likewise.
45644 (grub_video_vbe_unmap_color): Likewise.
45645 (grub_video_vbe_fill_rect): Likewise.
45646 (grub_video_vbe_blit_glyph): Likewise.
45647 (grub_video_vbe_blit_bitmap): Likewise.
45648 (grub_video_vbe_blit_render_target): Likewise.
45649 (grub_video_vbe_scroll): Likewise.
45650 (grub_video_vbe_swap_buffers): Likewise.
45651 (grub_video_vbe_create_render_target): Likewise.
45652 (grub_video_vbe_delete_render_target): Likewise.
45653 (grub_video_vbe_set_active_render_target): Likewise.
45654 (grub_vbe_set_pixel_rgb): Remove function.
45655 (grub_vbe_set_pixel_index): Likewise.
45656 (index_color_mode): Remove static variable.
45657 (active_mode): Likewise.
45658 (framebuffer): Likewise.
45659 (bytes_per_scan_line): Likewise.
45660 (grub_video_vbe_adapter): Added new static variable.
45661 (framebuffer): Likewise.
45662 (render_target): Likewise.
45663 (initial_mode): Likewise.
45664 (mode_in_use): Likewise.
45665 (mode_list): Likewise.
45667 2006-03-10 Marco Gerards <marco@gnu.org>
45669 * configure.ac (AC_INIT): Bumped to 1.93.
45671 * DISTLIST: Added `include/grub/hfs.h'.
45673 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
45675 * boot/i386/pc/boot.S (general_error): Before looping, try INT
45676 18H, which might help the BIOS falling back to next boot media.
45678 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
45680 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
45681 Poe Chen <poe.poechen@gmail.com>.
45683 2006-01-17 Marco Gerards <marco@gnu.org>
45685 * include/grub/normal.h: Include <grub/script.h>.
45686 (grub_command_list): Removed struct.
45687 (grub_command_list_t): Removed type.
45688 (grub_menu_entry): Remove members `num' and `command_list'. Add
45689 members `commands' and `sourcecode'.
45690 * include/grub/script.h: Add inclusion guards.
45691 (grub_script_cmd_menuentry): New struct.
45692 (grub_script_execute_menuentry): New prototype.
45693 (grub_script_lexer_record_start): Likewise.
45694 (grub_script_lexer_record_stop): Likewise.
45695 * normal/execute.c (grub_script_execute_menuentry): New function.
45696 * normal/lexer.c (record, recording, recordpos, recordlen): New
45698 (grub_script_lexer_record_start): New function.
45699 (grub_script_lexer_record_stop): Likewise.
45700 (recordchar): Likewise.
45701 (nextchar): Likewise.
45702 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
45703 2048 as the buffer size. Add the tokens `menuentry' and `@'.
45704 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
45705 (current_menu): New variable.
45706 (free_menu): Mainly rewritten.
45707 (grub_normal_menu_addentry): New function.
45708 (read_config_file): Rewritten.
45709 * normal/menu.c (run_menu_entry): Mainly rewritten.
45710 * normal/menu_entry.c (make_screen): Rewritten the code to insert
45712 (run): Mainly rewritten.
45713 * normal/parser.y (menu_entry): New variable.
45714 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
45715 (menuentry): New rule.
45716 (command): Add `menuentry'.
45717 (if_statement): Allow additional returns before `fi'.
45718 * normal/script.c (grub_script_create_cmdmenu): New function.
45720 2006-01-03 Marco Gerards <marco@gnu.org>
45722 * INSTALL: GNU Bison is required.
45723 * configure.ac: Rewritten the test to detect Bison.
45724 * Makefile.in (YACC): New variable. Reported by Xun Sun
45725 <xun.sun.cn@gmail.com>.
45727 2006-01-03 Marco Gerards <marco@gnu.org>
45729 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
45730 the HFS+ filesystem to filesystem blocks.
45731 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
45732 GCC warning is silenced.
45734 2006-01-03 Marco Gerards <marco@gnu.org>
45736 * partmap/apple.c (apple_partition_map_iterate): Convert the data
45737 read from disk from big endian to host byte order.
45739 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
45741 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
45743 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
45744 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
45745 embedded HFS+ filesystem.
45746 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
45747 (grub_hfs_sblock): Move from here...
45748 * include/grub/hfs.h: To here... New file.
45749 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
45751 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
45753 (grub_hfsplus_volheader): Change type of member `magic' to
45755 (grub_hfsplus_data): Add new member `embedded_offset'.
45756 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
45758 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
45759 Calculate the offset.
45761 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45763 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
45765 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
45767 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45769 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
45770 ENV->NAME is NULL after allocating ENV->VALUE.
45772 2005-12-25 Marco Gerards <marco@gnu.org>
45774 * kern/env.c (grub_env_set): Rewritten the error handling code.
45776 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45778 * geninit.sh: Made more robust, and more portable.
45780 2005-12-25 Marco Gerards <marco@gnu.org>
45782 Add support for Apple HFS+ filesystems.
45784 * fs/hfsplus.c: New file.
45786 * DISTLIST: Added `fs/hfsplus.c'.
45788 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
45789 (hfsplus_mod_SOURCES): New variable.
45790 (hfsplus_mod_CFLAGS): Likewise.
45791 (hfsplus_mod_LDFLAGS): Likewise.
45792 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
45793 (grub_setup_SOURCES): Likewise.
45794 (grub_mkdevicemap_SOURCES): Likewise.
45795 (grub_emu_SOURCES): Likewise.
45796 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45798 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
45800 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
45802 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45804 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
45805 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
45806 include/grub/parser.h, include/grub/script.h, kern/parser.c,
45807 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
45808 normal/lexer.c, normal/parser.y, normal/script.c, and
45810 Removed kern/sparc64/cache.c.
45812 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
45813 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
45816 * configure.ac (AC_INIT): Bumped to 1.92.
45818 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
45820 * kern/err.c (grub_error_push): Added new function to support error
45822 (grub_error_pop): Likewise.
45823 (grub_error_stack_items): New local variable to support error stacks.
45824 (grub_error_stack_pos): Likewise.
45825 (grub_error_stack_assert): Likewise.
45826 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
45828 (grub_print_error): Added support to print errors from error stack.
45830 * include/grub/err.h (grub_error_push): Added function prototype.
45831 (grub_error_pop): Likewise.
45833 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
45835 * configure.ac: Accept `powerpc64' as host_cpu.
45836 (amd64): Rename to `biarch32'.
45838 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
45839 non-cacheline-aligned addresses.
45841 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
45842 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
45843 if `size' is non-zero.
45845 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
45847 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
45848 and `cd' to make sure the filename is not prefixed with a
45850 (pkgdata_MODULES): Add `gpt.mod'.
45851 (gpt_mod_SOURCES): New variable.
45852 (gpt_mod_CFLAGS): Likewise.
45853 (gpt_mod_LDFLAGS): Likewise.
45855 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
45857 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
45860 * partmap/gpt.c: New file.
45862 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
45863 GPT partition map is detected.
45865 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
45867 * commands/i386/pc/play.c: New file.
45868 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
45869 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
45872 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
45874 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
45875 ((unused))' to silence gcc warning.
45877 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
45879 * configure.ac: Correct `AC_PROG_YACC' test.
45881 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45883 * util/powerpc/ieee1275/grub-install.in: Run the mount point
45884 check before installing files.
45886 2005-11-22 Mike Small <smallm@panix.com>
45888 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
45889 number regex so multidigit numbers are recognized correctly.
45891 2005-11-22 Mike Small <smallm@panix.com>
45893 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
45894 debugging message before attempting to claim memory.
45895 (grub_rescue_cmd_initrd): Add a claim debugging message and try
45896 multiple addresses in case of failure.
45898 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45900 * term/tparm.c (get_space): Remove empty `if' statement.
45902 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
45904 * kern/parser.c (check_varstate): Rename `state' to 's'.
45906 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45908 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
45909 variable definitions to the beginning of each function. Sort stack
45911 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
45912 `buf' argument to `char *'.
45914 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45916 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
45917 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
45918 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
45919 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
45920 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
45921 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
45922 configfile.mod, search.mod, gzio.mod and test.mod.
45923 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
45924 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
45925 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
45926 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
45927 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
45928 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
45929 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
45930 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
45931 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
45932 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
45933 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
45934 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
45935 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
45936 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
45937 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
45938 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
45939 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
45940 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
45941 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
45942 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
45943 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
45944 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
45945 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
45947 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
45949 (pkgdata_MODULES): Add test.mod.
45951 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45953 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
45954 appending to variables with "+=".
45955 (PModule): Use full pathname to generate *.lst filenames.
45957 * Makefile.in: Fixed list rules moved from genmk.rb.
45958 (.DELETE_ON_ERROR): New special target.
45959 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
45961 * conf/i386-pc.rmk: Include conf/common.mk.
45962 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
45963 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
45964 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
45965 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
45966 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
45967 configfile.mod, search.mod, gzio.mod and test.mod.
45968 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
45969 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
45970 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
45971 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
45972 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
45973 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
45974 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
45975 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
45976 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
45977 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
45978 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
45979 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
45980 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
45981 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
45982 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
45983 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
45984 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
45985 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
45986 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
45987 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
45988 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
45989 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
45990 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
45992 * conf/common.rmk: ... to here. New file.
45994 * conf/common.mk: New file.
45996 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
45998 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
45999 (grub_script.tab.c): ... here.
46001 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
46002 (grub_script.tab.c): ... here.
46004 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
46005 (grub_script.tab.c): ... here.
46007 * normal/command.c (grub_command_find): Fixed a memory leak of
46008 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
46010 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46012 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
46013 "@" which marks the start of a comment on ARM.
46014 (VARIABLE): Likewise.
46016 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46018 Add support for Linux/ADFS partition tables.
46020 * partmap/acorn.c: New file.
46022 * include/grub/acorn_filecore.h: Likewise.
46024 * DISTLIST: Added `partmap/acorn.c' and
46025 `include/grub/acorn_filecore.h'.
46027 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46029 (pkgdata_MODULES): Add `acorn.mod'.
46030 (acorn_mod_SOURCES): New variable.
46031 (acorn_mod_CFLAGS): Likewise.
46033 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
46035 (pkgdata_MODULES): Add `acorn.mod'.
46036 (acorn_mod_SOURCES): New variable.
46037 (acorn_mod_CFLAGS): Likewise.
46039 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
46040 (pkgdata_MODULES): Add `acorn.mod'.
46041 (acorn_mod_SOURCES): New variable.
46042 (acorn_mod_CFLAGS): Likewise.
46043 (acorn_mod_LDFLAGS): Likewise.
46045 * include/types.h (grub_disk_addr_t): New typedef.
46047 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
46049 * geninit.sh: New file.
46051 * geninitheader.sh: Likewise.
46053 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
46054 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
46055 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
46056 * commands/configfile.c (grub_configfile_init)
46057 (grub_configfile_fini): Likewise.
46058 * commands/default.c (grub_default_init, grub_default_fini):
46060 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
46061 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
46062 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
46063 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
46065 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
46066 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
46068 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
46069 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
46071 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
46073 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
46075 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
46076 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
46077 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
46078 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
46079 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
46080 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
46081 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
46082 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
46083 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
46084 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
46085 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
46086 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
46087 * partmap/amiga.c (grub_amiga_partition_map_init)
46088 (grub_amiga_partition_map_fini): Likewise.
46089 * partmap/apple.c (grub_apple_partition_map_init)
46090 (grub_apple_partition_map_fini): Likewise.
46091 * partmap/pc.c (grub_pc_partition_map_init)
46092 (grub_pc_partition_map_fini): Likewise.
46093 * partmap/sun.c (grub_sun_partition_map_init,
46094 grub_sun_partition_map_fini): Likewise.
46095 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
46098 * util/grub-emu.c: Include <grub_modules_init.h>.
46099 (main): Don't initialize and de-initialize any modules directly,
46100 use `grub_init_all' and `grub_fini_all' instead.
46102 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
46103 `grub_vesafb_mod_init'.
46104 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
46106 * term/i386/pc/vga.c (grub_vga_init): Renamed to
46107 `grub_vga_mod_init'. Updated all users.
46108 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
46110 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
46111 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
46114 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
46115 Generate a function to initialize the module in utilities.
46116 Updated all callers.
46117 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
46118 initialize the module in utilities. Updated all callers.
46120 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
46122 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
46123 escape sequence and a literal ^L to clear the screen.
46125 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
46126 when returning from Open Firmware.
46128 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
46130 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
46131 (grub_ofconsole_height): Likewise.
46132 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
46133 manually insert a '\n'.
46134 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
46135 `grub_ofconsole_height'. Return early if these are already set.
46137 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
46139 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
46140 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
46141 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
46142 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
46143 and `normal/script.c'.
46144 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
46145 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
46146 (test_mod_SOURCES): New variable.
46147 (test_mod_CFLAGS): Likewise.
46148 (test_mod_LDFLAGS): Likewise.
46149 (pkgdata_MODULES): Add `test.mod'.
46150 (grub_script.tab.c): New rule.
46151 (grub_script.tab.h): Likewise.
46153 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
46155 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46156 `commands/test.c', `normal/execute.c', `normal/lexer.c',
46157 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
46158 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
46159 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
46160 (test_mod_SOURCES): New variable.
46161 (test_mod_CFLAGS): Likewise.
46162 (pkgdata_MODULES): Add `test.mod'.
46163 (grub_script.tab.c): New rule.
46164 (grub_script.tab.h): Likewise.
46166 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
46168 Add initial scripting support.
46170 * commands/test.c: New file.
46171 * include/grub/script.h: Likewise.
46172 * normal/execute.c: Likewise.
46173 * normal/function.c: Likewise.
46174 * normal/lexer.c: Likewise.
46175 * normal/parser.y: Likewise.
46176 * normal/script.c: Likewise.
46178 * configure.ac: Add `AC_PROG_YACC' test.
46180 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
46181 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
46182 `normal/function.c' and `normal/script.c'.
46183 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
46184 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
46185 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
46187 (pkgdata_MODULES): Add `test.mod'.
46188 (grub_script.tab.c): New rule.
46189 (grub_script.tab.h): Likewise.
46191 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
46193 * include/grub/normal.h (grub_test_init): New prototype.
46194 (grub_test_fini): Likewise.
46196 * normal/command.c: Include <grub/script.h>.
46197 (grub_command_execute): Rewritten.
46199 * util/grub-emu.c (main): Call `grub_test_init' and
46202 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
46204 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
46206 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
46207 there are no pending characters.
46209 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
46211 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
46212 `grub_strndup' to drop device arguments. Replace unnecessary
46213 `grub_strndup' with `grub_strdup'.
46215 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
46217 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
46218 `debug' environment variable has been set.
46220 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
46222 * Makefile.in (install-local): Use $(DATA).
46223 (uninstall): Likewise.
46224 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
46225 (sbin_UTILITIES): ... to here.
46226 (sbin_SCRIPTS): New variable.
46227 (grub_install_SOURCES): New variable.
46228 * util/powerpc/ieee1275/grub-install.in: New file.
46229 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
46231 (add_segments): Call `grub_util_get_path'.
46233 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
46235 From Timothy Baldwin:
46236 * commands/ls.c (grub_ls_list_files): Close FILE with
46238 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
46240 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
46242 * include/grub/parser.h: New file.
46244 * kern/parser.c: Likewise.
46246 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
46247 (grub_setup_SOURCES): Likewise.
46248 (grub_probefs_SOURCES): Likewise.
46249 (grub_emu_SOURCES): Likewise.
46250 (kernel_img_HEADERS): Add `parser.h'.
46252 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
46253 (grub_emu_SOURCES): Add `kern/parser.c'.
46254 (grubof_SOURCES): Likewise.
46256 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
46257 (grubof_SOURCES): Add `kern/parser.c'.
46259 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
46261 * kern/misc.c (grub_split_cmdline): Removed function.
46263 * kern/rescue.c: Include <grub/parser.h>.
46264 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
46265 of `grub_split_cmdline'.
46267 * normal/command.c: Include <grub/parser.h>.
46268 (grub_command_execute): Use `grub_parser_split_cmdline' instead
46269 of `grub_split_cmdline'.
46271 * normal/completion.c: Include <grub/parser.h>.
46272 (cmdline_state): New variable.
46273 (iterate_dir): End the filename with a quote depending on the
46274 command line state.
46275 (get_state): new function.
46276 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
46277 split the arguments and determine the current argument. When the
46278 argument string is not quoted, escape all spaces.
46280 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
46282 * normal/sparc64/setjmp.S: New file.
46284 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
46286 * include/grub/sparc64/libgcc.h: New file.
46287 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
46288 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
46289 normal/sparc64/setjmp.c.
46291 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
46293 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
46294 * kern/sparc64/cache.S: New file.
46295 * kern/sparc64/cache.c: Removed.
46296 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
46297 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
46299 (COMMON_LDFLAGS): Add -melf64_sparc.
46300 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
46301 (grubof_SOURCES): Use cache.S instead of cache.c.
46302 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
46303 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
46304 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
46306 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
46307 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
46308 (linux_mod_CFLAGS): Commented out.
46309 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
46310 out because module isn't built.
46311 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
46312 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
46313 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
46314 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
46315 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
46316 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
46317 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
46318 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
46319 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
46320 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
46321 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
46322 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
46323 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
46324 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
46326 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
46328 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
46329 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
46330 longer, because HFS should not be used on PC.
46332 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46334 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
46335 consistently within the loop.
46337 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
46339 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
46340 directory can not be read.
46342 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
46344 * configure.ac (AC_INIT): Increase the version number to 1.91.
46346 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
46347 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
46348 term/i386/pc/serial.c.
46350 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
46352 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
46353 file size must be permitted.
46355 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
46356 between %ah and %al.
46358 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
46360 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
46362 Call the hook with a NUL-terminated filename.
46363 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
46366 * kern/term.c (cursor_state): New variable.
46367 (grub_term_set_current): Reset the cursor state on a new
46369 (grub_setcursor): Rewritten to use CURSOR_STATE.
46370 (grub_getcursor): New function.
46372 * include/grub/term.h (grub_getcursor): New prototype.
46374 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
46375 integers on ARM. Reported by Timothy Baldwin
46376 <T.E.Baldwin99@members.leeds.ac.uk>.
46378 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
46380 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
46382 (grub_sfs_dir): Likewise.
46384 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
46386 Add support for the SFS filesystem.
46388 * fs/sfs.c: New file.
46390 * DISTLIST: Added `fs/sfs.c'.
46392 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
46393 (grub_probefs_SOURCES): Likewise.
46394 (grub_emu_SOURCES): Likewise.
46395 (pkgdata_MODULES): Add `sfs.mod'.
46396 (sfs_mod_SOURCES): New variable.
46397 (sfs_mod_CFLAGS): Likewise.
46398 (sfs_mod_LDFLAGS): Likewise.
46400 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
46401 (pkgdata_MODULES): Add `sfs.mod'.
46402 (sfs_mod_SOURCES): New variable.
46403 (sfs_mod_CFLAGS): Likewise.
46405 * util/grub-emu.c (main): Call `grub_sfs_init' and
46408 * include/grub/fs.h (grub_sfs_init): New prototype.
46409 (grub_sfs_fini): Likewise.
46411 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
46413 Add support for the AFFS filesystem.
46415 * fs/affs.c: New file.
46417 * DISTLIST: Added `fs/affs.c'.
46419 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
46420 (grub_probefs_SOURCES): Likewise.
46421 (grub_emu_SOURCES): Likewise.
46422 (pkgdata_MODULES): Add `affs.mod'.
46423 (affs_mod_SOURCES): New variable.
46424 (affs_mod_CFLAGS): Likewise.
46425 (affs_mod_LDFLAGS): Likewise.
46427 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
46428 (pkgdata_MODULES): Add `affs.mod'.
46429 (affs_mod_SOURCES): New variable.
46430 (affs_mod_CFLAGS): Likewise.
46432 * util/grub-emu.c (main): Call `grub_affs_init' and
46435 * include/grub/fs.h (grub_affs_init): New prototype.
46436 (grub_affs_fini): Likewise.
46438 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
46440 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
46442 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
46444 * configure.ac: Accept `x86_64' as host_cpu. In that case add
46447 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
46450 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
46451 (COMMON_LDFLAGS): New variable.
46452 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
46453 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
46454 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
46455 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
46456 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
46457 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
46458 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
46459 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
46460 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
46461 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
46462 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
46463 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
46464 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
46465 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
46466 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
46468 (normal_mod_ASFLAGS): Add `-m32'.
46470 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
46471 (grub_host_size_t, grub_host_ssize_t): New types.
46472 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
46473 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
46474 `GRUB_HOST_SIZEOF_VOID_P'.
46476 * include/grub/kernel.h (struct grub_module_header): Type of
46477 member offset changed to `grub_host_off_t'. Type of member size
46478 changed to `grub_host_size_t'.
46479 (struct grub_module_info): Type of member offset changed to
46480 `grub_host_off_t'. Type of member size changed to
46481 `grub_host_size_t'.
46483 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
46485 Make GRUB's kernel compliant to Multiboot Specification.
46487 * kern/i386/pc/startup.S (multiboot_header): New label.
46488 (multiboot_entry): Likewise.
46489 (multiboot_trampoline): Likewise.
46491 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
46492 Increased to 0x4A0.
46494 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
46495 put parentheses after a question mark.
46496 [!GRUB_UTIL] (my_mod): New variable.
46498 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
46500 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
46502 Adds support for the XFS filesystem. Btrees are not supported
46505 * fs/xfs.c: New file.
46507 * DISTLIST: Added `fs/xfs.c'.
46509 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
46510 (grub_probefs_SOURCES): Likewise.
46511 (grub_emu_SOURCES): Likewise.
46512 (pkgdata_MODULES): Add `xfs.mod'.
46513 (xfs_mod_SOURCES): New variable.
46514 (xfs_mod_CFLAGS): Likewise.
46516 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
46517 (pkgdata_MODULES): Add `xfs.mod'.
46518 (xfs_mod_SOURCES): New variable.
46519 (xfs_mod_CFLAGS): Likewise.
46521 * util/grub-emu.c (main): Call `grub_xfs_init' and
46524 * include/grub/fs.h (grub_xfs_init): New prototype.
46525 (grub_xfs_fini): Likewise.
46528 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
46530 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
46531 color modes, allow greater than 16 colors to be configured as
46534 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
46536 * normal/completion.c (complete_arguments): Add the qualifier
46537 const into OPTIONS.
46539 From Omniflux <omniflux+lists@omniflux.com>:
46540 * include/grub/terminfo.h: New file.
46541 * include/grub/tparm.h: Likewise.
46542 * include/grub/i386/pc/serial.h: Likewise.
46543 * term/terminfo.c: Likewise.
46544 * term/tparm.c: Likewise.
46545 * term/i386/pc/serial.c: Likewise.
46546 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
46548 (terminfo_mod_SOURCES): New variable.
46549 (terminfo_mod_CFLAGS): Likewise.
46550 (serial_mod_SOURCES): Likewise.
46551 (serial_mod_CFLAGS): Likewise.
46553 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
46555 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
46556 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
46557 and kern/powerpc/ieee1275/cmain.c, respectively.
46559 * boot/powerpc/ieee1275/crt0.S: Moved to ...
46560 * kern/powerpc/ieee1275/crt0.S: ... here.
46562 * boot/powerpc/ieee1275/cmain.c: Moved to ...
46563 * kern/powerpc/ieee1275/cmain.c: ... here.
46565 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
46566 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
46567 instead of boot/powerpc/ieee1275/crt0.S and
46568 boot/powerpc/ieee1275/cmain.c, respectively.
46570 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
46571 sectors. It was not used anyway.
46573 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
46575 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
46576 `unused parameter' warning.
46578 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
46580 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
46582 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
46585 2005-08-28 Marco Gerards <metgerards@student.han.nl>
46587 * include/grub/normal.h (enum grub_completion_type): Added
46588 `GRUB_COMPLETION_TYPE_ARGUMENT'.
46590 * normal/cmdline.c (print_completion): Handle
46591 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
46592 * normal/menu_entry.c (store_completion): Likewise.
46594 * normal/completion.c (complete_arguments): New function.
46595 (grub_normal_do_completion): Call `complete_arguments' when the
46596 current words start with a dash.
46598 2005-08-27 Marco Gerards <metgerards@student.han.nl>
46600 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
46601 `gzio.mod' instead of `io.mod').
46603 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
46605 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
46606 (DISTDIRS): Added io and video.
46607 Rewrite the search routine to make an output consistently.
46609 * DISTLIST: Added conf/sparc64-ieee1275.mk,
46610 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
46611 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
46612 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
46613 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
46614 util/powerpc/ieee1275/misc.c.
46616 * include/grub/gzio.h: New file.
46617 * io/gzio.c: Likewise.
46619 * kern/file.c (grub_file_close): Call grub_device_close only if
46620 FILE->DEVICE is not NULL.
46622 * include/grub/mm.h [!NULL] (NULL): New macro.
46624 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
46626 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
46627 (pkgdata_MODULES): Added gzio.mod.
46628 (gzio_mod_SOURCES): New variable.
46629 (gzio_mod_CFLAGS): Likewise.
46631 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
46632 (pkgdata_MODULES): Added gzio.mod.
46633 (gzio_mod_SOURCES): New variable.
46634 (gzio_mod_CFLAGS): Likewise.
46636 * commands/cat.c: Include grub/gzio.h.
46637 (grub_cmd_cat): Use grub_gzfile_open instead of
46640 * commands/cmp.c: Include grub/gzio.h.
46641 (grub_cmd_cmp): Use grub_gzfile_open instead of
46644 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
46645 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
46647 (grub_rescue_cmd_module): Likewise.
46649 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
46651 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
46652 kern/sparc64/ieee1275/init.c because it contains _start.
46653 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
46655 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
46657 * configure.ac: Add support for sparc64 host with ieee1275
46659 * configure: Generated from configure.ac.
46660 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
46662 (grub_ofdisk_read): Likewise.
46663 (grub_ofdisk_open): Use %p to print pointer values, and cast the
46664 pointers as (void *) to remove a warning.
46665 (grub_ofdisk_close): Likewise.
46666 (grub_ofdisk_read): Likewise.
46667 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
46668 returns, so make it return void to remove a warning.
46669 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
46670 Corresponding prototype change.
46671 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
46672 values, and cast the pointers as (void *) to remove a warning.
46673 (grub_mm_dump): Likewise.
46674 * conf/sparc64-ieee1275.mk: New file.
46675 * conf/sparc64-ieee1275.rmk: Likewise.
46676 * include/grub/sparc64/setjmp.h: Likewise.
46677 * include/grub/sparc64/types.h: Likewise.
46678 * include/grub/sparc64/ieee1275/console.h: Likewise.
46679 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
46680 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
46681 * include/grub/sparc64/ieee1275/time.h: Likewise.
46682 * kern/sparc64/cache.c: Likewise.
46683 * kern/sparc64/dl.c: Likewise.
46684 * kern/sparc64/ieee1275/init.c: Likewise.
46685 * kern/sparc64/ieee1275/openfw.c: Likewise.
46687 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
46689 * util/console.c (grub_ncurses_putchar): If C is greater than
46690 0x7f, set C to a question mark.
46691 (grub_ncurses_getcharwidth): New function.
46692 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
46695 * normal/menu.c (print_entry): Made aware of Unicode. First,
46696 convert TITLE to UCS-4, and predict the cursor position by
46699 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
46701 * kern/misc.c (grub_utf16_to_utf8): Likewise.
46703 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
46705 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
46706 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
46709 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
46710 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
46711 grub_strcpy and grub_strlen. Take it into account that a space
46712 character is inserted as a delimiter.
46714 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
46716 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
46717 invalid magic in the error.
46719 * commands/search.c: New file.
46721 * util/grub-emu.c (main): Call grub_search_init and
46724 * kern/rescue.c (grub_rescue_print_disks): Removed.
46725 (grub_rescue_print_devices): New function.
46726 (grub_rescue_cmd_ls): Use grub_device_iterate with
46727 grub_rescue_print_devices instead of grub_disk_dev_iterate with
46728 grub_rescue_print_disks.
46730 * kern/partition.c (grub_partition_iterate): Return the result of
46731 PARTMAP->ITERATE instead of GRUB_ERRNO.
46733 * kern/device.c: Include grub/partition.h.
46734 (grub_device_iterate): New function.
46736 * include/grub/partition.h (grub_partition_iterate): Return int
46737 instead of grub_err_t.
46739 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
46741 [GRUB_UTIL] (grub_search_fini): Likewise.
46743 * include/grub/device.h (grub_device_iterate): New prototype.
46745 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
46747 (pkgdata_MODULES): Added search.mod.
46748 (search_mod_SOURCES): New variable.
46749 (search_mod_CFLAGS): Likewise.
46751 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
46752 (pkgdata_MODULES): Added search.mod.
46753 (search_mod_SOURCES): New variable.
46754 (search_mod_CFLAGS): Likewise.
46756 * commands/ls.c (grub_ls_list_disks): Renamed to ...
46757 (grub_ls_list_devices): ... this, and use grub_device_iterate.
46758 All callers changed.
46760 * DISTLIST: Added commands/search.c.
46762 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
46764 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
46766 (grub_getcharwidth): New function.
46768 * kern/misc.c (grub_utf8_to_ucs4): New function.
46770 * include/grub/term.h (struct grub_term): Added a new member
46772 (grub_getcharwidth): New prototype.
46774 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
46776 * term/i386/pc/console.c (map_char): New function. Segregated from
46777 grub_console_putchar.
46778 (grub_console_putchar): Use map_char.
46779 (grub_console_getcharwidth): New function.
46780 (grub_console_term): Specified grub_console_getcharwidth as
46783 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
46784 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
46786 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
46788 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
46789 on grub_strtoul completely.
46790 (write_char): Declare local variables in the beginning of the
46792 (grub_vesafb_getcharwidth): New function.
46793 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
46796 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
46798 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
46799 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
46800 commands/i386/pc/vbetest.c.
46802 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
46803 call grub_vbe_get_controller_info again, because the returned
46804 information is volatile.
46805 (grub_vbe_set_video_mode): Mostly rewritten.
46806 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
46807 grub_vbe_status_t correctly.
46808 (grub_vbe_get_video_mode_info): Likewise.
46809 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
46810 several if statements.
46812 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
46813 * commands/i386/pc/vbeinfo.c: ... this.
46815 * commands/i386/pc/vbe_test.c: Renamed to ...
46816 * commands/i386/pc/vbetest.c: ... this.
46818 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
46820 (grub_cmd_vbeinfo): ... this. Save video modes before
46821 iterating. Skip a video mode, if it is not available, not enough
46822 information is given or it is monochrome. Show the memory
46823 model. Leave the interpretation of MODEVAR to grub_strtoul
46825 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
46826 (GRUB_MOD_FINI): Likewise.
46828 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
46829 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
46830 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
46831 duplicated grub_env_get. Leave the interpretation of MODEVAR to
46832 grub_strtoul completely.
46833 (real2pm): Removed.
46834 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
46835 (GRUB_MOD_FINI): Likewise.
46837 * normal/misc.c: Include grub/mm.h.
46839 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
46840 vbe_list_modes with vbetest.mod and vbeinfo.mod.
46841 (vbe_list_modes_mod_SOURCES): Removed.
46842 (vbe_list_modes_mod_CFLAGS): Likewise.
46843 (vbe_test_mod_SOURCES): Likewise.
46844 (vbe_test_mod_CFLAGS): Likewise.
46845 (vbeinfo_mod_SOURCES): New variable.
46846 (vbeinfo_mod_CFLAGS): Likewise.
46847 (vbetest_mod_SOURCES): Likewise.
46848 (vbetest_mod_CFLAGS): Likewise.
46850 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
46852 * normal/misc.c: New file.
46854 * DISTLIST: Added normal/misc.c.
46856 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
46857 DISK to HOOK. Call HOOK with DISK.
46858 * partmap/apple.c (apple_partition_map_iterate): Likewise.
46859 * partmap/pc.c (pc_partition_map_iterate): Likewise.
46860 * partmap/sun.c (sun_partition_map_iterate): Likewise.
46862 * normal/menu_entry.c (struct screen): Added a new member
46863 "completion_shown".
46864 (completion_buffer): New global variable.
46865 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
46866 (store_completion): New function.
46867 (complete): Likewise.
46868 (clear_completions): Likewise.
46869 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
46870 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
46871 a tab, call complete.
46873 * normal/completion.c (disk_dev): Removed.
46874 (print_simple_completion): Likewise.
46875 (print_partition_completion): Likewise.
46876 (print_func): New global variable.
46877 (add_completion): Do not take the arguments WHAT or PRINT any
46878 longer. Added a new argument TYPE. Instead of printing directly,
46879 call PRINT_FUNC if not NULL.
46880 All callers changed.
46881 (complete_device): Use a local variable DEV instead of
46882 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
46883 (grub_normal_do_completion): Take a new argument HOOK. Do not
46884 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
46885 empty string, return NULL instead.
46886 All callers changed.
46888 * normal/cmdline.c (print_completion): New function.
46890 * kern/partition.c (grub_partition_iterate): Add an argument DISK
46892 All callers changed.
46894 * kern/disk.c (grub_print_partinfo): Removed.
46896 * include/grub/partition.h (struct grub_partition_map): Add a new
46897 argument DISK into HOOK of ITERATE.
46898 (grub_partition_iterate): Add a new argument DISK to HOOK.
46900 * include/grub/normal.h (enum grub_completion_type): New enum.
46901 (grub_completion_type_t): New type.
46902 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
46903 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
46904 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
46905 (GRUB_COMPLETION_TYPE_FILE): Likewise.
46906 (grub_normal_do_completion): Added a new argument HOOK.
46907 (grub_normal_print_device_info): New prototype.
46909 * include/grub/disk.h (grub_print_partinfo): Removed.
46911 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
46912 (normal_mod_SOURCES): Likewise.
46913 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46914 (normal_mod_SOURCES): Likewise.
46916 * commands/ls.c (grub_ls_list_disks): Use
46917 grub_normal_print_device_info instead of grub_print_partinfo. Free
46919 (grub_ls_list_files): Use grub_normal_print_device_info instead of
46920 duplicating the code.
46922 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
46924 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
46925 follow GCS more precisely.
46926 * commands/i386/pc/vbe_test.c: Likewise.
46927 * include/grub/i386/pc/vbe.h: Likewise.
46928 * term/i386/pc/vesafb.c: Likewise.
46929 * video/i386/pc/vbe.c: Likewise.
46931 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
46933 * DISTLIST: Added term/i386/pc/vesafb.c
46934 DISTLIST: Added video/i386/pc/vbe.c
46935 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
46936 DISTLIST: Added commands/i386/pc/vbe_test.c.
46937 * commands/i386/pc/vbe_list_modes.c: New file.
46938 * commands/i386/pc/vbe_test.c: Likewise.
46939 * term/i386/pc/vesafb.c: Likewise.
46940 * video/i386/pc/vbe.c: Likewise.
46941 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
46942 (grub_vbe_probe) Added prototype.
46943 (grub_vbe_set_video_mode) Likewise.
46944 (grub_vbe_get_video_mode) Likewise.
46945 (grub_vbe_get_video_mode_info) Likewise.
46946 (grub_vbe_set_pixel_rgb) Likewise.
46947 (grub_vbe_set_pixel_index) Likewise.
46948 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
46949 (pkgdata_MODULES): Added vesafb.mod.
46950 (pkgdata_MODULES): Added vbe_list_modes.mod.
46951 (pkgdata_MODULES): Added vbe_test.mod.
46952 (vbe_mod_SOURCES): Added.
46953 (vbe_mod_CFLAGS): Likewise.
46954 (vesafb_mod_SOURCES): Likewise.
46955 (vesafb_mod_CFLAGS): Likewise.
46956 (vbe_list_modes_mod_SOURCES): Likewise.
46957 (vbe_list_modes_mod_CFLAGS): Likewise.
46958 (vbe_test_mod_SOURCES): Likewise.
46959 (vbe_test_mod_CFLAGS): Likewise.
46961 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
46963 * normal/command.c (grub_command_execute): If INTERACTIVE is
46964 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
46965 CMDLINE. Disable the pager if INTERACTIVE is true.
46966 All callers are changed.
46968 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
46969 before reading a config file.
46970 * normal/main.c (read_config_file): Even if a command is not
46971 found, register it if it is within an entry.
46973 * util/grub-emu.c: Include sys/types.h and unistd.h.
46974 (options): Added --hold.
46975 (struct arguments): Added a new member "hold".
46976 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
46978 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
46979 cleared by a debugger, if it is not zero.
46981 * include/grub/normal.h (grub_command_execute): Add an argument
46984 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
46986 * DISTLIST: Added include/grub/i386/pc/vbe.h.
46988 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
46990 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
46991 program with another one, because the old one didn't detect a bug
46992 in gcc-3.4. Always use regparm 2, because the new test is still
46993 not enough for gcc-4.0. Someone must investigate a simple test
46994 case which detects a bug in gcc-4.0.
46996 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
46998 * DISTLIST: Added normal/completion.c.
47000 * normal/completion.c: New file.
47002 * term/i386/pc/console.c (grub_console_getwh): New function.
47003 (grub_console_term): Assign grub_console_getwh to getwh.
47005 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
47006 function is defined in normal/completion.c as
47007 grub_normal_do_completion.
47008 (grub_cmdline_get): Use grub_normal_do_completion instead of
47011 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
47012 returns non-zero, otherwise return 0.
47013 (grub_partition_iterate): First, probe the partition map. Then,
47014 call ITERATE only for this partition map.
47016 * kern/misc.c (grub_strncmp): Rewritten.
47018 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
47019 returns non-zero. Otherwise return 0.
47021 * include/grub/partition.h (grub_partition_map_iterate): Return
47022 int instead of void.
47024 * include/grub/normal.h (grub_normal_do_completion): New prototype.
47026 * include/grub/misc.h (grub_strncmp): Change the type of N to
47029 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
47032 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
47033 unsigned explicitly before comparing it with I.
47035 * kern/main.c (grub_env_write_root): Add the attribute unused into
47038 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
47039 normal/completion.c.
47040 (normal_mod_SOURCES): Likewise.
47041 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
47042 (normal_mod_SOURCES): Likewise.
47044 * normal/command.c (grub_iterate_commands): If ITERATE returns
47045 non-zero, return one immediately.
47047 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
47049 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
47050 * kern/i386/pc/startup.S: Updated Global Descriptor table's
47052 (grub_vbe_get_controller_info): New function.
47053 (grub_vbe_get_mode_info): Likewise.
47054 (grub_vbe_set_mode): Likewise.
47055 (grub_vbe_get_mode): Likewise.
47056 (grub_vbe_set_memory_window): Likewise.
47057 (grub_vbe_get_memory_window): Likewise.
47058 (grub_vbe_set_scanline_length): Likewise.
47059 (grub_vbe_get_scanline_length): Likewise.
47060 (grub_vbe_set_display_start): Likewise.
47061 (grub_vbe_get_display_start): Likewise.
47062 (grub_vbe_set_palette_data): Likewise.
47063 * include/grub/i386/pc/vbe.h: New file.
47065 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
47067 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
47068 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
47069 * DISTLIST: Likewise.
47070 * kern/ieee1275/of.c: Moved to ...
47071 * kern/ieee1275/ieee1275.c: ... here.
47073 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
47075 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
47076 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
47077 Pass 0 as `end' parameter to grub_strtoul().
47079 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
47081 * include/grub/powerpc/ieee1275/console.h: Do not include
47082 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
47084 (grub_console_cur_color): Remove i386-specific prototype.
47085 (grub_console_real_putchar): Likewise.
47086 (grub_console_checkkey): Likewise.
47087 (grub_console_getkey): Likewise.
47088 (grub_console_getxy): Likewise.
47089 (grub_console_gotoxy): Likewise.
47090 (grub_console_cls): Likewise.
47091 (grub_console_setcursor): Likewise.
47092 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
47093 Include <grub/machine/console.h>.
47094 * term/ieee1275/ofconsole.c: Likewise.
47096 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
47098 * Makefile.in (LIBLZO): New variable.
47100 * configure.ac: Check for LZO version 2.
47102 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
47103 lzo/lzo1x.h instead of lzo1x.h.
47105 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
47108 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
47109 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
47111 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
47112 copying the data from PARTITION to P.
47114 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
47116 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
47117 negative, unload the module.
47119 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
47120 map is "pc_partition_map" but not "pc".
47121 (usage): Fix the description. The options are --boot-image and
47122 --core-image but not --boot-file or --core-file.
47123 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
47124 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
47127 * util/i386/pc/grub-install.in: Do not specify --boot-file or
47128 --core-file. Specify INSTALL_DEVICE as an argument.
47130 * util/console.c: Include config.h.
47131 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
47132 [HAVE_NCURSES_H]: Include ncurses.h.
47133 [HAVE_CURSES_H]: Include curses.h.
47134 [!A_NORMAL] (A_NORMAL): Defined as zero.
47135 [!A_STANDOUT] (A_STANDOUT): Likewise.
47137 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
47139 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
47141 * configure.ac: Check for curses libraries and headers.
47143 * Makefile.in (LIBCURSES): New variable.
47145 * genmk.rb (Script::rule): Set the executable bits.
47147 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
47148 name of the PC partition map is "pc_partition_map" but not "pc".
47150 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
47152 * util/i386/pc/grub-install.in (grub_probefs): New variable.
47153 (modules): Likewise.
47154 (usage): Added descriptions for --modules and --grub-probefs.
47155 Handle --modules and --grub-probefs. Save the arguments in MODULES
47156 and GRUB_PROBEFS, respectively.
47157 Auto-detect a filesystem module against GRUBDIR. If the result is
47158 empty and modules are not specified explicitly, abort the
47159 installation. Add the result to MODULES.
47161 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
47162 disk/powerpc/ieee1275/ofdisk.c,
47163 include/grub/powerpc/ieee1275/init.h and
47164 term/powerpc/ieee1275/ofconsole.c.
47165 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
47166 term/ieee1275/ofconsole.c.
47168 * include/grub/powerpc/ieee1275/console.h: Resurrected.
47170 * COPYING: Upgraded to the latest version. Only the address of the
47171 FSF office has changed.
47173 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
47175 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
47176 kern/ieee1275.c with kern/ieee1275/of.c.
47178 * kern/ieee1275.c: Moved to ...
47179 * kern/ieee1275/of.c: ... here.
47181 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
47183 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
47186 * config.guess: Updated to the latest version from gnulib.
47187 * config.sub: Likewise.
47188 * install.sh: Likewise.
47189 * mkinstalldirs: Likewise.
47191 * include/grub/console.h: Removed. This file is arch-specific. Do
47192 not put this in include/grub.
47194 * include/grub/i386/pc/console.h: Resurrected.
47196 * util/console.c: Include grub/machine/console.h instead of
47198 * util/grub-emu.c: Likewise.
47200 2005-08-04 Marco Gerards <metgerards@student.han.nl>
47202 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
47205 From Vincent Pelletier <subdino2004@yahoo.fr>
47206 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
47207 Redefined to use grub_getwh.
47208 (grub_term): New member named getwh.
47209 (grub_getwh): New prototype.
47210 * kern/term.c (grub_getwh): New function.
47211 * term/i386/pc/console.c (grub_console_getwh): New function.
47212 (grub_console_term): New member `getwh'.
47213 * term/i386/pc/vga.c (grub_vga_getwh): New function.
47214 (grub_vga_term): New member `getwh'.
47215 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
47217 (grub_ofconsole_getw): New function.
47218 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
47219 (grub_ofconsole_term): New field named getwh and new initial
47222 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
47224 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
47225 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
47226 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
47227 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
47228 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
47229 of <grub/machine/ieee1275.h>.
47230 * commands/ieee1275/reboot.c: Likewise.
47231 * boot/powerpc/ieee1275/ieee1275.c: Move ...
47232 * kern/ieee1275.c: ... to here. All users updated. Change all
47233 parameter structs to use new type `grub_ieee1275_cell_t'.
47234 * term/powerpc/ieee1275/ofconsole.c: Move ...
47235 * term/ieee1275/ofconsole.c: ... to here. All users updated.
47236 * disk/powerpc/ieee1275/ofdisk.c: Move ...
47237 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
47238 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
47240 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
47241 Remove unused prototypes. All users updated.
47242 * include/grub/powerpc/ieee1275/console.h: Removed.
47243 * include/grub/powerpc/ieee1275/ieee1275.h: Define
47244 `grub_ieee1275_cell_t'.
47245 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
47246 Cast comparisons with -1 to the correct type.
47247 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
47248 type to match `grub_ieee1275_entry_fn'.
47250 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
47252 * DISTLIST: Added util/i386/pc/grub-probefs.c.
47254 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
47255 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
47257 (grub_probefs_SOURCES): New variable.
47259 * util/i386/pc/grub-probefs.c: New file.
47261 * util/i386/pc/grub-setup.c (main): Call
47262 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
47263 grub_hfs_init and grub_jfs_init to initialize the system. Call
47264 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
47265 grub_pc_partition_map_fini to finish the system.
47267 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
47269 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
47271 (grub_multiboot_load_elf32): Likewise.
47272 (grub_multiboot_is_elf64): Likewise.
47273 (grub_multiboot_load_elf64): Likewise.
47274 (grub_multiboot_load_elf): Likewise.
47275 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
47276 an ELF32 or ELF64 file.
47277 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
47279 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
47280 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
47281 NULL before calling FS->LABEL.
47282 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
47283 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
47284 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
47285 before calling FS->LABEL.
47287 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
47289 * util/i386/pc/grub-install.in (datadir): New variable.
47291 (pkgdatadir): New variable.
47292 (pkglibdir): Removed.
47294 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
47296 * DISTLIST: Added util/i386/pc/grub-install.in.
47298 * util/i386/pc/grub-install.in: New file.
47300 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
47301 (grub_install_SOURCES): Likewise.
47303 * genmk.rb: Added support for scripts.
47304 (Script): New class.
47305 (scripts): New variable.
47307 * Makefile.in (install-local): Install sbin_SCRIPTS by
47309 (uninstall): Remove sbin_SCRIPTS.
47311 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
47312 device, try to get a GRUB device by
47313 grub_util_biosdisk_get_grub_dev.
47316 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
47317 description for --device-map.
47319 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
47321 Change the semantics of variable hooks. They now return strings
47322 instead of error values.
47324 * util/i386/pc/grub-setup.c: Include grub/env.h.
47325 (setup): Use grub_device_set_root instead of grub_env_set.
47327 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
47328 grub_env_get instead of grub_device_set_root and
47329 grub_device_get_root, respectively.
47331 * kern/main.c (grub_env_write_root): New function.
47332 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
47333 grub_env_set instead of grub_device_set_root.
47335 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
47337 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
47338 rather than calling ENV->WRITE_HOOK afterwards.
47339 (grub_env_get): Return the result of ENV->READ_HOOK rather than
47340 passing a pointer of a pointer.
47341 (grub_register_variable_hook): Change the types of "read_hook" and
47342 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
47344 Allocate the default empty string on the heap, because this string
47345 may be freed later.
47347 * kern/device.c: Include grub/env.h.
47348 (grub_device_set_root): Removed.
47349 (grub_device_get_root): Likewise.
47350 (grub_device_open): Use grub_env_get instead of
47351 grub_device_get_root.
47353 * include/grub/env.h (grub_env_read_hook_t): New type.
47354 (grub_env_write_hook_t): Likewise.
47355 (grub_env_var): Change the types of "read_hook" and "write_hook"
47356 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
47357 (grub_register_variable_hook): Likewise.
47359 * include/grub/device.h (grub_device_set_root): Removed.
47360 (grub_device_set_root): Likewise.
47362 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
47363 make sure that DIRNAME terminates with '/', so that
47364 grub_fat_find_dir will fail if PATH is not a directory.
47366 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
47368 Use the qualifier auto for print_files and print_files_long.
47369 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
47371 Put a newline only if there is no error.
47372 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
47375 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
47377 * kern/partition.c (grub_partition_probe): Initialize PART to
47378 NULL. Otherwise, when no partition map is registered, this returns
47381 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
47383 * partmap/apple.c (apple_partition_map_iterate): Check if POS
47384 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
47387 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
47389 * commands/ls.c (grub_ls_list_disks): Print the filesystem
47390 information on each device, if it does not have partitions. Print
47391 "Device" instead of "Disk", because this function is not specific
47394 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
47395 static to ensure that it is put on the memory rather than a
47398 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
47400 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
47401 (grub_cat_init): Likewise.
47402 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
47403 (options): Likewise.
47404 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
47405 (grub_configfile_init): Likewise.
47406 * font/manager.c (GRUB_MOD_INIT): Likewise.
47407 * commands/help.c (GRUB_MOD_INIT): Likewise.
47408 (grub_help_init): Likewise.
47409 * normal/command.c (grub_command_init): Likewise.
47410 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
47411 * disk/loopback.c (grub_loop_init): Likewise.
47412 (GRUB_MOD_INIT): Likewise.
47413 * commands/ls.c (grub_ls_init): Likewise.
47414 (GRUB_MOD_INIT): Likewise.
47415 (options): Likewise.
47416 * commands/boot.c (grub_boot_init): Likewise.
47417 (GRUB_MOD_INIT): Likewise.
47418 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
47419 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
47420 (GRUB_MOD_INIT): Likewise.
47421 * commands/cmp.c (grub_cmp_init): Likewise.
47422 (GRUB_MOD_INIT): Likewise.
47424 * normal/arg.c: Use <> instead of "" to include header files.
47425 (SHORT_ARG_HELP): New macro.
47426 (SHORT_ARG_USAGE): Likewise.
47427 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
47428 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
47430 (find_short): Check if C is 'h' or 'u' explicitly.
47431 (grub_arg_show_help): Use space characters instead of tabs. Treat
47432 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
47433 are shown with --help and --usage only if they are not used for
47434 the command itself.
47435 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
47438 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
47439 const into "longarg". Change the type of "shortarg" to int.
47441 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
47443 * boot/i386/pc/boot.S (boot_drive_check): New label.
47445 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
47448 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
47449 which do not pass a boot drive correctly. Copied from GRUB Legacy.
47451 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
47453 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
47454 When turning off Gate A20, skip the check and return immediately,
47455 because this is not fatal usually.
47457 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
47459 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
47460 be 0x7C00 instead of 0x8000.
47462 * boot/i386/pc/pxeboot.S: Rewritten.
47464 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
47466 (gate_a20_check_state): Read a byte from 0x108000. Invert the
47469 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
47471 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
47472 robustness. This routine now supports a BIOS call and System
47473 Control Port A to modify the gate A20.
47475 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
47476 Increased to 0x440.
47478 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
47480 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
47481 device path and resulting ihandle.
47482 (grub_ofdisk_close): dprintf the ihandle being closed.
47483 (grub_ofdisk_read): dprintf function parameters.
47484 * kern/mm.c (grub_mm_init_region): Likewise.
47485 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
47486 (grub_linux_boot): dprintf the Linux entry point, initrd address and
47487 size, and boot arguments.
47488 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
47489 before loading into memory.
47490 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
47491 before loading into memory.
47493 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
47495 * kern/mm.c: Added much documentation.
47496 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
47497 8, set to 5 instead of 8.
47499 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
47501 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
47503 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
47504 (grub_mkdevicemap_SOURCES): New variable.
47506 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
47507 lib/device.c of GRUB Legacy.
47509 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
47511 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
47512 instead of PATH is NULL.
47514 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
47516 * commands/cmp.c (BUFFER_SIZE): New macro.
47517 (grub_cmd_cmp): Close the right file at the right time. Compare
47518 only data just read. Don't report files of different size as
47519 identical. Dynamically allocate buffers. Move variable
47520 declarations at the beginning of function.
47522 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
47524 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
47527 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
47529 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
47530 when backspace is pressed at beginning of line.
47532 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
47534 * DISTLIST: Added genfslist.sh.
47536 * normal/main.c (fs_module_list): New variable.
47537 (autoload_fs_module): New function.
47538 (read_fs_list): Likewise.
47539 (grub_normal_execute): Call read_fs_list.
47541 * kern/fs.c (grub_fs_autoload_hook): New variable.
47542 (grub_fs_probe): Added support for auto-loading.
47544 * include/grub/normal.h (struct grub_fs_module_list): New struct.
47545 (grub_fs_module_list_t): New type.
47547 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
47548 (grub_fs_autoload_hook): New prototype.
47550 * genfslist.sh: New file.
47552 * genmk.rb: Added a rule to generate a filesystem list.
47554 2005-06-30 Marco Gerards <metgerards@student.han.nl>
47556 * configure.ac: Fix the test for cross-compiling.
47558 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
47559 define GRUB_UTIL anymore.
47561 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
47562 so this function works on other systems than just big endian.
47563 (load_modules): Likewise.
47564 (add_segments): Likewise.
47566 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
47568 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
47569 contains `l' modifier, get a long from va_arg().
47571 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
47573 * kern/mm.c (grub_free): If the next free block which is being
47574 merged is the first free block, set the first block to the block
47576 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
47578 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
47580 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
47581 `grub_ieee1275_chosen'.
47583 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
47585 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
47586 (grub_ieee1275_chosen): New variable.
47587 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
47589 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
47590 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
47591 Rename first argument to `phandle' for consistency.
47592 (grub_ieee1275_get_property_length): Likewise.
47593 (grub_ieee1275_next_property): Likewise. Change type of first argument
47594 to grub_ieee1275_phandle_t.
47595 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
47596 Move export next to declaration.
47597 (grub_ieee1275_chosen): New variable.
47598 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
47599 Correct cosmetic typo.
47600 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
47601 `grub_ieee1275_chosen'.
47602 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
47603 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
47604 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
47605 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
47606 `grub_ieee1275_chosen'.
47608 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
47610 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
47612 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
47613 /chosen/bootargs as "variable=value" pairs.
47615 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
47617 * include/grub/misc.h (grub_dprintf): New macro.
47618 (grub_real_dprintf): New prototype.
47619 (grub_strword): Likewise.
47620 (grub_iswordseparator): Likewise.
47621 * kern/misc.c (grub_real_dprintf): New function.
47622 (grub_strword): Likewise.
47623 (grub_iswordseparator): Likewise.
47625 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
47627 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
47628 (roundup): Remove macro.
47629 (grub_ieee1275_flags): Make static.
47630 (grub_ieee1275_realmode): Remove.
47631 (grub_ieee1275_test_flag): New function.
47632 (grub_ieee1275_set_flag): Likewise.
47633 (find_options): Rename to `grub_ieee1275_find_options'; update
47634 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
47635 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
47636 (cmain): New prototype.
47637 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
47638 `grub_ieee1275_flags' directly.
47639 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
47640 machine/biosdisk.h.
47641 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
47642 Don't include grub/machine/init.h.
47643 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
47644 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
47646 (grub_ieee1275_realmode): Likewise.
47647 (grub_ieee1275_flag): New enum.
47648 (grub_ieee1275_test_flag): New prototype.
47649 (grub_ieee1275_set_flag): New prototype.
47650 * include/grub/powerpc/ieee1275/init.h: Remove file.
47651 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
47652 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
47653 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
47654 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
47656 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
47657 `grub_ieee1275_test_flag'.
47658 (grub_ieee1275_encode_devname): Likewise.
47660 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
47662 * include/grub/powerpc/ieee1275/ieee1275.h
47663 (grub_ieee1275_encode_devname): New prototype.
47664 (grub_ieee1275_get_filename): Likewise.
47665 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
47667 (grub_set_prefix): Likewise.
47668 (grub_machine_init): Call grub_set_prefix.
47669 * kern/powerpc/ieee1275/openfw.c: Fix typos.
47670 (grub_parse_type): New enum.
47671 (grub_ieee1275_get_devargs): New function.
47672 (grub_ieee1275_get_devname): Likewise.
47673 (grub_ieee1275_parse_args): Likewise.
47674 (grub_ieee1275_get_filename): Likewise.
47675 (grub_ieee1275_encode_devname): Likewise.
47677 2005-03-30 Marco Gerards <metgerards@student.han.nl>
47679 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
47680 `grub_loader_unset'.
47682 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
47684 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
47685 instead of grub_ieee1275_interpret.
47686 (grub_halt_init): New function.
47687 (grub_halt_fini): Likewise.
47688 (GRUB_MOD_INIT): Correct message grammar.
47689 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
47690 instead of grub_ieee1275_interpret.
47691 (grub_reboot_init): New function.
47692 (grub_reboot_fini): Likewise.
47693 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
47694 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
47695 util/i386/pc/misc.c with commands/ieee1275/halt.c,
47696 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
47697 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
47699 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
47701 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
47703 (grub_halt): Likewise.
47704 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
47705 (cmain): Remove __attribute__((unused)).
47706 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
47707 (grub_heap_len): Likewise.
47708 (grub_machine_fini): New function.
47709 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
47710 (grub_halt): Likewise.
47711 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
47713 * util/powerpc/ieee1275/misc.c: New file.
47715 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
47717 * DISTLIST: New file.
47718 * gendistlist.sh: Likewise.
47720 * Makefile.in (COMMON_DISTFILES): Removed.
47721 (BOOT_DISTFILES): Likewise.
47722 (CONF_DISTFILES): Likewise.
47723 (DISK_DISTFILES): Likewise.
47724 (FS_DISTFILES): Likewise.
47725 (INCLUDE_DISTFILES): Likewise.
47726 (KERN_DISTFILES): Likewise.
47727 (LOADER_DISTFILES): Likewise.
47728 (TERM_DISTFILES): Likewise.
47729 (UTIL_DISTFILES): Likewise.
47730 (DISTFILES): Likewise.
47731 (uninstall): Uninstall files in $(pkgdata_DATA).
47732 (DISTLIST): New target.
47733 (distdir): Use the contents of the file DISTLIST to get a list of
47736 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
47738 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
47739 descriptor. This is ported from GRUB Legacy.
47741 * gencmdlist.sh: Added an extra semicolon to make it work with
47742 old sed versions. Reported by Robert Bihlmeyer
47743 <robbe@orcus.priv.at>.
47745 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
47747 Automatic loading of commands is supported.
47749 * normal/main.c (read_command_list): New function.
47750 (grub_normal_execute): Call read_command_list.
47752 * normal/command.c (grub_register_command): Return zero or CMD.
47753 Allocate CMD->NAME from the heap.
47754 Initialize CMD->MODULE_NAME to zero.
47755 Find the same name as well. If the same command is found and it is
47756 a dummy command, overwrite members. If it is not a dummy command,
47758 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
47759 (grub_command_find): If a dummy command is found, load a module
47760 and retry to find a command only once.
47762 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
47763 make sure that each command is loaded.
47765 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
47767 (struct grub_command): Remove const from the member `name'.
47768 Add a new member `module_name'.
47769 (grub_register_command): Return grub_command_t.
47771 * commands/help.c (grub_cmd_help): Call grub_command_find to make
47772 sure that each command is loaded.
47774 * genmk.rb (PModule::rule): Specify a module name without the
47775 suffix ".mod" to gencmdlist.sh.
47777 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
47779 * gencmdlist.sh: New file.
47781 * genmk.rb (PModule::rule): Generate a rule for a command list.
47783 Generate command.lst from $(COMMANDFILES).
47785 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
47786 (DATA): Added $(pkgdata_DATA).
47787 (install-local): Install files in $(pkgdata_DATA).
47789 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
47791 * term/i386/pc/vga.c (debug_command): Removed.
47792 (GRUB_MOD_INIT): Do not register the command "debug".
47794 From Hollis Blanchard:
47795 * commands/configfile.c: New file.
47796 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
47797 commands/configfile.c.
47798 (pkgdata_MODULES): Added configfile.mod.
47799 (configfile_mod_SOURCES): New variable.
47800 (configfile_mod_CFLAGS): Likewise.
47801 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
47802 commands/configfile.c.
47803 (pkgdata_MODULES): Added configfile.mod.
47804 (configfile_mod_SOURCES): New variable.
47805 (configfile_mod_CFLAGS): Likewise.
47806 * util/grub-emu.c (main): Call grub_configfile_init and
47807 grub_configfile_fini.
47808 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
47810 [GRUB_UTIL] (grub_configfile_fini): Likewise.
47812 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
47814 * normal/arg.c (grub_arg_show_help): Do not show the bug report
47817 * commands/help.c (grub_cmd_help): Do not print newlines after
47818 the last command in print_command_help.
47820 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
47822 * commands/default.h: New file.
47823 * commands/timeout.h: Likewise.
47824 * normal/context.c: Likewise.
47826 * util/misc.c: Do not include sys/times.h.
47827 Include sys/time.h and grub/machine/time.h.
47828 (grub_get_rtc): Rewritten with gettimeofday.
47830 * util/grub-emu.c (main): Call grub_default_init and
47831 grub_timeout_init before grub_normal_init, and call
47832 grub_timeout_fini and grub_default_fini after grub_main.
47834 * util/console.c (grub_ncurses_checkkey): Return the read
47837 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
47840 * normal/main.c (read_config_file): Push MENU. If this fails,
47841 print an error and wait for a user input.
47842 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
47843 If a menu is empty or an error occurs, pop MENU.
47844 (grub_normal_execute): Pop and free MENU after grub_menu_run
47847 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
47849 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
47851 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
47853 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
47855 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
47858 * include/grub/normal.h (struct grub_menu_list): New struct.
47859 (grub_menu_list_t): New type.
47860 (struct grub_context): New struct.
47861 (grub_context_t): New type.
47862 (grub_register_command): Got rid of EXPORT_FUNC.
47863 (grub_unregister_command): Likewise.
47864 (grub_context_get): New prototype.
47865 (grub_context_get_current_menu): Likewise.
47866 (grub_context_push_menu): Likewise.
47867 (grub_context_pop_menu): Likewise.
47868 [GRUB_UTIL] (grub_default_init): Likewise.
47869 [GRUB_UTIL] (grub_default_fini): Likewise.
47870 [GRUB_UTIL] (grub_timeout_init): Likewise.
47871 [GRUB_UTIL] (grub_timeout_fini): Likewise.
47873 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
47874 commands/timeout.c and normal/context.c.
47875 (pkgdata_MODULES): Added default.mod and timeout.mod.
47876 (normal_mod_SOURCES): Added normal/context.c.
47877 (default_mod_SOURCES): New variable.
47878 (default_mod_CFLAGS): Likewise.
47879 (timeout_mod_SOURCES): Likewise.
47880 (timeout_mod_CFLAGS): Likewise.
47881 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
47883 (pkgdata_MODULES): Added default.mod and timeout.mod.
47884 (normal_mod_SOURCES): Added normal/context.c.
47885 (default_mod_SOURCES): New variable.
47886 (default_mod_CFLAGS): Likewise.
47887 (timeout_mod_SOURCES): Likewise.
47888 (timeout_mod_CFLAGS): Likewise.
47890 * Makefile.in (all-local): Added $(MKFILES).
47892 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
47894 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
47895 (grub_emu_SOURCES): Likewise.
47896 (pkgdata_MODULES): Add `sun.mod'.
47897 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
47898 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47900 (pkgdata_MODULES): Add `sun.mod'.
47901 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
47902 * include/grub/partition.h (grub_sun_partition_map_init): New
47904 (grub_sun_partition_map_fini): Likewise.
47905 * partmap/sun.c: New file.
47906 * util/grub-emu.c (main): Initialize and de-initialize the sun
47907 partitionmap support.
47909 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
47911 This implements an Emacs-like menu entry editor.
47913 * normal/menu_entry.c: New file.
47915 * util/console.c (grub_ncurses_putchar): Translate some Unicode
47916 characters to ASCII.
47917 (saved_char): New variable.
47918 (grub_ncurses_checkkey): Rewritten completely.
47919 (grub_ncurses_getkey): Likewise.
47920 (grub_ncurses_init): Call raw instead of cbreak.
47922 * normal/menu.c (print_entry): Do not put a space.
47923 (init_page): Renamed to ...
47924 (grub_menu_init_page): ... this. All callers changed.
47925 (edit_menu_entry): Removed.
47926 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
47928 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
47930 * kern/misc.c (grub_vprintf): Call grub_refresh.
47932 * normal/menu.c (DISP_LEFT): Renamed to ...
47933 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
47934 * normal/menu.c (DISP_UP): Renamed to ...
47935 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
47936 * normal/menu.c (DISP_RIGHT): Renamed to ...
47937 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
47938 * normal/menu.c (DISP_DOWN): Renamed to ...
47939 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
47940 * normal/menu.c (DISP_HLINE): Renamed to ...
47941 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
47942 * normal/menu.c (DISP_VLINE): Renamed to ...
47943 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
47944 * normal/menu.c (DISP_UL): Renamed to ...
47945 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
47946 * normal/menu.c (DISP_UR): Renamed to ...
47947 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
47948 * normal/menu.c (DISP_LL): Renamed to ...
47949 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
47950 * normal/menu.c (DISP_LR): Renamed to ...
47951 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
47952 * normal/menu.c (TERM_WIDTH): Renamed to ...
47953 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
47954 * normal/menu.c (TERM_HEIGHT): Renamed to ...
47955 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
47956 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
47957 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
47958 * normal/menu.c (TERM_MARGIN): Renamed to ...
47959 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
47960 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
47961 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
47962 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
47963 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
47964 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
47965 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
47966 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
47967 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
47968 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
47969 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
47970 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
47971 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
47972 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
47973 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
47974 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
47975 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
47976 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
47977 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
47978 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
47979 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
47980 All callers changed.
47982 * include/grub/normal.h: New prototype.
47984 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
47985 normal/menu_entry.c.
47986 (normal_mod_SOURCES): Likewise.
47987 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47988 (normal_mod_SOURCES): Likewise.
47990 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
47992 * include/grub/normal.h (grub_halt_init): New prototype.
47993 (grub_halt_fini): Likewise.
47994 (grub_reboot_init): Likewise.
47995 (grub_reboot_fini): Likewise.
47997 * util/grub-emu.c: Include signal.h.
47998 (main_env): New global variable.
47999 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
48001 (grub_machine_fini): New function.
48002 (main): Call grub_halt_init and grub_reboot_init before
48003 grub_main, and grub_reboot_fini and grub_halt_fini after it.
48004 Call setjmp with MAIN_ENV to go back afterwards.
48005 Call grub_machine_fini right before return.
48007 * include/grub/util/misc.h: Include setjmp.h.
48008 (main_env): New prototype.
48010 * include/grub/kernel.h (grub_machine_fini): New prototype.
48011 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
48012 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
48014 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
48015 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
48016 * term/i386/pc/console.c (grub_console_fini): Likewise.
48018 * util/i386/pc/misc.c: New file.
48020 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
48021 util/i386/pc/misc.c, commands/i386/pc/halt.c and
48022 commands/i386/pc/reboot.c.
48024 2005-02-14 Guillem Jover <guillem@hadrons.org>
48026 * include/grub/dl.h (grub_dl_check_header): New prototype.
48027 (grub_arch_dl_check_header): Change return type to grub_err_t,
48028 remove size parameter and export function. Update all callers.
48029 * kern/dl.c (grub_dl_check_header): New function.
48030 (grub_dl_load_core): Use `grub_dl_check_header' instead of
48031 `grub_arch_dl_check_header'. Check ELF type. Check if sections
48032 are inside the core.
48033 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
48034 independent ELF header checks.
48035 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
48036 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
48037 `grub_dl_check_header' instead of explicit checks. Check for the
48039 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
48040 `grub_dl_check_header' instead of explicit checks. Remove arch
48041 specific ELF header checks.
48043 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
48046 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
48048 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
48049 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
48051 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
48053 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
48054 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
48055 (part_map_iterate): Clear `grub_errno' and return 0 if
48056 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
48057 * partmap/amiga.c (amiga_partition_map_iterate): Return
48058 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
48059 * partmap/apple.c (apple_partition_map_iterate): Likewise.
48061 2005-02-01 Guillem Jover <guillem@hadrons.org>
48063 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
48066 2005-01-31 Marco Gerards <metgerards@student.han.nl>
48068 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
48070 (grub_rescue_cmd_linux): New prototype.
48071 (grub_rescue_cmd_initrd): Likewise.
48072 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
48074 (grub_linux_release_mem): Release the memory for the initrd.
48075 (grub_load_linux): Renamed from this...
48076 (grub_rescue_cmd_linux): ...To this. Changed all callers.
48077 Changed `entry' not to be static. Loop over memory regions to
48078 find another one when the default fails.
48079 (grub_rescue_cmd_initrd): New function.
48080 (grub_linux_init): Remove function.
48081 (grub_linux_fini): Likewise.
48082 (GRUB_MOD_INIT): Register `initrd'.
48083 (GRUB_MOD_FINI): Unregister `initrd'.
48084 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
48086 (grub_linux_normal_fini): Likewise.
48087 (GRUB_MOD_INIT): Register `initrd'.
48088 (GRUB_MOD_FINI): Unregister `initrd'.
48090 2005-01-31 Marco Gerards <metgerards@student.han.nl>
48092 * commands/help.c: New file.
48093 * normal/arg.c (show_help): Renamed to...
48094 (grub_arg_show_help): ... this.
48095 * commands/i386/pc/halt.c: New file.
48096 * commands/i386/pc/reboot.c: Likewise.
48097 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
48098 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
48099 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
48100 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
48102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
48104 (pkgdata_MODULES): Add `help.mod'.
48105 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
48106 * grub/i386/pc/init.h (grub_reboot): New prototype.
48107 (grub_halt): Likewise.
48108 * include/grub/normal.h (grub_arg_show_help): New prototype.
48109 (grub_help_init): Likewise.
48110 (grub_help_fini): Likewise.
48111 * util/grub-emu.c (main): Initialize and deinitialize the help
48114 * normal/cmdline.c (grub_cmdline_get): Doc fix.
48116 * normal/command.c (grub_command_init): Fixed the description of
48117 the `set' and `unset' commands.
48119 2005-01-31 Marco Gerards <metgerards@student.han.nl>
48121 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
48123 * commands/ieee1275/halt.c: New file.
48124 * commands/ieee1275/reboot.c: Likewise.
48125 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
48126 `__attribute__ ((unused))'. Some GCS related fixed.
48127 (grub_suspend_init) [GRUB_UTIL]: Function removed.
48128 (grub_suspend_fini): Likewise.
48129 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
48131 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
48132 (halt_mod_CFLAGS): New variables.
48133 * include/grub/powerpc/ieee1275/ieee1275.h
48134 (grub_ieee1275_interpret): New prototype.
48136 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
48138 * include/grub/misc.h (memmove): New prototype.
48139 (memcpy): Likewise.
48141 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
48143 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
48144 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
48146 2005-01-22 Marco Gerards <metgerards@student.han.nl>
48148 * kern/misc.c (grub_strndup): Function rewritten.
48150 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
48152 * normal/menu.c (TERM_WIDTH): Macro redefined.
48153 (TERM_TOP_BORDER_Y): Likewise.
48154 (draw_border): Replaced while-loop by a for-loop. Make the number
48155 of lines consistent with the number of lines displayed in
48156 print_entries. Added a margin below the rectangle.
48157 (print_entry): Make the entry fit in the rectangle.
48158 (print_entries): Display the scroll arrows next to the right
48161 2005-01-21 Marco Gerards <metgerards@student.han.nl>
48163 * fs/minix.c (grub_minix_find_file): Reserve more space for
48164 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
48165 `grub_strncpy' to copy `path' into it.
48167 2005-01-21 Marco Gerards <metgerards@student.han.nl>
48169 Add the loopback device, a device via which files can be accessed
48172 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
48173 (pkgdata_MODULES): Add loopback.mod.
48174 (loopback_mod_SOURCES): New variable.
48175 (loopback_mod_CFLAGS): Likewise.
48176 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
48178 (pkgdata_MODULES): Add loopback.mod.
48179 (loopback_mod_SOURCES): New variable.
48180 (loopback_mod_CFLAGS): Likewise.
48181 * disk/loopback.c: new file.
48182 * include/grub/normal.h (grub_loop_init): New prototype.
48183 (grub_loop_fini): New prototype.
48184 * util/grub-emu.c (main): Initialize and de-initialize loopback
48186 * include/grub/disk.h (grub_disk_dev_id): Add
48187 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
48189 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
48191 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
48193 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
48194 (suspend_mod_SOURCES): New variable.
48195 (suspend_mod_CFLAGS): Likewise.
48196 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
48198 * commands/ieee1275/suspend.c: New file.
48200 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48202 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
48203 ((unused))' to `__attribute__ ((used))'.
48204 (GRUB_MOD_FINI): Likewise.
48205 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
48206 * genmk.rb (PModule): Assign space to common symbols when linking
48209 2005-01-20 Marco Gerards <metgerards@student.han.nl>
48211 * include/grub/mm.h (grub_mm_init_region): Change the type of the
48212 `unsigned' arguments to `grub_size_t'.
48213 (grub_malloc): Likewise.
48214 (grub_realloc): Likewise.
48215 (grub_memalign): Likewise.
48216 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
48217 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
48218 * util/misc.c (grub_malloc): Likewise.
48219 (grub_realloc): Likewise.
48220 * kern/mm.c (get_header_from_pointer): Change the casts to
48221 `unsigned' into a cast to `grub_size_t'.
48223 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
48224 point to `currnode' when `currnode' is changed.
48226 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
48227 Schottelius <nico-linux@schottelius.org>.
48229 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
48231 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
48232 (note_path): Remove variable.
48233 (GRUB_IEEE1275_NOTE_NAME): New macro.
48234 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
48235 (grub_ieee1275_note_hdr): New structure.
48236 (grub_ieee1275_note_desc): Likewise.
48237 (grub_ieee1275_note): Likewise.
48238 (load_note): Remove `dir' argument. All callers updated. Remove
48239 `note_img' and `path'. Do not load a file from `note_path'.
48240 Initialize a struct grub_ieee1275_note and write that to `out'.
48241 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
48243 2005-01-05 Marco Gerards <metgerards@student.han.nl>
48245 * util/misc.c (grub_util_read_image): Revert last change. It
48246 called `grub_util_read_at', which seeks from the beginning of the
48249 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
48251 * TODO: Add note about endianness in grub-mkimage.
48252 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
48254 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
48255 (grub_mkimage_SOURCES): New target.
48256 * include/grub/kernel.h (grub_start_addr): Remove variable.
48257 (grub_end_addr): Likewise.
48258 (grub_total_module_size): Likewise.
48259 (grub_kernel_image_size): Likewise.
48260 (GRUB_MODULE_MAGIC): New constant.
48261 (grub_module_info): New structure.
48262 (grub_arch_modules_addr): New prototype.
48263 (grub_get_end_addr): Remove prototype.
48264 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
48265 * include/grub/powerpc/ieee1275/kernel.h: New file.
48266 * include/grub/util/misc.h (grub_util_get_fp_size): New
48268 (grub_util_read_at): Likewise.
48269 (grub_util_write_image_at): Likewise.
48270 * kern/main.c (grub_get_end_addr): Remove function.
48271 (grub_load_modules): Call grub_arch_modules_addr instead of using
48272 grub_end_addr. Look for a grub_module_info struct in memory. Use
48273 the grub_module_info fields instead of calling grub_get_end_addr
48274 as loop conditions. Move grub_add_unused_region code here.
48275 (grub_add_unused_region): Remove function.
48276 * kern/i386/pc/init.c: Include grub/cache.h.
48277 (grub_machine_init): Remove call to grub_get_end_addr. Remove
48278 one call to add_mem_region.
48279 (grub_arch_modules_addr): New function.
48280 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
48281 (grub_total_module_size): Likewise.
48282 Include grub/machine/kernel.h.
48283 (grub_arch_modules_addr): New function.
48284 * util/grub-emu.c (grub_end_addr): Remove variable.
48285 (grub_total_module_size): Likewise.
48286 (grub_arch_modules_addr): New function.
48287 * util/misc.c: Include unistd.h.
48288 (grub_util_get_fp_size): New function.
48289 (grub_util_read_at): Likewise.
48290 (grub_util_write_image_at): Likewise.
48291 (grub_util_read_image): Call grub_util_read_at.
48292 (grub_util_write_image): Call grub_util_write_image_at.
48293 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
48294 additional memory in kernel_img for a struct grub_module_info.
48295 Fill in that grub_module_info.
48296 * util/powerpc/ieee1275/grub-mkimage.c: New file.
48298 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
48300 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
48302 * include/grub/powerpc/ieee1275/ieee1275.h
48303 (grub_ieee1275_milliseconds): New prototype.
48304 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
48306 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
48307 grub_ieee1275_milliseconds.
48309 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
48311 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
48313 (find_options): New function.
48314 (cmain): Call find_options.
48315 * include/grub/powerpc/ieee1275/ieee1275.h
48316 (grub_ieee1275_realmode): New extern variable.
48317 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
48318 grub_map if grub_ieee1275_realmode is false.
48320 2004-12-29 Marco Gerards <metgerards@student.han.nl>
48322 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
48323 lines are inserted and make it work like readline. Reported by
48324 Vincent Pelletier <subdino2004@yahoo.fr>.
48326 2004-12-28 Marco Gerards <metgerards@student.han.nl>
48328 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
48330 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
48331 `kern/powerpc/cache.S'.
48333 2004-12-27 Marco Gerards <metgerards@student.han.nl>
48335 * genmk.rb: Handle the `Program' class in the main loop. Written
48336 by Johan Rydberg <jrydberg@gnu.org>.
48337 (Program): New class.
48338 (programs): New variable.
48339 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
48340 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
48341 instead of "grub/kernel.h". Include <grub/machine/init.h>.
48342 (help_arch): Function removed.
48343 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
48344 `powerpc/libgcc.h' and `loader.h'.
48345 (pkgdata_PROGRAMS): New variable.
48346 (sbin_UTILITIES): Variable removed.
48347 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
48348 (grubof_SOURCES): Variable re-defined so it only includes the
48349 core functionality.
48350 (grubof_CFLAGS): Remove `-DGRUBOF'.
48351 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
48352 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
48353 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
48354 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
48355 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
48356 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
48357 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
48358 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
48359 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
48360 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
48361 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
48362 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
48363 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
48364 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
48365 (pc_mod_CFLAGS): New variables.
48366 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
48367 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
48368 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
48369 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
48371 * include/grub/i386/pc/init.h (grub_os_area_addr)
48372 (rub_os_area_size): ... to here.
48373 * include/grub/powerpc/ieee1275/ieee1275.h
48374 (grub_ieee1275_entry_fn): Export symbol.
48375 * include/grub/powerpc/ieee1275/init.h: New file.
48376 * include/grub/powerpc/libgcc.h: Likewise.
48377 * include/grub/cache.h: Likewise.
48378 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
48379 <hollis@penguinppc.org>.
48380 * kern/dl.c: Include <grub/cache.h>.
48381 (grub_dl_flush_cache): New function.
48382 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
48384 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
48385 (grub_console_init): Removed prototypes.
48386 (grub_machine_init): Don't initialize the modules anymore.
48387 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
48389 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
48390 Macro undef removed.
48391 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
48392 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
48393 relocation `R_PPC_REL32'. Return an error when the relocation is
48395 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
48396 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
48397 * util/misc.c (grub_arch_sync_caches): Likewise.
48399 2004-12-19 Marco Gerards <metgerards@student.han.nl>
48401 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
48402 `symlist.c', add `grubof_symlist.c'.
48403 (symlist.c): Variable removed.
48404 (grubof_HEADERS): Variable added.
48405 (grubof_symlist.c): New target.
48406 (kernel_syms.lst): Use `grubof_HEADERS' instead of
48407 `kernel_img_HEADERS'.
48408 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
48409 * kern/powerpc/dl.c: New file.
48410 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
48412 (grub_arch_dl_relocate_symbols): Likewise.
48413 (grub_register_exported_symbols): Likewise.
48415 2004-12-13 Marco Gerards <metgerards@student.han.nl>
48417 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
48418 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
48419 to fail instead. Reported by Vincent Pelletier
48420 <subdino2004@yahoo.fr>.
48422 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
48423 it is not allocated. Reported by Vincent Pelletier
48424 <subdino2004@yahoo.fr>.
48426 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
48427 output so the output looks better.
48429 2004-12-04 Marco Gerards <metgerards@student.han.nl>
48431 Modulize the partition map support and add support for the amiga
48434 * commands/ls.c: Include <grub/partition.h> instead of
48435 <grub/machine/partition.h>.
48436 * kern/disk.c: Likewise.
48437 * kern/rescue.c: Likewise.
48438 * loader/i386/pc/chainloader.c: Likewise.
48439 * normal/cmdline.c: Likewise.
48440 * kern/powerpc/ieee1275/init.c: Likewise.
48441 (grub_machine_init): Call `grub_pc_partition_map_init',
48442 `grub_amiga_partition_map_init' and
48443 `grub_apple_partition_map_init'.
48444 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
48445 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
48446 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
48447 `partition.h' and `pc_partition.h'.
48448 (grub_setup_SOURCES): Remove
48449 `disk/i386/pc/partition.c'. Add `kern/partition.c',
48450 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
48451 (grub_emu_SOURCES): Likewise.
48452 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
48453 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
48454 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
48455 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
48456 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
48457 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
48458 (grubof_SOURCES): Likewise.
48459 * disk/i386/pc/partition.c: File removed.
48460 * disk/powerpc/ieee1275/partition.c: Likewise.
48461 * include/grub/powerpc/ieee1275/partition.h: Likewise.
48462 * include/grub/i386/pc/partition.h: Likewise.
48463 * kern/partition.c: New file.
48464 * partmap/amiga.c: Likewise.
48465 * partmap/apple.c: Likewise.
48466 * partmap/pc.c: Likewise.
48467 * include/grub/partition.h: Likewise..
48468 * include/grub/pc_partition.h: Likewise.
48469 * util/grub-emu.c: Include <grub/partition.h> instead of
48470 <grub/machine/partition.h>.
48471 (main): Call `grub_pc_partition_map_init',
48472 `grub_amiga_partition_map_init' and
48473 `grub_apple_partition_map_init' and deinitialize afterwards.
48474 * util/i386/pc/biosdisk.c: Include `#include
48475 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
48476 `<grub/machine/partition.h>'.
48477 * util/i386/pc/grub-setup.c: Likewise.
48478 * util/i386/pc/biosdisk.c: Likewise.
48479 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
48480 partition information in case of a PC partition.
48481 * util/i386/pc/grub-setup.c: Include `#include
48482 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
48483 `<grub/machine/partition.h>'.
48484 (setup): Only access the PC specific partition information in case
48487 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
48489 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
48490 (grub_longjmp): Likewise.
48491 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
48493 * normal/powerpc/setjmp.S: New file.
48494 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
48495 `normal/powerpc/setjmp.S'.
48496 (grubof_CFLAGS): Add `-DGRUBOF'.
48497 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
48498 [GRUB_UTIL && !GRUBOF].
48500 2004-11-16 Marco Gerards <metgerards@student.han.nl>
48502 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
48503 property named `name'. Correctly handle the error returned by
48504 `grub_ieee1275_finddevice' if a device can not be opened.
48506 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
48508 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
48509 `actual' for negativity.
48510 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
48513 2004-11-01 Marco Gerards <metgerards@student.han.nl>
48515 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
48516 (PAGE_OFFSET): New macro.
48517 (CRTC_ADDR_PORT): Likewise.
48518 (CRTC_DATA_PORT): Likewise.
48519 (START_ADDR_HIGH_REGISTER): Likewise.
48520 (START_ADDR_LOW_REGISTER): Likewise.
48521 (GRAPHICS_ADDR_PORT): Likewise.
48522 (GRAPHICS_DATA_PORT): Likewise.
48523 (READ_MAP_REGISTER): Likewise.
48524 (INPUT_STATUS1_REGISTER): Likewise.
48525 (INPUT_STATUS1_VERTR_BIT): Likewise.
48526 (page): New variable.
48527 (wait_vretrace): New function.
48528 (set_read_map): Likewise.
48529 (set_start_address): Likewise.
48530 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
48532 (check_vga_mem): Take the page into account.
48533 (write_char): Likewise.
48534 (write_cursor): Likewise.
48535 (scroll_up): Likewise. Copy the page to the page that is not
48536 shown and switch between both pages.
48537 (grub_vga_putchar): Fix off by one error.
48538 (grub_vga_cls): Wait for the vertical retrace. Take the page into
48541 2004-11-01 Marco Gerards <metgerards@student.han.nl>
48543 Add support for iso9660 (including rockridge).
48545 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
48546 (iso9660_mod_SOURCES): New variable.
48547 (iso9660_mod_CFLAGS): Likewise.
48548 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
48549 * include/grub/fs.h (grub_iso9660_init): New prototype.
48550 * util/grub-emu.c (main): Call `grub_iso9660_init'.
48551 * fs/iso9660.c: New file.
48553 * include/grub/misc.h (grub_strncat): New prototype.
48554 * kern/misc.c (grub_strncat): New function.
48556 * fs/hfs.c (grub_hfs_mount): Translate the error
48557 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
48558 * fs/jfs.c (grub_jfs_mount): Likewise.
48559 * fs/ufs.c (grub_ufs_mount): Likewise.
48561 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
48563 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
48564 which initialized BAT registers.
48565 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
48566 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
48568 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
48569 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
48571 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
48572 (grub_mapclaim): Likewise.
48573 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
48574 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
48577 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
48579 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
48580 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
48581 -ffreestanding and -msoft-float.
48583 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
48585 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
48586 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
48587 set in grub_ieee1275_flags.
48589 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
48591 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
48593 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
48594 grub_console_init first.
48595 Change the memory range used for grub_ieee1275_claim and
48596 grub_mm_init_region.
48597 Print an error message if the claim fails.
48598 Include <grub/misc.h>.
48600 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
48602 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
48603 Call grub_children_iterate for device nodes of type `scsi',
48605 (grub_ofdisk_open): Remove manual device alias resolution.
48606 Fix memory leak when device cannot be opened.
48607 * include/grub/powerpc/ieee1275/ieee1275.h
48608 (grub_children_iterate): New prototype.
48609 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
48611 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
48612 Return -1 if args.size was -1.
48614 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
48616 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
48617 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
48618 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
48619 Open Firmware's memory for it; claim memory from _start to _end.
48620 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
48621 (_end): New extern.
48622 (_start): Zero BSS from __bss_start to _end.
48623 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
48625 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
48627 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
48629 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
48630 -1 if args.base was -1.
48632 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
48634 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
48635 escape sequence instead of a literal ^L. Also call
48636 grub_ofconsole_gotoxy.
48638 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
48640 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
48641 void * arguments to grub_addr_t. All callers updated. Also make
48642 the `result' argument optional.
48643 (grub_ieee1275_release): change void * arguments to grub_addr_t.
48644 All callers updated.
48646 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
48648 * commands/ls.c (grub_ls_list_files): Use the string following the
48649 initial ')', if present, as the filesystem path.
48650 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
48652 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
48654 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
48656 Make the source code of the menu interface more readable.
48658 * normal/menu.c: Include grub/mm.h.
48659 (TERM_WIDTH): New macro.
48660 (TERM_HEIGHT): Likewise.
48661 (TERM_INFO_HEIGHT): Likewise.
48662 (TERM_MARGIN): Likewise.
48663 (TERM_SCROLL_WIDTH): Likewise.
48664 (TERM_TOP_BORDER_Y): Likewise.
48665 (TERM_LEFT_BORDER_X): Likewise.
48666 (TERM_BORDER_WIDTH): Likewise.
48667 (TERM_MESSAGE_HEIGHT): Likewise.
48668 (TERM_BORDER_HEIGHT): Likewise.
48669 (TERM_NUM_ENTRIES): Likewise.
48670 (TERM_FIRST_ENTRY_Y): Likewise.
48671 (TERM_ENTRY_WIDTH): Likewise.
48672 (TERM_CURSOR_X): Likewise.
48673 (draw_border): Use macros instead of magic numbers.
48674 (print_entry): Likewise.
48675 (print_entries): Likewise.
48676 (run_menu): Likewise. Also, handle the key 'e'.
48677 (run_menu_entry): Ignore empty command lines.
48678 (print_message): Added a new argument EDIT. If EDIT is true,
48679 print a different message.
48680 (init_page): Likewise.
48681 (edit_menu_entry): New function. Not implemented yet.
48683 2004-09-17 Marco Gerards <metgerards@student.han.nl>
48685 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
48686 can be loaded from normal mode.
48688 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
48690 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
48691 (multiboot_mod_CFLAGS): New variables.
48692 * loader/i386/pc/linux_normal.c: New file.
48693 * loader/i386/pc/multiboot_normal.c: Likewise.
48695 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
48696 attribute `unused'.
48698 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
48699 `fdiro' to read the mode information from instead of `diro'.
48701 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
48702 looking up a symlink.
48704 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
48706 * normal/command.c (grub_command_execute): Don't parse the
48707 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
48708 flags of the command.
48710 * normal/menu.c (grub_menu_run): Fix typo.
48712 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
48714 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
48716 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
48717 `y + 1' instead of `y - 1'.
48719 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
48721 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
48723 From Hollis Blanchard <hollis@penguinppc.org>:
48724 * kern/misc.c (memmove): New alias for grub_memmove.
48725 (memcmp): New alias for grub_memcmp.
48726 (memset): New alias for grub_memset.
48727 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
48728 Change "int handle" to "grub_ieee1275_phandle_t handle".
48729 * include/grub/powerpc/ieee1275/ieee1275.h
48730 (grub_ieee1275_get_property): Likewise.
48732 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
48734 Added normal mode command `chainloader' as module chain.mod, which
48735 depends on normal.mod and _chain.mod.
48737 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
48738 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
48739 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
48741 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
48742 but arguments parsing moved to ...
48743 (grub_chainloader_cmd): ... here. New function.
48744 * include/grub/i386/pc/chainloader.h: New file.
48745 * loader/i386/pc/chainloader_normal.c: Likewise.
48747 2004-09-11 Marco Gerards <metgerards@student.han.nl>
48749 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
48750 (grub_mkimage_LDFLAGS): Likewise.
48751 (grub_emu_SOURCES): Likewise.
48752 (kernel_img_HEADERS): Added fshelp.h.
48753 * fs/ext2.c: Include <grub/fshelp.h>.
48754 (FILETYPE_REG): New macro.
48755 (FILETYPE_INO_REG): Likewise.
48756 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
48758 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
48760 (grub_fshelp_node): New struct.
48761 (grub_ext2_data): Added member `diropen'. Changed member `inode'
48763 (grub_ext2_get_file_block): Removed function.
48764 (grub_ext2_read_block): New function.
48765 (grub_ext2_read_file): Replaced parameter `data' by `node'.
48766 This function was written.
48767 (grub_ext2_mount): Read the root inode. Create a diropen struct.
48768 (grub_ext2_find_file): Removed function.
48769 (grub_ext2_read_symlink): New function.
48770 (grub_ext2_iterate_dir): Likewise.
48771 (grub_ext2_open): Rewritten.
48772 (grub_ext2_dir): Rewritten.
48773 * include/grub/fshelp.h: New file.
48774 * fs/fshelp.c: Likewise.
48776 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
48778 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
48779 (print_message): Add a missing newline.
48780 (run_menu): Added timeout support.
48781 (run_menu_entry): New local function.
48782 (grub_menu_run): Added support for booting.
48784 * kern/loader.c (grub_loader_is_loaded): New function.
48786 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
48787 (grub_get_rtc): Exported.
48789 * include/grub/i386/pc/time.h: Include grub/symbol.h.
48790 (grub_get_rtc): Exported.
48792 * include/grub/normal.h (struct grub_command_list): Remove
48793 constant from the member `command'.
48795 * include/grub/loader.h (grub_loader_is_loaded): Declared.
48797 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
48799 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
48801 2004-08-28 Marco Gerards <metgerards@student.han.nl>
48803 Add support for the JFS filesystem.
48805 * fs/jfs.c: New file.
48806 * include/grub/fs.h (grub_jfs_init): New prototype.
48807 (grub_jfs_fini): New prototype.
48808 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
48809 (grub_emu_SOURCES): Likewise.
48810 (pkgdata_MODULES): Add jfs.mod.
48811 (jfs_mod_SOURCES): New variable.
48812 (jfs_mod_CFLAGS): Likewise.
48813 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
48814 (grubof_SOURCES): Likewise.
48815 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
48817 * fs/fat.c (grub_fat_find_dir): Convert the filename little
48818 endian to the host endian.
48819 (grub_fat_utf16_to_utf8): Move function from there...
48820 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
48821 the endianness of the source string anymore.
48822 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
48824 2004-08-24 Marco Gerards <metgerards@student.han.nl>
48826 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
48827 (grub_boot_fini) [GRUB_UTIL]: Likewise.
48828 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
48829 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
48831 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
48832 (grub_hfs_iterate_dir): Make the function static. Add prototypes
48833 for `node_found' and `it_dir'.
48834 (grub_hfs_dir): Add prototype for `dir_hook'.
48836 * fs/minix.c (grub_minix_get_file_block): Add prototype for
48837 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
48838 and `indir32' to silence a gcc warning.
48840 * include/grub/fs.h (grub_hfs_init): New prototype.
48841 (grub_hfs_fini): Likewise.
48844 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
48846 Each disk device has its own id now. This is useful to make use
48847 of multiple disk devices.
48849 * include/grub/disk.h (grub_disk_dev_id): New enum.
48850 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
48851 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
48853 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
48854 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
48856 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
48857 GRUB_DISK_DEVICE_OFDISK_ID as an id.
48859 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
48860 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
48862 * include/grub/disk.h (struct grub_disk_dev): Added a new member
48863 "id" which is used by the cache manager.
48865 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
48868 2004-08-18 Marco Gerards <metgerards@student.han.nl>
48870 * fs/hfs.c: New file.
48871 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
48872 (grub_emu_SOURCES): Likewise.
48873 (pkgdata_MODULES): Add hfs.mod.
48874 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
48875 (grubof_SOURCES): Likewise.
48876 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
48878 * include/grub/misc.h (grub_strncasecmp): Add prototype.
48879 * kern/misc.c (grub_strncasecmp): Add function.
48881 2004-08-14 Marco Gerards <metgerards@student.han.nl>
48883 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
48886 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
48887 (grub_ext2_dir): In case the directory entry type is unknown, read
48890 2004-08-02 Peter Bruin <pjbruin@dds.nl>
48892 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
48893 grub_load_linux instead of grub_rescue_cmd_linux as second
48894 argument of grub_rescue_register_command.
48896 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
48898 2004-07-27 Marco Gerards <metgerards@student.han.nl>
48900 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
48902 * commands/boot.c: Remove the check for `GRUB_UTIL'.
48903 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
48904 `loader/powerpc/ieee1275/linux.c',
48905 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
48906 * include/grub/powerpc/ieee1275/ieee1275.h
48907 (grub_ieee1275_release): New prototype.
48908 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
48909 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
48910 normal, boot, linux and linux_normal.
48911 * loader/powerpc/ieee1275/linux.c: New file.
48912 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48914 2004-07-12 Marco Gerards <metgerards@student.han.nl>
48916 * normal/arg.c (grub_arg_parse): Correct error handling after
48917 reallocating the argumentlist (check if `argl' is not null instead
48918 of checking if `args' is not null).
48919 * kern/mm.c (grub_realloc): Return the same pointer when using the
48920 same region, instead of returning the header address.
48922 2004-07-11 Marco Gerards <metgerards@student.han.nl>
48924 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
48925 one block instead of two when looking for the initial partition.
48926 (grub_partition_probe): Initialize the local variable `p' with 0.
48927 Use base 10 for the grub_strtoul call.
48928 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
48929 need for one local variable.
48930 (grub_strtoul): Don't add the new value to `num', instead of that
48933 2004-07-11 Marco Gerards <metgerards@student.han.nl>
48935 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
48936 (pxeboot_img_SOURCES): New variable.
48937 (pxeboot_img_ASFLAGS): Likewise.
48938 (pxeboot_img_LDFLAGS): Likewise.
48939 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
48940 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
48941 <lode_leroy@hotmail.com>.
48943 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
48945 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
48946 there was no input.
48948 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
48950 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
48951 the history buffer logic.
48953 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
48955 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
48956 (FILETYPE_INO_SYMLINK): New macros.
48957 (grub_ext2_find_file): Check if the node is a directory using the
48958 inode stat information instead of using the filetype in the
48959 dirent. Exclude the first character of an absolute symlink.
48960 (grub_ext2_dir): Mask out the filetype part of the mode member of
48963 2004-05-24 Marco Gerards <metgerards@student.han.nl>
48965 Add support for UFS version 1 and 2. Add support for the minix
48966 filesystem version 1 and 2, both the variants with 14 and 30 long
48969 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
48971 (grub_emu_SOURCES): Likewise.
48972 (pkgdata_MODULES): Add ufs.mod and minix.mod.
48973 (ufs_mod_SOURCES): New variable.
48974 (ufs_mod_CFLAGS): Likewise.
48975 (minix_mod_SOURCES): Likewise.
48976 (minix_mod_CFLAGS): Likewise.
48977 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
48979 (grubof_SOURCES): Likewise.
48980 * fs/ufs.c: New file.
48981 * fs/minix.c: New file.
48982 * include/grub/fs.h (grub_ufs_init): New prototype.
48983 (grub_ufs_fini): Likewise.
48984 (grub_minix_init): Likewise.
48985 (grub_minix_fini): Likewise.
48986 * util/grub-emu.c (main): Initialize and deinitialize UFS and
48989 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
48991 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
48992 commands/ls.c, commands/terminal.c, commands/boot.c,
48993 commands/cmp.c and commands/cat.c.
48994 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
48996 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
48999 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
49001 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
49002 and grub_, respectively. Because the conversion is trivial and
49003 mechanical, I omit the details here. Please refer to the CVS
49004 if you need more information.
49006 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
49008 * include/pupa: Renamed to ...
49009 * include/grub: ... this.
49010 * util/i386/pc/pupa-mkimage.c: Renamed to ...
49011 * util/i386/pc/grub-mkimage.c: ... this.
49012 * util/i386/pc/pupa-setup.c: Renamed to ...
49013 * util/i386/pc/grub-setup.c: ... this.
49014 * util/pupa-emu.c: Renamed to ...
49015 * util/grub-emu.c: ... this.
49017 2004-03-29 Marco Gerards <metgerards@student.han.nl>
49019 Add support for the newworld apple macintosh (PPC). This has been
49020 tested on the powerbook 2000 only. It only adds support for
49021 generic ieee1275 functions, console and disk support. This should
49022 be easy to port to other architectures with support for Open
49025 * configure.ac: Accept the powerpc as host_cpu. In the case of
49026 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
49027 specific tests are only executed while building for the i386.
49028 Inverse test for crosscompile.
49029 * genmk.rb (Utility): Allow assembler files.
49030 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
49031 * conf/powerpc-ieee1275.rmk: New file.
49032 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
49033 * disk/powerpc/ieee1275/partition.c: Likewise.
49034 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
49035 * include/pupa/powerpc/ieee1275/console.h: Likewise.
49036 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
49037 * include/pupa/powerpc/ieee1275/time.h: Likewise.
49038 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
49039 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
49040 * include/pupa/powerpc/ieee1275/loader.h
49041 * include/pupa/powerpc/setjmp.h: Likewise.
49042 * include/pupa/powerpc/types.h: Likewise.
49043 * kern/powerpc/ieee1275/init.c: Likewise.
49044 * kern/powerpc/ieee1275/openfw.c: Likewise.
49045 * term/powerpc/ieee1275/ofconsole.c: Likewise.
49047 These files were written by Johan Rydberg
49048 (jrydberg@night.trouble.net) and I only modified them slightly.
49050 * boot/powerpc/ieee1275/cmain.c: New file.
49051 * boot/powerpc/ieee1275/crt0.S: Likewise.
49052 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
49053 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
49055 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
49057 * Makefile.in: Update copyright.
49058 * genmodsrc.sh: Likewise.
49059 * gensymlist.sh: Likewise.
49060 * term/i386/pc/vga.c: Indent correctly.
49062 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
49063 bugreporting address.
49064 * util/i386/pc/pupa-setup.c (usage): Likewise,
49065 (main): Call pupa_ext2_init and pupa_ext2_fini.
49067 * fs/fat.c (log2): Renamed to ...
49068 (fat_log2): ... this.
49069 All callers changed.
49070 * kern/misc.c (memcpy): Alias to pupa_memmove.
49071 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
49073 * util/console.c (pupa_ncurses_fini): Return 0.
49075 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
49076 Move fail label here.
49077 [__GNU__]: Don't warn when using stat.
49078 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
49079 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
49080 long int. Use strtol instead of strtoul.
49082 2004-03-14 Marco Gerards <metgerards@student.han.nl>
49084 * commands/boot.c: New file.
49085 * commands/cat.c: Likewise.
49086 * commands/cmp.c: Likewise.
49087 * commands/ls.c: Likewise.
49088 * commands/terminal.c: Likewise.
49089 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
49090 (pupa_register_command): Changed interface to match the new
49092 (pupa_command_execute): Changed (almost rewritten) so it uses
49093 pupa_split_command. Added support for setting variables using the
49095 (rescue_command): Changed to work with the new argument parser.
49096 (terminal_command): Moved from here to commands/terminal.c.
49097 (set_command): New function.
49098 (unset_command): New function.
49099 (insmod_command): New function.
49100 (rmmod_command): New function.
49101 (lsmod_command): New function.
49102 (pupa_command_init): Don't initialize the command terminal
49103 anymore. Initialize the commands set, unset, insmod, rmmod and
49105 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
49106 (kernel_img_HEADERS): Add arg.h and env.h.
49107 (pupa_mkimage_LDFLAGS): Add kern/env.c.
49108 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
49109 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
49111 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
49113 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
49114 (boot_mod_SOURCES): New variable.
49115 (terminal_mod_SOURCES): Likewise.
49116 (ls_mod_SOURCES): Likewise.
49117 (cmp_mod_SOURCES): Likewise.
49118 (cat_mod_SOURCES): Likewise.
49120 * normal/arg.c: New file.
49121 * kern/env.c: Likewise.
49122 * include/pupa/arg.h: Likewise.
49123 * include/pupa/env.h: Likewise.
49124 * font/manager.c (font_command): Changed to match argument parsing
49126 (PUPA_MOD_INIT): Likewise.
49127 * hello/hello.c (pupa_cmd_hello): Likewise.
49128 (PUPA_MOD_INIT): Likewise.
49129 * include/pupa/disk.h: Include <pupa/device.h>.
49130 (pupa_print_partinfo): New prototype.
49131 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
49132 (pupa_dl_get_prefix): Likewise.
49133 * include/pupa/misc.h: Include <pupa/err.h>.
49134 (pupa_isgraph): New prototype.
49135 (pupa_isdigit): Likewise.
49136 (pupa_split_cmdline): Likewise.
49137 * include/pupa/normal.h: Include <pupa/arg.h>.
49138 (pupa_command): Changed the prototype of the member `func' to
49139 match the argument parsing interface. Added member `options'.
49140 (pupa_register_command): Updated to match function.
49141 (pupa_arg_parse): New prototype.
49142 (pupa_hello_init) [PUPA_UTIL]: New prototype.
49143 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
49144 (pupa_ls_init) [PUPA_UTIL]: Likewise.
49145 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
49146 (pupa_cat_init) [PUPA_UTIL]: Likewise.
49147 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
49148 (pupa_boot_init) [PUPA_UTIL]: Likewise.
49149 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
49150 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
49151 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
49152 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
49153 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
49154 * kern/disk.c: Include <pupa/file.h>.
49155 (pupa_print_partinfo): New function.
49156 * kern/dl.c: Include <pupa/env.h>.
49157 (pupa_dl_dir): Variable removed.
49158 (pupa_dl_load): Use the environment variable `prefix' instead of
49159 the variable pupa_dl_dir.
49160 (pupa_dl_set_prefix): Function removed.
49161 (pupa_dl_get_prefix): Likewise.
49162 * kern/i386/pc/init.c: Include <pupa/env.h>.
49163 (pupa_machine_init): Use the environment variable `prefix' instead of
49164 using pupa_dl_set_prefix to set the prefix.
49165 * kern/main.c: Include <pupa/env.h>.
49166 (pupa_set_root_dev): Use the environment variable `prefix' instead of
49167 using pupa_dl_get_prefix to get the prefix.
49168 * kern/misc.c: Include <pupa/env.h>.
49169 (pupa_isdigit): New function.
49170 (pupa_isgraph): Likewise.
49171 (pupa_ftoa): Likewise.
49172 (pupa_vsprintf): Added support for printing values of the type
49173 `double'. Make it possible to format variable output when using
49174 formatting like `%1.2%f'.
49175 (pupa_split_cmdline): New function.
49176 * kern/rescue.c: Include <pupa/env.h>.
49177 (next_word): Removed function.
49178 (pupa_rescue_cmd_prefix): Likewise.
49179 (pupa_rescue_cmd_set): New function.
49180 (pupa_rescue_cmd_unset): New function.
49181 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
49182 split the command line instead of splitting it here. Added
49183 support for setting variables using the syntax `foo=bar'. Don't
49184 initialize the prefix command anymore. Initialized the set and
49186 * normal/cmdline.c: Include <pupa/env.h>.
49187 (pupa_tab_complete): Added prototypes for print_simple_completion,
49188 print_partition_completion, add_completion, iterate_commands,
49189 iterate_dev, iterate_part and iterate_dir. Moved code to print
49190 partition information from here to kern/disk.c.
49191 (pupa_cmdline_run): Don't check if the function exists anymore.
49192 * normal/main.c: Include <pupa/env.h>.
49193 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
49194 instead of using pupa_dl_get_prefix to get the prefix.
49195 * term/i386/pc/vga.c: Include <pupa/arg.h>.
49196 (check_vga_mem): Cast pointers to `void *' to silence a gcc
49198 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
49199 (pupa_vga_setcolor): Declare unused variables with `__attribute__
49200 ((unused))' to silence a gcc warning.
49201 (pupa_vga_setcolor): Likewise.
49202 (debug_command): Changed to match argument parsing
49204 * util/pupa-emu.c: Include <pupa/env.h>.
49205 (options): Added 0's for unused fields to silence a gcc warning.
49207 (main): Use the environment variable `prefix' instead of using
49208 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
49209 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
49212 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
49213 * util/misc.c: Include <malloc.h>.
49214 (pupa_malloc): Rewritten so errors are correctly reported.
49215 (pupa_realloc): Likewise.
49216 (pupa_memalign): Likewise.
49217 (pupa_mm_init_region): Declare unused variables with
49218 `__attribute__ ((unused))' to silence a gcc warning.
49219 * normal/i386/setjmp.S: Remove tab at the end of the file to
49220 silence a gcc warning.
49221 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
49222 variables with `__attribute__ ((unused))' to silence a gcc
49224 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
49225 local variable i unsigned to silence a gcc warning.
49227 * kern/term.c: Include <pupa/misc.h>.
49228 (pupa_more_lines): New variable.
49229 (pupa_more): Likewise.
49230 (pupa_putcode): When the pager is active pause at the end of every
49232 (pupa_set_more): New function.
49233 * include/pupa/term.h (pupa_set_more): New prototype.
49236 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
49238 Now this project is GRUB 2 rather than PUPA. The location of
49239 the CVS repository was moved to GRUB's.
49241 * configure.ac: Use bug-grub as the reporting address.
49242 Use GRUB instead of PUPA.
49243 Change the version number to 1.90.
49245 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
49247 * genkernsyms.sh: Updated copyright information.
49248 * genmk.rb: Likewise.
49249 * genmodsrc.sh: Likewise.
49250 * gensymlist.sh: Likewise.
49251 * boot/i386/pc/boot.S: Likewise.
49252 * boot/i386/pc/diskboot.S: Likewise.
49253 * disk/i386/pc/biosdisk.c: Likewise.
49254 * disk/i386/pc/partition.c: Likewise.
49255 * font/manager.c: Likewise.
49256 * fs/ext2.c: Likewise.
49257 * fs/fat.c: Likewise.
49258 * include/pupa/boot.h: Likewise.
49259 * include/pupa/device.h: Likewise.
49260 * include/pupa/disk.h: Likewise.
49261 * include/pupa/dl.h: Likewise.
49262 * include/pupa/elf.h: Likewise.
49263 * include/pupa/err.h: Likewise.
49264 * include/pupa/file.h: Likewise.
49265 * include/pupa/font.h: Likewise.
49266 * include/pupa/fs.h: Likewise.
49267 * include/pupa/kernel.h: Likewise.
49268 * include/pupa/loader.h: Likewise.
49269 * include/pupa/misc.h: Likewise.
49270 * include/pupa/mm.h: Likewise.
49271 * include/pupa/net.h: Likewise.
49272 * include/pupa/normal.h: Likewise.
49273 * include/pupa/rescue.h: Likewise.
49274 * include/pupa/setjmp.h: Likewise.
49275 * include/pupa/symbol.h: Likewise.
49276 * include/pupa/term.h: Likewise.
49277 * include/pupa/types.h: Likewise.
49278 * include/pupa/i386/setjmp.h: Likewise.
49279 * include/pupa/i386/types.h: Likewise.
49280 * include/pupa/i386/pc/biosdisk.h: Likewise.
49281 * include/pupa/i386/pc/boot.h: Likewise.
49282 * include/pupa/i386/pc/console.h: Likewise.
49283 * include/pupa/i386/pc/init.h: Likewise.
49284 * include/pupa/i386/pc/kernel.h: Likewise.
49285 * include/pupa/i386/pc/linux.h: Likewise.
49286 * include/pupa/i386/pc/loader.h: Likewise.
49287 * include/pupa/i386/pc/memory.h: Likewise.
49288 * include/pupa/i386/pc/multiboot.h: Likewise.
49289 * include/pupa/i386/pc/partition.h: Likewise.
49290 * include/pupa/i386/pc/time.h: Likewise.
49291 * include/pupa/i386/pc/vga.h: Likewise.
49292 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
49293 * include/pupa/util/getroot.h: Likewise.
49294 * include/pupa/util/misc.h: Likewise.
49295 * include/pupa/util/resolve.h: Likewise.
49296 * kern/device.c: Likewise.
49297 * kern/disk.c: Likewise.
49298 * kern/dl.c: Likewise.
49299 * kern/err.c: Likewise.
49300 * kern/file.c: Likewise.
49301 * kern/fs.c: Likewise.
49302 * kern/loader.c: Likewise.
49303 * kern/main.c: Likewise.
49304 * kern/misc.c: Likewise.
49305 * kern/mm.c: Likewise.
49306 * kern/rescue.c: Likewise.
49307 * kern/term.c: Likewise.
49308 * kern/i386/dl.c: Likewise.
49309 * kern/i386/pc/init.c: Likewise.
49310 * kern/i386/pc/lzo1x.S: Likewise.
49311 * kern/i386/pc/startup.S: Likewise.
49312 * loader/i386/pc/chainloader.c: Likewise.
49313 * loader/i386/pc/linux.c: Likewise.
49314 * loader/i386/pc/multiboot.c: Likewise.
49315 * normal/cmdline.c: Likewise.
49316 * normal/command.c: Likewise.
49317 * normal/main.c: Likewise.
49318 * normal/menu.c: Likewise.
49319 * normal/i386/setjmp.S: Likewise.
49320 * term/i386/pc/console.c: Likewise.
49321 * term/i386/pc/vga.c: Likewise.
49322 * util/console.c: Likewise.
49323 * util/genmoddep.c: Likewise.
49324 * util/misc.c: Likewise.
49325 * util/pupa-emu.c: Likewise.
49326 * util/resolve.c: Likewise.
49327 * util/unifont2pff.rb: Likewise.
49328 * util/i386/pc/biosdisk.c: Likewise.
49329 * util/i386/pc/getroot.c: Likewise.
49330 * util/i386/pc/pupa-mkimage.c: Likewise.
49331 * util/i386/pc/pupa-setup.c: Likewise.
49333 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
49335 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
49336 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
49337 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
49338 reading and reset it after reading.
49339 (pupa_ext2_close): Return PUPA_ERR_NONE.
49341 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
49343 (struct linux_kernel_header): Add kernel_version and
49345 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
49346 pupa_file_read succeeds.
49347 (pupa_rescue_cmd_initrd): Implement.
49349 2003-12-03 Marco Gerards <metgerards@student.han.nl>
49351 * fs/ext2.c (pupa_ext2_label): New function.
49352 (pupa_ext2_fs): Added label.
49353 * fs/fat.c (pupa_fat_label): New function.
49354 (pupa_fat_fs): Added label.
49355 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
49357 * kern/misc.c (pupa_strndup): New function.
49358 * include/pupa/misc.h (pupa_strndup): New prototype.
49360 * include/pupa/normal.h: Include <pupa/err.h>.
49361 (pupa_set_history): New prototype.
49362 (pupa_iterate_commands): New prototype.
49363 * normal/cmdline.c: Include <pupa/machine/partition.h>,
49364 <pupa/disk.h>, <pupa/file.h>.
49365 (hist_size): New variable.
49366 (hist_lines): Likewise.
49367 (hist_end): Likewise.
49368 (hist_used): Likewise.
49369 (pupa_set_history): New function.
49370 (pupa_history_get): Likewise.
49371 (pupa_history_add): Likewise.
49372 (pupa_history_replace): Likewise.
49373 (pupa_tab_complete): Likewise.
49374 (pupa_cmdline_run): Added tab completion and history buffer. Tab
49375 completion shows partitionnames while completing partitions, this
49376 feature was suggested by Jeff Bailey.
49377 * normal/command.c (pupa_iterate_commands): New function.
49378 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
49379 (pupa_normal_init): Initialize history buffer.
49380 (PUPA_MOD_INIT): Likewise.
49381 (pupa_normal_fini): Free the history buffer.
49382 (PUPA_MOD_FINI): Likewise.
49384 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
49387 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
49388 * configure.ac [i386]: Check for regparam bug.
49389 (NESTED_FUNC_ATTR) [! i386]: Defined.
49391 2003-11-17 Marco Gerards <metgerards@student.han.nl>
49393 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
49394 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
49395 (pupa_emu_SOURCES): New variable.
49396 (pupa_emu_LDFLAGS): Likewise.
49397 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
49398 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
49399 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
49400 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
49401 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
49402 (pupa_jmp_buf): New typedef.
49403 (pupa_setjmp) [PUPA_UTIL]: New macro.
49404 (pupa_longjmp) [PUPA_UTIL]: Likewise.
49405 * include/pupa/term.h (struct pupa_term): New member `refresh'.
49406 (pupa_refresh): New prototype.
49407 * include/pupa/util/getroot.h: New file.
49408 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
49410 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
49411 (pupa_rescue_cmd_cat): Likewise.
49412 (pupa_rescue_cmd_ls): Likewise.
49413 (pupa_rescue_cmd_testload): Likewise.
49414 (pupa_rescue_cmd_lsmod): Likewise.
49415 * normal/cmdline.c (pupa_cmdline_get): Likewise.
49416 * normal/menu.c (run_menu): Likewise.
49417 * kern/term.c (pupa_cls): Likewise.
49418 (pupa_refresh): New function.
49419 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
49420 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
49421 * util/console.c: New file.
49423 * util/i386/pc/getroot.c: New file.
49424 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
49425 (pupa_putchar): New function.
49426 (pupa_refresh): Likewise.
49427 (xgetcwd): Function moved to ...
49428 (strip_extra_slashes): Likewise.
49429 (get_prefix): Likewise.
49430 * util/i386/pc/getroot.c: ... here.
49431 (find_root_device): Function moved and renamed to...
49432 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
49433 Changed all callers.
49434 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
49436 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
49437 Changed all callers.
49438 * util/misc.c (pupa_memalign): New function.
49439 (pupa_mm_init_region): Likewise.
49440 (pupa_register_exported_symbols): Likewise.
49441 (pupa_putchar): Function removed.
49442 * util/pupa-emu.c: New file.
49444 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
49446 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
49447 (_multiboot_mod_SOURCES): New variable.
49448 (_multiboot_mod_CFLAGS): Likewise.
49449 * loader/i386/pc/multiboot.c: New file.
49450 * include/pupa/i386/pc/multiboot.h: Likewise.
49451 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
49452 (pupa_multiboot_real_boot): New function.
49453 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
49454 (pupa_multiboot_real_boot): New prototype.
49455 (pupa_rescue_cmd_multiboot): Likewise
49456 (pupa_rescue_cmd_module): Likewise.
49458 * kern/loader.c (pupa_loader_set): Continue when
49459 pupa_loader_unload_func() fails.
49460 (pupa_loader_unset): New function.
49461 * include/pupa/loader.h (pupa_loader_unset): New prototype.
49463 * kern/misc.c (pupa_stpcpy): New function.
49464 * include/pupa/misc.h (pupa_stpcpy): New prototype.
49466 2003-11-12 Marco Gerards <metgerards@student.han.nl>
49468 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
49469 for available extensions.
49471 * include/pupa/i386/pc/time.h: New file.
49472 * kern/disk.c: Include <pupa/machine/time.h>.
49473 (PUPA_CACHE_TIMEOUT): New macro.
49474 (pupa_last_time): New variable.
49475 (pupa_disk_open): Flush the cache when there was a timeout.
49476 (pupa_disk_close): Reset the timer.
49477 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
49479 * util/misc.c: Include <sys/times.h>
49480 (pupa_get_rtc): New function.
49482 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
49484 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
49486 (pupa_ext2_get_file_block): Use blocks member.
49488 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
49489 first block. Return -1 instead of pupa_errno on error.
49491 2003-10-27 Marco Gerards <metgerards@student.han.nl>
49493 * README: In the pupa-mkimage example use _chain instead of chain
49494 and ext2 instead of fat.
49495 * TODO: Replace ext2fs with jfs as an example. Add an item for
49496 adding journal playback for ext2fs.
49497 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
49498 (pkgdata_MODULES): Added ext2.mod.
49499 (ext2_mod_SOURCES): New variable.
49500 (ext2_mod_CFLAGS): Likewise.
49501 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
49502 * include/pupa/misc.h (pupa_strncpy): New prototype.
49503 (pupa_strcat): Likewise.
49504 (pupa_strncmp): Likewise.
49505 * kern/misc.c (pupa_strcat): Enable function.
49506 (pupa_strncpy): New function.
49507 (pupa_strncmp): Likewise.
49508 * fs/ext2.c: New file.
49510 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
49511 when the read failed before retrying.
49512 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
49513 (_FILE_OFFSET_BITS): Likewise.
49514 * configure.ac: Added AC_SYS_LARGEFILE.
49516 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
49518 * genmk.rb (PModule#rule): Make sure to get only symbol names
49519 from the output of nm.
49520 Reported by Robert Millan <rmh.grub@aybabtu.com>.
49522 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
49524 I forgot to check in these changes for a long time. This adds
49525 incomplete support for VGA console, and this is still very
49526 buggy. Also, a lot of consideration is required for I18N,
49527 UNICODE, and VGA font issues. Therefore, assume that this is
49528 such that "better than nothing".
49530 * font/manager.c: New file.
49531 * include/pupa/font.h: Likewise.
49532 * include/pupa/i386/pc/vga.h: Likewise.
49533 * term/i386/pc/vga.c: Likewise.
49534 * util/unifont2pff.rb: Likewise.
49536 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
49537 (pkgdata_MODULES): Added vga.mod and font.mod.
49538 (vga_mod_SOURCES): New variables.
49539 (vga_mod_CFLAGS): Likewise.
49540 (font_mod_SOURCES): Likewise.
49541 (font_mod_CFLAGS): Likewise.
49543 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
49545 * include/pupa/term.h: Include pupa/err.h.
49546 (struct pupa_term): Added init and fini.
49547 Changed the argument of putchar to pupa_uint32_t.
49549 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
49550 (pupa_console_real_putchar): New prototype.
49551 (pupa_console_putchar): Removed.
49552 (pupa_console_checkkey): Exported.
49553 (pupa_console_getkey): Likewise.
49555 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
49558 * kern/term.c (pupa_term_set_current): Rewritten.
49559 (pupa_putchar): Likewise.
49560 (pupa_putcode): New function.
49562 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
49563 (pupa_console_real_putchar): ... this.
49564 (pupa_vga_set_mode): New function.
49565 (pupa_vga_get_font): Likewise.
49567 * normal/command.c: Include pupa/term.h.
49568 (terminal_command): New function.
49569 (pupa_command_init): Register the command "terminal".
49571 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
49572 (DISP_UP): Likewise.
49573 (DISP_RIGHT): Likewise.
49574 (DISP_DOWN): Likewise.
49575 (DISP_HLINE): Likewise.
49576 (DISP_VLINE): Likewise.
49577 (DISP_UL): Likewise.
49578 (DISP_UR): Likewise.
49579 (DISP_LL): Likewise.
49580 (DISP_LR): Likewise.
49582 * term/i386/pc/console.c (pupa_console_putchar): New function.
49584 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
49586 * util/resolve.c (pupa_util_resolve_dependencies): BUG
49587 FIX. Reverse the path_list.
49589 * include/pupa/normal.h: Export pupa_register_command and
49590 pupa_unregister_command.
49592 * hello/hello.c (pupa_cmd_hello): New module.
49593 * conf/i386-pc.rmk: Added hello.mod.
49595 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
49597 * kern/i386/pc/lzo1x.S: New file.
49599 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
49600 (compress_kernel): New variable.
49601 (generate_image): Heavily modified to support compressing a
49602 large part of the core image.
49604 * util/misc.c (pupa_util_read_image): Fix a file descriptor
49606 (pupa_util_load_image): New function.
49608 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
49609 (pupa_compressed_size): New variable.
49610 (codestart): Enable Gate A20 here.
49611 Decompress the compressed part of the core image.
49612 Rearrange the code to put functions and variables which are
49613 required for initialization in the non-compressed part.
49616 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
49619 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
49621 * include/pupa/i386/pc/kernel.h
49622 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
49623 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
49624 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
49625 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
49626 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
49628 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
49630 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
49631 (Utility#rule): Likewise.
49633 * configure.ac: Check if LZO is available.
49635 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
49637 * include/pupa/normal.h: New file.
49638 * include/pupa/setjmp.h: Likewise.
49639 * include/pupa/i386/setjmp.h: Likewise.
49640 * normal/cmdline.c: Likewise.
49641 * normal/command.c: Likewise.
49642 * normal/main.c: Likewise.
49643 * normal/menu.c: Likewise.
49644 * normal/i386/setjmp.S: Likewise.
49646 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
49647 (pupa_rescue_cmd_initrd): Likewise.
49649 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
49652 * kern/i386/pc/startup.S (translation_table): New variable.
49653 (translate_keycode): New function.
49654 (pupa_console_getkey): Call translate_keycode.
49656 * kern/rescue.c (attempt_normal_mode): New function.
49657 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
49658 it failed, print a message.
49660 * kern/mm.c (pupa_real_malloc): Print more information when a
49661 free magic is broken.
49662 (pupa_free): If the first free header is not free actually, set
49665 * kern/main.c (pupa_load_normal_mode): Just load the module
49667 (pupa_main): Don't print the message
49668 "Entering into rescue mode..." here.
49670 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
49672 (pupa_rescue_cmd_initrd): Likewise.
49673 (pupa_rescue_cmd_initrd): Likewise.
49675 * include/pupa/symbol.h (FUNCTION): Specify the type.
49676 (VARIABLE): Likewise.
49678 * include/pupa/err.h (pupa_err_t): Added
49679 PUPA_ERR_UNKNOWN_COMMAND.
49681 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
49682 (pupa_dl_get_prefix): Likewise.
49684 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
49685 Added _chain.mod and _linux.mod instead of chain.mod and
49687 (chain_mod_SOURCES): Renamed to ...
49688 (_chain_mod_SOURCES): ... this.
49689 (chain_mod_CFLAGS): Renamed to ...
49690 (_chain_mod_CFLAGS): ... this.
49691 (linux_mod_SOURCES): Renamed to ...
49692 (_linux_mod_SOURCES): ... this.
49693 (linux_mod_CFLAGS): Renamed to ...
49694 (_linux_mod_CFLAGS): ... this.
49695 (normal_mod_SOURCES): New variable.
49696 (normal_mod_CFLAGS): Likewise.
49697 (normal_mod_ASFLAGS): Likewise.
49699 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
49701 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
49704 * kern/dl.c (pupa_dl_ref): Refer depending modules
49706 (pupa_dl_unref): Unrefer depending modules recursively.
49707 Don't call pupa_dl_unload implicitly, because PUPA can crash if
49708 a module is unloaded before one depending on that module is
49710 (pupa_dl_unload): Unload depending modules explicitly,
49713 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
49715 * include/pupa/i386/pc/linux.h: New file.
49716 * loader/i386/pc/linux.c: Likewise.
49718 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
49720 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
49721 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
49722 of PUPA_CHAINLOADER_BOOT_SECTOR.
49724 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
49725 (pupa_linux_prot_size): New variable.
49726 (pupa_linux_tmp_addr): Likewise.
49727 (pupa_linux_real_addr): Likewise.
49728 (pupa_linux_boot_zimage): New function.
49729 (pupa_linux_boot_bzimage): Likewise.
49731 * kern/i386/pc/init.c (struct mem_region): New structure.
49732 (MAX_REGIONS): New macro.
49733 (mem_regions): New variable.
49734 (num_regions): Likewise.
49735 (pupa_os_area_addr): Likewise.
49736 (pupa_os_area_size): Likewise.
49737 (pupa_lower_mem): Likewise.
49738 (pupa_upper_mem): Likewise.
49739 (add_mem_region): New function.
49740 (compact_mem_regions): Likewise.
49741 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
49742 the size of the conventional memory and that of so-called upper
49743 memory (before the first memory hole).
49744 Instead of adding each found region to free memory, use
49745 add_mem_region and add them after removing overlaps.
49746 Also, add only 1/4 of the upper memory to free memory. The rest
49747 is used for loading OS images. Maybe this is ad hoc, but this
49748 makes it much easier to relocate OS images when booting.
49750 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
49751 (pupa_enter_rescue_mode): Don't register initrd and module.
49753 * kern/mm.c: Include pupa/dl.h.
49755 * kern/main.c: Include pupa/file.h and pupa/device.h.
49757 * kern/loader.c (pupa_loader_load_module_func): Removed.
49758 (pupa_loader_load_module): Likewise.
49760 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
49763 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
49764 (pupa_linux_tmp_addr): Likewise.
49765 (pupa_linux_real_addr): Likewise.
49766 (pupa_linux_boot_zimage): Likewise.
49767 (pupa_linux_boot_bzimage): Likewise.
49769 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
49770 (pupa_upper_mem): Likewise.
49771 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
49772 module is too dangerous.
49774 * include/pupa/loader.h (pupa_os_area_addr): Declared.
49775 (pupa_os_area_size): Likewise.
49776 (pupa_loader_set): Remove the first argument. Loader doesn't
49777 manage modules or initrd any longer.
49778 (pupa_loader_load_module): Removed.
49780 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
49781 (linux_mod_SOURCES): New variable.
49782 (linux_mod_CFLAGS): Likewise.
49784 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
49786 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
49787 the length of a blocklist correctly.
49789 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
49790 Use ioctl only if the OS file is a block device.
49791 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
49792 not very useful for normal files.
49794 * kern/main.c (pupa_set_root_dev): New function.
49795 (pupa_load_normal_mode): Likewise.
49796 (pupa_main): Call those above.
49798 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
49801 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
49803 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
49805 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
49806 (setup): Configure the installed partition information and the
49809 * loader/i386/pc/chainloader.c (my_mod): New variable.
49810 (pupa_chainloader_unload): New function.
49811 (pupa_rescue_cmd_chainloader): Refer itself.
49812 (PUPA_MOD_INIT): Save its own module in MY_MOD.
49814 * kern/i386/pc/startup.S (install_partition): Removed.
49815 (version_string): Likewise.
49816 (config_file): Likewise.
49817 (pupa_install_dos_part): New variable.
49818 (pupa_install_bsd_part): Likewise.
49819 (pupa_prefix): Likewise.
49820 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
49822 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
49824 (make_install_device): New function.
49825 (pupa_machine_init): Set the dl prefix.
49827 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
49828 (buf): Renamed to ...
49829 (linebuf): ... this.
49830 (pupa_rescue_cmd_prefix): New function.
49831 (pupa_rescue_cmd_insmod): Likewise.
49832 (pupa_rescue_cmd_rmmod): Likewise.
49833 (pupa_rescue_cmd_lsmod): Likewise.
49834 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
49837 * kern/mm.c (pupa_memalign): If failed even after invalidating
49838 disk caches, unload unneeded modules and retry.
49840 * kern/misc.c (pupa_memmove): New function.
49841 (pupa_memcpy): Removed.
49842 (pupa_strcpy): New function.
49843 (pupa_itoa): Made static.
49845 * kern/dl.c (pupa_dl_iterate): New function.
49846 (pupa_dl_ref): Likewise.
49847 (pupa_dl_unref): Likewise.
49848 (pupa_dl_unload): Return if succeeded or not.
49849 (pupa_dl_unload_unneeded): New function.
49850 (pupa_dl_unload_all): Likewise.
49851 (pupa_dl_init): Renamed to ...
49852 (pupa_dl_set_prefix): ... this.
49853 (pupa_dl_get_prefix): New function.
49855 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
49856 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
49857 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
49858 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
49859 (pupa_install_dos_part): Declared.
49860 (pupa_install_bsd_part): Likewise.
49861 (pupa_prefix): Likewise.
49862 (pupa_boot_drive): Likewise.
49864 * include/pupa/types.h: Fix a typo.
49866 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
49868 (pupa_memmove): Declared.
49869 (pupa_strcpy): Likewise.
49871 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
49872 pupa_mod_init takes one argument, its own module.
49873 (pupa_dl_unload_unneeded): Declared.
49874 (pupa_dl_unload_all): Likewise.
49875 (pupa_dl_ref): Likewise.
49876 (pupa_dl_unref): Likewise.
49877 (pupa_dl_iterate): Likewise.
49878 (pupa_dl_init): Renamed to ...
49879 (pupa_dl_set_prefix): ... this.
49880 (pupa_dl_get_prefix): Declared.
49882 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
49883 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
49885 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
49886 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
49888 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
49889 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
49891 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
49893 * util/i386/pc/pupa-setup.c (setup): Define the internal
49894 function find_first_partition_start at the top level, because GCC
49895 3.0.x cannot compile internal functions in deeper scopes
49897 (find_root_device): Use lstat instead of stat.
49898 Don't follow symbolic links.
49899 Fix the path-constructing code.
49901 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
49902 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
49903 by a BLKGETSIZE ioctl first, because block devices don't fill
49904 the member st_mode of the structure stat on Linux.
49905 [__linux__] (linux_find_partition): Use a temporary buffer
49906 REAL_DEV for the working space. Copy it to DEV before returning.
49907 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
49908 buffer cache consistent.
49909 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
49910 strncmp. The previous value was merely wrong.
49911 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
49913 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
49914 FAT size is 12. The previous value was merely wrong.
49916 * kern/main.c (pupa_main): Don't split the starting message from
49919 * kern/term.c (pupa_putchar): Put CR after LF instead of before
49920 LF, because BIOS goes crazy about character attributes in this
49923 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
49925 * include/i386/pc/util/biosdisk.h: New file.
49926 * util/i386/pc/biosdisk.c: Likewise.
49927 * util/i386/pc/pupa-setup.c: Likewise.
49929 * Makefile.in (INCLUDE_DISTFILES): Added
49930 include/pupa/i386/pc/util/biosdisk.h.
49931 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
49932 directory util/i386/pc.
49933 (install-local): Added a rule for sbin_UTILITIES.
49934 (uninstall): Likewise.
49936 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
49938 * util/misc.c (xrealloc): New function.
49939 (pupa_malloc): Likewise.
49940 (pupa_free): Likewise.
49941 (pupa_realloc): Likewise.
49942 (pupa_stop): Likewise.
49943 (pupa_putchar): Likewise.
49945 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
49947 * include/pupa/util/misc.h (xrealloc): Declared.
49949 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
49951 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
49952 (PUPA_BOOT_MACHINE_BPB_END): ... this.
49954 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
49955 [PUPA_UTIL] (pupa_fat_fini): Likewise.
49957 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
49958 way should be implemented.
49959 [PUPA_UTIL] (pupa_fat_fini): Likewise.
49961 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
49962 the size of NAME for safety.
49963 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
49966 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
49967 (pupa_setup_SOURCES): Likewise.
49969 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
49971 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
49973 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
49974 bunch of pushl's from pusha, because this destroys the return
49977 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
49979 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
49980 This means that any missing prototypes could be fatal. Also, you
49981 must take care when writing assembly code. See the comments at
49982 the beginning of startup.S, for more details.
49984 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
49985 compilation mechanism.
49986 (pupa_chainloader_real_boot): Likewise.
49987 (pupa_biosdisk_rw_int13_extensions): Likewise.
49988 (pupa_biosdisk_rw_standard): Likewise.
49989 (pupa_biosdisk_check_int13_extensions): Likewise.
49990 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
49991 (pupa_biosdisk_get_diskinfo_standard): Likewise.
49992 (pupa_get_memsize): Likewise.
49993 (pupa_get_mmap_entry): Likewise.
49994 (pupa_console_putchar): Likewise.
49995 (pupa_console_setcursor): Likewise.
49996 (pupa_getrtsecs): Use pushl instead of push.
49998 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
49999 memory instead of the stack for a mmap entry, because some
50000 BIOSes may ignore the maximum size and overflow.
50002 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
50004 * genmk.rb (PModule#rule): Compile automatically generated
50005 sources with module-specific CFLAGS as well as other sources.
50007 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
50009 * configure.ac: Check ld.
50010 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
50011 respectively, before checking endianness and sizes.
50013 * Makefile.in (LD): New variable.
50015 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
50017 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
50019 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
50021 * Changelog: New file.